# Retail v2 API - Class ModelServiceClientImpl (2.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.16.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.15.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.14.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.13.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.12.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.11.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.10.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.9.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.8.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.7.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.6.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.5.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.4.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.3.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.2.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.1.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.0.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.6.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.5.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.4.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.3.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.2.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.1.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.0.0/Google.Cloud.Retail.V2.ModelServiceClientImpl)

    public sealed class ModelServiceClientImpl : ModelServiceClient

Reference documentation and code samples for the Retail v2 API class ModelServiceClientImpl.

ModelService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ModelServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient) \> ModelServiceClientImpl

## Inherited Members

[ModelServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DefaultEndpoint) [ModelServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DefaultScopes) [ModelServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ServiceMetadata) [ModelServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateAsync_System_Threading_CancellationToken_) [ModelServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_Create) [ModelServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ShutdownDefaultChannelsAsync) [ModelServiceClient.CreateModelAsync(CreateModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_Google_Cloud_Retail_V2_CreateModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.PollOnceCreateModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PollOnceCreateModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PollOnceCreateModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PollOnceCreateModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.CreateModel(string, Model, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModel_System_String_Google_Cloud_Retail_V2_Model_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.CreateModelAsync(string, Model, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_System_String_Google_Cloud_Retail_V2_Model_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.CreateModelAsync(string, Model, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_System_String_Google_Cloud_Retail_V2_Model_System_Threading_CancellationToken_) [ModelServiceClient.CreateModel(CatalogName, Model, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModel_Google_Cloud_Retail_V2_CatalogName_Google_Cloud_Retail_V2_Model_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.CreateModelAsync(CatalogName, Model, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_Google_Cloud_Retail_V2_CatalogName_Google_Cloud_Retail_V2_Model_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.CreateModelAsync(CatalogName, Model, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_Google_Cloud_Retail_V2_CatalogName_Google_Cloud_Retail_V2_Model_System_Threading_CancellationToken_) [ModelServiceClient.GetModelAsync(GetModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_Google_Cloud_Retail_V2_GetModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.GetModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.GetModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.GetModelAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_System_String_System_Threading_CancellationToken_) [ModelServiceClient.GetModel(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModel_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.GetModelAsync(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.GetModelAsync(ModelName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_Google_Cloud_Retail_V2_ModelName_System_Threading_CancellationToken_) [ModelServiceClient.PauseModelAsync(PauseModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_Google_Cloud_Retail_V2_PauseModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.PauseModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PauseModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PauseModelAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_System_String_System_Threading_CancellationToken_) [ModelServiceClient.PauseModel(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModel_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PauseModelAsync(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PauseModelAsync(ModelName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_Google_Cloud_Retail_V2_ModelName_System_Threading_CancellationToken_) [ModelServiceClient.ResumeModelAsync(ResumeModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModelAsync_Google_Cloud_Retail_V2_ResumeModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.ResumeModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.ResumeModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.ResumeModelAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModelAsync_System_String_System_Threading_CancellationToken_) [ModelServiceClient.DeleteModelAsync(DeleteModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_Google_Cloud_Retail_V2_DeleteModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.DeleteModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.DeleteModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.DeleteModelAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_System_String_System_Threading_CancellationToken_) [ModelServiceClient.DeleteModel(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModel_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.DeleteModelAsync(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.DeleteModelAsync(ModelName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_Google_Cloud_Retail_V2_ModelName_System_Threading_CancellationToken_) [ModelServiceClient.ListModels(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModels_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.ListModelsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModelsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.ListModels(CatalogName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModels_Google_Cloud_Retail_V2_CatalogName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.ListModelsAsync(CatalogName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModelsAsync_Google_Cloud_Retail_V2_CatalogName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.UpdateModelAsync(UpdateModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModelAsync_Google_Cloud_Retail_V2_UpdateModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.UpdateModel(Model, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModel_Google_Cloud_Retail_V2_Model_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.UpdateModelAsync(Model, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModelAsync_Google_Cloud_Retail_V2_Model_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.UpdateModelAsync(Model, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModelAsync_Google_Cloud_Retail_V2_Model_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [ModelServiceClient.TuneModelAsync(TuneModelRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_Google_Cloud_Retail_V2_TuneModelRequest_System_Threading_CancellationToken_) [ModelServiceClient.PollOnceTuneModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PollOnceTuneModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.PollOnceTuneModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PollOnceTuneModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.TuneModel(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModel_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.TuneModelAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.TuneModelAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_System_String_System_Threading_CancellationToken_) [ModelServiceClient.TuneModel(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModel_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.TuneModelAsync(ModelName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_Google_Cloud_Retail_V2_ModelName_Google_Api_Gax_Grpc_CallSettings_) [ModelServiceClient.TuneModelAsync(ModelName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_Google_Cloud_Retail_V2_ModelName_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.Retail.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2)

## Assembly

Google.Cloud.Retail.V2.dll

## Remarks

Service for performing CRUD operations on models.
Recommendation models contain all the metadata necessary to generate a set of
models for the `Predict()` API. A model is queried
indirectly via a ServingConfig, which associates a model with a
given Placement (e.g. Frequently Bought Together on Home Page).

This service allows you to do the following:

- Initiate training of a model.
- Pause training of an existing model.
- List all the available models along with their metadata.
- Control their tuning schedule.

## Constructors

### ModelServiceClientImpl(ModelServiceClient, ModelServiceSettings, ILogger)

    public ModelServiceClientImpl(ModelService.ModelServiceClient grpcClient, ModelServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelService.ModelServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceSettings` The base [ModelServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceSettings) 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

### CreateModelOperationsClient

    public override OperationsClient CreateModelOperationsClient { get; }

The long-running operations client for `CreateModel`.

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

**Overrides** [ModelServiceClient.CreateModelOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelOperationsClient)

### GrpcClient

    public override ModelService.ModelServiceClient GrpcClient { get; }

The underlying gRPC ModelService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelService.ModelServiceClient` |   |

**Overrides** [ModelServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_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** [ModelServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_LocationsClient)

### TuneModelOperationsClient

    public override OperationsClient TuneModelOperationsClient { get; }

The long-running operations client for `TuneModel`.

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

**Overrides** [ModelServiceClient.TuneModelOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelOperationsClient)

## Methods

### CreateModel(CreateModelRequest, CallSettings)

    public override Operation<Model, CreateModelMetadata> CreateModel(CreateModelRequest request, CallSettings callSettings = null)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CreateModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Modelhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CreateModelMetadata` | The RPC response. |

**Overrides** [ModelServiceClient.CreateModel(CreateModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModel_Google_Cloud_Retail_V2_CreateModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateModelAsync(CreateModelRequest, CallSettings)

    public override Task<Operation<Model, CreateModelMetadata>> CreateModelAsync(CreateModelRequest request, CallSettings callSettings = null)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CreateModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Modelhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CreateModelMetadata` | A Task containing the RPC response. |

**Overrides** [ModelServiceClient.CreateModelAsync(CreateModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_CreateModelAsync_Google_Cloud_Retail_V2_CreateModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteModel(DeleteModelRequest, CallSettings)

    public override void DeleteModel(DeleteModelRequest request, CallSettings callSettings = null)

Deletes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.DeleteModelRequest` 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. |

**Overrides** [ModelServiceClient.DeleteModel(DeleteModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModel_Google_Cloud_Retail_V2_DeleteModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteModelAsync(DeleteModelRequest, CallSettings)

    public override Task DeleteModelAsync(DeleteModelRequest request, CallSettings callSettings = null)

Deletes an existing model.

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

**Overrides** [ModelServiceClient.DeleteModelAsync(DeleteModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_DeleteModelAsync_Google_Cloud_Retail_V2_DeleteModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetModel(GetModelRequest, CallSettings)

    public override Model GetModel(GetModelRequest request, CallSettings callSettings = null)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.GetModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | The RPC response. |

**Overrides** [ModelServiceClient.GetModel(GetModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModel_Google_Cloud_Retail_V2_GetModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetModelAsync(GetModelRequest, CallSettings)

    public override Task<Model> GetModelAsync(GetModelRequest request, CallSettings callSettings = null)

Gets a model.

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

**Overrides** [ModelServiceClient.GetModelAsync(GetModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_GetModelAsync_Google_Cloud_Retail_V2_GetModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListModels(ListModelsRequest, CallSettings)

    public override PagedEnumerable<ListModelsResponse, Model> ListModels(ListModelsRequest request, CallSettings callSettings = null)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ListModelsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ListModelsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | A pageable sequence of [Model](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Model) resources. |

**Overrides** [ModelServiceClient.ListModels(ListModelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModels_Google_Cloud_Retail_V2_ListModelsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListModelsAsync(ListModelsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListModelsResponse, Model> ListModelsAsync(ListModelsRequest request, CallSettings callSettings = null)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ListModelsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ListModelsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | A pageable asynchronous sequence of [Model](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Model) resources. |

**Overrides** [ModelServiceClient.ListModelsAsync(ListModelsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ListModelsAsync_Google_Cloud_Retail_V2_ListModelsRequest_Google_Api_Gax_Grpc_CallSettings_)

### PauseModel(PauseModelRequest, CallSettings)

    public override Model PauseModel(PauseModelRequest request, CallSettings callSettings = null)

Pauses the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.PauseModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | The RPC response. |

**Overrides** [ModelServiceClient.PauseModel(PauseModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModel_Google_Cloud_Retail_V2_PauseModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### PauseModelAsync(PauseModelRequest, CallSettings)

    public override Task<Model> PauseModelAsync(PauseModelRequest request, CallSettings callSettings = null)

Pauses the training of an existing model.

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

**Overrides** [ModelServiceClient.PauseModelAsync(PauseModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_PauseModelAsync_Google_Cloud_Retail_V2_PauseModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### ResumeModel(ResumeModelRequest, CallSettings)

    public override Model ResumeModel(ResumeModelRequest request, CallSettings callSettings = null)

Resumes the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ResumeModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | The RPC response. |

**Overrides** [ModelServiceClient.ResumeModel(ResumeModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModel_Google_Cloud_Retail_V2_ResumeModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### ResumeModelAsync(ResumeModelRequest, CallSettings)

    public override Task<Model> ResumeModelAsync(ResumeModelRequest request, CallSettings callSettings = null)

Resumes the training of an existing model.

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

**Overrides** [ModelServiceClient.ResumeModelAsync(ResumeModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_ResumeModelAsync_Google_Cloud_Retail_V2_ResumeModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### TuneModel(TuneModelRequest, CallSettings)

    public override Operation<TuneModelResponse, TuneModelMetadata> TuneModel(TuneModelRequest request, CallSettings callSettings = null)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelMetadata` | The RPC response. |

**Overrides** [ModelServiceClient.TuneModel(TuneModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModel_Google_Cloud_Retail_V2_TuneModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### TuneModelAsync(TuneModelRequest, CallSettings)

    public override Task<Operation<TuneModelResponse, TuneModelMetadata>> TuneModelAsync(TuneModelRequest request, CallSettings callSettings = null)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.TuneModelMetadata` | A Task containing the RPC response. |

**Overrides** [ModelServiceClient.TuneModelAsync(TuneModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_TuneModelAsync_Google_Cloud_Retail_V2_TuneModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateModel(UpdateModelRequest, CallSettings)

    public override Model UpdateModel(UpdateModelRequest request, CallSettings callSettings = null)

Update of model metadata. Only fields that
currently can be updated are: `filtering_option` and
`periodic_tuning_state`.
If other values are provided, this API method ignores them.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.UpdateModelRequest` 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.Retail.V2/latest/Google.Cloud.Retail.V2.Model` | The RPC response. |

**Overrides** [ModelServiceClient.UpdateModel(UpdateModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModel_Google_Cloud_Retail_V2_UpdateModelRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateModelAsync(UpdateModelRequest, CallSettings)

    public override Task<Model> UpdateModelAsync(UpdateModelRequest request, CallSettings callSettings = null)

Update of model metadata. Only fields that
currently can be updated are: `filtering_option` and
`periodic_tuning_state`.
If other values are provided, this API method ignores them.

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

**Overrides** [ModelServiceClient.UpdateModelAsync(UpdateModelRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelServiceClient#Google_Cloud_Retail_V2_ModelServiceClient_UpdateModelAsync_Google_Cloud_Retail_V2_UpdateModelRequest_Google_Api_Gax_Grpc_CallSettings_)