Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::ReadOptions.
The options shared by read requests.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#new_transaction
def new_transaction() -> ::Google::Cloud::Datastore::V1::TransactionOptions
-
(::Google::Cloud::Datastore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction
,read_consistency
,transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#new_transaction=
def new_transaction=(value) -> ::Google::Cloud::Datastore::V1::TransactionOptions
-
value (::Google::Cloud::Datastore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction
,read_consistency
,transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Datastore::V1::TransactionOptions) — 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.
Note: The following fields are mutually exclusive:
new_transaction
,read_consistency
,transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_consistency
def read_consistency() -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
-
(::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Note: The following fields are mutually exclusive:
read_consistency
,transaction
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_consistency=
def read_consistency=(value) -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
-
value (::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Note: The following fields are mutually exclusive:
read_consistency
,transaction
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Note: The following fields are mutually exclusive:
read_consistency
,transaction
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_time
def read_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time
,read_consistency
,transaction
,new_transaction
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_time=
def read_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time
,read_consistency
,transaction
,new_transaction
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — 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.
Note: The following fields are mutually exclusive:
read_time
,read_consistency
,transaction
,new_transaction
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#transaction
def transaction() -> ::String
-
(::String) — The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
Note: The following fields are mutually exclusive:
transaction
,read_consistency
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#transaction=
def transaction=(value) -> ::String
-
value (::String) — The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
Note: The following fields are mutually exclusive:
transaction
,read_consistency
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
Note: The following fields are mutually exclusive:
transaction
,read_consistency
,new_transaction
,read_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.