google-cloud-datastore-v1 0.12.0 → 0.13.1
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: 85c9f1870c8ed556eaaee25c73e83d25284579662823efe527a790da897dc777
|
4
|
+
data.tar.gz: 2588e394d89679f2f4ff9ee540d1c2a88a6cad2c802d585864b46cbe678ddaad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd33657286f053d5f45247c8a482e7ccaafc5d0cf5baa43a3400eb45e3f368453ddcdace02121434d437868b5c7bf0b84f54a0d85beae2b7b9ea195a593f995f
|
7
|
+
data.tar.gz: 281e105560a1bc41a6165a6513bea6eacd0c4ebb0ac7033aad23a226471a5ff52e9c8e8ecfde8193d984837120eeed82ff101e7054c61dab0790d9742c81dd44
|
@@ -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
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -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
|
|
@@ -234,8 +288,13 @@ module Google
|
|
234
288
|
# A reference to a property relative to the kind expressions.
|
235
289
|
# @!attribute [rw] name
|
236
290
|
# @return [::String]
|
237
|
-
#
|
238
|
-
#
|
291
|
+
# A reference to a property.
|
292
|
+
#
|
293
|
+
# Requires:
|
294
|
+
#
|
295
|
+
# * MUST be a dot-delimited (`.`) string of segments, where each segment
|
296
|
+
# conforms to {::Google::Cloud::Datastore::V1::Entity#properties entity property name}
|
297
|
+
# limitations.
|
239
298
|
class PropertyReference
|
240
299
|
include ::Google::Protobuf::MessageExts
|
241
300
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -368,8 +427,9 @@ module Google
|
|
368
427
|
#
|
369
428
|
# Requires:
|
370
429
|
#
|
371
|
-
# * That `value` is a non-empty `ArrayValue
|
372
|
-
#
|
430
|
+
# * That `value` is a non-empty `ArrayValue`, subject to disjunction
|
431
|
+
# limits.
|
432
|
+
# * No `NOT_IN` is in the same query.
|
373
433
|
IN = 6
|
374
434
|
|
375
435
|
# The given `property` is not equal to the given `value`.
|
@@ -385,7 +445,7 @@ module Google
|
|
385
445
|
# Requires:
|
386
446
|
#
|
387
447
|
# * That `value` is an entity key.
|
388
|
-
# *
|
448
|
+
# * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.
|
389
449
|
HAS_ANCESTOR = 11
|
390
450
|
|
391
451
|
# The value of the `property` is not in the given array.
|
@@ -393,7 +453,7 @@ module Google
|
|
393
453
|
# Requires:
|
394
454
|
#
|
395
455
|
# * 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.
|
456
|
+
# * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
|
397
457
|
# * That `field` comes first in the `order_by`.
|
398
458
|
NOT_IN = 13
|
399
459
|
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.1
|
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-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.4.
|
221
|
+
rubygems_version: 3.4.19
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|