Package com.google.spanner.v1
Interface TransactionOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TransactionOptions,TransactionOptions.Builder
public interface TransactionOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhen `exclude_txn_from_change_streams` is set to `true`, it prevents read or write transactions from being tracked in change streamsIsolation level for the transaction.intIsolation level for the transaction.Partitioned DML transaction.Partitioned DML transaction.Transaction does not write.Transaction does not write.Transaction may write.Transaction may write.booleanPartitioned DML transaction.booleanTransaction does not write.booleanTransaction may write.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasReadWrite
boolean hasReadWrite()Transaction may write. Authorization to begin a read-write transaction requires `spanner.databases.beginOrRollbackReadWriteTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadWrite read_write = 1;- Returns:
- Whether the readWrite field is set.
-
getReadWrite
TransactionOptions.ReadWrite getReadWrite()Transaction may write. Authorization to begin a read-write transaction requires `spanner.databases.beginOrRollbackReadWriteTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadWrite read_write = 1;- Returns:
- The readWrite.
-
getReadWriteOrBuilder
TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()Transaction may write. Authorization to begin a read-write transaction requires `spanner.databases.beginOrRollbackReadWriteTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadWrite read_write = 1; -
hasPartitionedDml
boolean hasPartitionedDml()Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.PartitionedDml partitioned_dml = 3;- Returns:
- Whether the partitionedDml field is set.
-
getPartitionedDml
TransactionOptions.PartitionedDml getPartitionedDml()Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.PartitionedDml partitioned_dml = 3;- Returns:
- The partitionedDml.
-
getPartitionedDmlOrBuilder
TransactionOptions.PartitionedDmlOrBuilder getPartitionedDmlOrBuilder()Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.PartitionedDml partitioned_dml = 3; -
hasReadOnly
boolean hasReadOnly()Transaction does not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadOnly read_only = 2;- Returns:
- Whether the readOnly field is set.
-
getReadOnly
TransactionOptions.ReadOnly getReadOnly()Transaction does not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadOnly read_only = 2;- Returns:
- The readOnly.
-
getReadOnlyOrBuilder
TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()Transaction does not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource.
.google.spanner.v1.TransactionOptions.ReadOnly read_only = 2; -
getExcludeTxnFromChangeStreams
boolean getExcludeTxnFromChangeStreams()When `exclude_txn_from_change_streams` is set to `true`, it prevents read or write transactions from being tracked in change streams. * If the DDL option `allow_txn_exclusion` is set to `true`, then the updates made within this transaction aren't recorded in the change stream. * If you don't set the DDL option `allow_txn_exclusion` or if it's set to `false`, then the updates made within this transaction are recorded in the change stream. When `exclude_txn_from_change_streams` is set to `false` or not set, modifications from this transaction are recorded in all change streams that are tracking columns modified by these transactions. The `exclude_txn_from_change_streams` option can only be specified for read-write or partitioned DML transactions, otherwise the API returns an `INVALID_ARGUMENT` error.
bool exclude_txn_from_change_streams = 5;- Returns:
- The excludeTxnFromChangeStreams.
-
getIsolationLevelValue
int getIsolationLevelValue()Isolation level for the transaction.
.google.spanner.v1.TransactionOptions.IsolationLevel isolation_level = 6;- Returns:
- The enum numeric value on the wire for isolationLevel.
-
getIsolationLevel
TransactionOptions.IsolationLevel getIsolationLevel()Isolation level for the transaction.
.google.spanner.v1.TransactionOptions.IsolationLevel isolation_level = 6;- Returns:
- The isolationLevel.
-
getModeCase
TransactionOptions.ModeCase getModeCase()
-