Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub (0.54.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
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request CreatePredictionApiKeyRegistrationRequest
responseObserver io.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
Name Description
request DeletePredictionApiKeyRegistrationRequest
responseObserver io.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
Name Description
request ListPredictionApiKeyRegistrationsRequest
responseObserver io.grpc.stub.StreamObserver<ListPredictionApiKeyRegistrationsResponse>