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

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

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Dataproc \ V1 \ WorkflowMetadata_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Output only. The workflow state.

Generated from protobuf field <code>.google.cloud.dataproc.v1.WorkflowMetadata.State state = 6;</code>
@param int $var
@return $this
Output only . The workflow state .