google-cloud-datastore-v1 0.13.1 → 0.15.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 +4 -4
- data/lib/google/cloud/datastore/v1/datastore/client.rb +20 -3
- data/lib/google/cloud/datastore/v1/datastore/rest/client.rb +138 -2
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/lib/google/datastore/v1/datastore_pb.rb +3 -1
- data/lib/google/datastore/v1/query_profile_pb.rb +47 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/datastore/v1/datastore.rb +22 -0
- data/proto_docs/google/datastore/v1/query_profile.rb +78 -0
- metadata +7 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89c10d23af1fd883f4448dc1d3cc08f8061cbd8427bdb9e8a1e10e697b65f275
|
|
4
|
+
data.tar.gz: 5b18f2e0631eed54021cd29707cf047b6fade1fdc40f964ffd2a2e58520bc68a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3372006c5984b96a6c1271c8f93b47ebcad6e7a2f77a7bacbefc4b7d7a379e2841a456a18203d7192d0a6a36a1514d2ddb9769ea02e711bbe9f2b3be6a4d009d
|
|
7
|
+
data.tar.gz: 59e633738079594757401444f372c147bf8b6f8e275e7da98140cf225ba85ebae476f89e4137c605306202d31039ab2fca442bef793df734a8465635be61e7a3
|
|
@@ -169,7 +169,8 @@ module Google
|
|
|
169
169
|
credentials: credentials,
|
|
170
170
|
endpoint: @config.endpoint,
|
|
171
171
|
channel_args: @config.channel_args,
|
|
172
|
-
interceptors: @config.interceptors
|
|
172
|
+
interceptors: @config.interceptors,
|
|
173
|
+
channel_pool_config: @config.channel_pool
|
|
173
174
|
)
|
|
174
175
|
end
|
|
175
176
|
|
|
@@ -285,7 +286,7 @@ module Google
|
|
|
285
286
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
286
287
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
287
288
|
#
|
|
288
|
-
# @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil)
|
|
289
|
+
# @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, mode: nil)
|
|
289
290
|
# Pass arguments to `run_query` via keyword arguments. Note that at
|
|
290
291
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
291
292
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -308,6 +309,10 @@ module Google
|
|
|
308
309
|
# The query to run.
|
|
309
310
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
|
310
311
|
# The GQL query to run. This query must be a non-aggregation query.
|
|
312
|
+
# @param mode [::Google::Cloud::Datastore::V1::QueryMode]
|
|
313
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
314
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
315
|
+
# additional statistics will be returned with the query results.
|
|
311
316
|
#
|
|
312
317
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
313
318
|
# @yieldparam response [::Google::Cloud::Datastore::V1::RunQueryResponse]
|
|
@@ -389,7 +394,7 @@ module Google
|
|
|
389
394
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
390
395
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
391
396
|
#
|
|
392
|
-
# @overload run_aggregation_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, aggregation_query: nil, gql_query: nil)
|
|
397
|
+
# @overload run_aggregation_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, aggregation_query: nil, gql_query: nil, mode: nil)
|
|
393
398
|
# Pass arguments to `run_aggregation_query` via keyword arguments. Note that at
|
|
394
399
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
395
400
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -412,6 +417,10 @@ module Google
|
|
|
412
417
|
# The query to run.
|
|
413
418
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
|
414
419
|
# The GQL query to run. This query must be an aggregation query.
|
|
420
|
+
# @param mode [::Google::Cloud::Datastore::V1::QueryMode]
|
|
421
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
422
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
423
|
+
# additional statistics will be returned with the query results.
|
|
415
424
|
#
|
|
416
425
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
417
426
|
# @yieldparam response [::Google::Cloud::Datastore::V1::RunAggregationQueryResponse]
|
|
@@ -1103,6 +1112,14 @@ module Google
|
|
|
1103
1112
|
end
|
|
1104
1113
|
end
|
|
1105
1114
|
|
|
1115
|
+
##
|
|
1116
|
+
# Configuration for the channel pool
|
|
1117
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
1118
|
+
#
|
|
1119
|
+
def channel_pool
|
|
1120
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
1121
|
+
end
|
|
1122
|
+
|
|
1106
1123
|
##
|
|
1107
1124
|
# Configuration RPC class for the Datastore API.
|
|
1108
1125
|
#
|
|
@@ -202,6 +202,22 @@ module Google
|
|
|
202
202
|
# @return [::Google::Cloud::Datastore::V1::LookupResponse]
|
|
203
203
|
#
|
|
204
204
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
205
|
+
#
|
|
206
|
+
# @example Basic example
|
|
207
|
+
# require "google/cloud/datastore/v1"
|
|
208
|
+
#
|
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
210
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
211
|
+
#
|
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
213
|
+
# request = Google::Cloud::Datastore::V1::LookupRequest.new
|
|
214
|
+
#
|
|
215
|
+
# # Call the lookup method.
|
|
216
|
+
# result = client.lookup request
|
|
217
|
+
#
|
|
218
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::LookupResponse.
|
|
219
|
+
# p result
|
|
220
|
+
#
|
|
205
221
|
def lookup request, options = nil
|
|
206
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
207
223
|
|
|
@@ -250,7 +266,7 @@ module Google
|
|
|
250
266
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
251
267
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
252
268
|
#
|
|
253
|
-
# @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil)
|
|
269
|
+
# @overload run_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, query: nil, gql_query: nil, mode: nil)
|
|
254
270
|
# Pass arguments to `run_query` via keyword arguments. Note that at
|
|
255
271
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
256
272
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -273,6 +289,10 @@ module Google
|
|
|
273
289
|
# The query to run.
|
|
274
290
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
|
275
291
|
# The GQL query to run. This query must be a non-aggregation query.
|
|
292
|
+
# @param mode [::Google::Cloud::Datastore::V1::QueryMode]
|
|
293
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
294
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
295
|
+
# additional statistics will be returned with the query results.
|
|
276
296
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
277
297
|
# @yieldparam result [::Google::Cloud::Datastore::V1::RunQueryResponse]
|
|
278
298
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -280,6 +300,22 @@ module Google
|
|
|
280
300
|
# @return [::Google::Cloud::Datastore::V1::RunQueryResponse]
|
|
281
301
|
#
|
|
282
302
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
303
|
+
#
|
|
304
|
+
# @example Basic example
|
|
305
|
+
# require "google/cloud/datastore/v1"
|
|
306
|
+
#
|
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
308
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
309
|
+
#
|
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
311
|
+
# request = Google::Cloud::Datastore::V1::RunQueryRequest.new
|
|
312
|
+
#
|
|
313
|
+
# # Call the run_query method.
|
|
314
|
+
# result = client.run_query request
|
|
315
|
+
#
|
|
316
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::RunQueryResponse.
|
|
317
|
+
# p result
|
|
318
|
+
#
|
|
283
319
|
def run_query request, options = nil
|
|
284
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
285
321
|
|
|
@@ -328,7 +364,7 @@ module Google
|
|
|
328
364
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
329
365
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
330
366
|
#
|
|
331
|
-
# @overload run_aggregation_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, aggregation_query: nil, gql_query: nil)
|
|
367
|
+
# @overload run_aggregation_query(project_id: nil, database_id: nil, partition_id: nil, read_options: nil, aggregation_query: nil, gql_query: nil, mode: nil)
|
|
332
368
|
# Pass arguments to `run_aggregation_query` via keyword arguments. Note that at
|
|
333
369
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
334
370
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -351,6 +387,10 @@ module Google
|
|
|
351
387
|
# The query to run.
|
|
352
388
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
|
353
389
|
# The GQL query to run. This query must be an aggregation query.
|
|
390
|
+
# @param mode [::Google::Cloud::Datastore::V1::QueryMode]
|
|
391
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
392
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
393
|
+
# additional statistics will be returned with the query results.
|
|
354
394
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
355
395
|
# @yieldparam result [::Google::Cloud::Datastore::V1::RunAggregationQueryResponse]
|
|
356
396
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -358,6 +398,22 @@ module Google
|
|
|
358
398
|
# @return [::Google::Cloud::Datastore::V1::RunAggregationQueryResponse]
|
|
359
399
|
#
|
|
360
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
401
|
+
#
|
|
402
|
+
# @example Basic example
|
|
403
|
+
# require "google/cloud/datastore/v1"
|
|
404
|
+
#
|
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
406
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
407
|
+
#
|
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
409
|
+
# request = Google::Cloud::Datastore::V1::RunAggregationQueryRequest.new
|
|
410
|
+
#
|
|
411
|
+
# # Call the run_aggregation_query method.
|
|
412
|
+
# result = client.run_aggregation_query request
|
|
413
|
+
#
|
|
414
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::RunAggregationQueryResponse.
|
|
415
|
+
# p result
|
|
416
|
+
#
|
|
361
417
|
def run_aggregation_query request, options = nil
|
|
362
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
363
419
|
|
|
@@ -427,6 +483,22 @@ module Google
|
|
|
427
483
|
# @return [::Google::Cloud::Datastore::V1::BeginTransactionResponse]
|
|
428
484
|
#
|
|
429
485
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
486
|
+
#
|
|
487
|
+
# @example Basic example
|
|
488
|
+
# require "google/cloud/datastore/v1"
|
|
489
|
+
#
|
|
490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
491
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
492
|
+
#
|
|
493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
494
|
+
# request = Google::Cloud::Datastore::V1::BeginTransactionRequest.new
|
|
495
|
+
#
|
|
496
|
+
# # Call the begin_transaction method.
|
|
497
|
+
# result = client.begin_transaction request
|
|
498
|
+
#
|
|
499
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::BeginTransactionResponse.
|
|
500
|
+
# p result
|
|
501
|
+
#
|
|
430
502
|
def begin_transaction request, options = nil
|
|
431
503
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
432
504
|
|
|
@@ -520,6 +592,22 @@ module Google
|
|
|
520
592
|
# @return [::Google::Cloud::Datastore::V1::CommitResponse]
|
|
521
593
|
#
|
|
522
594
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
595
|
+
#
|
|
596
|
+
# @example Basic example
|
|
597
|
+
# require "google/cloud/datastore/v1"
|
|
598
|
+
#
|
|
599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
600
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
601
|
+
#
|
|
602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
603
|
+
# request = Google::Cloud::Datastore::V1::CommitRequest.new
|
|
604
|
+
#
|
|
605
|
+
# # Call the commit method.
|
|
606
|
+
# result = client.commit request
|
|
607
|
+
#
|
|
608
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::CommitResponse.
|
|
609
|
+
# p result
|
|
610
|
+
#
|
|
523
611
|
def commit request, options = nil
|
|
524
612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
525
613
|
|
|
@@ -590,6 +678,22 @@ module Google
|
|
|
590
678
|
# @return [::Google::Cloud::Datastore::V1::RollbackResponse]
|
|
591
679
|
#
|
|
592
680
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
681
|
+
#
|
|
682
|
+
# @example Basic example
|
|
683
|
+
# require "google/cloud/datastore/v1"
|
|
684
|
+
#
|
|
685
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
686
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
687
|
+
#
|
|
688
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
689
|
+
# request = Google::Cloud::Datastore::V1::RollbackRequest.new
|
|
690
|
+
#
|
|
691
|
+
# # Call the rollback method.
|
|
692
|
+
# result = client.rollback request
|
|
693
|
+
#
|
|
694
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::RollbackResponse.
|
|
695
|
+
# p result
|
|
696
|
+
#
|
|
593
697
|
def rollback request, options = nil
|
|
594
698
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
595
699
|
|
|
@@ -661,6 +765,22 @@ module Google
|
|
|
661
765
|
# @return [::Google::Cloud::Datastore::V1::AllocateIdsResponse]
|
|
662
766
|
#
|
|
663
767
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
768
|
+
#
|
|
769
|
+
# @example Basic example
|
|
770
|
+
# require "google/cloud/datastore/v1"
|
|
771
|
+
#
|
|
772
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
773
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
774
|
+
#
|
|
775
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
776
|
+
# request = Google::Cloud::Datastore::V1::AllocateIdsRequest.new
|
|
777
|
+
#
|
|
778
|
+
# # Call the allocate_ids method.
|
|
779
|
+
# result = client.allocate_ids request
|
|
780
|
+
#
|
|
781
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::AllocateIdsResponse.
|
|
782
|
+
# p result
|
|
783
|
+
#
|
|
664
784
|
def allocate_ids request, options = nil
|
|
665
785
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
666
786
|
|
|
@@ -732,6 +852,22 @@ module Google
|
|
|
732
852
|
# @return [::Google::Cloud::Datastore::V1::ReserveIdsResponse]
|
|
733
853
|
#
|
|
734
854
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
855
|
+
#
|
|
856
|
+
# @example Basic example
|
|
857
|
+
# require "google/cloud/datastore/v1"
|
|
858
|
+
#
|
|
859
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
860
|
+
# client = Google::Cloud::Datastore::V1::Datastore::Rest::Client.new
|
|
861
|
+
#
|
|
862
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
863
|
+
# request = Google::Cloud::Datastore::V1::ReserveIdsRequest.new
|
|
864
|
+
#
|
|
865
|
+
# # Call the reserve_ids method.
|
|
866
|
+
# result = client.reserve_ids request
|
|
867
|
+
#
|
|
868
|
+
# # The returned object is of type Google::Cloud::Datastore::V1::ReserveIdsResponse.
|
|
869
|
+
# p result
|
|
870
|
+
#
|
|
735
871
|
def reserve_ids request, options = nil
|
|
736
872
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
737
873
|
|
|
@@ -11,10 +11,11 @@ require 'google/api/routing_pb'
|
|
|
11
11
|
require 'google/datastore/v1/aggregation_result_pb'
|
|
12
12
|
require 'google/datastore/v1/entity_pb'
|
|
13
13
|
require 'google/datastore/v1/query_pb'
|
|
14
|
+
require 'google/datastore/v1/query_profile_pb'
|
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
|
15
16
|
|
|
16
17
|
|
|
17
|
-
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\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\"\
|
|
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\"\xd1\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\x31\n\x04mode\x18\x0b \x01(\x0e\x32\x1e.google.datastore.v1.QueryModeB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xbc\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\x32\n\x05stats\x18\x06 \x01(\x0b\x32#.google.datastore.v1.ResultSetStats\"\xf3\x02\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\x31\n\x04mode\x18\n \x01(\x0e\x32\x1e.google.datastore.v1.QueryModeB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\xd8\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\x32\n\x05stats\x18\x06 \x01(\x0b\x32#.google.datastore.v1.ResultSetStats\"\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\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\xda\x41\x1cproject_id,read_options,keys\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\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\xda\x41\nproject_id\x12\xe6\x01\n\x06\x43ommit\x12\".google.datastore.v1.CommitRequest\x1a#.google.datastore.v1.CommitResponse\"\x92\x01\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\xda\x41%project_id,mode,transaction,mutations\xda\x41\x19project_id,mode,mutations\x12\xc2\x01\n\x08Rollback\x12$.google.datastore.v1.RollbackRequest\x1a%.google.datastore.v1.RollbackResponse\"i\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\xda\x41\x16project_id,transaction\x12\xc7\x01\n\x0b\x41llocateIds\x12\'.google.datastore.v1.AllocateIdsRequest\x1a(.google.datastore.v1.AllocateIdsResponse\"e\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\xda\x41\x0fproject_id,keys\x12\xc3\x01\n\nReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1a\'.google.datastore.v1.ReserveIdsResponse\"d\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\xda\x41\x0fproject_id,keys\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
19
|
|
|
19
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ rescue TypeError => e
|
|
|
32
33
|
["google.datastore.v1.Key", "google/datastore/v1/entity.proto"],
|
|
33
34
|
["google.datastore.v1.EntityResult", "google/datastore/v1/query.proto"],
|
|
34
35
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
36
|
+
["google.datastore.v1.ResultSetStats", "google/datastore/v1/query_profile.proto"],
|
|
35
37
|
["google.datastore.v1.AggregationResultBatch", "google/datastore/v1/aggregation_result.proto"],
|
|
36
38
|
]
|
|
37
39
|
imports.each do |type_name, expected_filename|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/datastore/v1/query_profile.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/struct_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\'google/datastore/v1/query_profile.proto\x12\x13google.datastore.v1\x1a\x1cgoogle/protobuf/struct.proto\"7\n\tQueryPlan\x12*\n\tplan_info\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"r\n\x0eResultSetStats\x12\x32\n\nquery_plan\x18\x01 \x01(\x0b\x32\x1e.google.datastore.v1.QueryPlan\x12,\n\x0bquery_stats\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct*.\n\tQueryMode\x12\n\n\x06NORMAL\x10\x00\x12\x08\n\x04PLAN\x10\x01\x12\x0b\n\x07PROFILE\x10\x02\x42\xc3\x01\n\x17\x63om.google.datastore.v1B\x11QueryProfileProtoP\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"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
rescue TypeError => e
|
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
+
parsed.clear_dependency
|
|
21
|
+
serialized = parsed.class.encode(parsed)
|
|
22
|
+
file = pool.add_serialized_file(serialized)
|
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
+
imports = [
|
|
25
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
|
26
|
+
]
|
|
27
|
+
imports.each do |type_name, expected_filename|
|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
+
if import_file.name != expected_filename
|
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
+
warn "This will become an error in the next major version."
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
module Google
|
|
38
|
+
module Cloud
|
|
39
|
+
module Datastore
|
|
40
|
+
module V1
|
|
41
|
+
QueryPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryPlan").msgclass
|
|
42
|
+
ResultSetStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ResultSetStats").msgclass
|
|
43
|
+
QueryMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryMode").enummodule
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -304,6 +304,19 @@ module Google
|
|
|
304
304
|
# seconds: 360 # 6 minutes
|
|
305
305
|
# total_poll_timeout:
|
|
306
306
|
# seconds: 54000 # 90 minutes
|
|
307
|
+
# @!attribute [rw] auto_populated_fields
|
|
308
|
+
# @return [::Array<::String>]
|
|
309
|
+
# List of top-level fields of the request message, that should be
|
|
310
|
+
# automatically populated by the client libraries based on their
|
|
311
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
|
312
|
+
#
|
|
313
|
+
# Example of a YAML configuration:
|
|
314
|
+
#
|
|
315
|
+
# publishing:
|
|
316
|
+
# method_settings:
|
|
317
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
318
|
+
# auto_populated_fields:
|
|
319
|
+
# - request_id
|
|
307
320
|
class MethodSettings
|
|
308
321
|
include ::Google::Protobuf::MessageExts
|
|
309
322
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -100,6 +100,11 @@ module Google
|
|
|
100
100
|
# @!attribute [rw] gql_query
|
|
101
101
|
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
|
102
102
|
# The GQL query to run. This query must be a non-aggregation query.
|
|
103
|
+
# @!attribute [rw] mode
|
|
104
|
+
# @return [::Google::Cloud::Datastore::V1::QueryMode]
|
|
105
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
106
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
107
|
+
# additional statistics will be returned with the query results.
|
|
103
108
|
class RunQueryRequest
|
|
104
109
|
include ::Google::Protobuf::MessageExts
|
|
105
110
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -122,6 +127,12 @@ module Google
|
|
|
122
127
|
# {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
|
|
123
128
|
# was set in
|
|
124
129
|
# {::Google::Cloud::Datastore::V1::RunQueryRequest#read_options RunQueryRequest.read_options}.
|
|
130
|
+
# @!attribute [rw] stats
|
|
131
|
+
# @return [::Google::Cloud::Datastore::V1::ResultSetStats]
|
|
132
|
+
# Query plan and execution statistics. Note that the returned stats are
|
|
133
|
+
# subject to change as Firestore evolves.
|
|
134
|
+
#
|
|
135
|
+
# This is only present when the request specifies a mode other than `NORMAL`.
|
|
125
136
|
class RunQueryResponse
|
|
126
137
|
include ::Google::Protobuf::MessageExts
|
|
127
138
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -153,6 +164,11 @@ module Google
|
|
|
153
164
|
# @!attribute [rw] gql_query
|
|
154
165
|
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
|
155
166
|
# The GQL query to run. This query must be an aggregation query.
|
|
167
|
+
# @!attribute [rw] mode
|
|
168
|
+
# @return [::Google::Cloud::Datastore::V1::QueryMode]
|
|
169
|
+
# Optional. The mode in which the query request is processed. This field is
|
|
170
|
+
# optional, and when not provided, it defaults to `NORMAL` mode where no
|
|
171
|
+
# additional statistics will be returned with the query results.
|
|
156
172
|
class RunAggregationQueryRequest
|
|
157
173
|
include ::Google::Protobuf::MessageExts
|
|
158
174
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -175,6 +191,12 @@ module Google
|
|
|
175
191
|
# {::Google::Cloud::Datastore::V1::ReadOptions#new_transaction ReadOptions.new_transaction}
|
|
176
192
|
# was set in
|
|
177
193
|
# {::Google::Cloud::Datastore::V1::RunAggregationQueryRequest#read_options RunAggregationQueryRequest.read_options}.
|
|
194
|
+
# @!attribute [rw] stats
|
|
195
|
+
# @return [::Google::Cloud::Datastore::V1::ResultSetStats]
|
|
196
|
+
# Query plan and execution statistics. Note that the returned stats are
|
|
197
|
+
# subject to change as Firestore evolves.
|
|
198
|
+
#
|
|
199
|
+
# This is only present when the request specifies a mode other than `NORMAL`.
|
|
178
200
|
class RunAggregationQueryResponse
|
|
179
201
|
include ::Google::Protobuf::MessageExts
|
|
180
202
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Datastore
|
|
23
|
+
module V1
|
|
24
|
+
# Plan for the query.
|
|
25
|
+
# @!attribute [rw] plan_info
|
|
26
|
+
# @return [::Google::Protobuf::Struct]
|
|
27
|
+
# Planning phase information for the query. It will include:
|
|
28
|
+
#
|
|
29
|
+
# {
|
|
30
|
+
# "indexes_used": [
|
|
31
|
+
# \\{"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
|
|
32
|
+
# \\{"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
|
|
33
|
+
# ]
|
|
34
|
+
# }
|
|
35
|
+
class QueryPlan
|
|
36
|
+
include ::Google::Protobuf::MessageExts
|
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Planning and execution statistics for the query.
|
|
41
|
+
# @!attribute [rw] query_plan
|
|
42
|
+
# @return [::Google::Cloud::Datastore::V1::QueryPlan]
|
|
43
|
+
# Plan for the query.
|
|
44
|
+
# @!attribute [rw] query_stats
|
|
45
|
+
# @return [::Google::Protobuf::Struct]
|
|
46
|
+
# Aggregated statistics from the execution of the query.
|
|
47
|
+
#
|
|
48
|
+
# This will only be present when the request specifies `PROFILE` mode.
|
|
49
|
+
# For example, a query will return the statistics including:
|
|
50
|
+
#
|
|
51
|
+
# {
|
|
52
|
+
# "results_returned": "20",
|
|
53
|
+
# "documents_scanned": "20",
|
|
54
|
+
# "indexes_entries_scanned": "10050",
|
|
55
|
+
# "total_execution_time": "100.7 msecs"
|
|
56
|
+
# }
|
|
57
|
+
class ResultSetStats
|
|
58
|
+
include ::Google::Protobuf::MessageExts
|
|
59
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# The mode in which the query request must be processed.
|
|
63
|
+
module QueryMode
|
|
64
|
+
# The default mode. Only the query results are returned.
|
|
65
|
+
NORMAL = 0
|
|
66
|
+
|
|
67
|
+
# This mode returns only the query plan, without any results or execution
|
|
68
|
+
# statistics information.
|
|
69
|
+
PLAN = 1
|
|
70
|
+
|
|
71
|
+
# This mode returns both the query plan and the execution statistics along
|
|
72
|
+
# with the results.
|
|
73
|
+
PROFILE = 2
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
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.15.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:
|
|
11
|
+
date: 2024-01-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.20.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.20.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -184,6 +184,7 @@ files:
|
|
|
184
184
|
- lib/google/datastore/v1/datastore_services_pb.rb
|
|
185
185
|
- lib/google/datastore/v1/entity_pb.rb
|
|
186
186
|
- lib/google/datastore/v1/query_pb.rb
|
|
187
|
+
- lib/google/datastore/v1/query_profile_pb.rb
|
|
187
188
|
- proto_docs/README.md
|
|
188
189
|
- proto_docs/google/api/client.rb
|
|
189
190
|
- proto_docs/google/api/field_behavior.rb
|
|
@@ -194,6 +195,7 @@ files:
|
|
|
194
195
|
- proto_docs/google/datastore/v1/datastore.rb
|
|
195
196
|
- proto_docs/google/datastore/v1/entity.rb
|
|
196
197
|
- proto_docs/google/datastore/v1/query.rb
|
|
198
|
+
- proto_docs/google/datastore/v1/query_profile.rb
|
|
197
199
|
- proto_docs/google/protobuf/duration.rb
|
|
198
200
|
- proto_docs/google/protobuf/struct.rb
|
|
199
201
|
- proto_docs/google/protobuf/timestamp.rb
|
|
@@ -218,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
218
220
|
- !ruby/object:Gem::Version
|
|
219
221
|
version: '0'
|
|
220
222
|
requirements: []
|
|
221
|
-
rubygems_version: 3.
|
|
223
|
+
rubygems_version: 3.5.3
|
|
222
224
|
signing_key:
|
|
223
225
|
specification_version: 4
|
|
224
226
|
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|