-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new types QueryMode, QueryPlan, ResultSetStats (#1216)
* fix: correct long audio synthesis HTTP binding docs: Deprecate the custom voice usage field PiperOrigin-RevId: 595119987 Source-Link: googleapis/googleapis@c22f408 Source-Link: googleapis/googleapis-gen@4e9ca63 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGU5Y2E2M2QyY2M3OTMzZWI3YzM4M2NlOGI3OTRmY2UxNTJlYTJmYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add new types QueryMode, QueryPlan, ResultSetStats feat: add QueryMode field to RunQueryRequest feat: add ResultSetStats field to RunQueryResponse feat: add QueryMode field to RunAggregationQueryRequest feat: add ResultSetStats field to RunAggregationQueryResponse PiperOrigin-RevId: 595774772 Source-Link: googleapis/googleapis@03e7ed4 Source-Link: googleapis/googleapis-gen@dc63e0d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGM2M2UwZGVhODQyM2MyMzBkNWZiMDkzN2FjYjNjOTg3MTljOTM5NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
eb4295c
commit 49c1462
Showing
29 changed files
with
1,047 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.datastore.v1; | ||
|
||
import "google/protobuf/struct.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.Datastore.V1"; | ||
option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "QueryProfileProto"; | ||
option java_package = "com.google.datastore.v1"; | ||
option php_namespace = "Google\\Cloud\\Datastore\\V1"; | ||
option ruby_package = "Google::Cloud::Datastore::V1"; | ||
|
||
// Specification of the Datastore Query Profile fields. | ||
|
||
// The mode in which the query request must be processed. | ||
enum QueryMode { | ||
// The default mode. Only the query results are returned. | ||
NORMAL = 0; | ||
|
||
// This mode returns only the query plan, without any results or execution | ||
// statistics information. | ||
PLAN = 1; | ||
|
||
// This mode returns both the query plan and the execution statistics along | ||
// with the results. | ||
PROFILE = 2; | ||
} | ||
|
||
// Plan for the query. | ||
message QueryPlan { | ||
// 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)"} | ||
// ] | ||
// } | ||
google.protobuf.Struct plan_info = 1; | ||
} | ||
|
||
// Planning and execution statistics for the query. | ||
message ResultSetStats { | ||
// Plan for the query. | ||
QueryPlan query_plan = 1; | ||
|
||
// 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" | ||
// } | ||
google.protobuf.Struct query_stats = 2; | ||
} |
Oops, something went wrong.