public interface TransactionOptionsOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getModeCase()
public abstract TransactionOptions.ModeCase getModeCase()
Type | Description |
TransactionOptions.ModeCase |
getPartitionedDml()
public abstract 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;
Type | Description |
TransactionOptions.PartitionedDml | The partitionedDml. |
getPartitionedDmlOrBuilder()
public abstract 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;
Type | Description |
TransactionOptions.PartitionedDmlOrBuilder |
getReadOnly()
public abstract 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;
Type | Description |
TransactionOptions.ReadOnly | The readOnly. |
getReadOnlyOrBuilder()
public abstract 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;
Type | Description |
TransactionOptions.ReadOnlyOrBuilder |
getReadWrite()
public abstract 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;
Type | Description |
TransactionOptions.ReadWrite | The readWrite. |
getReadWriteOrBuilder()
public abstract 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;
Type | Description |
TransactionOptions.ReadWriteOrBuilder |
hasPartitionedDml()
public abstract 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;
Type | Description |
boolean | Whether the partitionedDml field is set. |
hasReadOnly()
public abstract 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;
Type | Description |
boolean | Whether the readOnly field is set. |
hasReadWrite()
public abstract 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;
Type | Description |
boolean | Whether the readWrite field is set. |