Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class ChallengeOutcome.
An outcome that indicates that a challenge of a specified difficulty should be presented to the user.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.ChallengeRule.ChallengeOutcome
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1 \ ChallengeRuleMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ difficulty |
int
Optional. The difficulty of the challenge to present to the user. If unspecified, |
getDifficulty
Optional. The difficulty of the challenge to present to the user.
If unspecified, BALANCE is used.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ChallengeSecurityPreference. |
setDifficulty
Optional. The difficulty of the challenge to present to the user.
If unspecified, BALANCE is used.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ChallengeSecurityPreference. |
| Returns | |
|---|---|
| Type | Description |
$this |
|