Class GrpcDeveloperKnowledgeStub
java.lang.Object
com.google.developers.knowledge.v1.stub.DeveloperKnowledgeStub
com.google.developers.knowledge.v1.stub.GrpcDeveloperKnowledgeStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcDeveloperKnowledgeStub
extends DeveloperKnowledgeStub
gRPC stub implementation for the DeveloperKnowledge service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcDeveloperKnowledgeStub, using the given settings.protectedGrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcDeveloperKnowledgeStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcDeveloperKnowledgeStubcreate(ClientContext clientContext) static final GrpcDeveloperKnowledgeStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcDeveloperKnowledgeStubcreate(DeveloperKnowledgeStubSettings settings) booleanbooleanUnaryCallable<SearchDocumentChunksRequest,DeveloperKnowledgeClient.SearchDocumentChunksPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcDeveloperKnowledgeStub
protected GrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcDeveloperKnowledgeStub, 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
-
GrpcDeveloperKnowledgeStub
protected GrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcDeveloperKnowledgeStub, 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 GrpcDeveloperKnowledgeStub create(DeveloperKnowledgeStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcDeveloperKnowledgeStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcDeveloperKnowledgeStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
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
-