[![](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/logo.svg)](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/index.html)
- 
[Show / Hide Table of Contents](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DeveloperKnowledge.DeveloperKnowledgeBase#sidetoggle) Base class for server-side implementations of DeveloperKnowledge

##### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) DeveloperKnowledge.DeveloperKnowledgeBase

##### 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](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google).[Developers](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers).[DeveloperKnowledge](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge).[V1](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1)

###### **Assembly**: Google.Developers.DeveloperKnowledge.V1.dll

##### Syntax

    [BindServiceMethod(typeof(DeveloperKnowledge), "BindService")]
    public abstract class DeveloperKnowledge.DeveloperKnowledgeBase

### Methods

#### BatchGetDocuments(BatchGetDocumentsRequest, ServerCallContext)

Retrieves multiple documents, each with its full Markdown content.

##### Declaration

    public virtual Task<BatchGetDocumentsResponse> BatchGetDocuments(BatchGetDocumentsRequest request, ServerCallContext context)

##### Parameters

| Type | Name | Description |
|---|---|---|
| [BatchGetDocumentsRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.BatchGetDocumentsRequest) | request | The request received from the client. |
| [ServerCallContext](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html) | context | The context of the server-side call handler being invoked. |

##### Returns

| Type | Description |
|---|---|
| [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[BatchGetDocumentsResponse](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.BatchGetDocumentsResponse)\> | The response to send back to the client (wrapped by a task). |

#### GetDocument(GetDocumentRequest, ServerCallContext)

Retrieves a single document with its full Markdown content.

##### Declaration

    public virtual Task<Document> GetDocument(GetDocumentRequest request, ServerCallContext context)

##### Parameters

| Type | Name | Description |
|---|---|---|
| [GetDocumentRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.GetDocumentRequest) | request | The request received from the client. |
| [ServerCallContext](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html) | context | The context of the server-side call handler being invoked. |

##### Returns

| Type | Description |
|---|---|
| [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[Document](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.Document)\> | The response to send back to the client (wrapped by a task). |

#### SearchDocumentChunks(SearchDocumentChunksRequest, ServerCallContext)

Searches for developer knowledge across Google's developer documentation.
Returns \[DocumentChunk\]\[google.developers.knowledge.v1.DocumentChunk\]s
based on the user's query. There may be many chunks from the same
\[Document\]\[google.developers.knowledge.v1.Document\]. To retrieve full
documents, use
\[DeveloperKnowledge.GetDocument\]\[google.developers.knowledge.v1.DeveloperKnowledge.GetDocument\]
or
\[DeveloperKnowledge.BatchGetDocuments\]\[google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments\]
with the
\[DocumentChunk.parent\]\[google.developers.knowledge.v1.DocumentChunk.parent\]
returned in the
\[SearchDocumentChunksResponse.results\]\[google.developers.knowledge.v1.SearchDocumentChunksResponse.results\].

##### Declaration

    public virtual Task<SearchDocumentChunksResponse> SearchDocumentChunks(SearchDocumentChunksRequest request, ServerCallContext context)

##### Parameters

| Type | Name | Description |
|---|---|---|
| [SearchDocumentChunksRequest](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksRequest) | request | The request received from the client. |
| [ServerCallContext](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html) | context | The context of the server-side call handler being invoked. |

##### Returns

| Type | Description |
|---|---|
| [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[SearchDocumentChunksResponse](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.SearchDocumentChunksResponse)\> | The response to send back to the client (wrapped by a task). |

##### In this article

[Back to top](https://developers.google.com/dotnet/docs/reference/Google.Developers.DeveloperKnowledge.V1/latest/api/Google.Developers.DeveloperKnowledge.V1.DeveloperKnowledge.DeveloperKnowledgeBase#top) Generated by **DocFX**