Class: Google::Cloud::Firestore::V1::TransactionOptions
- Inherits:
-
Object
- Object
- Google::Cloud::Firestore::V1::TransactionOptions
- 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
Instance Attribute Summary collapse
-
#read_only ⇒ ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
The transaction can only be used for read operations.
-
#read_write ⇒ ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
The transaction can be used for both read and write operations.
Instance Attribute Details
#read_only ⇒ ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
Returns The transaction can only be used for read operations.
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.
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 |