Class: Google::Cloud::Firestore::V1::StructuredQuery::UnaryFilter

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

Instance Attribute Details

#field::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference

Returns The field to which to apply the operator.

Returns:



300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
# File 'proto_docs/google/firestore/v1/query.rb', line 300

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.



300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
# File 'proto_docs/google/firestore/v1/query.rb', line 300

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