Dialogflow v3 API - Class Tools.ToolsBase (3.0.0)

[BindServiceMethod(typeof(Tools), "BindService")]
public abstract class Tools.ToolsBase

Reference documentation and code samples for the Dialogflow v3 API class Tools.ToolsBase.

Base class for server-side implementations of Tools

Inheritance

object > Tools.ToolsBase

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Methods

CreateTool(CreateToolRequest, ServerCallContext)

public virtual Task<Tool> CreateTool(CreateToolRequest request, ServerCallContext context)

Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.

Parameters
Name Description
request CreateToolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskTool

The response to send back to the client (wrapped by a task).

CreateToolVersion(CreateToolVersionRequest, ServerCallContext)

public virtual Task<ToolVersion> CreateToolVersion(CreateToolVersionRequest request, ServerCallContext context)

Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request CreateToolVersionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskToolVersion

The response to send back to the client (wrapped by a task).

DeleteTool(DeleteToolRequest, ServerCallContext)

public virtual Task<Empty> DeleteTool(DeleteToolRequest request, ServerCallContext context)

Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request DeleteToolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteToolVersion(DeleteToolVersionRequest, ServerCallContext)

public virtual Task<Empty> DeleteToolVersion(DeleteToolVersionRequest request, ServerCallContext context)

Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request DeleteToolVersionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

GetTool(GetToolRequest, ServerCallContext)

public virtual Task<Tool> GetTool(GetToolRequest request, ServerCallContext context)

Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request GetToolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskTool

The response to send back to the client (wrapped by a task).

GetToolVersion(GetToolVersionRequest, ServerCallContext)

public virtual Task<ToolVersion> GetToolVersion(GetToolVersionRequest request, ServerCallContext context)

Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request GetToolVersionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskToolVersion

The response to send back to the client (wrapped by a task).

ListToolVersions(ListToolVersionsRequest, ServerCallContext)

public virtual Task<ListToolVersionsResponse> ListToolVersions(ListToolVersionsRequest request, ServerCallContext context)

List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request ListToolVersionsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListToolVersionsResponse

The response to send back to the client (wrapped by a task).

ListTools(ListToolsRequest, ServerCallContext)

public virtual Task<ListToolsResponse> ListTools(ListToolsRequest request, ServerCallContext context)

Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.

Parameters
Name Description
request ListToolsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListToolsResponse

The response to send back to the client (wrapped by a task).

RestoreToolVersion(RestoreToolVersionRequest, ServerCallContext)

public virtual Task<RestoreToolVersionResponse> RestoreToolVersion(RestoreToolVersionRequest request, ServerCallContext context)

Retrieves the specified version of the Tool and stores it as the current tool draft, returning the tool with resources updated.

Parameters
Name Description
request RestoreToolVersionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskRestoreToolVersionResponse

The response to send back to the client (wrapped by a task).

UpdateTool(UpdateToolRequest, ServerCallContext)

public virtual Task<Tool> UpdateTool(UpdateToolRequest request, ServerCallContext context)

Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].

Parameters
Name Description
request UpdateToolRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskTool

The response to send back to the client (wrapped by a task).