public sealed class Index.Types.IndexField : IMessage<Index.Types.IndexField>, IEquatable<Index.Types.IndexField>, IDeepCloneable<Index.Types.IndexField>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore Admin v1 API class Index.Types.IndexField.
A field in an index.
The field_path describes which field is indexed, the value_mode describes
how the field value is indexed.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eIndex.Types.IndexField\u003c/code\u003e class, part of the Firestore Admin v1 API, represents a field within an index, defining how it is indexed.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various indexing methods, such as array operations via \u003ccode\u003eArrayConfig\u003c/code\u003e, ordering and comparison via \u003ccode\u003eOrder\u003c/code\u003e, and nearest neighbor/distance operations on vectors through \u003ccode\u003eVectorConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it compatible with Google Protocol Buffers.\u003c/p\u003e\n"],["\u003cp\u003eThe current version provided is 3.12.0 and provides links to older versions of the documentation for this class, spanning back to version 2.2.0, for developers to refer to.\u003c/p\u003e\n"]]],[],null,["# Firestore Admin v1 API - Class Index.Types.IndexField (3.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.14.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.13.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.12.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.11.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.10.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.9.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.8.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.7.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.6.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.5.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.4.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.3.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.2.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.1.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/3.0.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.4.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.3.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/2.2.0/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField) \n\n public sealed class Index.Types.IndexField : IMessage\u003cIndex.Types.IndexField\u003e, IEquatable\u003cIndex.Types.IndexField\u003e, IDeepCloneable\u003cIndex.Types.IndexField\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore Admin v1 API class Index.Types.IndexField.\n\nA field in an index.\nThe field_path describes which field is indexed, the value_mode describes\nhow the field value is indexed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Index.Types.IndexField \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Index](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types)[IndexField](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Index](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types)[IndexField](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Index](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types)[IndexField](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1.Index.Types.IndexField), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore.Admin.V1](/dotnet/docs/reference/Google.Cloud.Firestore.Admin.V1/latest/Google.Cloud.Firestore.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.Admin.V1.dll\n\nConstructors\n------------\n\n### IndexField()\n\n public IndexField()\n\n### IndexField(IndexField)\n\n public IndexField(Index.Types.IndexField other)\n\nProperties\n----------\n\n### ArrayConfig\n\n public Index.Types.IndexField.Types.ArrayConfig ArrayConfig { get; set; }\n\nIndicates that this field supports operations on `array_value`s.\n\n### FieldPath\n\n public string FieldPath { get; set; }\n\nCan be **name**.\nFor single field indexes, this must match the name of the field or may\nbe omitted.\n\n### HasArrayConfig\n\n public bool HasArrayConfig { get; }\n\nGets whether the \"array_config\" field is set\n\n### HasOrder\n\n public bool HasOrder { get; }\n\nGets whether the \"order\" field is set\n\n### Order\n\n public Index.Types.IndexField.Types.Order Order { get; set; }\n\nIndicates that this field supports ordering by the specified order or\ncomparing using =, !=, \\\u003c, \\\u003c=, \\\u003e, \\\u003e=.\n\n### ValueModeCase\n\n public Index.Types.IndexField.ValueModeOneofCase ValueModeCase { get; }\n\n### VectorConfig\n\n public Index.Types.IndexField.Types.VectorConfig VectorConfig { get; set; }\n\nIndicates that this field supports nearest neighbor and distance\noperations on vector."]]