Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub>
com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub
- Enclosing class:
- PredictionApiKeyRegistryGrpc
public static final class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub
extends io.grpc.stub.AbstractFutureStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub>
A stub to allow clients to do ListenableFuture-style 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<PredictionApiKeyRegistration>Register an API key for use with predict method.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Unregister an apiKey from using for predict method.com.google.common.util.concurrent.ListenableFuture<ListPredictionApiKeyRegistrationsResponse>List the registered apiKeys for use with predict method.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub>
-
createPredictionApiKeyRegistration
public com.google.common.util.concurrent.ListenableFuture<PredictionApiKeyRegistration> createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request) Register an API key for use with predict method.
-
listPredictionApiKeyRegistrations
public com.google.common.util.concurrent.ListenableFuture<ListPredictionApiKeyRegistrationsResponse> listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request) List the registered apiKeys for use with predict method.
-
deletePredictionApiKeyRegistration
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request) Unregister an apiKey from using for predict method.
-