Class PredictionApiKeyRegistryGrpc (0.60.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
Type Description
String

Static Methods

bindService(PredictionApiKeyRegistryGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(PredictionApiKeyRegistryGrpc.AsyncService service)
Parameter
Name Description
service PredictionApiKeyRegistryGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getCreatePredictionApiKeyRegistrationMethod()

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

getDeletePredictionApiKeyRegistrationMethod()

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

getListPredictionApiKeyRegistrationsMethod()

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

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
PredictionApiKeyRegistryGrpc.PredictionApiKeyRegistryStub