public static final class InputField.ChoiceInput.Builder extends GeneratedMessageV3.Builder<InputField.ChoiceInput.Builder> 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public InputField.ChoiceInput.Builder addAllOptions(Iterable<? extends InputField.ChoiceInput.ChoiceInputOption> values)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption>
|
public InputField.ChoiceInput.Builder addOptions(InputField.ChoiceInput.ChoiceInputOption value)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder addOptions(InputField.ChoiceInput.ChoiceInputOption.Builder builderForValue)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder addOptions(int index, InputField.ChoiceInput.ChoiceInputOption value)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder addOptions(int index, InputField.ChoiceInput.ChoiceInputOption.Builder builderForValue)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.ChoiceInputOption.Builder addOptionsBuilder()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.ChoiceInputOption.Builder addOptionsBuilder(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
|
public InputField.ChoiceInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InputField.ChoiceInput build()
public InputField.ChoiceInput buildPartial()
public InputField.ChoiceInput.Builder clear()
Overrides
public InputField.ChoiceInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public InputField.ChoiceInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public InputField.ChoiceInput.Builder clearOptions()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder clone()
Overrides
public InputField.ChoiceInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
public InputField.ChoiceInput.ChoiceInputOption.Builder getOptionsBuilder(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
|
public List<InputField.ChoiceInput.ChoiceInputOption.Builder> getOptionsBuilderList()
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
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 |
|
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;
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InputField.ChoiceInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public InputField.ChoiceInput.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public InputField.ChoiceInput.Builder mergeFrom(InputField.ChoiceInput other)
public final InputField.ChoiceInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public InputField.ChoiceInput.Builder removeOptions(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
|
public InputField.ChoiceInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InputField.ChoiceInput.Builder setOptions(int index, InputField.ChoiceInput.ChoiceInputOption value)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder setOptions(int index, InputField.ChoiceInput.ChoiceInputOption.Builder builderForValue)
A list of choices. Only one option can be selected.
repeated .google.shopping.merchant.issueresolution.v1beta.InputField.ChoiceInput.ChoiceInputOption options = 1;
public InputField.ChoiceInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final InputField.ChoiceInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides