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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ICreateWebhookRequest
CreateWebhookRequest message or plain object |
callback |
CreateWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Returns | |
---|---|
Type | Description |
void |
createWebhook(request)
public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls CreateWebhook.
Parameter | |
---|---|
Name | Description |
request |
ICreateWebhookRequest
CreateWebhookRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
callback |
DeleteWebhookCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteWebhook(request)
public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise<google.protobuf.Empty>;
Calls DeleteWebhook.
Parameter | |
---|---|
Name | Description |
request |
IDeleteWebhookRequest
DeleteWebhookRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetWebhookRequest
GetWebhookRequest message or plain object |
callback |
GetWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Returns | |
---|---|
Type | Description |
void |
getWebhook(request)
public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls GetWebhook.
Parameter | |
---|---|
Name | Description |
request |
IGetWebhookRequest
GetWebhookRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IListWebhooksRequest
ListWebhooksRequest message or plain object |
callback |
ListWebhooksCallback
Node-style callback called with the error, if any, and ListWebhooksResponse |
Returns | |
---|---|
Type | Description |
void |
listWebhooks(request)
public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse>;
Calls ListWebhooks.
Parameter | |
---|---|
Name | Description |
request |
IListWebhooksRequest
ListWebhooksRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
callback |
UpdateWebhookCallback
Node-style callback called with the error, if any, and Webhook |
Returns | |
---|---|
Type | Description |
void |
updateWebhook(request)
public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;
Calls UpdateWebhook.
Parameter | |
---|---|
Name | Description |
request |
IUpdateWebhookRequest
UpdateWebhookRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Webhook> |
Promise |