Dataproc/src/V1beta2/TemplateParameter.php
public function setValidation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\ParameterValidation::class);
        $this->validation = $var;

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

        return $this;
    }
public function setValidation ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ ParameterValidation :: class ) ; $ this -> validation = $ var ; return $ this ; }
Optional. Validation rules to be applied to this parameter's value.

Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.ParameterValidation validation = 4;</code>
@param \Google\Cloud\Dataproc\V1beta2\ParameterValidation $var
@return $this
Optional . Validation rules to be applied to this parameter s value .