[BindServiceMethod(typeof(PredictionService), "BindService")]
public abstract class PredictionService.PredictionServiceBaseReference documentation and code samples for the Retail v2 API class PredictionService.PredictionServiceBase.
Base class for server-side implementations of PredictionService
Namespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Methods
Predict(PredictRequest, ServerCallContext)
public virtual Task<PredictResponse> Predict(PredictRequest request, ServerCallContext context)Makes a recommendation prediction.
| Parameters | |
|---|---|
| Name | Description |
request |
PredictRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPredictResponse |
The response to send back to the client (wrapped by a task). |