Class Question (1.0.0-alpha03)

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

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

Namespace

Google.Cloud.DataQnA.V1Alpha

Assembly

Google.Cloud.DataQnA.V1Alpha.dll

Constructors

Question()

public Question()

Question(Question)

public Question(Question other)
Parameter
NameDescription
otherQuestion

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Time when the question was created.

Property Value
TypeDescription
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
TypeDescription
RepeatedField<String>

DebugFlags

public DebugFlags DebugFlags { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
Any

Interpretations

public RepeatedField<Interpretation> Interpretations { get; }

A list of interpretations for this question.

Property Value
TypeDescription
RepeatedField<Interpretation>

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
TypeDescription
InterpretError

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
TypeDescription
String

Query

public string Query { get; set; }

Required. Immutable. The query in natural language.

Property Value
TypeDescription
String

QuestionName

public QuestionName QuestionName { get; set; }

QuestionName-typed view over the Name resource name property.

Property Value
TypeDescription
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
TypeDescription
RepeatedField<String>

UserEmail

public string UserEmail { get; set; }

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

Property Value
TypeDescription
String