google-cloud-datastore-v1 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a1eb7f6169da11cb8e4310e91c0ea832b15c16924a0fdcc3b81f00b384aa607
4
- data.tar.gz: cec040af22221d921f632c343d0d3a2584655c427557bcb69b2370950dc69ce2
3
+ metadata.gz: 70494eebdff2679a9ba9a3ac0e3fad3aa963d9ff6c043588fd3c01350e25bf00
4
+ data.tar.gz: b5d9812b094fdf12f184a01da35fa3e98b64742e7e328851707d118d3a95c27b
5
5
  SHA512:
6
- metadata.gz: 25afc8ea8a53188620dd9f377875c63cd75c2b3e454d1029f07ca3d8c7735832fa27da3fb48bd4012a84250a1bd694e55929d72393c7f6c74c664b908b8c6316
7
- data.tar.gz: 81f94bf17553db58c2ea52648299dacddadb0178fdd43d37f303f5cd06307a4929bd7e43849ed5f7a80abc99fc893078b6d450b2c3754deb3acfe9a0e4c90137
6
+ metadata.gz: 758651b474e62bd94e5779349556046eac9c861a71ddc980471416738adf2334f0bbfb7b9e99dfa632628cbeec2ad99cb44357971b3d60439bc753d903f89150
7
+ data.tar.gz: fb98c51cb9c73cf468c7c265af12555e2f994594c306da6f71ac9b5e9cd3132c391306ad9816a5e0663d5d548363c2e623d3704a0d7b29a9f8965f866f924553
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Datastore
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -6,6 +6,7 @@ require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/datastore/v1/entity_pb'
8
8
  require 'google/datastore/v1/query_pb'
9
+ require 'google/protobuf/timestamp_pb'
9
10
  require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
20
  repeated :found, :message, 1, "google.datastore.v1.EntityResult"
20
21
  repeated :missing, :message, 2, "google.datastore.v1.EntityResult"
21
22
  repeated :deferred, :message, 3, "google.datastore.v1.Key"
23
+ optional :read_time, :message, 7, "google.protobuf.Timestamp"
22
24
  end
23
25
  add_message "google.datastore.v1.RunQueryRequest" do
24
26
  optional :project_id, :string, 8
@@ -62,6 +64,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
64
  add_message "google.datastore.v1.CommitResponse" do
63
65
  repeated :mutation_results, :message, 3, "google.datastore.v1.MutationResult"
64
66
  optional :index_updates, :int32, 4
67
+ optional :commit_time, :message, 8, "google.protobuf.Timestamp"
65
68
  end
66
69
  add_message "google.datastore.v1.AllocateIdsRequest" do
67
70
  optional :project_id, :string, 8
@@ -86,17 +89,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
89
  end
87
90
  oneof :conflict_detection_strategy do
88
91
  optional :base_version, :int64, 8
92
+ optional :update_time, :message, 11, "google.protobuf.Timestamp"
89
93
  end
90
94
  end
91
95
  add_message "google.datastore.v1.MutationResult" do
92
96
  optional :key, :message, 3, "google.datastore.v1.Key"
93
97
  optional :version, :int64, 4
98
+ optional :update_time, :message, 6, "google.protobuf.Timestamp"
94
99
  optional :conflict_detected, :bool, 5
95
100
  end
96
101
  add_message "google.datastore.v1.ReadOptions" do
97
102
  oneof :consistency_type do
98
103
  optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
99
104
  optional :transaction, :bytes, 2
105
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
100
106
  end
101
107
  end
102
108
  add_enum "google.datastore.v1.ReadOptions.ReadConsistency" do
@@ -114,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
114
120
  optional :previous_transaction, :bytes, 1
115
121
  end
116
122
  add_message "google.datastore.v1.TransactionOptions.ReadOnly" do
123
+ optional :read_time, :message, 1, "google.protobuf.Timestamp"
117
124
  end
118
125
  end
119
126
  end
@@ -2,6 +2,7 @@
2
2
  # source: google/datastore/v1/query.proto
3
3
 
4
4
  require 'google/datastore/v1/entity_pb'
5
+ require 'google/protobuf/timestamp_pb'
5
6
  require 'google/protobuf/wrappers_pb'
6
7
  require 'google/protobuf'
7
8
 
@@ -10,6 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_message "google.datastore.v1.EntityResult" do
11
12
  optional :entity, :message, 1, "google.datastore.v1.Entity"
12
13
  optional :version, :int64, 4
14
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
13
15
  optional :cursor, :bytes, 3
14
16
  end
15
17
  add_enum "google.datastore.v1.EntityResult.ResultType" do
@@ -98,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
98
100
  optional :end_cursor, :bytes, 4
99
101
  optional :more_results, :enum, 5, "google.datastore.v1.QueryResultBatch.MoreResultsType"
100
102
  optional :snapshot_version, :int64, 7
103
+ optional :read_time, :message, 8, "google.protobuf.Timestamp"
101
104
  end
102
105
  add_enum "google.datastore.v1.QueryResultBatch.MoreResultsType" do
103
106
  value :MORE_RESULTS_TYPE_UNSPECIFIED, 0
@@ -52,6 +52,9 @@ module Google
52
52
  # A list of keys that were not looked up due to resource constraints. The
53
53
  # order of results in this field is undefined and has no relation to the
54
54
  # order of the keys in the input.
55
+ # @!attribute [rw] read_time
56
+ # @return [::Google::Protobuf::Timestamp]
57
+ # The time at which these entities were read or found missing.
55
58
  class LookupResponse
56
59
  include ::Google::Protobuf::MessageExts
57
60
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -189,6 +192,9 @@ module Google
189
192
  # @return [::Integer]
190
193
  # The number of index entries updated during the commit, or zero if none were
191
194
  # updated.
195
+ # @!attribute [rw] commit_time
196
+ # @return [::Google::Protobuf::Timestamp]
197
+ # The transaction commit timestamp. Not set for non-transactional commits.
192
198
  class CommitResponse
193
199
  include ::Google::Protobuf::MessageExts
194
200
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -261,6 +267,11 @@ module Google
261
267
  # The version of the entity that this mutation is being applied
262
268
  # to. If this does not match the current version on the server, the
263
269
  # mutation conflicts.
270
+ # @!attribute [rw] update_time
271
+ # @return [::Google::Protobuf::Timestamp]
272
+ # The update time of the entity that this mutation is being applied
273
+ # to. If this does not match the current update time on the server, the
274
+ # mutation conflicts.
264
275
  class Mutation
265
276
  include ::Google::Protobuf::MessageExts
266
277
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -278,6 +289,12 @@ module Google
278
289
  # be the version of the current entity or, if no entity is present, a version
279
290
  # that is strictly greater than the version of any previous entity and less
280
291
  # than the version of any possible future entity.
292
+ # @!attribute [rw] update_time
293
+ # @return [::Google::Protobuf::Timestamp]
294
+ # The update time of the entity on the server after processing the mutation.
295
+ # If the mutation doesn't change anything on the server, then the timestamp
296
+ # will be the update timestamp of the current entity. This field will not be
297
+ # set after a 'delete'.
281
298
  # @!attribute [rw] conflict_detected
282
299
  # @return [::Boolean]
283
300
  # Whether a conflict was detected for this mutation. Always false when a
@@ -297,6 +314,11 @@ module Google
297
314
  # The identifier of the transaction in which to read. A
298
315
  # transaction identifier is returned by a call to
299
316
  # {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
317
+ # @!attribute [rw] read_time
318
+ # @return [::Google::Protobuf::Timestamp]
319
+ # Reads entities as they were at the given time. This may not be older
320
+ # than 270 seconds. This value is only supported for Cloud Firestore in
321
+ # Datastore mode.
300
322
  class ReadOptions
301
323
  include ::Google::Protobuf::MessageExts
302
324
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -339,6 +361,10 @@ module Google
339
361
  end
340
362
 
341
363
  # Options specific to read-only transactions.
364
+ # @!attribute [rw] read_time
365
+ # @return [::Google::Protobuf::Timestamp]
366
+ # Reads entities at the given time.
367
+ # This may not be older than 60 seconds.
342
368
  class ReadOnly
343
369
  include ::Google::Protobuf::MessageExts
344
370
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -36,6 +36,12 @@ module Google
36
36
  # For {::Google::Cloud::Datastore::V1::LookupResponse#missing missing} entities in `LookupResponse`, this
37
37
  # is the version of the snapshot that was used to look up the entity, and it
38
38
  # is always set except for eventually consistent reads.
39
+ # @!attribute [rw] update_time
40
+ # @return [::Google::Protobuf::Timestamp]
41
+ # The time at which the entity was last changed.
42
+ # This field is set for {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity
43
+ # results.
44
+ # If this entity is missing, this field will not be set.
39
45
  # @!attribute [rw] cursor
40
46
  # @return [::String]
41
47
  # A cursor that points to the position after the result entity.
@@ -364,6 +370,18 @@ module Google
364
370
  # can have a greater snapshot version number. Each batch's snapshot version
365
371
  # is valid for all preceding batches.
366
372
  # The value will be zero for eventually consistent queries.
373
+ # @!attribute [rw] read_time
374
+ # @return [::Google::Protobuf::Timestamp]
375
+ # Read timestamp this batch was returned from.
376
+ # This applies to the range of results from the query's `start_cursor` (or
377
+ # the beginning of the query if no cursor was given) to this batch's
378
+ # `end_cursor` (not the query's `end_cursor`).
379
+ #
380
+ # In a single transaction, subsequent query result batches for the same query
381
+ # can have a greater timestamp. Each batch's read timestamp
382
+ # is valid for all preceding batches.
383
+ # This value will not be set for eventually consistent queries in Cloud
384
+ # Datastore.
367
385
  class QueryResultBatch
368
386
  include ::Google::Protobuf::MessageExts
369
387
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.0
4
+ version: 0.5.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: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common