Class BatchWriteRequest.MutationGroup.Builder (6.52.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.v1.Mutation>
Returns
TypeDescription
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
NameDescription
valueMutation
Returns
TypeDescription
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
NameDescription
builderForValueMutation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMutation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMutation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Mutation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchWriteRequest.MutationGroup build()
Returns
TypeDescription
BatchWriteRequest.MutationGroup

buildPartial()

public BatchWriteRequest.MutationGroup buildPartial()
Returns
TypeDescription
BatchWriteRequest.MutationGroup

clear()

public BatchWriteRequest.MutationGroup.Builder clear()
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchWriteRequest.MutationGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BatchWriteRequest.MutationGroup.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchWriteRequest.MutationGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder
Overrides

clone()

public BatchWriteRequest.MutationGroup.Builder clone()
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder
Overrides

getDefaultInstanceForType()

public BatchWriteRequest.MutationGroup getDefaultInstanceForType()
Returns
TypeDescription
BatchWriteRequest.MutationGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.spanner.v1.MutationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BatchWriteRequest.MutationGroup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder
Overrides

mergeFrom(BatchWriteRequest.MutationGroup other)

public BatchWriteRequest.MutationGroup.Builder mergeFrom(BatchWriteRequest.MutationGroup other)
Parameter
NameDescription
otherBatchWriteRequest.MutationGroup
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteRequest.MutationGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchWriteRequest.MutationGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMutation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMutation.Builder
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchWriteRequest.MutationGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchWriteRequest.MutationGroup.Builder
Overrides