Class HttpJsonDeveloperKnowledgeStub (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 HttpJsonDeveloperKnowledgeStub extends DeveloperKnowledgeStub
REST 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 HttpJsonDeveloperKnowledgeStub create ( ClientContext clientContext )
Parameter
Name
Description
clientContext
com.google.api.gax.rpc.ClientContext
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonDeveloperKnowledgeStub create ( ClientContext clientContext , HttpJsonStubCallableFactory callableFactory )
Parameters
Name
Description
clientContext
com.google.api.gax.rpc.ClientContext
callableFactory
com.google.api.gax.httpjson.HttpJsonStubCallableFactory
create(DeveloperKnowledgeStubSettings settings)
public static final HttpJsonDeveloperKnowledgeStub create ( DeveloperKnowledgeStubSettings settings )
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors ()
Returns
Type
Description
List <com.google.api.gax.httpjson.ApiMethodDescriptor >
Constructors
HttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext)
protected HttpJsonDeveloperKnowledgeStub ( DeveloperKnowledgeStubSettings settings , ClientContext clientContext )
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.
HttpJsonDeveloperKnowledgeStub(DeveloperKnowledgeStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonDeveloperKnowledgeStub ( DeveloperKnowledgeStubSettings settings , ClientContext clientContext , HttpJsonStubCallableFactory callableFactory )
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.
Parameters
Name
Description
settings
DeveloperKnowledgeStubSettings
clientContext
com.google.api.gax.rpc.ClientContext
callableFactory
com.google.api.gax.httpjson.HttpJsonStubCallableFactory
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
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.
[null,null,["Last updated 2026-09-21 UTC."],[],[]]