Interface TransactionOptionsOrBuilder (2.14.1)

public interface TransactionOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getModeCase()

public abstract TransactionOptions.ModeCase getModeCase()
Returns
TypeDescription
TransactionOptions.ModeCase

getReadOnly()

public abstract TransactionOptions.ReadOnly getReadOnly()

The transaction should only allow reads.

.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;

Returns
TypeDescription
TransactionOptions.ReadOnly

The readOnly.

getReadOnlyOrBuilder()

public abstract TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()

The transaction should only allow reads.

.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;

Returns
TypeDescription
TransactionOptions.ReadOnlyOrBuilder

getReadWrite()

public abstract TransactionOptions.ReadWrite getReadWrite()

The transaction should allow both reads and writes.

.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;

Returns
TypeDescription
TransactionOptions.ReadWrite

The readWrite.

getReadWriteOrBuilder()

public abstract TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()

The transaction should allow both reads and writes.

.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;

Returns
TypeDescription
TransactionOptions.ReadWriteOrBuilder

hasReadOnly()

public abstract boolean hasReadOnly()

The transaction should only allow reads.

.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;

Returns
TypeDescription
boolean

Whether the readOnly field is set.

hasReadWrite()

public abstract boolean hasReadWrite()

The transaction should allow both reads and writes.

.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;

Returns
TypeDescription
boolean

Whether the readWrite field is set.