class Google::Apis::DatastoreV1beta2::Query
A query.
Attributes
An ending point for the query results. Optional. Query cursors are returned in query result batches. Corresponds to the JSON property `endCursor` @return [String]
A holder for any type of filter. Exactly one field should be specified. Corresponds to the JSON property `filter` @return [Google::Apis::DatastoreV1beta2::Filter]
The properties to group by (if empty, no grouping is applied to the result set) . Corresponds to the JSON property `groupBy` @return [Array<Google::Apis::DatastoreV1beta2::PropertyReference>]
The kinds to query (if empty, returns entities from all kinds). Corresponds to the JSON property `kinds` @return [Array<Google::Apis::DatastoreV1beta2::KindExpression>]
The maximum number of results to return. Applies after all other constraints. Optional. Corresponds to the JSON property `limit` @return [Fixnum]
The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0). Corresponds to the JSON property `offset` @return [Fixnum]
The order to apply to the query results (if empty, order is unspecified). Corresponds to the JSON property `order` @return [Array<Google::Apis::DatastoreV1beta2::PropertyOrder>]
The projection to return. If not set the entire entity is returned. Corresponds to the JSON property `projection` @return [Array<Google::Apis::DatastoreV1beta2::PropertyExpression>]
A starting point for the query results. Optional. Query cursors are returned in query result batches. Corresponds to the JSON property `startCursor` @return [String]
Public Class Methods
# File generated/google/apis/datastore_v1beta2/classes.rb, line 872 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/datastore_v1beta2/classes.rb, line 877 def update!(**args) @end_cursor = args[:end_cursor] if args.key?(:end_cursor) @filter = args[:filter] if args.key?(:filter) @group_by = args[:group_by] if args.key?(:group_by) @kinds = args[:kinds] if args.key?(:kinds) @limit = args[:limit] if args.key?(:limit) @offset = args[:offset] if args.key?(:offset) @order = args[:order] if args.key?(:order) @projection = args[:projection] if args.key?(:projection) @start_cursor = args[:start_cursor] if args.key?(:start_cursor) end