Class: Google::Apis::FirestoreV1::DocumentRemove
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::DocumentRemove
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#document ⇒ String
The resource name of the Document that has gone out of view.
-
#read_time ⇒ String
The read timestamp at which the remove was observed.
-
#removed_target_ids ⇒ Array<Fixnum>
A set of target IDs for targets that previously matched this document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DocumentRemove
constructor
A new instance of DocumentRemove.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DocumentRemove
Returns a new instance of DocumentRemove.
753 754 755 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document ⇒ String
The resource name of the Document that has gone out of view.
Corresponds to the JSON property document
740 741 742 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 740 def document @document end |
#read_time ⇒ String
The read timestamp at which the remove was observed. Greater or equal to the
commit_time
of the change/delete/remove.
Corresponds to the JSON property readTime
746 747 748 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 746 def read_time @read_time end |
#removed_target_ids ⇒ Array<Fixnum>
A set of target IDs for targets that previously matched this document.
Corresponds to the JSON property removedTargetIds
751 752 753 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 751 def removed_target_ids @removed_target_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
758 759 760 761 762 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 758 def update!(**args) @document = args[:document] if args.key?(:document) @read_time = args[:read_time] if args.key?(:read_time) @removed_target_ids = args[:removed_target_ids] if args.key?(:removed_target_ids) end |