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

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

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

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: