Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub (0.12.0)

public static final class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub extends AbstractBlockingStub<PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub>

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.AbstractBlockingStub > PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request)

public PredictionApiKeyRegistration createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request)

Register an API key for use with predict method.

Parameter
NameDescription
requestCreatePredictionApiKeyRegistrationRequest
Returns
TypeDescription
PredictionApiKeyRegistration

deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

public Empty deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

Unregister an apiKey from using for predict method.

Parameter
NameDescription
requestDeletePredictionApiKeyRegistrationRequest
Returns
TypeDescription
Empty

listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

public ListPredictionApiKeyRegistrationsResponse listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

List the registered apiKeys for use with predict method.

Parameter
NameDescription
requestListPredictionApiKeyRegistrationsRequest
Returns
TypeDescription
ListPredictionApiKeyRegistrationsResponse