Interface TransactionOptionsOrBuilder (2.21.1)

public interface TransactionOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getModeCase()

public abstract TransactionOptions.ModeCase getModeCase()
Returns
Type Description
TransactionOptions.ModeCase

getReadOnly()

public abstract TransactionOptions.ReadOnly getReadOnly()

The transaction should only allow reads.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TransactionOptions.ReadWriteOrBuilder

hasReadOnly()

public abstract boolean hasReadOnly()

The transaction should only allow reads.

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

Returns
Type Description
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
Type Description
boolean

Whether the readWrite field is set.