1- // Copyright 2019 Google LLC.
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -16,10 +16,8 @@ syntax = "proto3";
1616
1717package google.datastore.v1 ;
1818
19- import "google/api/annotations.proto" ;
2019import "google/datastore/v1/entity.proto" ;
2120import "google/protobuf/wrappers.proto" ;
22- import "google/type/latlng.proto" ;
2321
2422option csharp_namespace = "Google.Cloud.Datastore.V1" ;
2523option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore" ;
@@ -190,23 +188,68 @@ message PropertyFilter {
190188 // Unspecified. This value must not be used.
191189 OPERATOR_UNSPECIFIED = 0 ;
192190
193- // Less than.
191+ // The given `property` is less than the given `value`.
192+ //
193+ // Requires:
194+ //
195+ // * That `property` comes first in `order_by`.
194196 LESS_THAN = 1 ;
195197
196- // Less than or equal.
198+ // The given `property` is less than or equal to the given `value`.
199+ //
200+ // Requires:
201+ //
202+ // * That `property` comes first in `order_by`.
197203 LESS_THAN_OR_EQUAL = 2 ;
198204
199- // Greater than.
205+ // The given `property` is greater than the given `value`.
206+ //
207+ // Requires:
208+ //
209+ // * That `property` comes first in `order_by`.
200210 GREATER_THAN = 3 ;
201211
202- // Greater than or equal.
212+ // The given `property` is greater than or equal to the given `value`.
213+ //
214+ // Requires:
215+ //
216+ // * That `property` comes first in `order_by`.
203217 GREATER_THAN_OR_EQUAL = 4 ;
204218
205- // Equal .
219+ // The given `property` is equal to the given `value` .
206220 EQUAL = 5 ;
207221
208- // Has ancestor.
222+ // The given `property` is equal to at least one value in the given array.
223+ //
224+ // Requires:
225+ //
226+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
227+ // * No other `IN` or `NOT_IN` is in the same query.
228+ IN = 6 ;
229+
230+ // The given `property` is not equal to the given `value`.
231+ //
232+ // Requires:
233+ //
234+ // * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
235+ // * That `property` comes first in the `order_by`.
236+ NOT_EQUAL = 9 ;
237+
238+ // Limit the result set to the given entity and its descendants.
239+ //
240+ // Requires:
241+ //
242+ // * That `value` is an entity key.
209243 HAS_ANCESTOR = 11 ;
244+
245+ // The value of the `property` is not in the given array.
246+ //
247+ // Requires:
248+ //
249+ // * That `value` is a non-empty `ArrayValue` with at most 10 values.
250+ // * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
251+ // * That `field` comes first in the `order_by`.
252+ NOT_IN = 13 ;
210253 }
211254
212255 // The property to filter by.
0 commit comments