Firestore/src/V1/UpdateDocumentRequest.php
public function setCurrentDocument($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
        $this->current_document = $var;

        return $this;
    }
public function setCurrentDocument($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
        $this->current_document = $var;

        return $this;
    }
public function setCurrentDocument ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ V1 \ Precondition :: class ) ; $ this -> current_document = $ var ; return $ this ; }
An optional precondition on the document.
The request will fail if this is set and not met by the target document.

Generated from protobuf field <code>.google.firestore.v1.Precondition current_document = 4;</code>
@param \Google\Cloud\Firestore\V1\Precondition $var
@return $this
An optional precondition on the document . The request will fail if this is set and not met by the target document .