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`: * Mutations from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactionsPartitioned DML transaction.Partitioned DML transaction.Transaction will not write.Transaction will not write.Transaction may write.Transaction may write.booleanPartitioned DML transaction.booleanTransaction will 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 will 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 will 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 will 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`: * Mutations from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Mutations from this transaction will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, mutations from this transaction will be recorded in all change streams that are tracking columns modified by these transactions. `exclude_txn_from_change_streams` may only be specified for read-write or partitioned-dml transactions, otherwise the API will return an `INVALID_ARGUMENT` error.
bool exclude_txn_from_change_streams = 5;- Returns:
- The excludeTxnFromChangeStreams.
-
getModeCase
TransactionOptions.ModeCase getModeCase()
-