Dataproc/src/V1beta2/CreateClusterRequest.php
public function setCluster($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\Cluster::class);
        $this->cluster = $var;

        return $this;
    }
public function setCluster($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\Cluster::class);
        $this->cluster = $var;

        return $this;
    }
public function setCluster ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ Cluster :: class ) ; $ this -> cluster = $ var ; return $ this ; }
Required. The cluster to create.

Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.Cluster cluster = 2;</code>
@param \Google\Cloud\Dataproc\V1beta2\Cluster $var
@return $this
Required . The cluster to create .