@@ -16,7 +16,6 @@ syntax = "proto3";
1616
1717package google.spanner.v1 ;
1818
19- import public "google/spanner/v1/commit_response.proto" ;
2019import "google/api/annotations.proto" ;
2120import "google/api/client.proto" ;
2221import "google/api/field_behavior.proto" ;
@@ -25,6 +24,7 @@ import "google/protobuf/empty.proto";
2524import "google/protobuf/struct.proto" ;
2625import "google/protobuf/timestamp.proto" ;
2726import "google/rpc/status.proto" ;
27+ import public "google/spanner/v1/commit_response.proto" ;
2828import "google/spanner/v1/keys.proto" ;
2929import "google/spanner/v1/mutation.proto" ;
3030import "google/spanner/v1/result_set.proto" ;
@@ -469,24 +469,40 @@ message RequestOptions {
469469 // Legal characters for `request_tag` values are all printable characters
470470 // (ASCII 32 - 126) and the length of a request_tag is limited to 50
471471 // characters. Values that exceed this limit are truncated.
472+ // Any leading underscore (_) characters will be removed from the string.
472473 string request_tag = 2 ;
473474
474475 // A tag used for statistics collection about this transaction.
475476 // Both request_tag and transaction_tag can be specified for a read or query
476477 // that belongs to a transaction.
477478 // The value of transaction_tag should be the same for all requests belonging
478479 // to the same transaction.
479- // If this request doesn’ t belong to any transaction, transaction_tag will be
480+ // If this request doesn' t belong to any transaction, transaction_tag will be
480481 // ignored.
481482 // Legal characters for `transaction_tag` values are all printable characters
482483 // (ASCII 32 - 126) and the length of a transaction_tag is limited to 50
483484 // characters. Values that exceed this limit are truncated.
485+ // Any leading underscore (_) characters will be removed from the string.
484486 string transaction_tag = 3 ;
485487}
486488
487489// The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
488490// [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].
489491message ExecuteSqlRequest {
492+ // Mode in which the statement must be processed.
493+ enum QueryMode {
494+ // The default mode. Only the statement results are returned.
495+ NORMAL = 0 ;
496+
497+ // This mode returns only the query plan, without any results or
498+ // execution statistics information.
499+ PLAN = 1 ;
500+
501+ // This mode returns both the query plan and the execution statistics along
502+ // with the results.
503+ PROFILE = 2 ;
504+ }
505+
490506 // Query optimizer configuration.
491507 message QueryOptions {
492508 // An option to control the selection of optimizer version.
@@ -540,20 +556,6 @@ message ExecuteSqlRequest {
540556 string optimizer_statistics_package = 2 ;
541557 }
542558
543- // Mode in which the statement must be processed.
544- enum QueryMode {
545- // The default mode. Only the statement results are returned.
546- NORMAL = 0 ;
547-
548- // This mode returns only the query plan, without any results or
549- // execution statistics information.
550- PLAN = 1 ;
551-
552- // This mode returns both the query plan and the execution statistics along
553- // with the results.
554- PROFILE = 2 ;
555- }
556-
557559 // Required. The session in which the SQL query should be performed.
558560 string session = 1 [
559561 (google.api.field_behavior ) = REQUIRED ,
0 commit comments