Dlp/src/V2/InspectionRule.php
public function setHotwordRule($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule_HotwordRule::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setHotwordRule($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule_HotwordRule::class);
        $this->writeOneof(1, $var);

        return $this;
    }
public function setHotwordRule ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ CustomInfoType_DetectionRule_HotwordRule :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
Hotword-based detection rule.

Generated from protobuf field <code>.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;</code>
@param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var
@return $this
Hotword - based detection rule .