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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003ePredictionService.PredictionServiceBase\u003c/code\u003e class, which is a base for server-side implementations of the PredictionService in the Recommendations AI v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003ePredictionService.PredictionServiceBase\u003c/code\u003e is 2.0.0-beta06, with 2.0.0-beta05 and 1.0.0-beta03 also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes one primary method, \u003ccode\u003ePredict\u003c/code\u003e, which is used to make a recommendation prediction and requires a \u003ccode\u003ePredictRequest\u003c/code\u003e and \u003ccode\u003eServerCallContext\u003c/code\u003e as parameters.\u003c/p\u003e\n"],["\u003cp\u003eWhen using API Key authentication, the key must be registered via the \u003ccode\u003ePredictionApiKeyRegistry\u003c/code\u003e service as mentioned in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe Predict method returns a \u003ccode\u003eTask<PredictResponse>\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]