Class DmlAction.Builder (6.57.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DmlAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DmlAction.Builder
Overrides

build()

public DmlAction build()
Returns
TypeDescription
DmlAction

buildPartial()

public DmlAction buildPartial()
Returns
TypeDescription
DmlAction

clear()

public DmlAction.Builder clear()
Returns
TypeDescription
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
TypeDescription
DmlAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DmlAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DmlAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DmlAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DmlAction.Builder
Overrides

clearUpdate()

public DmlAction.Builder clearUpdate()

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Returns
TypeDescription
DmlAction.Builder

clone()

public DmlAction.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The autocommitIfSupported.

getDefaultInstanceForType()

public DmlAction getDefaultInstanceForType()
Returns
TypeDescription
DmlAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdate()

public QueryAction getUpdate()

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Returns
TypeDescription
QueryAction

The update.

getUpdateBuilder()

public QueryAction.Builder getUpdateBuilder()

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Returns
TypeDescription
QueryAction.Builder

getUpdateOrBuilder()

public QueryActionOrBuilder getUpdateOrBuilder()

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the autocommitIfSupported field is set.

hasUpdate()

public boolean hasUpdate()

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Returns
TypeDescription
boolean

Whether the update field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DmlAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DmlAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DmlAction.Builder
Overrides

mergeFrom(DmlAction other)

public DmlAction.Builder mergeFrom(DmlAction other)
Parameter
NameDescription
otherDmlAction
Returns
TypeDescription
DmlAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DmlAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DmlAction.Builder
Overrides

mergeUpdate(QueryAction value)

public DmlAction.Builder mergeUpdate(QueryAction value)

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Parameter
NameDescription
valueQueryAction
Returns
TypeDescription
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
NameDescription
valueboolean

The autocommitIfSupported to set.

Returns
TypeDescription
DmlAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DmlAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DmlAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DmlAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DmlAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DmlAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DmlAction.Builder
Overrides

setUpdate(QueryAction value)

public DmlAction.Builder setUpdate(QueryAction value)

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Parameter
NameDescription
valueQueryAction
Returns
TypeDescription
DmlAction.Builder

setUpdate(QueryAction.Builder builderForValue)

public DmlAction.Builder setUpdate(QueryAction.Builder builderForValue)

DML statement.

.google.spanner.executor.v1.QueryAction update = 1;

Parameter
NameDescription
builderForValueQueryAction.Builder
Returns
TypeDescription
DmlAction.Builder