Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 0875cd8

Browse files
feat(spanner): A new field snapshot_timestamp is added to message .google.spanner.v1.CommitResponse (#2350)
* feat(spanner): A new field `snapshot_timestamp` is added to message `.google.spanner.v1.CommitResponse` docs(spanner): A comment for field `commit_stats` in message `.google.spanner.v1.CommitResponse` is changed docs(spanner): A comment for field `precommit_token` in message `.google.spanner.v1.CommitResponse` is changed docs(spanner): A comment for message `.google.spanner.v1.TransactionOptions` is changed docs(spanner): A comment for enum value `READ_LOCK_MODE_UNSPECIFIED` in enum `ReadLockMode` is changed docs(spanner): A comment for enum value `PESSIMISTIC` in enum `ReadLockMode` is changed docs(spanner): A comment for enum value `OPTIMISTIC` in enum `ReadLockMode` is changed docs(spanner): A comment for field `multiplexed_session_previous_transaction_id` in message `.google.spanner.v1.TransactionOptions` is changed docs(spanner): A comment for field `exclude_txn_from_change_streams` in message `.google.spanner.v1.TransactionOptions` is changed docs(spanner): A comment for message `.google.spanner.v1.MultiplexedSessionPrecommitToken` is changed PiperOrigin-RevId: 784456709 Source-Link: googleapis/googleapis@62babf2 Source-Link: googleapis/googleapis-gen@c1d5fdd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzFkNWZkZDYyMjIyMTcyMzZkNzM3NTUzNDEyNmI0ZjZjY2RhZTljOSJ9 * 🦉 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>
1 parent 2e48fde commit 0875cd8

5 files changed

Lines changed: 87 additions & 360 deletions

File tree

protos/google/spanner/v1/commit_response.proto

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,21 @@ message CommitResponse {
4444
// The Cloud Spanner timestamp at which the transaction committed.
4545
google.protobuf.Timestamp commit_timestamp = 1;
4646

47-
// The statistics about this Commit. Not returned by default.
47+
// The statistics about this `Commit`. Not returned by default.
4848
// For more information, see
4949
// [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
5050
CommitStats commit_stats = 2;
5151

52-
// Clients should examine and retry the commit if any of the following
53-
// reasons are populated.
52+
// You must examine and retry the commit if the following is populated.
5453
oneof MultiplexedSessionRetry {
5554
// If specified, transaction has not committed yet.
56-
// Clients must retry the commit with the new precommit token.
55+
// You must retry the commit with the new precommit token.
5756
MultiplexedSessionPrecommitToken precommit_token = 4;
5857
}
58+
59+
// If `TransactionOptions.isolation_level` is set to
60+
// `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the
61+
// timestamp at which all reads in the transaction ran. This timestamp is
62+
// never returned.
63+
google.protobuf.Timestamp snapshot_timestamp = 5;
5964
}

0 commit comments

Comments
 (0)