3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public class Webhooks.WebhooksClient : ClientBase<Webhooks.WebhooksClient>

Reference documentation and code samples for the Dialogflow v3 API class Webhooks.WebhooksClient.

Client for Webhooks

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[Webhooks](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhooks.md.txt)[WebhooksClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Webhooks.WebhooksClient.md.txt) \> Webhooks.WebhooksClient

## Inherited Members

[ClientBase\<Webhooks.WebhooksClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [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)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### WebhooksClient()

    protected WebhooksClient()

Protected parameterless constructor to allow creation of test doubles.

### WebhooksClient(CallInvoker)

    public WebhooksClient(CallInvoker callInvoker)

Creates a new client for Webhooks that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### WebhooksClient(ChannelBase)

    public WebhooksClient(ChannelBase channel)

Creates a new client for Webhooks

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### WebhooksClient(ClientBaseConfiguration)

    protected WebhooksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateWebhook(CreateWebhookRequest, CallOptions)

    public virtual Webhook CreateWebhook(CreateWebhookRequest request, CallOptions options)

Creates a webhook in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### CreateWebhook(CreateWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual Webhook CreateWebhook(CreateWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a webhook in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### CreateWebhookAsync(CreateWebhookRequest, CallOptions)

    public virtual AsyncUnaryCall<Webhook> CreateWebhookAsync(CreateWebhookRequest request, CallOptions options)

Creates a webhook in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |

### CreateWebhookAsync(CreateWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Webhook> CreateWebhookAsync(CreateWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a webhook in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |

### DeleteWebhook(DeleteWebhookRequest, CallOptions)

    public virtual Empty DeleteWebhook(DeleteWebhookRequest request, CallOptions options)

Deletes the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteWebhook(DeleteWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteWebhook(DeleteWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteWebhookAsync(DeleteWebhookRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteWebhookAsync(DeleteWebhookRequest request, CallOptions options)

Deletes the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeleteWebhookAsync(DeleteWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteWebhookAsync(DeleteWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### GetWebhook(GetWebhookRequest, CallOptions)

    public virtual Webhook GetWebhook(GetWebhookRequest request, CallOptions options)

Retrieves the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### GetWebhook(GetWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual Webhook GetWebhook(GetWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### GetWebhookAsync(GetWebhookRequest, CallOptions)

    public virtual AsyncUnaryCall<Webhook> GetWebhookAsync(GetWebhookRequest request, CallOptions options)

Retrieves the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |

### GetWebhookAsync(GetWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Webhook> GetWebhookAsync(GetWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |

### ListWebhooks(ListWebhooksRequest, CallOptions)

    public virtual ListWebhooksResponse ListWebhooks(ListWebhooksRequest request, CallOptions options)

Returns the list of all webhooks in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListWebhooksRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListWebhooksResponse` | The response received from the server. |

### ListWebhooks(ListWebhooksRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListWebhooksResponse ListWebhooks(ListWebhooksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all webhooks in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListWebhooksRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListWebhooksResponse` | The response received from the server. |

### ListWebhooksAsync(ListWebhooksRequest, CallOptions)

    public virtual AsyncUnaryCall<ListWebhooksResponse> ListWebhooksAsync(ListWebhooksRequest request, CallOptions options)

Returns the list of all webhooks in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListWebhooksRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListWebhooksResponse` | The call object. |

### ListWebhooksAsync(ListWebhooksRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListWebhooksResponse> ListWebhooksAsync(ListWebhooksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all webhooks in the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListWebhooksRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListWebhooksResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override Webhooks.WebhooksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `WebhooksWebhooksClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dialogflow.Cx.V3.Webhooks.WebhooksClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### UpdateWebhook(UpdateWebhookRequest, CallOptions)

    public virtual Webhook UpdateWebhook(UpdateWebhookRequest request, CallOptions options)

Updates the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### UpdateWebhook(UpdateWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual Webhook UpdateWebhook(UpdateWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Webhook` | The response received from the server. |

### UpdateWebhookAsync(UpdateWebhookRequest, CallOptions)

    public virtual AsyncUnaryCall<Webhook> UpdateWebhookAsync(UpdateWebhookRequest request, CallOptions options)

Updates the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateWebhookRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |

### UpdateWebhookAsync(UpdateWebhookRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Webhook> UpdateWebhookAsync(UpdateWebhookRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified webhook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateWebhookRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallWebhook` | The call object. |