NAME
Google::Cloud::Dataqna::V1alpha::Question - Compiled Protocol Buffers messages for google/cloud/dataqna/v1alpha/question.proto
SYNOPSIS
use Google::Cloud::Dataqna::V1alpha::Question;
my $msg = Google::Cloud::Dataqna::V1alpha::Question::Question->new({
name => $name,
scopes => $scopes,
query => $query,
data_source_annotations => $data_source_annotations,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dataqna::V1alpha::Question::Question->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dataqna/v1alpha/question.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dataqna::V1alpha::Question::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.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. The unique identifier for the Question. The ID is server-generated. Example: `projects/foo/locations/bar/questions/123`
$msg->scopes()/$msg->scopes($value)Type:
StringRequired. 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`
$msg->query()/$msg->query($value)Type:
StringRequired. Immutable. The query in natural language.
$msg->data_source_annotations()/$msg->data_source_annotations($value)Type:
StringA 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.
$msg->interpret_error()/$msg->interpret_error($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::InterpretError)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.
$msg->interpretations()/$msg->interpretations($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::Interpretation)A list of interpretations for this question.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Time when the question was created.
$msg->user_email()/$msg->user_email($value)Type:
StringOutput only. The e-mail address of the user that created this question.
$msg->debug_flags()/$msg->debug_flags($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::DebugFlags)Input only. Immutable. Flags to request additional information for debugging purposes.
$msg->debug_info()/$msg->debug_info($value)Type:
Message(Google::Protobuf::Any::Any)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.
Google::Cloud::Dataqna::V1alpha::Question::InterpretError
Details on the failure to interpret the question.
Inherits from Protobuf::Message.
Accessors
$msg->message()/$msg->message($value)Type:
StringError message explaining why this question could not be interpreted.
$msg->code()/$msg->code($value)Type:
Enum(Google::Cloud::Dataqna::V1alpha::InterpretError::InterpretErrorCode)The code for the error category why the interpretation failed.
$msg->details()/$msg->details($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::InterpretError::InterpretErrorDetails)Details on interpretation failure.
Enum: InterpretError::InterpretErrorCode
INTERPRET_ERROR_CODE_UNSPECIFIED=>0INVALID_QUERY=>1FAILED_TO_UNDERSTAND=>2FAILED_TO_ANSWER=>3
Google::Cloud::Dataqna::V1alpha::Question::ExecutionInfo
Information about the backend status (such as BigQuery) of the execution.
Inherits from Protobuf::Message.
Accessors
$msg->job_creation_status()/$msg->job_creation_status($value)Type:
Message(Google::Rpc::Status::Status)Status returned by the backend when the job was created.
$msg->job_execution_state()/$msg->job_execution_state($value)Type:
Enum(Google::Cloud::Dataqna::V1alpha::ExecutionInfo::JobExecutionState)Status of the job execution.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Time when the execution was triggered.
$msg->bigquery_job()/$msg->bigquery_job($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::BigQueryJob)BigQuery job information. Future versions will have different backends. Hence, clients must make sure they can handle it when this field is not populated.
Enum: ExecutionInfo::JobExecutionState
JOB_EXECUTION_STATE_UNSPECIFIED=>0NOT_EXECUTED=>1RUNNING=>2SUCCEEDED=>3FAILED=>4
Google::Cloud::Dataqna::V1alpha::Question::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)).
Inherits from Protobuf::Message.
Accessors
$msg->job_id()/$msg->job_id($value)Type:
StringThe job ID.
$msg->project_id()/$msg->project_id($value)Type:
StringThe project ID of the job.
$msg->location()/$msg->location($value)Type:
StringThe location where the job is running.
Google::Cloud::Dataqna::V1alpha::Question::Interpretation
An interpretation of a natural language query.
Inherits from Protobuf::Message.
Accessors
$msg->data_sources()/$msg->data_sources($value)Type:
StringList of data sources used in the current understanding.
$msg->confidence()/$msg->confidence($value)Type:
DoubleThe level of confidence that one of the interpretations is correct. This is a value in the range [0, 1] where a value of 0.5 or below is to be considered a low confidence.
$msg->unused_phrases()/$msg->unused_phrases($value)Type:
StringA list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.
$msg->human_readable()/$msg->human_readable($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::HumanReadable)Human readable representation of the query.
$msg->interpretation_structure()/$msg->interpretation_structure($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::InterpretationStructure)Information about the interpretation structure that helps to understand and visualize the response.
$msg->data_query()/$msg->data_query($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::DataQuery)Representation of the data query to be sent to the backend.
$msg->execution_info()/$msg->execution_info($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::ExecutionInfo)Information about the backend response. This is populated only if execution of an interpretation was requested.
Google::Cloud::Dataqna::V1alpha::Question::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.
Inherits from Protobuf::Message.
Accessors
$msg->sql()/$msg->sql($value)Type:
StringThe generated SQL query to be sent to the backend.
Google::Cloud::Dataqna::V1alpha::Question::HumanReadable
Human readable interpretation.
Inherits from Protobuf::Message.
Accessors
$msg->generated_interpretation()/$msg->generated_interpretation($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString)Generated query explaining the interpretation.
$msg->original_question()/$msg->original_question($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::AnnotatedString::AnnotatedString)Annotations on the original query.
Google::Cloud::Dataqna::V1alpha::Question::InterpretationStructure
Information about the interpretation structure that helps to understand and visualize the response.
Inherits from Protobuf::Message.
Accessors
$msg->visualization_types()/$msg->visualization_types($value)Type:
Enum(Google::Cloud::Dataqna::V1alpha::InterpretationStructure::VisualizationType)List of possible visualization types to apply for this interpretation. The order has no relevance.
$msg->column_info()/$msg->column_info($value)Type:
Message(Google::Cloud::Dataqna::V1alpha::Question::InterpretationStructure::ColumnInfo)Information about the output columns, that is, the columns that will be returned by the backend.
Enum: InterpretationStructure::VisualizationType
VISUALIZATION_TYPE_UNSPECIFIED=>0TABLE=>1BAR_CHART=>2COLUMN_CHART=>3TIMELINE=>4SCATTER_PLOT=>5PIE_CHART=>6LINE_CHART=>7AREA_CHART=>8COMBO_CHART=>9HISTOGRAM=>10GENERIC_CHART=>11CHART_NOT_UNDERSTOOD=>12
Google::Cloud::Dataqna::V1alpha::Question::DebugFlags
Configuriation of debug flags.
Inherits from Protobuf::Message.
Accessors
$msg->include_va_query()/$msg->include_va_query($value)Type:
BoolWhether to include the original VAQuery.
$msg->include_nested_va_query()/$msg->include_nested_va_query($value)Type:
BoolWhether to include the original nested VAQuery.
$msg->include_human_interpretation()/$msg->include_human_interpretation($value)Type:
BoolWhether to include the original human interpretation strings generated by Analyza.
$msg->include_aqua_debug_response()/$msg->include_aqua_debug_response($value)Type:
BoolWhether to include the Aqua debug response.
$msg->time_override()/$msg->time_override($value)Type:
Int64The time in milliseconds from Unix epoch to be used to process the query. This is useful for testing the queries at different time period. If not set or time_override <= 0, then the current time is used.
$msg->is_internal_google_user()/$msg->is_internal_google_user($value)Type:
BoolSet to true if request is initiated by an internal Google user.
$msg->ignore_cache()/$msg->ignore_cache($value)Type:
BoolDetermines whether cache needs to be ignored. If set to true, cache won't be queried and updated.
$msg->include_search_entities_rpc()/$msg->include_search_entities_rpc($value)Type:
BoolWhether to include the request/response pair from the call to the EntityIndex for SearchEntities.
$msg->include_list_column_annotations_rpc()/$msg->include_list_column_annotations_rpc($value)Type:
BoolWhether to include the request/response pair from the call to the Annotations service for ListColumnAnnotations.
$msg->include_virtual_analyst_entities()/$msg->include_virtual_analyst_entities($value)Type:
BoolWhether to include the entity list passed to Analyza.
$msg->include_table_list()/$msg->include_table_list($value)Type:
BoolWhether to include the table list.
$msg->include_domain_list()/$msg->include_domain_list($value)Type:
BoolWhether to include the domain list.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dataqna::V1alpha::Question::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.