Class GrpcDeveloperKnowledgeStub (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.3.0 (latest)
0.2.0
0.1.0
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.
Static Methods
create(ClientContext clientContext)
public static final GrpcDeveloperKnowledgeStub create ( ClientContext clientContext )
Parameter
Name
Description
clientContext
com.google.api.gax.rpc.ClientContext
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcDeveloperKnowledgeStub create ( ClientContext clientContext , GrpcStubCallableFactory callableFactory )
Parameters
Name
Description
clientContext
com.google.api.gax.rpc.ClientContext
callableFactory
com.google.api.gax.grpc.GrpcStubCallableFactory
create(DeveloperKnowledgeStubSettings settings)
public static final GrpcDeveloperKnowledgeStub create ( DeveloperKnowledgeStubSettings settings )
Constructors
GrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext)
protected GrpcDeveloperKnowledgeStub ( DeveloperKnowledgeStubSettings settings , ClientContext clientContext )
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.
GrpcDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcDeveloperKnowledgeStub ( DeveloperKnowledgeStubSettings settings , ClientContext clientContext , GrpcStubCallableFactory callableFactory )
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.
Parameters
Name
Description
settings
DeveloperKnowledgeStubSettings
clientContext
com.google.api.gax.rpc.ClientContext
callableFactory
com.google.api.gax.grpc.GrpcStubCallableFactory
Methods
answerQueryCallable()
public UnaryCallable<AnswerQueryRequest , AnswerQueryResponse > answerQueryCallable ()
Overrides
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination ( long duration , TimeUnit unit )
batchGetDocumentsCallable()
public UnaryCallable<BatchGetDocumentsRequest , BatchGetDocumentsResponse > batchGetDocumentsCallable ()
Overrides
close()
public final void close ()
Overrides
getDocumentCallable()
public UnaryCallable<GetDocumentRequest , Document > getDocumentCallable ()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub ()
Returns
Type
Description
com.google.longrunning.stub.GrpcOperationsStub
isShutdown()
public boolean isShutdown ()
isTerminated()
public boolean isTerminated ()
searchDocumentChunksCallable()
public UnaryCallable<SearchDocumentChunksRequest , SearchDocumentChunksResponse > searchDocumentChunksCallable ()
Overrides
searchDocumentChunksPagedCallable()
public UnaryCallable<SearchDocumentChunksRequest , DeveloperKnowledgeClient . SearchDocumentChunksPagedResponse > searchDocumentChunksPagedCallable ()
Overrides
shutdown()
shutdownNow()
public void shutdownNow ()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-09-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-09-21 UTC."],[],[]]