Class GrpcPredictionApiKeyRegistryStub
- java.lang.Object
-
- com.google.cloud.recommendationengine.v1beta1.stub.PredictionApiKeyRegistryStub
-
- com.google.cloud.recommendationengine.v1beta1.stub.GrpcPredictionApiKeyRegistryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcPredictionApiKeyRegistryStub extends PredictionApiKeyRegistryStub
gRPC stub implementation for the PredictionApiKeyRegistry service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcPredictionApiKeyRegistryStub(PredictionApiKeyRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcPredictionApiKeyRegistryStub, using the given settings.protected
GrpcPredictionApiKeyRegistryStub(PredictionApiKeyRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcPredictionApiKeyRegistryStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcPredictionApiKeyRegistryStub
protected GrpcPredictionApiKeyRegistryStub(PredictionApiKeyRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcPredictionApiKeyRegistryStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcPredictionApiKeyRegistryStub
protected GrpcPredictionApiKeyRegistryStub(PredictionApiKeyRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcPredictionApiKeyRegistryStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcPredictionApiKeyRegistryStub create(PredictionApiKeyRegistryStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcPredictionApiKeyRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcPredictionApiKeyRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createPredictionApiKeyRegistrationCallable
public com.google.api.gax.rpc.UnaryCallable<CreatePredictionApiKeyRegistrationRequest,PredictionApiKeyRegistration> createPredictionApiKeyRegistrationCallable()
- Overrides:
createPredictionApiKeyRegistrationCallable
in classPredictionApiKeyRegistryStub
-
listPredictionApiKeyRegistrationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListPredictionApiKeyRegistrationsRequest,ListPredictionApiKeyRegistrationsResponse> listPredictionApiKeyRegistrationsCallable()
- Overrides:
listPredictionApiKeyRegistrationsCallable
in classPredictionApiKeyRegistryStub
-
listPredictionApiKeyRegistrationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPredictionApiKeyRegistrationsRequest,PredictionApiKeyRegistryClient.ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsPagedCallable()
- Overrides:
listPredictionApiKeyRegistrationsPagedCallable
in classPredictionApiKeyRegistryStub
-
deletePredictionApiKeyRegistrationCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePredictionApiKeyRegistrationRequest,com.google.protobuf.Empty> deletePredictionApiKeyRegistrationCallable()
- Overrides:
deletePredictionApiKeyRegistrationCallable
in classPredictionApiKeyRegistryStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classPredictionApiKeyRegistryStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-