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 > ClientBase > ClientBaseModelServiceModelServiceClient > ModelService.ModelServiceClientNamespace
Google.Cloud.Retail.V2Assembly
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 using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient 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 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 |
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. |