Class: Google::Apis::FirestoreV1beta1::FieldFilter
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::FieldFilter
- 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 on a specific field.
Instance Attribute Summary collapse
-
#field ⇒ Google::Apis::FirestoreV1beta1::FieldReference
A reference to a field, such as
max(messages.time) as max_time
. -
#op ⇒ String
The operator to filter by.
-
#value ⇒ Google::Apis::FirestoreV1beta1::Value
A message that can hold any of the supported value types.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldFilter
constructor
A new instance of FieldFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldFilter
Returns a new instance of FieldFilter.
661 662 663 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ Google::Apis::FirestoreV1beta1::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_v1beta1/classes.rb', line 649 def field @field end |
#op ⇒ String
The operator to filter by.
Corresponds to the JSON property op
654 655 656 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 654 def op @op end |
#value ⇒ Google::Apis::FirestoreV1beta1::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_v1beta1/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_v1beta1/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 |