google-cloud-datastore-v1 0.12.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c8b247d26432b7e2894c32bef03354a7c66aff1366b0e32c63d8baee0955d1
|
4
|
+
data.tar.gz: 60b955f7ecda6ea81a60fe7dacc94a6ac0bcb44a76f80fe7e3bdd9ccc8e2da11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 657ff5cc5ee6921cf232ef03a0de345215398e57ecae97a508e38d3f40976d27c9029750e381707d6ab51323dd7c4ee4b40976a288c9d4d6b5d233039261ef92
|
7
|
+
data.tar.gz: 3bdf4aa3eb241aa88c7045396304b666a9114bd9d0e4b2fa86572d9b732a653681451f063de874a065ff722e0e19a7001a5dd05f95d0fc5e9c5f53c961baddbf
|
@@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
require 'google/protobuf/wrappers_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n\x1fgoogle/datastore/v1/query.proto\x12\x13google.datastore.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x91\x02\n\x0c\x45ntityResult\x12+\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x1b.google.datastore.v1.Entity\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63ursor\x18\x03 \x01(\x0c\"Q\n\nResultType\x12\x1b\n\x17RESULT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x0e\n\nPROJECTION\x10\x02\x12\x0c\n\x08KEY_ONLY\x10\x03\"\xf2\x02\n\x05Query\x12\x33\n\nprojection\x18\x02 \x03(\x0b\x32\x1f.google.datastore.v1.Projection\x12\x31\n\x04kind\x18\x03 \x03(\x0b\x32#.google.datastore.v1.KindExpression\x12+\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.Filter\x12\x31\n\x05order\x18\x05 \x03(\x0b\x32\".google.datastore.v1.PropertyOrder\x12;\n\x0b\x64istinct_on\x18\x06 \x03(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x14\n\x0cstart_cursor\x18\x07 \x01(\x0c\x12\x12\n\nend_cursor\x18\x08 \x01(\x0c\x12\x0e\n\x06offset\x18\n \x01(\x05\x12*\n\x05limit\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\
|
13
|
+
descriptor_data = "\n\x1fgoogle/datastore/v1/query.proto\x12\x13google.datastore.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x91\x02\n\x0c\x45ntityResult\x12+\n\x06\x65ntity\x18\x01 \x01(\x0b\x32\x1b.google.datastore.v1.Entity\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63ursor\x18\x03 \x01(\x0c\"Q\n\nResultType\x12\x1b\n\x17RESULT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x0e\n\nPROJECTION\x10\x02\x12\x0c\n\x08KEY_ONLY\x10\x03\"\xf2\x02\n\x05Query\x12\x33\n\nprojection\x18\x02 \x03(\x0b\x32\x1f.google.datastore.v1.Projection\x12\x31\n\x04kind\x18\x03 \x03(\x0b\x32#.google.datastore.v1.KindExpression\x12+\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.Filter\x12\x31\n\x05order\x18\x05 \x03(\x0b\x32\".google.datastore.v1.PropertyOrder\x12;\n\x0b\x64istinct_on\x18\x06 \x03(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x14\n\x0cstart_cursor\x18\x07 \x01(\x0c\x12\x12\n\nend_cursor\x18\x08 \x01(\x0c\x12\x0e\n\x06offset\x18\n \x01(\x05\x12*\n\x05limit\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xe4\x04\n\x10\x41ggregationQuery\x12\x32\n\x0cnested_query\x18\x01 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12L\n\x0c\x61ggregations\x18\x03 \x03(\x0b\x32\x31.google.datastore.v1.AggregationQuery.AggregationB\x03\xe0\x41\x01\x1a\xbf\x03\n\x0b\x41ggregation\x12H\n\x05\x63ount\x18\x01 \x01(\x0b\x32\x37.google.datastore.v1.AggregationQuery.Aggregation.CountH\x00\x12\x44\n\x03sum\x18\x02 \x01(\x0b\x32\x35.google.datastore.v1.AggregationQuery.Aggregation.SumH\x00\x12\x44\n\x03\x61vg\x18\x03 \x01(\x0b\x32\x35.google.datastore.v1.AggregationQuery.Aggregation.AvgH\x00\x12\x12\n\x05\x61lias\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x38\n\x05\x43ount\x12/\n\x05up_to\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\x1a?\n\x03Sum\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x1a?\n\x03\x41vg\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReferenceB\n\n\x08operatorB\x0c\n\nquery_type\"\x1e\n\x0eKindExpression\x12\x0c\n\x04name\x18\x01 \x01(\t\"!\n\x11PropertyReference\x12\x0c\n\x04name\x18\x02 \x01(\t\"F\n\nProjection\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\"\xd1\x01\n\rPropertyOrder\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12?\n\tdirection\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyOrder.Direction\"E\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"\x99\x01\n\x06\x46ilter\x12@\n\x10\x63omposite_filter\x18\x01 \x01(\x0b\x32$.google.datastore.v1.CompositeFilterH\x00\x12>\n\x0fproperty_filter\x18\x02 \x01(\x0b\x32#.google.datastore.v1.PropertyFilterH\x00\x42\r\n\x0b\x66ilter_type\"\xb1\x01\n\x0f\x43ompositeFilter\x12\x39\n\x02op\x18\x01 \x01(\x0e\x32-.google.datastore.v1.CompositeFilter.Operator\x12,\n\x07\x66ilters\x18\x02 \x03(\x0b\x32\x1b.google.datastore.v1.Filter\"5\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\"\xea\x02\n\x0ePropertyFilter\x12\x38\n\x08property\x18\x01 \x01(\x0b\x32&.google.datastore.v1.PropertyReference\x12\x38\n\x02op\x18\x02 \x01(\x0e\x32,.google.datastore.v1.PropertyFilter.Operator\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.Value\"\xb8\x01\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\x06\n\x02IN\x10\x06\x12\r\n\tNOT_EQUAL\x10\t\x12\x10\n\x0cHAS_ANCESTOR\x10\x0b\x12\n\n\x06NOT_IN\x10\r\"\xa5\x02\n\x08GqlQuery\x12\x14\n\x0cquery_string\x18\x01 \x01(\t\x12\x16\n\x0e\x61llow_literals\x18\x02 \x01(\x08\x12H\n\x0enamed_bindings\x18\x05 \x03(\x0b\x32\x30.google.datastore.v1.GqlQuery.NamedBindingsEntry\x12\x43\n\x13positional_bindings\x18\x04 \x03(\x0b\x32&.google.datastore.v1.GqlQueryParameter\x1a\\\n\x12NamedBindingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.datastore.v1.GqlQueryParameter:\x02\x38\x01\"d\n\x11GqlQueryParameter\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.ValueH\x00\x12\x10\n\x06\x63ursor\x18\x03 \x01(\x0cH\x00\x42\x10\n\x0eparameter_type\"\x8d\x04\n\x10QueryResultBatch\x12\x17\n\x0fskipped_results\x18\x06 \x01(\x05\x12\x16\n\x0eskipped_cursor\x18\x03 \x01(\x0c\x12H\n\x12\x65ntity_result_type\x18\x01 \x01(\x0e\x32,.google.datastore.v1.EntityResult.ResultType\x12\x39\n\x0e\x65ntity_results\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x12\n\nend_cursor\x18\x04 \x01(\x0c\x12K\n\x0cmore_results\x18\x05 \x01(\x0e\x32\x35.google.datastore.v1.QueryResultBatch.MoreResultsType\x12\x18\n\x10snapshot_version\x18\x07 \x01(\x03\x12-\n\tread_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x98\x01\n\x0fMoreResultsType\x12!\n\x1dMORE_RESULTS_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_FINISHED\x10\x01\x12\x1c\n\x18MORE_RESULTS_AFTER_LIMIT\x10\x02\x12\x1d\n\x19MORE_RESULTS_AFTER_CURSOR\x10\x04\x12\x13\n\x0fNO_MORE_RESULTS\x10\x03\x42\xbc\x01\n\x17\x63om.google.datastore.v1B\nQueryProtoP\x01Z<google.golang.org/genproto/googleapis/datastore/v1;datastore\xaa\x02\x19Google.Cloud.Datastore.V1\xca\x02\x19Google\\Cloud\\Datastore\\V1\xea\x02\x1cGoogle::Cloud::Datastore::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -49,6 +49,8 @@ module Google
|
|
49
49
|
AggregationQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AggregationQuery").msgclass
|
50
50
|
AggregationQuery::Aggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AggregationQuery.Aggregation").msgclass
|
51
51
|
AggregationQuery::Aggregation::Count = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AggregationQuery.Aggregation.Count").msgclass
|
52
|
+
AggregationQuery::Aggregation::Sum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AggregationQuery.Aggregation.Sum").msgclass
|
53
|
+
AggregationQuery::Aggregation::Avg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AggregationQuery.Aggregation.Avg").msgclass
|
52
54
|
KindExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.KindExpression").msgclass
|
53
55
|
PropertyReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyReference").msgclass
|
54
56
|
Projection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Projection").msgclass
|
@@ -451,9 +451,12 @@ module Google
|
|
451
451
|
# {::Google::Cloud::Datastore::V1::RunQueryResponse#transaction RunQueryResponse.transaction}.
|
452
452
|
# @!attribute [rw] read_time
|
453
453
|
# @return [::Google::Protobuf::Timestamp]
|
454
|
-
# Reads entities as they were at the given time. This
|
455
|
-
#
|
456
|
-
#
|
454
|
+
# Reads entities as they were at the given time. This value is only
|
455
|
+
# supported for Cloud Firestore in Datastore mode.
|
456
|
+
#
|
457
|
+
# This must be a microsecond precision timestamp within the past one hour,
|
458
|
+
# or if Point-in-Time Recovery is enabled, can additionally be a whole
|
459
|
+
# minute timestamp within the past 7 days.
|
457
460
|
class ReadOptions
|
458
461
|
include ::Google::Protobuf::MessageExts
|
459
462
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -501,7 +504,10 @@ module Google
|
|
501
504
|
# @!attribute [rw] read_time
|
502
505
|
# @return [::Google::Protobuf::Timestamp]
|
503
506
|
# Reads entities at the given time.
|
504
|
-
#
|
507
|
+
#
|
508
|
+
# This must be a microsecond precision timestamp within the past one hour,
|
509
|
+
# or if Point-in-Time Recovery is enabled, can additionally be a whole
|
510
|
+
# minute timestamp within the past 7 days.
|
505
511
|
class ReadOnly
|
506
512
|
include ::Google::Protobuf::MessageExts
|
507
513
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
# @!attribute [rw] count
|
149
149
|
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Count]
|
150
150
|
# Count aggregator.
|
151
|
+
# @!attribute [rw] sum
|
152
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Sum]
|
153
|
+
# Sum aggregator.
|
154
|
+
# @!attribute [rw] avg
|
155
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Avg]
|
156
|
+
# Average aggregator.
|
151
157
|
# @!attribute [rw] alias
|
152
158
|
# @return [::String]
|
153
159
|
# Optional. Optional name of the property to store the result of the
|
@@ -219,6 +225,54 @@ module Google
|
|
219
225
|
include ::Google::Protobuf::MessageExts
|
220
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
221
227
|
end
|
228
|
+
|
229
|
+
# Sum of the values of the requested property.
|
230
|
+
#
|
231
|
+
# * Only numeric values will be aggregated. All non-numeric values
|
232
|
+
# including `NULL` are skipped.
|
233
|
+
#
|
234
|
+
# * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
|
235
|
+
# follows IEEE-754 standards.
|
236
|
+
#
|
237
|
+
# * If the aggregated value set is empty, returns 0.
|
238
|
+
#
|
239
|
+
# * Returns a 64-bit integer if all aggregated numbers are integers and the
|
240
|
+
# sum result does not overflow. Otherwise, the result is returned as a
|
241
|
+
# double. Note that even if all the aggregated values are integers, the
|
242
|
+
# result is returned as a double if it cannot fit within a 64-bit signed
|
243
|
+
# integer. When this occurs, the returned value will lose precision.
|
244
|
+
#
|
245
|
+
# * When underflow occurs, floating-point aggregation is non-deterministic.
|
246
|
+
# This means that running the same query repeatedly without any changes to
|
247
|
+
# the underlying values could produce slightly different results each
|
248
|
+
# time. In those cases, values should be stored as integers over
|
249
|
+
# floating-point numbers.
|
250
|
+
# @!attribute [rw] property
|
251
|
+
# @return [::Google::Cloud::Datastore::V1::PropertyReference]
|
252
|
+
# The property to aggregate on.
|
253
|
+
class Sum
|
254
|
+
include ::Google::Protobuf::MessageExts
|
255
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
end
|
257
|
+
|
258
|
+
# Average of the values of the requested property.
|
259
|
+
#
|
260
|
+
# * Only numeric values will be aggregated. All non-numeric values
|
261
|
+
# including `NULL` are skipped.
|
262
|
+
#
|
263
|
+
# * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
|
264
|
+
# follows IEEE-754 standards.
|
265
|
+
#
|
266
|
+
# * If the aggregated value set is empty, returns `NULL`.
|
267
|
+
#
|
268
|
+
# * Always returns the result as a double.
|
269
|
+
# @!attribute [rw] property
|
270
|
+
# @return [::Google::Cloud::Datastore::V1::PropertyReference]
|
271
|
+
# The property to aggregate on.
|
272
|
+
class Avg
|
273
|
+
include ::Google::Protobuf::MessageExts
|
274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
275
|
+
end
|
222
276
|
end
|
223
277
|
end
|
224
278
|
|
@@ -368,8 +422,9 @@ module Google
|
|
368
422
|
#
|
369
423
|
# Requires:
|
370
424
|
#
|
371
|
-
# * That `value` is a non-empty `ArrayValue
|
372
|
-
#
|
425
|
+
# * That `value` is a non-empty `ArrayValue`, subject to disjunction
|
426
|
+
# limits.
|
427
|
+
# * No `NOT_IN` is in the same query.
|
373
428
|
IN = 6
|
374
429
|
|
375
430
|
# The given `property` is not equal to the given `value`.
|
@@ -385,7 +440,7 @@ module Google
|
|
385
440
|
# Requires:
|
386
441
|
#
|
387
442
|
# * That `value` is an entity key.
|
388
|
-
# *
|
443
|
+
# * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.
|
389
444
|
HAS_ANCESTOR = 11
|
390
445
|
|
391
446
|
# The value of the `property` is not in the given array.
|
@@ -393,7 +448,7 @@ module Google
|
|
393
448
|
# Requires:
|
394
449
|
#
|
395
450
|
# * That `value` is a non-empty `ArrayValue` with at most 10 values.
|
396
|
-
# * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
|
451
|
+
# * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
|
397
452
|
# * That `field` comes first in the `order_by`.
|
398
453
|
NOT_IN = 13
|
399
454
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.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: 2023-
|
11
|
+
date: 2023-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|