public static final class BatchWriteRequest.Builder extends GeneratedMessage.Builder<BatchWriteRequest.Builder> implements BatchWriteRequestOrBuilderThe request for BatchWrite.
Protobuf type google.spanner.v1.BatchWriteRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchWriteRequest.BuilderImplements
BatchWriteRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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> |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
value |
BatchWriteRequest.MutationGroup |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BatchWriteRequest.MutationGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BatchWriteRequest.MutationGroup |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BatchWriteRequest.MutationGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.MutationGroup.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.MutationGroup.Builder |
|
build()
public BatchWriteRequest build()| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest |
|
buildPartial()
public BatchWriteRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest |
|
clear()
public BatchWriteRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
clearExcludeTxnFromChangeStreams()
public BatchWriteRequest.Builder clearExcludeTxnFromChangeStreams() Optional. If you don't set the exclude_txn_from_change_streams option or
if it's set to false, then any change streams monitoring columns modified
by transactions will capture the updates made within that transaction.
bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
clearRequestOptions()
public BatchWriteRequest.Builder clearRequestOptions()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BatchWriteRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExcludeTxnFromChangeStreams()
public boolean getExcludeTxnFromChangeStreams() Optional. If you don't set the exclude_txn_from_change_streams option or
if it's set to false, then any change streams monitoring columns modified
by transactions will capture the updates made within that transaction.
bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The excludeTxnFromChangeStreams. |
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 |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.MutationGroup |
|
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 |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.MutationGroup.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<MutationGroup> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.MutationGroupOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
RequestOptions |
The requestOptions. |
getRequestOptionsBuilder()
public RequestOptions.Builder getRequestOptionsBuilder()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Returns | |
|---|---|
| Type | Description |
RequestOptions.Builder |
|
getRequestOptionsOrBuilder()
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Returns | |
|---|---|
| Type | Description |
RequestOptionsOrBuilder |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchWriteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BatchWriteRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
mergeFrom(BatchWriteRequest other)
public BatchWriteRequest.Builder mergeFrom(BatchWriteRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
BatchWriteRequest |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
mergeRequestOptions(RequestOptions value)
public BatchWriteRequest.Builder mergeRequestOptions(RequestOptions value)Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
RequestOptions |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
setExcludeTxnFromChangeStreams(boolean value)
public BatchWriteRequest.Builder setExcludeTxnFromChangeStreams(boolean value) Optional. If you don't set the exclude_txn_from_change_streams option or
if it's set to false, then any change streams monitoring columns modified
by transactions will capture the updates made within that transaction.
bool exclude_txn_from_change_streams = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe excludeTxnFromChangeStreams to set. |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
This builder for chaining. |
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BatchWriteRequest.MutationGroup |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BatchWriteRequest.MutationGroup.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
setRequestOptions(RequestOptions value)
public BatchWriteRequest.Builder setRequestOptions(RequestOptions value)Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
RequestOptions |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
setRequestOptions(RequestOptions.Builder builderForValue)
public BatchWriteRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)Common options for this request.
.google.spanner.v1.RequestOptions request_options = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RequestOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
|
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 |
StringThe session to set. |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for session to set. |
| Returns | |
|---|---|
| Type | Description |
BatchWriteRequest.Builder |
This builder for chaining. |