Class BatchWriteRequest.MutationGroup.Builder (6.65.1)

public static final class BatchWriteRequest.MutationGroup.Builder extends GeneratedMessageV3.Builder<BatchWriteRequest.MutationGroup.Builder> implements BatchWriteRequest.MutationGroupOrBuilder

A group of mutations to be committed together. Related mutations should be placed in a group. For example, two mutations inserting rows with the same primary key prefix in both parent and child tables are related.

Protobuf type google.spanner.v1.BatchWriteRequest.MutationGroup

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMutations(Iterable<? extends Mutation> values)

public BatchWriteRequest.MutationGroup.Builder addAllMutations(Iterable<? extends Mutation> values)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Mutation>
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

addMutations(Mutation value)

public BatchWriteRequest.MutationGroup.Builder addMutations(Mutation value)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Mutation
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

addMutations(Mutation.Builder builderForValue)

public BatchWriteRequest.MutationGroup.Builder addMutations(Mutation.Builder builderForValue)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Mutation.Builder
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

addMutations(int index, Mutation value)

public BatchWriteRequest.MutationGroup.Builder addMutations(int index, Mutation value)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Mutation
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

addMutations(int index, Mutation.Builder builderForValue)

public BatchWriteRequest.MutationGroup.Builder addMutations(int index, Mutation.Builder builderForValue)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Mutation.Builder
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

addMutationsBuilder()

public Mutation.Builder addMutationsBuilder()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Mutation.Builder

addMutationsBuilder(int index)

public Mutation.Builder addMutationsBuilder(int index)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Mutation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteRequest.MutationGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

build()

public BatchWriteRequest.MutationGroup build()
Returns
Type Description
BatchWriteRequest.MutationGroup

buildPartial()

public BatchWriteRequest.MutationGroup buildPartial()
Returns
Type Description
BatchWriteRequest.MutationGroup

clear()

public BatchWriteRequest.MutationGroup.Builder clear()
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchWriteRequest.MutationGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

clearMutations()

public BatchWriteRequest.MutationGroup.Builder clearMutations()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchWriteRequest.MutationGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

clone()

public BatchWriteRequest.MutationGroup.Builder clone()
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

getDefaultInstanceForType()

public BatchWriteRequest.MutationGroup getDefaultInstanceForType()
Returns
Type Description
BatchWriteRequest.MutationGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutations(int index)

public Mutation getMutations(int index)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Mutation

getMutationsBuilder(int index)

public Mutation.Builder getMutationsBuilder(int index)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Mutation.Builder

getMutationsBuilderList()

public List<Mutation.Builder> getMutationsBuilderList()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getMutationsCount()

public int getMutationsCount()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getMutationsList()

public List<Mutation> getMutationsList()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Mutation>

getMutationsOrBuilder(int index)

public MutationOrBuilder getMutationsOrBuilder(int index)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
MutationOrBuilder

getMutationsOrBuilderList()

public List<? extends MutationOrBuilder> getMutationsOrBuilderList()

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.spanner.v1.MutationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchWriteRequest.MutationGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchWriteRequest.MutationGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

mergeFrom(BatchWriteRequest.MutationGroup other)

public BatchWriteRequest.MutationGroup.Builder mergeFrom(BatchWriteRequest.MutationGroup other)
Parameter
Name Description
other BatchWriteRequest.MutationGroup
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteRequest.MutationGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

removeMutations(int index)

public BatchWriteRequest.MutationGroup.Builder removeMutations(int index)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteRequest.MutationGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

setMutations(int index, Mutation value)

public BatchWriteRequest.MutationGroup.Builder setMutations(int index, Mutation value)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Mutation
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

setMutations(int index, Mutation.Builder builderForValue)

public BatchWriteRequest.MutationGroup.Builder setMutations(int index, Mutation.Builder builderForValue)

Required. The mutations in this group.

repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Mutation.Builder
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder

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

public BatchWriteRequest.MutationGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteRequest.MutationGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchWriteRequest.MutationGroup.Builder
Overrides