proto_docs/google/firestore/v1/query.rb in google-cloud-firestore-v1-0.1.2 vs proto_docs/google/firestore/v1/query.rb in google-cloud-firestore-v1-0.2.0

- old
+ new

@@ -173,29 +173,47 @@ GREATER_THAN_OR_EQUAL = 4 # The given `field` is equal to the given `value`. EQUAL = 5 + # The given `field` is not equal to the given `value`. + # + # Requires: + # + # * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. + # * That `field` comes first in the `order_by`. + NOT_EQUAL = 6 + # The given `field` is an array that contains the given `value`. ARRAY_CONTAINS = 7 # The given `field` is equal to at least one value in the given array. # # Requires: # # * That `value` is a non-empty `ArrayValue` with at most 10 values. - # * No other `IN`, `ARRAY_CONTAINS_ANY`, or `NOT_IN`. + # * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`. IN = 8 # The given `field` is an array that contains any of the values in the # given array. # # Requires: # # * That `value` is a non-empty `ArrayValue` with at most 10 values. - # * No other `IN`, `ARRAY_CONTAINS_ANY`, or `NOT_IN`. + # * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`. ARRAY_CONTAINS_ANY = 9 + + # The value of the `field` is not in the given array. + # + # Requires: + # + # * That `value` is a non-empty `ArrayValue` with at most 10 values. + # * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, + # `IS_NOT_NULL`, or `IS_NOT_NAN`. + # * That `field` comes first in the `order_by`. + NOT_IN = 10 end end # A filter with a single operand. # @!attribute [rw] op @@ -216,13 +234,41 @@ # 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 + # An order on a field. + # @!attribute [rw] field + # @return [::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference] + # The field to order by. + # @!attribute [rw] direction + # @return [::Google::Cloud::Firestore::V1::StructuredQuery::Direction] + # The direction to order by. Defaults to `ASCENDING`. + class Order + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # A reference to a field, such as `max(messages.time) as max_time`. # @!attribute [rw] field_path # @return [::String] class FieldReference include ::Google::Protobuf::MessageExts @@ -235,21 +281,9 @@ # The fields to return. # # If empty, all fields are returned. To only return the name # of the document, use `['__name__']`. class Projection - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An order on a field. - # @!attribute [rw] field - # @return [::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference] - # The field to order by. - # @!attribute [rw] direction - # @return [::Google::Cloud::Firestore::V1::StructuredQuery::Direction] - # The direction to order by. Defaults to `ASCENDING`. - class Order include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A sort direction.