# Firestore in Datastore mode Admin V1 API - Module Google::Cloud::Datastore::Admin::V1::Index::State (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.12.0 0.11.2 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Firestore in Datastore mode Admin V1 API module Google::Cloud::Datastore::Admin::V1::Index::State.

The possible set of states of an index.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
The state is unspecified.

### CREATING

**value:** 1  
The index is being created, and cannot be used by queries.
There is an active long-running operation for the index.
The index is updated when writing an entity.
Some index data may exist.

### READY

**value:** 2  
The index is ready to be used.
The index is updated when writing an entity.
The index is fully populated from all stored entities it applies to.

### DELETING

**value:** 3  
The index is being deleted, and cannot be used by queries.
There is an active long-running operation for the index.
The index is not updated when writing an entity.
Some index data may exist.

### ERROR

**value:** 4  
The index was being created or deleted, but something went wrong.
The index cannot by used by queries.
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 an entity.
Some index data may exist.