Google Cloud Datastore Admin V1 Client - Class CreateIndexRequest (0.7.5)

Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class CreateIndexRequest.

The request for google.datastore.admin.v1.DatastoreAdmin.CreateIndex.

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

Namespace

Google \ Cloud \ Datastore \ Admin \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_id string

Project ID against which to make the request.

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

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

getProjectId

Project ID against which to make the request.

Returns
TypeDescription
string

setProjectId

Project ID against which to make the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIndex

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

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

hasIndex

clearIndex

setIndex

The index to create. The name and state fields are output only and will be ignored. Single property indexes cannot be created or deleted.

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