public static final class Protos.Role extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Protos.Role.Builder
Describes a Role.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FRAMEWORKS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RESOURCES_FIELD_NUMBER |
static int |
WEIGHT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Role |
getDefaultInstance() |
Protos.Role |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.FrameworkID |
getFrameworks(int index)
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; |
<any> |
getParserForType() |
Protos.Resource |
getResources(int index)
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getWeight()
required double weight = 2; |
int |
hashCode() |
boolean |
hasName()
required string name = 1; |
boolean |
hasWeight()
required double weight = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Role.Builder |
newBuilder() |
static Protos.Role.Builder |
newBuilder(Protos.Role prototype) |
Protos.Role.Builder |
newBuilderForType() |
protected Protos.Role.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Role |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Role |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Role |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Role |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Role |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Role |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Role |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Role |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Role |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Role |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Role.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int NAME_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
public static final int FRAMEWORKS_FIELD_NUMBER
public static final int RESOURCES_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 hasName()
required string name = 1;hasName in interface Protos.RoleOrBuilderpublic java.lang.String getName()
required string name = 1;getName in interface Protos.RoleOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
required string name = 1;getNameBytes in interface Protos.RoleOrBuilderpublic boolean hasWeight()
required double weight = 2;hasWeight in interface Protos.RoleOrBuilderpublic double getWeight()
required double weight = 2;getWeight in interface Protos.RoleOrBuilderpublic java.util.List<Protos.FrameworkID> getFrameworksList()
repeated .mesos.FrameworkID frameworks = 3;getFrameworksList in interface Protos.RoleOrBuilderpublic java.util.List<? extends Protos.FrameworkIDOrBuilder> getFrameworksOrBuilderList()
repeated .mesos.FrameworkID frameworks = 3;getFrameworksOrBuilderList in interface Protos.RoleOrBuilderpublic int getFrameworksCount()
repeated .mesos.FrameworkID frameworks = 3;getFrameworksCount in interface Protos.RoleOrBuilderpublic Protos.FrameworkID getFrameworks(int index)
repeated .mesos.FrameworkID frameworks = 3;getFrameworks in interface Protos.RoleOrBuilderpublic Protos.FrameworkIDOrBuilder getFrameworksOrBuilder(int index)
repeated .mesos.FrameworkID frameworks = 3;getFrameworksOrBuilder in interface Protos.RoleOrBuilderpublic 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.RoleOrBuilderpublic 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.RoleOrBuilderpublic 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.RoleOrBuilderpublic 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.RoleOrBuilderpublic 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.RoleOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Role parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Role parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Role parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Role parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Role parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Role parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Role parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Role parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Role parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Role parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.Role.Builder newBuilderForType()
public static Protos.Role.Builder newBuilder()
public static Protos.Role.Builder newBuilder(Protos.Role prototype)
public Protos.Role.Builder toBuilder()
protected Protos.Role.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Role getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Role getDefaultInstanceForType()