Cloud Firestore V1 Client - Class CreateIndexRequest (1.27.3)

Reference documentation and code samples for the Cloud Firestore V1 Client class CreateIndexRequest.

The request for FirestoreAdmin.CreateIndex.

Generated from protobuf message google.firestore.admin.v1.CreateIndexRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. A parent name of the form projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}

↳ index Google\Cloud\Firestore\Admin\V1\Index

Required. The composite index to create.

getParent

Required. A parent name of the form projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}

Returns
TypeDescription
string

setParent

Required. A parent name of the form projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIndex

Required. The composite index to create.

Returns
TypeDescription
Google\Cloud\Firestore\Admin\V1\Index|null

hasIndex

clearIndex

setIndex

Required. The composite index to create.

Parameter
NameDescription
var Google\Cloud\Firestore\Admin\V1\Index
Returns
TypeDescription
$this