Enum FieldConfig.FieldType

java.lang.Object
java.lang.Enum<FieldConfig.FieldType>
com.google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<FieldConfig.FieldType>
Enclosing class:
FieldConfig

public static enum FieldConfig.FieldType extends Enum<FieldConfig.FieldType> implements com.google.protobuf.ProtocolMessageEnum
 Field value type in the Schema.
 
Protobuf enum google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType
  • Enum Constant Details

    • FIELD_TYPE_UNSPECIFIED

      public static final FieldConfig.FieldType FIELD_TYPE_UNSPECIFIED
       Field type is unspecified.
       
      FIELD_TYPE_UNSPECIFIED = 0;
    • OBJECT

      public static final FieldConfig.FieldType OBJECT
       Field value type is Object.
       
      OBJECT = 1;
    • STRING

      public static final FieldConfig.FieldType STRING
       Field value type is String.
       
      STRING = 2;
    • NUMBER

      public static final FieldConfig.FieldType NUMBER
       Field value type is Number.
       
      NUMBER = 3;
    • INTEGER

      public static final FieldConfig.FieldType INTEGER
       Field value type is Integer.
       
      INTEGER = 4;
    • BOOLEAN

      public static final FieldConfig.FieldType BOOLEAN
       Field value type is Boolean.
       
      BOOLEAN = 5;
    • GEOLOCATION

      public static final FieldConfig.FieldType GEOLOCATION
       Field value type is Geolocation. Geolocation is expressed as an object
       with the following keys:
      
       * `id`: a string representing the location id
       * `longitude`: a number representing the longitude coordinate of the
       location
       * `latitude`: a number repesenting the latitude coordinate of the
       location
       * `address`: a string representing the full address of the location
      
       `latitude` and `longitude` must always be provided together. At least one
       of a) `address` or b) `latitude`-`longitude` pair must be provided.
       
      GEOLOCATION = 6;
    • DATETIME

      public static final FieldConfig.FieldType DATETIME
       Field value type is Datetime. Datetime can be expressed as either:
      
       * a number representing milliseconds-since-the-epoch
       * a string representing milliseconds-since-the-epoch. e.g.
       `"1420070400001"`
       * a string representing the [ISO
       8601](https://en.wikipedia.org/wiki/ISO_8601) date or date and time. e.g.
       `"2015-01-01"` or `"2015-01-01T12:10:30Z"`
       
      DATETIME = 7;
    • UNRECOGNIZED

      public static final FieldConfig.FieldType UNRECOGNIZED
  • Field Details

    • FIELD_TYPE_UNSPECIFIED_VALUE

      public static final int FIELD_TYPE_UNSPECIFIED_VALUE
       Field type is unspecified.
       
      FIELD_TYPE_UNSPECIFIED = 0;
      See Also:
    • OBJECT_VALUE

      public static final int OBJECT_VALUE
       Field value type is Object.
       
      OBJECT = 1;
      See Also:
    • STRING_VALUE

      public static final int STRING_VALUE
       Field value type is String.
       
      STRING = 2;
      See Also:
    • NUMBER_VALUE

      public static final int NUMBER_VALUE
       Field value type is Number.
       
      NUMBER = 3;
      See Also:
    • INTEGER_VALUE

      public static final int INTEGER_VALUE
       Field value type is Integer.
       
      INTEGER = 4;
      See Also:
    • BOOLEAN_VALUE

      public static final int BOOLEAN_VALUE
       Field value type is Boolean.
       
      BOOLEAN = 5;
      See Also:
    • GEOLOCATION_VALUE

      public static final int GEOLOCATION_VALUE
       Field value type is Geolocation. Geolocation is expressed as an object
       with the following keys:
      
       * `id`: a string representing the location id
       * `longitude`: a number representing the longitude coordinate of the
       location
       * `latitude`: a number repesenting the latitude coordinate of the
       location
       * `address`: a string representing the full address of the location
      
       `latitude` and `longitude` must always be provided together. At least one
       of a) `address` or b) `latitude`-`longitude` pair must be provided.
       
      GEOLOCATION = 6;
      See Also:
    • DATETIME_VALUE

      public static final int DATETIME_VALUE
       Field value type is Datetime. Datetime can be expressed as either:
      
       * a number representing milliseconds-since-the-epoch
       * a string representing milliseconds-since-the-epoch. e.g.
       `"1420070400001"`
       * a string representing the [ISO
       8601](https://en.wikipedia.org/wiki/ISO_8601) date or date and time. e.g.
       `"2015-01-01"` or `"2015-01-01T12:10:30Z"`
       
      DATETIME = 7;
      See Also:
  • Method Details

    • values

      public static FieldConfig.FieldType[] 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 FieldConfig.FieldType 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 FieldConfig.FieldType 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 FieldConfig.FieldType 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<FieldConfig.FieldType> 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 FieldConfig.FieldType 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