Reference documentation and code samples for the Recommendations AI v1beta1 API class PredictionApiKeyRegistry.
Service for registering API keys for use with the predict method. If you
use an API key to request predictions, you must first register the API key.
Otherwise, your prediction request is rejected. If you use OAuth to
authenticate your predict method call, you do not need to register an API
key. You can register up to 20 API keys per project.
public static void BindService(ServiceBinderBase serviceBinder, PredictionApiKeyRegistry.PredictionApiKeyRegistryBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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\u003eThe \u003ccode\u003ePredictionApiKeyRegistry\u003c/code\u003e class in the Recommendations AI v1beta1 API manages API key registration for use with the \u003ccode\u003epredict\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eRegistering API keys is necessary for prediction requests when using an API key for authentication, with a limit of 20 API keys per project.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method creates a service definition that can be registered with a server, and another variation of this method allows custom binding logic.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class, including \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version for this class is \u003ccode\u003e2.0.0-beta06\u003c/code\u003e with older version available including \u003ccode\u003e2.0.0-beta05\u003c/code\u003e and \u003ccode\u003e1.0.0-beta03\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]