Class PredictionService.PredictionServiceBase

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

Base class for server-side implementations of PredictionService

Inheritance

Object > PredictionService.PredictionServiceBase

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Methods

Predict(PredictRequest, ServerCallContext)

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

Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry] service. Learn more.

Parameters
TypeNameDescription
PredictRequestrequest

The request received from the client.

ServerCallContextcontext

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).