Reference documentation and code samples for the Cloud Firestore Admin V1 API class Google::Cloud::Firestore::Admin::V1::Index::IndexField.
A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#array_config
def array_config() -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig) — Indicates that this field supports operations on
array_value
s.Note: The following fields are mutually exclusive:
array_config
,order
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#array_config=
def array_config=(value) -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig
-
value (::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig) — Indicates that this field supports operations on
array_value
s.Note: The following fields are mutually exclusive:
array_config
,order
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig) — Indicates that this field supports operations on
array_value
s.Note: The following fields are mutually exclusive:
array_config
,order
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#field_path
def field_path() -> ::String
- (::String) — Can be name. For single field indexes, this must match the name of the field or may be omitted.
#field_path=
def field_path=(value) -> ::String
- value (::String) — Can be name. For single field indexes, this must match the name of the field or may be omitted.
- (::String) — Can be name. For single field indexes, this must match the name of the field or may be omitted.
#order
def order() -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order) — Indicates that this field supports ordering by the specified order or
comparing using =, !=, <, <=, >, >=.
Note: The following fields are mutually exclusive:
order
,array_config
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#order=
def order=(value) -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order
-
value (::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order) — Indicates that this field supports ordering by the specified order or
comparing using =, !=, <, <=, >, >=.
Note: The following fields are mutually exclusive:
order
,array_config
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order) — Indicates that this field supports ordering by the specified order or
comparing using =, !=, <, <=, >, >=.
Note: The following fields are mutually exclusive:
order
,array_config
,vector_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#vector_config
def vector_config() -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig) — Indicates that this field supports nearest neighbor and distance
operations on vector.
Note: The following fields are mutually exclusive:
vector_config
,order
,array_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#vector_config=
def vector_config=(value) -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig
-
value (::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig) — Indicates that this field supports nearest neighbor and distance
operations on vector.
Note: The following fields are mutually exclusive:
vector_config
,order
,array_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig) — Indicates that this field supports nearest neighbor and distance
operations on vector.
Note: The following fields are mutually exclusive:
vector_config
,order
,array_config
. If a field in that set is populated, all other fields in the set will automatically be cleared.