Package com.google.spanner.v1
Interface CommitResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CommitResponse,CommitResponse.Builder
@Generated
public interface CommitResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.The statistics about this `Commit`.The statistics about this `Commit`.com.google.protobuf.TimestampThe Cloud Spanner timestamp at which the transaction committed.com.google.protobuf.TimestampOrBuilderThe Cloud Spanner timestamp at which the transaction committed.If specified, transaction has not committed yet.If specified, transaction has not committed yet.com.google.protobuf.TimestampIf `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the timestamp at which all reads in the transaction ran.com.google.protobuf.TimestampOrBuilderIf `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the timestamp at which all reads in the transaction ran.booleanOptional.booleanThe statistics about this `Commit`.booleanThe Cloud Spanner timestamp at which the transaction committed.booleanIf specified, transaction has not committed yet.booleanIf `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the timestamp at which all reads in the transaction ran.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCommitTimestamp
boolean hasCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;- Returns:
- Whether the commitTimestamp field is set.
-
getCommitTimestamp
com.google.protobuf.Timestamp getCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;- Returns:
- The commitTimestamp.
-
getCommitTimestampOrBuilder
com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
hasCommitStats
boolean hasCommitStats()The statistics about this `Commit`. Not returned by default. For more information, see [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;- Returns:
- Whether the commitStats field is set.
-
getCommitStats
CommitResponse.CommitStats getCommitStats()The statistics about this `Commit`. Not returned by default. For more information, see [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;- Returns:
- The commitStats.
-
getCommitStatsOrBuilder
CommitResponse.CommitStatsOrBuilder getCommitStatsOrBuilder()The statistics about this `Commit`. Not returned by default. For more information, see [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2; -
hasPrecommitToken
boolean hasPrecommitToken()If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;- Returns:
- Whether the precommitToken field is set.
-
getPrecommitToken
MultiplexedSessionPrecommitToken getPrecommitToken()If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;- Returns:
- The precommitToken.
-
getPrecommitTokenOrBuilder
MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4; -
hasSnapshotTimestamp
boolean hasSnapshotTimestamp()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.
.google.protobuf.Timestamp snapshot_timestamp = 5;- Returns:
- Whether the snapshotTimestamp field is set.
-
getSnapshotTimestamp
com.google.protobuf.Timestamp getSnapshotTimestamp()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.
.google.protobuf.Timestamp snapshot_timestamp = 5;- Returns:
- The snapshotTimestamp.
-
getSnapshotTimestampOrBuilder
com.google.protobuf.TimestampOrBuilder getSnapshotTimestampOrBuilder()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.
.google.protobuf.Timestamp snapshot_timestamp = 5; -
hasCacheUpdate
boolean hasCacheUpdate()Optional. A cache update expresses a set of changes the client should incorporate into its location cache. The client should discard the changes if they are older than the data it already has. This data can be obtained in response to requests that included a `RoutingHint` field, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
.google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the cacheUpdate field is set.
-
getCacheUpdate
CacheUpdate getCacheUpdate()Optional. A cache update expresses a set of changes the client should incorporate into its location cache. The client should discard the changes if they are older than the data it already has. This data can be obtained in response to requests that included a `RoutingHint` field, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
.google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The cacheUpdate.
-
getCacheUpdateOrBuilder
CacheUpdateOrBuilder getCacheUpdateOrBuilder()Optional. A cache update expresses a set of changes the client should incorporate into its location cache. The client should discard the changes if they are older than the data it already has. This data can be obtained in response to requests that included a `RoutingHint` field, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
.google.spanner.v1.CacheUpdate cache_update = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMultiplexedSessionRetryCase
CommitResponse.MultiplexedSessionRetryCase getMultiplexedSessionRetryCase()
-