public static final class ExecuteBatchDmlRequest.Builder extends GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder> implements ExecuteBatchDmlRequestOrBuilder
The request for ExecuteBatchDml.
Protobuf type google.spanner.v1.ExecuteBatchDmlRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExecuteBatchDmlRequest.BuilderImplements
ExecuteBatchDmlRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllStatements(Iterable<? extends ExecuteBatchDmlRequest.Statement> values)
public ExecuteBatchDmlRequest.Builder addAllStatements(Iterable<? extends ExecuteBatchDmlRequest.Statement> values)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.v1.ExecuteBatchDmlRequest.Statement> |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExecuteBatchDmlRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addStatements(ExecuteBatchDmlRequest.Statement value)
public ExecuteBatchDmlRequest.Builder addStatements(ExecuteBatchDmlRequest.Statement value)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ExecuteBatchDmlRequest.Statement |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addStatements(ExecuteBatchDmlRequest.Statement.Builder builderForValue)
public ExecuteBatchDmlRequest.Builder addStatements(ExecuteBatchDmlRequest.Statement.Builder builderForValue)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
ExecuteBatchDmlRequest.Statement.Builder |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addStatements(int index, ExecuteBatchDmlRequest.Statement value)
public ExecuteBatchDmlRequest.Builder addStatements(int index, ExecuteBatchDmlRequest.Statement value)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ExecuteBatchDmlRequest.Statement |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addStatements(int index, ExecuteBatchDmlRequest.Statement.Builder builderForValue)
public ExecuteBatchDmlRequest.Builder addStatements(int index, ExecuteBatchDmlRequest.Statement.Builder builderForValue)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ExecuteBatchDmlRequest.Statement.Builder |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
addStatementsBuilder()
public ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Statement.Builder |
addStatementsBuilder(int index)
public ExecuteBatchDmlRequest.Statement.Builder addStatementsBuilder(int index)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Statement.Builder |
build()
public ExecuteBatchDmlRequest build()
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest |
buildPartial()
public ExecuteBatchDmlRequest buildPartial()
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest |
clear()
public ExecuteBatchDmlRequest.Builder clear()
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public ExecuteBatchDmlRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clearLastStatements()
public ExecuteBatchDmlRequest.Builder clearLastStatements()
Optional. If set to true, this request marks the end of the transaction. The transaction should be committed or aborted after these statements execute, and attempts to execute any other requests against this transaction (including reads and queries) will be rejected.
Setting this option may cause some error reporting to be deferred until commit time (e.g. validation of unique constraints). Given this, successful execution of statements should not be assumed until a subsequent Commit call completes successfully.
bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ExecuteBatchDmlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clearRequestOptions()
public ExecuteBatchDmlRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clearSeqno()
public ExecuteBatchDmlRequest.Builder clearSeqno()
Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed.
The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
clearSession()
public ExecuteBatchDmlRequest.Builder clearSession()
Required. The session in which the DML statements should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
clearStatements()
public ExecuteBatchDmlRequest.Builder clearStatements()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clearTransaction()
public ExecuteBatchDmlRequest.Builder clearTransaction()
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
clone()
public ExecuteBatchDmlRequest.Builder clone()
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
getDefaultInstanceForType()
public ExecuteBatchDmlRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLastStatements()
public boolean getLastStatements()
Optional. If set to true, this request marks the end of the transaction. The transaction should be committed or aborted after these statements execute, and attempts to execute any other requests against this transaction (including reads and queries) will be rejected.
Setting this option may cause some error reporting to be deferred until commit time (e.g. validation of unique constraints). Given this, successful execution of statements should not be assumed until a subsequent Commit call completes successfully.
bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The lastStatements. |
getRequestOptions()
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns | |
---|---|
Type | Description |
RequestOptions |
The requestOptions. |
getRequestOptionsBuilder()
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns | |
---|---|
Type | Description |
RequestOptions.Builder |
getRequestOptionsOrBuilder()
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns | |
---|---|
Type | Description |
RequestOptionsOrBuilder |
getSeqno()
public long getSeqno()
Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed.
The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
long |
The seqno. |
getSession()
public String getSession()
Required. The session in which the DML statements should be performed.
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 DML statements should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for session. |
getStatements(int index)
public ExecuteBatchDmlRequest.Statement getStatements(int index)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Statement |
getStatementsBuilder(int index)
public ExecuteBatchDmlRequest.Statement.Builder getStatementsBuilder(int index)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Statement.Builder |
getStatementsBuilderList()
public List<ExecuteBatchDmlRequest.Statement.Builder> getStatementsBuilderList()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<Builder> |
getStatementsCount()
public int getStatementsCount()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
getStatementsList()
public List<ExecuteBatchDmlRequest.Statement> getStatementsList()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<Statement> |
getStatementsOrBuilder(int index)
public ExecuteBatchDmlRequest.StatementOrBuilder getStatementsOrBuilder(int index)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.StatementOrBuilder |
getStatementsOrBuilderList()
public List<? extends ExecuteBatchDmlRequest.StatementOrBuilder> getStatementsOrBuilderList()
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<? extends com.google.spanner.v1.ExecuteBatchDmlRequest.StatementOrBuilder> |
getTransaction()
public TransactionSelector getTransaction()
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TransactionSelector |
The transaction. |
getTransactionBuilder()
public TransactionSelector.Builder getTransactionBuilder()
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TransactionSelector.Builder |
getTransactionOrBuilder()
public TransactionSelectorOrBuilder getTransactionOrBuilder()
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TransactionSelectorOrBuilder |
hasRequestOptions()
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the requestOptions field is set. |
hasTransaction()
public boolean hasTransaction()
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the transaction field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExecuteBatchDmlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ExecuteBatchDmlRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
mergeFrom(ExecuteBatchDmlRequest other)
public ExecuteBatchDmlRequest.Builder mergeFrom(ExecuteBatchDmlRequest other)
Parameter | |
---|---|
Name | Description |
other |
ExecuteBatchDmlRequest |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
mergeRequestOptions(RequestOptions value)
public ExecuteBatchDmlRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Parameter | |
---|---|
Name | Description |
value |
RequestOptions |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
mergeTransaction(TransactionSelector value)
public ExecuteBatchDmlRequest.Builder mergeTransaction(TransactionSelector value)
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
TransactionSelector |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExecuteBatchDmlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
removeStatements(int index)
public ExecuteBatchDmlRequest.Builder removeStatements(int index)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ExecuteBatchDmlRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setLastStatements(boolean value)
public ExecuteBatchDmlRequest.Builder setLastStatements(boolean value)
Optional. If set to true, this request marks the end of the transaction. The transaction should be committed or aborted after these statements execute, and attempts to execute any other requests against this transaction (including reads and queries) will be rejected.
Setting this option may cause some error reporting to be deferred until commit time (e.g. validation of unique constraints). Given this, successful execution of statements should not be assumed until a subsequent Commit call completes successfully.
bool last_statements = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The lastStatements to set. |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExecuteBatchDmlRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setRequestOptions(RequestOptions value)
public ExecuteBatchDmlRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Parameter | |
---|---|
Name | Description |
value |
RequestOptions |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setRequestOptions(RequestOptions.Builder builderForValue)
public ExecuteBatchDmlRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
RequestOptions.Builder |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setSeqno(long value)
public ExecuteBatchDmlRequest.Builder setSeqno(long value)
Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed.
The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
int64 seqno = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
long The seqno to set. |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
setSession(String value)
public ExecuteBatchDmlRequest.Builder setSession(String value)
Required. The session in which the DML statements should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The session to set. |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
setSessionBytes(ByteString value)
public ExecuteBatchDmlRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the DML statements should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for session to set. |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
This builder for chaining. |
setStatements(int index, ExecuteBatchDmlRequest.Statement value)
public ExecuteBatchDmlRequest.Builder setStatements(int index, ExecuteBatchDmlRequest.Statement value)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ExecuteBatchDmlRequest.Statement |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setStatements(int index, ExecuteBatchDmlRequest.Statement.Builder builderForValue)
public ExecuteBatchDmlRequest.Builder setStatements(int index, ExecuteBatchDmlRequest.Statement.Builder builderForValue)
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i
are visible to
statement i+1
. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed.
Callers must provide at least one statement.
repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ExecuteBatchDmlRequest.Statement.Builder |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setTransaction(TransactionSelector value)
public ExecuteBatchDmlRequest.Builder setTransaction(TransactionSelector value)
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
TransactionSelector |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setTransaction(TransactionSelector.Builder builderForValue)
public ExecuteBatchDmlRequest.Builder setTransaction(TransactionSelector.Builder builderForValue)
Required. The transaction to use. Must be a read-write transaction.
To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.
.google.spanner.v1.TransactionSelector transaction = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
TransactionSelector.Builder |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExecuteBatchDmlRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ExecuteBatchDmlRequest.Builder |