Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ThreatHash.
Contains threat information on a matching hash.
Generated from protobuf message google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash
Namespace
Google \ Cloud \ WebRisk \ V1 \ SearchHashesResponseMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ threat_types
array
The ThreatList this threat belongs to. This must contain at least one entry.
↳ hash
string
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
↳ expire_time
Google\Protobuf\Timestamp
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
getThreatTypes
The ThreatList this threat belongs to.
This must contain at least one entry.
setThreatTypes
The ThreatList this threat belongs to.
This must contain at least one entry.
var
int[]
$this
getHash
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
string
setHash
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
var
string
$this
getExpireTime
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
hasExpireTime
clearExpireTime
setExpireTime
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
$this