Class GrpcCompletionServiceStub
java.lang.Object
com.google.cloud.retail.v2beta.stub.CompletionServiceStub
com.google.cloud.retail.v2beta.stub.GrpcCompletionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcCompletionServiceStub
extends CompletionServiceStub
gRPC stub implementation for the CompletionService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcCompletionServiceStub, using the given settings.protectedGrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCompletionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCompletionServiceStubcreate(ClientContext clientContext) static final GrpcCompletionServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcCompletionServiceStubcreate(CompletionServiceStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2beta.stub.CompletionServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcCompletionServiceStub
protected GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcCompletionServiceStub, 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
-
GrpcCompletionServiceStub
protected GrpcCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcCompletionServiceStub, 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 Details
-
create
public static final GrpcCompletionServiceStub create(CompletionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcCompletionServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcCompletionServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classCompletionServiceStub
-
completeQueryCallable
- Overrides:
completeQueryCallablein classCompletionServiceStub
-
importCompletionDataCallable
- Overrides:
importCompletionDataCallablein classCompletionServiceStub
-
importCompletionDataOperationCallable
public OperationCallable<ImportCompletionDataRequest,ImportCompletionDataResponse, importCompletionDataOperationCallable()ImportMetadata> - Overrides:
importCompletionDataOperationCallablein classCompletionServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCompletionServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-