Class ParameterMetadataEnumOption.Builder (0.67.0)

public static final class ParameterMetadataEnumOption.Builder extends GeneratedMessageV3.Builder<ParameterMetadataEnumOption.Builder> implements ParameterMetadataEnumOptionOrBuilder

ParameterMetadataEnumOption specifies the option shown in the enum form.

Protobuf type google.dataflow.v1beta3.ParameterMetadataEnumOption

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ParameterMetadataEnumOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

build()

public ParameterMetadataEnumOption build()
Returns
Type Description
ParameterMetadataEnumOption

buildPartial()

public ParameterMetadataEnumOption buildPartial()
Returns
Type Description
ParameterMetadataEnumOption

clear()

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

clearDescription()

public ParameterMetadataEnumOption.Builder clearDescription()

Optional. The description to display for the enum option.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ParameterMetadataEnumOption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

clearLabel()

public ParameterMetadataEnumOption.Builder clearLabel()

Optional. The label to display for the enum option.

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

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ParameterMetadataEnumOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

clearValue()

public ParameterMetadataEnumOption.Builder clearValue()

Required. The value of the enum option.

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

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

clone()

public ParameterMetadataEnumOption.Builder clone()
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

getDefaultInstanceForType()

public ParameterMetadataEnumOption getDefaultInstanceForType()
Returns
Type Description
ParameterMetadataEnumOption

getDescription()

public String getDescription()

Optional. The description to display for the enum option.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description to display for the enum option.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabel()

public String getLabel()

Optional. The label to display for the enum option.

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

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Optional. The label to display for the enum option.

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

Returns
Type Description
ByteString

The bytes for label.

getValue()

public String getValue()

Required. The value of the enum option.

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

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The value of the enum option.

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

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ParameterMetadataEnumOption other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public ParameterMetadataEnumOption.Builder setDescription(String value)

Optional. The description to display for the enum option.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ParameterMetadataEnumOption.Builder setDescriptionBytes(ByteString value)

Optional. The description to display for the enum option.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ParameterMetadataEnumOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

setLabel(String value)

public ParameterMetadataEnumOption.Builder setLabel(String value)

Optional. The label to display for the enum option.

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

Parameter
Name Description
value String

The label to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public ParameterMetadataEnumOption.Builder setLabelBytes(ByteString value)

Optional. The label to display for the enum option.

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

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ParameterMetadataEnumOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ParameterMetadataEnumOption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public ParameterMetadataEnumOption.Builder setValue(String value)

Required. The value of the enum option.

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

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ParameterMetadataEnumOption.Builder setValueBytes(ByteString value)

Required. The value of the enum option.

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

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ParameterMetadataEnumOption.Builder

This builder for chaining.