class Google::Apis::FirestoreV1beta1::RunQueryResponse

The response for Firestore.RunQuery.

Attributes

document[RW]

A Firestore document. Must not exceed 1 MiB - 4 bytes. Corresponds to the JSON property `document` @return [Google::Apis::FirestoreV1beta1::Document]

read_time[RW]

The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their `read_time` and this one. If the query returns no results, a response with `read_time` and no `document` will be sent, and this represents the time at which the query was run. Corresponds to the JSON property `readTime` @return [String]

skipped_results[RW]

The number of results that have been skipped due to an offset between the last response and the current response. Corresponds to the JSON property `skippedResults` @return [Fixnum]

transaction[RW]

The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response. Corresponds to the JSON property `transaction` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1beta1/classes.rb, line 1752
def update!(**args)
  @document = args[:document] if args.key?(:document)
  @read_time = args[:read_time] if args.key?(:read_time)
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
  @transaction = args[:transaction] if args.key?(:transaction)
end