public static final class DmlAction.Builder extends GeneratedMessageV3.Builder<DmlAction.Builder> implements DmlActionOrBuilder
A single DML statement.
Protobuf type google.spanner.executor.v1.DmlAction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DmlAction.BuilderImplements
DmlActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DmlAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
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. |
clearField(Descriptors.FieldDescriptor field)
public DmlAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DmlAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
clearUpdate()
public DmlAction.Builder clearUpdate()
DML statement.
.google.spanner.executor.v1.QueryAction update = 1;
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
clone()
public DmlAction.Builder clone()
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 |
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. |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DmlAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
boolean The autocommitIfSupported to set. |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DmlAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DmlAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DmlAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DmlAction.Builder |
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 |