Class CloseBatchTransactionAction (6.74.0)

public final class CloseBatchTransactionAction extends GeneratedMessageV3 implements CloseBatchTransactionActionOrBuilder

Closes or cleans up the currently opened batch read-only transaction.

Once a transaction is closed, the Executor can be disposed of or used to start start another transaction. Closing a batch transaction in one Executor doesn't affect the transaction's state in other Executors that also read from it.

When a transaction is cleaned up, it becomes globally invalid. Cleaning up is optional, but recommended.

Protobuf type google.spanner.executor.v1.CloseBatchTransactionAction

Static Fields

CLEANUP_FIELD_NUMBER

public static final int CLEANUP_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CloseBatchTransactionAction getDefaultInstance()
Returns
Type Description
CloseBatchTransactionAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CloseBatchTransactionAction.Builder newBuilder()
Returns
Type Description
CloseBatchTransactionAction.Builder

newBuilder(CloseBatchTransactionAction prototype)

public static CloseBatchTransactionAction.Builder newBuilder(CloseBatchTransactionAction prototype)
Parameter
Name Description
prototype CloseBatchTransactionAction
Returns
Type Description
CloseBatchTransactionAction.Builder

parseDelimitedFrom(InputStream input)

public static CloseBatchTransactionAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloseBatchTransactionAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloseBatchTransactionAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloseBatchTransactionAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloseBatchTransactionAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloseBatchTransactionAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloseBatchTransactionAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloseBatchTransactionAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloseBatchTransactionAction> parser()
Returns
Type Description
Parser<CloseBatchTransactionAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCleanup()

public boolean getCleanup()

Indicates whether the transaction needs to be cleaned up.

bool cleanup = 1;

Returns
Type Description
boolean

The cleanup.

getDefaultInstanceForType()

public CloseBatchTransactionAction getDefaultInstanceForType()
Returns
Type Description
CloseBatchTransactionAction

getParserForType()

public Parser<CloseBatchTransactionAction> getParserForType()
Returns
Type Description
Parser<CloseBatchTransactionAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloseBatchTransactionAction.Builder newBuilderForType()
Returns
Type Description
CloseBatchTransactionAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloseBatchTransactionAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloseBatchTransactionAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloseBatchTransactionAction.Builder toBuilder()
Returns
Type Description
CloseBatchTransactionAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException