Class Query (3.3.0)

public sealed class Query : IMessage<Query>, IEquatable<Query>, IDeepCloneable<Query>, IBufferMessage, IMessage

A query for entities.

Inheritance

Object > Query

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

Query()

public Query()

Query(Query)

public Query(Query other)
Parameter
NameDescription
otherQuery

Query(String)

public Query(string kind)

Creates a query over the given kind.

Parameter
NameDescription
kindString

The kind of the query. Must not be null.

Properties

DistinctOn

public RepeatedField<PropertyReference> DistinctOn { get; }

The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned).

Property Value
TypeDescription
RepeatedField<PropertyReference>

EndCursor

public ByteString EndCursor { get; set; }

An ending point for the query results. Query cursors are returned in query result batches and can only be used to limit the same query.

Property Value
TypeDescription
ByteString

Filter

public Filter Filter { get; set; }

The filter to apply.

Property Value
TypeDescription
Filter

Kind

public RepeatedField<KindExpression> Kind { get; }

The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.

Property Value
TypeDescription
RepeatedField<KindExpression>

Limit

public int? Limit { get; set; }

The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.

Property Value
TypeDescription
Nullable<Int32>

Offset

public int Offset { get; set; }

The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.

Property Value
TypeDescription
Int32

Order

public RepeatedField<PropertyOrder> Order { get; }

The order to apply to the query results (if empty, order is unspecified).

Property Value
TypeDescription
RepeatedField<PropertyOrder>

Projection

public RepeatedField<Projection> Projection { get; }

The projection to return. Defaults to returning all properties.

Property Value
TypeDescription
RepeatedField<Projection>

StartCursor

public ByteString StartCursor { get; set; }

A starting point for the query results. Query cursors are returned in query result batches and can only be used to continue the same query.

Property Value
TypeDescription
ByteString