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 : IMessage<WebKeySettings>, IEquatable<WebKeySettings>, IDeepCloneable<WebKeySettings>, IBufferMessage, IMessage

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

Settings specific to keys that can be used by websites.

## Inheritance

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

## 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), [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), [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), [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

### WebKeySettings()

    public WebKeySettings()

### WebKeySettings(WebKeySettings)

    public WebKeySettings(WebKeySettings other)

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

## Properties

### AllowAllDomains

    public bool AllowAllDomains { get; set; }

Optional. If set to true, it means allowed_domains are not enforced.

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

### AllowAmpTraffic

    public bool AllowAmpTraffic { get; set; }

Optional. If set to true, the key can be used on AMP (Accelerated Mobile
Pages) websites. This is supported only for the SCORE integration type.

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

### AllowedDomains

    public RepeatedField<string> AllowedDomains { get; }

Optional. Domains or subdomains of websites allowed to use the key. All
subdomains of an allowed domain are automatically allowed. A valid domain
requires a host and must not include any path, port, query or fragment.
Examples: 'example.com' or 'subdomain.example.com'
Each key supports a maximum of 250 domains. To use a key on more domains,
set `allow_all_domains` to true. When this is set, you are responsible for
validating the hostname by checking the `token_properties.hostname` field
in each assessment response against your list of allowed domains.

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

### ChallengeSecurityPreference

    public WebKeySettings.Types.ChallengeSecurityPreference ChallengeSecurityPreference { get; set; }

Optional. Settings for the frequency and difficulty at which this key
triggers captcha challenges. This should only be specified for
`IntegrationType` CHECKBOX, INVISIBLE or POLICY_BASED_CHALLENGE.

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

### ChallengeSettings

    public WebKeySettings.Types.ChallengeSettings ChallengeSettings { get; set; }

Optional. Challenge settings.

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

### IntegrationType

    public WebKeySettings.Types.IntegrationType IntegrationType { get; set; }

Required. Describes how this key is integrated with the website.

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