class Google::Apis::DatastoreV1beta2::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. May be absent. TODO(arfuller): Once all plans produce cursors update documentation here. Corresponds to the JSON property `endCursor` @return [String]

entity_result_type[RW]

The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key. 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::DatastoreV1beta2::EntityResult>]

more_results[RW]

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

skipped_results[RW]

The number of results skipped because of Google::Apis::DatastoreV1beta2::Query#offset. Corresponds to the JSON property `skippedResults` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/datastore_v1beta2/classes.rb, line 924
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 929
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_results = args[:skipped_results] if args.key?(:skipped_results)
end