class Google::Apis::FirestoreV1beta1::WriteResponse

The response for Firestore.Write.

Attributes

commit_time[RW]

The time at which the commit occurred. Any read with an equal or greater ` read_time` is guaranteed to see the effects of the write. Corresponds to the JSON property `commitTime` @return [String]

stream_id[RW]

The ID of the stream. Only set on the first message, when a new stream was created. Corresponds to the JSON property `streamId` @return [String]

stream_token[RW]

A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set. Corresponds to the JSON property `streamToken` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

write_results[RW]

The result of applying the writes. This i-th write result corresponds to the i- th write in the request. Corresponds to the JSON property `writeResults` @return [Array<Google::Apis::FirestoreV1beta1::WriteResult>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1beta1/classes.rb, line 2259
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 2264
def update!(**args)
  @commit_time = args[:commit_time] if args.key?(:commit_time)
  @stream_id = args[:stream_id] if args.key?(:stream_id)
  @stream_token = args[:stream_token] if args.key?(:stream_token)
  @write_results = args[:write_results] if args.key?(:write_results)
end