Package com.google.apps.card.v1
Enum Validation.InputType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Validation.InputType>
- Enclosing class:
- Validation
public static enum Validation.InputType
extends Enum<Validation.InputType>
implements com.google.protobuf.ProtocolMessageEnum
The type of the input widget.Protobuf enum
google.apps.card.v1.Validation.InputType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn email address.A emoji selected from system-provided emoji picker.A float value.Unspecified type.An integer value.Regular text that accepts all characters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn email address.static final intA emoji selected from system-provided emoji picker.static final intA float value.static final intUnspecified type.static final intAn integer value.static final intRegular text that accepts all characters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Validation.InputTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Validation.InputType>static Validation.InputTypevalueOf(int value) Deprecated.static Validation.InputTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Validation.InputTypeReturns the enum constant of this type with the specified name.static Validation.InputType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INPUT_TYPE_UNSPECIFIED
Unspecified type. Do not use.
INPUT_TYPE_UNSPECIFIED = 0; -
TEXT
Regular text that accepts all characters.
TEXT = 1; -
INTEGER
An integer value.
INTEGER = 2; -
FLOAT
A float value.
FLOAT = 3; -
EMAIL
An email address.
EMAIL = 4; -
EMOJI_PICKER
A emoji selected from system-provided emoji picker.
EMOJI_PICKER = 5; -
UNRECOGNIZED
-
-
Field Details
-
INPUT_TYPE_UNSPECIFIED_VALUE
public static final int INPUT_TYPE_UNSPECIFIED_VALUEUnspecified type. Do not use.
INPUT_TYPE_UNSPECIFIED = 0;- See Also:
-
TEXT_VALUE
public static final int TEXT_VALUERegular text that accepts all characters.
TEXT = 1;- See Also:
-
INTEGER_VALUE
public static final int INTEGER_VALUEAn integer value.
INTEGER = 2;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEA float value.
FLOAT = 3;- See Also:
-
EMAIL_VALUE
public static final int EMAIL_VALUEAn email address.
EMAIL = 4;- See Also:
-
EMOJI_PICKER_VALUE
public static final int EMOJI_PICKER_VALUEA emoji selected from system-provided emoji picker.
EMOJI_PICKER = 5;- 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
public static Validation.InputType 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
-