Class: Google::Datastore::V1::PropertyFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb

Overview

A filter on a specific property.

Defined Under Namespace

Modules: Operator

Instance Attribute Summary collapse

Instance Attribute Details

#opGoogle::Datastore::V1::PropertyFilter::Operator

Returns The operator to filter by.

Returns:



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 177

class PropertyFilter
  # A property filter operator.
  module Operator
    # Unspecified. This value must not be used.
    OPERATOR_UNSPECIFIED = 0

    # Less than.
    LESS_THAN = 1

    # Less than or equal.
    LESS_THAN_OR_EQUAL = 2

    # Greater than.
    GREATER_THAN = 3

    # Greater than or equal.
    GREATER_THAN_OR_EQUAL = 4

    # Equal.
    EQUAL = 5

    # Has ancestor.
    HAS_ANCESTOR = 11
  end
end

#propertyGoogle::Datastore::V1::PropertyReference

Returns The property to filter by.

Returns:



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 177

class PropertyFilter
  # A property filter operator.
  module Operator
    # Unspecified. This value must not be used.
    OPERATOR_UNSPECIFIED = 0

    # Less than.
    LESS_THAN = 1

    # Less than or equal.
    LESS_THAN_OR_EQUAL = 2

    # Greater than.
    GREATER_THAN = 3

    # Greater than or equal.
    GREATER_THAN_OR_EQUAL = 4

    # Equal.
    EQUAL = 5

    # Has ancestor.
    HAS_ANCESTOR = 11
  end
end

#valueGoogle::Datastore::V1::Value

Returns The value to compare the property to.

Returns:



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 177

class PropertyFilter
  # A property filter operator.
  module Operator
    # Unspecified. This value must not be used.
    OPERATOR_UNSPECIFIED = 0

    # Less than.
    LESS_THAN = 1

    # Less than or equal.
    LESS_THAN_OR_EQUAL = 2

    # Greater than.
    GREATER_THAN = 3

    # Greater than or equal.
    GREATER_THAN_OR_EQUAL = 4

    # Equal.
    EQUAL = 5

    # Has ancestor.
    HAS_ANCESTOR = 11
  end
end