google-cloud-firestore-v1 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df827786793c3a03fb2730f63a28ae9369207850b4236d709ceb05a5c46957fb
4
- data.tar.gz: 403539edb145dcaf8629750f4c09e9bf818f4aebc42367c1bfce3015a8ce9d4e
3
+ metadata.gz: 15b31476b34a79cc1c68b0860103f6b29b42723864f02fdc9eba1082dab1aaea
4
+ data.tar.gz: f1749e14cc6276ba16a7b3647cbbff4876e4365ca994cdc373879fe0b7722c78
5
5
  SHA512:
6
- metadata.gz: 80b9dcfeb42ed6f0563b4bc55c5dca48b89ce03634bc17f510fef32de7713739ffbadd8c669a2e3977cf0b587faa221c590b895328c2939815a5272b046c90e0
7
- data.tar.gz: e96ca2bbafbfbad10963f6f940b314ef8678bb97d9cfec7b1a31e91c1eb5ad796b0ab42cbd2bf37fe56caefcd69609aa5fa2dda0a159b85bb0bc23ac54a02b27
6
+ metadata.gz: a9fe6d74971aa52e42bae3ec80b1ae24d64dd69e2a3bc144cfd9fc87a765aef4b0d3cd3b2343d6873e3d0892d00f3ac3f79292475c0214962c79344bad77f4c5
7
+ data.tar.gz: ab49d22e70b491c1e9a0d08dc4dfbe35a6ac184c90f13a9e146a226a8ffe153be5fde47ffc2266bff33043625e765d7f7d83bb9f27bfba00e898b725b49ecb1d
@@ -997,12 +997,13 @@ module Google
997
997
  # can be specified.
998
998
  # @param structured_query [::Google::Cloud::Firestore::V1::StructuredQuery, ::Hash]
999
999
  # A structured query.
1000
- # Filters, order bys, limits, offsets, and start/end cursors are not
1001
- # supported.
1000
+ # Query must specify collection with all descendants and be ordered by name
1001
+ # ascending. Other filters, order bys, limits, offsets, and start/end
1002
+ # cursors are not supported.
1002
1003
  # @param partition_count [::Integer]
1003
1004
  # The desired maximum number of partition points.
1004
1005
  # The partitions may be returned across multiple pages of results.
1005
- # The number must be strictly positive. The actual number of partitions
1006
+ # The number must be positive. The actual number of partitions
1006
1007
  # returned may be fewer.
1007
1008
  #
1008
1009
  # For example, this may be set to one fewer than the number of parallel
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Firestore
23
23
  module V1
24
- VERSION = "0.1.2"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -49,9 +49,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
49
  value :GREATER_THAN, 3
50
50
  value :GREATER_THAN_OR_EQUAL, 4
51
51
  value :EQUAL, 5
52
+ value :NOT_EQUAL, 6
52
53
  value :ARRAY_CONTAINS, 7
53
54
  value :IN, 8
54
55
  value :ARRAY_CONTAINS_ANY, 9
56
+ value :NOT_IN, 10
55
57
  end
56
58
  add_message "google.firestore.v1.StructuredQuery.UnaryFilter" do
57
59
  optional :op, :enum, 1, "google.firestore.v1.StructuredQuery.UnaryFilter.Operator"
@@ -63,6 +65,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
65
  value :OPERATOR_UNSPECIFIED, 0
64
66
  value :IS_NAN, 2
65
67
  value :IS_NULL, 3
68
+ value :IS_NOT_NAN, 4
69
+ value :IS_NOT_NULL, 5
70
+ end
71
+ add_message "google.firestore.v1.StructuredQuery.Order" do
72
+ optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
73
+ optional :direction, :enum, 2, "google.firestore.v1.StructuredQuery.Direction"
66
74
  end
67
75
  add_message "google.firestore.v1.StructuredQuery.FieldReference" do
68
76
  optional :field_path, :string, 2
@@ -70,10 +78,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
78
  add_message "google.firestore.v1.StructuredQuery.Projection" do
71
79
  repeated :fields, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
72
80
  end
73
- add_message "google.firestore.v1.StructuredQuery.Order" do
74
- optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
75
- optional :direction, :enum, 2, "google.firestore.v1.StructuredQuery.Direction"
76
- end
77
81
  add_enum "google.firestore.v1.StructuredQuery.Direction" do
78
82
  value :DIRECTION_UNSPECIFIED, 0
79
83
  value :ASCENDING, 1
@@ -99,9 +103,9 @@ module Google
99
103
  StructuredQuery::FieldFilter::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldFilter.Operator").enummodule
100
104
  StructuredQuery::UnaryFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter").msgclass
101
105
  StructuredQuery::UnaryFilter::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter.Operator").enummodule
106
+ StructuredQuery::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
102
107
  StructuredQuery::FieldReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldReference").msgclass
103
108
  StructuredQuery::Projection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Projection").msgclass
104
- StructuredQuery::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
105
109
  StructuredQuery::Direction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Direction").enummodule
106
110
  Cursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Cursor").msgclass
107
111
  end
@@ -374,13 +374,14 @@ module Google
374
374
  # @!attribute [rw] structured_query
375
375
  # @return [::Google::Cloud::Firestore::V1::StructuredQuery]
376
376
  # A structured query.
377
- # Filters, order bys, limits, offsets, and start/end cursors are not
378
- # supported.
377
+ # Query must specify collection with all descendants and be ordered by name
378
+ # ascending. Other filters, order bys, limits, offsets, and start/end
379
+ # cursors are not supported.
379
380
  # @!attribute [rw] partition_count
380
381
  # @return [::Integer]
381
382
  # The desired maximum number of partition points.
382
383
  # The partitions may be returned across multiple pages of results.
383
- # The number must be strictly positive. The actual number of partitions
384
+ # The number must be positive. The actual number of partitions
384
385
  # returned may be fewer.
385
386
  #
386
387
  # For example, this may be set to one fewer than the number of parallel
@@ -432,6 +433,9 @@ module Google
432
433
  # * query, end_at A
433
434
  # * query, start_at A, end_at B
434
435
  # * query, start_at B
436
+ #
437
+ # An empty result may indicate that the query has too few results to be
438
+ # partitioned.
435
439
  # @!attribute [rw] next_page_token
436
440
  # @return [::String]
437
441
  # A page token that may be used to request an additional set of results, up
@@ -175,6 +175,14 @@ module Google
175
175
  # The given `field` is equal to the given `value`.
176
176
  EQUAL = 5
177
177
 
178
+ # The given `field` is not equal to the given `value`.
179
+ #
180
+ # Requires:
181
+ #
182
+ # * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
183
+ # * That `field` comes first in the `order_by`.
184
+ NOT_EQUAL = 6
185
+
178
186
  # The given `field` is an array that contains the given `value`.
179
187
  ARRAY_CONTAINS = 7
180
188
 
@@ -183,7 +191,7 @@ module Google
183
191
  # Requires:
184
192
  #
185
193
  # * That `value` is a non-empty `ArrayValue` with at most 10 values.
186
- # * No other `IN`, `ARRAY_CONTAINS_ANY`, or `NOT_IN`.
194
+ # * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
187
195
  IN = 8
188
196
 
189
197
  # The given `field` is an array that contains any of the values in the
@@ -192,8 +200,18 @@ module Google
192
200
  # Requires:
193
201
  #
194
202
  # * That `value` is a non-empty `ArrayValue` with at most 10 values.
195
- # * No other `IN`, `ARRAY_CONTAINS_ANY`, or `NOT_IN`.
203
+ # * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.
196
204
  ARRAY_CONTAINS_ANY = 9
205
+
206
+ # The value of the `field` is not in the given array.
207
+ #
208
+ # Requires:
209
+ #
210
+ # * That `value` is a non-empty `ArrayValue` with at most 10 values.
211
+ # * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
212
+ # `IS_NOT_NULL`, or `IS_NOT_NAN`.
213
+ # * That `field` comes first in the `order_by`.
214
+ NOT_IN = 10
197
215
  end
198
216
  end
199
217
 
@@ -218,9 +236,37 @@ module Google
218
236
 
219
237
  # The given `field` is equal to `NULL`.
220
238
  IS_NULL = 3
239
+
240
+ # The given `field` is not equal to `NaN`.
241
+ #
242
+ # Requires:
243
+ #
244
+ # * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
245
+ # * That `field` comes first in the `order_by`.
246
+ IS_NOT_NAN = 4
247
+
248
+ # The given `field` is not equal to `NULL`.
249
+ #
250
+ # Requires:
251
+ #
252
+ # * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
253
+ # * That `field` comes first in the `order_by`.
254
+ IS_NOT_NULL = 5
221
255
  end
222
256
  end
223
257
 
258
+ # An order on a field.
259
+ # @!attribute [rw] field
260
+ # @return [::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference]
261
+ # The field to order by.
262
+ # @!attribute [rw] direction
263
+ # @return [::Google::Cloud::Firestore::V1::StructuredQuery::Direction]
264
+ # The direction to order by. Defaults to `ASCENDING`.
265
+ class Order
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
224
270
  # A reference to a field, such as `max(messages.time) as max_time`.
225
271
  # @!attribute [rw] field_path
226
272
  # @return [::String]
@@ -241,18 +287,6 @@ module Google
241
287
  extend ::Google::Protobuf::MessageExts::ClassMethods
242
288
  end
243
289
 
244
- # An order on a field.
245
- # @!attribute [rw] field
246
- # @return [::Google::Cloud::Firestore::V1::StructuredQuery::FieldReference]
247
- # The field to order by.
248
- # @!attribute [rw] direction
249
- # @return [::Google::Cloud::Firestore::V1::StructuredQuery::Direction]
250
- # The direction to order by. Defaults to `ASCENDING`.
251
- class Order
252
- include ::Google::Protobuf::MessageExts
253
- extend ::Google::Protobuf::MessageExts::ClassMethods
254
- end
255
-
256
290
  # A sort direction.
257
291
  module Direction
258
292
  # Unspecified.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common