Enum 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 enum google.cloud.automl.v1beta1.TypeCode
    • 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 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 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 name
        NullPointerException - if the argument is null