public static final class Protos.Attribute.Builder extends <any> implements Protos.AttributeOrBuilder
Describes an attribute that can be set on a machine. For now, attributes and resources share the same "value" type, but this may change in the future and attributes may only be string based.Protobuf type
mesos.Attribute
Modifier and Type | Method and Description |
---|---|
Protos.Attribute.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Attribute |
build() |
Protos.Attribute |
buildPartial() |
Protos.Attribute.Builder |
clear() |
Protos.Attribute.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Attribute.Builder |
clearName()
required string name = 1; |
Protos.Attribute.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Attribute.Builder |
clearRanges()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Attribute.Builder |
clearScalar()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Attribute.Builder |
clearSet()
optional .mesos.Value.Set set = 6; |
Protos.Attribute.Builder |
clearText()
optional .mesos.Value.Text text = 5; |
Protos.Attribute.Builder |
clearType()
required .mesos.Value.Type type = 2; |
Protos.Attribute.Builder |
clone() |
Protos.Attribute |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
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.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 = 6; |
Protos.Value.Set.Builder |
getSetBuilder()
optional .mesos.Value.Set set = 6; |
Protos.Value.SetOrBuilder |
getSetOrBuilder()
optional .mesos.Value.Set set = 6; |
Protos.Value.Text |
getText()
optional .mesos.Value.Text text = 5; |
Protos.Value.Text.Builder |
getTextBuilder()
optional .mesos.Value.Text text = 5; |
Protos.Value.TextOrBuilder |
getTextOrBuilder()
optional .mesos.Value.Text text = 5; |
Protos.Value.Type |
getType()
required .mesos.Value.Type type = 2; |
boolean |
hasName()
required string name = 1; |
boolean |
hasRanges()
optional .mesos.Value.Ranges ranges = 4; |
boolean |
hasScalar()
optional .mesos.Value.Scalar scalar = 3; |
boolean |
hasSet()
optional .mesos.Value.Set set = 6; |
boolean |
hasText()
optional .mesos.Value.Text text = 5; |
boolean |
hasType()
required .mesos.Value.Type type = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Attribute.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Attribute.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Attribute.Builder |
mergeRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Attribute.Builder |
mergeScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Attribute.Builder |
mergeSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 6; |
Protos.Attribute.Builder |
mergeText(Protos.Value.Text value)
optional .mesos.Value.Text text = 5; |
Protos.Attribute.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Attribute.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Attribute.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Attribute.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Attribute.Builder |
setRanges(Protos.Value.Ranges.Builder builderForValue)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Attribute.Builder |
setRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4; |
Protos.Attribute.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Attribute.Builder |
setScalar(Protos.Value.Scalar.Builder builderForValue)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Attribute.Builder |
setScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3; |
Protos.Attribute.Builder |
setSet(Protos.Value.Set.Builder builderForValue)
optional .mesos.Value.Set set = 6; |
Protos.Attribute.Builder |
setSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 6; |
Protos.Attribute.Builder |
setText(Protos.Value.Text.Builder builderForValue)
optional .mesos.Value.Text text = 5; |
Protos.Attribute.Builder |
setText(Protos.Value.Text value)
optional .mesos.Value.Text text = 5; |
Protos.Attribute.Builder |
setType(Protos.Value.Type value)
required .mesos.Value.Type type = 2; |
Protos.Attribute.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.Attribute.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Attribute getDefaultInstanceForType()
public Protos.Attribute build()
public Protos.Attribute buildPartial()
public Protos.Attribute.Builder clone()
public Protos.Attribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Attribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Attribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Attribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Attribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Attribute.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Attribute.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.AttributeOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.AttributeOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Attribute.Builder clearName()
required string name = 1;
public Protos.Attribute.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasType()
required .mesos.Value.Type type = 2;
hasType
in interface Protos.AttributeOrBuilder
public Protos.Value.Type getType()
required .mesos.Value.Type type = 2;
getType
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setType(Protos.Value.Type value)
required .mesos.Value.Type type = 2;
public Protos.Attribute.Builder clearType()
required .mesos.Value.Type type = 2;
public boolean hasScalar()
optional .mesos.Value.Scalar scalar = 3;
hasScalar
in interface Protos.AttributeOrBuilder
public Protos.Value.Scalar getScalar()
optional .mesos.Value.Scalar scalar = 3;
getScalar
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3;
public Protos.Attribute.Builder setScalar(Protos.Value.Scalar.Builder builderForValue)
optional .mesos.Value.Scalar scalar = 3;
public Protos.Attribute.Builder mergeScalar(Protos.Value.Scalar value)
optional .mesos.Value.Scalar scalar = 3;
public Protos.Attribute.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.AttributeOrBuilder
public boolean hasRanges()
optional .mesos.Value.Ranges ranges = 4;
hasRanges
in interface Protos.AttributeOrBuilder
public Protos.Value.Ranges getRanges()
optional .mesos.Value.Ranges ranges = 4;
getRanges
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4;
public Protos.Attribute.Builder setRanges(Protos.Value.Ranges.Builder builderForValue)
optional .mesos.Value.Ranges ranges = 4;
public Protos.Attribute.Builder mergeRanges(Protos.Value.Ranges value)
optional .mesos.Value.Ranges ranges = 4;
public Protos.Attribute.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.AttributeOrBuilder
public boolean hasSet()
optional .mesos.Value.Set set = 6;
hasSet
in interface Protos.AttributeOrBuilder
public Protos.Value.Set getSet()
optional .mesos.Value.Set set = 6;
getSet
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 6;
public Protos.Attribute.Builder setSet(Protos.Value.Set.Builder builderForValue)
optional .mesos.Value.Set set = 6;
public Protos.Attribute.Builder mergeSet(Protos.Value.Set value)
optional .mesos.Value.Set set = 6;
public Protos.Attribute.Builder clearSet()
optional .mesos.Value.Set set = 6;
public Protos.Value.Set.Builder getSetBuilder()
optional .mesos.Value.Set set = 6;
public Protos.Value.SetOrBuilder getSetOrBuilder()
optional .mesos.Value.Set set = 6;
getSetOrBuilder
in interface Protos.AttributeOrBuilder
public boolean hasText()
optional .mesos.Value.Text text = 5;
hasText
in interface Protos.AttributeOrBuilder
public Protos.Value.Text getText()
optional .mesos.Value.Text text = 5;
getText
in interface Protos.AttributeOrBuilder
public Protos.Attribute.Builder setText(Protos.Value.Text value)
optional .mesos.Value.Text text = 5;
public Protos.Attribute.Builder setText(Protos.Value.Text.Builder builderForValue)
optional .mesos.Value.Text text = 5;
public Protos.Attribute.Builder mergeText(Protos.Value.Text value)
optional .mesos.Value.Text text = 5;
public Protos.Attribute.Builder clearText()
optional .mesos.Value.Text text = 5;
public Protos.Value.Text.Builder getTextBuilder()
optional .mesos.Value.Text text = 5;
public Protos.Value.TextOrBuilder getTextOrBuilder()
optional .mesos.Value.Text text = 5;
getTextOrBuilder
in interface Protos.AttributeOrBuilder
public final Protos.Attribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Attribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)