Google Cloud Dialogflow v2 API - Class KnowledgeBasesClientImpl (4.14.0)

public sealed class KnowledgeBasesClientImpl : KnowledgeBasesClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class KnowledgeBasesClientImpl.

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(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
grpcClientKnowledgeBasesKnowledgeBasesClient

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
KnowledgeBasesKnowledgeBasesClient
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
TaskKnowledgeBase

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
TaskKnowledgeBase

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
PagedEnumerableListKnowledgeBasesResponseKnowledgeBase

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
PagedAsyncEnumerableListKnowledgeBasesResponseKnowledgeBase

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
TaskKnowledgeBase

A Task containing the RPC response.

Overrides