Write

google.firestore.v1. Write

Represents a Write.

Constructor

new Write(propertiesopt)

Constructs a new Write.

Parameters:
Name Type Attributes Description
properties google.firestore.v1.IWrite <optional>

Properties to set

Implements:
  • IWrite

Members

currentDocument :google.firestore.v1.IPrecondition|null|undefined

Write currentDocument.

delete :string

Write delete.

operation :"update"|"delete"|"transform"|undefined

Write operation.

transform :google.firestore.v1.IDocumentTransform|null|undefined

Write transform.

update :google.firestore.v1.IDocument|null|undefined

Write update.

updateMask :google.firestore.v1.IDocumentMask|null|undefined

Write updateMask.

updateTransforms :Array.<google.firestore.v1.DocumentTransform.IFieldTransform>

Write updateTransforms.

Methods

(static) fromObject(object) → {google.firestore.v1.Write}

Creates a Write 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 Write message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.firestore.v1.Write

Write

options $protobuf.IConversionOptions <optional>

Conversion options

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

Converts this Write to JSON.