Class InputField.ChoiceInput (1.4.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.v1.InputField.ChoiceInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int OPTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static InputField.ChoiceInput getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static InputField.ChoiceInput.Builder newBuilder()
public static InputField.ChoiceInput.Builder newBuilder(InputField.ChoiceInput prototype)
public static InputField.ChoiceInput parseDelimitedFrom(InputStream input)
public static InputField.ChoiceInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InputField.ChoiceInput parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static InputField.ChoiceInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InputField.ChoiceInput parseFrom(ByteString data)
public static InputField.ChoiceInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InputField.ChoiceInput parseFrom(CodedInputStream input)
public static InputField.ChoiceInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InputField.ChoiceInput parseFrom(InputStream input)
public static InputField.ChoiceInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InputField.ChoiceInput parseFrom(ByteBuffer data)
public static InputField.ChoiceInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<InputField.ChoiceInput> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public InputField.ChoiceInput getDefaultInstanceForType()
public InputField.ChoiceInput.ChoiceInputOption getOptions(int index)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOption options = 1;
Parameter |
Name |
Description |
index |
int
|
public int getOptionsCount()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOption options = 1;
Returns |
Type |
Description |
int |
|
public List<InputField.ChoiceInput.ChoiceInputOption> getOptionsList()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.ChoiceInputOptionOrBuilder getOptionsOrBuilder(int index)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOption options = 1;
Parameter |
Name |
Description |
index |
int
|
public List<? extends InputField.ChoiceInput.ChoiceInputOptionOrBuilder> getOptionsOrBuilderList()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOption options = 1;
Returns |
Type |
Description |
List<? extends com.google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput.ChoiceInputOptionOrBuilder> |
|
public Parser<InputField.ChoiceInput> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InputField.ChoiceInput.Builder newBuilderForType()
protected InputField.ChoiceInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public InputField.ChoiceInput.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]