# Google Cloud reCAPTCHA Enterprise v1 API - Class RecaptchaEnterpriseServiceClient (2.20.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.20.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.19.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.19.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.18.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.18.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.17.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.17.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.16.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.16.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.15.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.14.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.13.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.12.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.11.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.10.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.9.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.8.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.7.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.6.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.5.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.4.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.3.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.2.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.1.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/2.0.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.6.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.5.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.4.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.3.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/1.2.0/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient)

    public abstract class RecaptchaEnterpriseServiceClient

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

RecaptchaEnterpriseService client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

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

## Namespace

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

## Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

## Remarks

Service to determine the likelihood an event is legitimate.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the RecaptchaEnterpriseService service, which is a host of
"recaptchaenterprise.googleapis.com" and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default RecaptchaEnterpriseService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default RecaptchaEnterpriseService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual RecaptchaEnterpriseService.RecaptchaEnterpriseServiceClient GrpcClient { get; }

The underlying gRPC RecaptchaEnterpriseService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseService.RecaptchaEnterpriseServiceClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### AddIpOverride(AddIpOverrideRequest, CallSettings)

    public virtual AddIpOverrideResponse AddIpOverride(AddIpOverrideRequest request, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    AddIpOverrideRequest request = new AddIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    AddIpOverrideResponse response = recaptchaEnterpriseServiceClient.AddIpOverride(request);

### AddIpOverride(KeyName, IpOverrideData, CallSettings)

    public virtual AddIpOverrideResponse AddIpOverride(KeyName name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = recaptchaEnterpriseServiceClient.AddIpOverride(name, ipOverrideData);

### AddIpOverride(string, IpOverrideData, CallSettings)

    public virtual AddIpOverrideResponse AddIpOverride(string name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = recaptchaEnterpriseServiceClient.AddIpOverride(name, ipOverrideData);

### AddIpOverrideAsync(AddIpOverrideRequest, CallSettings)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(AddIpOverrideRequest request, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AddIpOverrideRequest request = new AddIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(request);

### AddIpOverrideAsync(AddIpOverrideRequest, CancellationToken)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(AddIpOverrideRequest request, CancellationToken cancellationToken)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AddIpOverrideRequest request = new AddIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(request);

### AddIpOverrideAsync(KeyName, IpOverrideData, CallSettings)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(KeyName name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(name, ipOverrideData);

### AddIpOverrideAsync(KeyName, IpOverrideData, CancellationToken)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(KeyName name, IpOverrideData ipOverrideData, CancellationToken cancellationToken)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(name, ipOverrideData);

### AddIpOverrideAsync(string, IpOverrideData, CallSettings)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(string name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(name, ipOverrideData);

### AddIpOverrideAsync(string, IpOverrideData, CancellationToken)

    public virtual Task<AddIpOverrideResponse> AddIpOverrideAsync(string name, IpOverrideData ipOverrideData, CancellationToken cancellationToken)

Adds an IP override to a key. The following restrictions hold:

- The maximum number of IP overrides per key is 1000.
- For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override added to the key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AddIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    AddIpOverrideResponse response = await recaptchaEnterpriseServiceClient.AddIpOverrideAsync(name, ipOverrideData);

### AnnotateAssessment(AnnotateAssessmentRequest, CallSettings)

    public virtual AnnotateAssessmentResponse AnnotateAssessment(AnnotateAssessmentRequest request, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
    {
        AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
        Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
        Reasons =
        {
            AnnotateAssessmentRequest.Types.Reason.Unspecified,
        },
        HashedAccountId = ByteString.Empty,
        TransactionEvent = new TransactionEvent(),
        PhoneAuthenticationEvent = new PhoneAuthenticationEvent(),
        AccountId = "",
    };
    // Make the request
    AnnotateAssessmentResponse response = recaptchaEnterpriseServiceClient.AnnotateAssessment(request);

### AnnotateAssessment(AssessmentName, Annotation, CallSettings)

    public virtual AnnotateAssessmentResponse AnnotateAssessment(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AssessmentName` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = recaptchaEnterpriseServiceClient.AnnotateAssessment(name, annotation);

### AnnotateAssessment(string, Annotation, CallSettings)

    public virtual AnnotateAssessmentResponse AnnotateAssessment(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = recaptchaEnterpriseServiceClient.AnnotateAssessment(name, annotation);

### AnnotateAssessmentAsync(AnnotateAssessmentRequest, CallSettings)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AnnotateAssessmentRequest request, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
    {
        AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
        Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
        Reasons =
        {
            AnnotateAssessmentRequest.Types.Reason.Unspecified,
        },
        HashedAccountId = ByteString.Empty,
        TransactionEvent = new TransactionEvent(),
        PhoneAuthenticationEvent = new PhoneAuthenticationEvent(),
        AccountId = "",
    };
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(request);

### AnnotateAssessmentAsync(AnnotateAssessmentRequest, CancellationToken)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AnnotateAssessmentRequest request, CancellationToken cancellationToken)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AnnotateAssessmentRequest request = new AnnotateAssessmentRequest
    {
        AssessmentName = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]"),
        Annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified,
        Reasons =
        {
            AnnotateAssessmentRequest.Types.Reason.Unspecified,
        },
        HashedAccountId = ByteString.Empty,
        TransactionEvent = new TransactionEvent(),
        PhoneAuthenticationEvent = new PhoneAuthenticationEvent(),
        AccountId = "",
    };
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(request);

### AnnotateAssessmentAsync(AssessmentName, Annotation, CallSettings)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AssessmentName` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(name, annotation);

### AnnotateAssessmentAsync(AssessmentName, Annotation, CancellationToken)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(AssessmentName name, AnnotateAssessmentRequest.Types.Annotation annotation, CancellationToken cancellationToken)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AssessmentName` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    AssessmentName name = AssessmentName.FromProjectAssessment("[PROJECT]", "[ASSESSMENT]");
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(name, annotation);

### AnnotateAssessmentAsync(string, Annotation, CallSettings)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CallSettings callSettings = null)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(name, annotation);

### AnnotateAssessmentAsync(string, Annotation, CancellationToken)

    public virtual Task<AnnotateAssessmentResponse> AnnotateAssessmentAsync(string name, AnnotateAssessmentRequest.Types.Annotation annotation, CancellationToken cancellationToken)

Annotates a previously created Assessment to provide additional information
on whether the event turned out to be authentic or fraudulent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`. |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentRequest.Types.Annotation` Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.AnnotateAssessmentResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/assessments/[ASSESSMENT]";
    AnnotateAssessmentRequest.Types.Annotation annotation = AnnotateAssessmentRequest.Types.Annotation.Unspecified;
    // Make the request
    AnnotateAssessmentResponse response = await recaptchaEnterpriseServiceClient.AnnotateAssessmentAsync(name, annotation);

### Create()

    public static RecaptchaEnterpriseServiceClient Create()

Synchronously creates a [RecaptchaEnterpriseServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[RecaptchaEnterpriseServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient` | The created [RecaptchaEnterpriseServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient). |

### CreateAssessment(ProjectName, Assessment, CallSettings)

    public virtual Assessment CreateAssessment(ProjectName parent, Assessment assessment, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = recaptchaEnterpriseServiceClient.CreateAssessment(parent, assessment);

### CreateAssessment(CreateAssessmentRequest, CallSettings)

    public virtual Assessment CreateAssessment(CreateAssessmentRequest request, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    CreateAssessmentRequest request = new CreateAssessmentRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Assessment = new Assessment(),
    };
    // Make the request
    Assessment response = recaptchaEnterpriseServiceClient.CreateAssessment(request);

### CreateAssessment(string, Assessment, CallSettings)

    public virtual Assessment CreateAssessment(string parent, Assessment assessment, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = recaptchaEnterpriseServiceClient.CreateAssessment(parent, assessment);

### CreateAssessmentAsync(ProjectName, Assessment, CallSettings)

    public virtual Task<Assessment> CreateAssessmentAsync(ProjectName parent, Assessment assessment, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(parent, assessment);

### CreateAssessmentAsync(ProjectName, Assessment, CancellationToken)

    public virtual Task<Assessment> CreateAssessmentAsync(ProjectName parent, Assessment assessment, CancellationToken cancellationToken)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(parent, assessment);

### CreateAssessmentAsync(CreateAssessmentRequest, CallSettings)

    public virtual Task<Assessment> CreateAssessmentAsync(CreateAssessmentRequest request, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateAssessmentRequest request = new CreateAssessmentRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Assessment = new Assessment(),
    };
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(request);

### CreateAssessmentAsync(CreateAssessmentRequest, CancellationToken)

    public virtual Task<Assessment> CreateAssessmentAsync(CreateAssessmentRequest request, CancellationToken cancellationToken)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateAssessmentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateAssessmentRequest request = new CreateAssessmentRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Assessment = new Assessment(),
    };
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(request);

### CreateAssessmentAsync(string, Assessment, CallSettings)

    public virtual Task<Assessment> CreateAssessmentAsync(string parent, Assessment assessment, CallSettings callSettings = null)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(parent, assessment);

### CreateAssessmentAsync(string, Assessment, CancellationToken)

    public virtual Task<Assessment> CreateAssessmentAsync(string parent, Assessment assessment, CancellationToken cancellationToken)

Creates an Assessment of the likelihood an event is legitimate.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the assessment is created, in the format `projects/{project}`. |
| `assessment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` Required. The assessment details. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Assessment` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Assessment assessment = new Assessment();
    // Make the request
    Assessment response = await recaptchaEnterpriseServiceClient.CreateAssessmentAsync(parent, assessment);

### CreateAsync(CancellationToken)

    public static Task<RecaptchaEnterpriseServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [RecaptchaEnterpriseServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[RecaptchaEnterpriseServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient` | The task representing the created [RecaptchaEnterpriseServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient). |

### CreateFirewallPolicy(ProjectName, FirewallPolicy, CallSettings)

    public virtual FirewallPolicy CreateFirewallPolicy(ProjectName parent, FirewallPolicy firewallPolicy, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy);

### CreateFirewallPolicy(CreateFirewallPolicyRequest, CallSettings)

    public virtual FirewallPolicy CreateFirewallPolicy(CreateFirewallPolicyRequest request, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicy = new FirewallPolicy(),
    };
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(request);

### CreateFirewallPolicy(string, FirewallPolicy, CallSettings)

    public virtual FirewallPolicy CreateFirewallPolicy(string parent, FirewallPolicy firewallPolicy, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy);

### CreateFirewallPolicyAsync(ProjectName, FirewallPolicy, CallSettings)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(ProjectName parent, FirewallPolicy firewallPolicy, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy);

### CreateFirewallPolicyAsync(ProjectName, FirewallPolicy, CancellationToken)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(ProjectName parent, FirewallPolicy firewallPolicy, CancellationToken cancellationToken)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy);

### CreateFirewallPolicyAsync(CreateFirewallPolicyRequest, CallSettings)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(CreateFirewallPolicyRequest request, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicy = new FirewallPolicy(),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(request);

### CreateFirewallPolicyAsync(CreateFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(CreateFirewallPolicyRequest request, CancellationToken cancellationToken)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicy = new FirewallPolicy(),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(request);

### CreateFirewallPolicyAsync(string, FirewallPolicy, CallSettings)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(string parent, FirewallPolicy firewallPolicy, CallSettings callSettings = null)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy);

### CreateFirewallPolicyAsync(string, FirewallPolicy, CancellationToken)

    public virtual Task<FirewallPolicy> CreateFirewallPolicyAsync(string parent, FirewallPolicy firewallPolicy, CancellationToken cancellationToken)

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
Enterprise actions can be executed.
A project may have a maximum of 1000 policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project this policy applies to, in the format `projects/{project}`. |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. Information to create the policy. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy);

### CreateKey(ProjectName, Key, CallSettings)

    public virtual Key CreateKey(ProjectName parent, Key key, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Key key = new Key();
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.CreateKey(parent, key);

### CreateKey(CreateKeyRequest, CallSettings)

    public virtual Key CreateKey(CreateKeyRequest request, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    CreateKeyRequest request = new CreateKeyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Key = new Key(),
    };
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.CreateKey(request);

### CreateKey(string, Key, CallSettings)

    public virtual Key CreateKey(string parent, Key key, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Key key = new Key();
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.CreateKey(parent, key);

### CreateKeyAsync(ProjectName, Key, CallSettings)

    public virtual Task<Key> CreateKeyAsync(ProjectName parent, Key key, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Key key = new Key();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(parent, key);

### CreateKeyAsync(ProjectName, Key, CancellationToken)

    public virtual Task<Key> CreateKeyAsync(ProjectName parent, Key key, CancellationToken cancellationToken)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Key key = new Key();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(parent, key);

### CreateKeyAsync(CreateKeyRequest, CallSettings)

    public virtual Task<Key> CreateKeyAsync(CreateKeyRequest request, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateKeyRequest request = new CreateKeyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Key = new Key(),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(request);

### CreateKeyAsync(CreateKeyRequest, CancellationToken)

    public virtual Task<Key> CreateKeyAsync(CreateKeyRequest request, CancellationToken cancellationToken)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.CreateKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateKeyRequest request = new CreateKeyRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Key = new Key(),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(request);

### CreateKeyAsync(string, Key, CallSettings)

    public virtual Task<Key> CreateKeyAsync(string parent, Key key, CallSettings callSettings = null)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Key key = new Key();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(parent, key);

### CreateKeyAsync(string, Key, CancellationToken)

    public virtual Task<Key> CreateKeyAsync(string parent, Key key, CancellationToken cancellationToken)

Creates a new reCAPTCHA Enterprise key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project in which the key is created, in the format `projects/{project}`. |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. Information to create a reCAPTCHA Enterprise key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Key key = new Key();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.CreateKeyAsync(parent, key);

### DeleteFirewallPolicy(DeleteFirewallPolicyRequest, CallSettings)

    public virtual void DeleteFirewallPolicy(DeleteFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(request);

### DeleteFirewallPolicy(FirewallPolicyName, CallSettings)

    public virtual void DeleteFirewallPolicy(FirewallPolicyName name, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name);

### DeleteFirewallPolicy(string, CallSettings)

    public virtual void DeleteFirewallPolicy(string name, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name);

### DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest, CallSettings)

    public virtual Task DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest request, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(request);

### DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest, CancellationToken)

    public virtual Task DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest request, CancellationToken cancellationToken)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(request);

### DeleteFirewallPolicyAsync(FirewallPolicyName, CallSettings)

    public virtual Task DeleteFirewallPolicyAsync(FirewallPolicyName name, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name);

### DeleteFirewallPolicyAsync(FirewallPolicyName, CancellationToken)

    public virtual Task DeleteFirewallPolicyAsync(FirewallPolicyName name, CancellationToken cancellationToken)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name);

### DeleteFirewallPolicyAsync(string, CallSettings)

    public virtual Task DeleteFirewallPolicyAsync(string name, CallSettings callSettings = null)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name);

### DeleteFirewallPolicyAsync(string, CancellationToken)

    public virtual Task DeleteFirewallPolicyAsync(string name, CancellationToken cancellationToken)

Deletes the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the policy to be deleted, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name);

### DeleteKey(DeleteKeyRequest, CallSettings)

    public virtual void DeleteKey(DeleteKeyRequest request, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    DeleteKeyRequest request = new DeleteKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteKey(request);

### DeleteKey(KeyName, CallSettings)

    public virtual void DeleteKey(KeyName name, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteKey(name);

### DeleteKey(string, CallSettings)

    public virtual void DeleteKey(string name, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    recaptchaEnterpriseServiceClient.DeleteKey(name);

### DeleteKeyAsync(DeleteKeyRequest, CallSettings)

    public virtual Task DeleteKeyAsync(DeleteKeyRequest request, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteKeyRequest request = new DeleteKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(request);

### DeleteKeyAsync(DeleteKeyRequest, CancellationToken)

    public virtual Task DeleteKeyAsync(DeleteKeyRequest request, CancellationToken cancellationToken)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.DeleteKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteKeyRequest request = new DeleteKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(request);

### DeleteKeyAsync(KeyName, CallSettings)

    public virtual Task DeleteKeyAsync(KeyName name, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(name);

### DeleteKeyAsync(KeyName, CancellationToken)

    public virtual Task DeleteKeyAsync(KeyName name, CancellationToken cancellationToken)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(name);

### DeleteKeyAsync(string, CallSettings)

    public virtual Task DeleteKeyAsync(string name, CallSettings callSettings = null)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(name);

### DeleteKeyAsync(string, CancellationToken)

    public virtual Task DeleteKeyAsync(string name, CancellationToken cancellationToken)

Deletes the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key to be deleted, in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    await recaptchaEnterpriseServiceClient.DeleteKeyAsync(name);

### GetFirewallPolicy(FirewallPolicyName, CallSettings)

    public virtual FirewallPolicy GetFirewallPolicy(FirewallPolicyName name, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name);

### GetFirewallPolicy(GetFirewallPolicyRequest, CallSettings)

    public virtual FirewallPolicy GetFirewallPolicy(GetFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    GetFirewallPolicyRequest request = new GetFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(request);

### GetFirewallPolicy(string, CallSettings)

    public virtual FirewallPolicy GetFirewallPolicy(string name, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name);

### GetFirewallPolicyAsync(FirewallPolicyName, CallSettings)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(FirewallPolicyName name, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name);

### GetFirewallPolicyAsync(FirewallPolicyName, CancellationToken)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(FirewallPolicyName name, CancellationToken cancellationToken)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]");
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name);

### GetFirewallPolicyAsync(GetFirewallPolicyRequest, CallSettings)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(GetFirewallPolicyRequest request, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetFirewallPolicyRequest request = new GetFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(request);

### GetFirewallPolicyAsync(GetFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(GetFirewallPolicyRequest request, CancellationToken cancellationToken)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetFirewallPolicyRequest request = new GetFirewallPolicyRequest
    {
        FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(request);

### GetFirewallPolicyAsync(string, CallSettings)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(string name, CallSettings callSettings = null)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name);

### GetFirewallPolicyAsync(string, CancellationToken)

    public virtual Task<FirewallPolicy> GetFirewallPolicyAsync(string name, CancellationToken cancellationToken)

Returns the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested policy, in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]";
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name);

### GetKey(GetKeyRequest, CallSettings)

    public virtual Key GetKey(GetKeyRequest request, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    GetKeyRequest request = new GetKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.GetKey(request);

### GetKey(KeyName, CallSettings)

    public virtual Key GetKey(KeyName name, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.GetKey(name);

### GetKey(string, CallSettings)

    public virtual Key GetKey(string name, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.GetKey(name);

### GetKeyAsync(GetKeyRequest, CallSettings)

    public virtual Task<Key> GetKeyAsync(GetKeyRequest request, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetKeyRequest request = new GetKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(request);

### GetKeyAsync(GetKeyRequest, CancellationToken)

    public virtual Task<Key> GetKeyAsync(GetKeyRequest request, CancellationToken cancellationToken)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetKeyRequest request = new GetKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(request);

### GetKeyAsync(KeyName, CallSettings)

    public virtual Task<Key> GetKeyAsync(KeyName name, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(name);

### GetKeyAsync(KeyName, CancellationToken)

    public virtual Task<Key> GetKeyAsync(KeyName name, CancellationToken cancellationToken)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(name);

### GetKeyAsync(string, CallSettings)

    public virtual Task<Key> GetKeyAsync(string name, CallSettings callSettings = null)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(name);

### GetKeyAsync(string, CancellationToken)

    public virtual Task<Key> GetKeyAsync(string name, CancellationToken cancellationToken)

Returns the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested key, in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.GetKeyAsync(name);

### GetMetrics(GetMetricsRequest, CallSettings)

    public virtual Metrics GetMetrics(GetMetricsRequest request, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetMetricsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    GetMetricsRequest request = new GetMetricsRequest
    {
        MetricsName = MetricsName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Metrics response = recaptchaEnterpriseServiceClient.GetMetrics(request);

### GetMetrics(MetricsName, CallSettings)

    public virtual Metrics GetMetrics(MetricsName name, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MetricsName` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    MetricsName name = MetricsName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Metrics response = recaptchaEnterpriseServiceClient.GetMetrics(name);

### GetMetrics(string, CallSettings)

    public virtual Metrics GetMetrics(string name, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]/metrics";
    // Make the request
    Metrics response = recaptchaEnterpriseServiceClient.GetMetrics(name);

### GetMetricsAsync(GetMetricsRequest, CallSettings)

    public virtual Task<Metrics> GetMetricsAsync(GetMetricsRequest request, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetMetricsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMetricsRequest request = new GetMetricsRequest
    {
        MetricsName = MetricsName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(request);

### GetMetricsAsync(GetMetricsRequest, CancellationToken)

    public virtual Task<Metrics> GetMetricsAsync(GetMetricsRequest request, CancellationToken cancellationToken)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.GetMetricsRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMetricsRequest request = new GetMetricsRequest
    {
        MetricsName = MetricsName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(request);

### GetMetricsAsync(MetricsName, CallSettings)

    public virtual Task<Metrics> GetMetricsAsync(MetricsName name, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MetricsName` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    MetricsName name = MetricsName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(name);

### GetMetricsAsync(MetricsName, CancellationToken)

    public virtual Task<Metrics> GetMetricsAsync(MetricsName name, CancellationToken cancellationToken)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MetricsName` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    MetricsName name = MetricsName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(name);

### GetMetricsAsync(string, CallSettings)

    public virtual Task<Metrics> GetMetricsAsync(string name, CallSettings callSettings = null)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]/metrics";
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(name);

### GetMetricsAsync(string, CancellationToken)

    public virtual Task<Metrics> GetMetricsAsync(string name, CancellationToken cancellationToken)

Get some aggregated metrics for a Key. This data can be used to build
dashboards.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested metrics, in the format `projects/{project}/keys/{key}/metrics`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Metrics` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]/metrics";
    // Make the request
    Metrics response = await recaptchaEnterpriseServiceClient.GetMetricsAsync(name);

### ListFirewallPolicies(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPolicies(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFirewallPoliciesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFirewallPolicies(ListFirewallPoliciesRequest, CallSettings)

    public virtual PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPolicies(ListFirewallPoliciesRequest request, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFirewallPoliciesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFirewallPolicies(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (FirewallPolicy item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListFirewallPoliciesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFirewallPoliciesAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPoliciesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable asynchronous sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((FirewallPolicy item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFirewallPoliciesAsync(ListFirewallPoliciesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPoliciesAsync(ListFirewallPoliciesRequest request, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable asynchronous sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((FirewallPolicy item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListFirewallPoliciesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> ListFirewallPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all firewall policies that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A pageable asynchronous sequence of [FirewallPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedAsyncEnumerable<ListFirewallPoliciesResponse, FirewallPolicy> response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((FirewallPolicy item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (FirewallPolicy item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<FirewallPolicy> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (FirewallPolicy item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverrides(KeyName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverrides(KeyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The parent key for which the IP overrides are listed, in the format `projects/{project}/keys/{key}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName parent = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    PagedEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverrides(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (IpOverrideData item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListIpOverridesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverrides(ListIpOverridesRequest, CallSettings)

    public virtual PagedEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverrides(ListIpOverridesRequest request, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ListIpOverridesRequest request = new ListIpOverridesRequest
    {
        ParentAsKeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    PagedEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverrides(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (IpOverrideData item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListIpOverridesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverrides(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverrides(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent key for which the IP overrides are listed, in the format `projects/{project}/keys/{key}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    PagedEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverrides(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (IpOverrideData item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListIpOverridesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverridesAsync(KeyName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverridesAsync(KeyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The parent key for which the IP overrides are listed, in the format `projects/{project}/keys/{key}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable asynchronous sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName parent = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverridesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((IpOverrideData item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListIpOverridesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverridesAsync(ListIpOverridesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverridesAsync(ListIpOverridesRequest request, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable asynchronous sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListIpOverridesRequest request = new ListIpOverridesRequest
    {
        ParentAsKeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverridesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((IpOverrideData item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListIpOverridesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListIpOverridesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> ListIpOverridesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all IP overrides for a key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent key for which the IP overrides are listed, in the format `projects/{project}/keys/{key}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListIpOverridesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` | A pageable asynchronous sequence of [IpOverrideData](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    PagedAsyncEnumerable<ListIpOverridesResponse, IpOverrideData> response = recaptchaEnterpriseServiceClient.ListIpOverridesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((IpOverrideData item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListIpOverridesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (IpOverrideData item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<IpOverrideData> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (IpOverrideData item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeys(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListKeysResponse, Key> ListKeys(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project that contains the keys that is listed, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeys(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Key item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListKeysResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeys(ListKeysRequest, CallSettings)

    public virtual PagedEnumerable<ListKeysResponse, Key> ListKeys(ListKeysRequest request, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ListKeysRequest request = new ListKeysRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeys(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Key item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListKeysResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeys(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListKeysResponse, Key> ListKeys(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project that contains the keys that is listed, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeys(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Key item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListKeysResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeysAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListKeysResponse, Key> ListKeysAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project that contains the keys that is listed, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable asynchronous sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeysAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Key item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListKeysResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeysAsync(ListKeysRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListKeysResponse, Key> ListKeysAsync(ListKeysRequest request, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable asynchronous sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListKeysRequest request = new ListKeysRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeysAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Key item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListKeysResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListKeysAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListKeysResponse, Key> ListKeysAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns the list of all keys that belong to a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project that contains the keys that is listed, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListKeysResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A pageable asynchronous sequence of [Key](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedAsyncEnumerable<ListKeysResponse, Key> response = recaptchaEnterpriseServiceClient.ListKeysAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Key item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListKeysResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Key item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Key> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Key item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ListRelatedAccountGroupMembershipsRequest request = new ListRelatedAccountGroupMembershipsRequest
    {
        ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
    };
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMemberships(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroupMembership item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMemberships(RelatedAccountGroupName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMemberships(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupName` Required. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMemberships(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroupMembership item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMemberships(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMemberships(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMemberships(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroupMembership item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMembershipsAsync(ListRelatedAccountGroupMembershipsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMembershipsAsync(ListRelatedAccountGroupMembershipsRequest request, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListRelatedAccountGroupMembershipsRequest request = new ListRelatedAccountGroupMembershipsRequest
    {
        ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMembershipsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroupMembership item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupMembershipsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMembershipsAsync(RelatedAccountGroupName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMembershipsAsync(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupName` Required. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMembershipsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroupMembership item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupMembershipsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupMembershipsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> ListRelatedAccountGroupMembershipsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Get memberships in a group of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupMembershipsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroupMembership item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupMembershipsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroups(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroups(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list related account groups from, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroups(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroup item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroups(ListRelatedAccountGroupsRequest, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroups(ListRelatedAccountGroupsRequest request, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ListRelatedAccountGroupsRequest request = new ListRelatedAccountGroupsRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroups(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroup item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroups(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list related account groups from, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroups(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroup item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListRelatedAccountGroupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupsAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroupsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list related account groups from, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable asynchronous sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroup item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupsAsync(ListRelatedAccountGroupsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroupsAsync(ListRelatedAccountGroupsRequest request, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable asynchronous sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListRelatedAccountGroupsRequest request = new ListRelatedAccountGroupsRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroup item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListRelatedAccountGroupsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> ListRelatedAccountGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List groups of related accounts.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list related account groups from, in the format `projects/{project}`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup` | A pageable asynchronous sequence of [RelatedAccountGroup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroup) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedAsyncEnumerable<ListRelatedAccountGroupsResponse, RelatedAccountGroup> response = recaptchaEnterpriseServiceClient.ListRelatedAccountGroupsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroup item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListRelatedAccountGroupsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroup item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroup> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroup item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### MigrateKey(MigrateKeyRequest, CallSettings)

    public virtual Key MigrateKey(MigrateKeyRequest request, CallSettings callSettings = null)

Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
Once a key is migrated, it can be used from either product. SiteVerify
requests are billed as CreateAssessment calls. You must be
authenticated as one of the current owners of the reCAPTCHA Key, and
your user must have the reCAPTCHA Enterprise Admin IAM role in the
destination project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MigrateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    MigrateKeyRequest request = new MigrateKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        SkipBillingCheck = false,
    };
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.MigrateKey(request);

### MigrateKeyAsync(MigrateKeyRequest, CallSettings)

    public virtual Task<Key> MigrateKeyAsync(MigrateKeyRequest request, CallSettings callSettings = null)

Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
Once a key is migrated, it can be used from either product. SiteVerify
requests are billed as CreateAssessment calls. You must be
authenticated as one of the current owners of the reCAPTCHA Key, and
your user must have the reCAPTCHA Enterprise Admin IAM role in the
destination project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MigrateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrateKeyRequest request = new MigrateKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        SkipBillingCheck = false,
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.MigrateKeyAsync(request);

### MigrateKeyAsync(MigrateKeyRequest, CancellationToken)

    public virtual Task<Key> MigrateKeyAsync(MigrateKeyRequest request, CancellationToken cancellationToken)

Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
Once a key is migrated, it can be used from either product. SiteVerify
requests are billed as CreateAssessment calls. You must be
authenticated as one of the current owners of the reCAPTCHA Key, and
your user must have the reCAPTCHA Enterprise Admin IAM role in the
destination project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.MigrateKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrateKeyRequest request = new MigrateKeyRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        SkipBillingCheck = false,
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.MigrateKeyAsync(request);

### RemoveIpOverride(KeyName, IpOverrideData, CallSettings)

    public virtual RemoveIpOverrideResponse RemoveIpOverride(KeyName name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = recaptchaEnterpriseServiceClient.RemoveIpOverride(name, ipOverrideData);

### RemoveIpOverride(RemoveIpOverrideRequest, CallSettings)

    public virtual RemoveIpOverrideResponse RemoveIpOverride(RemoveIpOverrideRequest request, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    RemoveIpOverrideRequest request = new RemoveIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    RemoveIpOverrideResponse response = recaptchaEnterpriseServiceClient.RemoveIpOverride(request);

### RemoveIpOverride(string, IpOverrideData, CallSettings)

    public virtual RemoveIpOverrideResponse RemoveIpOverride(string name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = recaptchaEnterpriseServiceClient.RemoveIpOverride(name, ipOverrideData);

### RemoveIpOverrideAsync(KeyName, IpOverrideData, CallSettings)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(KeyName name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(name, ipOverrideData);

### RemoveIpOverrideAsync(KeyName, IpOverrideData, CancellationToken)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(KeyName name, IpOverrideData ipOverrideData, CancellationToken cancellationToken)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName name = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(name, ipOverrideData);

### RemoveIpOverrideAsync(RemoveIpOverrideRequest, CallSettings)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(RemoveIpOverrideRequest request, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    RemoveIpOverrideRequest request = new RemoveIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(request);

### RemoveIpOverrideAsync(RemoveIpOverrideRequest, CancellationToken)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(RemoveIpOverrideRequest request, CancellationToken cancellationToken)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    RemoveIpOverrideRequest request = new RemoveIpOverrideRequest
    {
        KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
        IpOverrideData = new IpOverrideData(),
    };
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(request);

### RemoveIpOverrideAsync(string, IpOverrideData, CallSettings)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(string name, IpOverrideData ipOverrideData, CallSettings callSettings = null)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(name, ipOverrideData);

### RemoveIpOverrideAsync(string, IpOverrideData, CancellationToken)

    public virtual Task<RemoveIpOverrideResponse> RemoveIpOverrideAsync(string name, IpOverrideData ipOverrideData, CancellationToken cancellationToken)

Removes an IP override from a key. The following restrictions hold:

- If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned.
- If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the key from which the IP override is removed, in the format `projects/{project}/keys/{key}`. |
| `ipOverrideData` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.IpOverrideData` Required. IP override to be removed from the key. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RemoveIpOverrideResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/keys/[KEY]";
    IpOverrideData ipOverrideData = new IpOverrideData();
    // Make the request
    RemoveIpOverrideResponse response = await recaptchaEnterpriseServiceClient.RemoveIpOverrideAsync(name, ipOverrideData);

### ReorderFirewallPolicies(ProjectName, IEnumerable\<FirewallPolicyName\>, CallSettings)

    public virtual ReorderFirewallPoliciesResponse ReorderFirewallPolicies(ProjectName parent, IEnumerable<FirewallPolicyName> names, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<FirewallPolicyName> names = new FirewallPolicyName[]
    {
        FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = recaptchaEnterpriseServiceClient.ReorderFirewallPolicies(parent, names);

### ReorderFirewallPolicies(ReorderFirewallPoliciesRequest, CallSettings)

    public virtual ReorderFirewallPoliciesResponse ReorderFirewallPolicies(ReorderFirewallPoliciesRequest request, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    ReorderFirewallPoliciesRequest request = new ReorderFirewallPoliciesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicyNames =
        {
            FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
        },
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = recaptchaEnterpriseServiceClient.ReorderFirewallPolicies(request);

### ReorderFirewallPolicies(string, IEnumerable\<string\>, CallSettings)

    public virtual ReorderFirewallPoliciesResponse ReorderFirewallPolicies(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<string> names = new string[]
    {
        "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]",
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = recaptchaEnterpriseServiceClient.ReorderFirewallPolicies(parent, names);

### ReorderFirewallPoliciesAsync(ProjectName, IEnumerable\<FirewallPolicyName\>, CallSettings)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(ProjectName parent, IEnumerable<FirewallPolicyName> names, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<FirewallPolicyName> names = new FirewallPolicyName[]
    {
        FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(parent, names);

### ReorderFirewallPoliciesAsync(ProjectName, IEnumerable\<FirewallPolicyName\>, CancellationToken)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(ProjectName parent, IEnumerable<FirewallPolicyName> names, CancellationToken cancellationToken)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<FirewallPolicyName> names = new FirewallPolicyName[]
    {
        FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(parent, names);

### ReorderFirewallPoliciesAsync(ReorderFirewallPoliciesRequest, CallSettings)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(ReorderFirewallPoliciesRequest request, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReorderFirewallPoliciesRequest request = new ReorderFirewallPoliciesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicyNames =
        {
            FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
        },
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(request);

### ReorderFirewallPoliciesAsync(ReorderFirewallPoliciesRequest, CancellationToken)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(ReorderFirewallPoliciesRequest request, CancellationToken cancellationToken)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReorderFirewallPoliciesRequest request = new ReorderFirewallPoliciesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        FirewallPolicyNames =
        {
            FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"),
        },
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(request);

### ReorderFirewallPoliciesAsync(string, IEnumerable\<string\>, CallSettings)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<string> names = new string[]
    {
        "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]",
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(parent, names);

### ReorderFirewallPoliciesAsync(string, IEnumerable\<string\>, CancellationToken)

    public virtual Task<ReorderFirewallPoliciesResponse> ReorderFirewallPoliciesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)

Reorders all firewall policies.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to list the policies for, in the format `projects/{project}`. |
| `names` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. A list containing all policy names, in the new order. Each name is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.ReorderFirewallPoliciesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<string> names = new string[]
    {
        "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]",
    };
    // Make the request
    ReorderFirewallPoliciesResponse response = await recaptchaEnterpriseServiceClient.ReorderFirewallPoliciesAsync(parent, names);

### RetrieveLegacySecretKey(KeyName, CallSettings)

    public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(KeyName key, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    KeyName key = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    RetrieveLegacySecretKeyResponse response = recaptchaEnterpriseServiceClient.RetrieveLegacySecretKey(key);

### RetrieveLegacySecretKey(RetrieveLegacySecretKeyRequest, CallSettings)

    public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(RetrieveLegacySecretKeyRequest request, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    RetrieveLegacySecretKeyRequest request = new RetrieveLegacySecretKeyRequest
    {
        KeyAsKeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    RetrieveLegacySecretKeyResponse response = recaptchaEnterpriseServiceClient.RetrieveLegacySecretKey(request);

### RetrieveLegacySecretKey(string, CallSettings)

    public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(string key, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    string key = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    RetrieveLegacySecretKeyResponse response = recaptchaEnterpriseServiceClient.RetrieveLegacySecretKey(key);

### RetrieveLegacySecretKeyAsync(KeyName, CallSettings)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(KeyName key, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName key = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(key);

### RetrieveLegacySecretKeyAsync(KeyName, CancellationToken)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(KeyName key, CancellationToken cancellationToken)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.KeyName` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    KeyName key = KeyName.FromProjectKey("[PROJECT]", "[KEY]");
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(key);

### RetrieveLegacySecretKeyAsync(RetrieveLegacySecretKeyRequest, CallSettings)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(RetrieveLegacySecretKeyRequest request, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveLegacySecretKeyRequest request = new RetrieveLegacySecretKeyRequest
    {
        KeyAsKeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(request);

### RetrieveLegacySecretKeyAsync(RetrieveLegacySecretKeyRequest, CancellationToken)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(RetrieveLegacySecretKeyRequest request, CancellationToken cancellationToken)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveLegacySecretKeyRequest request = new RetrieveLegacySecretKeyRequest
    {
        KeyAsKeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
    };
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(request);

### RetrieveLegacySecretKeyAsync(string, CallSettings)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(string key, CallSettings callSettings = null)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string key = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(key);

### RetrieveLegacySecretKeyAsync(string, CancellationToken)

    public virtual Task<RetrieveLegacySecretKeyResponse> RetrieveLegacySecretKeyAsync(string key, CancellationToken cancellationToken)

Returns the secret key related to the specified public key.
You must use the legacy secret key only in a 3rd party integration with
legacy reCAPTCHA.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The public key name linked to the requested secret key in the format `projects/{project}/keys/{key}`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RetrieveLegacySecretKeyResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string key = "projects/[PROJECT]/keys/[KEY]";
    // Make the request
    RetrieveLegacySecretKeyResponse response = await recaptchaEnterpriseServiceClient.RetrieveLegacySecretKeyAsync(key);

### SearchRelatedAccountGroupMemberships(ProjectName, ByteString, string, int?, CallSettings)

    [Obsolete]
    public virtual PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMemberships(ProjectName project, ByteString hashedAccountId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to search related account group memberships from. Specify the project name in the following format: `projects/{project}`. |
| `hashedAccountId` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

                // Create client
                RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
                // Initialize request argument(s)
                ProjectName project = ProjectName.FromProject("[PROJECT]");
                ByteString hashedAccountId = ByteString.Empty;
                // Make the request
    #pragma warning disable CS0612
                PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
                foreach (RelatedAccountGroupMembership item in response)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }

                // Or iterate over pages (of server-defined size), performing one RPC per page
                foreach (SearchRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
                    foreach (RelatedAccountGroupMembership item in page)
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                }

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
                Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
                foreach (RelatedAccountGroupMembership item in singlePage)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest, CallSettings)

    public virtual PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
    {
        ProjectAsProjectName = ProjectName.FromProject("[PROJECT]"),
        AccountId = "",
    };
    // Make the request
    PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (RelatedAccountGroupMembership item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (SearchRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### SearchRelatedAccountGroupMemberships(string, ByteString, string, int?, CallSettings)

    [Obsolete]
    public virtual PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMemberships(string project, ByteString hashedAccountId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to search related account group memberships from. Specify the project name in the following format: `projects/{project}`. |
| `hashedAccountId` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

                // Create client
                RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
                // Initialize request argument(s)
                string project = "projects/[PROJECT]";
                ByteString hashedAccountId = ByteString.Empty;
                // Make the request
    #pragma warning disable CS0612
                PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
                foreach (RelatedAccountGroupMembership item in response)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }

                // Or iterate over pages (of server-defined size), performing one RPC per page
                foreach (SearchRelatedAccountGroupMembershipsResponse page in response.AsRawResponses())
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
                    foreach (RelatedAccountGroupMembership item in page)
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                }

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
                Page<RelatedAccountGroupMembership> singlePage = response.ReadPage(pageSize);
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
                foreach (RelatedAccountGroupMembership item in singlePage)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### SearchRelatedAccountGroupMembershipsAsync(ProjectName, ByteString, string, int?, CallSettings)

    [Obsolete]
    public virtual PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMembershipsAsync(ProjectName project, ByteString hashedAccountId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. The name of the project to search related account group memberships from. Specify the project name in the following format: `projects/{project}`. |
| `hashedAccountId` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

                // Create client
                RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
                // Initialize request argument(s)
                ProjectName project = ProjectName.FromProject("[PROJECT]");
                ByteString hashedAccountId = ByteString.Empty;
                // Make the request
    #pragma warning disable CS0612
                PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
                await response.ForEachAsync((RelatedAccountGroupMembership item) =>
                {
                    // Do something with each item
                    Console.WriteLine(item);
                });

                // Or iterate over pages (of server-defined size), performing one RPC per page
                await response.AsRawResponses().ForEachAsync((SearchRelatedAccountGroupMembershipsResponse page) =>
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
                    foreach (RelatedAccountGroupMembership item in page)
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                });

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
                Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
                foreach (RelatedAccountGroupMembership item in singlePage)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### SearchRelatedAccountGroupMembershipsAsync(SearchRelatedAccountGroupMembershipsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMembershipsAsync(SearchRelatedAccountGroupMembershipsRequest request, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
    {
        ProjectAsProjectName = ProjectName.FromProject("[PROJECT]"),
        AccountId = "",
    };
    // Make the request
    PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((RelatedAccountGroupMembership item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((SearchRelatedAccountGroupMembershipsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (RelatedAccountGroupMembership item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (RelatedAccountGroupMembership item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### SearchRelatedAccountGroupMembershipsAsync(string, ByteString, string, int?, CallSettings)

    [Obsolete]
    public virtual PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> SearchRelatedAccountGroupMembershipsAsync(string project, ByteString hashedAccountId, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Search group memberships related to a given account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to search related account group memberships from. Specify the project name in the following format: `projects/{project}`. |
| `hashedAccountId` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.SearchRelatedAccountGroupMembershipsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership` | A pageable asynchronous sequence of [RelatedAccountGroupMembership](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RelatedAccountGroupMembership) resources. |

**Example**

                // Create client
                RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
                // Initialize request argument(s)
                string project = "projects/[PROJECT]";
                ByteString hashedAccountId = ByteString.Empty;
                // Make the request
    #pragma warning disable CS0612
                PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);
    #pragma warning restore CS0612

                // Iterate over all response items, lazily performing RPCs as required
                await response.ForEachAsync((RelatedAccountGroupMembership item) =>
                {
                    // Do something with each item
                    Console.WriteLine(item);
                });

                // Or iterate over pages (of server-defined size), performing one RPC per page
                await response.AsRawResponses().ForEachAsync((SearchRelatedAccountGroupMembershipsResponse page) =>
                {
                    // Do something with each page of items
                    Console.WriteLine("A page of results:");
                    foreach (RelatedAccountGroupMembership item in page)
                    {
                        // Do something with each item
                        Console.WriteLine(item);
                    }
                });

                // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
                int pageSize = 10;
                Page<RelatedAccountGroupMembership> singlePage = await response.ReadPageAsync(pageSize);
                // Do something with the page of items
                Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
                foreach (RelatedAccountGroupMembership item in singlePage)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
                // Store the pageToken, for when the next page is required.
                string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient#Google_Cloud_RecaptchaEnterprise_V1_RecaptchaEnterpriseServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient#Google_Cloud_RecaptchaEnterprise_V1_RecaptchaEnterpriseServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient#Google_Cloud_RecaptchaEnterprise_V1_RecaptchaEnterpriseServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient#Google_Cloud_RecaptchaEnterprise_V1_RecaptchaEnterpriseServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateFirewallPolicy(FirewallPolicy, FieldMask, CallSettings)

    public virtual FirewallPolicy UpdateFirewallPolicy(FirewallPolicy firewallPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. The policy to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    FieldMask updateMask = new FieldMask();
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(firewallPolicy, updateMask);

### UpdateFirewallPolicy(UpdateFirewallPolicyRequest, CallSettings)

    public virtual FirewallPolicy UpdateFirewallPolicy(UpdateFirewallPolicyRequest request, CallSettings callSettings = null)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest
    {
        FirewallPolicy = new FirewallPolicy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(request);

### UpdateFirewallPolicyAsync(FirewallPolicy, FieldMask, CallSettings)

    public virtual Task<FirewallPolicy> UpdateFirewallPolicyAsync(FirewallPolicy firewallPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. The policy to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    FieldMask updateMask = new FieldMask();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(firewallPolicy, updateMask);

### UpdateFirewallPolicyAsync(FirewallPolicy, FieldMask, CancellationToken)

    public virtual Task<FirewallPolicy> UpdateFirewallPolicyAsync(FirewallPolicy firewallPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `firewallPolicy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` Required. The policy to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    FirewallPolicy firewallPolicy = new FirewallPolicy();
    FieldMask updateMask = new FieldMask();
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(firewallPolicy, updateMask);

### UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest, CallSettings)

    public virtual Task<FirewallPolicy> UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest request, CallSettings callSettings = null)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest
    {
        FirewallPolicy = new FirewallPolicy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(request);

### UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest, CancellationToken)

    public virtual Task<FirewallPolicy> UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest request, CancellationToken cancellationToken)

Updates the specified firewall policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest
    {
        FirewallPolicy = new FirewallPolicy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(request);

### UpdateKey(Key, FieldMask, CallSettings)

    public virtual Key UpdateKey(Key key, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. The key to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the key get updated. If the mask is not present, all fields are updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    Key key = new Key();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.UpdateKey(key, updateMask);

### UpdateKey(UpdateKeyRequest, CallSettings)

    public virtual Key UpdateKey(UpdateKeyRequest request, CallSettings callSettings = null)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | The RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
    // Initialize request argument(s)
    UpdateKeyRequest request = new UpdateKeyRequest
    {
        Key = new Key(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Key response = recaptchaEnterpriseServiceClient.UpdateKey(request);

### UpdateKeyAsync(Key, FieldMask, CallSettings)

    public virtual Task<Key> UpdateKeyAsync(Key key, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. The key to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the key get updated. If the mask is not present, all fields are updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    Key key = new Key();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.UpdateKeyAsync(key, updateMask);

### UpdateKeyAsync(Key, FieldMask, CancellationToken)

    public virtual Task<Key> UpdateKeyAsync(Key key, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` Required. The key to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. The mask to control which fields of the key get updated. If the mask is not present, all fields are updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    Key key = new Key();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.UpdateKeyAsync(key, updateMask);

### UpdateKeyAsync(UpdateKeyRequest, CallSettings)

    public virtual Task<Key> UpdateKeyAsync(UpdateKeyRequest request, CallSettings callSettings = null)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateKeyRequest request = new UpdateKeyRequest
    {
        Key = new Key(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.UpdateKeyAsync(request);

### UpdateKeyAsync(UpdateKeyRequest, CancellationToken)

    public virtual Task<Key> UpdateKeyAsync(UpdateKeyRequest request, CancellationToken cancellationToken)

Updates the specified key.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.UpdateKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecaptchaEnterprise.V1/latest/Google.Cloud.RecaptchaEnterprise.V1.Key` | A Task containing the RPC response. |

**Example**

    // Create client
    RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateKeyRequest request = new UpdateKeyRequest
    {
        Key = new Key(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Key response = await recaptchaEnterpriseServiceClient.UpdateKeyAsync(request);