Enum Button.Type

java.lang.Object
java.lang.Enum<Button.Type>
com.google.apps.card.v1.Button.Type
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Button.Type>
Enclosing class:
Button

public static enum Button.Type extends Enum<Button.Type> implements com.google.protobuf.ProtocolMessageEnum
 Optional. The
 [type](https://m3.material.io/components/all-buttons#9134ac95-678e-49ae-a50a-e71948011b05)
 of a button. If `color` field is set, the `type` is forced to `FILLED`.

 [Google Chat apps](https://developers.google.com/workspace/chat):
 
Protobuf enum google.apps.card.v1.Button.Type
  • Enum Constant Details

    • TYPE_UNSPECIFIED

      public static final Button.Type TYPE_UNSPECIFIED
       Don't use. Unspecified.
       
      TYPE_UNSPECIFIED = 0;
    • OUTLINED

      public static final Button.Type OUTLINED
       Outlined buttons are medium-emphasis buttons. They usually contain
       actions that are important, but aren’t the primary action in a Chat app
       or an add-on.
       
      OUTLINED = 1;
    • FILLED

      public static final Button.Type FILLED
       A filled button has a container with a solid color. It has the most
       visual impact and is recommended for the important and primary action in
       a Chat app or an add-on.
       
      FILLED = 2;
    • FILLED_TONAL

      public static final Button.Type FILLED_TONAL
       A filled tonal button is an alternative middle ground between filled and
       outlined buttons. They’re useful in contexts where a lower-priority
       button requires slightly more emphasis than an outline button would give.
       
      FILLED_TONAL = 3;
    • BORDERLESS

      public static final Button.Type BORDERLESS
       A button does not have an invisible container in its default state. It is
       often used for the lowest priority actions, especially when presenting
       multiple options.
       
      BORDERLESS = 4;
    • UNRECOGNIZED

      public static final Button.Type UNRECOGNIZED
  • Field Details

    • TYPE_UNSPECIFIED_VALUE

      public static final int TYPE_UNSPECIFIED_VALUE
       Don't use. Unspecified.
       
      TYPE_UNSPECIFIED = 0;
      See Also:
    • OUTLINED_VALUE

      public static final int OUTLINED_VALUE
       Outlined buttons are medium-emphasis buttons. They usually contain
       actions that are important, but aren’t the primary action in a Chat app
       or an add-on.
       
      OUTLINED = 1;
      See Also:
    • FILLED_VALUE

      public static final int FILLED_VALUE
       A filled button has a container with a solid color. It has the most
       visual impact and is recommended for the important and primary action in
       a Chat app or an add-on.
       
      FILLED = 2;
      See Also:
    • FILLED_TONAL_VALUE

      public static final int FILLED_TONAL_VALUE
       A filled tonal button is an alternative middle ground between filled and
       outlined buttons. They’re useful in contexts where a lower-priority
       button requires slightly more emphasis than an outline button would give.
       
      FILLED_TONAL = 3;
      See Also:
    • BORDERLESS_VALUE

      public static final int BORDERLESS_VALUE
       A button does not have an invisible container in its default state. It is
       often used for the lowest priority actions, especially when presenting
       multiple options.
       
      BORDERLESS = 4;
      See Also:
  • Method Details

    • values

      public static Button.Type[] 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 Button.Type 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 Button.Type 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 Button.Type 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<Button.Type> 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 Button.Type 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