Google Cloud Datastore v1 API - Class DatastoreQuery (4.15.0)

public sealed class DatastoreQuery

Reference documentation and code samples for the Google Cloud Datastore v1 API class DatastoreQuery.

A Datastore query with additional options for features such as read consistency and profiling.

Inheritance

object > DatastoreQuery

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Properties

AggregationQuery

public AggregationQuery AggregationQuery { get; set; }

The aggregation query to execute. For regular queries, this must be null. For aggregation queries, exactly one of this property or GqlQuery must be set when the query is executed.

Property Value
Type Description
AggregationQuery

ExplainOptions

public ExplainOptions ExplainOptions { get; set; }

The profiling (explain) options to use for query execution, if any.

Property Value
Type Description
ExplainOptions

GqlQuery

public GqlQuery GqlQuery { get; set; }

The GQL query to execute. For regular queries, exactly one of this property or Query must be set when the query is executed. For aggregation queries, exactly one of this property or AggregationQuery must be set when the query is executed.

Property Value
Type Description
GqlQuery

Query

public Query Query { get; set; }

The structured query to execute. For regular queries, exactly one of this property or GqlQuery must be set when the query is executed. For aggregation queries, this must be null.

Property Value
Type Description
Query

ReadConsistency

public ReadOptions.Types.ReadConsistency? ReadConsistency { get; set; }

The level of read consistency to apply, if any. This property is ignored when the query is executed in a transaction.

Property Value
Type Description
ReadOptionsTypesReadConsistency