Firestore/src/V1beta1/Write.php
public function setUpdate($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Document::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setUpdate($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Document::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setUpdate ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ V1beta1 \ Document :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
A document to write.

Generated from protobuf field <code>.google.firestore.v1beta1.Document update = 1;</code>
@param \Google\Cloud\Firestore\V1beta1\Document $var
@return $this
A document to write .