Enum TranslationTaskDetails.TokenType
java.lang.Object
java.lang.Enum<TranslationTaskDetails.TokenType>
com.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TranslationTaskDetails.TokenType>
- Enclosing class:
- TranslationTaskDetails
public static enum TranslationTaskDetails.TokenType
extends Enum<TranslationTaskDetails.TokenType>
implements com.google.protobuf.ProtocolMessageEnum
The special token data type.Protobuf enum
google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails.TokenType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToken type as boolean.Token type as date.Token type as float.Token type as integer.Token type as numeric.Token type as string.Token type as timestamp.Token type is not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intToken type as boolean.static final intToken type as date.static final intToken type as float.static final intToken type as integer.static final intToken type as numeric.static final intToken type as string.static final intToken type as timestamp.static final intToken type is not specified. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TranslationTaskDetails.TokenType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static TranslationTaskDetails.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TOKEN_TYPE_UNSPECIFIED
Token type is not specified.
TOKEN_TYPE_UNSPECIFIED = 0; -
STRING
Token type as string.
STRING = 1; -
INT64
Token type as integer.
INT64 = 2; -
NUMERIC
Token type as numeric.
NUMERIC = 3; -
BOOL
Token type as boolean.
BOOL = 4; -
FLOAT64
Token type as float.
FLOAT64 = 5; -
DATE
Token type as date.
DATE = 6; -
TIMESTAMP
Token type as timestamp.
TIMESTAMP = 7; -
UNRECOGNIZED
-
-
Field Details
-
TOKEN_TYPE_UNSPECIFIED_VALUE
public static final int TOKEN_TYPE_UNSPECIFIED_VALUEToken type is not specified.
TOKEN_TYPE_UNSPECIFIED = 0;- See Also:
-
STRING_VALUE
public static final int STRING_VALUEToken type as string.
STRING = 1;- See Also:
-
INT64_VALUE
public static final int INT64_VALUEToken type as integer.
INT64 = 2;- See Also:
-
NUMERIC_VALUE
public static final int NUMERIC_VALUEToken type as numeric.
NUMERIC = 3;- See Also:
-
BOOL_VALUE
public static final int BOOL_VALUEToken type as boolean.
BOOL = 4;- See Also:
-
FLOAT64_VALUE
public static final int FLOAT64_VALUEToken type as float.
FLOAT64 = 5;- See Also:
-
DATE_VALUE
public static final int DATE_VALUEToken type as date.
DATE = 6;- See Also:
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUEToken type as timestamp.
TIMESTAMP = 7;- 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
public static com.google.protobuf.Internal.EnumLiteMap<TranslationTaskDetails.TokenType> 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 TranslationTaskDetails.TokenType 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
-