# Data QnA v1alpha API - Class Question (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.Question)
- [2.0.0-alpha01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.Question)
- [1.0.0-alpha03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.Question)

    public sealed class Question : IMessage<Question>, IEquatable<Question>, IDeepCloneable<Question>, IBufferMessage, IMessage

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

The question resource represents a natural language query, its settings,
understanding generated by the system, and answer retrieval status.
A question cannot be modified.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Question

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Question](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Question](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Question](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.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

## Constructors

### Question()

    public Question()

### Question(Question)

    public Question(Question other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Time when the question was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DataSourceAnnotations

    public RepeatedField<string> DataSourceAnnotations { get; }

A list of annotations to use instead of the default annotation of a data
source (set in the data source reference resource). There must not be
more than one annotation with the same data source reference.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### DebugFlags

    public DebugFlags DebugFlags { get; set; }

Input only. Immutable. Flags to request additional information for debugging purposes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.DebugFlags` |   |

### DebugInfo

    public Any DebugInfo { get; set; }

Top level debug information.
This will be stored as the type DebugInformation.
Using Any so clients don't need to pull in anything
inside the debug message.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Any.html` |   |

### InterpretError

    public InterpretError InterpretError { get; set; }

An error field explaining why interpretation failed. This is only populated
if the interpretation failed.

Note: This is different from getting a status error on the request itself.
This is not a client or server error and the Question resource is still
persisted, but the service could not interpret the question. Clients should
present the error to the user so the user can rephrase the question.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.InterpretError` |   |

### Interpretations

    public RepeatedField<Interpretation> Interpretations { get; }

A list of interpretations for this question.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Interpretation` |   |

### Name

    public string Name { get; set; }

Output only. Immutable. The unique identifier for the Question. The ID is server-generated.
Example: `projects/foo/locations/bar/questions/123`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Query

    public string Query { get; set; }

Required. Immutable. The query in natural language.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### QuestionName

    public QuestionName QuestionName { get; set; }

[QuestionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question#Google_Cloud_DataQnA_V1Alpha_Question_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionName` |   |

### Scopes

    public RepeatedField<string> Scopes { get; }

Required. Immutable. Scopes to be used for the question. A scope defines the relevant data set
scope. It can be a reference to a specific data source or a collection of
data sources. Currently, support is limited to a single BigQuery table.
There must be exactly one `scopes` element.

Example:
`//bigquery.googleapis.com/projects/test-project/datasets/foo/tables/bar`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### UserEmail

    public string UserEmail { get; set; }

Output only. The e-mail address of the user that created this question.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |