# Google Shopping Merchant Issue Resolution V1 Client - Class ChoiceInput (1.3.1)

1.3.1 (latest) 1.3.0 1.2.1 1.1.1 1.0.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Issue Resolution V1 Client class ChoiceInput.

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.

Generated from protobuf message `google.shopping.merchant.issueresolution.v1.InputField.ChoiceInput`

## Namespace

Google \\ Shopping \\ Merchant \\ IssueResolution \\ V1 \\ InputField

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ options` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.InputField.ChoiceInput.ChoiceInputOption>` A list of choices. Only one option can be selected. |

### getOptions

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.InputField.ChoiceInput.ChoiceInputOption>` |   |

### setOptions

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-issueresolution/latest/V1.InputField.ChoiceInput.ChoiceInputOption>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |