Dataproc/src/V1beta2/ParameterValidation.php
public function setRegex($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\RegexValidation::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setRegex($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\RegexValidation::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setRegex ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ RegexValidation :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
Validation based on regular expressions.

Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.RegexValidation regex = 1;</code>
@param \Google\Cloud\Dataproc\V1beta2\RegexValidation $var
@return $this
Validation based on regular expressions .