Data QnA v1alpha API - Class QuestionService.QuestionServiceBase (2.0.0-alpha02)

[BindServiceMethod(typeof(QuestionService), "BindService")]
public abstract class QuestionService.QuestionServiceBase

Reference documentation and code samples for the Data QnA v1alpha API class QuestionService.QuestionServiceBase.

Base class for server-side implementations of QuestionService

Inheritance

object > QuestionService.QuestionServiceBase

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Methods

CreateQuestion(CreateQuestionRequest, ServerCallContext)

public virtual Task<Question> CreateQuestion(CreateQuestionRequest request, ServerCallContext context)

Creates a question.

Parameters
NameDescription
requestCreateQuestionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskQuestion

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
NameDescription
requestExecuteQuestionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskQuestion

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
NameDescription
requestGetQuestionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskQuestion

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
NameDescription
requestGetUserFeedbackRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskUserFeedback

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
NameDescription
requestUpdateUserFeedbackRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskUserFeedback

The response to send back to the client (wrapped by a task).