# Package types (0.14.0)

0.14.0 (latest) 0.13.0 0.12.0 0.11.0 0.10.17 0.9.0 0.8.2 0.7.1 0.6.3 0.5.1 0.4.0 0.3.3 0.2.1 0.1.1 API documentation for `dataqna_v1alpha.types` package.

## Classes

### [AnnotatedString](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.AnnotatedString)

Describes string annotation from both semantic and formatting
perspectives. Example:

User Query:

top countries by population in Africa

0 4 14 17 28 31 37

Table Data:

- "country" - dimension
- "population" - metric
- "Africa" - value in the "continent" column

text_formatted = `"top countries by population in Africa"`

html_formatted =
`"top <b>countries</b> by <b>population</b> in <i>Africa</i>"`

::

markups = \[
{DIMENSION, 4, 12}, // 'countries'
{METRIC, 17, 26}, // 'population'
{FILTER, 31, 36} // 'Africa'
\]

Note that html formattings for 'DIMENSION' and 'METRIC' are the
same, while semantic markups are different.

### [BigQueryJob](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.BigQueryJob)

BigQuery job information. This can be used to query the BigQuery API
and retrieve the current job's status (using
`jobs.get <https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/get>`__).

### [CreateQuestionRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.CreateQuestionRequest)

Request to create a question resource.

### [DataQuery](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.DataQuery)

Representation of the data query for the backend. This is provided
for informational purposes only. Clients should not use it to send
it to the backend directly, but rather use the `execute` RPC to
trigger the execution. Using the `execute` RPC is needed in order
to track the state of a question and report on it correctly to the
data administrators.

### [DebugFlags](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.DebugFlags)

Configuriation of debug flags.

### [ExecuteQuestionRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.ExecuteQuestionRequest)

Request to execute an interpretation.

### [ExecutionInfo](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.ExecutionInfo)

Information about the backend status (such as BigQuery) of
the execution.

### [GetQuestionRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.GetQuestionRequest)

A request to get a previously created question.

### [GetUserFeedbackRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.GetUserFeedbackRequest)

Request to get user feedback.

### [HumanReadable](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.HumanReadable)

Human readable interpretation.

### [InterpretEntity](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.InterpretEntity)

Query entities of an interpretation.

### [InterpretError](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.InterpretError)

Details on the failure to interpret the question.

### [Interpretation](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.Interpretation)

An interpretation of a natural language query.

### [InterpretationStructure](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.InterpretationStructure)

Information about the interpretation structure that helps to
understand and visualize the response.

### [Question](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.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.

### [SuggestQueriesRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.SuggestQueriesRequest)

Request for query suggestions.

### [SuggestQueriesResponse](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.SuggestQueriesResponse)

Response to SuggestQueries.

### [Suggestion](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.Suggestion)

A suggestion for a query with a ranking score.

### [SuggestionInfo](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.SuggestionInfo)

Detailed information about the suggestion.

### [SuggestionType](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.SuggestionType)

The type of suggestion.

### [UpdateUserFeedbackRequest](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.UpdateUserFeedbackRequest)

Request to updates user feedback.

### [UserFeedback](https://docs.cloud.google.com/python/docs/reference/dataqna/latest/google.cloud.dataqna_v1alpha.types.UserFeedback)

Feedback provided by a user.