Class HttpJsonDeveloperKnowledgeStub
java.lang.Object
com.google.developers.knowledge.v1.stub.DeveloperKnowledgeStub
com.google.developers.knowledge.v1.stub.HttpJsonDeveloperKnowledgeStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonDeveloperKnowledgeStub
extends DeveloperKnowledgeStub
REST stub implementation for the DeveloperKnowledge service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonDeveloperKnowledgeStub, using the given settings.protectedHttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonDeveloperKnowledgeStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonDeveloperKnowledgeStubcreate(ClientContext clientContext) static final HttpJsonDeveloperKnowledgeStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonDeveloperKnowledgeStubcreate(DeveloperKnowledgeStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<SearchDocumentChunksRequest,DeveloperKnowledgeClient.SearchDocumentChunksPagedResponse> voidshutdown()void
-
Constructor Details
-
HttpJsonDeveloperKnowledgeStub
protected HttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonDeveloperKnowledgeStub, 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
-
HttpJsonDeveloperKnowledgeStub
protected HttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonDeveloperKnowledgeStub, 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 HttpJsonDeveloperKnowledgeStub create(DeveloperKnowledgeStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDeveloperKnowledgeStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDeveloperKnowledgeStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
searchDocumentChunksCallable
public UnaryCallable<SearchDocumentChunksRequest,SearchDocumentChunksResponse> searchDocumentChunksCallable()- Overrides:
searchDocumentChunksCallablein classDeveloperKnowledgeStub
-
searchDocumentChunksPagedCallable
public UnaryCallable<SearchDocumentChunksRequest,DeveloperKnowledgeClient.SearchDocumentChunksPagedResponse> searchDocumentChunksPagedCallable()- Overrides:
searchDocumentChunksPagedCallablein classDeveloperKnowledgeStub
-
getDocumentCallable
- Overrides:
getDocumentCallablein classDeveloperKnowledgeStub
-
batchGetDocumentsCallable
public UnaryCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()- Overrides:
batchGetDocumentsCallablein classDeveloperKnowledgeStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDeveloperKnowledgeStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-