[BindServiceMethod(typeof(QuestionService), "BindService")]
public abstract class QuestionServiceBase
Base class for server-side implementations of QuestionService
Namespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Methods
CreateQuestion(CreateQuestionRequest, ServerCallContext)
public virtual Task<Question> CreateQuestion(CreateQuestionRequest request, ServerCallContext context)
Creates a question.
Parameters | |
---|---|
Name | Description |
request | CreateQuestionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Question> | The response to send back to the client (wrapped by a task). |
ExecuteQuestion(ExecuteQuestionRequest, ServerCallContext)
public virtual Task<Question> ExecuteQuestion(ExecuteQuestionRequest request, ServerCallContext context)
Executes an interpretation.
Parameters | |
---|---|
Name | Description |
request | ExecuteQuestionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Question> | The response to send back to the client (wrapped by a task). |
GetQuestion(GetQuestionRequest, ServerCallContext)
public virtual Task<Question> GetQuestion(GetQuestionRequest request, ServerCallContext context)
Gets a previously created question.
Parameters | |
---|---|
Name | Description |
request | GetQuestionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Question> | The response to send back to the client (wrapped by a task). |
GetUserFeedback(GetUserFeedbackRequest, ServerCallContext)
public virtual Task<UserFeedback> GetUserFeedback(GetUserFeedbackRequest request, ServerCallContext context)
Gets previously created user feedback.
Parameters | |
---|---|
Name | Description |
request | GetUserFeedbackRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<UserFeedback> | The response to send back to the client (wrapped by a task). |
UpdateUserFeedback(UpdateUserFeedbackRequest, ServerCallContext)
public virtual Task<UserFeedback> UpdateUserFeedback(UpdateUserFeedbackRequest request, ServerCallContext context)
Updates user feedback. This creates user feedback if there was none before (upsert).
Parameters | |
---|---|
Name | Description |
request | UpdateUserFeedbackRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<UserFeedback> | The response to send back to the client (wrapped by a task). |