Class: Google::Apis::FirestoreV1::FieldFilter

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 on a specific field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldFilter

Returns a new instance of FieldFilter.



661
662
663
# File 'generated/google/apis/firestore_v1/classes.rb', line 661

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

Instance Attribute Details

#fieldGoogle::Apis::FirestoreV1::FieldReference

A reference to a field, such as max(messages.time) as max_time. Corresponds to the JSON property field



649
650
651
# File 'generated/google/apis/firestore_v1/classes.rb', line 649

def field
  @field
end

#opString

The operator to filter by. Corresponds to the JSON property op

Returns:

  • (String)


654
655
656
# File 'generated/google/apis/firestore_v1/classes.rb', line 654

def op
  @op
end

#valueGoogle::Apis::FirestoreV1::Value

A message that can hold any of the supported value types. Corresponds to the JSON property value



659
660
661
# File 'generated/google/apis/firestore_v1/classes.rb', line 659

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



666
667
668
669
670
# File 'generated/google/apis/firestore_v1/classes.rb', line 666

def update!(**args)
  @field = args[:field] if args.key?(:field)
  @op = args[:op] if args.key?(:op)
  @value = args[:value] if args.key?(:value)
end