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
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
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
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
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
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
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
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
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
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
TaskUserFeedback

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