public static final class Protos.WeightInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.WeightInfoOrBuilder
Named WeightInfo to indicate resource allocation priority between the different roles.Protobuf type
mesos.WeightInfo
Modifier and Type | Class and Description |
---|---|
static class |
Protos.WeightInfo.Builder
Named WeightInfo to indicate resource allocation
priority between the different roles.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
ROLE_FIELD_NUMBER |
static int |
WEIGHT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.WeightInfo |
getDefaultInstance() |
Protos.WeightInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
java.lang.String |
getRole()
Related role name.
|
com.google.protobuf.ByteString |
getRoleBytes()
Related role name.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getWeight()
required double weight = 1; |
int |
hashCode() |
boolean |
hasRole()
Related role name.
|
boolean |
hasWeight()
required double weight = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.WeightInfo.Builder |
newBuilder() |
static Protos.WeightInfo.Builder |
newBuilder(Protos.WeightInfo prototype) |
Protos.WeightInfo.Builder |
newBuilderForType() |
protected Protos.WeightInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.WeightInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.WeightInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.WeightInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.WeightInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.WeightInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.WeightInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.WeightInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.WeightInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.WeightInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.WeightInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.WeightInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int WEIGHT_FIELD_NUMBER
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 hasWeight()
required double weight = 1;
hasWeight
in interface Protos.WeightInfoOrBuilder
public double getWeight()
required double weight = 1;
getWeight
in interface Protos.WeightInfoOrBuilder
public boolean hasRole()
Related role name.
optional string role = 2;
hasRole
in interface Protos.WeightInfoOrBuilder
public java.lang.String getRole()
Related role name.
optional string role = 2;
getRole
in interface Protos.WeightInfoOrBuilder
public com.google.protobuf.ByteString getRoleBytes()
Related role name.
optional string role = 2;
getRoleBytes
in interface Protos.WeightInfoOrBuilder
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.WeightInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.WeightInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.WeightInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.WeightInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.WeightInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.WeightInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.WeightInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.WeightInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.WeightInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.WeightInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.WeightInfo.Builder newBuilderForType()
public static Protos.WeightInfo.Builder newBuilder()
public static Protos.WeightInfo.Builder newBuilder(Protos.WeightInfo prototype)
public Protos.WeightInfo.Builder toBuilder()
protected Protos.WeightInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.WeightInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.WeightInfo getDefaultInstanceForType()