google-cloud-datastore-v1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/datastore/v1/datastore/client.rb +10 -2
- data/lib/google/cloud/datastore/v1/datastore/rest/client.rb +10 -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 +5 -3
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
|
@@ -286,7 +286,7 @@ module Google
|
|
286
286
|
# @param options [::Gapic::CallOptions, ::Hash]
|
287
287
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
288
288
|
#
|
289
|
-
# @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)
|
290
290
|
# Pass arguments to `run_query` via keyword arguments. Note that at
|
291
291
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
292
292
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -309,6 +309,10 @@ module Google
|
|
309
309
|
# The query to run.
|
310
310
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
311
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.
|
312
316
|
#
|
313
317
|
# @yield [response, operation] Access the result along with the RPC operation
|
314
318
|
# @yieldparam response [::Google::Cloud::Datastore::V1::RunQueryResponse]
|
@@ -390,7 +394,7 @@ module Google
|
|
390
394
|
# @param options [::Gapic::CallOptions, ::Hash]
|
391
395
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
392
396
|
#
|
393
|
-
# @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)
|
394
398
|
# Pass arguments to `run_aggregation_query` via keyword arguments. Note that at
|
395
399
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
396
400
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -413,6 +417,10 @@ module Google
|
|
413
417
|
# The query to run.
|
414
418
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
415
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.
|
416
424
|
#
|
417
425
|
# @yield [response, operation] Access the result along with the RPC operation
|
418
426
|
# @yieldparam response [::Google::Cloud::Datastore::V1::RunAggregationQueryResponse]
|
@@ -266,7 +266,7 @@ module Google
|
|
266
266
|
# @param options [::Gapic::CallOptions, ::Hash]
|
267
267
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
268
268
|
#
|
269
|
-
# @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)
|
270
270
|
# Pass arguments to `run_query` via keyword arguments. Note that at
|
271
271
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
272
272
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -289,6 +289,10 @@ module Google
|
|
289
289
|
# The query to run.
|
290
290
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
291
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.
|
292
296
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
293
297
|
# @yieldparam result [::Google::Cloud::Datastore::V1::RunQueryResponse]
|
294
298
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -360,7 +364,7 @@ module Google
|
|
360
364
|
# @param options [::Gapic::CallOptions, ::Hash]
|
361
365
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
362
366
|
#
|
363
|
-
# @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)
|
364
368
|
# Pass arguments to `run_aggregation_query` via keyword arguments. Note that at
|
365
369
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
366
370
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -383,6 +387,10 @@ module Google
|
|
383
387
|
# The query to run.
|
384
388
|
# @param gql_query [::Google::Cloud::Datastore::V1::GqlQuery, ::Hash]
|
385
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.
|
386
394
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
387
395
|
# @yieldparam result [::Google::Cloud::Datastore::V1::RunAggregationQueryResponse]
|
388
396
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -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
|
@@ -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,
|