Class HttpJsonKnowledgeBasesStub (4.7.2)

public class HttpJsonKnowledgeBasesStub extends KnowledgeBasesStub

REST stub implementation for the KnowledgeBases service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > KnowledgeBasesStub > HttpJsonKnowledgeBasesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonKnowledgeBasesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonKnowledgeBasesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonKnowledgeBasesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonKnowledgeBasesStub
Exceptions
TypeDescription
IOException

create(KnowledgeBasesStubSettings settings)

public static final HttpJsonKnowledgeBasesStub create(KnowledgeBasesStubSettings settings)
Parameter
NameDescription
settingsKnowledgeBasesStubSettings
Returns
TypeDescription
HttpJsonKnowledgeBasesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext)

protected HttpJsonKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonKnowledgeBasesStub, 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
NameDescription
settingsKnowledgeBasesStubSettings
clientContextClientContext

HttpJsonKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonKnowledgeBasesStub, 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
NameDescription
settingsKnowledgeBasesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createKnowledgeBaseCallable()

public UnaryCallable<CreateKnowledgeBaseRequest,KnowledgeBase> createKnowledgeBaseCallable()
Returns
TypeDescription
UnaryCallable<CreateKnowledgeBaseRequest,KnowledgeBase>
Overrides

deleteKnowledgeBaseCallable()

public UnaryCallable<DeleteKnowledgeBaseRequest,Empty> deleteKnowledgeBaseCallable()
Returns
TypeDescription
UnaryCallable<DeleteKnowledgeBaseRequest,Empty>
Overrides

getKnowledgeBaseCallable()

public UnaryCallable<GetKnowledgeBaseRequest,KnowledgeBase> getKnowledgeBaseCallable()
Returns
TypeDescription
UnaryCallable<GetKnowledgeBaseRequest,KnowledgeBase>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listKnowledgeBasesCallable()

public UnaryCallable<ListKnowledgeBasesRequest,ListKnowledgeBasesResponse> listKnowledgeBasesCallable()
Returns
TypeDescription
UnaryCallable<ListKnowledgeBasesRequest,ListKnowledgeBasesResponse>
Overrides

listKnowledgeBasesPagedCallable()

public UnaryCallable<ListKnowledgeBasesRequest,KnowledgeBasesClient.ListKnowledgeBasesPagedResponse> listKnowledgeBasesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListKnowledgeBasesRequest,ListKnowledgeBasesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateKnowledgeBaseCallable()

public UnaryCallable<UpdateKnowledgeBaseRequest,KnowledgeBase> updateKnowledgeBaseCallable()
Returns
TypeDescription
UnaryCallable<UpdateKnowledgeBaseRequest,KnowledgeBase>
Overrides