[BindServiceMethod(typeof(PredictionApiKeyRegistry), "BindService")]
public abstract class PredictionApiKeyRegistry.PredictionApiKeyRegistryBase
Reference documentation and code samples for the Recommendations AI v1beta1 API class PredictionApiKeyRegistry.PredictionApiKeyRegistryBase.
Base class for server-side implementations of PredictionApiKeyRegistry
Namespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
Google.Cloud.RecommendationEngine.V1Beta1.dll
Methods
CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest, ServerCallContext)
public virtual Task<PredictionApiKeyRegistration> CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, ServerCallContext context)
Register an API key for use with predict method.
Parameters | |
---|---|
Name | Description |
request |
CreatePredictionApiKeyRegistrationRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskPredictionApiKeyRegistration |
The response to send back to the client (wrapped by a task). |
DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest, ServerCallContext)
public virtual Task<Empty> DeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, ServerCallContext context)
Unregister an apiKey from using for predict method.
Parameters | |
---|---|
Name | Description |
request |
DeletePredictionApiKeyRegistrationRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest, ServerCallContext)
public virtual Task<ListPredictionApiKeyRegistrationsResponse> ListPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, ServerCallContext context)
List the registered apiKeys for use with predict method.
Parameters | |
---|---|
Name | Description |
request |
ListPredictionApiKeyRegistrationsRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListPredictionApiKeyRegistrationsResponse |
The response to send back to the client (wrapped by a task). |