Class: Google::Apis::FirestoreV1beta1::ListenResponse
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FirestoreV1beta1::ListenResponse
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
 generated/google/apis/firestore_v1beta1/representations.rb,
 generated/google/apis/firestore_v1beta1/representations.rb
Overview
The response for Firestore.Listen.
Instance Attribute Summary collapse
- 
  
    
      #document_change  ⇒ Google::Apis::FirestoreV1beta1::DocumentChange 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A Document has changed. 
- 
  
    
      #document_delete  ⇒ Google::Apis::FirestoreV1beta1::DocumentDelete 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A Document has been deleted. 
- 
  
    
      #document_remove  ⇒ Google::Apis::FirestoreV1beta1::DocumentRemove 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A Document has been removed from the view of the targets. 
- 
  
    
      #filter  ⇒ Google::Apis::FirestoreV1beta1::ExistenceFilter 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A digest of all the documents that match a given target. 
- 
  
    
      #target_change  ⇒ Google::Apis::FirestoreV1beta1::TargetChange 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Targets being watched have changed. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ListenResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ListenResponse. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListenResponse
Returns a new instance of ListenResponse
| 986 987 988 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 986 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#document_change ⇒ Google::Apis::FirestoreV1beta1::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.
Corresponds to the JSON property documentChange
| 955 956 957 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 955 def document_change @document_change end | 
#document_delete ⇒ Google::Apis::FirestoreV1beta1::DocumentDelete
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
| 964 965 966 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 964 def document_delete @document_delete end | 
#document_remove ⇒ Google::Apis::FirestoreV1beta1::DocumentRemove
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
| 974 975 976 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 974 def document_remove @document_remove end | 
#filter ⇒ Google::Apis::FirestoreV1beta1::ExistenceFilter
A digest of all the documents that match a given target.
Corresponds to the JSON property filter
| 979 980 981 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 979 def filter @filter end | 
#target_change ⇒ Google::Apis::FirestoreV1beta1::TargetChange
Targets being watched have changed.
Corresponds to the JSON property targetChange
| 984 985 986 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 984 def target_change @target_change end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 991 992 993 994 995 996 997 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 991 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 |