Class TransactionExecutionOptions (6.116.0)

public final class TransactionExecutionOptions extends GeneratedMessage implements TransactionExecutionOptionsOrBuilder

Protobuf type google.spanner.executor.v1.TransactionExecutionOptions

Static Fields

EXCLUDE_FROM_CHANGE_STREAMS_FIELD_NUMBER

public static final int EXCLUDE_FROM_CHANGE_STREAMS_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDE_TXN_FROM_CHANGE_STREAMS_FIELD_NUMBER

public static final int EXCLUDE_TXN_FROM_CHANGE_STREAMS_FIELD_NUMBER
Field Value
Type Description
int

OPTIMISTIC_FIELD_NUMBER

public static final int OPTIMISTIC_FIELD_NUMBER
Field Value
Type Description
int

SERIALIZABLE_OPTIMISTIC_FIELD_NUMBER

public static final int SERIALIZABLE_OPTIMISTIC_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_ISOLATION_OPTIMISTIC_FIELD_NUMBER

public static final int SNAPSHOT_ISOLATION_OPTIMISTIC_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_ISOLATION_PESSIMISTIC_FIELD_NUMBER

public static final int SNAPSHOT_ISOLATION_PESSIMISTIC_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

getExcludeFromChangeStreams()

public boolean getExcludeFromChangeStreams()

Whether traffic from this transaction will be excluded from tracking change streams with allow_txn_exclusion=true.

bool exclude_from_change_streams = 2;

Returns
Type Description
boolean

The excludeFromChangeStreams.

getExcludeTxnFromChangeStreams()

public boolean getExcludeTxnFromChangeStreams()

Whether to exclude mutations of this transaction from the allowed tracking change streams.

bool exclude_txn_from_change_streams = 6;

Returns
Type Description
boolean

The excludeTxnFromChangeStreams.

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

getSerializableOptimistic()

public boolean getSerializableOptimistic()

Whether serializable isolation with optimistic mode concurrency should be used to execute this transaction.

bool serializable_optimistic = 3;

Returns
Type Description
boolean

The serializableOptimistic.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnapshotIsolationOptimistic()

public boolean getSnapshotIsolationOptimistic()

Whether snapshot isolation with optimistic mode concurrency should be used to execute this transaction.

bool snapshot_isolation_optimistic = 4;

Returns
Type Description
boolean

The snapshotIsolationOptimistic.

getSnapshotIsolationPessimistic()

public boolean getSnapshotIsolationPessimistic()

Whether snapshot isolation with pessimistic mode concurrency should be used to execute this transaction.

bool snapshot_isolation_pessimistic = 5;

Returns
Type Description
boolean

The snapshotIsolationPessimistic.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.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(AbstractMessage.BuilderParent parent)

protected TransactionExecutionOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TransactionExecutionOptions.Builder
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