Google Cloud Web Risk V1beta1 Client - Class SearchHashesResponse (1.5.4)

Reference documentation and code samples for the Google Cloud Web Risk V1beta1 Client class SearchHashesResponse.

Generated from protobuf message google.cloud.webrisk.v1beta1.SearchHashesResponse

Namespace

Google \ Cloud \ WebRisk \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ threats array<Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash>

The full hashes that matched the requested prefixes. The hash will be populated in the key.

↳ negative_expire_time Google\Protobuf\Timestamp

For requested entities that did not match the threat list, how long to cache the response until.

getThreats

The full hashes that matched the requested prefixes.

The hash will be populated in the key.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setThreats

The full hashes that matched the requested prefixes.

The hash will be populated in the key.

Parameter
Name Description
var array<Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash>
Returns
Type Description
$this

getNegativeExpireTime

For requested entities that did not match the threat list, how long to cache the response until.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasNegativeExpireTime

clearNegativeExpireTime

setNegativeExpireTime

For requested entities that did not match the threat list, how long to cache the response until.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this