Class PredictionApiKeyRegistryGrpc (0.34.0)

public final class PredictionApiKeyRegistryGrpc

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 > PredictionApiKeyRegistryGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(PredictionApiKeyRegistryGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(PredictionApiKeyRegistryGrpc.AsyncService service)
Parameter
NameDescription
servicePredictionApiKeyRegistryGrpc.AsyncService
Returns
TypeDescription
io.grpc.ServerServiceDefinition

getCreatePredictionApiKeyRegistrationMethod()

public static MethodDescriptor<CreatePredictionApiKeyRegistrationRequest,PredictionApiKeyRegistration> getCreatePredictionApiKeyRegistrationMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreatePredictionApiKeyRegistrationRequest,PredictionApiKeyRegistration>

getDeletePredictionApiKeyRegistrationMethod()

public static MethodDescriptor<DeletePredictionApiKeyRegistrationRequest,Empty> getDeletePredictionApiKeyRegistrationMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeletePredictionApiKeyRegistrationRequest,Empty>

getListPredictionApiKeyRegistrationsMethod()

public static MethodDescriptor<ListPredictionApiKeyRegistrationsRequest,ListPredictionApiKeyRegistrationsResponse> getListPredictionApiKeyRegistrationsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListPredictionApiKeyRegistrationsRequest,ListPredictionApiKeyRegistrationsResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

public static PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryBlockingStub

newFutureStub(Channel channel)

public static PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryFutureStub

newStub(Channel channel)

public static PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub