Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub>
-
- com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub
-
- Enclosing class:
- PredictionApiKeyRegistryGrpc
public static final class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub extends io.grpc.stub.AbstractAsyncStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub>
A stub to allow clients to do asynchronous rpc calls to service PredictionApiKeyRegistry.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 Concrete Methods Modifier and Type Method Description protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<PredictionApiKeyRegistration> responseObserver)
Register an API key for use with predict method.void
deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an apiKey from using for predict method.void
listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)
List the registered apiKeys for use with predict method.
-
-
-
Method Detail
-
build
protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub>
-
createPredictionApiKeyRegistration
public void createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<PredictionApiKeyRegistration> responseObserver)
Register an API key for use with predict method.
-
listPredictionApiKeyRegistrations
public void listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)
List the registered apiKeys for use with predict method.
-
deletePredictionApiKeyRegistration
public void deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an apiKey from using for predict method.
-
-