google-cloud-datastore-v1 0.18.0 → 0.19.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: 44007e25783b192f7921848ad1c44de61a240582f61107ead054b9e139942874
4
- data.tar.gz: '0619912f9cbcdde1286c52702968d1c746cb51c7dd4f394471424ca042215f27'
3
+ metadata.gz: 201dc1ce693d6c8c9c4d5bc8c8a4773c1b90509d4b9d904e6ec281d6a1dcdb4d
4
+ data.tar.gz: 131059668692311cf907157bbc3c70e7f7a0a31ba2465c5bb66c4eef72da9c71
5
5
  SHA512:
6
- metadata.gz: d1e3ddc4901856b34ce35974a66479e35a1f97cbcf0ca804c7e9a2510651feb089e8245208e232b32e236114511a4eb1b265a4437aee1aadac158b4860ff519b
7
- data.tar.gz: 771cc35194a02fbb97e9d307d2d1a04742d310926d1a644c0f4f5f570a7f6648fc63fe1ebbb8e21a92c21019511c1a49ecb1bb12b138f65abd322ac372724b17
6
+ metadata.gz: 6aac8e723c2ef471c3f81c2fe2b40b3fffcc97e7abed52683b3023f60fd2be893eb4dc116c8f99f367da27b866809004e0a54d6512acf349419ccfe97e2fa65d
7
+ data.tar.gz: d66ca3c2e39f3578662965c19c2f394664e0dbf5eefa663fc2f450f3ad3ffd7e8f5871e213ee69d962b83fc176b65931894ba6a6499417c23f955fbe8f5909b6
@@ -35,6 +35,9 @@ module Google
35
35
  # the request.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "datastore.$UNIVERSE_DOMAIN$"
40
43
 
@@ -204,7 +207,7 @@ module Google
204
207
  # @param options [::Gapic::CallOptions, ::Hash]
205
208
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
206
209
  #
207
- # @overload lookup(project_id: nil, database_id: nil, read_options: nil, keys: nil)
210
+ # @overload lookup(project_id: nil, database_id: nil, read_options: nil, keys: nil, property_mask: nil)
208
211
  # Pass arguments to `lookup` via keyword arguments. Note that at
209
212
  # least one keyword argument is required. To specify no parameters, or to keep all
210
213
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -220,6 +223,13 @@ module Google
220
223
  # The options for this lookup request.
221
224
  # @param keys [::Array<::Google::Cloud::Datastore::V1::Key, ::Hash>]
222
225
  # Required. Keys of entities to look up.
226
+ # @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
227
+ # The properties to return. Defaults to returning all properties.
228
+ #
229
+ # If this field is set and an entity has a property not referenced in the
230
+ # mask, it will be absent from [LookupResponse.found.entity.properties][].
231
+ #
232
+ # The entity's key is always returned.
223
233
  #
224
234
  # @yield [response, operation] Access the result along with the RPC operation
225
235
  # @yieldparam response [::Google::Cloud::Datastore::V1::LookupResponse]
@@ -255,10 +265,11 @@ module Google
255
265
  # Customize the options with defaults
256
266
  metadata = @config.rpcs.lookup.metadata.to_h
257
267
 
258
- # Set x-goog-api-client and x-goog-user-project headers
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
269
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
261
271
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
272
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
262
273
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
263
274
 
264
275
  header_params = {}
@@ -301,7 +312,7 @@ module Google
301
312
  # @param options [::Gapic::CallOptions, ::Hash]
302
313
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
303
314
  #
304
- # @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, explain_options: nil)
315
+ # @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, property_mask: nil, explain_options: nil)
305
316
  # Pass arguments to `run_query` via keyword arguments. Note that at
306
317
  # least one keyword argument is required. To specify no parameters, or to keep all
307
318
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -324,6 +335,12 @@ module Google
324
335
  # The query to run.
325
336
  # @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
326
337
  # The GQL query to run. This query must be a non-aggregation query.
338
+ # @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
339
+ # The properties to return.
340
+ # This field must not be set for a projection query.
341
+ #
342
+ # See
343
+ # {::Google::Cloud::Datastore::V1::LookupRequest#property_mask LookupRequest.property_mask}.
327
344
  # @param explain_options [::Google::Cloud::Datastore::V1::ExplainOptions, ::Hash]
328
345
  # Optional. Explain options for the query. If set, additional query
329
346
  # statistics will be returned. If not, only query results will be returned.
@@ -362,10 +379,11 @@ module Google
362
379
  # Customize the options with defaults
363
380
  metadata = @config.rpcs.run_query.metadata.to_h
364
381
 
365
- # Set x-goog-api-client and x-goog-user-project headers
382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
366
383
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
385
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
386
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
369
387
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
388
 
371
389
  header_params = {}
@@ -469,10 +487,11 @@ module Google
469
487
  # Customize the options with defaults
470
488
  metadata = @config.rpcs.run_aggregation_query.metadata.to_h
471
489
 
472
- # Set x-goog-api-client and x-goog-user-project headers
490
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
473
491
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
474
492
  lib_name: @config.lib_name, lib_version: @config.lib_version,
475
493
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
494
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
476
495
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
496
 
478
497
  header_params = {}
@@ -564,10 +583,11 @@ module Google
564
583
  # Customize the options with defaults
565
584
  metadata = @config.rpcs.begin_transaction.metadata.to_h
566
585
 
567
- # Set x-goog-api-client and x-goog-user-project headers
586
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
568
587
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
588
  lib_name: @config.lib_name, lib_version: @config.lib_version,
570
589
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
590
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
571
591
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
592
 
573
593
  header_params = {}
@@ -683,10 +703,11 @@ module Google
683
703
  # Customize the options with defaults
684
704
  metadata = @config.rpcs.commit.metadata.to_h
685
705
 
686
- # Set x-goog-api-client and x-goog-user-project headers
706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
687
707
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
688
708
  lib_name: @config.lib_name, lib_version: @config.lib_version,
689
709
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
710
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
690
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
691
712
 
692
713
  header_params = {}
@@ -779,10 +800,11 @@ module Google
779
800
  # Customize the options with defaults
780
801
  metadata = @config.rpcs.rollback.metadata.to_h
781
802
 
782
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
783
804
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
784
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
785
806
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
807
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
786
808
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
787
809
 
788
810
  header_params = {}
@@ -876,10 +898,11 @@ module Google
876
898
  # Customize the options with defaults
877
899
  metadata = @config.rpcs.allocate_ids.metadata.to_h
878
900
 
879
- # Set x-goog-api-client and x-goog-user-project headers
901
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
880
902
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
903
  lib_name: @config.lib_name, lib_version: @config.lib_version,
882
904
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
905
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
883
906
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
884
907
 
885
908
  header_params = {}
@@ -973,10 +996,11 @@ module Google
973
996
  # Customize the options with defaults
974
997
  metadata = @config.rpcs.reserve_ids.metadata.to_h
975
998
 
976
- # Set x-goog-api-client and x-goog-user-project headers
999
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
977
1000
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
1001
  lib_name: @config.lib_name, lib_version: @config.lib_version,
979
1002
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION
1003
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
980
1004
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
981
1005
 
982
1006
  header_params = {}
@@ -37,6 +37,9 @@ module Google
37
37
  # the request.
38
38
  #
39
39
  class Client
40
+ # @private
41
+ API_VERSION = ""
42
+
40
43
  # @private
41
44
  DEFAULT_ENDPOINT_TEMPLATE = "datastore.$UNIVERSE_DOMAIN$"
42
45
 
@@ -197,7 +200,7 @@ module Google
197
200
  # @param options [::Gapic::CallOptions, ::Hash]
198
201
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
199
202
  #
200
- # @overload lookup(project_id: nil, database_id: nil, read_options: nil, keys: nil)
203
+ # @overload lookup(project_id: nil, database_id: nil, read_options: nil, keys: nil, property_mask: nil)
201
204
  # Pass arguments to `lookup` via keyword arguments. Note that at
202
205
  # least one keyword argument is required. To specify no parameters, or to keep all
203
206
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -213,6 +216,13 @@ module Google
213
216
  # The options for this lookup request.
214
217
  # @param keys [::Array<::Google::Cloud::Datastore::V1::Key, ::Hash>]
215
218
  # Required. Keys of entities to look up.
219
+ # @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
220
+ # The properties to return. Defaults to returning all properties.
221
+ #
222
+ # If this field is set and an entity has a property not referenced in the
223
+ # mask, it will be absent from [LookupResponse.found.entity.properties][].
224
+ #
225
+ # The entity's key is always returned.
216
226
  # @yield [result, operation] Access the result along with the TransportOperation object
217
227
  # @yieldparam result [::Google::Cloud::Datastore::V1::LookupResponse]
218
228
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -247,12 +257,13 @@ module Google
247
257
  # Customize the options with defaults
248
258
  call_metadata = @config.rpcs.lookup.metadata.to_h
249
259
 
250
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
253
263
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
254
264
  transports_version_send: [:rest]
255
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
256
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
268
 
258
269
  options.apply_defaults timeout: @config.rpcs.lookup.timeout,
@@ -284,7 +295,7 @@ module Google
284
295
  # @param options [::Gapic::CallOptions, ::Hash]
285
296
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
286
297
  #
287
- # @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, explain_options: nil)
298
+ # @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, property_mask: nil, explain_options: nil)
288
299
  # Pass arguments to `run_query` via keyword arguments. Note that at
289
300
  # least one keyword argument is required. To specify no parameters, or to keep all
290
301
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -307,6 +318,12 @@ module Google
307
318
  # The query to run.
308
319
  # @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
309
320
  # The GQL query to run. This query must be a non-aggregation query.
321
+ # @param property_mask [::Google::Cloud::Datastore::V1::PropertyMask, ::Hash]
322
+ # The properties to return.
323
+ # This field must not be set for a projection query.
324
+ #
325
+ # See
326
+ # {::Google::Cloud::Datastore::V1::LookupRequest#property_mask LookupRequest.property_mask}.
310
327
  # @param explain_options [::Google::Cloud::Datastore::V1::ExplainOptions, ::Hash]
311
328
  # Optional. Explain options for the query. If set, additional query
312
329
  # statistics will be returned. If not, only query results will be returned.
@@ -344,12 +361,13 @@ module Google
344
361
  # Customize the options with defaults
345
362
  call_metadata = @config.rpcs.run_query.metadata.to_h
346
363
 
347
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
367
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
351
368
  transports_version_send: [:rest]
352
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
372
 
355
373
  options.apply_defaults timeout: @config.rpcs.run_query.timeout,
@@ -441,12 +459,13 @@ module Google
441
459
  # Customize the options with defaults
442
460
  call_metadata = @config.rpcs.run_aggregation_query.metadata.to_h
443
461
 
444
- # Set x-goog-api-client and x-goog-user-project headers
462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
445
463
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
447
465
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
448
466
  transports_version_send: [:rest]
449
467
 
468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
469
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
470
 
452
471
  options.apply_defaults timeout: @config.rpcs.run_aggregation_query.timeout,
@@ -526,12 +545,13 @@ module Google
526
545
  # Customize the options with defaults
527
546
  call_metadata = @config.rpcs.begin_transaction.metadata.to_h
528
547
 
529
- # Set x-goog-api-client and x-goog-user-project headers
548
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
530
549
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
531
550
  lib_name: @config.lib_name, lib_version: @config.lib_version,
532
551
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
533
552
  transports_version_send: [:rest]
534
553
 
554
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
535
555
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
536
556
 
537
557
  options.apply_defaults timeout: @config.rpcs.begin_transaction.timeout,
@@ -635,12 +655,13 @@ module Google
635
655
  # Customize the options with defaults
636
656
  call_metadata = @config.rpcs.commit.metadata.to_h
637
657
 
638
- # Set x-goog-api-client and x-goog-user-project headers
658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
639
659
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
641
661
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
642
662
  transports_version_send: [:rest]
643
663
 
664
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
644
665
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
645
666
 
646
667
  options.apply_defaults timeout: @config.rpcs.commit.timeout,
@@ -721,12 +742,13 @@ module Google
721
742
  # Customize the options with defaults
722
743
  call_metadata = @config.rpcs.rollback.metadata.to_h
723
744
 
724
- # Set x-goog-api-client and x-goog-user-project headers
745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
725
746
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
726
747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
727
748
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
728
749
  transports_version_send: [:rest]
729
750
 
751
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
730
752
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
731
753
 
732
754
  options.apply_defaults timeout: @config.rpcs.rollback.timeout,
@@ -808,12 +830,13 @@ module Google
808
830
  # Customize the options with defaults
809
831
  call_metadata = @config.rpcs.allocate_ids.metadata.to_h
810
832
 
811
- # Set x-goog-api-client and x-goog-user-project headers
833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
812
834
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
813
835
  lib_name: @config.lib_name, lib_version: @config.lib_version,
814
836
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
815
837
  transports_version_send: [:rest]
816
838
 
839
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
817
840
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
818
841
 
819
842
  options.apply_defaults timeout: @config.rpcs.allocate_ids.timeout,
@@ -895,12 +918,13 @@ module Google
895
918
  # Customize the options with defaults
896
919
  call_metadata = @config.rpcs.reserve_ids.metadata.to_h
897
920
 
898
- # Set x-goog-api-client and x-goog-user-project headers
921
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
899
922
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
900
923
  lib_name: @config.lib_name, lib_version: @config.lib_version,
901
924
  gapic_version: ::Google::Cloud::Datastore::V1::VERSION,
902
925
  transports_version_send: [:rest]
903
926
 
927
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
904
928
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
905
929
 
906
930
  options.apply_defaults timeout: @config.rpcs.reserve_ids.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Datastore
23
23
  module V1
24
- VERSION = "0.18.0"
24
+ VERSION = "0.19.0"
25
25
  end
26
26
  end
27
27
  end
@@ -15,7 +15,7 @@ require 'google/datastore/v1/query_profile_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n#google/datastore/v1/datastore.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/api/routing.proto\x1a,google/datastore/v1/aggregation_result.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/datastore/v1/query.proto\x1a\'google/datastore/v1/query_profile.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa2\x01\n\rLookupRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x04keys\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"\xe6\x01\n\x0eLookupResponse\x12\x30\n\x05\x66ound\x18\x01 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x32\n\x07missing\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12*\n\x08\x64\x65\x66\x65rred\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12-\n\tread_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x02\n\x0fRunQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x05query\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x12\x41\n\x0f\x65xplain_options\x18\x0c \x01(\x0b\x32#.google.datastore.v1.ExplainOptionsB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xc6\x01\n\x10RunQueryResponse\x12\x34\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32%.google.datastore.v1.QueryResultBatch\x12)\n\x05query\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Query\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12<\n\x0f\x65xplain_metrics\x18\t \x01(\x0b\x32#.google.datastore.v1.ExplainMetrics\"\x83\x03\n\x1aRunAggregationQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12\x42\n\x11\x61ggregation_query\x18\x03 \x01(\x0b\x32%.google.datastore.v1.AggregationQueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x12\x41\n\x0f\x65xplain_options\x18\x0b \x01(\x0b\x32#.google.datastore.v1.ExplainOptionsB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xe2\x01\n\x1bRunAggregationQueryResponse\x12:\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32+.google.datastore.v1.AggregationResultBatch\x12\x34\n\x05query\x18\x02 \x01(\x0b\x32%.google.datastore.v1.AggregationQuery\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12<\n\x0f\x65xplain_metrics\x18\t \x01(\x0b\x32#.google.datastore.v1.ExplainMetrics\"\x8d\x01\n\x17\x42\x65ginTransactionRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x44\n\x13transaction_options\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptions\"/\n\x18\x42\x65ginTransactionResponse\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c\"Y\n\x0fRollbackRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x18\n\x0btransaction\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\"\x12\n\x10RollbackResponse\"\xe8\x02\n\rCommitRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x35\n\x04mode\x18\x05 \x01(\x0e\x32\'.google.datastore.v1.CommitRequest.Mode\x12\x15\n\x0btransaction\x18\x01 \x01(\x0cH\x00\x12I\n\x16single_use_transaction\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12\x30\n\tmutations\x18\x06 \x03(\x0b\x32\x1d.google.datastore.v1.Mutation\"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rTRANSACTIONAL\x10\x01\x12\x15\n\x11NON_TRANSACTIONAL\x10\x02\x42\x16\n\x14transaction_selector\"\x97\x01\n\x0e\x43ommitResponse\x12=\n\x10mutation_results\x18\x03 \x03(\x0b\x32#.google.datastore.v1.MutationResult\x12\x15\n\rindex_updates\x18\x04 \x01(\x05\x12/\n\x0b\x63ommit_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n\x12\x41llocateIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"=\n\x13\x41llocateIdsResponse\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"n\n\x11ReserveIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"\x14\n\x12ReserveIdsResponse\"\xba\x02\n\x08Mutation\x12-\n\x06insert\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06update\x18\x05 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06upsert\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12*\n\x06\x64\x65lete\x18\x07 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0c\x62\x61se_version\x18\x08 \x01(\x03H\x01\x12\x31\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x42\x0b\n\toperationB\x1d\n\x1b\x63onflict_detection_strategy\"\xc5\x01\n\x0eMutationResult\x12%\n\x03key\x18\x03 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63onflict_detected\x18\x05 \x01(\x08\"\xca\x02\n\x0bReadOptions\x12L\n\x10read_consistency\x18\x01 \x01(\x0e\x32\x30.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\n\x0btransaction\x18\x02 \x01(\x0cH\x00\x12\x42\n\x0fnew_transaction\x18\x03 \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12/\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\"M\n\x0fReadConsistency\x12 \n\x1cREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\n\n\x06STRONG\x10\x01\x12\x0c\n\x08\x45VENTUAL\x10\x02\x42\x12\n\x10\x63onsistency_type\"\x92\x02\n\x12TransactionOptions\x12G\n\nread_write\x18\x01 \x01(\x0b\x32\x31.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12\x45\n\tread_only\x18\x02 \x01(\x0b\x32\x30.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1a)\n\tReadWrite\x12\x1c\n\x14previous_transaction\x18\x01 \x01(\x0c\x1a\x39\n\x08ReadOnly\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\n\x04mode2\xe1\r\n\tDatastore\x12\xc0\x01\n\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1a#.google.datastore.v1.LookupResponse\"m\xda\x41\x1cproject_id,read_options,keys\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xa9\x01\n\x08RunQuery\x12$.google.datastore.v1.RunQueryRequest\x1a%.google.datastore.v1.RunQueryResponse\"P\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:runQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd5\x01\n\x13RunAggregationQuery\x12/.google.datastore.v1.RunAggregationQueryRequest\x1a\x30.google.datastore.v1.RunAggregationQueryResponse\"[\x82\xd3\xe4\x93\x02\x32\"-/v1/projects/{project_id}:runAggregationQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd6\x01\n\x10\x42\x65ginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1a-.google.datastore.v1.BeginTransactionResponse\"e\xda\x41\nproject_id\x82\xd3\xe4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xe6\x01\n\x06\x43ommit\x12\".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse\"\x92\x01\xda\x41%project_id,mode,transaction,mutations\xda\x41\x19project_id,mode,mutations\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc2\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse\"i\xda\x41\x16project_id,transaction\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:rollback:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc7\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse\"e\xda\x41\x0fproject_id,keys\x82\xd3\xe4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc3\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse\"d\xda\x41\x0fproject_id,keys\x82\xd3\xe4\x93\x02)\"$/v1/projects/{project_id}:reserveIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x1av\xca\x41\x18\x64\x61tastore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xc0\x01\n\x17\x63om.google.datastore.v1B\x0e\x44\x61tastoreProtoP\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"
18
+ descriptor_data = "\n#google/datastore/v1/datastore.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/api/routing.proto\x1a,google/datastore/v1/aggregation_result.proto\x1a google/datastore/v1/entity.proto\x1a\x1fgoogle/datastore/v1/query.proto\x1a\'google/datastore/v1/query_profile.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x01\n\rLookupRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x04keys\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\x12\x38\n\rproperty_mask\x18\x05 \x01(\x0b\x32!.google.datastore.v1.PropertyMask\"\xe6\x01\n\x0eLookupResponse\x12\x30\n\x05\x66ound\x18\x01 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12\x32\n\x07missing\x18\x02 \x03(\x0b\x32!.google.datastore.v1.EntityResult\x12*\n\x08\x64\x65\x66\x65rred\x18\x03 \x03(\x0b\x32\x18.google.datastore.v1.Key\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12-\n\tread_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9b\x03\n\x0fRunQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12+\n\x05query\x18\x03 \x01(\x0b\x32\x1a.google.datastore.v1.QueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x12\x38\n\rproperty_mask\x18\n \x01(\x0b\x32!.google.datastore.v1.PropertyMask\x12\x41\n\x0f\x65xplain_options\x18\x0c \x01(\x0b\x32#.google.datastore.v1.ExplainOptionsB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xc6\x01\n\x10RunQueryResponse\x12\x34\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32%.google.datastore.v1.QueryResultBatch\x12)\n\x05query\x18\x02 \x01(\x0b\x32\x1a.google.datastore.v1.Query\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12<\n\x0f\x65xplain_metrics\x18\t \x01(\x0b\x32#.google.datastore.v1.ExplainMetrics\"\x83\x03\n\x1aRunAggregationQueryRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x36\n\x0cpartition_id\x18\x02 \x01(\x0b\x32 .google.datastore.v1.PartitionId\x12\x36\n\x0cread_options\x18\x01 \x01(\x0b\x32 .google.datastore.v1.ReadOptions\x12\x42\n\x11\x61ggregation_query\x18\x03 \x01(\x0b\x32%.google.datastore.v1.AggregationQueryH\x00\x12\x32\n\tgql_query\x18\x07 \x01(\x0b\x32\x1d.google.datastore.v1.GqlQueryH\x00\x12\x41\n\x0f\x65xplain_options\x18\x0b \x01(\x0b\x32#.google.datastore.v1.ExplainOptionsB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xe2\x01\n\x1bRunAggregationQueryResponse\x12:\n\x05\x62\x61tch\x18\x01 \x01(\x0b\x32+.google.datastore.v1.AggregationResultBatch\x12\x34\n\x05query\x18\x02 \x01(\x0b\x32%.google.datastore.v1.AggregationQuery\x12\x13\n\x0btransaction\x18\x05 \x01(\x0c\x12<\n\x0f\x65xplain_metrics\x18\t \x01(\x0b\x32#.google.datastore.v1.ExplainMetrics\"\x8d\x01\n\x17\x42\x65ginTransactionRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x44\n\x13transaction_options\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptions\"/\n\x18\x42\x65ginTransactionResponse\x12\x13\n\x0btransaction\x18\x01 \x01(\x0c\"Y\n\x0fRollbackRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x18\n\x0btransaction\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\"\x12\n\x10RollbackResponse\"\xe8\x02\n\rCommitRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12\x35\n\x04mode\x18\x05 \x01(\x0e\x32\'.google.datastore.v1.CommitRequest.Mode\x12\x15\n\x0btransaction\x18\x01 \x01(\x0cH\x00\x12I\n\x16single_use_transaction\x18\n \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12\x30\n\tmutations\x18\x06 \x03(\x0b\x32\x1d.google.datastore.v1.Mutation\"F\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x11\n\rTRANSACTIONAL\x10\x01\x12\x15\n\x11NON_TRANSACTIONAL\x10\x02\x42\x16\n\x14transaction_selector\"\x97\x01\n\x0e\x43ommitResponse\x12=\n\x10mutation_results\x18\x03 \x03(\x0b\x32#.google.datastore.v1.MutationResult\x12\x15\n\rindex_updates\x18\x04 \x01(\x05\x12/\n\x0b\x63ommit_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n\x12\x41llocateIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"=\n\x13\x41llocateIdsResponse\x12&\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.Key\"n\n\x11ReserveIdsRequest\x12\x17\n\nproject_id\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61tabase_id\x18\t \x01(\t\x12+\n\x04keys\x18\x01 \x03(\x0b\x32\x18.google.datastore.v1.KeyB\x03\xe0\x41\x02\"\x14\n\x12ReserveIdsResponse\"\xf4\x02\n\x08Mutation\x12-\n\x06insert\x18\x04 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06update\x18\x05 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12-\n\x06upsert\x18\x06 \x01(\x0b\x32\x1b.google.datastore.v1.EntityH\x00\x12*\n\x06\x64\x65lete\x18\x07 \x01(\x0b\x32\x18.google.datastore.v1.KeyH\x00\x12\x16\n\x0c\x62\x61se_version\x18\x08 \x01(\x03H\x01\x12\x31\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x38\n\rproperty_mask\x18\t \x01(\x0b\x32!.google.datastore.v1.PropertyMaskB\x0b\n\toperationB\x1d\n\x1b\x63onflict_detection_strategy\"\xc5\x01\n\x0eMutationResult\x12%\n\x03key\x18\x03 \x01(\x0b\x32\x18.google.datastore.v1.Key\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x63onflict_detected\x18\x05 \x01(\x08\"\x1d\n\x0cPropertyMask\x12\r\n\x05paths\x18\x01 \x03(\t\"\xca\x02\n\x0bReadOptions\x12L\n\x10read_consistency\x18\x01 \x01(\x0e\x32\x30.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\n\x0btransaction\x18\x02 \x01(\x0cH\x00\x12\x42\n\x0fnew_transaction\x18\x03 \x01(\x0b\x32\'.google.datastore.v1.TransactionOptionsH\x00\x12/\n\tread_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\"M\n\x0fReadConsistency\x12 \n\x1cREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\n\n\x06STRONG\x10\x01\x12\x0c\n\x08\x45VENTUAL\x10\x02\x42\x12\n\x10\x63onsistency_type\"\x92\x02\n\x12TransactionOptions\x12G\n\nread_write\x18\x01 \x01(\x0b\x32\x31.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12\x45\n\tread_only\x18\x02 \x01(\x0b\x32\x30.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1a)\n\tReadWrite\x12\x1c\n\x14previous_transaction\x18\x01 \x01(\x0c\x1a\x39\n\x08ReadOnly\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\n\x04mode2\xe1\r\n\tDatastore\x12\xc0\x01\n\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1a#.google.datastore.v1.LookupResponse\"m\xda\x41\x1cproject_id,read_options,keys\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xa9\x01\n\x08RunQuery\x12$.google.datastore.v1.RunQueryRequest\x1a%.google.datastore.v1.RunQueryResponse\"P\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:runQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd5\x01\n\x13RunAggregationQuery\x12/.google.datastore.v1.RunAggregationQueryRequest\x1a\x30.google.datastore.v1.RunAggregationQueryResponse\"[\x82\xd3\xe4\x93\x02\x32\"-/v1/projects/{project_id}:runAggregationQuery:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xd6\x01\n\x10\x42\x65ginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1a-.google.datastore.v1.BeginTransactionResponse\"e\xda\x41\nproject_id\x82\xd3\xe4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xe6\x01\n\x06\x43ommit\x12\".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse\"\x92\x01\xda\x41%project_id,mode,transaction,mutations\xda\x41\x19project_id,mode,mutations\x82\xd3\xe4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc2\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse\"i\xda\x41\x16project_id,transaction\x82\xd3\xe4\x93\x02\'\"\"/v1/projects/{project_id}:rollback:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc7\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse\"e\xda\x41\x0fproject_id,keys\x82\xd3\xe4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x12\xc3\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse\"d\xda\x41\x0fproject_id,keys\x82\xd3\xe4\x93\x02)\"$/v1/projects/{project_id}:reserveIds:\x01*\x8a\xd3\xe4\x93\x02\x1d\x12\x0c\n\nproject_id\x12\r\n\x0b\x64\x61tabase_id\x1av\xca\x41\x18\x64\x61tastore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xc0\x01\n\x17\x63om.google.datastore.v1B\x0e\x44\x61tastoreProtoP\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"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
@@ -69,6 +69,7 @@ module Google
69
69
  ReserveIdsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReserveIdsResponse").msgclass
70
70
  Mutation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Mutation").msgclass
71
71
  MutationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.MutationResult").msgclass
72
+ PropertyMask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyMask").msgclass
72
73
  ReadOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions").msgclass
73
74
  ReadOptions::ReadConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions.ReadConsistency").enummodule
74
75
  TransactionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions").msgclass
@@ -37,6 +37,14 @@ module Google
37
37
  # @!attribute [rw] keys
38
38
  # @return [::Array<::Google::Cloud::Datastore::V1::Key>]
39
39
  # Required. Keys of entities to look up.
40
+ # @!attribute [rw] property_mask
41
+ # @return [::Google::Cloud::Datastore::V1::PropertyMask]
42
+ # The properties to return. Defaults to returning all properties.
43
+ #
44
+ # If this field is set and an entity has a property not referenced in the
45
+ # mask, it will be absent from [LookupResponse.found.entity.properties][].
46
+ #
47
+ # The entity's key is always returned.
40
48
  class LookupRequest
41
49
  include ::Google::Protobuf::MessageExts
42
50
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -100,6 +108,13 @@ module Google
100
108
  # @!attribute [rw] gql_query
101
109
  # @return [::Google::Cloud::Datastore::V1::GqlQuery]
102
110
  # The GQL query to run. This query must be a non-aggregation query.
111
+ # @!attribute [rw] property_mask
112
+ # @return [::Google::Cloud::Datastore::V1::PropertyMask]
113
+ # The properties to return.
114
+ # This field must not be set for a projection query.
115
+ #
116
+ # See
117
+ # {::Google::Cloud::Datastore::V1::LookupRequest#property_mask LookupRequest.property_mask}.
103
118
  # @!attribute [rw] explain_options
104
119
  # @return [::Google::Cloud::Datastore::V1::ExplainOptions]
105
120
  # Optional. Explain options for the query. If set, additional query
@@ -414,6 +429,16 @@ module Google
414
429
  # The update time of the entity that this mutation is being applied
415
430
  # to. If this does not match the current update time on the server, the
416
431
  # mutation conflicts.
432
+ # @!attribute [rw] property_mask
433
+ # @return [::Google::Cloud::Datastore::V1::PropertyMask]
434
+ # The properties to write in this mutation.
435
+ # None of the properties in the mask may have a reserved name, except for
436
+ # `__key__`.
437
+ # This field is ignored for `delete`.
438
+ #
439
+ # If the entity already exists, only properties referenced in the mask are
440
+ # updated, others are left untouched.
441
+ # Properties referenced in the mask but not in the entity are deleted.
417
442
  class Mutation
418
443
  include ::Google::Protobuf::MessageExts
419
444
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -449,6 +474,26 @@ module Google
449
474
  extend ::Google::Protobuf::MessageExts::ClassMethods
450
475
  end
451
476
 
477
+ # The set of arbitrarily nested property paths used to restrict an operation to
478
+ # only a subset of properties in an entity.
479
+ # @!attribute [rw] paths
480
+ # @return [::Array<::String>]
481
+ # The paths to the properties covered by this mask.
482
+ #
483
+ # A path is a list of property names separated by dots (`.`), for example
484
+ # `foo.bar` means the property `bar` inside the entity property `foo` inside
485
+ # the entity associated with this path.
486
+ #
487
+ # If a property name contains a dot `.` or a backslash `\`, then that
488
+ # name must be escaped.
489
+ #
490
+ # A path must not be empty, and may not reference a value inside an
491
+ # {::Google::Cloud::Datastore::V1::Value#array_value array value}.
492
+ class PropertyMask
493
+ include ::Google::Protobuf::MessageExts
494
+ extend ::Google::Protobuf::MessageExts::ClassMethods
495
+ end
496
+
452
497
  # The options shared by read requests.
453
498
  # @!attribute [rw] read_consistency
454
499
  # @return [::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency]
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.18.0
4
+ version: 0.19.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: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common