Interface CommitResponseOrBuilder (6.118.0)

public interface CommitResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCacheUpdate()

public abstract 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
Type Description
CacheUpdate

The cacheUpdate.

getCacheUpdateOrBuilder()

public abstract 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];

Returns
Type Description
CacheUpdateOrBuilder

getCommitStats()

public abstract CommitResponse.CommitStats getCommitStats()

The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.

.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;

Returns
Type Description
CommitResponse.CommitStats

The commitStats.

getCommitStatsOrBuilder()

public abstract CommitResponse.CommitStatsOrBuilder getCommitStatsOrBuilder()

The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.

.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;

Returns
Type Description
CommitResponse.CommitStatsOrBuilder

getCommitTimestamp()

public abstract Timestamp getCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
Timestamp

The commitTimestamp.

getCommitTimestampOrBuilder()

public abstract TimestampOrBuilder getCommitTimestampOrBuilder()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
TimestampOrBuilder

getIsolationLevel()

public abstract TransactionOptions.IsolationLevel getIsolationLevel()

The isolation level used for the read-write transaction.

.google.spanner.v1.TransactionOptions.IsolationLevel isolation_level = 7;

Returns
Type Description
TransactionOptions.IsolationLevel

The isolationLevel.

getIsolationLevelValue()

public abstract int getIsolationLevelValue()

The isolation level used for the read-write transaction.

.google.spanner.v1.TransactionOptions.IsolationLevel isolation_level = 7;

Returns
Type Description
int

The enum numeric value on the wire for isolationLevel.

getMultiplexedSessionRetryCase()

public abstract CommitResponse.MultiplexedSessionRetryCase getMultiplexedSessionRetryCase()
Returns
Type Description
CommitResponse.MultiplexedSessionRetryCase

getPrecommitToken()

public abstract 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
Type Description
MultiplexedSessionPrecommitToken

The precommitToken.

getPrecommitTokenOrBuilder()

public abstract 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;

Returns
Type Description
MultiplexedSessionPrecommitTokenOrBuilder

getReadLockMode()

public abstract TransactionOptions.ReadWrite.ReadLockMode getReadLockMode()

The read lock mode used for the read-write transaction.

.google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode read_lock_mode = 8;

Returns
Type Description
TransactionOptions.ReadWrite.ReadLockMode

The readLockMode.

getReadLockModeValue()

public abstract int getReadLockModeValue()

The read lock mode used for the read-write transaction.

.google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode read_lock_mode = 8;

Returns
Type Description
int

The enum numeric value on the wire for readLockMode.

getSnapshotTimestamp()

public abstract 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
Type Description
Timestamp

The snapshotTimestamp.

getSnapshotTimestampOrBuilder()

public abstract 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;

Returns
Type Description
TimestampOrBuilder

hasCacheUpdate()

public abstract 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
Type Description
boolean

Whether the cacheUpdate field is set.

hasCommitStats()

public abstract boolean hasCommitStats()

The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.

.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;

Returns
Type Description
boolean

Whether the commitStats field is set.

hasCommitTimestamp()

public abstract boolean hasCommitTimestamp()

The Cloud Spanner timestamp at which the transaction committed.

.google.protobuf.Timestamp commit_timestamp = 1;

Returns
Type Description
boolean

Whether the commitTimestamp field is set.

hasPrecommitToken()

public abstract 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
Type Description
boolean

Whether the precommitToken field is set.

hasSnapshotTimestamp()

public abstract 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
Type Description
boolean

Whether the snapshotTimestamp field is set.