class Google::Apis::DatastoreV1beta2::Query

A query.

Attributes

end_cursor[RW]

An ending point for the query results. Optional. Query cursors are returned in query result batches. Corresponds to the JSON property `endCursor` @return [String]

filter[RW]

A holder for any type of filter. Exactly one field should be specified. Corresponds to the JSON property `filter` @return [Google::Apis::DatastoreV1beta2::Filter]

group_by[RW]

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>]

kinds[RW]

The kinds to query (if empty, returns entities from all kinds). Corresponds to the JSON property `kinds` @return [Array<Google::Apis::DatastoreV1beta2::KindExpression>]

limit[RW]

The maximum number of results to return. Applies after all other constraints. Optional. Corresponds to the JSON property `limit` @return [Fixnum]

offset[RW]

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]

order[RW]

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>]

projection[RW]

The projection to return. If not set the entire entity is returned. Corresponds to the JSON property `projection` @return [Array<Google::Apis::DatastoreV1beta2::PropertyExpression>]

start_cursor[RW]

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

new(**args) click to toggle source
# File generated/google/apis/datastore_v1beta2/classes.rb, line 872
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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