2.16.0 (latest) 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public class ModelService.ModelServiceClient : ClientBase<ModelService.ModelServiceClient>

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

Client for ModelService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[ModelService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelService.md.txt)[ModelServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.ModelService.ModelServiceClient.md.txt) \> ModelService.ModelServiceClient

## Inherited Members

[ClientBase\<ModelService.ModelServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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.md.txt)

## Assembly

Google.Cloud.Retail.V2.dll

## Constructors

### ModelServiceClient()

    protected ModelServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### ModelServiceClient(CallInvoker)

    public ModelServiceClient(CallInvoker callInvoker)

Creates a new client for ModelService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### ModelServiceClient(ChannelBase)

    public ModelServiceClient(ChannelBase channel)

Creates a new client for ModelService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### ModelServiceClient(ClientBaseConfiguration)

    protected ModelServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateModel(CreateModelRequest, CallOptions)

    public virtual Operation CreateModel(CreateModelRequest request, CallOptions options)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### CreateModel(CreateModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation CreateModel(CreateModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### CreateModelAsync(CreateModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> CreateModelAsync(CreateModelRequest request, CallOptions options)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### CreateModelAsync(CreateModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> CreateModelAsync(CreateModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationsOperationsClient` | A new Operations client for the same target as this client. |

### DeleteModel(DeleteModelRequest, CallOptions)

    public virtual Empty DeleteModel(DeleteModelRequest request, CallOptions options)

Deletes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteModel(DeleteModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteModel(DeleteModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteModelAsync(DeleteModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteModelAsync(DeleteModelRequest request, CallOptions options)

Deletes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeleteModelAsync(DeleteModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteModelAsync(DeleteModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### GetModel(GetModelRequest, CallOptions)

    public virtual Model GetModel(GetModelRequest request, CallOptions options)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### GetModel(GetModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Model GetModel(GetModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### GetModelAsync(GetModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Model> GetModelAsync(GetModelRequest request, CallOptions options)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### GetModelAsync(GetModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Model> GetModelAsync(GetModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### ListModels(ListModelsRequest, CallOptions)

    public virtual ListModelsResponse ListModels(ListModelsRequest request, CallOptions options)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListModelsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListModelsResponse` | The response received from the server. |

### ListModels(ListModelsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListModelsResponse ListModels(ListModelsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListModelsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListModelsResponse` | The response received from the server. |

### ListModelsAsync(ListModelsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListModelsResponse> ListModelsAsync(ListModelsRequest request, CallOptions options)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListModelsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListModelsResponse` | The call object. |

### ListModelsAsync(ListModelsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListModelsResponse> ListModelsAsync(ListModelsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists all the models linked to this event store.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListModelsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListModelsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override ModelService.ModelServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ModelServiceModelServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Retail.V2.ModelService.ModelServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### PauseModel(PauseModelRequest, CallOptions)

    public virtual Model PauseModel(PauseModelRequest request, CallOptions options)

Pauses the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `PauseModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### PauseModel(PauseModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Model PauseModel(PauseModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Pauses the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `PauseModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### PauseModelAsync(PauseModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Model> PauseModelAsync(PauseModelRequest request, CallOptions options)

Pauses the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `PauseModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### PauseModelAsync(PauseModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Model> PauseModelAsync(PauseModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Pauses the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `PauseModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### ResumeModel(ResumeModelRequest, CallOptions)

    public virtual Model ResumeModel(ResumeModelRequest request, CallOptions options)

Resumes the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResumeModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### ResumeModel(ResumeModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Model ResumeModel(ResumeModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Resumes the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResumeModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### ResumeModelAsync(ResumeModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Model> ResumeModelAsync(ResumeModelRequest request, CallOptions options)

Resumes the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResumeModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### ResumeModelAsync(ResumeModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Model> ResumeModelAsync(ResumeModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Resumes the training of an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ResumeModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### TuneModel(TuneModelRequest, CallOptions)

    public virtual Operation TuneModel(TuneModelRequest request, CallOptions options)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TuneModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### TuneModel(TuneModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation TuneModel(TuneModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TuneModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### TuneModelAsync(TuneModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> TuneModelAsync(TuneModelRequest request, CallOptions options)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TuneModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### TuneModelAsync(TuneModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> TuneModelAsync(TuneModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Tunes an existing model.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TuneModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### UpdateModel(UpdateModelRequest, CallOptions)

    public virtual Model UpdateModel(UpdateModelRequest request, CallOptions options)

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` | `UpdateModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### UpdateModel(UpdateModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual Model UpdateModel(UpdateModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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` | `UpdateModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Model` | The response received from the server. |

### UpdateModelAsync(UpdateModelRequest, CallOptions)

    public virtual AsyncUnaryCall<Model> UpdateModelAsync(UpdateModelRequest request, CallOptions options)

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` | `UpdateModelRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |

### UpdateModelAsync(UpdateModelRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Model> UpdateModelAsync(UpdateModelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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` | `UpdateModelRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallModel` | The call object. |