Google Cloud Web Risk V1 Client - Class Confidence (1.4.4)

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

Confidence that a URI is unsafe.

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

Namespace

Google \ Cloud \ WebRisk \ V1 \ ThreatInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ score float

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

↳ level int

Enum representation of confidence.

getScore

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

Returns
TypeDescription
float

hasScore

setScore

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getLevel

Enum representation of confidence.

Returns
TypeDescription
int

hasLevel

setLevel

Enum representation of confidence.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string