Class TransactionExecutionOptions (6.68.0)

public final class TransactionExecutionOptions extends GeneratedMessageV3 implements TransactionExecutionOptionsOrBuilder

Options for executing the transaction.

Protobuf type google.spanner.executor.v1.TransactionExecutionOptions

Static Fields

OPTIMISTIC_FIELD_NUMBER

public static final int OPTIMISTIC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TransactionExecutionOptions getDefaultInstance()
Returns
Type Description
TransactionExecutionOptions

getDescriptor()

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

newBuilder()

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

newBuilder(TransactionExecutionOptions prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TransactionExecutionOptions getDefaultInstanceForType()
Returns
Type Description
TransactionExecutionOptions

getOptimistic()

public boolean getOptimistic()

Whether optimistic concurrency should be used to execute this transaction.

bool optimistic = 1;

Returns
Type Description
boolean

The optimistic.

getParserForType()

public Parser<TransactionExecutionOptions> getParserForType()
Returns
Type Description
Parser<TransactionExecutionOptions>
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 TransactionExecutionOptions.Builder newBuilderForType()
Returns
Type Description
TransactionExecutionOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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