public static final class Protos.Role.Builder extends <any> implements Protos.RoleOrBuilder
Describes a Role. Roles can be used to specify that certain resources are reserved for the use of one or more frameworks.Protobuf type
mesos.Role
Modifier and Type | Method and Description |
---|---|
Protos.Role.Builder |
addAllFrameworks(java.lang.Iterable<? extends Protos.FrameworkID> values)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
addFrameworks(int index,
Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
addFrameworks(int index,
Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
addFrameworks(Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
addFrameworks(Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.FrameworkID.Builder |
addFrameworksBuilder()
repeated .mesos.FrameworkID frameworks = 3; |
Protos.FrameworkID.Builder |
addFrameworksBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Role.Builder |
addResources(int index,
Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
addResources(int index,
Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
addResources(Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
addResources(Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Resource.Builder |
addResourcesBuilder()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Resource.Builder |
addResourcesBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role |
build() |
Protos.Role |
buildPartial() |
Protos.Role.Builder |
clear() |
Protos.Role.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Role.Builder |
clearFrameworks()
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
clearName()
required string name = 1; |
Protos.Role.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Role.Builder |
clearResources()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
clearWeight()
required double weight = 2; |
Protos.Role.Builder |
clone() |
Protos.Role |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.FrameworkID |
getFrameworks(int index)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.FrameworkID.Builder |
getFrameworksBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3; |
java.util.List<Protos.FrameworkID.Builder> |
getFrameworksBuilderList()
repeated .mesos.FrameworkID frameworks = 3; |
int |
getFrameworksCount()
repeated .mesos.FrameworkID frameworks = 3; |
java.util.List<Protos.FrameworkID> |
getFrameworksList()
repeated .mesos.FrameworkID frameworks = 3; |
Protos.FrameworkIDOrBuilder |
getFrameworksOrBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3; |
java.util.List<? extends Protos.FrameworkIDOrBuilder> |
getFrameworksOrBuilderList()
repeated .mesos.FrameworkID frameworks = 3; |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
Protos.Resource |
getResources(int index)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Resource.Builder |
getResourcesBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
java.util.List<Protos.Resource.Builder> |
getResourcesBuilderList()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
int |
getResourcesCount()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
java.util.List<Protos.Resource> |
getResourcesList()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
double |
getWeight()
required double weight = 2; |
boolean |
hasName()
required string name = 1; |
boolean |
hasWeight()
required double weight = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Role.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Role.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Role.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Role.Builder |
removeFrameworks(int index)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
removeResources(int index)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Role.Builder |
setFrameworks(int index,
Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
setFrameworks(int index,
Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3; |
Protos.Role.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Role.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Role.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Role.Builder |
setResources(int index,
Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
setResources(int index,
Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota,
consumed quota, allocated, offered, and reserved resource
quantity fields.
|
Protos.Role.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Role.Builder |
setWeight(double value)
required double weight = 2; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Role.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Role getDefaultInstanceForType()
public Protos.Role build()
public Protos.Role buildPartial()
public Protos.Role.Builder clone()
public Protos.Role.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Role.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Role.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Role.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Role.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Role.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Role.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasName()
required string name = 1;
hasName
in interface Protos.RoleOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.RoleOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.RoleOrBuilder
public Protos.Role.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Role.Builder clearName()
required string name = 1;
public Protos.Role.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasWeight()
required double weight = 2;
hasWeight
in interface Protos.RoleOrBuilder
public double getWeight()
required double weight = 2;
getWeight
in interface Protos.RoleOrBuilder
public Protos.Role.Builder setWeight(double value)
required double weight = 2;
public Protos.Role.Builder clearWeight()
required double weight = 2;
public java.util.List<Protos.FrameworkID> getFrameworksList()
repeated .mesos.FrameworkID frameworks = 3;
getFrameworksList
in interface Protos.RoleOrBuilder
public int getFrameworksCount()
repeated .mesos.FrameworkID frameworks = 3;
getFrameworksCount
in interface Protos.RoleOrBuilder
public Protos.FrameworkID getFrameworks(int index)
repeated .mesos.FrameworkID frameworks = 3;
getFrameworks
in interface Protos.RoleOrBuilder
public Protos.Role.Builder setFrameworks(int index, Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder setFrameworks(int index, Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder addFrameworks(Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder addFrameworks(int index, Protos.FrameworkID value)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder addFrameworks(Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder addFrameworks(int index, Protos.FrameworkID.Builder builderForValue)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder addAllFrameworks(java.lang.Iterable<? extends Protos.FrameworkID> values)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder clearFrameworks()
repeated .mesos.FrameworkID frameworks = 3;
public Protos.Role.Builder removeFrameworks(int index)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.FrameworkID.Builder getFrameworksBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3;
public Protos.FrameworkIDOrBuilder getFrameworksOrBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3;
getFrameworksOrBuilder
in interface Protos.RoleOrBuilder
public java.util.List<? extends Protos.FrameworkIDOrBuilder> getFrameworksOrBuilderList()
repeated .mesos.FrameworkID frameworks = 3;
getFrameworksOrBuilderList
in interface Protos.RoleOrBuilder
public Protos.FrameworkID.Builder addFrameworksBuilder()
repeated .mesos.FrameworkID frameworks = 3;
public Protos.FrameworkID.Builder addFrameworksBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3;
public java.util.List<Protos.FrameworkID.Builder> getFrameworksBuilderList()
repeated .mesos.FrameworkID frameworks = 3;
public java.util.List<Protos.Resource> getResourcesList()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
getResourcesList
in interface Protos.RoleOrBuilder
public int getResourcesCount()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
getResourcesCount
in interface Protos.RoleOrBuilder
public Protos.Resource getResources(int index)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
getResources
in interface Protos.RoleOrBuilder
public Protos.Role.Builder setResources(int index, Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder setResources(int index, Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder addResources(Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder addResources(int index, Protos.Resource value)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder addResources(Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder addResources(int index, Protos.Resource.Builder builderForValue)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder clearResources()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Role.Builder removeResources(int index)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Resource.Builder getResourcesBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
getResourcesOrBuilder
in interface Protos.RoleOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
getResourcesOrBuilderList
in interface Protos.RoleOrBuilder
public Protos.Resource.Builder addResourcesBuilder()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public Protos.Resource.Builder addResourcesBuilder(int index)
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
TODO(bmahler): Deprecate `resources` and introduce quota, consumed quota, allocated, offered, and reserved resource quantity fields. This is blocked by MESOS-9497 since the computation of these quantities is currently expensive.
repeated .mesos.Resource resources = 4;
public final Protos.Role.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Role.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)