public static final class CommitRequest.Builder extends GeneratedMessageV3.Builder<CommitRequest.Builder> implements CommitRequestOrBuilder
The request for Commit.
Protobuf type google.spanner.v1.CommitRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllMutations(Iterable<? extends Mutation> values)
public CommitRequest.Builder addAllMutations(Iterable<? extends Mutation> values)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.spanner.v1.Mutation>
|
addMutations(Mutation value)
public CommitRequest.Builder addMutations(Mutation value)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
Parameter |
Name |
Description |
value |
Mutation
|
addMutations(Mutation.Builder builderForValue)
public CommitRequest.Builder addMutations(Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
addMutations(int index, Mutation value)
public CommitRequest.Builder addMutations(int index, Mutation value)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
addMutations(int index, Mutation.Builder builderForValue)
public CommitRequest.Builder addMutations(int index, Mutation.Builder builderForValue)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
addMutationsBuilder()
public Mutation.Builder addMutationsBuilder()
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
addMutationsBuilder(int index)
public Mutation.Builder addMutationsBuilder(int index)
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CommitRequest build()
buildPartial()
public CommitRequest buildPartial()
clear()
public CommitRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CommitRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMaxCommitDelay()
public CommitRequest.Builder clearMaxCommitDelay()
Optional. The amount of latency this request is willing to incur in order
to improve throughput. If this field is not set, Spanner assumes requests
are relatively latency sensitive and automatically determines an
appropriate delay time. You can specify a batching delay value between 0
and 500 ms.
.google.protobuf.Duration max_commit_delay = 8 [(.google.api.field_behavior) = OPTIONAL];
clearMutations()
public CommitRequest.Builder clearMutations()
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.
repeated .google.spanner.v1.Mutation mutations = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRequestOptions()
public CommitRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 6;
clearReturnCommitStats()
public CommitRequest.Builder clearReturnCommitStats()
If true
, then statistics related to the transaction will be included in
the CommitResponse.
Default value is false
.
bool return_commit_stats = 5;