Class protos.google.cloud.dialogflow.cx.v3.Webhooks (4.0.0)

Represents a Webhooks

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.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.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void;

Calls CreateWebhook.

Parameters
NameDescription
request ICreateWebhookRequest

CreateWebhookRequest message or plain object

callback CreateWebhookCallback

Node-style callback called with the error, if any, and Webhook

Returns
TypeDescription
void

createWebhook(request)

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

Calls CreateWebhook.

Parameter
NameDescription
request ICreateWebhookRequest

CreateWebhookRequest message or plain object

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

Parameters
NameDescription
request IDeleteWebhookRequest

DeleteWebhookRequest message or plain object

callback DeleteWebhookCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteWebhook(request)

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

Calls DeleteWebhook.

Parameter
NameDescription
request IDeleteWebhookRequest

DeleteWebhookRequest message or plain object

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

Parameters
NameDescription
request IGetWebhookRequest

GetWebhookRequest message or plain object

callback GetWebhookCallback

Node-style callback called with the error, if any, and Webhook

Returns
TypeDescription
void

getWebhook(request)

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

Calls GetWebhook.

Parameter
NameDescription
request IGetWebhookRequest

GetWebhookRequest message or plain object

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

Parameters
NameDescription
request IListWebhooksRequest

ListWebhooksRequest message or plain object

callback ListWebhooksCallback

Node-style callback called with the error, if any, and ListWebhooksResponse

Returns
TypeDescription
void

listWebhooks(request)

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

Calls ListWebhooks.

Parameter
NameDescription
request IListWebhooksRequest

ListWebhooksRequest message or plain object

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

Parameters
NameDescription
request IUpdateWebhookRequest

UpdateWebhookRequest message or plain object

callback UpdateWebhookCallback

Node-style callback called with the error, if any, and Webhook

Returns
TypeDescription
void

updateWebhook(request)

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

Calls UpdateWebhook.

Parameter
NameDescription
request IUpdateWebhookRequest

UpdateWebhookRequest message or plain object

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

Promise