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

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-alpha02 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionService.QuestionServiceBase)
- [2.0.0-alpha01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.QuestionService.QuestionServiceBase)
- [1.0.0-alpha03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.QuestionService.QuestionServiceBase)

    [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](https://learn.microsoft.com/dotnet/api/system.object) \> QuestionService.QuestionServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DataQnA.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.CreateQuestionRequest` The request received from the client. |
| `context` | `https://github.com/grpc/grpc-dotnet/blob/6eccb614c532d52c1569ce9f14754fdc826609ef/src/Grpc.Core.Api/ServerCallContext.cs` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.ExecuteQuestionRequest` The request received from the client. |
| `context` | `https://github.com/grpc/grpc-dotnet/blob/6eccb614c532d52c1569ce9f14754fdc826609ef/src/Grpc.Core.Api/ServerCallContext.cs` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.GetQuestionRequest` The request received from the client. |
| `context` | `https://github.com/grpc/grpc-dotnet/blob/6eccb614c532d52c1569ce9f14754fdc826609ef/src/Grpc.Core.Api/ServerCallContext.cs` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.GetUserFeedbackRequest` The request received from the client. |
| `context` | `https://github.com/grpc/grpc-dotnet/blob/6eccb614c532d52c1569ce9f14754fdc826609ef/src/Grpc.Core.Api/ServerCallContext.cs` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.UpdateUserFeedbackRequest` The request received from the client. |
| `context` | `https://github.com/grpc/grpc-dotnet/blob/6eccb614c532d52c1569ce9f14754fdc826609ef/src/Grpc.Core.Api/ServerCallContext.cs` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.UserFeedback` | The response to send back to the client (wrapped by a task). |