Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class ChallengeSettings.
Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is triggered.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSettings
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1 \ WebKeySettingsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ default_settings |
ActionSettings
Required. Defines when a challenge is triggered (unless the default threshold is overridden for the given action, see |
↳ action_settings |
array|Google\Protobuf\Internal\MapField
Optional. The action to score threshold map. The action name should be the same as the action name passed in the |
getDefaultSettings
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
| Returns | |
|---|---|
| Type | Description |
ActionSettings|null |
|
hasDefaultSettings
clearDefaultSettings
setDefaultSettings
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
| Parameter | |
|---|---|
| Name | Description |
var |
ActionSettings
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getActionSettings
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setActionSettings
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|