Dataproc/src/V1/ListWorkflowTemplatesResponse.php
public function setTemplates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataproc\V1\WorkflowTemplate::class);
        $this->templates = $arr;

        return $this;
    }
public function setTemplates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataproc\V1\WorkflowTemplate::class);
        $this->templates = $arr;

        return $this;
    }
public function setTemplates ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dataproc \ V1 \ WorkflowTemplate :: class ) ; $ this -> templates = $ arr ; return $ this ; }
Output only. WorkflowTemplates list.

Generated from protobuf field <code>repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1;</code>
@param \Google\Cloud\Dataproc\V1\WorkflowTemplate[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Output only . WorkflowTemplates list .