public static final class BatchWriteRequest.Builder extends GeneratedMessageV3.Builder<BatchWriteRequest.Builder> implements BatchWriteRequestOrBuilder
The request for BatchWrite.
Protobuf type google.spanner.v1.BatchWriteRequest
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
addAllMutationGroups(Iterable<? extends BatchWriteRequest.MutationGroup> values)
public BatchWriteRequest.Builder addAllMutationGroups(Iterable<? extends BatchWriteRequest.MutationGroup> values)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.spanner.v1.BatchWriteRequest.MutationGroup>
|
addMutationGroups(BatchWriteRequest.MutationGroup value)
public BatchWriteRequest.Builder addMutationGroups(BatchWriteRequest.MutationGroup value)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
addMutationGroups(BatchWriteRequest.MutationGroup.Builder builderForValue)
public BatchWriteRequest.Builder addMutationGroups(BatchWriteRequest.MutationGroup.Builder builderForValue)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
addMutationGroups(int index, BatchWriteRequest.MutationGroup value)
public BatchWriteRequest.Builder addMutationGroups(int index, BatchWriteRequest.MutationGroup value)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
addMutationGroups(int index, BatchWriteRequest.MutationGroup.Builder builderForValue)
public BatchWriteRequest.Builder addMutationGroups(int index, BatchWriteRequest.MutationGroup.Builder builderForValue)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
addMutationGroupsBuilder()
public BatchWriteRequest.MutationGroup.Builder addMutationGroupsBuilder()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
addMutationGroupsBuilder(int index)
public BatchWriteRequest.MutationGroup.Builder addMutationGroupsBuilder(int index)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchWriteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BatchWriteRequest build()
buildPartial()
public BatchWriteRequest buildPartial()
clear()
public BatchWriteRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchWriteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMutationGroups()
public BatchWriteRequest.Builder clearMutationGroups()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchWriteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRequestOptions()
public BatchWriteRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
clearSession()
public BatchWriteRequest.Builder clearSession()
Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public BatchWriteRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public BatchWriteRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutationGroups(int index)
public BatchWriteRequest.MutationGroup getMutationGroups(int index)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getMutationGroupsBuilder(int index)
public BatchWriteRequest.MutationGroup.Builder getMutationGroupsBuilder(int index)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getMutationGroupsBuilderList()
public List<BatchWriteRequest.MutationGroup.Builder> getMutationGroupsBuilderList()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getMutationGroupsCount()
public int getMutationGroupsCount()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | |
getMutationGroupsList()
public List<BatchWriteRequest.MutationGroup> getMutationGroupsList()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getMutationGroupsOrBuilder(int index)
public BatchWriteRequest.MutationGroupOrBuilder getMutationGroupsOrBuilder(int index)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
getMutationGroupsOrBuilderList()
public List<? extends BatchWriteRequest.MutationGroupOrBuilder> getMutationGroupsOrBuilderList()
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
List<? extends com.google.spanner.v1.BatchWriteRequest.MutationGroupOrBuilder> | |
getRequestOptions()
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
getRequestOptionsBuilder()
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
getRequestOptionsOrBuilder()
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
getSession()
public String getSession()
Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The session.
|
getSessionBytes()
public ByteString getSessionBytes()
Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for session.
|
hasRequestOptions()
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
Returns |
---|
Type | Description |
boolean | Whether the requestOptions field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public BatchWriteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchWriteRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(BatchWriteRequest other)
public BatchWriteRequest.Builder mergeFrom(BatchWriteRequest other)
mergeRequestOptions(RequestOptions value)
public BatchWriteRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchWriteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeMutationGroups(int index)
public BatchWriteRequest.Builder removeMutationGroups(int index)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchWriteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMutationGroups(int index, BatchWriteRequest.MutationGroup value)
public BatchWriteRequest.Builder setMutationGroups(int index, BatchWriteRequest.MutationGroup value)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
setMutationGroups(int index, BatchWriteRequest.MutationGroup.Builder builderForValue)
public BatchWriteRequest.Builder setMutationGroups(int index, BatchWriteRequest.MutationGroup.Builder builderForValue)
Required. The groups of mutations to be applied.
repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchWriteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRequestOptions(RequestOptions value)
public BatchWriteRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
setRequestOptions(RequestOptions.Builder builderForValue)
public BatchWriteRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
setSession(String value)
public BatchWriteRequest.Builder setSession(String value)
Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The session to set.
|
setSessionBytes(ByteString value)
public BatchWriteRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the batch request is to be run.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for session to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchWriteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides