Google Cloud Web Risk V1 Client - Class ThreatJustification (2.3.0)

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

Context about why the URI is unsafe.

Generated from protobuf message google.cloud.webrisk.v1.ThreatInfo.ThreatJustification

Namespace

Google \ Cloud \ WebRisk \ V1 \ ThreatInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ labels int[]

Labels associated with this URI that explain how it was classified.

↳ comments string[]

Free-form context on why this URI is unsafe.

getLabels

Labels associated with this URI that explain how it was classified.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setLabels

Labels associated with this URI that explain how it was classified.

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

getComments

Free-form context on why this URI is unsafe.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setComments

Free-form context on why this URI is unsafe.

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