Interface ReadOptionsOrBuilder (2.3.1)

public interface ReadOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsistencyTypeCase()

public abstract ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
Returns
TypeDescription
ReadOptions.ConsistencyTypeCase

getReadConsistency()

public abstract ReadOptions.ReadConsistency getReadConsistency()

The non-transactional read consistency to use. Cannot be set to STRONG for global queries.

.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;

Returns
TypeDescription
ReadOptions.ReadConsistency

The readConsistency.

getReadConsistencyValue()

public abstract int getReadConsistencyValue()

The non-transactional read consistency to use. Cannot be set to STRONG for global queries.

.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for readConsistency.

getTransaction()

public abstract ByteString getTransaction()

The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.

bytes transaction = 2;

Returns
TypeDescription
ByteString

The transaction.

hasReadConsistency()

public abstract boolean hasReadConsistency()

The non-transactional read consistency to use. Cannot be set to STRONG for global queries.

.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;

Returns
TypeDescription
boolean

Whether the readConsistency field is set.

hasTransaction()

public abstract boolean hasTransaction()

The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.

bytes transaction = 2;

Returns
TypeDescription
boolean

Whether the transaction field is set.