Class PredictionApiKeyRegistry

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
TypeNameDescription
PredictionApiKeyRegistry.PredictionApiKeyRegistryBaseserviceImpl

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
TypeNameDescription
ServiceBinderBaseserviceBinder

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

PredictionApiKeyRegistry.PredictionApiKeyRegistryBaseserviceImpl

An object implementing the server-side handling logic.