Interface RunQueryRequestOrBuilder (2.26.4)

publicinterface RunQueryRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatabaseId()

publicabstractStringgetDatabaseId()

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

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

string database_id = 9;

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

publicabstractByteStringgetDatabaseIdBytes()

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

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

string database_id = 9;

Returns
Type Description
ByteString

The bytes for databaseId.

getExplainOptions()

publicabstractExplainOptionsgetExplainOptions()

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

.google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExplainOptions

The explainOptions.

getExplainOptionsOrBuilder()

publicabstractExplainOptionsOrBuildergetExplainOptionsOrBuilder()

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

.google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExplainOptionsOrBuilder

getGqlQuery()

publicabstractGqlQuerygetGqlQuery()

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

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
Type Description
GqlQuery

The gqlQuery.

getGqlQueryOrBuilder()

publicabstractGqlQueryOrBuildergetGqlQueryOrBuilder()

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

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
Type Description
GqlQueryOrBuilder

getPartitionId()

publicabstractPartitionIdgetPartitionId()

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.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
Type Description
PartitionId

The partitionId.

getPartitionIdOrBuilder()

publicabstractPartitionIdOrBuildergetPartitionIdOrBuilder()

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.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
Type Description
PartitionIdOrBuilder

getProjectId()

publicabstractStringgetProjectId()

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

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicabstractByteStringgetProjectIdBytes()

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

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getPropertyMask()

publicabstractPropertyMaskgetPropertyMask()

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

See LookupRequest.property_mask.

.google.datastore.v1.PropertyMask property_mask = 10;

Returns
Type Description
PropertyMask

The propertyMask.

getPropertyMaskOrBuilder()

publicabstractPropertyMaskOrBuildergetPropertyMaskOrBuilder()

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

See LookupRequest.property_mask.

.google.datastore.v1.PropertyMask property_mask = 10;

Returns
Type Description
PropertyMaskOrBuilder

getQuery()

publicabstractQuerygetQuery()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
Type Description
Query

The query.

getQueryOrBuilder()

publicabstractQueryOrBuildergetQueryOrBuilder()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
Type Description
QueryOrBuilder

getQueryTypeCase()

publicabstractRunQueryRequest.QueryTypeCasegetQueryTypeCase()
Returns
Type Description
RunQueryRequest.QueryTypeCase

getReadOptions()

publicabstractReadOptionsgetReadOptions()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
Type Description
ReadOptions

The readOptions.

getReadOptionsOrBuilder()

publicabstractReadOptionsOrBuildergetReadOptionsOrBuilder()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
Type Description
ReadOptionsOrBuilder

hasExplainOptions()

publicabstractbooleanhasExplainOptions()

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

.google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the explainOptions field is set.

hasGqlQuery()

publicabstractbooleanhasGqlQuery()

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

.google.datastore.v1.GqlQuery gql_query = 7;

Returns
Type Description
boolean

Whether the gqlQuery field is set.

hasPartitionId()

publicabstractbooleanhasPartitionId()

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.

.google.datastore.v1.PartitionId partition_id = 2;

Returns
Type Description
boolean

Whether the partitionId field is set.

hasPropertyMask()

publicabstractbooleanhasPropertyMask()

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

See LookupRequest.property_mask.

.google.datastore.v1.PropertyMask property_mask = 10;

Returns
Type Description
boolean

Whether the propertyMask field is set.

hasQuery()

publicabstractbooleanhasQuery()

The query to run.

.google.datastore.v1.Query query = 3;

Returns
Type Description
boolean

Whether the query field is set.

hasReadOptions()

publicabstractbooleanhasReadOptions()

The options for this query.

.google.datastore.v1.ReadOptions read_options = 1;

Returns
Type Description
boolean

Whether the readOptions field is set.

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

Last updated 2025年11月19日 UTC.