Google Cloud Dialogflow v2beta1 API - Class KnowledgeBasesClientImpl (1.0.0-beta20)

public sealed class KnowledgeBasesClientImpl : KnowledgeBasesClient

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

KnowledgeBases client wrapper implementation, for convenient use.

Inheritance

object > KnowledgeBasesClient > KnowledgeBasesClientImpl

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Remarks

Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.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
Name Description
grpcClient KnowledgeBasesKnowledgeBasesClient

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

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateKnowledgeBase(CreateKnowledgeBaseRequest, CallSettings)

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

Creates a knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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.

Overrides

CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest, CallSettings)

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

Creates a knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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
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.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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.

Overrides

DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest, CallSettings)

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

Deletes the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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.

Overrides

GetKnowledgeBase(GetKnowledgeBaseRequest, CallSettings)

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

Retrieves the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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.

Overrides

GetKnowledgeBaseAsync(GetKnowledgeBaseRequest, CallSettings)

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

Retrieves the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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
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.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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
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.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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
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.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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.

Overrides

UpdateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest, CallSettings)

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

Updates the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

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
TaskKnowledgeBase

A Task containing the RPC response.

Overrides