public static final class LabelDescriptor.Builder extends GeneratedMessageV3.Builder<LabelDescriptor.Builder> implements LabelDescriptorOrBuilder
A description of a label.
Protobuf type google.api.LabelDescriptor
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LabelDescriptor.BuilderImplements
LabelDescriptorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LabelDescriptor.Builder |
build()
public LabelDescriptor build()
Type | Description |
LabelDescriptor |
buildPartial()
public LabelDescriptor buildPartial()
Type | Description |
LabelDescriptor |
clear()
public LabelDescriptor.Builder clear()
Type | Description |
LabelDescriptor.Builder |
clearDescription()
public LabelDescriptor.Builder clearDescription()
A human-readable description for the label.
string description = 3;
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public LabelDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LabelDescriptor.Builder |
clearKey()
public LabelDescriptor.Builder clearKey()
The label key.
string key = 1;
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LabelDescriptor.Builder |
clearValueType()
public LabelDescriptor.Builder clearValueType()
The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clone()
public LabelDescriptor.Builder clone()
Type | Description |
LabelDescriptor.Builder |
getDefaultInstanceForType()
public LabelDescriptor getDefaultInstanceForType()
Type | Description |
LabelDescriptor |
getDescription()
public String getDescription()
A human-readable description for the label.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A human-readable description for the label.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getKey()
public String getKey()
The label key.
string key = 1;
Type | Description |
String | The key. |
getKeyBytes()
public ByteString getKeyBytes()
The label key.
string key = 1;
Type | Description |
ByteString | The bytes for key. |
getValueType()
public LabelDescriptor.ValueType getValueType()
The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
Type | Description |
LabelDescriptor.ValueType | The valueType. |
getValueTypeValue()
public int getValueTypeValue()
The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
Type | Description |
int | The enum numeric value on the wire for valueType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(LabelDescriptor other)
public LabelDescriptor.Builder mergeFrom(LabelDescriptor other)
Name | Description |
other | LabelDescriptor |
Type | Description |
LabelDescriptor.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LabelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LabelDescriptor.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LabelDescriptor.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LabelDescriptor.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LabelDescriptor.Builder |
setDescription(String value)
public LabelDescriptor.Builder setDescription(String value)
A human-readable description for the label.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public LabelDescriptor.Builder setDescriptionBytes(ByteString value)
A human-readable description for the label.
string description = 3;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public LabelDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LabelDescriptor.Builder |
setKey(String value)
public LabelDescriptor.Builder setKey(String value)
The label key.
string key = 1;
Name | Description |
value | String The key to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setKeyBytes(ByteString value)
public LabelDescriptor.Builder setKeyBytes(ByteString value)
The label key.
string key = 1;
Name | Description |
value | ByteString The bytes for key to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LabelDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LabelDescriptor.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LabelDescriptor.Builder |
setValueType(LabelDescriptor.ValueType value)
public LabelDescriptor.Builder setValueType(LabelDescriptor.ValueType value)
The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
Name | Description |
value | LabelDescriptor.ValueType The valueType to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setValueTypeValue(int value)
public LabelDescriptor.Builder setValueTypeValue(int value)
The type of data that can be assigned to the label.
.google.api.LabelDescriptor.ValueType value_type = 2;
Name | Description |
value | int The enum numeric value on the wire for valueType to set. |
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |