You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/datastore_v1.projects.html
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1014,6 +1014,7 @@ <h3>Method Details</h3>
1014
1014
],
1015
1015
"queryString": "A String", # A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
1016
1016
},
1017
+
"mode": "A String", # Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.
1017
1018
"partitionId": { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.
1018
1019
"databaseId": "A String", # If not empty, the ID of the database to which the entities belong.
1019
1020
"namespaceId": "A String", # If not empty, the ID of the namespace to which the entities belong.
@@ -1188,6 +1189,16 @@ <h3>Method Details</h3>
1188
1189
"startCursor": "A String", # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
1189
1190
},
1190
1191
},
1192
+
"stats": { # Planning and execution statistics for the query. # Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`.
1193
+
"queryPlan": { # Plan for the query. # Plan for the query.
1194
+
"planInfo": { # Planning phase information for the query. It will include: { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] }
1195
+
"a_key": "", # Properties of the object.
1196
+
},
1197
+
},
1198
+
"queryStats": { # Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }
1199
+
"a_key": "", # Properties of the object.
1200
+
},
1201
+
},
1191
1202
"transaction": "A String", # The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.new_transaction was set in RunAggregationQueryRequest.read_options.
1192
1203
}</pre>
1193
1204
</div>
@@ -1287,6 +1298,7 @@ <h3>Method Details</h3>
1287
1298
],
1288
1299
"queryString": "A String", # A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
1289
1300
},
1301
+
"mode": "A String", # Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.
1290
1302
"partitionId": { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.
1291
1303
"databaseId": "A String", # If not empty, the ID of the database to which the entities belong.
1292
1304
"namespaceId": "A String", # If not empty, the ID of the namespace to which the entities belong.
@@ -1546,6 +1558,16 @@ <h3>Method Details</h3>
1546
1558
],
1547
1559
"startCursor": "A String", # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
1548
1560
},
1561
+
"stats": { # Planning and execution statistics for the query. # Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`.
1562
+
"queryPlan": { # Plan for the query. # Plan for the query.
1563
+
"planInfo": { # Planning phase information for the query. It will include: { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] }
1564
+
"a_key": "", # Properties of the object.
1565
+
},
1566
+
},
1567
+
"queryStats": { # Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }
1568
+
"a_key": "", # Properties of the object.
1569
+
},
1570
+
},
1549
1571
"transaction": "A String", # The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options.
Copy file name to clipboardExpand all lines: docs/dyn/datastore_v1beta3.projects.html
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -849,6 +849,7 @@ <h3>Method Details</h3>
849
849
],
850
850
"queryString": "A String", # A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
851
851
},
852
+
"mode": "A String", # Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.
852
853
"partitionId": { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.
853
854
"namespaceId": "A String", # If not empty, the ID of the namespace to which the entities belong.
854
855
"projectId": "A String", # The ID of the project to which the entities belong.
@@ -1012,6 +1013,16 @@ <h3>Method Details</h3>
1012
1013
"startCursor": "A String", # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
1013
1014
},
1014
1015
},
1016
+
"stats": { # Planning and execution statistics for the query. # Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`.
1017
+
"queryPlan": { # Plan for the query. # Plan for the query.
1018
+
"planInfo": { # Planning phase information for the query. It will include: { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] }
1019
+
"a_key": "", # Properties of the object.
1020
+
},
1021
+
},
1022
+
"queryStats": { # Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }
1023
+
"a_key": "", # Properties of the object.
1024
+
},
1025
+
},
1015
1026
}</pre>
1016
1027
</div>
1017
1028
@@ -1107,6 +1118,7 @@ <h3>Method Details</h3>
1107
1118
],
1108
1119
"queryString": "A String", # A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
1109
1120
},
1121
+
"mode": "A String", # Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.
1110
1122
"partitionId": { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.
1111
1123
"namespaceId": "A String", # If not empty, the ID of the namespace to which the entities belong.
1112
1124
"projectId": "A String", # The ID of the project to which the entities belong.
@@ -1353,6 +1365,16 @@ <h3>Method Details</h3>
1353
1365
],
1354
1366
"startCursor": "A String", # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
1355
1367
},
1368
+
"stats": { # Planning and execution statistics for the query. # Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`.
1369
+
"queryPlan": { # Plan for the query. # Plan for the query.
1370
+
"planInfo": { # Planning phase information for the query. It will include: { "indexes_used": [ {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} ] }
1371
+
"a_key": "", # Properties of the object.
1372
+
},
1373
+
},
1374
+
"queryStats": { # Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }
1375
+
"a_key": "", # Properties of the object.
Copy file name to clipboardExpand all lines: googleapiclient/discovery_cache/documents/datastore.v1.json
+71-1Lines changed: 71 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -654,7 +654,7 @@
654
654
}
655
655
}
656
656
},
657
-
"revision": "20231221",
657
+
"revision": "20240117",
658
658
"rootUrl": "https://datastore.googleapis.com/",
659
659
"schemas": {
660
660
"Aggregation": {
@@ -2119,6 +2119,21 @@
2119
2119
},
2120
2120
"type": "object"
2121
2121
},
2122
+
"QueryPlan": {
2123
+
"description": "Plan for the query.",
2124
+
"id": "QueryPlan",
2125
+
"properties": {
2126
+
"planInfo": {
2127
+
"additionalProperties": {
2128
+
"description": "Properties of the object.",
2129
+
"type": "any"
2130
+
},
2131
+
"description": "Planning phase information for the query. It will include: { \"indexes_used\": [ {\"query_scope\": \"Collection\", \"properties\": \"(foo ASC, __name__ ASC)\"}, {\"query_scope\": \"Collection\", \"properties\": \"(bar ASC, __name__ ASC)\"} ] }",
2132
+
"type": "object"
2133
+
}
2134
+
},
2135
+
"type": "object"
2136
+
},
2122
2137
"QueryResultBatch": {
2123
2138
"description": "A batch of results produced by a query.",
2124
2139
"id": "QueryResultBatch",
@@ -2275,6 +2290,25 @@
2275
2290
"properties": {},
2276
2291
"type": "object"
2277
2292
},
2293
+
"ResultSetStats": {
2294
+
"description": "Planning and execution statistics for the query.",
2295
+
"id": "ResultSetStats",
2296
+
"properties": {
2297
+
"queryPlan": {
2298
+
"$ref": "QueryPlan",
2299
+
"description": "Plan for the query."
2300
+
},
2301
+
"queryStats": {
2302
+
"additionalProperties": {
2303
+
"description": "Properties of the object.",
2304
+
"type": "any"
2305
+
},
2306
+
"description": "Aggregated statistics from the execution of the query. This will only be present when the request specifies `PROFILE` mode. For example, a query will return the statistics including: { \"results_returned\": \"20\", \"documents_scanned\": \"20\", \"indexes_entries_scanned\": \"10050\", \"total_execution_time\": \"100.7 msecs\" }",
2307
+
"type": "object"
2308
+
}
2309
+
},
2310
+
"type": "object"
2311
+
},
2278
2312
"RollbackRequest": {
2279
2313
"description": "The request for Datastore.Rollback.",
2280
2314
"id": "RollbackRequest",
@@ -2313,6 +2347,20 @@
2313
2347
"$ref": "GqlQuery",
2314
2348
"description": "The GQL query to run. This query must be an aggregation query."
2315
2349
},
2350
+
"mode": {
2351
+
"description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.",
2352
+
"enum": [
2353
+
"NORMAL",
2354
+
"PLAN",
2355
+
"PROFILE"
2356
+
],
2357
+
"enumDescriptions": [
2358
+
"The default mode. Only the query results are returned.",
2359
+
"This mode returns only the query plan, without any results or execution statistics information.",
2360
+
"This mode returns both the query plan and the execution statistics along with the results."
2361
+
],
2362
+
"type": "string"
2363
+
},
2316
2364
"partitionId": {
2317
2365
"$ref": "PartitionId",
2318
2366
"description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID."
@@ -2336,6 +2384,10 @@
2336
2384
"$ref": "AggregationQuery",
2337
2385
"description": "The parsed form of the `GqlQuery` from the request, if it was set."
2338
2386
},
2387
+
"stats": {
2388
+
"$ref": "ResultSetStats",
2389
+
"description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`."
2390
+
},
2339
2391
"transaction": {
2340
2392
"description": "The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.new_transaction was set in RunAggregationQueryRequest.read_options.",
2341
2393
"format": "byte",
@@ -2356,6 +2408,20 @@
2356
2408
"$ref": "GqlQuery",
2357
2409
"description": "The GQL query to run. This query must be a non-aggregation query."
2358
2410
},
2411
+
"mode": {
2412
+
"description": "Optional. The mode in which the query request is processed. This field is optional, and when not provided, it defaults to `NORMAL` mode where no additional statistics will be returned with the query results.",
2413
+
"enum": [
2414
+
"NORMAL",
2415
+
"PLAN",
2416
+
"PROFILE"
2417
+
],
2418
+
"enumDescriptions": [
2419
+
"The default mode. Only the query results are returned.",
2420
+
"This mode returns only the query plan, without any results or execution statistics information.",
2421
+
"This mode returns both the query plan and the execution statistics along with the results."
2422
+
],
2423
+
"type": "string"
2424
+
},
2359
2425
"partitionId": {
2360
2426
"$ref": "PartitionId",
2361
2427
"description": "Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID."
@@ -2383,6 +2449,10 @@
2383
2449
"$ref": "Query",
2384
2450
"description": "The parsed form of the `GqlQuery` from the request, if it was set."
2385
2451
},
2452
+
"stats": {
2453
+
"$ref": "ResultSetStats",
2454
+
"description": "Query plan and execution statistics. Note that the returned stats are subject to change as Firestore evolves. This is only present when the request specifies a mode other than `NORMAL`."
2455
+
},
2386
2456
"transaction": {
2387
2457
"description": "The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options.",
0 commit comments