Package com.google.apps.card.v1
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionA button does not have an invisible container in its default state.A filled button has a container with a solid color.A filled tonal button is an alternative middle ground between filled and outlined buttons.Outlined buttons are medium-emphasis buttons.Don't use. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA button does not have an invisible container in its default state.static final intA filled tonal button is an alternative middle ground between filled and outlined buttons.static final intA filled button has a container with a solid color.static final intOutlined buttons are medium-emphasis buttons.static final intDon't use. -
Method Summary
Modifier and TypeMethodDescriptionstatic Button.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Button.Type>static Button.TypevalueOf(int value) Deprecated.static Button.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Button.TypeReturns the enum constant of this type with the specified name.static Button.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Don't use. Unspecified.
TYPE_UNSPECIFIED = 0; -
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
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
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
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
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEDon't use. Unspecified.
TYPE_UNSPECIFIED = 0;- See Also:
-
OUTLINED_VALUE
public static final int OUTLINED_VALUEOutlined 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_VALUEA 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_VALUEA 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_VALUEA 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
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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
-