Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub (0.60.0)

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request)

public ListenableFuture<PredictionApiKeyRegistration> createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request)

Register an API key for use with predict method.

Parameter
Name Description
request CreatePredictionApiKeyRegistrationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PredictionApiKeyRegistration>

deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

public ListenableFuture<Empty> deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

Unregister an apiKey from using for predict method.

Parameter
Name Description
request DeletePredictionApiKeyRegistrationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

public ListenableFuture<ListPredictionApiKeyRegistrationsResponse> listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

List the registered apiKeys for use with predict method.

Parameter
Name Description
request ListPredictionApiKeyRegistrationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPredictionApiKeyRegistrationsResponse>