Class KnowledgeBasesClientImpl (4.1.0)

public sealed class KnowledgeBasesClientImpl : KnowledgeBasesClient

KnowledgeBases client wrapper implementation, for convenient use.

Inheritance

Object > KnowledgeBasesClient > KnowledgeBasesClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

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
NameDescription
grpcClientKnowledgeBases.KnowledgeBasesClient

The underlying gRPC client.

settingsKnowledgeBasesSettings

The base KnowledgeBasesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override KnowledgeBases.KnowledgeBasesClient GrpcClient { get; }

The underlying gRPC KnowledgeBases client

Property Value
TypeDescription
KnowledgeBases.KnowledgeBasesClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CreateKnowledgeBase(CreateKnowledgeBaseRequest, CallSettings)

public override KnowledgeBase CreateKnowledgeBase(CreateKnowledgeBaseRequest request, CallSettings callSettings = null)

Creates a knowledge base.

Parameters
NameDescription
requestCreateKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
KnowledgeBase

The RPC response.

Overrides

CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest, CallSettings)

public override Task<KnowledgeBase> CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, CallSettings callSettings = null)

Creates a knowledge base.

Parameters
NameDescription
requestCreateKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<KnowledgeBase>

A Task containing the RPC response.

Overrides

DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, CallSettings)

public override void DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request, CallSettings callSettings = null)

Deletes the specified knowledge base.

Parameters
NameDescription
requestDeleteKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest, CallSettings)

public override Task DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, CallSettings callSettings = null)

Deletes the specified knowledge base.

Parameters
NameDescription
requestDeleteKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetKnowledgeBase(GetKnowledgeBaseRequest, CallSettings)

public override KnowledgeBase GetKnowledgeBase(GetKnowledgeBaseRequest request, CallSettings callSettings = null)

Retrieves the specified knowledge base.

Parameters
NameDescription
requestGetKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
KnowledgeBase

The RPC response.

Overrides

GetKnowledgeBaseAsync(GetKnowledgeBaseRequest, CallSettings)

public override Task<KnowledgeBase> GetKnowledgeBaseAsync(GetKnowledgeBaseRequest request, CallSettings callSettings = null)

Retrieves the specified knowledge base.

Parameters
NameDescription
requestGetKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<KnowledgeBase>

A Task containing the RPC response.

Overrides

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
NameDescription
requestListKnowledgeBasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListKnowledgeBasesResponse, KnowledgeBase>

A pageable sequence of KnowledgeBase resources.

Overrides

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
NameDescription
requestListKnowledgeBasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListKnowledgeBasesResponse, KnowledgeBase>

A pageable asynchronous sequence of KnowledgeBase resources.

Overrides

UpdateKnowledgeBase(UpdateKnowledgeBaseRequest, CallSettings)

public override KnowledgeBase UpdateKnowledgeBase(UpdateKnowledgeBaseRequest request, CallSettings callSettings = null)

Updates the specified knowledge base.

Parameters
NameDescription
requestUpdateKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
KnowledgeBase

The RPC response.

Overrides

UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest, CallSettings)

public override Task<KnowledgeBase> UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, CallSettings callSettings = null)

Updates the specified knowledge base.

Parameters
NameDescription
requestUpdateKnowledgeBaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<KnowledgeBase>

A Task containing the RPC response.

Overrides