Class ExecuteBatchDmlRequest.Builder (6.77.0)

public static final class ExecuteBatchDmlRequest.Builder extends GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Builder> implements ExecuteBatchDmlRequestOrBuilder

The request for ExecuteBatchDml.

Protobuf type google.spanner.v1.ExecuteBatchDmlRequest

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExecuteBatchDmlRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExecuteBatchDmlRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExecuteBatchDmlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns