@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcKnowledgeBasesStub extends KnowledgeBasesStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcKnowledgeBasesStub, using the given settings.
|
protected |
GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcKnowledgeBasesStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcKnowledgeBasesStub |
create(ClientContext clientContext) |
static GrpcKnowledgeBasesStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcKnowledgeBasesStub |
create(KnowledgeBasesStubSettings settings) |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> |
createKnowledgeBaseCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest,Empty> |
deleteKnowledgeBaseCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> |
getKnowledgeBaseCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest,com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> |
listKnowledgeBasesCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest,KnowledgeBasesClient.ListKnowledgeBasesPagedResponse> |
listKnowledgeBasesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> |
updateKnowledgeBaseCallable() |
protected GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcKnowledgeBasesStub(KnowledgeBasesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcKnowledgeBasesStub create(KnowledgeBasesStubSettings settings) throws IOException
IOException
public static final GrpcKnowledgeBasesStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcKnowledgeBasesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest,KnowledgeBasesClient.ListKnowledgeBasesPagedResponse> listKnowledgeBasesPagedCallable()
listKnowledgeBasesPagedCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest,com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> listKnowledgeBasesCallable()
listKnowledgeBasesCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> getKnowledgeBaseCallable()
getKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> createKnowledgeBaseCallable()
createKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest,Empty> deleteKnowledgeBaseCallable()
deleteKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest,com.google.cloud.dialogflow.v2beta1.KnowledgeBase> updateKnowledgeBaseCallable()
updateKnowledgeBaseCallable
in class KnowledgeBasesStub
public final void close()
close
in interface AutoCloseable
close
in class KnowledgeBasesStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.