Class: Google::Apis::FirestoreV1::ExistenceFilter
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::ExistenceFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1/classes.rb,
generated/google/apis/firestore_v1/representations.rb,
generated/google/apis/firestore_v1/representations.rb
Overview
A digest of all the documents that match a given target.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The total count of documents that match target_id.
-
#target_id ⇒ Fixnum
The target ID to which this filter applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExistenceFilter
constructor
A new instance of ExistenceFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExistenceFilter
Returns a new instance of ExistenceFilter.
631 632 633 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 631 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The total count of documents that match target_id. If different from the count
of documents in the client that match, the client must manually determine
which documents no longer match the target.
Corresponds to the JSON property count
624 625 626 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 624 def count @count end |
#target_id ⇒ Fixnum
The target ID to which this filter applies.
Corresponds to the JSON property targetId
629 630 631 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 629 def target_id @target_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
636 637 638 639 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 636 def update!(**args) @count = args[:count] if args.key?(:count) @target_id = args[:target_id] if args.key?(:target_id) end |