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>
,java.lang.constant.Constable
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA set of checkboxes.A dropdown menu.A multiselect menu for static or dynamic data.A set of radio buttons.A set of switches. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A set of checkboxes.static final int
A dropdown menu.static final int
A multiselect menu for static or dynamic data.static final int
A set of radio buttons.static final int
A set of switches. -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectionInput.SelectionType
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<SelectionInput.SelectionType> static SelectionInput.SelectionType
valueOf
(int value) Deprecated.static SelectionInput.SelectionType
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SelectionInput.SelectionType
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 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 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
-
-
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 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:
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-