Tasks/src/V2beta2/Task.php
public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2beta2\TaskStatus::class);
        $this->status = $var;

        return $this;
    }
public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2beta2\TaskStatus::class);
        $this->status = $var;

        return $this;
    }
public function setStatus ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Tasks \ V2beta2 \ TaskStatus :: class ) ; $ this -> status = $ var ; return $ this ; }
Output only. The task status.

Generated from protobuf field <code>.google.cloud.tasks.v2beta2.TaskStatus status = 7;</code>
@param \Google\Cloud\Tasks\V2beta2\TaskStatus $var
@return $this
Output only . The task status .