Class PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub (0.59.0)

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

A stub to allow clients to do synchronous 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.AbstractBlockingStub > PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request CreatePredictionApiKeyRegistrationRequest
Returns
Type Description
PredictionApiKeyRegistration

deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

public Empty deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)

Unregister an apiKey from using for predict method.

Parameter
Name Description
request DeletePredictionApiKeyRegistrationRequest
Returns
Type Description
Empty

listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

public ListPredictionApiKeyRegistrationsResponse listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)

List the registered apiKeys for use with predict method.

Parameter
Name Description
request ListPredictionApiKeyRegistrationsRequest
Returns
Type Description
ListPredictionApiKeyRegistrationsResponse