WebRisk/src/V1beta1/SearchHashesResponse.php
public function setThreats($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash::class);
        $this->threats = $arr;

        return $this;
    }
public function setThreats($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash::class);
        $this->threats = $arr;

        return $this;
    }
public function setThreats ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ WebRisk \ V1beta1 \ SearchHashesResponse \ ThreatHash :: class ) ; $ this -> threats = $ arr ; return $ this ; }
The full hashes that matched the requested prefixes.
The hash will be populated in the key.

Generated from protobuf field <code>repeated .google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash threats = 1;</code>
@param \Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The full hashes that matched the requested prefixes . The hash will be populated in the key .