public static final class Protos.Flag.Builder extends <any> implements Protos.FlagOrBuilder
Flag consists of a name and optionally its value.Protobuf type
mesos.Flag
Modifier and Type | Method and Description |
---|---|
Protos.Flag.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Flag |
build() |
Protos.Flag |
buildPartial() |
Protos.Flag.Builder |
clear() |
Protos.Flag.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Flag.Builder |
clearName()
required string name = 1; |
Protos.Flag.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Flag.Builder |
clearValue()
optional string value = 2; |
Protos.Flag.Builder |
clone() |
Protos.Flag |
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; |
java.lang.String |
getValue()
optional string value = 2; |
com.google.protobuf.ByteString |
getValueBytes()
optional string value = 2; |
boolean |
hasName()
required string name = 1; |
boolean |
hasValue()
optional string value = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Flag.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Flag.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Flag.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Flag.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Flag.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Flag.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Flag.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Flag.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Flag.Builder |
setValue(java.lang.String value)
optional string value = 2; |
Protos.Flag.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.Flag.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Flag getDefaultInstanceForType()
public Protos.Flag build()
public Protos.Flag buildPartial()
public Protos.Flag.Builder clone()
public Protos.Flag.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Flag.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Flag.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Flag.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Flag.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Flag.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Flag.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.FlagOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.FlagOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.FlagOrBuilder
public Protos.Flag.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Flag.Builder clearName()
required string name = 1;
public Protos.Flag.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasValue()
optional string value = 2;
hasValue
in interface Protos.FlagOrBuilder
public java.lang.String getValue()
optional string value = 2;
getValue
in interface Protos.FlagOrBuilder
public com.google.protobuf.ByteString getValueBytes()
optional string value = 2;
getValueBytes
in interface Protos.FlagOrBuilder
public Protos.Flag.Builder setValue(java.lang.String value)
optional string value = 2;
public Protos.Flag.Builder clearValue()
optional string value = 2;
public Protos.Flag.Builder setValueBytes(com.google.protobuf.ByteString value)
optional string value = 2;
public final Protos.Flag.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Flag.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)