1- // Copyright 2025 Google LLC
1+ // Copyright 2026 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -544,8 +544,9 @@ message RequestOptions {
544544 // A tag used for statistics collection about this transaction.
545545 // Both `request_tag` and `transaction_tag` can be specified for a read or
546546 // query that belongs to a transaction.
547- // The value of transaction_tag should be the same for all requests belonging
548- // to the same transaction.
547+ // To enable tagging on a transaction, `transaction_tag` must be set to the
548+ // same value for all requests belonging to the same transaction, including
549+ // [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
549550 // If this request doesn't belong to any transaction, `transaction_tag` is
550551 // ignored.
551552 // Legal characters for `transaction_tag` values are all printable characters
@@ -1018,7 +1019,8 @@ message PartitionQueryRequest {
10181019 // operations.
10191020 string sql = 3 [(google.api.field_behavior ) = REQUIRED ];
10201021
1021- // Parameter names and values that bind to placeholders in the SQL string.
1022+ // Optional. Parameter names and values that bind to placeholders in the SQL
1023+ // string.
10221024 //
10231025 // A parameter placeholder consists of the `@` character followed by the
10241026 // parameter name (for example, `@firstName`). Parameter names can contain
@@ -1030,18 +1032,18 @@ message PartitionQueryRequest {
10301032 // `"WHERE id > @msg_id AND id < @msg_id + 100"`
10311033 //
10321034 // It's an error to execute a SQL statement with unbound parameters.
1033- google.protobuf.Struct params = 4 ;
1035+ google.protobuf.Struct params = 4 [ (google.api .field_behavior ) = OPTIONAL ] ;
10341036
1035- // It isn't always possible for Cloud Spanner to infer the right SQL type
1036- // from a JSON value. For example, values of type `BYTES` and values
1037- // of type `STRING` both appear in
1037+ // Optional. It isn't always possible for Cloud Spanner to infer the right SQL
1038+ // type from a JSON value. For example, values of type `BYTES` and values of
1039+ // type `STRING` both appear in
10381040 // [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings.
10391041 //
10401042 // In these cases, `param_types` can be used to specify the exact
10411043 // SQL type for some or all of the SQL query parameters. See the
10421044 // definition of [Type][google.spanner.v1.Type] for more information
10431045 // about SQL types.
1044- map <string , Type > param_types = 5 ;
1046+ map <string , Type > param_types = 5 [ (google.api .field_behavior ) = OPTIONAL ] ;
10451047
10461048 // Additional options that affect how many partitions are created.
10471049 PartitionOptions partition_options = 6 ;
@@ -1407,6 +1409,11 @@ message BatchWriteResponse {
14071409 google.rpc.Status status = 2 ;
14081410
14091411 // The commit timestamp of the transaction that applied this batch.
1410- // Present if `status` is `OK`, absent otherwise.
1412+ // Present if status is OK and the mutation groups were applied, absent
1413+ // otherwise.
1414+ //
1415+ // For mutation groups with conditions, a status=OK and missing
1416+ // commit_timestamp means that the mutation groups were not applied due to the
1417+ // condition not being satisfied after evaluation.
14111418 google.protobuf.Timestamp commit_timestamp = 3 ;
14121419}
0 commit comments