Google Cloud Recaptcha Enterprise V1 Client - Class RiskAnalysis (1.2.6)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class RiskAnalysis.

Risk analysis result for an event.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.RiskAnalysis

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ score
float

Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

↳ reasons
array

Reasons contributing to the risk analysis verdict.

getScore

Legitimate event score from 0.0 to 1.0.

(1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

Returns
Type
Description
float

setScore

Legitimate event score from 0.0 to 1.0.

(1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getReasons

Reasons contributing to the risk analysis verdict.

Returns
Type
Description

setReasons

Reasons contributing to the risk analysis verdict.

Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: