Tools

google.cloud.dialogflow.cx.v3beta1. Tools

Represents a Tools

Constructor

new Tools(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Tools 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

createTool(request, callback) → {undefined}

Calls CreateTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.ICreateToolRequest

CreateToolRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.CreateToolCallback

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

Returns:
Type Description
undefined

createTool(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>}

Calls CreateTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.ICreateToolRequest

CreateToolRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>

Promise

deleteTool(request, callback) → {undefined}

Calls DeleteTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IDeleteToolRequest

DeleteToolRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.DeleteToolCallback

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

Returns:
Type Description
undefined

deleteTool(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IDeleteToolRequest

DeleteToolRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

exportTools(request, callback) → {undefined}

Calls ExportTools.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IExportToolsRequest

ExportToolsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.ExportToolsCallback

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

Returns:
Type Description
undefined

exportTools(request) → {Promise.<google.longrunning.Operation>}

Calls ExportTools.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IExportToolsRequest

ExportToolsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getTool(request, callback) → {undefined}

Calls GetTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IGetToolRequest

GetToolRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.GetToolCallback

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

Returns:
Type Description
undefined

getTool(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>}

Calls GetTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IGetToolRequest

GetToolRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>

Promise

listTools(request, callback) → {undefined}

Calls ListTools.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IListToolsRequest

ListToolsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.ListToolsCallback

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

Returns:
Type Description
undefined

listTools(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.ListToolsResponse>}

Calls ListTools.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IListToolsRequest

ListToolsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3beta1.ListToolsResponse>

Promise

updateTool(request, callback) → {undefined}

Calls UpdateTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IUpdateToolRequest

UpdateToolRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Tools.UpdateToolCallback

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

Returns:
Type Description
undefined

updateTool(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>}

Calls UpdateTool.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3beta1.IUpdateToolRequest

UpdateToolRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3beta1.Tool>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Tools}

Creates new Tools 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
Tools

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateToolCallback(error, responseopt)

Callback as used by createTool.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.Tool <optional>

Tool

DeleteToolCallback(error, responseopt)

Callback as used by deleteTool.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ExportToolsCallback(error, responseopt)

Callback as used by exportTools.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetToolCallback(error, responseopt)

Callback as used by getTool.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.Tool <optional>

Tool

ListToolsCallback(error, responseopt)

Callback as used by listTools.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.ListToolsResponse <optional>

ListToolsResponse

UpdateToolCallback(error, responseopt)

Callback as used by updateTool.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3beta1.Tool <optional>

Tool