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
Namespace
Google \ Cloud \ Firestore \ Admin \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. A parent name of the form |
↳ index |
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 | |
---|---|
Type | Description |
string |
setParent
Required. A parent name of the form
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getIndex
Required. The composite index to create.
Returns | |
---|---|
Type | Description |
Index|null |
hasIndex
clearIndex
setIndex
Required. The composite index to create.
Parameter | |
---|---|
Name | Description |
var |
Index
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. A parent name of the form
|
index |
Index
Required. The composite index to create. |
Returns | |
---|---|
Type | Description |
CreateIndexRequest |