Class: Google::Cloud::Firestore::V1::StructuredQuery::UnaryFilter
- Inherits:
-
Object
- Object
- Google::Cloud::Firestore::V1::StructuredQuery::UnaryFilter
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/firestore/v1/query.rb
Overview
A filter with a single operand.
Defined Under Namespace
Modules: Operator
Instance Attribute Summary collapse
-
#field ⇒ ::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference
The field to which to apply the operator.
-
#op ⇒ ::Google::Cloud::Firestore::V1::StructuredQuery::UnaryFilter::Operator
The unary operator to apply.
Instance Attribute Details
#field ⇒ ::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference
Returns The field to which to apply the operator.
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'proto_docs/google/firestore/v1/query.rb', line 278 class UnaryFilter include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A unary operator. module Operator # Unspecified. This value must not be used. OPERATOR_UNSPECIFIED = 0 # The given `field` is equal to `NaN`. IS_NAN = 2 # The given `field` is equal to `NULL`. IS_NULL = 3 # The given `field` is not equal to `NaN`. # # Requires: # # * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. # * That `field` comes first in the `order_by`. IS_NOT_NAN = 4 # The given `field` is not equal to `NULL`. # # Requires: # # * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. # * That `field` comes first in the `order_by`. IS_NOT_NULL = 5 end end |
#op ⇒ ::Google::Cloud::Firestore::V1::StructuredQuery::UnaryFilter::Operator
Returns The unary operator to apply.
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'proto_docs/google/firestore/v1/query.rb', line 278 class UnaryFilter include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A unary operator. module Operator # Unspecified. This value must not be used. OPERATOR_UNSPECIFIED = 0 # The given `field` is equal to `NaN`. IS_NAN = 2 # The given `field` is equal to `NULL`. IS_NULL = 3 # The given `field` is not equal to `NaN`. # # Requires: # # * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. # * That `field` comes first in the `order_by`. IS_NOT_NAN = 4 # The given `field` is not equal to `NULL`. # # Requires: # # * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. # * That `field` comes first in the `order_by`. IS_NOT_NULL = 5 end end |