Google Cloud Recaptcha Enterprise V1 Client - Class SmsTollFraudVerdict (1.13.0)

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

Information about SMS toll fraud.

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

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ risk float

Output only. Probability of an SMS event being fraudulent. Values are from 0.0 (lowest) to 1.0 (highest).

↳ reasons array

Output only. Reasons contributing to the SMS toll fraud verdict.

getRisk

Output only. Probability of an SMS event being fraudulent.

Values are from 0.0 (lowest) to 1.0 (highest).

Returns
Type Description
float

setRisk

Output only. Probability of an SMS event being fraudulent.

Values are from 0.0 (lowest) to 1.0 (highest).

Parameter
Name Description
var float
Returns
Type Description
$this

getReasons

Output only. Reasons contributing to the SMS toll fraud verdict.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setReasons

Output only. Reasons contributing to the SMS toll fraud verdict.

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