NAME

Google::Cloud::Geminidataanalytics::V1alpha::Context - Compiled Protocol Buffers messages for google/cloud/geminidataanalytics/v1alpha/context.proto

SYNOPSIS

use Google::Cloud::Geminidataanalytics::V1alpha::Context;

my $msg = Google::Cloud::Geminidataanalytics::V1alpha::Context::Context->new({
    system_instruction => $system_instruction,
    datasource_references => $datasource_references,
    options => $options,
    example_queries => $example_queries,
});

# Read or update a field
my $val = $msg->system_instruction();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Geminidataanalytics::V1alpha::Context::Context->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/geminidataanalytics/v1alpha/context.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::Geminidataanalytics::V1alpha::Context::Context

A collection of context to apply to this conversation

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::UserFunctions

A collection of user functions to be included in context.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::BigQueryRoutine

A reference to a BigQuery routine.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::BigQueryRoutineReference

A reference to a BigQuery routine.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The project ID of the routine.

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

    Type: String

    The dataset ID of the routine.

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

    Type: String

    The routine ID of the routine.

Google::Cloud::Geminidataanalytics::V1alpha::Context::ExampleQuery

Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present. Currently only used for BigQuery data sources.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'"

    Must be at most 50,000 bytes (approx. 50,000 characters).

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

    Type: String

    Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?"

    Must be at most 2,000 bytes (approx. 2,000 characters).

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::QueryParameter)

    Optional. The list of query parameters. Example: The parameterized SQL query "SELECT * FROM my_table WHERE id = @id" can be matched with any value of id.

Google::Cloud::Geminidataanalytics::V1alpha::Context::QueryParameter

A query parameter message represents a parameter that can be used to parameterize a SQL query.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the parameter reference in the SQL query.

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

    Type: String

    Optional. The description of the parameter that can be used by LLM to extract the parameter value from the user question.

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

    Type: String

    Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE", etc. For valid values, see the [BigQuery documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). This will be used to populate google.cloud.bigquery.v2.QueryParameterType.type.

Google::Cloud::Geminidataanalytics::V1alpha::Context::MatchedQuery

A matched query message represents the agent having matched one of the example queries supplied in context as being applicable to the current question. It will also contain additional info during the matching process.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::QueryParameterValues

A query parameter values message represents the values for the query parameters that were extracted from the user question by LLM, based on the example query.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the parameter.

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

    Type: String

    Required. The value of the parameter.

Google::Cloud::Geminidataanalytics::V1alpha::Context::LookerGoldenQuery

A golden query for Looker, including natural language questions and a corresponding Looker Query. Analogous to ExampleQuery.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Natural language questions that a user might ask. For example: "How many orders were placed last month?"

    Must be at most 2,000 bytes per question (approx. 2,000 characters).

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::LookerQuery)

    Optional. The Looker Query corresponding to the natural language questions.

Google::Cloud::Geminidataanalytics::V1alpha::Context::DynamicField

A dynamic field in Looker (Custom Dimension, Custom Measure, or Table Calculation).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The type of dynamic field: dimension, measure, table_calculation. Looker can use the category type to specify the name of the dynamic field. However, Looker Conversational Analytics keeps the category separate from the name of the dynamic field. For more details, see https://docs.cloud.google.com/looker/docs/reference/param-lookml-dashboard-table-chart#dynamic_fields.

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

    Type: String

    Optional. The name of the dynamic field in LookML.

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

    Type: String

    Optional. The label defines the display name of the dynamic field.

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

    Type: String

    Optional. For custom measures, this identifies the measure the field is based on.

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

    Type: String

    Optional. For custom measures, this identifies the type of aggregation (e.g. sum).

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

    Type: String

    Optional. Description of the dynamic field.

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

    Type: String

    Optional. Looker expression to create a table calculation.

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

    Type: String

    Optional. Looker expression to filter a base measure.

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

    Type: String

    Optional. Value format for the dynamic field.

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

    Type: String

    Optional. Value format name for the dynamic field if using a default named format.

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

    Type: String

    Optional. Calculation type for table calculations. Refer to https://docs.cloud.google.com/looker/docs/reference/param-lookml-dashboard-table-chart#calculation_type for all possible values depending on the `category` of dynamic field.

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

    Type: String

    Optional. Arguments for custom groups, custom bins, or shortcut calculations. For more details, refer to https://docs.cloud.google.com/looker/docs/reference/param-lookml-dashboard-table-chart#args_for_custom_groups

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

    Type: String

    Optional. Identifies whether the dynamic field returns a dimension or measure.

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

    Type: String

    Optional. Identifies the data type the dynamic field's expression should produce.

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

    Type: Bool

    Optional. Whether the dynamic field is disabled.

Google::Cloud::Geminidataanalytics::V1alpha::Context::LookerQuery

Looker Query Object [Looker API documentation](https://cloud.google.com/looker/docs/reference/looker-api/latest/methods/Query/run_inline_query).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The LookML model used to generate the query.

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

    Type: String

    Required. The LookML explore used to generate the query.

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

    Type: String

    Optional. The fields to retrieve from the explore.

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::LookerQuery::Filter)

    Optional. The filters to apply to the explore.

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

    Type: String

    Optional. The sorts to apply to the explore.

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

    Type: String

    Optional. Limit in the query.

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::DynamicField)

    Optional. The dynamic fields used in the query.

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

    Type: String

    Optional. The primary identifier for the query resource in Looker, used for API operations. Maps to `id` (or `slug`) in the Looker API `Query` resource.

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

    Type: String

    Optional. The short alphanumeric identifier for the query, used for share links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` in the Looker API `Query` resource.

Google::Cloud::Geminidataanalytics::V1alpha::Context::GlossaryTerm

Definition of a term within a specific domain.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. User friendly display name of the glossary term being defined. For example: "CTR", "conversion rate", "pending"

    Must be at most 256 bytes.

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

    Type: String

    Required. The description or meaning of the term. For example: "Click-through rate", "The percentage of users who complete a desired action", "An order that is waiting to be processed."

    Must be at most 5,000 bytes (approx. 5,000 characters).

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

    Type: String

    Optional. A list of general purpose labels associated to this term. For example: ["click rate", "clickthrough", "waiting"]

Google::Cloud::Geminidataanalytics::V1alpha::Context::ConversationOptions

Options for the conversation.

Inherits from Protobuf::Message.

Accessors

Enum: ConversationOptions::Model

  • MODEL_UNSPECIFIED => 0

  • LATEST_GA_MODEL => 1

Google::Cloud::Geminidataanalytics::V1alpha::Context::DatasourceOptions

Options for datasources configurations.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Wrappers::Int64Value)

    Optional. This option applies to datasources that require BigQuery queries only. Limits the bytes billed for each BQ query job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, no limit will be applied.

Google::Cloud::Geminidataanalytics::V1alpha::Context::ChartOptions

Options for chart generation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::AnalysisOptions

Options for analysis.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::Citation

Source attributions for content.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1alpha::Context::CitationSource

The source of the citation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The uri used as the source, such as a web grounding URL.

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::ExampleQuery)

    Output only. The example query used as the source.

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

    Type: Message (Google::Cloud::Geminidataanalytics::V1alpha::Context::GlossaryTerm)

    Output only. The glossary term used as the source.

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

    Type: String

    Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single `Citation` message.

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

    Type: String

    Output only. The title of the source.

Google::Cloud::Geminidataanalytics::V1alpha::Context::CitationAnchor

The anchor of the citation.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Geminidataanalytics::V1alpha::Context::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.