Class: Google::Cloud::Firestore::V1::TransactionOptions

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

Overview

Options for creating a new transaction.

Defined Under Namespace

Classes: ReadOnly, ReadWrite

Instance Attribute Summary collapse

Instance Attribute Details

#read_only::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly

Returns The transaction can only be used for read operations.

Returns:



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'proto_docs/google/firestore/v1/common.rb', line 59

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

  # Options for a transaction that can be used to read and write documents.
  # @!attribute [rw] retry_transaction
  #   @return [::String]
  #     An optional transaction to retry.
  class ReadWrite
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Options for a transaction that can only be used to read documents.
  # @!attribute [rw] read_time
  #   @return [::Google::Protobuf::Timestamp]
  #     Reads documents at the given time.
  #     This may not be older than 60 seconds.
  class ReadOnly
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#read_write::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite

Returns The transaction can be used for both read and write operations.

Returns:



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'proto_docs/google/firestore/v1/common.rb', line 59

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

  # Options for a transaction that can be used to read and write documents.
  # @!attribute [rw] retry_transaction
  #   @return [::String]
  #     An optional transaction to retry.
  class ReadWrite
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Options for a transaction that can only be used to read documents.
  # @!attribute [rw] read_time
  #   @return [::Google::Protobuf::Timestamp]
  #     Reads documents at the given time.
  #     This may not be older than 60 seconds.
  class ReadOnly
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end