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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter
716 717 718 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 716 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
704 705 706 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 704 def composite_filter @composite_filter end |
#field_filter ⇒ Google::Apis::FirestoreV1::FieldFilter
A filter on a specific field.
Corresponds to the JSON property fieldFilter
709 710 711 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 709 def field_filter @field_filter end |
#unary_filter ⇒ Google::Apis::FirestoreV1::UnaryFilter
A filter with a single operand.
Corresponds to the JSON property unaryFilter
714 715 716 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 714 def unary_filter @unary_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
721 722 723 724 725 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 721 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 |