public final class CommitResponse extends GeneratedMessageV3 implements CommitResponseOrBuilder
The response for Commit.
Protobuf type google.spanner.v1.CommitResponse
Static Fields
COMMIT_STATS_FIELD_NUMBER
public static final int COMMIT_STATS_FIELD_NUMBER
Field Value
COMMIT_TIMESTAMP_FIELD_NUMBER
public static final int COMMIT_TIMESTAMP_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CommitResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CommitResponse.Builder newBuilder()
Returns
newBuilder(CommitResponse prototype)
public static CommitResponse.Builder newBuilder(CommitResponse prototype)
Parameter
Returns
public static CommitResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommitResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CommitResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CommitResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CommitResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CommitResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommitResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CommitResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommitResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommitResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CommitResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CommitResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CommitResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
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
getCommitTimestamp()
public Timestamp getCommitTimestamp()
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
Returns
getCommitTimestampOrBuilder()
public TimestampOrBuilder getCommitTimestampOrBuilder()
The Cloud Spanner timestamp at which the transaction committed.
.google.protobuf.Timestamp commit_timestamp = 1;
Returns
getDefaultInstanceForType()
public CommitResponse getDefaultInstanceForType()
Returns
getParserForType()
public Parser<CommitResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CommitResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CommitResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CommitResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions