Class GrpcKnowledgeBasesStub (4.7.5)

public class GrpcKnowledgeBasesStub extends KnowledgeBasesStub

gRPC stub implementation for the KnowledgeBases service API.

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

Inheritance

java.lang.Object > KnowledgeBasesStub > GrpcKnowledgeBasesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcKnowledgeBasesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcKnowledgeBasesStub
Exceptions
TypeDescription
IOException

create(KnowledgeBasesStubSettings settings)

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

Constructors

GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext)

protected GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcKnowledgeBasesStub, 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

GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcKnowledgeBasesStub, 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
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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