class Google::Apis::FirestoreV1::BatchGetDocumentsResponse

The streamed response for Firestore.BatchGetDocuments.

Attributes

found[RW]

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

missing[RW]

A document name that was requested but does not exist. In the format: ` projects/`project_id`/databases/`database_id`/documents/`document_path“. Corresponds to the JSON property `missing` @return [String]

read_time[RW]

The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one. Corresponds to the JSON property `readTime` @return [String]

transaction[RW]

The transaction that was started as part of this request. Will only be set in the first response, and only if BatchGetDocumentsRequest.new_transaction was set in the request. 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_v1/classes.rb, line 125
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_v1/classes.rb, line 130
def update!(**args)
  @found = args[:found] if args.key?(:found)
  @missing = args[:missing] if args.key?(:missing)
  @read_time = args[:read_time] if args.key?(:read_time)
  @transaction = args[:transaction] if args.key?(:transaction)
end