public static final class Protos.Resource.ReservationInfo extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Protos.Resource.ReservationInfo.Builder
Describes a reservation.
|
static class |
Protos.Resource.ReservationInfo.Type
Protobuf enum
mesos.Resource.ReservationInfo.Type |
Modifier and Type | Field and Description |
---|---|
static int |
LABELS_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PRINCIPAL_FIELD_NUMBER |
static int |
ROLE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Resource.ReservationInfo |
getDefaultInstance() |
Protos.Resource.ReservationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.Labels |
getLabels()
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.
|
<any> |
getParserForType() |
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.
|
int |
getSerializedSize() |
Protos.Resource.ReservationInfo.Type |
getType()
The type of this reservation.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static Protos.Resource.ReservationInfo.Builder |
newBuilder() |
static Protos.Resource.ReservationInfo.Builder |
newBuilder(Protos.Resource.ReservationInfo prototype) |
Protos.Resource.ReservationInfo.Builder |
newBuilderForType() |
protected Protos.Resource.ReservationInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Resource.ReservationInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Resource.ReservationInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.ReservationInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.ReservationInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Resource.ReservationInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.ReservationInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Resource.ReservationInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.ReservationInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Resource.ReservationInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.ReservationInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Resource.ReservationInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int TYPE_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
public static final int PRINCIPAL_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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 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 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 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.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 boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Resource.ReservationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.ReservationInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.ReservationInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.ReservationInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.ReservationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.ReservationInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Resource.ReservationInfo.Builder newBuilderForType()
public static Protos.Resource.ReservationInfo.Builder newBuilder()
public static Protos.Resource.ReservationInfo.Builder newBuilder(Protos.Resource.ReservationInfo prototype)
public Protos.Resource.ReservationInfo.Builder toBuilder()
protected Protos.Resource.ReservationInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Resource.ReservationInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Resource.ReservationInfo getDefaultInstanceForType()