Class TransactionOptions (2.5.3)

TransactionOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for creating a new transaction.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
read_only google.cloud.firestore_v1.types.TransactionOptions.ReadOnly
The transaction can only be used for read operations. This field is a member of `oneof`_ ``mode``.
read_write google.cloud.firestore_v1.types.TransactionOptions.ReadWrite
The transaction can be used for both read and write operations. This field is a member of `oneof`_ ``mode``.

Inheritance

builtins.object > proto.message.Message > TransactionOptions

Classes

ReadOnly

ReadOnly(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for a transaction that can only be used to read documents.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

ReadWrite

ReadWrite(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options for a transaction that can be used to read and write documents.