Enum FieldConfig.FieldType (0.49.0)

public enum FieldConfig.FieldType extends Enum<FieldConfig.FieldType> implements ProtocolMessageEnum

Field value type in the Schema.

Protobuf enum google.cloud.discoveryengine.v1alpha.FieldConfig.FieldType

Implements

ProtocolMessageEnum

Static Fields

Name Description
BOOLEAN

Field value type is Boolean.

BOOLEAN = 5;

BOOLEAN_VALUE

Field value type is Boolean.

BOOLEAN = 5;

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 date or date and time. e.g. "2015-01-01" or "2015-01-01T12:10:30Z"

DATETIME = 7;

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 date or date and time. e.g. "2015-01-01" or "2015-01-01T12:10:30Z"

DATETIME = 7;

FIELD_TYPE_UNSPECIFIED

Field type is unspecified.

FIELD_TYPE_UNSPECIFIED = 0;

FIELD_TYPE_UNSPECIFIED_VALUE

Field type is unspecified.

FIELD_TYPE_UNSPECIFIED = 0;

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;

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;

INTEGER

Field value type is Integer.

INTEGER = 4;

INTEGER_VALUE

Field value type is Integer.

INTEGER = 4;

NUMBER

Field value type is Number.

NUMBER = 3;

NUMBER_VALUE

Field value type is Number.

NUMBER = 3;

OBJECT

Field value type is Object.

OBJECT = 1;

OBJECT_VALUE

Field value type is Object.

OBJECT = 1;

STRING

Field value type is String.

STRING = 2;

STRING_VALUE

Field value type is String.

STRING = 2;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()