Class CommitResponse.CommitStats.Builder (6.51.0)

public static final class CommitResponse.CommitStats.Builder extends GeneratedMessageV3.Builder<CommitResponse.CommitStats.Builder> implements CommitResponse.CommitStatsOrBuilder

Additional statistics about a commit.

Protobuf type google.spanner.v1.CommitResponse.CommitStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.CommitStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

build()

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

buildPartial()

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

clear()

public CommitResponse.CommitStats.Builder clear()
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CommitResponse.CommitStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

clearMutationCount()

public CommitResponse.CommitStats.Builder clearMutationCount()

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
CommitResponse.CommitStats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitResponse.CommitStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

clone()

public CommitResponse.CommitStats.Builder clone()
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommitResponse.CommitStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommitResponse.CommitStats.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

mergeFrom(CommitResponse.CommitStats other)

public CommitResponse.CommitStats.Builder mergeFrom(CommitResponse.CommitStats other)
Parameter
NameDescription
otherCommitResponse.CommitStats
Returns
TypeDescription
CommitResponse.CommitStats.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.CommitStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CommitResponse.CommitStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

setMutationCount(long value)

public CommitResponse.CommitStats.Builder setMutationCount(long value)

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;

Parameter
NameDescription
valuelong

The mutationCount to set.

Returns
TypeDescription
CommitResponse.CommitStats.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CommitResponse.CommitStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommitResponse.CommitStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitResponse.CommitStats.Builder
Overrides