Class PredictionApiKeyRegistry (1.0.0-beta03)

public static 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(PredictionApiKeyRegistry.PredictionApiKeyRegistryBase)

public static ServerServiceDefinition BindService(PredictionApiKeyRegistry.PredictionApiKeyRegistryBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplPredictionApiKeyRegistry.PredictionApiKeyRegistryBase

An object implementing the server-side handling logic.

Returns
TypeDescription
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
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplPredictionApiKeyRegistry.PredictionApiKeyRegistryBase

An object implementing the server-side handling logic.