Class PredictionApiKeyRegistry.PredictionApiKeyRegistryBase (1.0.0-beta03)

[BindServiceMethod(typeof(PredictionApiKeyRegistry), "BindService")]
public abstract class PredictionApiKeyRegistryBase

Base class for server-side implementations of PredictionApiKeyRegistry

Inheritance

Object > PredictionApiKeyRegistry.PredictionApiKeyRegistryBase

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

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
Task<PredictionApiKeyRegistration>

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
Task<Empty>

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
Task<ListPredictionApiKeyRegistrationsResponse>

The response to send back to the client (wrapped by a task).