Interface PredictionApiKeyRegistryGrpc.AsyncService (0.38.0)

public static interface PredictionApiKeyRegistryGrpc.AsyncService

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.

Methods

createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, StreamObserver<PredictionApiKeyRegistration> responseObserver)

public default void createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, StreamObserver<PredictionApiKeyRegistration> responseObserver)

Register an API key for use with predict method.

Parameters
NameDescription
requestCreatePredictionApiKeyRegistrationRequest
responseObserverio.grpc.stub.StreamObserver<PredictionApiKeyRegistration>

deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, StreamObserver<Empty> responseObserver)

public default void deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, StreamObserver<Empty> responseObserver)

Unregister an apiKey from using for predict method.

Parameters
NameDescription
requestDeletePredictionApiKeyRegistrationRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)

public default void listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)

List the registered apiKeys for use with predict method.

Parameters
NameDescription
requestListPredictionApiKeyRegistrationsRequest
responseObserverio.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse>