Package com.google.cloud.retail.v2.stub
Class HttpJsonCompletionServiceStub
java.lang.Object
com.google.cloud.retail.v2.stub.CompletionServiceStub
com.google.cloud.retail.v2.stub.HttpJsonCompletionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonCompletionServiceStub
extends CompletionServiceStub
REST stub implementation for the CompletionService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonCompletionServiceStub, using the given settings.protectedHttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonCompletionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonCompletionServiceStubcreate(ClientContext clientContext) static final HttpJsonCompletionServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonCompletionServiceStubcreate(CompletionServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2.stub.CompletionServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonCompletionServiceStub
protected HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonCompletionServiceStub, 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
-
HttpJsonCompletionServiceStub
protected HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonCompletionServiceStub, 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 HttpJsonCompletionServiceStub create(CompletionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCompletionServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCompletionServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin 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
-