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.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eQuestion\u003c/code\u003e class in the Data QnA v1alpha API represents a natural language query, its associated settings, system-generated interpretations, and answer retrieval status, and it cannot be modified after creation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eQuestion\u003c/code\u003e class is \u003ccode\u003e2.0.0-alpha02\u003c/code\u003e, which can be found in the \u003ccode\u003eGoogle.Cloud.DataQnA.V1Alpha\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Cloud.DataQnA.V1Alpha.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuestion\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, inheriting from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuestion\u003c/code\u003e class has properties like \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDataSourceAnnotations\u003c/code\u003e, \u003ccode\u003eDebugFlags\u003c/code\u003e, \u003ccode\u003eInterpretError\u003c/code\u003e, \u003ccode\u003eInterpretations\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eQuery\u003c/code\u003e, \u003ccode\u003eScopes\u003c/code\u003e, and \u003ccode\u003eUserEmail\u003c/code\u003e to manage the state and data associated with the natural language question.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuestion\u003c/code\u003e class provides two constructors \u003ccode\u003eQuestion()\u003c/code\u003e and \u003ccode\u003eQuestion(Question other)\u003c/code\u003e allowing for default initialization and cloning.\u003c/p\u003e\n"]]],[],null,["# Data QnA v1alpha API - Class Question (2.0.0-alpha02)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-alpha02 (latest)](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question)\n- [2.0.0-alpha01](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/2.0.0-alpha01/Google.Cloud.DataQnA.V1Alpha.Question)\n- [1.0.0-alpha03](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/1.0.0-alpha03/Google.Cloud.DataQnA.V1Alpha.Question) \n\n public sealed class Question : IMessage\u003cQuestion\u003e, IEquatable\u003cQuestion\u003e, IDeepCloneable\u003cQuestion\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Data QnA v1alpha API class Question.\n\nThe question resource represents a natural language query, its settings,\nunderstanding generated by the system, and answer retrieval status.\nA question cannot be modified. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Question \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Question](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Question](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DataQnA.V1Alpha](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.DataQnA.V1Alpha.dll\n\nConstructors\n------------\n\n### Question()\n\n public Question()\n\n### Question(Question)\n\n public Question(Question other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nTime when the question was created.\n\n### DataSourceAnnotations\n\n public RepeatedField\u003cstring\u003e DataSourceAnnotations { get; }\n\nA list of annotations to use instead of the default annotation of a data\nsource (set in the data source reference resource). There must not be\nmore than one annotation with the same data source reference.\n\n### DebugFlags\n\n public DebugFlags DebugFlags { get; set; }\n\nInput only. Immutable. Flags to request additional information for debugging purposes.\n\n### DebugInfo\n\n public Any DebugInfo { get; set; }\n\nTop level debug information.\nThis will be stored as the type DebugInformation.\nUsing Any so clients don't need to pull in anything\ninside the debug message.\n\n### InterpretError\n\n public InterpretError InterpretError { get; set; }\n\nAn error field explaining why interpretation failed. This is only populated\nif the interpretation failed.\n\nNote: This is different from getting a status error on the request itself.\nThis is not a client or server error and the Question resource is still\npersisted, but the service could not interpret the question. Clients should\npresent the error to the user so the user can rephrase the question.\n\n### Interpretations\n\n public RepeatedField\u003cInterpretation\u003e Interpretations { get; }\n\nA list of interpretations for this question.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Immutable. The unique identifier for the Question. The ID is server-generated.\nExample: `projects/foo/locations/bar/questions/123`\n\n### Query\n\n public string Query { get; set; }\n\nRequired. Immutable. The query in natural language.\n\n### QuestionName\n\n public QuestionName QuestionName { get; set; }\n\n[QuestionName](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.QuestionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DataQnA.V1Alpha/latest/Google.Cloud.DataQnA.V1Alpha.Question#Google_Cloud_DataQnA_V1Alpha_Question_Name) resource name property.\n\n### Scopes\n\n public RepeatedField\u003cstring\u003e Scopes { get; }\n\nRequired. Immutable. Scopes to be used for the question. A scope defines the relevant data set\nscope. It can be a reference to a specific data source or a collection of\ndata sources. Currently, support is limited to a single BigQuery table.\nThere must be exactly one `scopes` element.\n\nExample:\n`//bigquery.googleapis.com/projects/test-project/datasets/foo/tables/bar`\n\n### UserEmail\n\n public string UserEmail { get; set; }\n\nOutput only. The e-mail address of the user that created this question."]]