Google Cloud Web Risk V1 Client - Class ThreatUri (2.0.0-RC1)

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

Namespace

Google \ Cloud \ WebRisk \ V1 \ SearchUrisResponse

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
Google\Protobuf\Internal\RepeatedField

setThreatTypes

The ThreatList this threat belongs to.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getExpireTime

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

Returns
Type Description
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
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this