public static final class Protos.Resource.Builder extends <any> implements Protos.ResourceOrBuilder
Describes a resource from a resource provider. The `name` field is a string like "cpus" or "mem" that indicates which kind of resource this is; the rest of the fields describe the properties of the resource. A resource can take on one of three types: scalar (double), a list of finite and discrete ranges (e.g., [1-10, 20-30]), or a set of items. A resource is described using the standard protocol buffer "union" trick. Note that "disk" and "mem" resources are scalar values expressed in megabytes. Fractional "cpus" values are allowed (e.g., "0.5"), which correspond to partial shares of a CPU.Protobuf type
mesos.Resource| Modifier and Type | Method and Description |
|---|---|
Protos.Resource.Builder |
addAllReservations(java.lang.Iterable<? extends Protos.Resource.ReservationInfo> values)
The stack of reservations.
|
Protos.Resource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.Builder |
addReservations(int index,
Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations.
|
Protos.Resource.Builder |
addReservations(int index,
Protos.Resource.ReservationInfo value)
The stack of reservations.
|
Protos.Resource.Builder |
addReservations(Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations.
|
Protos.Resource.Builder |
addReservations(Protos.Resource.ReservationInfo value)
The stack of reservations.
|
Protos.Resource.ReservationInfo.Builder |
addReservationsBuilder()
The stack of reservations.
|
Protos.Resource.ReservationInfo.Builder |
addReservationsBuilder(int index)
The stack of reservations.
|
Protos.Resource |
build() |
Protos.Resource |
buildPartial() |
Protos.Resource.Builder |
clear() |
Protos.Resource.Builder |
clearAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.Builder |
clearDisk()
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Resource.Builder |
clearName()
required string name = 1; |
Protos.Resource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Resource.Builder |
clearProviderId()
Specified if the resource comes from a particular resource provider.
|
Protos.Resource.Builder |
clearRanges()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.Builder |
clearReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.Builder |
clearReservations()
The stack of reservations.
|
Protos.Resource.Builder |
clearRevocable()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.Builder |
clearRole()
Deprecated.
|
Protos.Resource.Builder |
clearScalar()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Resource.Builder |
clearSet()
optional .mesos.Value.Set set = 5; |
Protos.Resource.Builder |
clearShared()
If this is set, the resources are shared, i.e.
|
Protos.Resource.Builder |
clearType()
required .mesos.Value.Type type = 2; |
Protos.Resource.Builder |
clone() |
Protos.Resource.AllocationInfo |
getAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.AllocationInfo.Builder |
getAllocationInfoBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.AllocationInfoOrBuilder |
getAllocationInfoOrBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.Resource.DiskInfo |
getDisk()
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.DiskInfo.Builder |
getDiskBuilder()
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.DiskInfoOrBuilder |
getDiskOrBuilder()
optional .mesos.Resource.DiskInfo disk = 7; |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
Protos.ResourceProviderID |
getProviderId()
Specified if the resource comes from a particular resource provider.
|
Protos.ResourceProviderID.Builder |
getProviderIdBuilder()
Specified if the resource comes from a particular resource provider.
|
Protos.ResourceProviderIDOrBuilder |
getProviderIdOrBuilder()
Specified if the resource comes from a particular resource provider.
|
Protos.Value.Ranges |
getRanges()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Value.Ranges.Builder |
getRangesBuilder()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Value.RangesOrBuilder |
getRangesOrBuilder()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.ReservationInfo |
getReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.ReservationInfo.Builder |
getReservationBuilder()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.ReservationInfoOrBuilder |
getReservationOrBuilder()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.ReservationInfo |
getReservations(int index)
The stack of reservations.
|
Protos.Resource.ReservationInfo.Builder |
getReservationsBuilder(int index)
The stack of reservations.
|
java.util.List<Protos.Resource.ReservationInfo.Builder> |
getReservationsBuilderList()
The stack of reservations.
|
int |
getReservationsCount()
The stack of reservations.
|
java.util.List<Protos.Resource.ReservationInfo> |
getReservationsList()
The stack of reservations.
|
Protos.Resource.ReservationInfoOrBuilder |
getReservationsOrBuilder(int index)
The stack of reservations.
|
java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> |
getReservationsOrBuilderList()
The stack of reservations.
|
Protos.Resource.RevocableInfo |
getRevocable()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.RevocableInfo.Builder |
getRevocableBuilder()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.RevocableInfoOrBuilder |
getRevocableOrBuilder()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
java.lang.String |
getRole()
Deprecated.
|
com.google.protobuf.ByteString |
getRoleBytes()
Deprecated.
|
Protos.Value.Scalar |
getScalar()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Value.Scalar.Builder |
getScalarBuilder()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Value.ScalarOrBuilder |
getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Value.Set |
getSet()
optional .mesos.Value.Set set = 5; |
Protos.Value.Set.Builder |
getSetBuilder()
optional .mesos.Value.Set set = 5; |
Protos.Value.SetOrBuilder |
getSetOrBuilder()
optional .mesos.Value.Set set = 5; |
Protos.Resource.SharedInfo |
getShared()
If this is set, the resources are shared, i.e.
|
Protos.Resource.SharedInfo.Builder |
getSharedBuilder()
If this is set, the resources are shared, i.e.
|
Protos.Resource.SharedInfoOrBuilder |
getSharedOrBuilder()
If this is set, the resources are shared, i.e.
|
Protos.Value.Type |
getType()
required .mesos.Value.Type type = 2; |
boolean |
hasAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
boolean |
hasDisk()
optional .mesos.Resource.DiskInfo disk = 7; |
boolean |
hasName()
required string name = 1; |
boolean |
hasProviderId()
Specified if the resource comes from a particular resource provider.
|
boolean |
hasRanges()
optional .mesos.Value.Ranges ranges = 4; |
boolean |
hasReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
boolean |
hasRevocable()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
boolean |
hasRole()
Deprecated.
|
boolean |
hasScalar()
optional .mesos.Value.Scalar scalar = 3; |
boolean |
hasSet()
optional .mesos.Value.Set set = 5; |
boolean |
hasShared()
If this is set, the resources are shared, i.e.
|
boolean |
hasType()
required .mesos.Value.Type type = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Resource.Builder |
mergeAllocationInfo(Protos.Resource.AllocationInfo value)
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.Builder |
mergeDisk(Protos.Resource.DiskInfo value)
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Resource.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Resource.Builder |
mergeProviderId(Protos.ResourceProviderID value)
Specified if the resource comes from a particular resource provider.
|
Protos.Resource.Builder |
mergeRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.Builder |
mergeReservation(Protos.Resource.ReservationInfo value)
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.Builder |
mergeRevocable(Protos.Resource.RevocableInfo value)
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.Builder |
mergeScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Resource.Builder |
mergeSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 5; |
Protos.Resource.Builder |
mergeShared(Protos.Resource.SharedInfo value)
If this is set, the resources are shared, i.e.
|
Protos.Resource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Resource.Builder |
removeReservations(int index)
The stack of reservations.
|
Protos.Resource.Builder |
setAllocationInfo(Protos.Resource.AllocationInfo.Builder builderForValue)
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.Builder |
setAllocationInfo(Protos.Resource.AllocationInfo value)
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.Builder |
setDisk(Protos.Resource.DiskInfo.Builder builderForValue)
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.Builder |
setDisk(Protos.Resource.DiskInfo value)
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Resource.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Resource.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Resource.Builder |
setProviderId(Protos.ResourceProviderID.Builder builderForValue)
Specified if the resource comes from a particular resource provider.
|
Protos.Resource.Builder |
setProviderId(Protos.ResourceProviderID value)
Specified if the resource comes from a particular resource provider.
|
Protos.Resource.Builder |
setRanges(Protos.Value.Ranges.Builder builderForValue)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.Builder |
setRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Resource.Builder |
setReservation(Protos.Resource.ReservationInfo.Builder builderForValue)
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.Builder |
setReservation(Protos.Resource.ReservationInfo value)
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.Builder |
setReservations(int index,
Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations.
|
Protos.Resource.Builder |
setReservations(int index,
Protos.Resource.ReservationInfo value)
The stack of reservations.
|
Protos.Resource.Builder |
setRevocable(Protos.Resource.RevocableInfo.Builder builderForValue)
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.Builder |
setRevocable(Protos.Resource.RevocableInfo value)
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.Builder |
setRole(java.lang.String value)
Deprecated.
|
Protos.Resource.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Deprecated.
|
Protos.Resource.Builder |
setScalar(Protos.Value.Scalar.Builder builderForValue)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Resource.Builder |
setScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Resource.Builder |
setSet(Protos.Value.Set.Builder builderForValue)
optional .mesos.Value.Set set = 5; |
Protos.Resource.Builder |
setSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 5; |
Protos.Resource.Builder |
setShared(Protos.Resource.SharedInfo.Builder builderForValue)
If this is set, the resources are shared, i.e.
|
Protos.Resource.Builder |
setShared(Protos.Resource.SharedInfo value)
If this is set, the resources are shared, i.e.
|
Protos.Resource.Builder |
setType(Protos.Value.Type value)
required .mesos.Value.Type type = 2; |
Protos.Resource.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.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Resource getDefaultInstanceForType()
public Protos.Resource build()
public Protos.Resource buildPartial()
public Protos.Resource.Builder clone()
public Protos.Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Resource.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasProviderId()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;hasProviderId in interface Protos.ResourceOrBuilderpublic Protos.ResourceProviderID getProviderId()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;getProviderId in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setProviderId(Protos.ResourceProviderID value)
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;public Protos.Resource.Builder setProviderId(Protos.ResourceProviderID.Builder builderForValue)
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;public Protos.Resource.Builder mergeProviderId(Protos.ResourceProviderID value)
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;public Protos.Resource.Builder clearProviderId()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;public Protos.ResourceProviderID.Builder getProviderIdBuilder()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;public Protos.ResourceProviderIDOrBuilder getProviderIdOrBuilder()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;getProviderIdOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasName()
required string name = 1;hasName in interface Protos.ResourceOrBuilderpublic java.lang.String getName()
required string name = 1;getName in interface Protos.ResourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
required string name = 1;getNameBytes in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setName(java.lang.String value)
required string name = 1;public Protos.Resource.Builder clearName()
required string name = 1;public Protos.Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;public boolean hasType()
required .mesos.Value.Type type = 2;hasType in interface Protos.ResourceOrBuilderpublic Protos.Value.Type getType()
required .mesos.Value.Type type = 2;getType in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setType(Protos.Value.Type value)
required .mesos.Value.Type type = 2;public Protos.Resource.Builder clearType()
required .mesos.Value.Type type = 2;public boolean hasScalar()
optional .mesos.Value.Scalar scalar = 3;hasScalar in interface Protos.ResourceOrBuilderpublic Protos.Value.Scalar getScalar()
optional .mesos.Value.Scalar scalar = 3;getScalar in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3;public Protos.Resource.Builder setScalar(Protos.Value.Scalar.Builder builderForValue)
optional .mesos.Value.Scalar scalar = 3;public Protos.Resource.Builder mergeScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3;public Protos.Resource.Builder clearScalar()
optional .mesos.Value.Scalar scalar = 3;public Protos.Value.Scalar.Builder getScalarBuilder()
optional .mesos.Value.Scalar scalar = 3;public Protos.Value.ScalarOrBuilder getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3;getScalarOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasRanges()
optional .mesos.Value.Ranges ranges = 4;hasRanges in interface Protos.ResourceOrBuilderpublic Protos.Value.Ranges getRanges()
optional .mesos.Value.Ranges ranges = 4;getRanges in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4;public Protos.Resource.Builder setRanges(Protos.Value.Ranges.Builder builderForValue)
optional .mesos.Value.Ranges ranges = 4;public Protos.Resource.Builder mergeRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4;public Protos.Resource.Builder clearRanges()
optional .mesos.Value.Ranges ranges = 4;public Protos.Value.Ranges.Builder getRangesBuilder()
optional .mesos.Value.Ranges ranges = 4;public Protos.Value.RangesOrBuilder getRangesOrBuilder()
optional .mesos.Value.Ranges ranges = 4;getRangesOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasSet()
optional .mesos.Value.Set set = 5;hasSet in interface Protos.ResourceOrBuilderpublic Protos.Value.Set getSet()
optional .mesos.Value.Set set = 5;getSet in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 5;public Protos.Resource.Builder setSet(Protos.Value.Set.Builder builderForValue)
optional .mesos.Value.Set set = 5;public Protos.Resource.Builder mergeSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 5;public Protos.Resource.Builder clearSet()
optional .mesos.Value.Set set = 5;public Protos.Value.Set.Builder getSetBuilder()
optional .mesos.Value.Set set = 5;public Protos.Value.SetOrBuilder getSetOrBuilder()
optional .mesos.Value.Set set = 5;getSetOrBuilder in interface Protos.ResourceOrBuilder@Deprecated public boolean hasRole()
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];hasRole in interface Protos.ResourceOrBuilder@Deprecated public java.lang.String getRole()
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];getRole in interface Protos.ResourceOrBuilder@Deprecated public com.google.protobuf.ByteString getRoleBytes()
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];getRoleBytes in interface Protos.ResourceOrBuilder@Deprecated public Protos.Resource.Builder setRole(java.lang.String value)
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];@Deprecated public Protos.Resource.Builder clearRole()
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];@Deprecated public Protos.Resource.Builder setRoleBytes(com.google.protobuf.ByteString value)
The role that this resource is reserved for. If "*", this indicates
that the resource is unreserved. Otherwise, the resource will only
be offered to frameworks that belong to this role.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];public boolean hasAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11;hasAllocationInfo in interface Protos.ResourceOrBuilderpublic Protos.Resource.AllocationInfo getAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11;getAllocationInfo in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setAllocationInfo(Protos.Resource.AllocationInfo value)
optional .mesos.Resource.AllocationInfo allocation_info = 11;public Protos.Resource.Builder setAllocationInfo(Protos.Resource.AllocationInfo.Builder builderForValue)
optional .mesos.Resource.AllocationInfo allocation_info = 11;public Protos.Resource.Builder mergeAllocationInfo(Protos.Resource.AllocationInfo value)
optional .mesos.Resource.AllocationInfo allocation_info = 11;public Protos.Resource.Builder clearAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11;public Protos.Resource.AllocationInfo.Builder getAllocationInfoBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11;public Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11;getAllocationInfoOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;hasReservation in interface Protos.ResourceOrBuilderpublic Protos.Resource.ReservationInfo getReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;getReservation in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setReservation(Protos.Resource.ReservationInfo value)
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;public Protos.Resource.Builder setReservation(Protos.Resource.ReservationInfo.Builder builderForValue)
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;public Protos.Resource.Builder mergeReservation(Protos.Resource.ReservationInfo value)
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;public Protos.Resource.Builder clearReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;public Protos.Resource.ReservationInfo.Builder getReservationBuilder()
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;public Protos.Resource.ReservationInfoOrBuilder getReservationOrBuilder()
If this is set, this resource was dynamically reserved by an
operator or a framework. Otherwise, this resource is either unreserved
or statically reserved by an operator via the --resources flag.
NOTE: Frameworks must not set this field if `reservations` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;getReservationOrBuilder in interface Protos.ResourceOrBuilderpublic java.util.List<Protos.Resource.ReservationInfo> getReservationsList()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;getReservationsList in interface Protos.ResourceOrBuilderpublic int getReservationsCount()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;getReservationsCount in interface Protos.ResourceOrBuilderpublic Protos.Resource.ReservationInfo getReservations(int index)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;getReservations in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setReservations(int index, Protos.Resource.ReservationInfo value)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder setReservations(int index, Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder addReservations(Protos.Resource.ReservationInfo value)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder addReservations(int index, Protos.Resource.ReservationInfo value)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder addReservations(Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder addReservations(int index, Protos.Resource.ReservationInfo.Builder builderForValue)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder addAllReservations(java.lang.Iterable<? extends Protos.Resource.ReservationInfo> values)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder clearReservations()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.Builder removeReservations(int index)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.ReservationInfo.Builder getReservationsBuilder(int index)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.ReservationInfoOrBuilder getReservationsOrBuilder(int index)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;getReservationsOrBuilder in interface Protos.ResourceOrBuilderpublic java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> getReservationsOrBuilderList()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;getReservationsOrBuilderList in interface Protos.ResourceOrBuilderpublic Protos.Resource.ReservationInfo.Builder addReservationsBuilder()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public Protos.Resource.ReservationInfo.Builder addReservationsBuilder(int index)
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public java.util.List<Protos.Resource.ReservationInfo.Builder> getReservationsBuilderList()
The stack of reservations. If this field is empty, it indicates that this
resource is unreserved. Otherwise, the resource is reserved. The first
`ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must
have `DYNAMIC`. One can create a new reservation on top of an existing
one by pushing a new `ReservationInfo` to the back. The last
`ReservationInfo` in this stack is the "current" reservation. The new
reservation's role must be a child of the current reservation's role.
NOTE: Frameworks must not set this field if `reservation` is set.
See the 'Resource Format' section for more details.
TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;public boolean hasDisk()
optional .mesos.Resource.DiskInfo disk = 7;hasDisk in interface Protos.ResourceOrBuilderpublic Protos.Resource.DiskInfo getDisk()
optional .mesos.Resource.DiskInfo disk = 7;getDisk in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setDisk(Protos.Resource.DiskInfo value)
optional .mesos.Resource.DiskInfo disk = 7;public Protos.Resource.Builder setDisk(Protos.Resource.DiskInfo.Builder builderForValue)
optional .mesos.Resource.DiskInfo disk = 7;public Protos.Resource.Builder mergeDisk(Protos.Resource.DiskInfo value)
optional .mesos.Resource.DiskInfo disk = 7;public Protos.Resource.Builder clearDisk()
optional .mesos.Resource.DiskInfo disk = 7;public Protos.Resource.DiskInfo.Builder getDiskBuilder()
optional .mesos.Resource.DiskInfo disk = 7;public Protos.Resource.DiskInfoOrBuilder getDiskOrBuilder()
optional .mesos.Resource.DiskInfo disk = 7;getDiskOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasRevocable()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;hasRevocable in interface Protos.ResourceOrBuilderpublic Protos.Resource.RevocableInfo getRevocable()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;getRevocable in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setRevocable(Protos.Resource.RevocableInfo value)
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;public Protos.Resource.Builder setRevocable(Protos.Resource.RevocableInfo.Builder builderForValue)
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;public Protos.Resource.Builder mergeRevocable(Protos.Resource.RevocableInfo value)
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;public Protos.Resource.Builder clearRevocable()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;public Protos.Resource.RevocableInfo.Builder getRevocableBuilder()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;public Protos.Resource.RevocableInfoOrBuilder getRevocableOrBuilder()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;getRevocableOrBuilder in interface Protos.ResourceOrBuilderpublic boolean hasShared()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;hasShared in interface Protos.ResourceOrBuilderpublic Protos.Resource.SharedInfo getShared()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;getShared in interface Protos.ResourceOrBuilderpublic Protos.Resource.Builder setShared(Protos.Resource.SharedInfo value)
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;public Protos.Resource.Builder setShared(Protos.Resource.SharedInfo.Builder builderForValue)
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;public Protos.Resource.Builder mergeShared(Protos.Resource.SharedInfo value)
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;public Protos.Resource.Builder clearShared()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;public Protos.Resource.SharedInfo.Builder getSharedBuilder()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;public Protos.Resource.SharedInfoOrBuilder getSharedOrBuilder()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;getSharedOrBuilder in interface Protos.ResourceOrBuilderpublic final Protos.Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)