Class InputValue.ChoiceInputValue.Builder (1.15.0)

public static final class InputValue.ChoiceInputValue.Builder extends GeneratedMessage.Builder<InputValue.ChoiceInputValue.Builder> implements InputValue.ChoiceInputValueOrBuilder

Value for choice input field.

Protobuf type google.shopping.merchant.issueresolution.v1beta.InputValue.ChoiceInputValue

Static Methods

getDescriptor()

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

Methods

build()

public InputValue.ChoiceInputValue build()
Returns
Type Description
InputValue.ChoiceInputValue

buildPartial()

public InputValue.ChoiceInputValue buildPartial()
Returns
Type Description
InputValue.ChoiceInputValue

clear()

public InputValue.ChoiceInputValue.Builder clear()
Returns
Type Description
InputValue.ChoiceInputValue.Builder
Overrides

clearChoiceInputOptionId()

public InputValue.ChoiceInputValue.Builder clearChoiceInputOptionId()

Required. Id of the option that was selected by the business.

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

Returns
Type Description
InputValue.ChoiceInputValue.Builder

This builder for chaining.

getChoiceInputOptionId()

public String getChoiceInputOptionId()

Required. Id of the option that was selected by the business.

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

Returns
Type Description
String

The choiceInputOptionId.

getChoiceInputOptionIdBytes()

public ByteString getChoiceInputOptionIdBytes()

Required. Id of the option that was selected by the business.

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

Returns
Type Description
ByteString

The bytes for choiceInputOptionId.

getDefaultInstanceForType()

public InputValue.ChoiceInputValue getDefaultInstanceForType()
Returns
Type Description
InputValue.ChoiceInputValue

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(InputValue.ChoiceInputValue other)

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

setChoiceInputOptionId(String value)

public InputValue.ChoiceInputValue.Builder setChoiceInputOptionId(String value)

Required. Id of the option that was selected by the business.

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

Parameter
Name Description
value String

The choiceInputOptionId to set.

Returns
Type Description
InputValue.ChoiceInputValue.Builder

This builder for chaining.

setChoiceInputOptionIdBytes(ByteString value)

public InputValue.ChoiceInputValue.Builder setChoiceInputOptionIdBytes(ByteString value)

Required. Id of the option that was selected by the business.

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

Parameter
Name Description
value ByteString

The bytes for choiceInputOptionId to set.

Returns
Type Description
InputValue.ChoiceInputValue.Builder

This builder for chaining.