Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub (0.30.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreatePredictionApiKeyRegistrationRequest
Returns
TypeDescription
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
NameDescription
requestDeletePredictionApiKeyRegistrationRequest
Returns
TypeDescription
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
NameDescription
requestListPredictionApiKeyRegistrationsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListPredictionApiKeyRegistrationsResponse>