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.
Namespace
Google.Cloud.DataQnA.V1AlphaAssembly
Google.Cloud.DataQnA.V1Alpha.dll
Constructors
Question()
public Question()
Question(Question)
public Question(Question other)
Parameter | |
---|---|
Name | Description |
other | Question |
Properties
CreateTime
public Timestamp CreateTime { get; set; }
Time when the question was created.
Property Value | |
---|---|
Type | Description |
Timestamp |
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 |
RepeatedFieldstring |
DebugFlags
public DebugFlags DebugFlags { get; set; }
Input only. Immutable. Flags to request additional information for debugging purposes.
Property Value | |
---|---|
Type | Description |
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 |
Any |
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 |
InterpretError |
Interpretations
public RepeatedField<Interpretation> Interpretations { get; }
A list of interpretations for this question.
Property Value | |
---|---|
Type | Description |
RepeatedFieldInterpretation |
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 |
string |
Query
public string Query { get; set; }
Required. Immutable. The query in natural language.
Property Value | |
---|---|
Type | Description |
string |
QuestionName
public QuestionName QuestionName { get; set; }
QuestionName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
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 |
RepeatedFieldstring |
UserEmail
public string UserEmail { get; set; }
Output only. The e-mail address of the user that created this question.
Property Value | |
---|---|
Type | Description |
string |