Scheduler/src/V1/Job.php
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Scheduler\V1\Job_State::class);
        $this->state = $var;

        return $this;
    }
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Scheduler\V1\Job_State::class);
        $this->state = $var;

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Scheduler \ V1 \ Job_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Output only. State of the job.

Generated from protobuf field <code>.google.cloud.scheduler.v1.Job.State state = 10;</code>
@param int $var
@return $this
Output only . State of the job .