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:



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'proto_docs/google/firestore/v1/common.rb', line 61

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

  # Options for a transaction that can be used to read and write documents.
  #
  # Firestore does not allow 3rd party auth requests to create read-write.
  # transactions.
  # @!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 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.
  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:



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'proto_docs/google/firestore/v1/common.rb', line 61

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

  # Options for a transaction that can be used to read and write documents.
  #
  # Firestore does not allow 3rd party auth requests to create read-write.
  # transactions.
  # @!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 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.
  class ReadOnly
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end