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 and Description |
|---|
BOOLEAN
Field value type is Boolean.
|
DATETIME
Field value type is Datetime.
|
FIELD_TYPE_UNSPECIFIED
Field type is unspecified.
|
GEOLOCATION
Field value type is Geolocation.
|
INTEGER
Field value type is Integer.
|
NUMBER
Field value type is Number.
|
OBJECT
Field value type is Object.
|
STRING
Field value type is String.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_VALUE
Field value type is Boolean.
|
static int |
DATETIME_VALUE
Field value type is Datetime.
|
static int |
FIELD_TYPE_UNSPECIFIED_VALUE
Field type is unspecified.
|
static int |
GEOLOCATION_VALUE
Field value type is Geolocation.
|
static int |
INTEGER_VALUE
Field value type is Integer.
|
static int |
NUMBER_VALUE
Field value type is Number.
|
static int |
OBJECT_VALUE
Field value type is Object.
|
static int |
STRING_VALUE
Field value type is String.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldConfig.FieldType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<FieldConfig.FieldType> |
internalGetValueMap() |
static FieldConfig.FieldType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FieldConfig.FieldType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FieldConfig.FieldType |
valueOf(String name)
Returns 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.
|
public static final FieldConfig.FieldType FIELD_TYPE_UNSPECIFIED
Field type is unspecified.
FIELD_TYPE_UNSPECIFIED = 0;public static final FieldConfig.FieldType OBJECT
Field value type is Object.
OBJECT = 1;public static final FieldConfig.FieldType STRING
Field value type is String.
STRING = 2;public static final FieldConfig.FieldType NUMBER
Field value type is Number.
NUMBER = 3;public static final FieldConfig.FieldType INTEGER
Field value type is Integer.
INTEGER = 4;public static final FieldConfig.FieldType BOOLEAN
Field value type is Boolean.
BOOLEAN = 5;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;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;public static final FieldConfig.FieldType UNRECOGNIZED
public static final int FIELD_TYPE_UNSPECIFIED_VALUE
Field type is unspecified.
FIELD_TYPE_UNSPECIFIED = 0;public static final int OBJECT_VALUE
Field value type is Object.
OBJECT = 1;public static final int STRING_VALUE
Field value type is String.
STRING = 2;public static final int NUMBER_VALUE
Field value type is Number.
NUMBER = 3;public static final int INTEGER_VALUE
Field value type is Integer.
INTEGER = 4;public static final int BOOLEAN_VALUE
Field value type is Boolean.
BOOLEAN = 5;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;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;public static FieldConfig.FieldType[] values()
for (FieldConfig.FieldType c : FieldConfig.FieldType.values()) System.out.println(c);
public static FieldConfig.FieldType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static FieldConfig.FieldType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static FieldConfig.FieldType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FieldConfig.FieldType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static FieldConfig.FieldType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.