Represents a Webhooks
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.WebhooksPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Webhooks service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks;
Creates new Webhooks service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
Webhooks | RPC service. Useful where requests and/or responses are streamed. |
createWebhook(request, callback)
public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback): void;
Calls CreateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest
CreateWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Type | Description |
void |
createWebhook(request)
public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls CreateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest
CreateWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise |
deleteWebhook(request, callback)
public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback): void;
Calls DeleteWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteWebhook(request)
public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise<google.protobuf.Empty>;
Calls DeleteWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getWebhook(request, callback)
public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback): void;
Calls GetWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest
GetWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Type | Description |
void |
getWebhook(request)
public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls GetWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest
GetWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise |
listWebhooks(request, callback)
public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback): void;
Calls ListWebhooks.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest
ListWebhooksRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback
Node-style callback called with the error, if any, and ListWebhooksResponse |
Type | Description |
void |
listWebhooks(request)
public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse>;
Calls ListWebhooks.
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest
ListWebhooksRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse> | Promise |
updateWebhook(request, callback)
public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback): void;
Calls UpdateWebhook.
Name | Description |
request |
IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Type | Description |
void |
updateWebhook(request)
public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls UpdateWebhook.
Name | Description |
request |
IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise |