Package com.google.datastore.v1
Interface ReadOptionsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReadOptions,ReadOptions.Builder
public interface ReadOptionsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadOptions.ConsistencyTypeCasegetConsistencyTypeCase()TransactionOptionsgetNewTransaction()Options for beginning a new transaction for this request.TransactionOptionsOrBuildergetNewTransactionOrBuilder()Options for beginning a new transaction for this request.ReadOptions.ReadConsistencygetReadConsistency()The non-transactional read consistency to use.intgetReadConsistencyValue()The non-transactional read consistency to use.com.google.protobuf.TimestampgetReadTime()Reads entities as they were at the given time.com.google.protobuf.TimestampOrBuildergetReadTimeOrBuilder()Reads entities as they were at the given time.com.google.protobuf.ByteStringgetTransaction()The identifier of the transaction in which to read.booleanhasNewTransaction()Options for beginning a new transaction for this request.booleanhasReadConsistency()The non-transactional read consistency to use.booleanhasReadTime()Reads entities as they were at the given time.booleanhasTransaction()The identifier of the transaction in which to read.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasReadConsistency
boolean hasReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Returns:
- Whether the readConsistency field is set.
-
getReadConsistencyValue
int getReadConsistencyValue()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Returns:
- The enum numeric value on the wire for readConsistency.
-
getReadConsistency
ReadOptions.ReadConsistency getReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Returns:
- The readConsistency.
-
hasTransaction
boolean hasTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;- Returns:
- Whether the transaction field is set.
-
getTransaction
com.google.protobuf.ByteString getTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;- Returns:
- The transaction.
-
hasNewTransaction
boolean hasNewTransaction()
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;- Returns:
- Whether the newTransaction field is set.
-
getNewTransaction
TransactionOptions getNewTransaction()
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;- Returns:
- The newTransaction.
-
getNewTransactionOrBuilder
TransactionOptionsOrBuilder getNewTransactionOrBuilder()
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;
-
hasReadTime
boolean hasReadTime()
Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;- Returns:
- Whether the readTime field is set.
-
getReadTime
com.google.protobuf.Timestamp getReadTime()
Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;- Returns:
- The readTime.
-
getReadTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;
-
getConsistencyTypeCase
ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
-
-