public static final class Protos.Label.Builder extends <any> implements Protos.LabelOrBuilder
Key, value pair used to store free form user-data.Protobuf type
mesos.Label
Modifier and Type | Method and Description |
---|---|
Protos.Label.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Label |
build() |
Protos.Label |
buildPartial() |
Protos.Label.Builder |
clear() |
Protos.Label.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Label.Builder |
clearKey()
required string key = 1; |
Protos.Label.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Label.Builder |
clearValue()
optional string value = 2; |
Protos.Label.Builder |
clone() |
Protos.Label |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getKey()
required string key = 1; |
com.google.protobuf.ByteString |
getKeyBytes()
required string key = 1; |
java.lang.String |
getValue()
optional string value = 2; |
com.google.protobuf.ByteString |
getValueBytes()
optional string value = 2; |
boolean |
hasKey()
required string key = 1; |
boolean |
hasValue()
optional string value = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Label.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Label.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Label.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Label.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Label.Builder |
setKey(java.lang.String value)
required string key = 1; |
Protos.Label.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
required string key = 1; |
Protos.Label.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Label.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Label.Builder |
setValue(java.lang.String value)
optional string value = 2; |
Protos.Label.Builder |
setValueBytes(com.google.protobuf.ByteString value)
optional string value = 2; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Label.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Label getDefaultInstanceForType()
public Protos.Label build()
public Protos.Label buildPartial()
public Protos.Label.Builder clone()
public Protos.Label.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Label.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Label.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Label.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Label.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Label.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Label.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasKey()
required string key = 1;
hasKey
in interface Protos.LabelOrBuilder
public java.lang.String getKey()
required string key = 1;
getKey
in interface Protos.LabelOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
required string key = 1;
getKeyBytes
in interface Protos.LabelOrBuilder
public Protos.Label.Builder setKey(java.lang.String value)
required string key = 1;
public Protos.Label.Builder clearKey()
required string key = 1;
public Protos.Label.Builder setKeyBytes(com.google.protobuf.ByteString value)
required string key = 1;
public boolean hasValue()
optional string value = 2;
hasValue
in interface Protos.LabelOrBuilder
public java.lang.String getValue()
optional string value = 2;
getValue
in interface Protos.LabelOrBuilder
public com.google.protobuf.ByteString getValueBytes()
optional string value = 2;
getValueBytes
in interface Protos.LabelOrBuilder
public Protos.Label.Builder setValue(java.lang.String value)
optional string value = 2;
public Protos.Label.Builder clearValue()
optional string value = 2;
public Protos.Label.Builder setValueBytes(com.google.protobuf.ByteString value)
optional string value = 2;
public final Protos.Label.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Label.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)