(::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig) — The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
value (::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig) — The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
Returns
(::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig) — The index configuration for this field. If unset, field indexing will
revert to the configuration defined by the ancestor_field. To
explicitly remove all indexes for this field, specify an index config
with an empty list of indexes.
#name
defname()->::String
Returns
(::String) — Required. A field name of the form:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path can be a simple field name, e.g. address or a path to fields
within map_value , e.g. address.city,
or a special field path. The only valid special field is *, which
represents any field.
Field paths can be quoted using ` (backtick). The only character that
must be escaped within a quoted field path is the backtick character
itself, escaped using a backslash. Special characters in field paths that
must be quoted include: *, .,
` (backtick), [, ], as well as any ascii symbolic characters.
Examples:
`address.city` represents a field named address.city, not the map
key city in the field address. `*` represents a field named *,
not any field.
A special Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*
Indexes defined on this Field will be applied to all fields which do not
have their own Field index configuration.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. A field name of the form:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path can be a simple field name, e.g. address or a path to fields
within map_value , e.g. address.city,
or a special field path. The only valid special field is *, which
represents any field.
Field paths can be quoted using ` (backtick). The only character that
must be escaped within a quoted field path is the backtick character
itself, escaped using a backslash. Special characters in field paths that
must be quoted include: *, .,
` (backtick), [, ], as well as any ascii symbolic characters.
Examples:
`address.city` represents a field named address.city, not the map
key city in the field address. `*` represents a field named *,
not any field.
A special Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*
Indexes defined on this Field will be applied to all fields which do not
have their own Field index configuration.
Returns
(::String) — Required. A field name of the form:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}
A field path can be a simple field name, e.g. address or a path to fields
within map_value , e.g. address.city,
or a special field path. The only valid special field is *, which
represents any field.
Field paths can be quoted using ` (backtick). The only character that
must be escaped within a quoted field path is the backtick character
itself, escaped using a backslash. Special characters in field paths that
must be quoted include: *, .,
` (backtick), [, ], as well as any ascii symbolic characters.
Examples:
`address.city` represents a field named address.city, not the map
key city in the field address. `*` represents a field named *,
not any field.
A special Field contains the default indexing settings for all fields.
This field's resource name is:
projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*
Indexes defined on this Field will be applied to all fields which do not
have their own Field index configuration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Firestore Admin V1 API - Class Google::Cloud::Firestore::Admin::V1::Field (v1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/ruby/docs/reference/google-cloud-firestore-admin-v1/latest/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.6.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.6.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.5.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.5.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.4.1](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.4.1/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.3.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.3.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.2.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.2.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.1.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.1.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [1.0.1](/ruby/docs/reference/google-cloud-firestore-admin-v1/1.0.1/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.18.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.18.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.17.1](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.17.1/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.16.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.16.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.15.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.15.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.14.3](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.14.3/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.13.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.13.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.12.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.12.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.11.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.11.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.10.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.10.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.9.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.9.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.8.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.8.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.7.1](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.7.1/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.6.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.6.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.5.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.5.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.4.0](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.4.0/Google-Cloud-Firestore-Admin-V1-Field)\n- [0.3.5](/ruby/docs/reference/google-cloud-firestore-admin-v1/0.3.5/Google-Cloud-Firestore-Admin-V1-Field) \nReference documentation and code samples for the Cloud Firestore Admin V1 API class Google::Cloud::Firestore::Admin::V1::Field.\n\nRepresents a single field in the database.\n\n\n\u003cbr /\u003e\n\nFields are grouped by their \"Collection Group\", which represent all\ncollections in the database with the same ID. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #index_config\n\n def index_config() -\u003e ::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig\n\n**Returns**\n\n- ([::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig](./Google-Cloud-Firestore-Admin-V1-Field-IndexConfig)) --- The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes.\n\n### #index_config=\n\n def index_config=(value) -\u003e ::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig](./Google-Cloud-Firestore-Admin-V1-Field-IndexConfig)) --- The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes. \n**Returns**\n\n- ([::Google::Cloud::Firestore::Admin::V1::Field::IndexConfig](./Google-Cloud-Firestore-Admin-V1-Field-IndexConfig)) --- The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`\n\n\n A field path can be a simple field name, e.g. `address` or a path to fields\n within `map_value` , e.g. `address.city`,\n or a special field path. The only valid special field is `*`, which\n represents any field.\n\n Field paths can be quoted using ````` (backtick). The only character that\n must be escaped within a quoted field path is the backtick character\n itself, escaped using a backslash. Special characters in field paths that\n must be quoted include: `*`, `.`,\n ````` (backtick), `[`, `]`, as well as any ascii symbolic characters.\n\n Examples:\n ```address.city``` represents a field named `address.city`, not the map\n key `city` in the field `address`. ```*``` represents a field named `*`,\n not any field.\n\n A special `Field` contains the default indexing settings for all fields.\n This field's resource name is:\n `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`\n Indexes defined on this `Field` will be applied to all fields which do not\n have their own `Field` index configuration.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`\n\n\n A field path can be a simple field name, e.g. `address` or a path to fields\n within `map_value` , e.g. `address.city`,\n or a special field path. The only valid special field is `*`, which\n represents any field.\n\n Field paths can be quoted using ````` (backtick). The only character that\n must be escaped within a quoted field path is the backtick character\n itself, escaped using a backslash. Special characters in field paths that\n must be quoted include: `*`, `.`,\n ````` (backtick), `[`, `]`, as well as any ascii symbolic characters.\n\n Examples:\n ```address.city``` represents a field named `address.city`, not the map\n key `city` in the field `address`. ```*``` represents a field named `*`,\n not any field.\n\n A special `Field` contains the default indexing settings for all fields.\n This field's resource name is:\n `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`\n Indexes defined on this `Field` will be applied to all fields which do not\nhave their own `Field` index configuration. \n**Returns**\n\n- (::String) --- Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`\n\n\n A field path can be a simple field name, e.g. `address` or a path to fields\n within `map_value` , e.g. `address.city`,\n or a special field path. The only valid special field is `*`, which\n represents any field.\n\n Field paths can be quoted using ````` (backtick). The only character that\n must be escaped within a quoted field path is the backtick character\n itself, escaped using a backslash. Special characters in field paths that\n must be quoted include: `*`, `.`,\n ````` (backtick), `[`, `]`, as well as any ascii symbolic characters.\n\n Examples:\n ```address.city``` represents a field named `address.city`, not the map\n key `city` in the field `address`. ```*``` represents a field named `*`,\n not any field.\n\n A special `Field` contains the default indexing settings for all fields.\n This field's resource name is:\n `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`\n Indexes defined on this `Field` will be applied to all fields which do not\n have their own `Field` index configuration.\n\n### #ttl_config\n\n def ttl_config() -\u003e ::Google::Cloud::Firestore::Admin::V1::Field::TtlConfig\n\n**Returns**\n\n- ([::Google::Cloud::Firestore::Admin::V1::Field::TtlConfig](./Google-Cloud-Firestore-Admin-V1-Field-TtlConfig)) --- The TTL configuration for this `Field`. Setting or unsetting this will enable or disable the TTL for documents that have this `Field`.\n\n### #ttl_config=\n\n def ttl_config=(value) -\u003e ::Google::Cloud::Firestore::Admin::V1::Field::TtlConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Firestore::Admin::V1::Field::TtlConfig](./Google-Cloud-Firestore-Admin-V1-Field-TtlConfig)) --- The TTL configuration for this `Field`. Setting or unsetting this will enable or disable the TTL for documents that have this `Field`. \n**Returns**\n\n- ([::Google::Cloud::Firestore::Admin::V1::Field::TtlConfig](./Google-Cloud-Firestore-Admin-V1-Field-TtlConfig)) --- The TTL configuration for this `Field`. Setting or unsetting this will enable or disable the TTL for documents that have this `Field`."]]