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

    Output 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: String

    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`

  • $msg->query() / $msg->query($value)

    Type: String

    Required. Immutable. The query in natural language.

  • $msg->data_source_annotations() / $msg->data_source_annotations($value)

    Type: String

    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.

  • $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: String

    Output 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

Enum: InterpretError::InterpretErrorCode

  • INTERPRET_ERROR_CODE_UNSPECIFIED => 0

  • INVALID_QUERY => 1

  • FAILED_TO_UNDERSTAND => 2

  • FAILED_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

Enum: ExecutionInfo::JobExecutionState

  • JOB_EXECUTION_STATE_UNSPECIFIED => 0

  • NOT_EXECUTED => 1

  • RUNNING => 2

  • SUCCEEDED => 3

  • FAILED => 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: String

    The job ID.

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    The project ID of the job.

  • $msg->location() / $msg->location($value)

    Type: String

    The 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: String

    List of data sources used in the current understanding.

  • $msg->confidence() / $msg->confidence($value)

    Type: Double

    The 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: String

    A 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: String

    The generated SQL query to be sent to the backend.

Google::Cloud::Dataqna::V1alpha::Question::HumanReadable

Human readable interpretation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dataqna::V1alpha::Question::InterpretationStructure

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

Inherits from Protobuf::Message.

Accessors

Enum: InterpretationStructure::VisualizationType

  • VISUALIZATION_TYPE_UNSPECIFIED => 0

  • TABLE => 1

  • BAR_CHART => 2

  • COLUMN_CHART => 3

  • TIMELINE => 4

  • SCATTER_PLOT => 5

  • PIE_CHART => 6

  • LINE_CHART => 7

  • AREA_CHART => 8

  • COMBO_CHART => 9

  • HISTOGRAM => 10

  • GENERIC_CHART => 11

  • CHART_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: Bool

    Whether to include the original VAQuery.

  • $msg->include_nested_va_query() / $msg->include_nested_va_query($value)

    Type: Bool

    Whether to include the original nested VAQuery.

  • $msg->include_human_interpretation() / $msg->include_human_interpretation($value)

    Type: Bool

    Whether to include the original human interpretation strings generated by Analyza.

  • $msg->include_aqua_debug_response() / $msg->include_aqua_debug_response($value)

    Type: Bool

    Whether to include the Aqua debug response.

  • $msg->time_override() / $msg->time_override($value)

    Type: Int64

    The 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: Bool

    Set to true if request is initiated by an internal Google user.

  • $msg->ignore_cache() / $msg->ignore_cache($value)

    Type: Bool

    Determines 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: Bool

    Whether 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: Bool

    Whether 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: Bool

    Whether to include the entity list passed to Analyza.

  • $msg->include_table_list() / $msg->include_table_list($value)

    Type: Bool

    Whether to include the table list.

  • $msg->include_domain_list() / $msg->include_domain_list($value)

    Type: Bool

    Whether 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.