# Discovery Engine v1beta API - Class SearchTuningServiceClientImpl (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    public sealed class SearchTuningServiceClientImpl : SearchTuningServiceClient

Reference documentation and code samples for the Discovery Engine v1beta API class SearchTuningServiceClientImpl.

SearchTuningService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [SearchTuningServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient) \> SearchTuningServiceClientImpl

## Inherited Members

[SearchTuningServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_DefaultEndpoint) [SearchTuningServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_DefaultScopes) [SearchTuningServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_ServiceMetadata) [SearchTuningServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_CreateAsync_System_Threading_CancellationToken_) [SearchTuningServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_Create) [SearchTuningServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_ShutdownDefaultChannelsAsync) [SearchTuningServiceClient.TrainCustomModelAsync(TrainCustomModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_TrainCustomModelAsync_Google_Cloud_DiscoveryEngine_V1Beta_TrainCustomModelRequest_System_Threading_CancellationToken_) [SearchTuningServiceClient.PollOnceTrainCustomModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_PollOnceTrainCustomModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [SearchTuningServiceClient.PollOnceTrainCustomModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_PollOnceTrainCustomModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SearchTuningServiceClient.ListCustomModelsAsync(ListCustomModelsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_ListCustomModelsAsync_Google_Cloud_DiscoveryEngine_V1Beta_ListCustomModelsRequest_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.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Remarks

Service for search tuning.

## Constructors

### SearchTuningServiceClientImpl(SearchTuningServiceClient, SearchTuningServiceSettings, ILogger)

    public SearchTuningServiceClientImpl(SearchTuningService.SearchTuningServiceClient grpcClient, SearchTuningServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningService.SearchTuningServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceSettings` The base [SearchTuningServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceSettings) 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 SearchTuningService.SearchTuningServiceClient GrpcClient { get; }

The underlying gRPC SearchTuningService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningService.SearchTuningServiceClient` |   |

**Overrides** [SearchTuningServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_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** [SearchTuningServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_LocationsClient)

### TrainCustomModelOperationsClient

    public override OperationsClient TrainCustomModelOperationsClient { get; }

The long-running operations client for `TrainCustomModel`.

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

**Overrides** [SearchTuningServiceClient.TrainCustomModelOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_TrainCustomModelOperationsClient)

## Methods

### ListCustomModels(ListCustomModelsRequest, CallSettings)

    public override ListCustomModelsResponse ListCustomModels(ListCustomModelsRequest request, CallSettings callSettings = null)

Gets a list of all the custom models.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListCustomModelsRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListCustomModelsResponse` | The RPC response. |

**Overrides** [SearchTuningServiceClient.ListCustomModels(ListCustomModelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_ListCustomModels_Google_Cloud_DiscoveryEngine_V1Beta_ListCustomModelsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListCustomModelsAsync(ListCustomModelsRequest, CallSettings)

    public override Task<ListCustomModelsResponse> ListCustomModelsAsync(ListCustomModelsRequest request, CallSettings callSettings = null)

Gets a list of all the custom models.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListCustomModelsRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListCustomModelsResponse` | A Task containing the RPC response. |

**Overrides** [SearchTuningServiceClient.ListCustomModelsAsync(ListCustomModelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_ListCustomModelsAsync_Google_Cloud_DiscoveryEngine_V1Beta_ListCustomModelsRequest_Google_Api_Gax_Grpc_CallSettings_)

### TrainCustomModel(TrainCustomModelRequest, CallSettings)

    public override Operation<TrainCustomModelResponse, TrainCustomModelMetadata> TrainCustomModel(TrainCustomModelRequest request, CallSettings callSettings = null)

Trains a custom model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelMetadata` | The RPC response. |

**Overrides** [SearchTuningServiceClient.TrainCustomModel(TrainCustomModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_TrainCustomModel_Google_Cloud_DiscoveryEngine_V1Beta_TrainCustomModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### TrainCustomModelAsync(TrainCustomModelRequest, CallSettings)

    public override Task<Operation<TrainCustomModelResponse, TrainCustomModelMetadata>> TrainCustomModelAsync(TrainCustomModelRequest request, CallSettings callSettings = null)

Trains a custom model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TrainCustomModelMetadata` | A Task containing the RPC response. |

**Overrides** [SearchTuningServiceClient.TrainCustomModelAsync(TrainCustomModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchTuningServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SearchTuningServiceClient_TrainCustomModelAsync_Google_Cloud_DiscoveryEngine_V1Beta_TrainCustomModelRequest_Google_Api_Gax_Grpc_CallSettings_)