FieldOperationMetadata

Metadata for google.longrunning.Operation results from FirestoreAdmin.UpdateField.

JSON representation
{
  "startTime": string,
  "endTime": string,
  "field": string,
  "indexConfigDeltas": [
    {
      object (IndexConfigDelta)
    }
  ],
  "state": enum (OperationState),
  "progressDocuments": {
    object (Progress)
  },
  "progressBytes": {
    object (Progress)
  },
  "ttlConfigDelta": {
    object (TtlConfigDelta)
  }
}
Fields
startTime

string (Timestamp format)

The time this operation started.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

The time this operation completed. Will be unset if operation still in progress.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

field

string

The field resource that this operation is acting on. For example: projects/{projectId}/databases/{databaseId}/collectionGroups/{collectionId}/fields/{fieldPath}

indexConfigDeltas[]

object (IndexConfigDelta)

A list of IndexConfigDelta, which describe the intent of this operation.

state

enum (OperationState)

The state of the operation.

progressDocuments

object (Progress)

The progress, in documents, of this operation.

progressBytes

object (Progress)

The progress, in bytes, of this operation.

ttlConfigDelta

object (TtlConfigDelta)

Describes the deltas of TTL configuration.

IndexConfigDelta

Information about an index configuration change.

JSON representation
{
  "changeType": enum (ChangeType),
  "index": {
    object (Index)
  }
}
Fields
changeType

enum (ChangeType)

Specifies how the index is changing.

index

object (Index)

The index being changed.

Index

Cloud Firestore indexes enable simple and complex queries against documents in a database.

JSON representation
{
  "name": string,
  "queryScope": enum (QueryScope),
  "apiScope": enum (ApiScope),
  "fields": [
    {
      object (IndexField)
    }
  ],
  "state": enum (State)
}
Fields
name

string

Output only. A server defined name for this index. The form of this name for composite indexes will be: projects/{projectId}/databases/{databaseId}/collectionGroups/{collectionId}/indexes/{composite_index_id} For single field indexes, this field will be empty.

queryScope

enum (QueryScope)

Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id.

Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.

apiScope

enum (ApiScope)

The API scope supported by this index.

fields[]

object (IndexField)

The fields supported by this index.

For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path __name__. If, on creation, __name__ was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the __name__ will be ordered ASCENDING (unless explicitly specified).

For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.

state

enum (State)

Output only. The serving state of the index.

IndexField

A field in an index. The fieldPath describes which field is indexed, the value_mode describes how the field value is indexed.

JSON representation
{
  "fieldPath": string,

  // Union field value_mode can be only one of the following:
  "order": enum (Order),
  "arrayConfig": enum (ArrayConfig)
  // End of list of possible types for union field value_mode.
}
Fields
fieldPath

string

Can be name. For single field indexes, this must match the name of the field or may be omitted.

Union field value_mode. How the field value is indexed. value_mode can be only one of the following:
order

enum (Order)

Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.

arrayConfig

enum (ArrayConfig)

Indicates that this field supports operations on arrayValues.

TtlConfigDelta

Information about a TTL configuration change.

JSON representation
{
  "changeType": enum (ChangeType)
}
Fields
changeType

enum (ChangeType)

Specifies how the TTL configuration is changing.