WebRisk/src/V1beta1/ComputeThreatListDiffRequest.php
public function setThreatType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\WebRisk\V1beta1\ThreatType::class);
        $this->threat_type = $var;

        return $this;
    }
public function setThreatType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\WebRisk\V1beta1\ThreatType::class);
        $this->threat_type = $var;

        return $this;
    }
public function setThreatType ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ WebRisk \ V1beta1 \ ThreatType :: class ) ; $ this -> threat_type = $ var ; return $ this ; }
Required. The ThreatList to update.

Generated from protobuf field <code>.google.cloud.webrisk.v1beta1.ThreatType threat_type = 1;</code>
@param int $var
@return $this
Required . The ThreatList to update .