# Cloud Firestore Admin V1 API - Class Google::Cloud::Firestore::Admin::V1::Index::IndexField (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.18.0 0.17.1 0.16.0 0.15.0 0.14.3 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.5 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

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_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

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_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

**Returns**

- (::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

**Parameter**

- **value** (::String) --- Can be **name**. For single field indexes, this must match the name of the field or may be omitted.
**Returns**

- (::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

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_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

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::Order](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #search_config

    def search_config() -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-Index-IndexField-SearchConfig)) --- Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.


  Note: The following fields are mutually exclusive: `search_config`, `order`, `array_config`, `vector_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #search_config=

    def search_config=(value) -> ::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-Index-IndexField-SearchConfig)) --- Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.


  Note: The following fields are mutually exclusive: `search_config`, `order`, `array_config`, `vector_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-Index-IndexField-SearchConfig)) --- Indicates that this field supports search operations. This field is only currently supported for indexes with MONGODB_COMPATIBLE_API ApiScope.


  Note: The following fields are mutually exclusive: `search_config`, `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

**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_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

**Parameter**

- **value** ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/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`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.