public final class ExecuteBatchDmlRequest extends GeneratedMessageV3 implements ExecuteBatchDmlRequestOrBuilder
The request for ExecuteBatchDml.
Protobuf type google.spanner.v1.ExecuteBatchDmlRequest
Static Fields
REQUEST_OPTIONS_FIELD_NUMBER
public static final int REQUEST_OPTIONS_FIELD_NUMBER
Field Value
SEQNO_FIELD_NUMBER
public static final int SEQNO_FIELD_NUMBER
Field Value
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
Field Value
STATEMENTS_FIELD_NUMBER
public static final int STATEMENTS_FIELD_NUMBER
Field Value
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ExecuteBatchDmlRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ExecuteBatchDmlRequest.Builder newBuilder()
Returns
newBuilder(ExecuteBatchDmlRequest prototype)
public static ExecuteBatchDmlRequest.Builder newBuilder(ExecuteBatchDmlRequest prototype)
Parameter
Returns
public static ExecuteBatchDmlRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExecuteBatchDmlRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ExecuteBatchDmlRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExecuteBatchDmlRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ExecuteBatchDmlRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExecuteBatchDmlRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExecuteBatchDmlRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExecuteBatchDmlRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExecuteBatchDmlRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExecuteBatchDmlRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ExecuteBatchDmlRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExecuteBatchDmlRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ExecuteBatchDmlRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ExecuteBatchDmlRequest getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ExecuteBatchDmlRequest> getParserForType()
Returns
Overrides
getRequestOptions()
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns
getRequestOptionsOrBuilder()
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 5;
Returns
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.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
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
Returns
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
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
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
Returns
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
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ExecuteBatchDmlRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExecuteBatchDmlRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ExecuteBatchDmlRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions