NAME
Google::Cloud::Geminidataanalytics::V1beta::Context - Compiled Protocol Buffers messages for google/cloud/geminidataanalytics/v1beta/context.proto
SYNOPSIS
use Google::Cloud::Geminidataanalytics::V1beta::Context;
my $msg = Google::Cloud::Geminidataanalytics::V1beta::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::V1beta::Context::Context->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/geminidataanalytics/v1beta/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::V1beta::Context::Context
A collection of context to apply to this conversation
Inherits from Protobuf::Message.
Accessors
$msg->system_instruction()/$msg->system_instruction($value)Type:
StringOptional. The basic entry point for data owners creating domain knowledge for Agent.
Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question.
Must be at most 250,000 bytes (approx. 250,000 characters for English text).
$msg->datasource_references()/$msg->datasource_references($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::DatasourceReferences)Required. Data sources that are available for answering the question.
$msg->options()/$msg->options($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ConversationOptions)Optional. Additional options for the conversation.
$msg->example_queries()/$msg->example_queries($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ExampleQuery)Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present. Currently only used for BigQuery data sources and databases (alloydb, cloudsql, spanner) data sources.
$msg->looker_golden_queries()/$msg->looker_golden_queries($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::LookerGoldenQuery)Optional. A list of golden queries, providing examples of relevant and commonly used Looker queries and their corresponding natural language queries optionally present. Only supported for Looker data sources.
$msg->glossary_terms()/$msg->glossary_terms($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::GlossaryTerm)Optional. Term definitions (currently, only user authored) Not supported for databases (alloydb, cloudsql, spanner) data sources.
$msg->schema_relationships()/$msg->schema_relationships($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::Context::SchemaRelationship)Optional. Relationships between table schema, including referencing and referenced columns.
$msg->user_functions()/$msg->user_functions($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::UserFunctions)Optional. A collection of user functions to be included in context.
Google::Cloud::Geminidataanalytics::V1beta::Context::UserFunctions
A collection of user functions to be included in context.
Inherits from Protobuf::Message.
Accessors
$msg->bq_routines()/$msg->bq_routines($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::BigQueryRoutine)A list of BigQuery routines to include in the context.
Google::Cloud::Geminidataanalytics::V1beta::Context::BigQueryRoutine
A reference to a BigQuery routine.
Inherits from Protobuf::Message.
Accessors
$msg->routine_reference()/$msg->routine_reference($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::BigQueryRoutineReference)The reference to the BigQuery routine.
$msg->description()/$msg->description($value)Type:
StringUser override or addition to description, to tell the agent when to use the UDF.
Google::Cloud::Geminidataanalytics::V1beta::Context::BigQueryRoutineReference
A reference to a BigQuery routine.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringThe project ID of the routine.
$msg->dataset_id()/$msg->dataset_id($value)Type:
StringThe dataset ID of the routine.
$msg->routine_id()/$msg->routine_id($value)Type:
StringThe routine ID of the routine.
Google::Cloud::Geminidataanalytics::V1beta::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:
StringOptional. 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:
StringOptional. 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::V1beta::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::V1beta::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:
StringRequired. The name of the parameter reference in the SQL query.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
StringRequired. 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::V1beta::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
$msg->example_query()/$msg->example_query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ExampleQuery)The query that was matched based on an example query.
$msg->query_parameter_values()/$msg->query_parameter_values($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::QueryParameterValues)The extracted values for the query parameters.
Google::Cloud::Geminidataanalytics::V1beta::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:
StringRequired. The name of the parameter.
$msg->value()/$msg->value($value)Type:
StringRequired. The value of the parameter.
Google::Cloud::Geminidataanalytics::V1beta::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:
StringOptional. 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::V1beta::Context::LookerQuery)Optional. The Looker Query corresponding to the natural language questions.
Google::Cloud::Geminidataanalytics::V1beta::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:
StringOptional. 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:
StringOptional. The name of the dynamic field in LookML.
$msg->label()/$msg->label($value)Type:
StringOptional. The label defines the display name of the dynamic field.
$msg->based_on()/$msg->based_on($value)Type:
StringOptional. For custom measures, this identifies the measure the field is based on.
$msg->type()/$msg->type($value)Type:
StringOptional. For custom measures, this identifies the type of aggregation (e.g. sum).
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the dynamic field.
$msg->expression()/$msg->expression($value)Type:
StringOptional. Looker expression to create a table calculation.
$msg->filter_expression()/$msg->filter_expression($value)Type:
StringOptional. Looker expression to filter a base measure.
$msg->value_format()/$msg->value_format($value)Type:
StringOptional. Value format for the dynamic field.
$msg->value_format_name()/$msg->value_format_name($value)Type:
StringOptional. Value format name for the dynamic field if using a default named format.
$msg->calculation_type()/$msg->calculation_type($value)Type:
StringOptional. 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:
StringOptional. 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:
StringOptional. Identifies whether the dynamic field returns a dimension or measure.
$msg->type_hint()/$msg->type_hint($value)Type:
StringOptional. Identifies the data type the dynamic field's expression should produce.
$msg->is_disabled()/$msg->is_disabled($value)Type:
BoolOptional. Whether the dynamic field is disabled.
Google::Cloud::Geminidataanalytics::V1beta::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:
StringRequired. The LookML model used to generate the query.
$msg->explore()/$msg->explore($value)Type:
StringRequired. The LookML explore used to generate the query.
$msg->fields()/$msg->fields($value)Type:
StringOptional. The fields to retrieve from the explore.
$msg->filters()/$msg->filters($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::LookerQuery::Filter)Optional. The filters to apply to the explore.
$msg->sorts()/$msg->sorts($value)Type:
StringOptional. The sorts to apply to the explore.
$msg->limit()/$msg->limit($value)Type:
StringOptional. Limit in the query.
$msg->dynamic_fields()/$msg->dynamic_fields($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::DynamicField)Optional. The dynamic fields used in the query.
$msg->query_id()/$msg->query_id($value)Type:
StringOptional. 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:
StringOptional. 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::V1beta::Context::GlossaryTerm
Definition of a term within a specific domain.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. 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:
StringRequired. 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:
StringOptional. A list of general purpose labels associated to this term. For example: ["click rate", "clickthrough", "waiting"]
Google::Cloud::Geminidataanalytics::V1beta::Context::ConversationOptions
Options for the conversation.
Inherits from Protobuf::Message.
Accessors
$msg->chart()/$msg->chart($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ChartOptions)Optional. Options for chart generation.
$msg->analysis()/$msg->analysis($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::AnalysisOptions)Optional. Options for analysis.
$msg->datasource()/$msg->datasource($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::DatasourceOptions)Optional. Options for datasources.
$msg->model()/$msg->model($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::ConversationOptions::Model)Optional. The model to use for the agent loop.
Enum: ConversationOptions::Model
MODEL_UNSPECIFIED=>0LATEST_GA_MODEL=>1
Google::Cloud::Geminidataanalytics::V1beta::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::V1beta::Context::ChartOptions
Options for chart generation.
Inherits from Protobuf::Message.
Accessors
$msg->image()/$msg->image($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ChartOptions::ImageOptions)Optional. When specified, the agent will render generated charts using the provided format. Defaults to no image.
Google::Cloud::Geminidataanalytics::V1beta::Context::AnalysisOptions
Options for analysis.
Inherits from Protobuf::Message.
Accessors
$msg->python()/$msg->python($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::AnalysisOptions::Python)Optional. Options for Python analysis.
Google::Cloud::Geminidataanalytics::V1beta::Context::Citation
Source attributions for content.
Inherits from Protobuf::Message.
Accessors
$msg->sources()/$msg->sources($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::CitationSource)Output only. List of the sources being cited.
$msg->anchors()/$msg->anchors($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::CitationAnchor)Output only. List of the anchors of the citations.
Google::Cloud::Geminidataanalytics::V1beta::Context::CitationSource
The source of the citation.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringOutput 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::V1beta::Context::ExampleQuery)Output only. The example query used as the source.
$msg->glossary_term()/$msg->glossary_term($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::GlossaryTerm)Output only. The glossary term used as the source.
$msg->id()/$msg->id($value)Type:
StringOutput 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:
StringOutput only. The title of the source.
Google::Cloud::Geminidataanalytics::V1beta::Context::CitationAnchor
The anchor of the citation.
Inherits from Protobuf::Message.
Accessors
$msg->text_message_anchor()/$msg->text_message_anchor($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::CitationAnchor::TextMessageCitationAnchor)Output only. Only set if the citation is for a TextMessage.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Geminidataanalytics::V1beta::Context::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.