class Google::Apis::DatastoreV1::QueryResultBatch

A batch of results produced by a query.

Attributes

end_cursor[RW]

A cursor that points to the position after the last result in the batch. Corresponds to the JSON property `endCursor` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

entity_result_type[RW]

The result type for every entity in `entity_results`. Corresponds to the JSON property `entityResultType` @return [String]

entity_results[RW]

The results for this batch. Corresponds to the JSON property `entityResults` @return [Array<Google::Apis::DatastoreV1::EntityResult>]

more_results[RW]

The state of the query after the current batch. Corresponds to the JSON property `moreResults` @return [String]

skipped_cursor[RW]

A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0. Corresponds to the JSON property `skippedCursor` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

skipped_results[RW]

The number of results skipped, typically because of an offset. Corresponds to the JSON property `skippedResults` @return [Fixnum]

snapshot_version[RW]

The version number of the snapshot this batch was returned from. This applies to the range of results from the query's `start_cursor` (or the beginning of the query if no cursor was given) to this batch's `end_cursor` (not the query' s `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater snapshot version number. Each batch's snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries. Corresponds to the JSON property `snapshotVersion` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastore_v1/classes.rb, line 1725
def update!(**args)
  @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
  @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
  @entity_results = args[:entity_results] if args.key?(:entity_results)
  @more_results = args[:more_results] if args.key?(:more_results)
  @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
  @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
end