TransactionOptions

google.firestore.v1beta1. TransactionOptions

Represents a TransactionOptions.

Constructor

new TransactionOptions(propertiesopt)

Constructs a new TransactionOptions.

Parameters:
Name Type Attributes Description
properties google.firestore.v1beta1.ITransactionOptions <optional>

Properties to set

Implements:
  • ITransactionOptions

Classes

ReadOnly
ReadWrite

Members

mode :"readOnly"|"readWrite"|undefined

TransactionOptions mode.

readOnly :google.firestore.v1beta1.TransactionOptions.IReadOnly|null|undefined

TransactionOptions readOnly.

readWrite :google.firestore.v1beta1.TransactionOptions.IReadWrite|null|undefined

TransactionOptions readWrite.

Methods

(static) fromObject(object) → {google.firestore.v1beta1.TransactionOptions}

Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.firestore.v1beta1.TransactionOptions

TransactionOptions

options $protobuf.IConversionOptions <optional>

Conversion options

toJSON() → {Object.<string, *>}

Converts this TransactionOptions to JSON.