public static final class Protos.Resource.AllocationInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.Resource.AllocationInfoOrBuilder
This was initially introduced to support MULTI_ROLE capable frameworks. Frameworks that are not MULTI_ROLE capable can continue to assume that the offered resources are allocated to their role.Protobuf type
mesos.Resource.AllocationInfo
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Resource.AllocationInfo.Builder
This was initially introduced to support MULTI_ROLE capable
frameworks.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
ROLE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Resource.AllocationInfo |
getDefaultInstance() |
Protos.Resource.AllocationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
java.lang.String |
getRole()
If set, this resource is allocated to a role.
|
com.google.protobuf.ByteString |
getRoleBytes()
If set, this resource is allocated to a role.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRole()
If set, this resource is allocated to a role.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Resource.AllocationInfo.Builder |
newBuilder() |
static Protos.Resource.AllocationInfo.Builder |
newBuilder(Protos.Resource.AllocationInfo prototype) |
Protos.Resource.AllocationInfo.Builder |
newBuilderForType() |
protected Protos.Resource.AllocationInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Resource.AllocationInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Resource.AllocationInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.AllocationInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.AllocationInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Resource.AllocationInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.AllocationInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Resource.AllocationInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.AllocationInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Resource.AllocationInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Resource.AllocationInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Resource.AllocationInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int ROLE_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 hasRole()
If set, this resource is allocated to a role. Note that in the future, this may be unset and the scheduler may be responsible for allocating to one of its roles.
optional string role = 1;
hasRole
in interface Protos.Resource.AllocationInfoOrBuilder
public java.lang.String getRole()
If set, this resource is allocated to a role. Note that in the future, this may be unset and the scheduler may be responsible for allocating to one of its roles.
optional string role = 1;
getRole
in interface Protos.Resource.AllocationInfoOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
If set, this resource is allocated to a role. Note that in the future, this may be unset and the scheduler may be responsible for allocating to one of its roles.
optional string role = 1;
getRoleBytes
in interface Protos.Resource.AllocationInfoOrBuilder
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.AllocationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.AllocationInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.AllocationInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.AllocationInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.AllocationInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Resource.AllocationInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.AllocationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.AllocationInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Resource.AllocationInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Resource.AllocationInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Resource.AllocationInfo.Builder newBuilderForType()
public static Protos.Resource.AllocationInfo.Builder newBuilder()
public static Protos.Resource.AllocationInfo.Builder newBuilder(Protos.Resource.AllocationInfo prototype)
public Protos.Resource.AllocationInfo.Builder toBuilder()
protected Protos.Resource.AllocationInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Resource.AllocationInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Resource.AllocationInfo getDefaultInstanceForType()