class Google::Apis::FirestoreV1beta1::BatchWriteRequest

The request for Firestore.BatchWrite.

Attributes

labels[RW]

Labels associated with this batch write. Corresponds to the JSON property `labels` @return [Hash<String,String>]

writes[RW]

The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request. Corresponds to the JSON property `writes` @return [Array<Google::Apis::FirestoreV1beta1::Write>]

Public Class Methods

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