Service Client: Google::Cloud::Geminidataanalytics::V1::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::V1::DataChatService - Compiled Protocol Buffers messages for google/cloud/geminidataanalytics/v1/data_chat_service.proto
SYNOPSIS
use Google::Cloud::Geminidataanalytics::V1::DataChatService;
my $msg = Google::Cloud::Geminidataanalytics::V1::DataChatService::ListMessagesRequest->new({
parent => $parent,
page_size => $page_size,
page_token => $page_token,
filter => $filter,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Geminidataanalytics::V1::DataChatService::ListMessagesRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/geminidataanalytics/v1/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::V1::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::V1::DataChatService::ListMessagesResponse
Response for listing chat messages.
Inherits from Protobuf::Message.
Accessors
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::DataChatService::Message)The message content.
Google::Cloud::Geminidataanalytics::V1::DataChatService::ChatRequest
Request for Chat.
Inherits from Protobuf::Message.
Accessors
$msg->inline_context()/$msg->inline_context($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::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::V1::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::V1::DataChatService::LookerSettings)Optional. Looker specific settings.
$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::V1::DataChatService::Message)Required. Content of current conversation.
$msg->credentials()/$msg->credentials($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::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::V1::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->context_version()/$msg->context_version($value)Type:
Enum(Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::DataChatService::DataAgentContext)Required. Context for the chat request using a data agent.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::DataChatService::TextMessage)A direct natural language response to the user message.
$msg->schema()/$msg->schema($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::SchemaMessage)A message produced during schema resolution.
$msg->data()/$msg->data($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::DataMessage)A message produced during data retrieval.
$msg->analysis()/$msg->analysis($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::AnalysisMessage)A message produced during analysis.
$msg->chart()/$msg->chart($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::ChartMessage)A message produced during chart generation.
$msg->error()/$msg->error($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::ErrorMessage)An error message.
$msg->example_queries()/$msg->example_queries($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::ExampleQueries)Optional. A message containing example queries.
$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::V1::Context::Citation)Output only. Citation information for the system message.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::DataChatService::SchemaMessage
A message produced during schema resolution.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::SchemaQuery)A schema resolution query.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::SchemaResult)The result of a schema resolution query.
Google::Cloud::Geminidataanalytics::V1::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::V1::DataChatService::SchemaResult
The result of schema resolution.
Inherits from Protobuf::Message.
Accessors
$msg->datasources()/$msg->datasources($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::Datasource::Datasource)Optional. The datasources used to resolve the schema query.
Google::Cloud::Geminidataanalytics::V1::DataChatService::DataMessage
A message produced during data retrieval.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::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::V1::DataChatService::DataResult)Retrieved data.
$msg->big_query_job()/$msg->big_query_job($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::BigQueryJob)A BigQuery job executed by the system to retrieve data.
$msg->matched_query()/$msg->matched_query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::Context::MatchedQuery)A pre-existing query that was matched to retrieve data.
Google::Cloud::Geminidataanalytics::V1::DataChatService::DataQuery
A query for retrieving data.
Inherits from Protobuf::Message.
Accessors
$msg->looker()/$msg->looker($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::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::V1::Datasource::Datasource)Optional. The datasources available to answer the question.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::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::V1::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::V1::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::V1::DataChatService::AnalysisMessage
A message produced during analysis.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::AnalysisQuery)An analysis query.
$msg->progress_event()/$msg->progress_event($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::AnalysisEvent)An event indicating the progress of the analysis.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::DataChatService::ChartMessage
A message produced during chart generation.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::ChartQuery)A query for generating a chart.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Geminidataanalytics::V1::DataChatService::ChartResult)The result of a chart generation query.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::DataChatService::Blob)Optional. A rendering of the chart if this was requested in the context.
Google::Cloud::Geminidataanalytics::V1::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::V1::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::V1::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::V1::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::V1::DataChatService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.