Class PredictionService.PredictionServiceBase
Base class for server-side implementations of PredictionService
Inheritance
System.Object
PredictionService.PredictionServiceBase
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
[BindServiceMethod(typeof(PredictionService), "BindService")]
public abstract class PredictionServiceBase
Methods
Predict(PredictRequest, ServerCallContext)
Makes a recommendation prediction.
Declaration
public virtual Task<PredictResponse> Predict(PredictRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
PredictRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PredictResponse> | The response to send back to the client (wrapped by a task). |