Represents a Webhooks
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.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.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void;
Calls CreateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.ICreateWebhookRequest
CreateWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.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.v3.ICreateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3.Webhook>;
Calls CreateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.ICreateWebhookRequest
CreateWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Webhook> | Promise |
deleteWebhook(request, callback)
public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void;
Calls DeleteWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.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.v3.IDeleteWebhookRequest): Promise<google.protobuf.Empty>;
Calls DeleteWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getWebhook(request, callback)
public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void;
Calls GetWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IGetWebhookRequest
GetWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.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.v3.IGetWebhookRequest): Promise<google.cloud.dialogflow.cx.v3.Webhook>;
Calls GetWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IGetWebhookRequest
GetWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Webhook> | Promise |
listWebhooks(request, callback)
public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void;
Calls ListWebhooks.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IListWebhooksRequest
ListWebhooksRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.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.v3.IListWebhooksRequest): Promise<google.cloud.dialogflow.cx.v3.ListWebhooksResponse>;
Calls ListWebhooks.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IListWebhooksRequest
ListWebhooksRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.ListWebhooksResponse> | Promise |
updateWebhook(request, callback)
public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void;
Calls UpdateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.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.v3.IUpdateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3.Webhook>;
Calls UpdateWebhook.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.Webhook> | Promise |