# Google Cloud Dialogflow v2beta1 API - Class KnowledgeBases.KnowledgeBasesBase (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    [BindServiceMethod(typeof(KnowledgeBases), "BindService")]
    public abstract class KnowledgeBases.KnowledgeBasesBase

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

Base class for server-side implementations of KnowledgeBases

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> KnowledgeBases.KnowledgeBasesBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Methods

### CreateKnowledgeBase(CreateKnowledgeBaseRequest, ServerCallContext)

    public virtual Task<KnowledgeBase> CreateKnowledgeBase(CreateKnowledgeBaseRequest request, ServerCallContext context)

Creates a knowledge base.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CreateKnowledgeBaseRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.KnowledgeBase` | The response to send back to the client (wrapped by a task). |

### DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, ServerCallContext)

    public virtual Task<Empty> DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request, ServerCallContext context)

Deletes the specified knowledge base.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteKnowledgeBaseRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### GetKnowledgeBase(GetKnowledgeBaseRequest, ServerCallContext)

    public virtual Task<KnowledgeBase> GetKnowledgeBase(GetKnowledgeBaseRequest request, ServerCallContext context)

Retrieves the specified knowledge base.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetKnowledgeBaseRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.KnowledgeBase` | The response to send back to the client (wrapped by a task). |

### ListKnowledgeBases(ListKnowledgeBasesRequest, ServerCallContext)

    public virtual Task<ListKnowledgeBasesResponse> ListKnowledgeBases(ListKnowledgeBasesRequest request, ServerCallContext context)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListKnowledgeBasesRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListKnowledgeBasesResponse` | The response to send back to the client (wrapped by a task). |

### UpdateKnowledgeBase(UpdateKnowledgeBaseRequest, ServerCallContext)

    public virtual Task<KnowledgeBase> UpdateKnowledgeBase(UpdateKnowledgeBaseRequest request, ServerCallContext context)

Updates the specified knowledge base.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.UpdateKnowledgeBaseRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.KnowledgeBase` | The response to send back to the client (wrapped by a task). |