WebRisk/src/V1beta1/SearchUrisRequest.php
public function setThreatTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\WebRisk\V1beta1\ThreatType::class);
        $this->threat_types = $arr;

        return $this;
    }
public function setThreatTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\WebRisk\V1beta1\ThreatType::class);
        $this->threat_types = $arr;

        return $this;
    }
public function setThreatTypes ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: ENUM , \ Google \ Cloud \ WebRisk \ V1beta1 \ ThreatType :: class ) ; $ this -> threat_types = $ arr ; return $ this ; }
Required. The ThreatLists to search in.

Generated from protobuf field <code>repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Required . The ThreatLists to search in .