Package com.google.cloud.automl.v1beta1
Enum TypeCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TypeCode>
@Generated
public enum TypeCode
extends Enum<TypeCode>
implements com.google.protobuf.ProtocolMessageEnum
`TypeCode` is used as a part of [DataType][google.cloud.automl.v1beta1.DataType].Protobuf enum
google.cloud.automl.v1beta1.TypeCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEncoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].Values of this type are not further understood by AutoML, e.g.Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.Encoded as `string`.Encoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].Must be between 0AD and 9999AD.Not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEncoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].static final intValues of this type are not further understood by AutoML, e.g.static final intEncoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.static final intEncoded as `string`.static final intEncoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].static final intMust be between 0AD and 9999AD.static final intNot specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeCodeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TypeCode>static TypeCodevalueOf(int value) Deprecated.static TypeCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static TypeCodeReturns the enum constant of this type with the specified name.static TypeCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_CODE_UNSPECIFIED
Not specified. Should not be used.
TYPE_CODE_UNSPECIFIED = 0; -
FLOAT64
Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.
FLOAT64 = 3; -
TIMESTAMP
Must be between 0AD and 9999AD. Encoded as `string` according to [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if that format is not set, then in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
TIMESTAMP = 4; -
STRING
Encoded as `string`.
STRING = 6; -
ARRAY
Encoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
ARRAY = 8; -
STRUCT
Encoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
STRUCT = 9; -
CATEGORY
Values of this type are not further understood by AutoML, e.g. AutoML is unable to tell the order of values (as it could with FLOAT64), or is unable to say if one value contains another (as it could with STRING). Encoded as `string` (bytes should be base64-encoded, as described in RFC 4648, section 4).
CATEGORY = 10; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_CODE_UNSPECIFIED_VALUE
public static final int TYPE_CODE_UNSPECIFIED_VALUENot specified. Should not be used.
TYPE_CODE_UNSPECIFIED = 0;- See Also:
-
FLOAT64_VALUE
public static final int FLOAT64_VALUEEncoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.
FLOAT64 = 3;- See Also:
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUEMust be between 0AD and 9999AD. Encoded as `string` according to [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if that format is not set, then in RFC 3339 `date-time` format, where `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
TIMESTAMP = 4;- See Also:
-
STRING_VALUE
public static final int STRING_VALUEEncoded as `string`.
STRING = 6;- See Also:
-
ARRAY_VALUE
public static final int ARRAY_VALUEEncoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
ARRAY = 8;- See Also:
-
STRUCT_VALUE
public static final int STRUCT_VALUEEncoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
STRUCT = 9;- See Also:
-
CATEGORY_VALUE
public static final int CATEGORY_VALUEValues of this type are not further understood by AutoML, e.g. AutoML is unable to tell the order of values (as it could with FLOAT64), or is unable to say if one value contains another (as it could with STRING). Encoded as `string` (bytes should be base64-encoded, as described in RFC 4648, section 4).
CATEGORY = 10;- 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
-