public static final class BatchWriteRequest.MutationGroup.Builder extends GeneratedMessage.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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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
|
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];
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];
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];
addMutationsBuilder()
public Mutation.Builder addMutationsBuilder()
Required. The mutations in this group.
repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
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
|
build()
public BatchWriteRequest.MutationGroup build()
buildPartial()
public BatchWriteRequest.MutationGroup buildPartial()
clear()
public BatchWriteRequest.MutationGroup.Builder clear()
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];
getDefaultInstanceForType()
public BatchWriteRequest.MutationGroup getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getMutationsBuilderList()
public List<Mutation.Builder> getMutationsBuilderList()
Required. The mutations in this group.
repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
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];
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
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public BatchWriteRequest.MutationGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchWriteRequest.MutationGroup.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(BatchWriteRequest.MutationGroup other)
public BatchWriteRequest.MutationGroup.Builder mergeFrom(BatchWriteRequest.MutationGroup other)
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
|
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];
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];