Interface ReadOptionsOrBuilder (2.17.6)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface ReadOptionsOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getConsistencyTypeCase()
publicabstractReadOptions.ConsistencyTypeCasegetConsistencyTypeCase()| Returns | |
|---|---|
| Type | Description |
ReadOptions.ConsistencyTypeCase |
|
getNewTransaction()
publicabstractTransactionOptionsgetNewTransaction()Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding response as either LookupResponse.transaction or RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
| Returns | |
|---|---|
| Type | Description |
TransactionOptions |
The newTransaction. |
getNewTransactionOrBuilder()
publicabstractTransactionOptionsOrBuildergetNewTransactionOrBuilder()Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding response as either LookupResponse.transaction or RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
| Returns | |
|---|---|
| Type | Description |
TransactionOptionsOrBuilder |
|
getReadConsistency()
publicabstractReadOptions.ReadConsistencygetReadConsistency()The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
| Returns | |
|---|---|
| Type | Description |
ReadOptions.ReadConsistency |
The readConsistency. |
getReadConsistencyValue()
publicabstractintgetReadConsistencyValue()The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for readConsistency. |
getReadTime()
publicabstractTimestampgetReadTime()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 | |
|---|---|
| Type | Description |
Timestamp |
The readTime. |
getReadTimeOrBuilder()
publicabstractTimestampOrBuildergetReadTimeOrBuilder()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 | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getTransaction()
publicabstractByteStringgetTransaction()The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The transaction. |
hasNewTransaction()
publicabstractbooleanhasNewTransaction()Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding response as either LookupResponse.transaction or RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the newTransaction field is set. |
hasReadConsistency()
publicabstractbooleanhasReadConsistency()The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the readConsistency field is set. |
hasReadTime()
publicabstractbooleanhasReadTime()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 | |
|---|---|
| Type | Description |
boolean |
Whether the readTime field is set. |
hasTransaction()
publicabstractbooleanhasTransaction()The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the transaction field is set. |