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

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setThreats

The full hashes that matched the requested prefixes.

The hash will be populated in the key.

Parameter
NameDescription
var array<Google\Cloud\WebRisk\V1beta1\SearchHashesResponse\ThreatHash>
Returns
TypeDescription
$this

getNegativeExpireTime

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

Returns
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this