1.0.0-beta10 (latest) 1.0.0-beta09

    public sealed class ToolServiceClientImpl : ToolServiceClient

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta 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.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient) \> ToolServiceClientImpl

## Inherited Members

[ToolServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_DefaultEndpoint) [ToolServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_DefaultScopes) [ToolServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_ServiceMetadata) [ToolServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_CreateAsync_System_Threading_CancellationToken_) [ToolServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_Create) [ToolServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_ShutdownDefaultChannelsAsync) [ToolServiceClient.ExecuteToolAsync(ExecuteToolRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_ExecuteToolAsync_Google_Cloud_Ces_V1Beta_ExecuteToolRequest_System_Threading_CancellationToken_) [ToolServiceClient.RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveToolSchemaAsync_Google_Cloud_Ces_V1Beta_RetrieveToolSchemaRequest_System_Threading_CancellationToken_) [ToolServiceClient.RetrieveToolsAsync(RetrieveToolsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveToolsAsync_Google_Cloud_Ces_V1Beta_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.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta)

## Assembly

Google.Cloud.Ces.V1Beta.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolService.ToolServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceSettings` The base [ToolServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.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** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolService.ToolServiceClient` |   |

**Overrides** [ToolServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_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.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [ToolServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ExecuteToolRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ExecuteToolResponse` | The RPC response. |

**Overrides** [ToolServiceClient.ExecuteTool(ExecuteToolRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_ExecuteTool_Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ExecuteToolRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ExecuteToolResponse` | A Task containing the RPC response. |

**Overrides** [ToolServiceClient.ExecuteToolAsync(ExecuteToolRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_ExecuteToolAsync_Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolSchemaRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolSchemaResponse` | The RPC response. |

**Overrides** [ToolServiceClient.RetrieveToolSchema(RetrieveToolSchemaRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveToolSchema_Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolSchemaRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolSchemaResponse` | A Task containing the RPC response. |

**Overrides** [ToolServiceClient.RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveToolSchemaAsync_Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolsResponse` | The RPC response. |

**Overrides** [ToolServiceClient.RetrieveTools(RetrieveToolsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveTools_Google_Cloud_Ces_V1Beta_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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.RetrieveToolsResponse` | A Task containing the RPC response. |

**Overrides** [ToolServiceClient.RetrieveToolsAsync(RetrieveToolsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1Beta/latest/Google.Cloud.Ces.V1Beta.ToolServiceClient#Google_Cloud_Ces_V1Beta_ToolServiceClient_RetrieveToolsAsync_Google_Cloud_Ces_V1Beta_RetrieveToolsRequest_Google_Api_Gax_Grpc_CallSettings_)