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
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 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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchWriteRequest.MutationGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overridesbuild()
public BatchWriteRequest.MutationGroup build()
buildPartial()
public BatchWriteRequest.MutationGroup buildPartial()
clear()
public BatchWriteRequest.MutationGroup.Builder clear()
OverridesclearField(Descriptors.FieldDescriptor field)
public BatchWriteRequest.MutationGroup.Builder clearField(Descriptors.FieldDescriptor field)
OverridesclearMutations()
public BatchWriteRequest.MutationGroup.Builder clearMutations()
Required. The mutations in this group.
repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchWriteRequest.MutationGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overridesclone()
public BatchWriteRequest.MutationGroup.Builder clone()
OverridesgetDefaultInstanceForType()
public BatchWriteRequest.MutationGroup getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
OverridesgetMutations(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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
OverridesisInitialized()
public final boolean isInitialized()
Overridespublic BatchWriteRequest.MutationGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
OverridesmergeFrom(Message other)
public BatchWriteRequest.MutationGroup.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
OverridesmergeFrom(BatchWriteRequest.MutationGroup other)
public BatchWriteRequest.MutationGroup.Builder mergeFrom(BatchWriteRequest.MutationGroup other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchWriteRequest.MutationGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
OverridesremoveMutations(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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchWriteRequest.MutationGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
OverridessetMutations(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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchWriteRequest.MutationGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
OverridessetUnknownFields(UnknownFieldSet unknownFields)
public final BatchWriteRequest.MutationGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides