Class DeveloperKnowledge.DeveloperKnowledgeBase
Base class for server-side implementations of DeveloperKnowledge
Namespace: 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 | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<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 | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<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 | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<SearchDocumentChunksResponse> | The response to send back to the client (wrapped by a task). |