Package com.google.cloud.automl.v1beta1
Enum TypeCode
- java.lang.Object
-
- java.lang.Enum<TypeCode>
-
- com.google.cloud.automl.v1beta1.TypeCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TypeCode>
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 enumgoogle.cloud.automl.v1beta1.TypeCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYEncoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].CATEGORYValues of this type are not further understood by AutoML, e.g.FLOAT64Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.STRINGEncoded as `string`.STRUCTEncoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].TIMESTAMPMust be between 0AD and 9999AD.TYPE_CODE_UNSPECIFIEDNot specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intARRAY_VALUEEncoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].static intCATEGORY_VALUEValues of this type are not further understood by AutoML, e.g.static intFLOAT64_VALUEEncoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.static intSTRING_VALUEEncoded as `string`.static intSTRUCT_VALUEEncoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].static intTIMESTAMP_VALUEMust be between 0AD and 9999AD.static intTYPE_CODE_UNSPECIFIED_VALUENot specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TypeCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<TypeCode>internalGetValueMap()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 TypeCodevalueOf(String name)Returns 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 Detail
-
TYPE_CODE_UNSPECIFIED
public static final TypeCode TYPE_CODE_UNSPECIFIED
Not specified. Should not be used.
TYPE_CODE_UNSPECIFIED = 0;
-
FLOAT64
public static final TypeCode FLOAT64
Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.
FLOAT64 = 3;
-
TIMESTAMP
public static final TypeCode 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
public static final TypeCode STRING
Encoded as `string`.
STRING = 6;
-
ARRAY
public static final TypeCode 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
public static final TypeCode STRUCT
Encoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
STRUCT = 9;
-
CATEGORY
public static final TypeCode 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
public static final TypeCode UNRECOGNIZED
-
-
Field Detail
-
TYPE_CODE_UNSPECIFIED_VALUE
public static final int TYPE_CODE_UNSPECIFIED_VALUE
Not specified. Should not be used.
TYPE_CODE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
FLOAT64_VALUE
public static final int FLOAT64_VALUE
Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.
FLOAT64 = 3;- See Also:
- Constant Field Values
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUE
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;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
Encoded as `string`.
STRING = 6;- See Also:
- Constant Field Values
-
ARRAY_VALUE
public static final int ARRAY_VALUE
Encoded 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:
- Constant Field Values
-
STRUCT_VALUE
public static final int STRUCT_VALUE
Encoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
STRUCT = 9;- See Also:
- Constant Field Values
-
CATEGORY_VALUE
public static final int CATEGORY_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TypeCode[] 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 (TypeCode c : TypeCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeCode 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static TypeCode 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 TypeCode 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<TypeCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TypeCode 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
-
-