Generated from protobuf message google.apps.card.v1.SelectionInput.SelectionItem
Namespace
Google \ Apps \ Card \ V1 \ SelectionInput
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ text
string
The text that identifies or describes the item to users.
↳ value
string
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see Receive form data.
↳ selected
bool
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
↳ start_icon_uri
string
For multiselect menus, the URL for the icon displayed next to the item's text field. Supports PNG and JPEG files. Must be an HTTPS URL. For example, https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png.
↳ bottom_text
string
For multiselect menus, a text description or label that's displayed below the item's text field.
getText
The text that identifies or describes the item to users.
Returns
Type
Description
string
setText
The text that identifies or describes the item to users.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValue
The value associated with this item. The client should use this as a form
input value.
Whether the item is selected by default. If the selection input only
accepts one value (such as for radio buttons or a dropdown menu), only
set this field for one item.
Returns
Type
Description
bool
setSelected
Whether the item is selected by default. If the selection input only
accepts one value (such as for radio buttons or a dropdown menu), only
set this field for one item.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getStartIconUri
For multiselect menus, the URL for the icon displayed next to
the item's text field. Supports PNG and JPEG files. Must be an HTTPS
URL. For example,
https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png.
Returns
Type
Description
string
setStartIconUri
For multiselect menus, the URL for the icon displayed next to
the item's text field. Supports PNG and JPEG files. Must be an HTTPS
URL. For example,
https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getBottomText
For multiselect menus, a text description or label that's
displayed below the item's text field.
Returns
Type
Description
string
setBottomText
For multiselect menus, a text description or label that's
displayed below the item's text field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class SelectionItem (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.SelectionInput.SelectionItem)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.SelectionInput.SelectionItem)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.SelectionInput.SelectionItem)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.SelectionInput.SelectionItem)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.SelectionInput.SelectionItem)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.SelectionInput.SelectionItem)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.SelectionInput.SelectionItem)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.SelectionInput.SelectionItem)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.SelectionInput.SelectionItem)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.SelectionInput.SelectionItem)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.SelectionInput.SelectionItem)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.SelectionInput.SelectionItem) \nReference documentation and code samples for the Google Apps Chat V1 Client class SelectionItem.\n\nAn item that users can select in a selection input, such as a checkbox\nor switch.\n\n[Google Workspace Add-ons and Chat\napps](https://developers.google.com/workspace/extend):\n\nGenerated from protobuf message `google.apps.card.v1.SelectionInput.SelectionItem`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1 \\\\ SelectionInput\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getText\n\nThe text that identifies or describes the item to users.\n\n### setText\n\nThe text that identifies or describes the item to users.\n\n### getValue\n\nThe value associated with this item. The client should use this as a form\ninput value.\n\nFor details about working with form inputs, see [Receive form\ndata](https://developers.google.com/workspace/chat/read-form-data).\n\n### setValue\n\nThe value associated with this item. The client should use this as a form\ninput value.\n\nFor details about working with form inputs, see [Receive form\ndata](https://developers.google.com/workspace/chat/read-form-data).\n\n### getSelected\n\nWhether the item is selected by default. If the selection input only\naccepts one value (such as for radio buttons or a dropdown menu), only\nset this field for one item.\n\n### setSelected\n\nWhether the item is selected by default. If the selection input only\naccepts one value (such as for radio buttons or a dropdown menu), only\nset this field for one item.\n\n### getStartIconUri\n\nFor multiselect menus, the URL for the icon displayed next to\nthe item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS`\nURL. For example,\n`https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.\n\n### setStartIconUri\n\nFor multiselect menus, the URL for the icon displayed next to\nthe item's `text` field. Supports PNG and JPEG files. Must be an `HTTPS`\nURL. For example,\n`https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png`.\n\n### getBottomText\n\nFor multiselect menus, a text description or label that's\ndisplayed below the item's `text` field.\n\n### setBottomText\n\nFor multiselect menus, a text description or label that's\ndisplayed below the item's `text` field."]]