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