Service Client: Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataChatServiceClient
Client stub representing the remote DataChatService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to geminidataanalytics.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Geminidataanalytics::V1beta::DataChatService - Compiled Protocol Buffers messages for google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
SYNOPSIS
use Google::Cloud::Geminidataanalytics::V1beta::DataChatService;
my $msg = Google::Cloud::Geminidataanalytics::V1beta::DataChatService::QueryDataRequest->new({
parent => $parent,
prompt => $prompt,
context => $context,
generation_options => $generation_options,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Geminidataanalytics::V1beta::DataChatService::QueryDataRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/geminidataanalytics/v1beta/data_chat_service.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::DataChatService::QueryDataRequest
Request to query data from a natural language query.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource to generate the query for. Format: projects/{project}/locations/{location}
$msg->prompt()/$msg->prompt($value)Type:
StringRequired. The natural language query for which to generate query. Example: "What are the top 5 best selling products this month?"
$msg->context()/$msg->context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::QueryDataContext)Required. The context for the data query, including the data sources to use.
$msg->generation_options()/$msg->generation_options($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::GenerationOptions)Optional. Options to control query generation and execution behavior.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::GenerationOptions
Options to control query generation, execution, and response format.
Inherits from Protobuf::Message.
Accessors
$msg->generate_query_result()/$msg->generate_query_result($value)Type:
BoolOptional. If true, the generated query will be executed, and the result data will be returned in the response.
$msg->generate_natural_language_answer()/$msg->generate_natural_language_answer($value)Type:
BoolOptional. If true, a natural language answer based on the query execution result will be generated and returned in the response.
$msg->generate_explanation()/$msg->generate_explanation($value)Type:
BoolOptional. If true, an explanation of the generated query will be returned in the response.
$msg->generate_disambiguation_question()/$msg->generate_disambiguation_question($value)Type:
BoolOptional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous.
$msg->generate_debug_info()/$msg->generate_debug_info($value)Type:
BoolOptional. If true (default to false), returns internal debugging information.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::QueryDataContext
References to data sources and context to use for the query.
Inherits from Protobuf::Message.
Accessors
$msg->datasource_references()/$msg->datasource_references($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::DatasourceReferences)Required. The datasource references to use for the query.
$msg->parameterized_secure_view_parameters()/$msg->parameterized_secure_view_parameters($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ParameterizedSecureViewParameters)Optional. Parameters for Parameterized Secure Views (PSV).
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ParameterizedSecureViewParameters
Parameters for Parameterized Secure Views (PSV). These parameters are used to enforce row-level security during SQL generation and query execution.
Inherits from Protobuf::Message.
Accessors
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ParameterizedSecureViewParameters::Parameter)Optional. Named parameters for Parameterized Secure Views (PSV).
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::QueryDataResponse
Response containing the generated query and related information.
Inherits from Protobuf::Message.
Accessors
$msg->generated_query()/$msg->generated_query($value)Type:
StringGenerated query for the given user prompt.
$msg->intent_explanation()/$msg->intent_explanation($value)Type:
StringA natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.
$msg->query_result()/$msg->query_result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExecutedQueryResult)The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted.
$msg->natural_language_answer()/$msg->natural_language_answer($value)Type:
StringA natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.
$msg->disambiguation_question()/$msg->disambiguation_question($value)Type:
StringIf ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.
$msg->pipeline_debug_info()/$msg->pipeline_debug_info($value)Type:
Message(Google::Protobuf::Struct::Struct)Detailed step-by-step pipeline execution information. Populated only if generation_options.generate_debug_info was true. Provided for debugging and transparency purposes only. The structure and content of this object is not guaranteed and may change at any time without notice. Do not write production code or business logic depending on the fields in this object.
$msg->token_usage()/$msg->token_usage($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Usage::TokenUsage)Overall token usage for the request.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExecutedQueryResult
The result of a query execution. The design is generic for all dialects.
Inherits from Protobuf::Message.
Accessors
$msg->columns()/$msg->columns($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExecutedQueryResult::Column)The columns in the result set, in order.
$msg->rows()/$msg->rows($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExecutedQueryResult::Row)The rows returned by the query.
$msg->total_row_count()/$msg->total_row_count($value)Type:
Int64The total number of rows in the full result set, if known. This may be an estimate or an exact count. Note: if an internal limit (such as LIMIT 1000) was applied during query execution to guard against excessive data transfer, this count reflects the truncated result size rather than the unrestricted table result size.
$msg->partial_result()/$msg->partial_result($value)Type:
BoolSet to true if the returned rows in `query_result` are a subset of the full result. This can happen, for example, if the query execution hits a row limit. When true, the `query_result` does not contain all rows. To retrieve the complete result, consider using the `generated_query` in `QueryDataResponse` and executing it in your own environment.
$msg->query_execution_error()/$msg->query_execution_error($value)Type:
StringThe error message if the query execution failed.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ListMessagesRequest
Request for listing chat messages based on parent and conversation_id.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The conversation to list messages under. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size. Server may return fewer items than requested. The max page size is `100`. All larger page sizes will be coerced to `100`. If unspecified, server will pick `50` as an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results. See [AIP-160](https://google.aip.dev/160) for syntax.
ListMessages allows filtering by: * create_time (e.g., `createTime > "2025-01-28T06:51:56-08:00"`) * update_time
$msg->pending_write_wait_skipped()/$msg->pending_write_wait_skipped($value)Type:
BoolOptional. If true, the wait for in-flight writes on the most recent turn is skipped. By default ListMessages waits for those writes to become durable so a caller reading right after a chat turn does not miss the tail of that turn's messages.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ListMessagesResponse
Response for listing chat messages.
Inherits from Protobuf::Message.
Accessors
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::StorageMessage)The list of chat messages.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::StorageMessage
A stored message containing user message or system message.
Inherits from Protobuf::Message.
Accessors
$msg->message_id()/$msg->message_id($value)Type:
StringThe unique resource name of a chat message.
$msg->message()/$msg->message($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Message)The message content.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChatRequest
Request for Chat.
Inherits from Protobuf::Message.
Accessors
$msg->inline_context()/$msg->inline_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::Context)Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
$msg->conversation_reference()/$msg->conversation_reference($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ConversationReference)Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
$msg->data_agent_context()/$msg->data_agent_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataAgentContext)Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
$msg->client_managed_resource_context()/$msg->client_managed_resource_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClientManagedResourceContext)Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
$msg->looker_settings()/$msg->looker_settings($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::LookerSettings)Optional. Looker specific settings.
$msg->project()/$msg->project($value)Type:
StringOptional. Deprecated: Use `parent` field instead. The Google Cloud project to be used for quota and billing.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent value for chat request. Pattern: `projects/{project}/locations/{location}`
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Message)Required. Content of current conversation.
$msg->credentials()/$msg->credentials($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Credentials::Credentials)Optional. The credentials to use when calling the data source(s) specified in the context.
This field can be used to provide credentials for various data sources. For example, when connecting to Looker, it currently supports both OAuth token and API key-based credentials, as described in [Authentication with an SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
$msg->thinking_mode()/$msg->thinking_mode($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::ChatRequest::ThinkingMode)Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified.
$msg->model()/$msg->model($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::ChatRequest::Model)Optional. The model to use for the agent loop when processing the request. This setting only has an effect when context.options.model is not set.
Enum: ChatRequest::ThinkingMode
THINKING_MODE_UNSPECIFIED=>0FAST=>1THINKING=>2
Enum: ChatRequest::Model
MODEL_UNSPECIFIED=>0LATEST_GA_MODEL=>1
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataAgentContext
Context for the chat request using a data agent.
Inherits from Protobuf::Message.
Accessors
$msg->data_agent()/$msg->data_agent($value)Type:
StringRequired. The name of the data agent resource.
$msg->credentials()/$msg->credentials($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Credentials::Credentials)Optional. Deprecated: Use credentials in ChatRequest. The credentials to use when calling the Looker data source.
Currently supports both OAuth token and API key-based credentials, as described in [Authentication with an SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
$msg->context_version()/$msg->context_version($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::DataAgentContext::ContextVersion)Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
Enum: DataAgentContext::ContextVersion
CONTEXT_VERSION_UNSPECIFIED=>0STAGING=>1PUBLISHED=>2
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ConversationReference
Reference to a persisted conversation and agent context.
Inherits from Protobuf::Message.
Accessors
$msg->conversation()/$msg->conversation($value)Type:
StringRequired. Name of the conversation resource. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}`
$msg->data_agent_context()/$msg->data_agent_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataAgentContext)Required. Context for the chat request using a data agent.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClientManagedResourceContext
Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
Inherits from Protobuf::Message.
Accessors
$msg->inline_context()/$msg->inline_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::Context)Required. Context for the chat request. Use this to chat without GDA API managed conversation and agent persistence by passing all context inline.
$msg->conversation_id()/$msg->conversation_id($value)Type:
StringOptional. The client managed conversation id.
$msg->agent_id()/$msg->agent_id($value)Type:
StringOptional. The client managed agent id.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Message
A message from an interaction between the user and the system.
Inherits from Protobuf::Message.
Accessors
$msg->user_message()/$msg->user_message($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::UserMessage)A message from the user that is interacting with the system.
$msg->system_message()/$msg->system_message($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SystemMessage)A message from the system in response to the user.
$msg->timestamp()/$msg->timestamp($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.
$msg->message_id()/$msg->message_id($value)Type:
StringOptional. unique id of the message in the conversation for persistence.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::LookerSettings
Message to hold Looker specific custom settings.
Inherits from Protobuf::Message.
Accessors
$msg->enable_dev_mode()/$msg->enable_dev_mode($value)Type:
BoolOptional. Whether to operate in Looker's Development Mode. If true, the API session will be switched to the "dev" workspace, allowing interaction with LookML changes in the user's development branch. If false or unset, the session remains in the default state (Production Mode). See https://cloud.google.com/looker/docs/dev-mode-prod-mode.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::UserMessage
A message from the user that is interacting with the system.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringText should use this field instead of blob.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SystemMessage
A message from the system in response to the user. This message can also be a message from the user as historical context for multi-turn conversations with the system.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::TextMessage)A direct natural language response to the user message.
$msg->schema()/$msg->schema($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaMessage)A message produced during schema resolution.
$msg->data()/$msg->data($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataMessage)A message produced during data retrieval.
$msg->analysis()/$msg->analysis($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisMessage)A message produced during analysis.
$msg->chart()/$msg->chart($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartMessage)A message produced during chart generation.
$msg->error()/$msg->error($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ErrorMessage)An error message.
$msg->example_queries()/$msg->example_queries($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExampleQueries)Optional. A message containing example queries.
$msg->clarification()/$msg->clarification($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClarificationMessage)Optional. Deprecated: Use TextMessage with TextType.FINAL_RESPONSE instead. A message containing clarification questions.
$msg->group_id()/$msg->group_id($value)Type:
Int32Identifies the group that the event belongs to. Similar events are deemed to be logically relevant to each other and should be shown together in the UI.
$msg->citation()/$msg->citation($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::Citation)Output only. Citation information for the system message.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::TextMessage
A multi-part text message.
Inherits from Protobuf::Message.
Accessors
$msg->parts()/$msg->parts($value)Type:
StringOptional. The parts of the message.
$msg->text_type()/$msg->text_type($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::TextMessage::TextType)Optional. The type of the text message.
$msg->thought_signature()/$msg->thought_signature($value)Type:
BytesOptional. An opaque signature for a thought so it can be reused in subsequent requests.
Enum: TextMessage::TextType
TEXT_TYPE_UNSPECIFIED=>0FINAL_RESPONSE=>1THOUGHT=>2PROGRESS=>3FOLLOWUP_QUESTIONS=>4
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaMessage
A message produced during schema resolution.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaQuery)A schema resolution query.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaResult)The result of a schema resolution query.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaQuery
A query for resolving the schema relevant to the posed question.
Inherits from Protobuf::Message.
Accessors
$msg->question()/$msg->question($value)Type:
StringOptional. The question to send to the system for schema resolution.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::SchemaResult
The result of schema resolution.
Inherits from Protobuf::Message.
Accessors
$msg->datasources()/$msg->datasources($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::Datasource)Optional. The datasources used to resolve the schema query.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataMessage
A message produced during data retrieval.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataQuery)A data retrieval query.
$msg->generated_sql()/$msg->generated_sql($value)Type:
StringSQL generated by the system to retrieve data.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataResult)Retrieved data.
$msg->generated_looker_query()/$msg->generated_looker_query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::LookerQuery)Deprecated: generated looker query is now under DataQuery.looker. Looker Query generated by the system to retrieve data.
$msg->big_query_job()/$msg->big_query_job($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::BigQueryJob)A BigQuery job executed by the system to retrieve data.
$msg->matched_query()/$msg->matched_query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::MatchedQuery)A pre-existing query that was matched to retrieve data.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataQuery
A query for retrieving data.
Inherits from Protobuf::Message.
Accessors
$msg->looker()/$msg->looker($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::LookerQuery)Optional. A query for retrieving data from a Looker explore.
$msg->question()/$msg->question($value)Type:
StringOptional. A natural language question to answer.
$msg->name()/$msg->name($value)Type:
StringOptional. A snake-case name for the query that reflects its intent. It is used to name the corresponding data result, so that it can be referenced in later steps.
* Example: "total_sales_by_product" * Example: "sales_for_product_12345"
$msg->datasources()/$msg->datasources($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::Datasource)Optional. The datasources available to answer the question.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::DataResult
Retrieved data.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.
* Example: "total_sales_by_product" * Example: "sales_for_product_12345"
$msg->schema()/$msg->schema($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::Schema)Optional. The schema of the data.
$msg->data()/$msg->data($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.
$msg->formatted_data()/$msg->formatted_data($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. Formatted representation of the data, when applicable. Each row is a struct that directly corresponds to the row at the same index within the `data` field. Its values are string representations of the original data, formatted according to data source specifications (e.g., "$1,234.56" for currency). Columns without formatting will default to their raw value representation. If no columns have formatting rules, this field will be empty.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::BigQueryJob
A BigQuery job executed by the system.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The project that the job belongs to.
See [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
$msg->job_id()/$msg->job_id($value)Type:
StringRequired. The ID of the job.
See [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
$msg->location()/$msg->location($value)Type:
StringOptional. The location of the job.
See [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).
$msg->destination_table()/$msg->destination_table($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::BigQueryTableReference)Optional. A reference to the destination table of the job's query results.
See [JobConfigurationQuery](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfigurationquery).
$msg->schema()/$msg->schema($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Datasource::Schema)Optional. The schema of the job's query results.
See [JobStatistics2](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobstatistics2).
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisMessage
A message produced during analysis.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisQuery)An analysis query.
$msg->progress_event()/$msg->progress_event($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisEvent)An event indicating the progress of the analysis.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisQuery
A query for performing an analysis.
Inherits from Protobuf::Message.
Accessors
$msg->question()/$msg->question($value)Type:
StringOptional. An analysis question to help answer the user's original question.
$msg->data_result_names()/$msg->data_result_names($value)Type:
StringOptional. The names of previously retrieved data results to analyze.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::AnalysisEvent
An event indicating the progress of an analysis.
Inherits from Protobuf::Message.
Accessors
$msg->planner_reasoning()/$msg->planner_reasoning($value)Type:
StringPython codegen planner's reasoning.
$msg->coder_instruction()/$msg->coder_instruction($value)Type:
StringInstructions issued for code generation.
$msg->code()/$msg->code($value)Type:
StringGenerated code.
$msg->execution_output()/$msg->execution_output($value)Type:
StringOutput from code execution.
$msg->execution_error()/$msg->execution_error($value)Type:
StringAn error from code execution.
$msg->result_vega_chart_json()/$msg->result_vega_chart_json($value)Type:
StringResult as Vega chart JSON string.
$msg->result_natural_language()/$msg->result_natural_language($value)Type:
StringResult as NL string.
$msg->result_csv_data()/$msg->result_csv_data($value)Type:
StringResult as CSV string.
$msg->result_reference_data()/$msg->result_reference_data($value)Type:
StringResult as a reference to a data source.
$msg->error()/$msg->error($value)Type:
StringA generic error message.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartMessage
A message produced during chart generation.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartQuery)A query for generating a chart.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartResult)The result of a chart generation query.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartQuery
A query for generating a chart.
Inherits from Protobuf::Message.
Accessors
$msg->instructions()/$msg->instructions($value)Type:
StringOptional. Natural language instructions for generating the chart.
$msg->data_result_name()/$msg->data_result_name($value)Type:
StringOptional. The name of a previously retrieved data result to use in the chart.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ChartResult
The result of a chart generation query.
Inherits from Protobuf::Message.
Accessors
$msg->vega_config()/$msg->vega_config($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A generated Vega chart config. See https://vega.github.io/vega/docs/config/
$msg->image()/$msg->image($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Blob)Optional. A rendering of the chart if this was requested in the context.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ErrorMessage
An error message from a tool call. This message is used to represent an error that occurred while an agent was trying to use a tool. It's important to note that not all errors are terminal. Many are recoverable, and the agent may use the information from this error message to self-correct and retry the tool call or try a different approach.
For example, if a data query fails, the agent might receive an `ErrorMessage`, analyze it, and then generate a corrected query.
Clients should be cautious about interpreting this message as a definitive failure. It can be part of the agent's normal, iterative process of completing a task. Surfacing these errors directly to end-users without context (e.g., as a "hard failure") may be misleading.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
StringOutput only. The text of the error.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClarificationQuestion
Deprecated: Use TextMessage with TextType.FINAL_RESPONSE instead. Represents a single question to the user to help clarify their query.
Inherits from Protobuf::Message.
Accessors
$msg->question()/$msg->question($value)Type:
StringRequired. Deprecated: The parent message is deprecated. The natural language question to ask the user.
$msg->selection_mode()/$msg->selection_mode($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::ClarificationQuestion::SelectionMode)Required. Deprecated: The parent message is deprecated. The selection mode for this question.
$msg->options()/$msg->options($value)Type:
StringRequired. Deprecated: The parent message is deprecated. A list of distinct options for the user to choose from. The number of options is limited to a maximum of 5.
$msg->clarification_question_type()/$msg->clarification_question_type($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1beta::ClarificationQuestion::ClarificationQuestionType)Optional. Deprecated: The parent message is deprecated. The type of clarification question.
Enum: ClarificationQuestion::SelectionMode
SELECTION_MODE_UNSPECIFIED=>0SINGLE_SELECT=>1MULTI_SELECT=>2
Enum: ClarificationQuestion::ClarificationQuestionType
CLARIFICATION_QUESTION_TYPE_UNSPECIFIED=>0FILTER_VALUES=>1FIELDS=>2
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClarificationMessage
Deprecated: Use TextMessage with TextType.FINAL_RESPONSE instead. A message of questions to help clarify the user's query. This is returned when the system cannot confidently answer the user's question.
Inherits from Protobuf::Message.
Accessors
$msg->questions()/$msg->questions($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ClarificationQuestion)Required. Deprecated: The parent message is deprecated. A batch of clarification questions to ask the user.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::ExampleQueries
A message containing derived and authored example queries.
Inherits from Protobuf::Message.
Accessors
$msg->example_queries()/$msg->example_queries($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1beta::Context::ExampleQuery)Optional. A list of derived and authored 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.
Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Blob
A blob of data with a MIME type.
Inherits from Protobuf::Message.
Accessors
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. The IANA standard MIME type of the message data.
$msg->data()/$msg->data($value)Type:
BytesRequired. The data represented as bytes.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Geminidataanalytics::V1beta::DataChatService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.