Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryImplBase (0.11.0)

public abstract static class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryImplBase implements BindableService

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.

Inheritance

java.lang.Object > PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryImplBase

Implements

io.grpc.BindableService

Constructors

PredictionApiKeyRegistryImplBase()

public PredictionApiKeyRegistryImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request, StreamObserver<PredictionApiKeyRegistration> responseObserver)

public 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 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 void listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request, StreamObserver<ListPredictionApiKeyRegistrationsResponse> responseObserver)

List the registered apiKeys for use with predict method.

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