Package com.google.apps.card.v1
Enum SelectionInput.SelectionType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SelectionInput.SelectionType>
- Enclosing class:
- SelectionInput
public static enum SelectionInput.SelectionType
extends Enum<SelectionInput.SelectionType>
implements com.google.protobuf.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](https://developers.google.com/workspace/extend):Protobuf enum
google.apps.card.v1.SelectionInput.SelectionType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA set of checkboxes.A dropdown menu.A menu with a text box.A set of radio buttons.A set of switches. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA set of checkboxes.static final intA dropdown menu.static final intA menu with a text box.static final intA set of radio buttons.static final intA set of switches. -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectionInput.SelectionTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SelectionInput.SelectionType>static SelectionInput.SelectionTypevalueOf(int value) Deprecated.static SelectionInput.SelectionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SelectionInput.SelectionTypeReturns the enum constant of this type with the specified name.static SelectionInput.SelectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHECK_BOX
A set of checkboxes. Users can select one or more checkboxes.
CHECK_BOX = 0; -
RADIO_BUTTON
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; -
DROPDOWN
A dropdown menu. Users can select one item from the menu.
DROPDOWN = 3; -
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 `SelectionItem` objects. 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: * 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 for Chat apps, see [Add a multiselect menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu). [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
MULTI_SELECT = 4; -
UNRECOGNIZED
-
-
Field Details
-
CHECK_BOX_VALUE
public static final int CHECK_BOX_VALUEA set of checkboxes. Users can select one or more checkboxes.
CHECK_BOX = 0;- See Also:
-
RADIO_BUTTON_VALUE
public static final int RADIO_BUTTON_VALUEA set of radio buttons. Users can select one radio button.
RADIO_BUTTON = 1;- See Also:
-
SWITCH_VALUE
public static final int SWITCH_VALUEA set of switches. Users can turn on one or more switches.
SWITCH = 2;- See Also:
-
DROPDOWN_VALUE
public static final int DROPDOWN_VALUEA dropdown menu. Users can select one item from the menu.
DROPDOWN = 3;- See Also:
-
MULTI_SELECT_VALUE
public static final int MULTI_SELECT_VALUEA 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 `SelectionItem` objects. 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: * 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 for Chat apps, see [Add a multiselect menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu). [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
MULTI_SELECT = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SelectionInput.SelectionType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static SelectionInput.SelectionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-