Firestore/src/V1beta1/CommitRequest.php
public function setWrites($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1beta1\Write::class);
        $this->writes = $arr;

        return $this;
    }
public function setWrites($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1beta1\Write::class);
        $this->writes = $arr;

        return $this;
    }
public function setWrites ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Firestore \ V1beta1 \ Write :: class ) ; $ this -> writes = $ arr ; return $ this ; }
The writes to apply.
Always executed atomically and in order.

Generated from protobuf field <code>repeated .google.firestore.v1beta1.Write writes = 2;</code>
@param \Google\Cloud\Firestore\V1beta1\Write[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The writes to apply . Always executed atomically and in order .