Enum 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 enum google.apps.card.v1.SelectionInput.SelectionType
    • 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;
      • 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;
    • 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 name
        java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.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.
      • 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null