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

TransactionOptions mode.

readOnly

TransactionOptions readOnly.

readWrite

TransactionOptions readWrite.

Methods

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

Converts this TransactionOptions to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(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

Returns:
Type Description
google.firestore.v1beta1.TransactionOptions

TransactionOptions

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for TransactionOptions

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(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

Returns:
Type Description
Object.<string, *>

Plain object