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, 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
  • Enum Constant Details

    • 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;
    • 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 Details

    • 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:
    • 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:
    • SWITCH_VALUE

      public static final int SWITCH_VALUE
       A set of switches. Users can turn on one or more switches.
       
      SWITCH = 2;
      See Also:
    • 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:
  • Method Details

    • values

      public static SelectionInput.SelectionType[] 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

      public static SelectionInput.SelectionType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null