[BindServiceMethod(typeof(KnowledgeBases), "BindService")]
public abstract class KnowledgeBasesBase
Base class for server-side implementations of KnowledgeBases
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Methods
CreateKnowledgeBase(CreateKnowledgeBaseRequest, ServerCallContext)
public virtual Task<KnowledgeBase> CreateKnowledgeBase(CreateKnowledgeBaseRequest request, ServerCallContext context)
Creates a knowledge base.
Parameters | |
---|---|
Name | Description |
request | CreateKnowledgeBaseRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<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.
Parameters | |
---|---|
Name | Description |
request | DeleteKnowledgeBaseRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Empty> | 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.
Parameters | |
---|---|
Name | Description |
request | GetKnowledgeBaseRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<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.
Parameters | |
---|---|
Name | Description |
request | ListKnowledgeBasesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<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.
Parameters | |
---|---|
Name | Description |
request | UpdateKnowledgeBaseRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<KnowledgeBase> | The response to send back to the client (wrapped by a task). |