Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub (0.43.0)

public static final class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub extends 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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub

Methods

build(Channel channel, CallOptions callOptions)

protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

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>