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
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<PredictionApiKeyRegistration> responseObserver)
Register an API key for use with predict method.default void
deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an apiKey from using for predict method.default void
listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)
List the registered apiKeys for use with predict method.
-
-
-
Method Detail
-
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.
-
-