Class InputField.ChoiceInput (0.2.0)

public static final class InputField.ChoiceInput extends GeneratedMessageV3 implements InputField.ChoiceInputOrBuilder

Choice input allows the business to select one of the offered choices. Some choices may be linked to additional input fields that should be displayed under or next to the choice option. The value for the additional input field needs to be provided only when the specific choice is selected by the the business. For example, additional input field can be hidden or disabled until the business selects the specific choice.

Protobuf type google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput

Static Fields

OPTIONS_FIELD_NUMBER

public static final int OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InputField.ChoiceInput getDefaultInstance()
Returns
Type Description
InputField.ChoiceInput

getDescriptor()

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

newBuilder()

public static InputField.ChoiceInput.Builder newBuilder()
Returns
Type Description
InputField.ChoiceInput.Builder

newBuilder(InputField.ChoiceInput prototype)

public static InputField.ChoiceInput.Builder newBuilder(InputField.ChoiceInput prototype)
Parameter
Name Description
prototype InputField.ChoiceInput
Returns
Type Description
InputField.ChoiceInput.Builder

parseDelimitedFrom(InputStream input)

public static InputField.ChoiceInput parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InputField.ChoiceInput parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InputField.ChoiceInput parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InputField.ChoiceInput parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InputField.ChoiceInput parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InputField.ChoiceInput parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InputField.ChoiceInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InputField.ChoiceInput
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InputField.ChoiceInput> parser()
Returns
Type Description
Parser<ChoiceInput>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InputField.ChoiceInput getDefaultInstanceForType()
Returns
Type Description
InputField.ChoiceInput

getOptions(int index)

public InputField.ChoiceInput.ChoiceInputOption getOptions(int index)

A list of choices. Only one option can be selected.

repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;

Parameter
Name Description
index int
Returns
Type Description
InputField.ChoiceInput.ChoiceInputOption

getOptionsCount()

public int getOptionsCount()

A list of choices. Only one option can be selected.

repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;

Returns
Type Description
int

getOptionsList()

public List<InputField.ChoiceInput.ChoiceInputOption> getOptionsList()

A list of choices. Only one option can be selected.

repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;

Returns
Type Description
List<ChoiceInputOption>

getOptionsOrBuilder(int index)

public InputField.ChoiceInput.ChoiceInputOptionOrBuilder getOptionsOrBuilder(int index)

A list of choices. Only one option can be selected.

repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;

Parameter
Name Description
index int
Returns
Type Description
InputField.ChoiceInput.ChoiceInputOptionOrBuilder

getOptionsOrBuilderList()

public List<? extends InputField.ChoiceInput.ChoiceInputOptionOrBuilder> getOptionsOrBuilderList()

A list of choices. Only one option can be selected.

repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOptionOrBuilder>

getParserForType()

public Parser<InputField.ChoiceInput> getParserForType()
Returns
Type Description
Parser<ChoiceInput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InputField.ChoiceInput.Builder newBuilderForType()
Returns
Type Description
InputField.ChoiceInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InputField.ChoiceInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InputField.ChoiceInput.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InputField.ChoiceInput.Builder toBuilder()
Returns
Type Description
InputField.ChoiceInput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException