public static final class Protos.Attribute extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Protos.Attribute.Builder
Describes an attribute that can be set on a machine.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RANGES_FIELD_NUMBER |
static int |
SCALAR_FIELD_NUMBER |
static int |
SET_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Attribute |
getDefaultInstance() |
Protos.Attribute |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
<any> |
getParserForType() |
Protos.Value.Ranges |
getRanges()
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.ScalarOrBuilder |
getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3; |
int |
getSerializedSize() |
Protos.Value.Set |
getSet()
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.TextOrBuilder |
getTextOrBuilder()
optional .mesos.Value.Text text = 5; |
Protos.Value.Type |
getType()
required .mesos.Value.Type type = 2; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static Protos.Attribute.Builder |
newBuilder() |
static Protos.Attribute.Builder |
newBuilder(Protos.Attribute prototype) |
Protos.Attribute.Builder |
newBuilderForType() |
protected Protos.Attribute.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Attribute |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Attribute |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Attribute |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Attribute |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Attribute |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Attribute |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Attribute |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Attribute |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Attribute |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Attribute |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Attribute.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int NAME_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int SCALAR_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER
public static final int SET_FIELD_NUMBER
public static final int TEXT_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.AttributeOrBuilderpublic java.lang.String getName()
required string name = 1;getName in interface Protos.AttributeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
required string name = 1;getNameBytes in interface Protos.AttributeOrBuilderpublic boolean hasType()
required .mesos.Value.Type type = 2;hasType in interface Protos.AttributeOrBuilderpublic Protos.Value.Type getType()
required .mesos.Value.Type type = 2;getType in interface Protos.AttributeOrBuilderpublic boolean hasScalar()
optional .mesos.Value.Scalar scalar = 3;hasScalar in interface Protos.AttributeOrBuilderpublic Protos.Value.Scalar getScalar()
optional .mesos.Value.Scalar scalar = 3;getScalar in interface Protos.AttributeOrBuilderpublic Protos.Value.ScalarOrBuilder getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3;getScalarOrBuilder in interface Protos.AttributeOrBuilderpublic boolean hasRanges()
optional .mesos.Value.Ranges ranges = 4;hasRanges in interface Protos.AttributeOrBuilderpublic Protos.Value.Ranges getRanges()
optional .mesos.Value.Ranges ranges = 4;getRanges in interface Protos.AttributeOrBuilderpublic Protos.Value.RangesOrBuilder getRangesOrBuilder()
optional .mesos.Value.Ranges ranges = 4;getRangesOrBuilder in interface Protos.AttributeOrBuilderpublic boolean hasSet()
optional .mesos.Value.Set set = 6;hasSet in interface Protos.AttributeOrBuilderpublic Protos.Value.Set getSet()
optional .mesos.Value.Set set = 6;getSet in interface Protos.AttributeOrBuilderpublic Protos.Value.SetOrBuilder getSetOrBuilder()
optional .mesos.Value.Set set = 6;getSetOrBuilder in interface Protos.AttributeOrBuilderpublic boolean hasText()
optional .mesos.Value.Text text = 5;hasText in interface Protos.AttributeOrBuilderpublic Protos.Value.Text getText()
optional .mesos.Value.Text text = 5;getText in interface Protos.AttributeOrBuilderpublic Protos.Value.TextOrBuilder getTextOrBuilder()
optional .mesos.Value.Text text = 5;getTextOrBuilder in interface Protos.AttributeOrBuilderpublic 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.Attribute parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Attribute parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Attribute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Attribute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Attribute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Attribute parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Attribute parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Attribute parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.Attribute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.Attribute.Builder newBuilderForType()
public static Protos.Attribute.Builder newBuilder()
public static Protos.Attribute.Builder newBuilder(Protos.Attribute prototype)
public Protos.Attribute.Builder toBuilder()
protected Protos.Attribute.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Attribute getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Attribute getDefaultInstanceForType()