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 document provides reference information for the \u003ccode\u003ePredictionService.PredictionServiceBase\u003c/code\u003e class, which is the base class for server-side implementations of the \u003ccode\u003ePredictionService\u003c/code\u003e in the Recommendations AI v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 2.0.0-beta06, with other available versions including 2.0.0-beta05 and 1.0.0-beta03.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003ePredict\u003c/code\u003e method, which is used to make recommendation predictions and requires a \u003ccode\u003ePredictRequest\u003c/code\u003e and \u003ccode\u003eServerCallContext\u003c/code\u003e as parameters.\u003c/p\u003e\n"],["\u003cp\u003eUsing the \u003ccode\u003ePredict\u003c/code\u003e method with API Key based authentication requires registering the key with the \u003ccode\u003ePredictionApiKeyRegistry\u003c/code\u003e service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePredict\u003c/code\u003e method returns a \u003ccode\u003eTask\u003c/code\u003e that wraps a \u003ccode\u003ePredictResponse\u003c/code\u003e, which is the response sent back to the client.\u003c/p\u003e\n"]]],[],null,[]]