Package com.google.spanner.v1
Class CommitResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
com.google.spanner.v1.CommitResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommitResponseOrBuilder,Cloneable
- Enclosing class:
- CommitResponse
public static final class CommitResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
implements CommitResponseOrBuilder
The response for [Commit][google.spanner.v1.Spanner.Commit].Protobuf type
google.spanner.v1.CommitResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The statistics about this `Commit`.The Cloud Spanner timestamp at which the transaction committed.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If specified, transaction has not committed yet.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.clone()The statistics about this `Commit`.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.Timestamp.BuilderThe Cloud Spanner timestamp at which the transaction committed.com.google.protobuf.TimestampOrBuilderThe Cloud Spanner timestamp at which the transaction committed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf specified, transaction has not committed yet.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.Timestamp.BuilderIf `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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe statistics about this `Commit`.mergeCommitTimestamp(com.google.protobuf.Timestamp value) The Cloud Spanner timestamp at which the transaction committed.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CommitResponse other) If specified, transaction has not committed yet.mergeSnapshotTimestamp(com.google.protobuf.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.final CommitResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The statistics about this `Commit`.setCommitStats(CommitResponse.CommitStats.Builder builderForValue) The statistics about this `Commit`.setCommitTimestamp(com.google.protobuf.Timestamp value) The Cloud Spanner timestamp at which the transaction committed.setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The Cloud Spanner timestamp at which the transaction committed.If specified, transaction has not committed yet.setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue) If specified, transaction has not committed yet.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSnapshotTimestamp(com.google.protobuf.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.setSnapshotTimestamp(com.google.protobuf.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.final CommitResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setField
public CommitResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setRepeatedField
public CommitResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
addRepeatedField
public CommitResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>- Throws:
IOException
-
getMultiplexedSessionRetryCase
- Specified by:
getMultiplexedSessionRetryCasein interfaceCommitResponseOrBuilder
-
clearMultiplexedSessionRetry
-
hasCommitTimestamp
public boolean hasCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
hasCommitTimestampin interfaceCommitResponseOrBuilder- Returns:
- Whether the commitTimestamp field is set.
-
getCommitTimestamp
public com.google.protobuf.Timestamp getCommitTimestamp()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
getCommitTimestampin interfaceCommitResponseOrBuilder- Returns:
- The commitTimestamp.
-
setCommitTimestamp
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
setCommitTimestamp
public CommitResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
mergeCommitTimestamp
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
clearCommitTimestamp
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
getCommitTimestampBuilder
public com.google.protobuf.Timestamp.Builder getCommitTimestampBuilder()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1; -
getCommitTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getCommitTimestampOrBuilder()The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;- Specified by:
getCommitTimestampOrBuilderin interfaceCommitResponseOrBuilder
-
hasCommitStats
public 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;- Specified by:
hasCommitStatsin interfaceCommitResponseOrBuilder- Returns:
- Whether the commitStats field is set.
-
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;- Specified by:
getCommitStatsin interfaceCommitResponseOrBuilder- Returns:
- The commitStats.
-
setCommitStats
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; -
setCommitStats
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; -
mergeCommitStats
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; -
clearCommitStats
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; -
getCommitStatsBuilder
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; -
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;- Specified by:
getCommitStatsOrBuilderin interfaceCommitResponseOrBuilder
-
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;- Specified by:
hasPrecommitTokenin interfaceCommitResponseOrBuilder- Returns:
- Whether the precommitToken field is set.
-
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;- Specified by:
getPrecommitTokenin interfaceCommitResponseOrBuilder- Returns:
- The precommitToken.
-
setPrecommitToken
If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4; -
setPrecommitToken
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; -
mergePrecommitToken
If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 4; -
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; -
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; -
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;- Specified by:
getPrecommitTokenOrBuilderin interfaceCommitResponseOrBuilder
-
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;- Specified by:
hasSnapshotTimestampin interfaceCommitResponseOrBuilder- Returns:
- Whether the snapshotTimestamp field is set.
-
getSnapshotTimestamp
public 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;- Specified by:
getSnapshotTimestampin interfaceCommitResponseOrBuilder- Returns:
- The snapshotTimestamp.
-
setSnapshotTimestamp
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; -
setSnapshotTimestamp
public CommitResponse.Builder setSnapshotTimestamp(com.google.protobuf.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; -
mergeSnapshotTimestamp
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; -
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; -
getSnapshotTimestampBuilder
public com.google.protobuf.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; -
getSnapshotTimestampOrBuilder
public 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;- Specified by:
getSnapshotTimestampOrBuilderin interfaceCommitResponseOrBuilder
-
setUnknownFields
public final CommitResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeUnknownFields
public final CommitResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-