@BetaApi @Generated(value="by gapic-generator-java") 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.
|
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 GrpcOperationsStub getOperationsStub()
public UnaryCallable<ListKnowledgeBasesRequest,ListKnowledgeBasesResponse> listKnowledgeBasesCallable()
listKnowledgeBasesCallable
in class KnowledgeBasesStub
public UnaryCallable<ListKnowledgeBasesRequest,KnowledgeBasesClient.ListKnowledgeBasesPagedResponse> listKnowledgeBasesPagedCallable()
listKnowledgeBasesPagedCallable
in class KnowledgeBasesStub
public UnaryCallable<GetKnowledgeBaseRequest,KnowledgeBase> getKnowledgeBaseCallable()
getKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<CreateKnowledgeBaseRequest,KnowledgeBase> createKnowledgeBaseCallable()
createKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<DeleteKnowledgeBaseRequest,Empty> deleteKnowledgeBaseCallable()
deleteKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<UpdateKnowledgeBaseRequest,KnowledgeBase> updateKnowledgeBaseCallable()
updateKnowledgeBaseCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,KnowledgeBasesClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable
in class KnowledgeBasesStub
public UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable
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 © 2022 Google LLC. All rights reserved.