public static final class CommitResponse.Builder extends GeneratedMessage.Builder<CommitResponse.Builder> implements CommitResponseOrBuilderThe response for Commit.
Protobuf type google.spanner.v1.CommitResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CommitResponse.BuilderImplements
CommitResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CommitResponse build()| Returns | |
|---|---|
| Type | Description |
CommitResponse |
|
buildPartial()
public CommitResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
CommitResponse |
|
clear()
public CommitResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
clearCacheUpdate()
public CommitResponse.Builder clearCacheUpdate() 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 |
CommitResponse.Builder |
|
clearCommitStats()
public CommitResponse.Builder clearCommitStats() 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.Builder |
|
clearCommitTimestamp()
public CommitResponse.Builder clearCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
clearMultiplexedSessionRetry()
public CommitResponse.Builder clearMultiplexedSessionRetry()| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
clearPrecommitToken()
public CommitResponse.Builder clearPrecommitToken()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 |
CommitResponse.Builder |
|
clearSnapshotTimestamp()
public CommitResponse.Builder clearSnapshotTimestamp() 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 |
CommitResponse.Builder |
|
getCacheUpdate()
public 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. |
getCacheUpdateBuilder()
public CacheUpdate.Builder getCacheUpdateBuilder() 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.Builder |
|
getCacheUpdateOrBuilder()
public 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 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. |
getCommitStatsBuilder()
public CommitResponse.CommitStats.Builder getCommitStatsBuilder() 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.Builder |
|
getCommitStatsOrBuilder()
public 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 Timestamp getCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The commitTimestamp. |
getCommitTimestampBuilder()
public Timestamp.Builder getCommitTimestampBuilder()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCommitTimestampOrBuilder()
public TimestampOrBuilder getCommitTimestampOrBuilder()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public CommitResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CommitResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMultiplexedSessionRetryCase()
public CommitResponse.MultiplexedSessionRetryCase getMultiplexedSessionRetryCase()| Returns | |
|---|---|
| Type | Description |
CommitResponse.MultiplexedSessionRetryCase |
|
getPrecommitToken()
public 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. |
getPrecommitTokenBuilder()
public MultiplexedSessionPrecommitToken.Builder getPrecommitTokenBuilder()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.Builder |
|
getPrecommitTokenOrBuilder()
public 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 |
|
getSnapshotTimestamp()
public 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. |
getSnapshotTimestampBuilder()
public Timestamp.Builder getSnapshotTimestampBuilder() 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 |
Builder |
|
getSnapshotTimestampOrBuilder()
public 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 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCacheUpdate(CacheUpdate value)
public CommitResponse.Builder mergeCacheUpdate(CacheUpdate value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
CacheUpdate |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergeCommitStats(CommitResponse.CommitStats value)
public CommitResponse.Builder mergeCommitStats(CommitResponse.CommitStats value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
CommitResponse.CommitStats |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergeCommitTimestamp(Timestamp value)
public CommitResponse.Builder mergeCommitTimestamp(Timestamp value)The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommitResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CommitResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergeFrom(CommitResponse other)
public CommitResponse.Builder mergeFrom(CommitResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
CommitResponse |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergePrecommitToken(MultiplexedSessionPrecommitToken value)
public CommitResponse.Builder mergePrecommitToken(MultiplexedSessionPrecommitToken value)If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
MultiplexedSessionPrecommitToken |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
mergeSnapshotTimestamp(Timestamp value)
public CommitResponse.Builder mergeSnapshotTimestamp(Timestamp value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCacheUpdate(CacheUpdate value)
public CommitResponse.Builder setCacheUpdate(CacheUpdate value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
CacheUpdate |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCacheUpdate(CacheUpdate.Builder builderForValue)
public CommitResponse.Builder setCacheUpdate(CacheUpdate.Builder builderForValue) 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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CacheUpdate.Builder |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCommitStats(CommitResponse.CommitStats value)
public CommitResponse.Builder setCommitStats(CommitResponse.CommitStats value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
CommitResponse.CommitStats |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCommitStats(CommitResponse.CommitStats.Builder builderForValue)
public CommitResponse.Builder setCommitStats(CommitResponse.CommitStats.Builder builderForValue) 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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CommitResponse.CommitStats.Builder |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCommitTimestamp(Timestamp value)
public CommitResponse.Builder setCommitTimestamp(Timestamp value)The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setCommitTimestamp(Timestamp.Builder builderForValue)
public CommitResponse.Builder setCommitTimestamp(Timestamp.Builder builderForValue)The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setPrecommitToken(MultiplexedSessionPrecommitToken value)
public CommitResponse.Builder setPrecommitToken(MultiplexedSessionPrecommitToken value)If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
MultiplexedSessionPrecommitToken |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
public CommitResponse.Builder setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MultiplexedSessionPrecommitToken.Builder |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setSnapshotTimestamp(Timestamp value)
public CommitResponse.Builder setSnapshotTimestamp(Timestamp value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|
setSnapshotTimestamp(Timestamp.Builder builderForValue)
public CommitResponse.Builder setSnapshotTimestamp(Timestamp.Builder builderForValue) 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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CommitResponse.Builder |
|