Gemini Enterprise for Customer Experience v1 API - Class ToolServiceClientImpl (1.0.0-beta01)

public sealed class ToolServiceClientImpl : ToolServiceClient

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ToolServiceClientImpl.

ToolService client wrapper implementation, for convenient use.

Inheritance

object > ToolServiceClient > ToolServiceClientImpl

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Remarks

Tool service provides APIs for interacting with CES tools.

Constructors

ToolServiceClientImpl(ToolServiceClient, ToolServiceSettings, ILogger)

public ToolServiceClientImpl(ToolService.ToolServiceClient grpcClient, ToolServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ToolService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ToolServiceToolServiceClient

The underlying gRPC client.

settings ToolServiceSettings

The base ToolServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override ToolService.ToolServiceClient GrpcClient { get; }

The underlying gRPC ToolService client

Property Value
Type Description
ToolServiceToolServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

ExecuteTool(ExecuteToolRequest, CallSettings)

public override ExecuteToolResponse ExecuteTool(ExecuteToolRequest request, CallSettings callSettings = null)

Executes the given tool with the given arguments.

Parameters
Name Description
request ExecuteToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ExecuteToolResponse

The RPC response.

Overrides

ExecuteToolAsync(ExecuteToolRequest, CallSettings)

public override Task<ExecuteToolResponse> ExecuteToolAsync(ExecuteToolRequest request, CallSettings callSettings = null)

Executes the given tool with the given arguments.

Parameters
Name Description
request ExecuteToolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskExecuteToolResponse

A Task containing the RPC response.

Overrides

RetrieveToolSchema(RetrieveToolSchemaRequest, CallSettings)

public override RetrieveToolSchemaResponse RetrieveToolSchema(RetrieveToolSchemaRequest request, CallSettings callSettings = null)

Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.

Parameters
Name Description
request RetrieveToolSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RetrieveToolSchemaResponse

The RPC response.

Overrides

RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CallSettings)

public override Task<RetrieveToolSchemaResponse> RetrieveToolSchemaAsync(RetrieveToolSchemaRequest request, CallSettings callSettings = null)

Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.

Parameters
Name Description
request RetrieveToolSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRetrieveToolSchemaResponse

A Task containing the RPC response.

Overrides

RetrieveTools(RetrieveToolsRequest, CallSettings)

public override RetrieveToolsResponse RetrieveTools(RetrieveToolsRequest request, CallSettings callSettings = null)

Retrieve the list of tools included in the specified toolset.

Parameters
Name Description
request RetrieveToolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RetrieveToolsResponse

The RPC response.

Overrides

RetrieveToolsAsync(RetrieveToolsRequest, CallSettings)

public override Task<RetrieveToolsResponse> RetrieveToolsAsync(RetrieveToolsRequest request, CallSettings callSettings = null)

Retrieve the list of tools included in the specified toolset.

Parameters
Name Description
request RetrieveToolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRetrieveToolsResponse

A Task containing the RPC response.

Overrides