Class: Google::Cloud::Datastore::V1::ReadOptions

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/datastore/v1/datastore.rb

Overview

The options shared by read requests.

Defined Under Namespace

Modules: ReadConsistency

Instance Attribute Summary collapse

Instance Attribute Details

#read_consistency::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency

Returns The non-transactional read consistency to use.

Returns:



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'proto_docs/google/datastore/v1/datastore.rb', line 412

class ReadOptions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible values for read consistencies.
  module ReadConsistency
    # Unspecified. This value must not be used.
    READ_CONSISTENCY_UNSPECIFIED = 0

    # Strong consistency.
    STRONG = 1

    # Eventual consistency.
    EVENTUAL = 2
  end
end

#read_time::Google::Protobuf::Timestamp

Returns Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode.

Returns:

  • (::Google::Protobuf::Timestamp)

    Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode.



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'proto_docs/google/datastore/v1/datastore.rb', line 412

class ReadOptions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible values for read consistencies.
  module ReadConsistency
    # Unspecified. This value must not be used.
    READ_CONSISTENCY_UNSPECIFIED = 0

    # Strong consistency.
    STRONG = 1

    # Eventual consistency.
    EVENTUAL = 2
  end
end

#transaction::String

Returns 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.



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'proto_docs/google/datastore/v1/datastore.rb', line 412

class ReadOptions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible values for read consistencies.
  module ReadConsistency
    # Unspecified. This value must not be used.
    READ_CONSISTENCY_UNSPECIFIED = 0

    # Strong consistency.
    STRONG = 1

    # Eventual consistency.
    EVENTUAL = 2
  end
end