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 typegoogle.spanner.v1.CommitResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommitResponse
build()
CommitResponse
buildPartial()
CommitResponse.Builder
clear()
CommitResponse.Builder
clearCommitStats()
The statistics about this Commit.CommitResponse.Builder
clearCommitTimestamp()
The Cloud Spanner timestamp at which the transaction committed.CommitResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CommitResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CommitResponse.Builder
clone()
CommitResponse.CommitStats
getCommitStats()
The statistics about this Commit.CommitResponse.CommitStats.Builder
getCommitStatsBuilder()
The statistics about this Commit.CommitResponse.CommitStatsOrBuilder
getCommitStatsOrBuilder()
The statistics about this Commit.com.google.protobuf.Timestamp
getCommitTimestamp()
The Cloud Spanner timestamp at which the transaction committed.com.google.protobuf.Timestamp.Builder
getCommitTimestampBuilder()
The Cloud Spanner timestamp at which the transaction committed.com.google.protobuf.TimestampOrBuilder
getCommitTimestampOrBuilder()
The Cloud Spanner timestamp at which the transaction committed.CommitResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
hasCommitStats()
The statistics about this Commit.boolean
hasCommitTimestamp()
The Cloud Spanner timestamp at which the transaction committed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CommitResponse.Builder
mergeCommitStats(CommitResponse.CommitStats value)
The statistics about this Commit.CommitResponse.Builder
mergeCommitTimestamp(com.google.protobuf.Timestamp value)
The Cloud Spanner timestamp at which the transaction committed.CommitResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CommitResponse.Builder
mergeFrom(com.google.protobuf.Message other)
CommitResponse.Builder
mergeFrom(CommitResponse other)
CommitResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CommitResponse.Builder
setCommitStats(CommitResponse.CommitStats value)
The statistics about this Commit.CommitResponse.Builder
setCommitStats(CommitResponse.CommitStats.Builder builderForValue)
The statistics about this Commit.CommitResponse.Builder
setCommitTimestamp(com.google.protobuf.Timestamp value)
The Cloud Spanner timestamp at which the transaction committed.CommitResponse.Builder
setCommitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The Cloud Spanner timestamp at which the transaction committed.CommitResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommitResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CommitResponse.Builder
setUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clear
public CommitResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDefaultInstanceForType
public CommitResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setField
public CommitResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearField
public CommitResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearOneof
public CommitResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setRepeatedField
public CommitResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
addRepeatedField
public CommitResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(CommitResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
- Throws:
IOException
-
hasCommitTimestamp
public boolean hasCommitTimestamp()
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
- Specified by:
hasCommitTimestamp
in 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:
getCommitTimestamp
in interfaceCommitResponseOrBuilder
- Returns:
- The commitTimestamp.
-
setCommitTimestamp
public CommitResponse.Builder setCommitTimestamp(com.google.protobuf.Timestamp value)
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
public CommitResponse.Builder mergeCommitTimestamp(com.google.protobuf.Timestamp value)
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
-
clearCommitTimestamp
public CommitResponse.Builder 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:
getCommitTimestampOrBuilder
in 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:
hasCommitStats
in interfaceCommitResponseOrBuilder
- Returns:
- Whether the commitStats field is set.
-
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
- Specified by:
getCommitStats
in interfaceCommitResponseOrBuilder
- Returns:
- The commitStats.
-
setCommitStats
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
-
setCommitStats
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
-
mergeCommitStats
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
-
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
-
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
-
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.CommitRequest.return_commit_stats].
.google.spanner.v1.CommitResponse.CommitStats commit_stats = 2;
- Specified by:
getCommitStatsOrBuilder
in interfaceCommitResponseOrBuilder
-
setUnknownFields
public final CommitResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeUnknownFields
public final CommitResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
-