Package com.google.apps.card.v1
Enum SelectionInput.SelectionType
- java.lang.Object
-
- java.lang.Enum<SelectionInput.SelectionType>
-
- com.google.apps.card.v1.SelectionInput.SelectionType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<SelectionInput.SelectionType>
- Enclosing class:
- SelectionInput
public static enum SelectionInput.SelectionType extends java.lang.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 enumgoogle.apps.card.v1.SelectionInput.SelectionType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK_BOXA set of checkboxes.DROPDOWNA dropdown menu.MULTI_SELECTA multiselect menu for static or dynamic data.RADIO_BUTTONA set of radio buttons.SWITCHA set of switches.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCHECK_BOX_VALUEA set of checkboxes.static intDROPDOWN_VALUEA dropdown menu.static intMULTI_SELECT_VALUEA multiselect menu for static or dynamic data.static intRADIO_BUTTON_VALUEA set of radio buttons.static intSWITCH_VALUEA set of switches.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SelectionInput.SelectionTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SelectionInput.SelectionType>internalGetValueMap()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.SelectionTypevalueOf(java.lang.String name)Returns 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 Detail
-
CHECK_BOX
public static final SelectionInput.SelectionType CHECK_BOX
A set of checkboxes. Users can select one or more checkboxes.
CHECK_BOX = 0;
-
RADIO_BUTTON
public static final SelectionInput.SelectionType RADIO_BUTTON
A set of radio buttons. Users can select one radio button.
RADIO_BUTTON = 1;
-
SWITCH
public static final SelectionInput.SelectionType SWITCH
A set of switches. Users can turn on one or more switches.
SWITCH = 2;
-
DROPDOWN
public static final SelectionInput.SelectionType DROPDOWN
A dropdown menu. Users can select one item from the menu.
DROPDOWN = 3;
-
MULTI_SELECT
public static final SelectionInput.SelectionType 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 [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): Multiselect for Google Workspace Add-ons are in Developer Preview.MULTI_SELECT = 4;
-
UNRECOGNIZED
public static final SelectionInput.SelectionType UNRECOGNIZED
-
-
Field Detail
-
CHECK_BOX_VALUE
public static final int CHECK_BOX_VALUE
A set of checkboxes. Users can select one or more checkboxes.
CHECK_BOX = 0;- See Also:
- Constant Field Values
-
RADIO_BUTTON_VALUE
public static final int RADIO_BUTTON_VALUE
A set of radio buttons. Users can select one radio button.
RADIO_BUTTON = 1;- See Also:
- Constant Field Values
-
SWITCH_VALUE
public static final int SWITCH_VALUE
A set of switches. Users can turn on one or more switches.
SWITCH = 2;- See Also:
- Constant Field Values
-
DROPDOWN_VALUE
public static final int DROPDOWN_VALUE
A dropdown menu. Users can select one item from the menu.
DROPDOWN = 3;- See Also:
- Constant Field Values
-
MULTI_SELECT_VALUE
public static final int 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 [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): Multiselect for Google Workspace Add-ons are in Developer Preview.MULTI_SELECT = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SelectionInput.SelectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SelectionInput.SelectionType c : SelectionInput.SelectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SelectionInput.SelectionType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static SelectionInput.SelectionType valueOf(int value)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static SelectionInput.SelectionType forNumber(int value)
- 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 final 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-