Class FinishTransactionAction (6.56.0)

public final class FinishTransactionAction extends GeneratedMessageV3 implements FinishTransactionActionOrBuilder

FinishTransactionAction defines an action of finishing a transaction.

Protobuf type google.spanner.executor.v1.FinishTransactionAction

Static Fields

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FinishTransactionAction getDefaultInstance()
Returns
TypeDescription
FinishTransactionAction

getDescriptor()

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

newBuilder()

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

newBuilder(FinishTransactionAction prototype)

public static FinishTransactionAction.Builder newBuilder(FinishTransactionAction prototype)
Parameter
NameDescription
prototypeFinishTransactionAction
Returns
TypeDescription
FinishTransactionAction.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FinishTransactionAction getDefaultInstanceForType()
Returns
TypeDescription
FinishTransactionAction

getMode()

public FinishTransactionAction.Mode getMode()

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Returns
TypeDescription
FinishTransactionAction.Mode

The mode.

getModeValue()

public int getModeValue()

Defines how exactly the transaction should be completed, e.g. with commit or abortion.

.google.spanner.executor.v1.FinishTransactionAction.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 FinishTransactionAction.Builder newBuilderForType()
Returns
TypeDescription
FinishTransactionAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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