1.1.0 (latest) 1.0.0

    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](https://learn.microsoft.com/dotnet/api/system.object) \> [ToolServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt) \> ToolServiceClientImpl

## Inherited Members

[ToolServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_DefaultEndpoint) [ToolServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_DefaultScopes) [ToolServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_ServiceMetadata) [ToolServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_CreateAsync_System_Threading_CancellationToken_) [ToolServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_Create) [ToolServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_ShutdownDefaultChannelsAsync) [ToolServiceClient.ExecuteToolAsync(ExecuteToolRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_ExecuteToolAsync_Google_Cloud_Ces_V1_ExecuteToolRequest_System_Threading_CancellationToken_) [ToolServiceClient.RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveToolSchemaAsync_Google_Cloud_Ces_V1_RetrieveToolSchemaRequest_System_Threading_CancellationToken_) [ToolServiceClient.RetrieveToolsAsync(RetrieveToolsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveToolsAsync_Google_Cloud_Ces_V1_RetrieveToolsRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## 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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceSettings.md.txt) used within this client. |
| `logger` | `ILogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.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** [ToolServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

**Overrides** [ToolServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_LocationsClient)

## 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** [ToolServiceClient.ExecuteTool(ExecuteToolRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_ExecuteTool_Google_Cloud_Ces_V1_ExecuteToolRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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** [ToolServiceClient.ExecuteToolAsync(ExecuteToolRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_ExecuteToolAsync_Google_Cloud_Ces_V1_ExecuteToolRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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** [ToolServiceClient.RetrieveToolSchema(RetrieveToolSchemaRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveToolSchema_Google_Cloud_Ces_V1_RetrieveToolSchemaRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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** [ToolServiceClient.RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveToolSchemaAsync_Google_Cloud_Ces_V1_RetrieveToolSchemaRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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** [ToolServiceClient.RetrieveTools(RetrieveToolsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveTools_Google_Cloud_Ces_V1_RetrieveToolsRequest_Google_Api_Gax_Grpc_CallSettings_)

### 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** [ToolServiceClient.RetrieveToolsAsync(RetrieveToolsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ToolServiceClient.md.txt#Google_Cloud_Ces_V1_ToolServiceClient_RetrieveToolsAsync_Google_Cloud_Ces_V1_RetrieveToolsRequest_Google_Api_Gax_Grpc_CallSettings_)