Enum Action.Interaction

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<Action.Interaction>
    Enclosing class:
    Action

    public static enum Action.Interaction
    extends java.lang.Enum<Action.Interaction>
    implements com.google.protobuf.ProtocolMessageEnum
     Optional. Required when opening a
     [dialog](https://developers.google.com/workspace/chat/dialogs).
    
     What to do in response to an interaction with a user, such as a user
     clicking a button in a card message.
    
     If unspecified, the app responds by executing an `action`—like opening a
     link or running a function—as normal.
    
     By specifying an `interaction`, the app can respond in special interactive
     ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can
     open a [dialog](https://developers.google.com/workspace/chat/dialogs).
    
     When specified, a loading indicator isn't shown. If specified for
     an add-on, the entire card is stripped and nothing is shown in the client.
    
     [Google Chat apps](https://developers.google.com/workspace/chat):
     
    Protobuf enum google.apps.card.v1.Action.Interaction
    • Enum Constant Detail

      • INTERACTION_UNSPECIFIED

        public static final Action.Interaction INTERACTION_UNSPECIFIED
         Default value. The `action` executes as normal.
         
        INTERACTION_UNSPECIFIED = 0;
      • OPEN_DIALOG

        public static final Action.Interaction OPEN_DIALOG
         Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a
         windowed, card-based interface that Chat apps use to interact with users.
        
         Only supported by Chat apps in response to button-clicks on card
         messages. If specified for
         an add-on, the entire card is stripped and nothing is shown in the
         client.
        
         [Google Chat apps](https://developers.google.com/workspace/chat):
         
        OPEN_DIALOG = 1;
    • Field Detail

      • INTERACTION_UNSPECIFIED_VALUE

        public static final int INTERACTION_UNSPECIFIED_VALUE
         Default value. The `action` executes as normal.
         
        INTERACTION_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • OPEN_DIALOG_VALUE

        public static final int OPEN_DIALOG_VALUE
         Opens a [dialog](https://developers.google.com/workspace/chat/dialogs), a
         windowed, card-based interface that Chat apps use to interact with users.
        
         Only supported by Chat apps in response to button-clicks on card
         messages. If specified for
         an add-on, the entire card is stripped and nothing is shown in the
         client.
        
         [Google Chat apps](https://developers.google.com/workspace/chat):
         
        OPEN_DIALOG = 1;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Action.Interaction[] 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 (Action.Interaction c : Action.Interaction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Action.Interaction 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 Action.Interaction 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 Action.Interaction 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<Action.Interaction> 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 Action.Interaction 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