Enum SelectionInput.SelectionType (0.1.0)

public enum SelectionInput.SelectionType extends Enum<SelectionInput.SelectionType> implements ProtocolMessageEnum

The 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

ProtocolMessageEnum

Static Fields

NameDescription
CHECK_BOX

A set of checkboxes. Users can select one or more checkboxes.

CHECK_BOX = 0;

CHECK_BOX_VALUE

A set of checkboxes. Users can select one or more checkboxes.

CHECK_BOX = 0;

DROPDOWN

A dropdown menu. Users can select one item from the menu.

DROPDOWN = 3;

DROPDOWN_VALUE

A dropdown menu. Users can select one item from the menu.

DROPDOWN = 3;

MULTI_SELECT

A multiselect menu for static or dynamic data. From the menu bar, users select one or more items. Users can also input values to populate dynamic data. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space.

To populate items for a multiselect menu, you can use one of the following types of data sources:

  • Static data: Items are specified as SelectionItem objects in the widget. Up to 100 items.
  • Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
  • External data: Items are populated from an external data source outside of Google Workspace.

    For examples of how to implement multiselect menus, see the SelectionInput widget page.

    Google Workspace Add-ons and Chat apps: multiselect for Google Workspace Add-ons are in Developer Preview.

MULTI_SELECT = 4;

MULTI_SELECT_VALUE

A multiselect menu for static or dynamic data. From the menu bar, users select one or more items. Users can also input values to populate dynamic data. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space.

To populate items for a multiselect menu, you can use one of the following types of data sources:

  • Static data: Items are specified as SelectionItem objects in the widget. Up to 100 items.
  • Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
  • External data: Items are populated from an external data source outside of Google Workspace.

    For examples of how to implement multiselect menus, see the SelectionInput widget page.

    Google Workspace Add-ons and Chat apps: multiselect for Google Workspace Add-ons are in Developer Preview.

MULTI_SELECT = 4;

RADIO_BUTTON

A set of radio buttons. Users can select one radio button.

RADIO_BUTTON = 1;

RADIO_BUTTON_VALUE

A set of radio buttons. Users can select one radio button.

RADIO_BUTTON = 1;

SWITCH

A set of switches. Users can turn on one or more switches.

SWITCH = 2;

SWITCH_VALUE

A set of switches. Users can turn on one or more switches.

SWITCH = 2;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()