Class protos.google.cloud.dialogflow.cx.v3beta1.Webhooks (3.1.2)

Represents a Webhooks

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.Webhooks

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Webhooks service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

createWebhook(request)

public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;

Calls CreateWebhook.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest

CreateWebhookRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

deleteWebhook(request)

public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise<google.protobuf.Empty>;

Calls DeleteWebhook.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest

DeleteWebhookRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

getWebhook(request)

public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;

Calls GetWebhook.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest

GetWebhookRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

listWebhooks(request)

public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse>;

Calls ListWebhooks.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest

ListWebhooksRequest message or plain object

Returns
TypeDescription
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
NameDescription
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

Returns
TypeDescription
void

updateWebhook(request)

public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>;

Calls UpdateWebhook.

Parameter
NameDescription
request IUpdateWebhookRequest

UpdateWebhookRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.Webhook>

Promise