Reference documentation and code samples for the Cloud Firestore V1 Client class State.
The state of an index. During index creation, an index will be in the
CREATING state. If the index is created successfully, it will transition
to the READY state. If the index creation encounters a problem, the index
will transition to the NEEDS_REPAIR state.
Protobuf type google.firestore.admin.v1.Index.State
Namespace
Google \ Cloud \ Firestore \ Admin \ V1 \ Index
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
STATE_UNSPECIFIED
Value: 0
The state is unspecified.
Generated from protobuf enum STATE_UNSPECIFIED = 0;
CREATING
Value: 1
The index is being created.
There is an active long-running operation for the index.
The index is updated when writing a document.
Some index data may exist.
Generated from protobuf enum CREATING = 1;
READY
Value: 2
The index is ready to be used.
The index is updated when writing a document.
The index is fully populated from all stored documents it applies to.
Generated from protobuf enum READY = 2;
NEEDS_REPAIR
Value: 3
The index was being created, but something went wrong.
There is no active long-running operation for the index,
and the most recently finished long-running operation failed.
The index is not updated when writing a document.
Some index data may exist.
Use the google.longrunning.Operations API to determine why the operation
that last attempted to create this index failed, then re-create the
index.
[[["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 V1 Client - Class State (1.53.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.53.0 (latest)](/php/docs/reference/cloud-firestore/latest/Admin.V1.Index.State)\n- [1.52.0](/php/docs/reference/cloud-firestore/1.52.0/Admin.V1.Index.State)\n- [1.51.0](/php/docs/reference/cloud-firestore/1.51.0/Admin.V1.Index.State)\n- [1.50.0](/php/docs/reference/cloud-firestore/1.50.0/Admin.V1.Index.State)\n- [1.48.1](/php/docs/reference/cloud-firestore/1.48.1/Admin.V1.Index.State)\n- [1.47.3](/php/docs/reference/cloud-firestore/1.47.3/Admin.V1.Index.State)\n- [1.46.0](/php/docs/reference/cloud-firestore/1.46.0/Admin.V1.Index.State)\n- [1.45.2](/php/docs/reference/cloud-firestore/1.45.2/Admin.V1.Index.State)\n- [1.44.1](/php/docs/reference/cloud-firestore/1.44.1/Admin.V1.Index.State)\n- [1.43.3](/php/docs/reference/cloud-firestore/1.43.3/Admin.V1.Index.State)\n- [1.40.0](/php/docs/reference/cloud-firestore/1.40.0/Admin.V1.Index.State)\n- [1.39.0](/php/docs/reference/cloud-firestore/1.39.0/Admin.V1.Index.State)\n- [1.38.0](/php/docs/reference/cloud-firestore/1.38.0/Admin.V1.Index.State)\n- [1.37.7](/php/docs/reference/cloud-firestore/1.37.7/Admin.V1.Index.State)\n- [1.36.1](/php/docs/reference/cloud-firestore/1.36.1/Admin.V1.Index.State)\n- [1.35.0](/php/docs/reference/cloud-firestore/1.35.0/Admin.V1.Index.State)\n- [1.34.0](/php/docs/reference/cloud-firestore/1.34.0/Admin.V1.Index.State)\n- [1.33.0](/php/docs/reference/cloud-firestore/1.33.0/Admin.V1.Index.State)\n- [1.32.0](/php/docs/reference/cloud-firestore/1.32.0/Admin.V1.Index.State)\n- [1.31.0](/php/docs/reference/cloud-firestore/1.31.0/Admin.V1.Index.State)\n- [1.30.0](/php/docs/reference/cloud-firestore/1.30.0/Admin.V1.Index.State)\n- [1.28.0](/php/docs/reference/cloud-firestore/1.28.0/Admin.V1.Index.State)\n- [1.27.3](/php/docs/reference/cloud-firestore/1.27.3/Admin.V1.Index.State) \nReference documentation and code samples for the Cloud Firestore V1 Client class State.\n\nThe state of an index. During index creation, an index will be in the\n`CREATING` state. If the index is created successfully, it will transition\nto the `READY` state. If the index creation encounters a problem, the index\nwill transition to the `NEEDS_REPAIR` state.\n\nProtobuf type `google.firestore.admin.v1.Index.State`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Firestore \\\\ Admin \\\\ V1 \\\\ Index\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### STATE_UNSPECIFIED\n\n Value: 0\n\nThe state is unspecified.\n\nGenerated from protobuf enum `STATE_UNSPECIFIED = 0;`\n\n### CREATING\n\n Value: 1\n\nThe index is being created.\n\nThere is an active long-running operation for the index.\nThe index is updated when writing a document.\nSome index data may exist.\n\nGenerated from protobuf enum `CREATING = 1;`\n\n### READY\n\n Value: 2\n\nThe index is ready to be used.\n\nThe index is updated when writing a document.\nThe index is fully populated from all stored documents it applies to.\n\nGenerated from protobuf enum `READY = 2;`\n\n### NEEDS_REPAIR\n\n Value: 3\n\nThe index was being created, but something went wrong.\n\nThere is no active long-running operation for the index,\nand the most recently finished long-running operation failed.\nThe index is not updated when writing a document.\nSome index data may exist.\nUse the google.longrunning.Operations API to determine why the operation\nthat last attempted to create this index failed, then re-create the\nindex.\n\nGenerated from protobuf enum `NEEDS_REPAIR = 3;`"]]