Dlp/src/V2/InspectionRuleSet.php
public function setRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRule::class);
        $this->rules = $arr;

        return $this;
    }
public function setRules($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRule::class);
        $this->rules = $arr;

        return $this;
    }
public function setRules ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dlp \ V2 \ InspectionRule :: class ) ; $ this -> rules = $ arr ; return $ this ; }
Set of rules to be applied to infoTypes. The rules are applied in order.

Generated from protobuf field <code>repeated .google.privacy.dlp.v2.InspectionRule rules = 2;</code>
@param \Google\Cloud\Dlp\V2\InspectionRule[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Set of rules to be applied to infoTypes . The rules are applied in order .