Class ValueLabel.Builder (0.3.0)

public static final class ValueLabel.Builder extends GeneratedMessage.Builder<ValueLabel.Builder> implements ValueLabelOrBuilder

Value label for a UI input.

Protobuf type google.cloud.designcenter.v1.ValueLabel

Implements

ValueLabelOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ValueLabel build()
Returns
Type Description
ValueLabel

buildPartial()

public ValueLabel buildPartial()
Returns
Type Description
ValueLabel

clear()

public ValueLabel.Builder clear()
Returns
Type Description
ValueLabel.Builder
Overrides

clearLabel()

public ValueLabel.Builder clearLabel()

Output only. Label of the enum.

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ValueLabel.Builder

This builder for chaining.

clearValue()

public ValueLabel.Builder clearValue()

Output only. Value of the enum.

string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ValueLabel.Builder

This builder for chaining.

getDefaultInstanceForType()

public ValueLabel getDefaultInstanceForType()
Returns
Type Description
ValueLabel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabel()

public String getLabel()

Output only. Label of the enum.

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Output only. Label of the enum.

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for label.

getValue()

public String getValue()

Output only. Value of the enum.

string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Output only. Value of the enum.

string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValueLabel other)

public ValueLabel.Builder mergeFrom(ValueLabel other)
Parameter
Name Description
other ValueLabel
Returns
Type Description
ValueLabel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ValueLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ValueLabel.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setLabel(String value)

public ValueLabel.Builder setLabel(String value)

Output only. Label of the enum.

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The label to set.

Returns
Type Description
ValueLabel.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public ValueLabel.Builder setLabelBytes(ByteString value)

Output only. Label of the enum.

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
ValueLabel.Builder

This builder for chaining.

setValue(String value)

public ValueLabel.Builder setValue(String value)

Output only. Value of the enum.

string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ValueLabel.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ValueLabel.Builder setValueBytes(ByteString value)

Output only. Value of the enum.

string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ValueLabel.Builder

This builder for chaining.