public static final class Protos.Resource.ReservationInfo.Builder extends <any> implements Protos.Resource.ReservationInfoOrBuilder
Describes a reservation. A static reservation is set by the operator on the command-line and they are immutable without agent restart. A dynamic reservation is made by an operator via the '/reserve' HTTP endpoint or by a framework via the offer cycle by sending back an 'Offer::Operation::Reserve' message. NOTE: We currently do not allow frameworks with role "*" to make dynamic reservations.Protobuf type
mesos.Resource.ReservationInfo
Modifier and Type | Method and Description |
---|---|
Protos.Resource.ReservationInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.ReservationInfo |
build() |
Protos.Resource.ReservationInfo |
buildPartial() |
Protos.Resource.ReservationInfo.Builder |
clear() |
Protos.Resource.ReservationInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Resource.ReservationInfo.Builder |
clearLabels()
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.Resource.ReservationInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Resource.ReservationInfo.Builder |
clearPrincipal()
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
Protos.Resource.ReservationInfo.Builder |
clearRole()
The role to which this reservation is made for.
|
Protos.Resource.ReservationInfo.Builder |
clearType()
The type of this reservation.
|
Protos.Resource.ReservationInfo.Builder |
clone() |
Protos.Resource.ReservationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.Labels |
getLabels()
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.Labels.Builder |
getLabelsBuilder()
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
java.lang.String |
getPrincipal()
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
java.lang.String |
getRole()
The role to which this reservation is made for.
|
com.google.protobuf.ByteString |
getRoleBytes()
The role to which this reservation is made for.
|
Protos.Resource.ReservationInfo.Type |
getType()
The type of this reservation.
|
boolean |
hasLabels()
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
boolean |
hasPrincipal()
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
boolean |
hasRole()
The role to which this reservation is made for.
|
boolean |
hasType()
The type of this reservation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Resource.ReservationInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Resource.ReservationInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Resource.ReservationInfo.Builder |
mergeLabels(Protos.Labels value)
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.Resource.ReservationInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Resource.ReservationInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.ReservationInfo.Builder |
setLabels(Protos.Labels.Builder builderForValue)
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.Resource.ReservationInfo.Builder |
setLabels(Protos.Labels value)
Labels are free-form key value pairs that can be used to
associate arbitrary metadata with a reserved resource.
|
Protos.Resource.ReservationInfo.Builder |
setPrincipal(java.lang.String value)
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
Protos.Resource.ReservationInfo.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
Indicates the principal, if any, of the framework or operator
that reserved this resource.
|
Protos.Resource.ReservationInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Resource.ReservationInfo.Builder |
setRole(java.lang.String value)
The role to which this reservation is made for.
|
Protos.Resource.ReservationInfo.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
The role to which this reservation is made for.
|
Protos.Resource.ReservationInfo.Builder |
setType(Protos.Resource.ReservationInfo.Type value)
The type of this reservation.
|
Protos.Resource.ReservationInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Resource.ReservationInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Resource.ReservationInfo getDefaultInstanceForType()
public Protos.Resource.ReservationInfo build()
public Protos.Resource.ReservationInfo buildPartial()
public Protos.Resource.ReservationInfo.Builder clone()
public Protos.Resource.ReservationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.ReservationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Resource.ReservationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Resource.ReservationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Resource.ReservationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.ReservationInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Resource.ReservationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasType()
The type of this reservation. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional .mesos.Resource.ReservationInfo.Type type = 4;
hasType
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Type getType()
The type of this reservation. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional .mesos.Resource.ReservationInfo.Type type = 4;
getType
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setType(Protos.Resource.ReservationInfo.Type value)
The type of this reservation. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional .mesos.Resource.ReservationInfo.Type type = 4;
public Protos.Resource.ReservationInfo.Builder clearType()
The type of this reservation. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional .mesos.Resource.ReservationInfo.Type type = 4;
public boolean hasRole()
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
hasRole
in interface Protos.Resource.ReservationInfoOrBuilder
public java.lang.String getRole()
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
getRole
in interface Protos.Resource.ReservationInfoOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
getRoleBytes
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setRole(java.lang.String value)
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
public Protos.Resource.ReservationInfo.Builder clearRole()
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
public Protos.Resource.ReservationInfo.Builder setRoleBytes(com.google.protobuf.ByteString value)
The role to which this reservation is made for. NOTE: This field must not be set for `Resource.reservation`. See the 'Resource Format' section for more details.
optional string role = 3;
public boolean hasPrincipal()
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
hasPrincipal
in interface Protos.Resource.ReservationInfoOrBuilder
public java.lang.String getPrincipal()
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
getPrincipal
in interface Protos.Resource.ReservationInfoOrBuilder
public com.google.protobuf.ByteString getPrincipalBytes()
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
getPrincipalBytes
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setPrincipal(java.lang.String value)
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
public Protos.Resource.ReservationInfo.Builder clearPrincipal()
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
public Protos.Resource.ReservationInfo.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
optional string principal = 1;
public boolean hasLabels()
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
hasLabels
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Labels getLabels()
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
getLabels
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels value)
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
public Protos.Resource.ReservationInfo.Builder mergeLabels(Protos.Labels value)
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
public Protos.Resource.ReservationInfo.Builder clearLabels()
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
public Protos.Labels.Builder getLabelsBuilder()
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
public Protos.LabelsOrBuilder getLabelsOrBuilder()
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given slave. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 2;
getLabelsOrBuilder
in interface Protos.Resource.ReservationInfoOrBuilder
public final Protos.Resource.ReservationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Resource.ReservationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)