public static final class Protos.WeightInfo.Builder extends <any> implements Protos.WeightInfoOrBuilder
Named WeightInfo to indicate resource allocation priority between the different roles.Protobuf type
mesos.WeightInfo
Modifier and Type | Method and Description |
---|---|
Protos.WeightInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.WeightInfo |
build() |
Protos.WeightInfo |
buildPartial() |
Protos.WeightInfo.Builder |
clear() |
Protos.WeightInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.WeightInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.WeightInfo.Builder |
clearRole()
Related role name.
|
Protos.WeightInfo.Builder |
clearWeight()
required double weight = 1; |
Protos.WeightInfo.Builder |
clone() |
Protos.WeightInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getRole()
Related role name.
|
com.google.protobuf.ByteString |
getRoleBytes()
Related role name.
|
double |
getWeight()
required double weight = 1; |
boolean |
hasRole()
Related role name.
|
boolean |
hasWeight()
required double weight = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.WeightInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.WeightInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.WeightInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.WeightInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.WeightInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.WeightInfo.Builder |
setRole(java.lang.String value)
Related role name.
|
Protos.WeightInfo.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Related role name.
|
Protos.WeightInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.WeightInfo.Builder |
setWeight(double value)
required double weight = 1; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.WeightInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.WeightInfo getDefaultInstanceForType()
public Protos.WeightInfo build()
public Protos.WeightInfo buildPartial()
public Protos.WeightInfo.Builder clone()
public Protos.WeightInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.WeightInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.WeightInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.WeightInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.WeightInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.WeightInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.WeightInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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 Protos.WeightInfo.Builder setWeight(double value)
required double weight = 1;
public Protos.WeightInfo.Builder clearWeight()
required double weight = 1;
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 Protos.WeightInfo.Builder setRole(java.lang.String value)
Related role name.
optional string role = 2;
public Protos.WeightInfo.Builder clearRole()
Related role name.
optional string role = 2;
public Protos.WeightInfo.Builder setRoleBytes(com.google.protobuf.ByteString value)
Related role name.
optional string role = 2;
public final Protos.WeightInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.WeightInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)