Class LabelDescriptor.Builder (2.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LabelDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

build()

public LabelDescriptor build()
Returns
TypeDescription
LabelDescriptor

buildPartial()

public LabelDescriptor buildPartial()
Returns
TypeDescription
LabelDescriptor

clear()

public LabelDescriptor.Builder clear()
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

clearDescription()

public LabelDescriptor.Builder clearDescription()

A human-readable description for the label.

string description = 3;

Returns
TypeDescription
LabelDescriptor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LabelDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

clearKey()

public LabelDescriptor.Builder clearKey()

The label key.

string key = 1;

Returns
TypeDescription
LabelDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LabelDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
LabelDescriptor.Builder

This builder for chaining.

clone()

public LabelDescriptor.Builder clone()
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

getDefaultInstanceForType()

public LabelDescriptor getDefaultInstanceForType()
Returns
TypeDescription
LabelDescriptor

getDescription()

public String getDescription()

A human-readable description for the label.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description for the label.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

The label key.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The label key.

string key = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for valueType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LabelDescriptor other)

public LabelDescriptor.Builder mergeFrom(LabelDescriptor other)
Parameter
NameDescription
otherLabelDescriptor
Returns
TypeDescription
LabelDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LabelDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelDescriptor.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LabelDescriptor.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

setDescription(String value)

public LabelDescriptor.Builder setDescription(String value)

A human-readable description for the label.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
LabelDescriptor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LabelDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

setKey(String value)

public LabelDescriptor.Builder setKey(String value)

The label key.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
LabelDescriptor.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public LabelDescriptor.Builder setKeyBytes(ByteString value)

The label key.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LabelDescriptor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueLabelDescriptor.ValueType

The valueType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for valueType to set.

Returns
TypeDescription
LabelDescriptor.Builder

This builder for chaining.