public static final class Protos.Resource.AllocationInfo.Builder extends <any> 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 | Method and Description |
|---|---|
Protos.Resource.AllocationInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.AllocationInfo |
build() |
Protos.Resource.AllocationInfo |
buildPartial() |
Protos.Resource.AllocationInfo.Builder |
clear() |
Protos.Resource.AllocationInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Resource.AllocationInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Resource.AllocationInfo.Builder |
clearRole()
If set, this resource is allocated to a role.
|
Protos.Resource.AllocationInfo.Builder |
clone() |
Protos.Resource.AllocationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
boolean |
hasRole()
If set, this resource is allocated to a role.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Resource.AllocationInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Resource.AllocationInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Resource.AllocationInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Resource.AllocationInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.AllocationInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Resource.AllocationInfo.Builder |
setRole(java.lang.String value)
If set, this resource is allocated to a role.
|
Protos.Resource.AllocationInfo.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
If set, this resource is allocated to a role.
|
Protos.Resource.AllocationInfo.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.AllocationInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Resource.AllocationInfo getDefaultInstanceForType()
public Protos.Resource.AllocationInfo build()
public Protos.Resource.AllocationInfo buildPartial()
public Protos.Resource.AllocationInfo.Builder clone()
public Protos.Resource.AllocationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.AllocationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Resource.AllocationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Resource.AllocationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Resource.AllocationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.AllocationInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Resource.AllocationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic 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.AllocationInfoOrBuilderpublic 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.AllocationInfoOrBuilderpublic 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.AllocationInfoOrBuilderpublic Protos.Resource.AllocationInfo.Builder setRole(java.lang.String value)
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;public Protos.Resource.AllocationInfo.Builder clearRole()
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;public Protos.Resource.AllocationInfo.Builder setRoleBytes(com.google.protobuf.ByteString value)
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;public final Protos.Resource.AllocationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Resource.AllocationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)