Class LabelDescriptor.Builder (2.42.0)

public static final class LabelDescriptor.Builder extends GeneratedMessageV3.Builder<LabelDescriptor.Builder> implements LabelDescriptorOrBuilder

A description of a label.

Protobuf type google.api.LabelDescriptor

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LabelDescriptor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LabelDescriptor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelDescriptor.Builder
Overrides

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
Overrides

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelDescriptor.Builder
Overrides

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.