Class CommitResponse.CommitStats (6.50.0)

public static final class CommitResponse.CommitStats extends GeneratedMessageV3 implements CommitResponse.CommitStatsOrBuilder

Additional statistics about a commit.

Protobuf type google.spanner.v1.CommitResponse.CommitStats

Static Fields

MUTATION_COUNT_FIELD_NUMBER

public static final int MUTATION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CommitResponse.CommitStats getDefaultInstance()
Returns
TypeDescription
CommitResponse.CommitStats

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CommitResponse.CommitStats.Builder newBuilder()
Returns
TypeDescription
CommitResponse.CommitStats.Builder

newBuilder(CommitResponse.CommitStats prototype)

public static CommitResponse.CommitStats.Builder newBuilder(CommitResponse.CommitStats prototype)
Parameter
NameDescription
prototypeCommitResponse.CommitStats
Returns
TypeDescription
CommitResponse.CommitStats.Builder

parseDelimitedFrom(InputStream input)

public static CommitResponse.CommitStats parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CommitResponse.CommitStats parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CommitResponse.CommitStats parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CommitResponse.CommitStats parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CommitResponse.CommitStats parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CommitResponse.CommitStats parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CommitResponse.CommitStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CommitResponse.CommitStats> parser()
Returns
TypeDescription
Parser<CommitStats>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CommitResponse.CommitStats getDefaultInstanceForType()
Returns
TypeDescription
CommitResponse.CommitStats

getMutationCount()

public long getMutationCount()

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit. If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

int64 mutation_count = 1;

Returns
TypeDescription
long

The mutationCount.

getParserForType()

public Parser<CommitResponse.CommitStats> getParserForType()
Returns
TypeDescription
Parser<CommitStats>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CommitResponse.CommitStats.Builder newBuilderForType()
Returns
TypeDescription
CommitResponse.CommitStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CommitResponse.CommitStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CommitResponse.CommitStats.Builder toBuilder()
Returns
TypeDescription
CommitResponse.CommitStats.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException