|
1 | | -// Copyright 2025 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -544,8 +544,9 @@ message RequestOptions { |
544 | 544 | // A tag used for statistics collection about this transaction. |
545 | 545 | // Both `request_tag` and `transaction_tag` can be specified for a read or |
546 | 546 | // 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]. |
549 | 550 | // If this request doesn't belong to any transaction, `transaction_tag` is |
550 | 551 | // ignored. |
551 | 552 | // Legal characters for `transaction_tag` values are all printable characters |
@@ -1018,7 +1019,8 @@ message PartitionQueryRequest { |
1018 | 1019 | // operations. |
1019 | 1020 | string sql = 3 [(google.api.field_behavior) = REQUIRED]; |
1020 | 1021 |
|
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. |
1022 | 1024 | // |
1023 | 1025 | // A parameter placeholder consists of the `@` character followed by the |
1024 | 1026 | // parameter name (for example, `@firstName`). Parameter names can contain |
@@ -1030,18 +1032,18 @@ message PartitionQueryRequest { |
1030 | 1032 | // `"WHERE id > @msg_id AND id < @msg_id + 100"` |
1031 | 1033 | // |
1032 | 1034 | // 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]; |
1034 | 1036 |
|
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 |
1038 | 1040 | // [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings. |
1039 | 1041 | // |
1040 | 1042 | // In these cases, `param_types` can be used to specify the exact |
1041 | 1043 | // SQL type for some or all of the SQL query parameters. See the |
1042 | 1044 | // definition of [Type][google.spanner.v1.Type] for more information |
1043 | 1045 | // about SQL types. |
1044 | | - map<string, Type> param_types = 5; |
| 1046 | + map<string, Type> param_types = 5 [(google.api.field_behavior) = OPTIONAL]; |
1045 | 1047 |
|
1046 | 1048 | // Additional options that affect how many partitions are created. |
1047 | 1049 | PartitionOptions partition_options = 6; |
@@ -1407,6 +1409,11 @@ message BatchWriteResponse { |
1407 | 1409 | google.rpc.Status status = 2; |
1408 | 1410 |
|
1409 | 1411 | // 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. |
1411 | 1418 | google.protobuf.Timestamp commit_timestamp = 3; |
1412 | 1419 | } |