Interface PredictionApiKeyRegistryGrpc.AsyncService
- All Known Implementing Classes:
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryImplBase
- Enclosing class:
- PredictionApiKeyRegistryGrpc
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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<PredictionApiKeyRegistration> responseObserver) Register an API key for use with predict method.default voiddeletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Unregister an apiKey from using for predict method.default voidlistPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver) List the registered apiKeys for use with predict method.
-
Method Details
-
createPredictionApiKeyRegistration
default void createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<PredictionApiKeyRegistration> responseObserver) Register an API key for use with predict method.
-
listPredictionApiKeyRegistrations
default void listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver) List the registered apiKeys for use with predict method.
-
deletePredictionApiKeyRegistration
default void deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Unregister an apiKey from using for predict method.
-