Class DmlAction (6.58.0)

public final class DmlAction extends GeneratedMessageV3 implements DmlActionOrBuilder

A single DML statement.

Protobuf type google.spanner.executor.v1.DmlAction

Implements

DmlActionOrBuilder

Static Fields

AUTOCOMMIT_IF_SUPPORTED_FIELD_NUMBER

public static final int AUTOCOMMIT_IF_SUPPORTED_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_FIELD_NUMBER

public static final int UPDATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DmlAction getDefaultInstance()
Returns
TypeDescription
DmlAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DmlAction.Builder newBuilder()
Returns
TypeDescription
DmlAction.Builder

newBuilder(DmlAction prototype)

public static DmlAction.Builder newBuilder(DmlAction prototype)
Parameter
NameDescription
prototypeDmlAction
Returns
TypeDescription
DmlAction.Builder

parseDelimitedFrom(InputStream input)

public static DmlAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DmlAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DmlAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DmlAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DmlAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DmlAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DmlAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DmlAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DmlAction> parser()
Returns
TypeDescription
Parser<DmlAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<DmlAction> getParserForType()
Returns
TypeDescription
Parser<DmlAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUpdate()

public QueryAction getUpdate()

DML statement.

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

Returns
TypeDescription
QueryAction

The update.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DmlAction.Builder newBuilderForType()
Returns
TypeDescription
DmlAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DmlAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DmlAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DmlAction.Builder toBuilder()
Returns
TypeDescription
DmlAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException