Constructor
new Webhooks(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Webhooks service.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Extends
- $protobuf.rpc.Service
Methods
createWebhook(request, callback) → {undefined}
Calls CreateWebhook.
Parameters:
| Name | Type | 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 | 
Returns:
| Type | Description | 
|---|---|
| undefined | 
createWebhook(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook>}
Calls CreateWebhook.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest | CreateWebhookRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise | 
deleteWebhook(request, callback) → {undefined}
Calls DeleteWebhook.
Parameters:
| Name | Type | 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 | 
Returns:
| Type | Description | 
|---|---|
| undefined | 
deleteWebhook(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteWebhook.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest | DeleteWebhookRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.protobuf.Empty> | Promise | 
getWebhook(request, callback) → {undefined}
Calls GetWebhook.
Parameters:
| Name | Type | 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 | 
Returns:
| Type | Description | 
|---|---|
| undefined | 
getWebhook(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook>}
Calls GetWebhook.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest | GetWebhookRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise | 
listWebhooks(request, callback) → {undefined}
Calls ListWebhooks.
Parameters:
| Name | Type | 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 | 
Returns:
| Type | Description | 
|---|---|
| undefined | 
listWebhooks(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse>}
Calls ListWebhooks.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest | ListWebhooksRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse> | Promise | 
updateWebhook(request, callback) → {undefined}
Calls UpdateWebhook.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.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 | 
Returns:
| Type | Description | 
|---|---|
| undefined | 
updateWebhook(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook>}
Calls UpdateWebhook.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest | UpdateWebhookRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3beta1.Webhook> | Promise | 
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Webhooks}
Creates new Webhooks service using the specified rpc implementation.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Returns:
| Type | Description | 
|---|---|
| Webhooks | RPC service. Useful where requests and/or responses are streamed. | 
Type Definitions
CreateWebhookCallback(error, responseopt)
Callback as used by createWebhook.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3beta1.Webhook | <optional> | Webhook | 
DeleteWebhookCallback(error, responseopt)
Callback as used by deleteWebhook.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.protobuf.Empty | <optional> | Empty | 
GetWebhookCallback(error, responseopt)
Callback as used by getWebhook.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3beta1.Webhook | <optional> | Webhook | 
ListWebhooksCallback(error, responseopt)
Callback as used by listWebhooks.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse | <optional> | ListWebhooksResponse | 
UpdateWebhookCallback(error, responseopt)
Callback as used by updateWebhook.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3beta1.Webhook | <optional> | Webhook |