class Google::Apis::FirestoreV1::DocumentChange
A Document
has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document
. Multiple DocumentChange
messages may be returned for the same logical change, if multiple targets are affected.
Attributes
document[RW]
A Firestore document. Must not exceed 1 MiB - 4 bytes. Corresponds to the JSON property `document` @return [Google::Apis::FirestoreV1::Document]
removed_target_ids[RW]
A set of target IDs for targets that no longer match this document. Corresponds to the JSON property `removedTargetIds` @return [Array<Fixnum>]
target_ids[RW]
A set of target IDs of targets that match this document. Corresponds to the JSON property `targetIds` @return [Array<Fixnum>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 444 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 449 def update!(**args) @document = args[:document] if args.key?(:document) @removed_target_ids = args[:removed_target_ids] if args.key?(:removed_target_ids) @target_ids = args[:target_ids] if args.key?(:target_ids) end