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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
build()
public LabelDescriptor build()
Returns | |
---|---|
Type | Description |
LabelDescriptor |
buildPartial()
public LabelDescriptor buildPartial()
Returns | |
---|---|
Type | Description |
LabelDescriptor |
clear()
public LabelDescriptor.Builder clear()
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
clearDescription()
public LabelDescriptor.Builder clearDescription()
A human-readable description for the label.
string description = 3;
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public LabelDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
clearKey()
public LabelDescriptor.Builder clearKey()
The label key.
string key = 1;
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
clone()
public LabelDescriptor.Builder clone()
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
getDefaultInstanceForType()
public LabelDescriptor getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
LabelDescriptor |
getDescription()
public String getDescription()
A human-readable description for the label.
string description = 3;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A human-readable description for the label.
string description = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getKey()
public String getKey()
The label key.
string key = 1;
Returns | |
---|---|
Type | Description |
String | The key. |
getKeyBytes()
public ByteString getKeyBytes()
The label key.
string key = 1;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for valueType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(LabelDescriptor other)
public LabelDescriptor.Builder mergeFrom(LabelDescriptor other)
Parameter | |
---|---|
Name | Description |
other | LabelDescriptor |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LabelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public LabelDescriptor.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
setDescription(String value)
public LabelDescriptor.Builder setDescription(String value)
A human-readable description for the label.
string description = 3;
Parameter | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public LabelDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
setKey(String value)
public LabelDescriptor.Builder setKey(String value)
The label key.
string key = 1;
Parameter | |
---|---|
Name | Description |
value | String The key to set. |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |
setKeyBytes(ByteString value)
public LabelDescriptor.Builder setKeyBytes(ByteString value)
The label key.
string key = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for key to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | LabelDescriptor.ValueType The valueType to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for valueType to set. |
Returns | |
---|---|
Type | Description |
LabelDescriptor.Builder | This builder for chaining. |