2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0

    public sealed class WebKeySettings.Types.ChallengeSettings : IMessage<WebKeySettings.Types.ChallengeSettings>, IEquatable<WebKeySettings.Types.ChallengeSettings>, IDeepCloneable<WebKeySettings.Types.ChallengeSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class WebKeySettings.Types.ChallengeSettings.

Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is
triggered.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> WebKeySettings.Types.ChallengeSettings

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[WebKeySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.md.txt)[ChallengeSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSettings.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WebKeySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.md.txt)[ChallengeSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSettings.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[WebKeySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.md.txt)[ChallengeSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSettings.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecaptchaEnterprise.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.md.txt)

## Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

## Constructors

### ChallengeSettings()

    public ChallengeSettings()

### ChallengeSettings(ChallengeSettings)

    public ChallengeSettings(WebKeySettings.Types.ChallengeSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `WebKeySettingsTypesChallengeSettings` |

## Properties

### ActionSettings

    public MapField<string, WebKeySettings.Types.ActionSettings> ActionSettings { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringWebKeySettingsTypesActionSettings` |   |

### DefaultSettings

    public WebKeySettings.Types.ActionSettings DefaultSettings { get; set; }

Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see `action_settings`).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WebKeySettingsTypesActionSettings` |   |