public class WebhooksClient : ClientBase<Webhooks.WebhooksClient>Client for Webhooks
Inheritance
System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<Webhooks.WebhooksClient> > Webhooks.WebhooksClientNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
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 |
Grpc.Core.CallInvokerThe callInvoker to use to make remote calls. |
WebhooksClient(ChannelBase)
public WebhooksClient(ChannelBase channel)Creates a new client for Webhooks
| Parameter | |
|---|---|
| Name | Description |
channel |
Grpc.Core.ChannelBaseThe channel to use to make remote calls. |
WebhooksClient(ClientBase.ClientBaseConfiguration)
protected WebhooksClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
Grpc.Core.ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
CreateWebhook(CreateWebhookRequest, CallOptions)
public virtual Webhook CreateWebhook(CreateWebhookRequest request, CallOptions options)Creates a webhook in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Webhook |
The response received from the server. |
CreateWebhook(CreateWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Webhook CreateWebhook(CreateWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a webhook in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
CreateWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
The call object. |
CreateWebhookAsync(CreateWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Webhook> CreateWebhookAsync(CreateWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Creates a webhook in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
The call object. |
DeleteWebhook(DeleteWebhookRequest, CallOptions)
public virtual Empty DeleteWebhook(DeleteWebhookRequest request, CallOptions options)Deletes the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Google.Protobuf.WellKnownTypes.Empty |
The response received from the server. |
DeleteWebhook(DeleteWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteWebhook(DeleteWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Google.Protobuf.WellKnownTypes.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 |
DeleteWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> |
The call object. |
DeleteWebhookAsync(DeleteWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteWebhookAsync(DeleteWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Deletes the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty> |
The call object. |
GetWebhook(GetWebhookRequest, CallOptions)
public virtual Webhook GetWebhook(GetWebhookRequest request, CallOptions options)Retrieves the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
GetWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Webhook |
The response received from the server. |
GetWebhook(GetWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Webhook GetWebhook(GetWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
GetWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
GetWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
The call object. |
GetWebhookAsync(GetWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Webhook> GetWebhookAsync(GetWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
GetWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
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 |
ListWebhooksRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListWebhooksResponse |
The response received from the server. |
ListWebhooks(ListWebhooksRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListWebhooksResponse ListWebhooks(ListWebhooksRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the list of all webhooks in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListWebhooksRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
ListWebhooksRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<ListWebhooksResponse> |
The call object. |
ListWebhooksAsync(ListWebhooksRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListWebhooksResponse> ListWebhooksAsync(ListWebhooksRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the list of all webhooks in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListWebhooksRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<ListWebhooksResponse> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override Webhooks.WebhooksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
Grpc.Core.ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
Webhooks.WebhooksClient |
|
UpdateWebhook(UpdateWebhookRequest, CallOptions)
public virtual Webhook UpdateWebhook(UpdateWebhookRequest request, CallOptions options)Updates the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Webhook |
The response received from the server. |
UpdateWebhook(UpdateWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Webhook UpdateWebhook(UpdateWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
UpdateWebhookRequestThe request to send to the server. |
options |
Grpc.Core.CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
The call object. |
UpdateWebhookAsync(UpdateWebhookRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Webhook> UpdateWebhookAsync(UpdateWebhookRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates the specified webhook.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWebhookRequestThe request to send to the server. |
headers |
Grpc.Core.MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Grpc.Core.AsyncUnaryCall<Webhook> |
The call object. |