Google Cloud Web Risk V1 Client - Class ThreatUri (1.2.7)

Reference documentation and code samples for the Google Cloud Web Risk V1 Client class ThreatUri.

Contains threat information on a matching uri.

Generated from protobuf message google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ threat_types array

The ThreatList this threat belongs to.

↳ 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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setThreatTypes

The ThreatList this threat belongs to.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getExpireTime

The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this