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>

@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 Constants
    Enum Constant
    Description
    Encoded 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Encoded as `list`, where the list elements are represented according to [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
    static final int
    Values of this type are not further understood by AutoML, e.g.
    static final int
    Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.
    static final int
    Encoded as `string`.
    static final int
    Encoded as `struct`, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
    static final int
    Must be between 0AD and 9999AD.
    static final int
    Not specified.
  • Method Summary

    Modifier and Type
    Method
    Description
    static TypeCode
    forNumber(int value)
     
    static com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<TypeCode>
     
    static TypeCode
    valueOf(int value)
    Deprecated.
    static TypeCode
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this type with the specified name.
    static TypeCode
    Returns the enum constant of this type with the specified name.
    static TypeCode[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • TYPE_CODE_UNSPECIFIED_VALUE

      public static final int TYPE_CODE_UNSPECIFIED_VALUE
       Not specified. Should not be used.
       
      TYPE_CODE_UNSPECIFIED = 0;
      See Also:
    • FLOAT64_VALUE

      public static final int FLOAT64_VALUE
       Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
       `"-Infinity"`.
       
      FLOAT64 = 3;
      See Also:
    • 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:
    • STRING_VALUE

      public static final int STRING_VALUE
       Encoded as `string`.
       
      STRING = 6;
      See Also:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static TypeCode[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static 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 name
      NullPointerException - if the argument is null