Class PredictionService.PredictionServiceBase (1.4.0)

[BindServiceMethod(typeof(PredictionService), "BindService")]
public abstract class PredictionServiceBase

Base class for server-side implementations of PredictionService

Inheritance

Object > PredictionService.PredictionServiceBase

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Methods

Predict(PredictRequest, ServerCallContext)

public virtual Task<PredictResponse> Predict(PredictRequest request, ServerCallContext context)

Makes a recommendation prediction.

Parameters
NameDescription
requestPredictRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PredictResponse>

The response to send back to the client (wrapped by a task).