Cloud Datastore V1 Client - Class RunQueryRequest (2.0.3)

Namespace

Google \ Cloud \ Datastore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ project_idstring

Required. The ID of the project against which to make the request.

↳ database_idstring

The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.

↳ partition_idPartitionId

Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

↳ read_optionsReadOptions

The options for this query.

↳ queryQuery

The query to run.

↳ gql_queryGqlQuery

The GQL query to run. This query must be a non-aggregation query.

↳ property_maskPropertyMask

The properties to return. This field must not be set for a projection query. SeeLookupRequest.property_mask.

↳ explain_optionsExplainOptions

Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.

getProjectId

Required. The ID of the project against which to make the request.

Returns
TypeDescription
string

setProjectId

Required. The ID of the project against which to make the request.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDatabaseId

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the defaultdatabase.

Returns
TypeDescription
string

setDatabaseId

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the defaultdatabase.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPartitionId

Entities are partitioned into subsets, identified by a partition ID.

Queries are scoped to a single partition.This partition ID is normalized with the standard default contextpartition ID.

Returns
TypeDescription
PartitionId|null

hasPartitionId

clearPartitionId

setPartitionId

Entities are partitioned into subsets, identified by a partition ID.

Queries are scoped to a single partition.This partition ID is normalized with the standard default contextpartition ID.

Parameter
NameDescription
varPartitionId
Returns
TypeDescription
$this

getReadOptions

The options for this query.

Returns
TypeDescription
ReadOptions|null

hasReadOptions

clearReadOptions

setReadOptions

The options for this query.

Parameter
NameDescription
varReadOptions
Returns
TypeDescription
$this

getQuery

The query to run.

Returns
TypeDescription
Query|null

hasQuery

setQuery

The query to run.

Parameter
NameDescription
varQuery
Returns
TypeDescription
$this

getGqlQuery

The GQL query to run. This query must be a non-aggregation query.

Returns
TypeDescription
GqlQuery|null

hasGqlQuery

setGqlQuery

The GQL query to run. This query must be a non-aggregation query.

Parameter
NameDescription
varGqlQuery
Returns
TypeDescription
$this

getPropertyMask

The properties to return.

This field must not be set for a projection query.SeeLookupRequest.property_mask.

Returns
TypeDescription
PropertyMask|null

hasPropertyMask

clearPropertyMask

setPropertyMask

The properties to return.

This field must not be set for a projection query.SeeLookupRequest.property_mask.

Parameter
NameDescription
varPropertyMask
Returns
TypeDescription
$this

getExplainOptions

Optional. Explain options for the query. If set, additional querystatistics will be returned. If not, only query results will be returned.

Returns
TypeDescription
ExplainOptions|null

hasExplainOptions

clearExplainOptions

setExplainOptions

Optional. Explain options for the query. If set, additional querystatistics will be returned. If not, only query results will be returned.

Parameter
NameDescription
varExplainOptions
Returns
TypeDescription
$this

getQueryType

Returns
TypeDescription
string

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.