Class: Google::Apis::FirestoreV1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::Filter
- 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 filter.
Instance Attribute Summary collapse
-
#composite_filter ⇒ Google::Apis::FirestoreV1::CompositeFilter
A filter that merges multiple other filters using the given operator.
-
#field_filter ⇒ Google::Apis::FirestoreV1::FieldFilter
A filter on a specific field.
-
#unary_filter ⇒ Google::Apis::FirestoreV1::UnaryFilter
A filter with a single operand.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
766 767 768 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 766 def initialize(**args) update!(**args) end |
Instance Attribute Details
#composite_filter ⇒ Google::Apis::FirestoreV1::CompositeFilter
A filter that merges multiple other filters using the given operator.
Corresponds to the JSON property compositeFilter
754 755 756 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 754 def composite_filter @composite_filter end |
#field_filter ⇒ Google::Apis::FirestoreV1::FieldFilter
A filter on a specific field.
Corresponds to the JSON property fieldFilter
759 760 761 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 759 def field_filter @field_filter end |
#unary_filter ⇒ Google::Apis::FirestoreV1::UnaryFilter
A filter with a single operand.
Corresponds to the JSON property unaryFilter
764 765 766 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 764 def unary_filter @unary_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
771 772 773 774 775 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 771 def update!(**args) @composite_filter = args[:composite_filter] if args.key?(:composite_filter) @field_filter = args[:field_filter] if args.key?(:field_filter) @unary_filter = args[:unary_filter] if args.key?(:unary_filter) end |