Recommendations AI v1beta1 API - Class PredictionApiKeyRegistry (2.0.0-beta06)

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.

Inheritance

object > PredictionApiKeyRegistry

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Methods

BindService(PredictionApiKeyRegistryBase)

public static ServerServiceDefinition BindService(PredictionApiKeyRegistry.PredictionApiKeyRegistryBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
Name Description
serviceImpl PredictionApiKeyRegistryPredictionApiKeyRegistryBase

An object implementing the server-side handling logic.

Returns
Type Description
ServerServiceDefinition

BindService(ServiceBinderBase, 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 AddMethod on this object.

serviceImpl PredictionApiKeyRegistryPredictionApiKeyRegistryBase

An object implementing the server-side handling logic.