Class: Google::Apis::FirestoreV1::Filter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_filterGoogle::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_filterGoogle::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_filterGoogle::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