If TransactionOptions.isolation_level is set to
IsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the
timestamp at which all reads in the transaction ran. This timestamp is
never returned.
If TransactionOptions.isolation_level is set to
IsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the
timestamp at which all reads in the transaction ran. This timestamp is
never returned.
If TransactionOptions.isolation_level is set to
IsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the
timestamp at which all reads in the transaction ran. This timestamp is
never returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface CommitResponseOrBuilder (6.98.1)\n\nVersion latestkeyboard_arrow_down\n\n- [6.98.1 (latest)](/java/docs/reference/google-cloud-spanner/latest/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.98.0](/java/docs/reference/google-cloud-spanner/6.98.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.97.1](/java/docs/reference/google-cloud-spanner/6.97.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.96.1](/java/docs/reference/google-cloud-spanner/6.96.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.95.1](/java/docs/reference/google-cloud-spanner/6.95.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.94.0](/java/docs/reference/google-cloud-spanner/6.94.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.93.0](/java/docs/reference/google-cloud-spanner/6.93.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.89.0](/java/docs/reference/google-cloud-spanner/6.89.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.88.0](/java/docs/reference/google-cloud-spanner/6.88.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.87.0](/java/docs/reference/google-cloud-spanner/6.87.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.86.0](/java/docs/reference/google-cloud-spanner/6.86.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.85.0](/java/docs/reference/google-cloud-spanner/6.85.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.83.0](/java/docs/reference/google-cloud-spanner/6.83.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.82.0](/java/docs/reference/google-cloud-spanner/6.82.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.80.1](/java/docs/reference/google-cloud-spanner/6.80.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.79.0](/java/docs/reference/google-cloud-spanner/6.79.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.77.0](/java/docs/reference/google-cloud-spanner/6.77.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.74.1](/java/docs/reference/google-cloud-spanner/6.74.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.72.0](/java/docs/reference/google-cloud-spanner/6.72.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.71.0](/java/docs/reference/google-cloud-spanner/6.71.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.69.0](/java/docs/reference/google-cloud-spanner/6.69.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.68.0](/java/docs/reference/google-cloud-spanner/6.68.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.66.0](/java/docs/reference/google-cloud-spanner/6.66.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.65.1](/java/docs/reference/google-cloud-spanner/6.65.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.62.0](/java/docs/reference/google-cloud-spanner/6.62.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.60.0](/java/docs/reference/google-cloud-spanner/6.60.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.58.0](/java/docs/reference/google-cloud-spanner/6.58.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.57.0](/java/docs/reference/google-cloud-spanner/6.57.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.56.0](/java/docs/reference/google-cloud-spanner/6.56.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.55.0](/java/docs/reference/google-cloud-spanner/6.55.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.54.0](/java/docs/reference/google-cloud-spanner/6.54.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.53.0](/java/docs/reference/google-cloud-spanner/6.53.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.52.1](/java/docs/reference/google-cloud-spanner/6.52.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.51.0](/java/docs/reference/google-cloud-spanner/6.51.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.50.1](/java/docs/reference/google-cloud-spanner/6.50.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.49.0](/java/docs/reference/google-cloud-spanner/6.49.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.25.1](/java/docs/reference/google-cloud-spanner/6.25.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.24.0](/java/docs/reference/google-cloud-spanner/6.24.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.23.4](/java/docs/reference/google-cloud-spanner/6.23.4/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.22.0](/java/docs/reference/google-cloud-spanner/6.22.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.21.2](/java/docs/reference/google-cloud-spanner/6.21.2/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.20.0](/java/docs/reference/google-cloud-spanner/6.20.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.19.1](/java/docs/reference/google-cloud-spanner/6.19.1/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.18.0](/java/docs/reference/google-cloud-spanner/6.18.0/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.17.4](/java/docs/reference/google-cloud-spanner/6.17.4/com.google.spanner.v1.CommitResponseOrBuilder)\n- [6.14.1](/java/docs/reference/google-cloud-spanner/6.14.1/com.google.spanner.v1.CommitResponseOrBuilder) \n\n public interface CommitResponseOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCommitStats()\n\n public abstract CommitResponse.CommitStats getCommitStats()\n\nThe statistics about this `Commit`. Not returned by default.\nFor more information, see\nCommitRequest.return_commit_stats.\n\n`.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;`\n\n### getCommitStatsOrBuilder()\n\n public abstract CommitResponse.CommitStatsOrBuilder getCommitStatsOrBuilder()\n\nThe statistics about this `Commit`. Not returned by default.\nFor more information, see\nCommitRequest.return_commit_stats.\n\n`.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;`\n\n### getCommitTimestamp()\n\n public abstract Timestamp getCommitTimestamp()\n\nThe Cloud Spanner timestamp at which the transaction committed.\n\n`.google.protobuf.Timestamp commit_timestamp = 1;`\n\n### getCommitTimestampOrBuilder()\n\n public abstract TimestampOrBuilder getCommitTimestampOrBuilder()\n\nThe Cloud Spanner timestamp at which the transaction committed.\n\n`.google.protobuf.Timestamp commit_timestamp = 1;`\n\n### getMultiplexedSessionRetryCase()\n\n public abstract CommitResponse.MultiplexedSessionRetryCase getMultiplexedSessionRetryCase()\n\n### getPrecommitToken()\n\n public abstract MultiplexedSessionPrecommitToken getPrecommitToken()\n\nIf specified, transaction has not committed yet.\nYou must retry the commit with the new precommit token.\n\n`.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;`\n\n### getPrecommitTokenOrBuilder()\n\n public abstract MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()\n\nIf specified, transaction has not committed yet.\nYou must retry the commit with the new precommit token.\n\n`.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;`\n\n### getSnapshotTimestamp()\n\n public abstract Timestamp getSnapshotTimestamp()\n\nIf `TransactionOptions.isolation_level` is set to\n`IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the\ntimestamp at which all reads in the transaction ran. This timestamp is\nnever returned.\n\n`.google.protobuf.Timestamp snapshot_timestamp = 5;`\n\n### getSnapshotTimestampOrBuilder()\n\n public abstract TimestampOrBuilder getSnapshotTimestampOrBuilder()\n\nIf `TransactionOptions.isolation_level` is set to\n`IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the\ntimestamp at which all reads in the transaction ran. This timestamp is\nnever returned.\n\n`.google.protobuf.Timestamp snapshot_timestamp = 5;`\n\n### hasCommitStats()\n\n public abstract boolean hasCommitStats()\n\nThe statistics about this `Commit`. Not returned by default.\nFor more information, see\nCommitRequest.return_commit_stats.\n\n`.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;`\n\n### hasCommitTimestamp()\n\n public abstract boolean hasCommitTimestamp()\n\nThe Cloud Spanner timestamp at which the transaction committed.\n\n`.google.protobuf.Timestamp commit_timestamp = 1;`\n\n### hasPrecommitToken()\n\n public abstract boolean hasPrecommitToken()\n\nIf specified, transaction has not committed yet.\nYou must retry the commit with the new precommit token.\n\n`.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;`\n\n### hasSnapshotTimestamp()\n\n public abstract boolean hasSnapshotTimestamp()\n\nIf `TransactionOptions.isolation_level` is set to\n`IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the\ntimestamp at which all reads in the transaction ran. This timestamp is\nnever returned.\n\n`.google.protobuf.Timestamp snapshot_timestamp = 5;`"]]