Class WebhooksClientImpl (2.1.0)

public sealed class WebhooksClientImpl : WebhooksClient

Webhooks client wrapper implementation, for convenient use.

Inheritance

Object > WebhooksClient > WebhooksClientImpl

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Remarks

Service for managing [Webhooks][google.cloud.dialogflow.cx.v3.Webhook].

Constructors

WebhooksClientImpl(Webhooks.WebhooksClient, WebhooksSettings, ILogger)

public WebhooksClientImpl(Webhooks.WebhooksClient grpcClient, WebhooksSettings settings, ILogger logger)

Constructs a client wrapper for the Webhooks service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientWebhooks.WebhooksClient

The underlying gRPC client.

settingsWebhooksSettings

The base WebhooksSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Webhooks.WebhooksClient GrpcClient { get; }

The underlying gRPC Webhooks client

Property Value
TypeDescription
Webhooks.WebhooksClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CreateWebhook(CreateWebhookRequest, CallSettings)

public override Webhook CreateWebhook(CreateWebhookRequest request, CallSettings callSettings = null)

Creates a webhook in the specified agent.

Parameters
NameDescription
requestCreateWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Webhook

The RPC response.

Overrides

CreateWebhookAsync(CreateWebhookRequest, CallSettings)

public override Task<Webhook> CreateWebhookAsync(CreateWebhookRequest request, CallSettings callSettings = null)

Creates a webhook in the specified agent.

Parameters
NameDescription
requestCreateWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Webhook>

A Task containing the RPC response.

Overrides

DeleteWebhook(DeleteWebhookRequest, CallSettings)

public override void DeleteWebhook(DeleteWebhookRequest request, CallSettings callSettings = null)

Deletes the specified webhook.

Parameters
NameDescription
requestDeleteWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteWebhookAsync(DeleteWebhookRequest, CallSettings)

public override Task DeleteWebhookAsync(DeleteWebhookRequest request, CallSettings callSettings = null)

Deletes the specified webhook.

Parameters
NameDescription
requestDeleteWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetWebhook(GetWebhookRequest, CallSettings)

public override Webhook GetWebhook(GetWebhookRequest request, CallSettings callSettings = null)

Retrieves the specified webhook.

Parameters
NameDescription
requestGetWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Webhook

The RPC response.

Overrides

GetWebhookAsync(GetWebhookRequest, CallSettings)

public override Task<Webhook> GetWebhookAsync(GetWebhookRequest request, CallSettings callSettings = null)

Retrieves the specified webhook.

Parameters
NameDescription
requestGetWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Webhook>

A Task containing the RPC response.

Overrides

ListWebhooks(ListWebhooksRequest, CallSettings)

public override PagedEnumerable<ListWebhooksResponse, Webhook> ListWebhooks(ListWebhooksRequest request, CallSettings callSettings = null)

Returns the list of all webhooks in the specified agent.

Parameters
NameDescription
requestListWebhooksRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListWebhooksResponse, Webhook>

A pageable sequence of Webhook resources.

Overrides

ListWebhooksAsync(ListWebhooksRequest, CallSettings)

public override PagedAsyncEnumerable<ListWebhooksResponse, Webhook> ListWebhooksAsync(ListWebhooksRequest request, CallSettings callSettings = null)

Returns the list of all webhooks in the specified agent.

Parameters
NameDescription
requestListWebhooksRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListWebhooksResponse, Webhook>

A pageable asynchronous sequence of Webhook resources.

Overrides

UpdateWebhook(UpdateWebhookRequest, CallSettings)

public override Webhook UpdateWebhook(UpdateWebhookRequest request, CallSettings callSettings = null)

Updates the specified webhook.

Parameters
NameDescription
requestUpdateWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Webhook

The RPC response.

Overrides

UpdateWebhookAsync(UpdateWebhookRequest, CallSettings)

public override Task<Webhook> UpdateWebhookAsync(UpdateWebhookRequest request, CallSettings callSettings = null)

Updates the specified webhook.

Parameters
NameDescription
requestUpdateWebhookRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Webhook>

A Task containing the RPC response.

Overrides