public static final class DmlAction.Builder extends GeneratedMessage.Builder<DmlAction.Builder> implements DmlActionOrBuilderA single DML statement.
Protobuf type google.spanner.executor.v1.DmlAction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DmlAction.BuilderImplements
DmlActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DmlAction build()| Returns | |
|---|---|
| Type | Description |
DmlAction |
|
buildPartial()
public DmlAction buildPartial()| Returns | |
|---|---|
| Type | Description |
DmlAction |
|
clear()
public DmlAction.Builder clear()| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
clearAutocommitIfSupported()
public DmlAction.Builder clearAutocommitIfSupported()Whether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.
optional bool autocommit_if_supported = 2;
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
This builder for chaining. |
clearLastStatement()
public DmlAction.Builder clearLastStatement()Whether to set this DML statement as the last statement in the transaction. The transaction should be committed after processing this DML statement.
optional bool last_statement = 3;
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
This builder for chaining. |
clearUpdate()
public DmlAction.Builder clearUpdate()DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
getAutocommitIfSupported()
public boolean getAutocommitIfSupported()Whether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.
optional bool autocommit_if_supported = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The autocommitIfSupported. |
getDefaultInstanceForType()
public DmlAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DmlAction |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLastStatement()
public boolean getLastStatement()Whether to set this DML statement as the last statement in the transaction. The transaction should be committed after processing this DML statement.
optional bool last_statement = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
The lastStatement. |
getUpdate()
public QueryAction getUpdate()DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Returns | |
|---|---|
| Type | Description |
QueryAction |
The update. |
getUpdateBuilder()
public QueryAction.Builder getUpdateBuilder()DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Returns | |
|---|---|
| Type | Description |
QueryAction.Builder |
|
getUpdateOrBuilder()
public QueryActionOrBuilder getUpdateOrBuilder()DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Returns | |
|---|---|
| Type | Description |
QueryActionOrBuilder |
|
hasAutocommitIfSupported()
public boolean hasAutocommitIfSupported()Whether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.
optional bool autocommit_if_supported = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autocommitIfSupported field is set. |
hasLastStatement()
public boolean hasLastStatement()Whether to set this DML statement as the last statement in the transaction. The transaction should be committed after processing this DML statement.
optional bool last_statement = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastStatement field is set. |
hasUpdate()
public boolean hasUpdate()DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the update 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 DmlAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DmlAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
mergeFrom(DmlAction other)
public DmlAction.Builder mergeFrom(DmlAction other)| Parameter | |
|---|---|
| Name | Description |
other |
DmlAction |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
mergeUpdate(QueryAction value)
public DmlAction.Builder mergeUpdate(QueryAction value)DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
QueryAction |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
setAutocommitIfSupported(boolean value)
public DmlAction.Builder setAutocommitIfSupported(boolean value)Whether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.
optional bool autocommit_if_supported = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe autocommitIfSupported to set. |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
This builder for chaining. |
setLastStatement(boolean value)
public DmlAction.Builder setLastStatement(boolean value)Whether to set this DML statement as the last statement in the transaction. The transaction should be committed after processing this DML statement.
optional bool last_statement = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe lastStatement to set. |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
This builder for chaining. |
setUpdate(QueryAction value)
public DmlAction.Builder setUpdate(QueryAction value)DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
QueryAction |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|
setUpdate(QueryAction.Builder builderForValue)
public DmlAction.Builder setUpdate(QueryAction.Builder builderForValue)DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
QueryAction.Builder |
| Returns | |
|---|---|
| Type | Description |
DmlAction.Builder |
|