public static class PredictionApiKeyRegistry
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.
Namespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
Google.Cloud.RecommendationEngine.V1Beta1.dll
Methods
BindService(PredictionApiKeyRegistry.PredictionApiKeyRegistryBase)
public static ServerServiceDefinition BindService(PredictionApiKeyRegistry.PredictionApiKeyRegistryBase serviceImpl)
Creates service definition that can be registered with a server
Parameter | |
---|---|
Name | Description |
serviceImpl | PredictionApiKeyRegistry.PredictionApiKeyRegistryBase An object implementing the server-side handling logic. |
Returns | |
---|---|
Type | Description |
ServerServiceDefinition |
BindService(ServiceBinderBase, PredictionApiKeyRegistry.PredictionApiKeyRegistryBase)
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.
Parameters | |
---|---|
Name | Description |
serviceBinder | ServiceBinderBase Service methods will be bound by calling |
serviceImpl | PredictionApiKeyRegistry.PredictionApiKeyRegistryBase An object implementing the server-side handling logic. |