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 Summary
Enum ConstantsEnum ConstantDescriptionField value type is Boolean.Field value type is Datetime.Field type is unspecified.Field value type is Geolocation.Field value type is Integer.Field value type is Number.Field value type is Object.Field value type is String. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intField value type is Boolean.static final intField value type is Datetime.static final intField type is unspecified.static final intField value type is Geolocation.static final intField value type is Integer.static final intField value type is Number.static final intField value type is Object.static final intField value type is String. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldConfig.FieldTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FieldConfig.FieldType>static FieldConfig.FieldTypevalueOf(int value) Deprecated.static FieldConfig.FieldTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static FieldConfig.FieldTypeReturns the enum constant of this type with the specified name.static FieldConfig.FieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIELD_TYPE_UNSPECIFIED
Field type is unspecified.
FIELD_TYPE_UNSPECIFIED = 0; -
OBJECT
Field value type is Object.
OBJECT = 1; -
STRING
Field value type is String.
STRING = 2; -
NUMBER
Field value type is Number.
NUMBER = 3; -
INTEGER
Field value type is Integer.
INTEGER = 4; -
BOOLEAN
Field value type is Boolean.
BOOLEAN = 5; -
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
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
-
-
Field Details
-
FIELD_TYPE_UNSPECIFIED_VALUE
public static final int FIELD_TYPE_UNSPECIFIED_VALUEField type is unspecified.
FIELD_TYPE_UNSPECIFIED = 0;- See Also:
-
OBJECT_VALUE
public static final int OBJECT_VALUEField value type is Object.
OBJECT = 1;- See Also:
-
STRING_VALUE
public static final int STRING_VALUEField value type is String.
STRING = 2;- See Also:
-
NUMBER_VALUE
public static final int NUMBER_VALUEField value type is Number.
NUMBER = 3;- See Also:
-
INTEGER_VALUE
public static final int INTEGER_VALUEField value type is Integer.
INTEGER = 4;- See Also:
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUEField value type is Boolean.
BOOLEAN = 5;- See Also:
-
GEOLOCATION_VALUE
public static final int GEOLOCATION_VALUEField 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_VALUEField 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
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
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 nameNullPointerException- if the argument is null
-