Firestore in Datastore mode V1 API - Class Google::Cloud::Datastore::V1::ReadOptions (v0.16.0)

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
Returns

#new_transaction=

def new_transaction=(value) -> ::Google::Cloud::Datastore::V1::TransactionOptions
Parameter
Returns

#read_consistency

def read_consistency() -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
Returns

#read_consistency=

def read_consistency=(value) -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
Parameter
Returns

#read_time

def read_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::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.

#read_time=

def read_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • 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.

Returns
  • (::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.

#transaction

def transaction() -> ::String
Returns
  • (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.

#transaction=

def transaction=(value) -> ::String
Parameter
  • value (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Returns
  • (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.