public sealed class KnowledgeBasesClientImpl : KnowledgeBasesClient
KnowledgeBases client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Remarks
Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
Constructors
KnowledgeBasesClientImpl(KnowledgeBases.KnowledgeBasesClient, KnowledgeBasesSettings, ILogger)
public KnowledgeBasesClientImpl(KnowledgeBases.KnowledgeBasesClient grpcClient, KnowledgeBasesSettings settings, ILogger logger)
Constructs a client wrapper for the KnowledgeBases service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | KnowledgeBases.KnowledgeBasesClient The underlying gRPC client. |
settings | KnowledgeBasesSettings The base KnowledgeBasesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override KnowledgeBases.KnowledgeBasesClient GrpcClient { get; }
The underlying gRPC KnowledgeBases client
Property Value | |
---|---|
Type | Description |
KnowledgeBases.KnowledgeBasesClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
CreateKnowledgeBase(CreateKnowledgeBaseRequest, CallSettings)
public override KnowledgeBase CreateKnowledgeBase(CreateKnowledgeBaseRequest request, CallSettings callSettings = null)
Creates a knowledge base.
Parameters | |
---|---|
Name | Description |
request | CreateKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
KnowledgeBase | The RPC response. |
CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest, CallSettings)
public override Task<KnowledgeBase> CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, CallSettings callSettings = null)
Creates a knowledge base.
Parameters | |
---|---|
Name | Description |
request | CreateKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<KnowledgeBase> | A Task containing the RPC response. |
DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, CallSettings)
public override void DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request, CallSettings callSettings = null)
Deletes the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | DeleteKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest, CallSettings)
public override Task DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, CallSettings callSettings = null)
Deletes the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | DeleteKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
GetKnowledgeBase(GetKnowledgeBaseRequest, CallSettings)
public override KnowledgeBase GetKnowledgeBase(GetKnowledgeBaseRequest request, CallSettings callSettings = null)
Retrieves the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | GetKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
KnowledgeBase | The RPC response. |
GetKnowledgeBaseAsync(GetKnowledgeBaseRequest, CallSettings)
public override Task<KnowledgeBase> GetKnowledgeBaseAsync(GetKnowledgeBaseRequest request, CallSettings callSettings = null)
Retrieves the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | GetKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<KnowledgeBase> | A Task containing the RPC response. |
ListKnowledgeBases(ListKnowledgeBasesRequest, CallSettings)
public override PagedEnumerable<ListKnowledgeBasesResponse, KnowledgeBase> ListKnowledgeBases(ListKnowledgeBasesRequest request, CallSettings callSettings = null)
Returns the list of all knowledge bases of the specified agent.
Parameters | |
---|---|
Name | Description |
request | ListKnowledgeBasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListKnowledgeBasesResponse, KnowledgeBase> | A pageable sequence of KnowledgeBase resources. |
ListKnowledgeBasesAsync(ListKnowledgeBasesRequest, CallSettings)
public override PagedAsyncEnumerable<ListKnowledgeBasesResponse, KnowledgeBase> ListKnowledgeBasesAsync(ListKnowledgeBasesRequest request, CallSettings callSettings = null)
Returns the list of all knowledge bases of the specified agent.
Parameters | |
---|---|
Name | Description |
request | ListKnowledgeBasesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListKnowledgeBasesResponse, KnowledgeBase> | A pageable asynchronous sequence of KnowledgeBase resources. |
UpdateKnowledgeBase(UpdateKnowledgeBaseRequest, CallSettings)
public override KnowledgeBase UpdateKnowledgeBase(UpdateKnowledgeBaseRequest request, CallSettings callSettings = null)
Updates the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | UpdateKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
KnowledgeBase | The RPC response. |
UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest, CallSettings)
public override Task<KnowledgeBase> UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, CallSettings callSettings = null)
Updates the specified knowledge base.
Parameters | |
---|---|
Name | Description |
request | UpdateKnowledgeBaseRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<KnowledgeBase> | A Task containing the RPC response. |