Class: Google::Apis::FirestoreV1beta1::Filter

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

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



704
705
706
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 704

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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