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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CommitResponse.CommitStats.BuilderImplements
CommitResponse.CommitStatsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitResponse.CommitStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
build()
public CommitResponse.CommitStats build()
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats |
buildPartial()
public CommitResponse.CommitStats buildPartial()
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats |
clear()
public CommitResponse.CommitStats.Builder clear()
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
clearField(Descriptors.FieldDescriptor field)
public CommitResponse.CommitStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
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 | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitResponse.CommitStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
clone()
public CommitResponse.CommitStats.Builder clone()
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
getDefaultInstanceForType()
public CommitResponse.CommitStats getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
long | The mutationCount. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommitResponse.CommitStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CommitResponse.CommitStats.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
mergeFrom(CommitResponse.CommitStats other)
public CommitResponse.CommitStats.Builder mergeFrom(CommitResponse.CommitStats other)
Parameter | |
---|---|
Name | Description |
other | CommitResponse.CommitStats |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommitResponse.CommitStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CommitResponse.CommitStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
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 | |
---|---|
Name | Description |
value | long The mutationCount to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CommitResponse.CommitStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CommitResponse.CommitStats.Builder |