class Google::Apis::FirestoreV1::ListenResponse

The response for Firestore.Listen.

Attributes

document_change[RW]

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. Corresponds to the JSON property `documentChange` @return [Google::Apis::FirestoreV1::DocumentChange]

document_delete[RW]

A Document has been deleted. May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected. Corresponds to the JSON property `documentDelete` @return [Google::Apis::FirestoreV1::DocumentDelete]

document_remove[RW]

A Document has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple DocumentRemove messages may be returned for the same logical write or delete, if multiple targets are affected. Corresponds to the JSON property `documentRemove` @return [Google::Apis::FirestoreV1::DocumentRemove]

filter[RW]

A digest of all the documents that match a given target. Corresponds to the JSON property `filter` @return [Google::Apis::FirestoreV1::ExistenceFilter]

target_change[RW]

Targets being watched have changed. Corresponds to the JSON property `targetChange` @return [Google::Apis::FirestoreV1::TargetChange]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 1684
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 1689
def update!(**args)
  @document_change = args[:document_change] if args.key?(:document_change)
  @document_delete = args[:document_delete] if args.key?(:document_delete)
  @document_remove = args[:document_remove] if args.key?(:document_remove)
  @filter = args[:filter] if args.key?(:filter)
  @target_change = args[:target_change] if args.key?(:target_change)
end