Google Shopping Merchant Issue Resolution V1 Client - Class ChoiceInputOption (1.0.0)

Reference documentation and code samples for the Google Shopping Merchant Issue Resolution V1 Client class ChoiceInputOption.

A choice that the business can select.

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

Namespace

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

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Not for display but need to be sent back for the selected choice option.

↳ label Google\Shopping\Merchant\IssueResolution\V1\TextWithTooltip

Short description of the choice option. There may be more information to be shown as a tooltip.

↳ additional_input Google\Shopping\Merchant\IssueResolution\V1\InputField

Input that should be displayed when this option is selected. The additional input will not contain a ChoiceInput.

getId

Not for display but need to be sent back for the selected choice option.

Returns
Type Description
string

setId

Not for display but need to be sent back for the selected choice option.

Parameter
Name Description
var string
Returns
Type Description
$this

getLabel

Short description of the choice option. There may be more information to be shown as a tooltip.

Returns
Type Description
Google\Shopping\Merchant\IssueResolution\V1\TextWithTooltip|null

hasLabel

clearLabel

setLabel

Short description of the choice option. There may be more information to be shown as a tooltip.

Parameter
Name Description
var Google\Shopping\Merchant\IssueResolution\V1\TextWithTooltip
Returns
Type Description
$this

getAdditionalInput

Input that should be displayed when this option is selected.

The additional input will not contain a ChoiceInput.

Returns
Type Description
Google\Shopping\Merchant\IssueResolution\V1\InputField|null

hasAdditionalInput

clearAdditionalInput

setAdditionalInput

Input that should be displayed when this option is selected.

The additional input will not contain a ChoiceInput.

Parameter
Name Description
var Google\Shopping\Merchant\IssueResolution\V1\InputField
Returns
Type Description
$this