Class: Google::Apis::FirestoreV1beta1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::Filter
- 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
A filter.
Instance Attribute Summary collapse
-
#composite_filter ⇒ Google::Apis::FirestoreV1beta1::CompositeFilter
A filter that merges multiple other filters using the given operator.
-
#field_filter ⇒ Google::Apis::FirestoreV1beta1::FieldFilter
A filter on a specific field.
-
#unary_filter ⇒ Google::Apis::FirestoreV1beta1::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter
704 705 706 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 704 def initialize(**args) update!(**args) end |
Instance Attribute Details
#composite_filter ⇒ Google::Apis::FirestoreV1beta1::CompositeFilter
A filter that merges multiple other filters using the given operator.
Corresponds to the JSON property compositeFilter
692 693 694 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 692 def composite_filter @composite_filter end |
#field_filter ⇒ Google::Apis::FirestoreV1beta1::FieldFilter
A filter on a specific field.
Corresponds to the JSON property fieldFilter
697 698 699 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 697 def field_filter @field_filter end |
#unary_filter ⇒ Google::Apis::FirestoreV1beta1::UnaryFilter
A filter with a single operand.
Corresponds to the JSON property unaryFilter
702 703 704 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 702 def unary_filter @unary_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
709 710 711 712 713 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 709 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 |