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

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

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ score float

Output only. 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

Output only. Reasons contributing to the risk analysis verdict.

↳ extended_verdict_reasons array

Output only. Extended verdict reasons to be used for experimentation only. The set of possible reasons is subject to change.

getScore

Output only. 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
TypeDescription
float

setScore

Output only. 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
NameDescription
var float
Returns
TypeDescription
$this

getReasons

Output only. Reasons contributing to the risk analysis verdict.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReasons

Output only. Reasons contributing to the risk analysis verdict.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getExtendedVerdictReasons

Output only. Extended verdict reasons to be used for experimentation only.

The set of possible reasons is subject to change.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExtendedVerdictReasons

Output only. Extended verdict reasons to be used for experimentation only.

The set of possible reasons is subject to change.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this