- 2.63.1 (latest)
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public enum SelectionInput.SelectionType extends Enum<SelectionInput.SelectionType> implements ProtocolMessageEnumThe format for the items that users can select. Different options support different types of interactions. For example, users can select multiple checkboxes, but can only select one item from a dropdown menu.
Each selection input supports one type of selection. Mixing checkboxes and switches, for example, isn't supported.
Google Workspace add-ons and Chat apps:
Protobuf enum google.apps.card.v1.SelectionInput.SelectionType
Implements
ProtocolMessageEnumStatic Fields |
|
|---|---|
| Name | Description |
CHECK_BOX |
A set of checkboxes. Users can select one or more checkboxes. |
CHECK_BOX_VALUE |
A set of checkboxes. Users can select one or more checkboxes. |
DROPDOWN |
A dropdown menu. Users can select one item from the menu. |
DROPDOWN_VALUE |
A dropdown menu. Users can select one item from the menu. |
MULTI_SELECT |
A menu with a text box. Users can type and select one or more items.
For Google Workspace add-ons, you must populate items using a static
array of For Google Chat apps, you can also populate items using a dynamic data source and autosuggest items as users type in the menu. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To dynamically populate items for a multiselect menu, use one of the following types of data sources:
|
MULTI_SELECT_VALUE |
A menu with a text box. Users can type and select one or more items.
For Google Workspace add-ons, you must populate items using a static
array of For Google Chat apps, you can also populate items using a dynamic data source and autosuggest items as users type in the menu. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To dynamically populate items for a multiselect menu, use one of the following types of data sources:
|
RADIO_BUTTON |
A set of radio buttons. Users can select one radio button. |
RADIO_BUTTON_VALUE |
A set of radio buttons. Users can select one radio button. |
SWITCH |
A set of switches. Users can turn on one or more switches. |
SWITCH_VALUE |
A set of switches. Users can turn on one or more switches. |
UNRECOGNIZED |
|
Static Methods |
|
|---|---|
| Name | Description |
forNumber(int value) |
|
getDescriptor() |
|
internalGetValueMap() |
|
valueOf(Descriptors.EnumValueDescriptor desc) |
|
valueOf(int value) |
Deprecated. Use #forNumber(int) instead. |
valueOf(String name) |
|
values() |
|
Methods |
|
|---|---|
| Name | Description |
getDescriptorForType() |
|
getNumber() |
|
getValueDescriptor() |
|