Package com.google.apps.script.type
Enum AddOnWidgetSet.WidgetType
- java.lang.Object
-
- java.lang.Enum<AddOnWidgetSet.WidgetType>
-
- com.google.apps.script.type.AddOnWidgetSet.WidgetType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<AddOnWidgetSet.WidgetType>
- Enclosing class:
- AddOnWidgetSet
public static enum AddOnWidgetSet.WidgetType extends Enum<AddOnWidgetSet.WidgetType> implements com.google.protobuf.ProtocolMessageEnum
The Widget type. DEFAULT is the basic widget set.
Protobuf enumgoogle.apps.script.type.AddOnWidgetSet.WidgetType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDON_COMPOSE_UI_ACTION
A Gmail add-on action that applies to the addon compose UI.DATE_PICKER
The date picker.FIXED_FOOTER
Fixed footer in card.GRID_WIDGET
The grid widget.PERSISTENT_FORMS
Persistent forms allow persisting form values during actions.STYLED_BUTTONS
Styled buttons include filled buttons and disabled buttons.UNRECOGNIZED
UPDATE_SUBJECT_AND_RECIPIENTS
Update the subject and recipients of a draft.WIDGET_TYPE_UNSPECIFIED
The default widget set.
-
Field Summary
Fields Modifier and Type Field Description static int
ADDON_COMPOSE_UI_ACTION_VALUE
A Gmail add-on action that applies to the addon compose UI.static int
DATE_PICKER_VALUE
The date picker.static int
FIXED_FOOTER_VALUE
Fixed footer in card.static int
GRID_WIDGET_VALUE
The grid widget.static int
PERSISTENT_FORMS_VALUE
Persistent forms allow persisting form values during actions.static int
STYLED_BUTTONS_VALUE
Styled buttons include filled buttons and disabled buttons.static int
UPDATE_SUBJECT_AND_RECIPIENTS_VALUE
Update the subject and recipients of a draft.static int
WIDGET_TYPE_UNSPECIFIED_VALUE
The default widget set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AddOnWidgetSet.WidgetType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<AddOnWidgetSet.WidgetType>
internalGetValueMap()
static AddOnWidgetSet.WidgetType
valueOf(int value)
Deprecated.static AddOnWidgetSet.WidgetType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static AddOnWidgetSet.WidgetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AddOnWidgetSet.WidgetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WIDGET_TYPE_UNSPECIFIED
public static final AddOnWidgetSet.WidgetType WIDGET_TYPE_UNSPECIFIED
The default widget set.
WIDGET_TYPE_UNSPECIFIED = 0;
-
DATE_PICKER
public static final AddOnWidgetSet.WidgetType DATE_PICKER
The date picker.
DATE_PICKER = 1;
-
STYLED_BUTTONS
public static final AddOnWidgetSet.WidgetType STYLED_BUTTONS
Styled buttons include filled buttons and disabled buttons.
STYLED_BUTTONS = 2;
-
PERSISTENT_FORMS
public static final AddOnWidgetSet.WidgetType PERSISTENT_FORMS
Persistent forms allow persisting form values during actions.
PERSISTENT_FORMS = 3;
-
FIXED_FOOTER
public static final AddOnWidgetSet.WidgetType FIXED_FOOTER
Fixed footer in card.
FIXED_FOOTER = 4;
-
UPDATE_SUBJECT_AND_RECIPIENTS
public static final AddOnWidgetSet.WidgetType UPDATE_SUBJECT_AND_RECIPIENTS
Update the subject and recipients of a draft.
UPDATE_SUBJECT_AND_RECIPIENTS = 5;
-
GRID_WIDGET
public static final AddOnWidgetSet.WidgetType GRID_WIDGET
The grid widget.
GRID_WIDGET = 6;
-
ADDON_COMPOSE_UI_ACTION
public static final AddOnWidgetSet.WidgetType ADDON_COMPOSE_UI_ACTION
A Gmail add-on action that applies to the addon compose UI.
ADDON_COMPOSE_UI_ACTION = 7;
-
UNRECOGNIZED
public static final AddOnWidgetSet.WidgetType UNRECOGNIZED
-
-
Field Detail
-
WIDGET_TYPE_UNSPECIFIED_VALUE
public static final int WIDGET_TYPE_UNSPECIFIED_VALUE
The default widget set.
WIDGET_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
DATE_PICKER_VALUE
public static final int DATE_PICKER_VALUE
The date picker.
DATE_PICKER = 1;
- See Also:
- Constant Field Values
-
STYLED_BUTTONS_VALUE
public static final int STYLED_BUTTONS_VALUE
Styled buttons include filled buttons and disabled buttons.
STYLED_BUTTONS = 2;
- See Also:
- Constant Field Values
-
PERSISTENT_FORMS_VALUE
public static final int PERSISTENT_FORMS_VALUE
Persistent forms allow persisting form values during actions.
PERSISTENT_FORMS = 3;
- See Also:
- Constant Field Values
-
FIXED_FOOTER_VALUE
public static final int FIXED_FOOTER_VALUE
Fixed footer in card.
FIXED_FOOTER = 4;
- See Also:
- Constant Field Values
-
UPDATE_SUBJECT_AND_RECIPIENTS_VALUE
public static final int UPDATE_SUBJECT_AND_RECIPIENTS_VALUE
Update the subject and recipients of a draft.
UPDATE_SUBJECT_AND_RECIPIENTS = 5;
- See Also:
- Constant Field Values
-
GRID_WIDGET_VALUE
public static final int GRID_WIDGET_VALUE
The grid widget.
GRID_WIDGET = 6;
- See Also:
- Constant Field Values
-
ADDON_COMPOSE_UI_ACTION_VALUE
public static final int ADDON_COMPOSE_UI_ACTION_VALUE
A Gmail add-on action that applies to the addon compose UI.
ADDON_COMPOSE_UI_ACTION = 7;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static AddOnWidgetSet.WidgetType[] 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 (AddOnWidgetSet.WidgetType c : AddOnWidgetSet.WidgetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddOnWidgetSet.WidgetType 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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static AddOnWidgetSet.WidgetType 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 nameNullPointerException
- if the argument is null
-
forNumber
public static AddOnWidgetSet.WidgetType 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<AddOnWidgetSet.WidgetType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static AddOnWidgetSet.WidgetType 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 nameNullPointerException
- if the argument is null
-
-