Class DmlAction.Builder (6.66.0)

public static final class DmlAction.Builder extends GeneratedMessageV3.Builder<DmlAction.Builder> implements DmlActionOrBuilder

A single DML statement.

Protobuf type google.spanner.executor.v1.DmlAction

Implements

DmlActionOrBuilder

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

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
Overrides

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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DmlAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DmlAction.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DmlAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DmlAction.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DmlAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DmlAction.Builder
Overrides

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