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

    Required. The conversation to list messages under. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}`

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

    Type: Int32

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

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. 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: Bool

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

Google::Cloud::Geminidataanalytics::V1::DataChatService::StorageMessage

A stored message containing user message or system message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1::DataChatService::ChatRequest

Request for Chat.

Inherits from Protobuf::Message.

Accessors

Enum: ChatRequest::ThinkingMode

  • THINKING_MODE_UNSPECIFIED => 0

  • FAST => 1

  • THINKING => 2

Enum: ChatRequest::Model

  • MODEL_UNSPECIFIED => 0

  • LATEST_GA_MODEL => 1

Google::Cloud::Geminidataanalytics::V1::DataChatService::DataAgentContext

Context for the chat request using a data agent.

Inherits from Protobuf::Message.

Accessors

Enum: DataAgentContext::ContextVersion

  • CONTEXT_VERSION_UNSPECIFIED => 0

  • STAGING => 1

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

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

    Optional. The client managed conversation id.

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

    Type: String

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

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

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

    Text 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

Google::Cloud::Geminidataanalytics::V1::DataChatService::TextMessage

A multi-part text message.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. 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: Bytes

    Optional. An opaque signature for a thought so it can be reused in subsequent requests.

Enum: TextMessage::TextType

  • TEXT_TYPE_UNSPECIFIED => 0

  • FINAL_RESPONSE => 1

  • THOUGHT => 2

  • PROGRESS => 3

  • FOLLOWUP_QUESTIONS => 4

Google::Cloud::Geminidataanalytics::V1::DataChatService::SchemaMessage

A message produced during schema resolution.

Inherits from Protobuf::Message.

Accessors

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

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

Google::Cloud::Geminidataanalytics::V1::DataChatService::DataMessage

A message produced during data retrieval.

Inherits from Protobuf::Message.

Accessors

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

    Optional. A natural language question to answer.

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

    Type: String

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

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

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

    Required. The ID of the job.

    See [JobReference](https://cloud.google.com/bigquery/docs/reference/rest/v2/JobReference).

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

    Type: String

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

Google::Cloud::Geminidataanalytics::V1::DataChatService::AnalysisQuery

A query for performing an analysis.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. An analysis question to help answer the user's original question.

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

    Type: String

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

    Python codegen planner's reasoning.

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

    Type: String

    Instructions issued for code generation.

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

    Type: String

    Generated code.

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

    Type: String

    Output from code execution.

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

    Type: String

    An error from code execution.

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

    Type: String

    Result as Vega chart JSON string.

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

    Type: String

    Result as NL string.

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

    Type: String

    Result as CSV string.

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

    Type: String

    Result as a reference to a data source.

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

    Type: String

    A generic error message.

Google::Cloud::Geminidataanalytics::V1::DataChatService::ChartMessage

A message produced during chart generation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Geminidataanalytics::V1::DataChatService::ChartQuery

A query for generating a chart.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Natural language instructions for generating the chart.

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

    Type: String

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

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

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

    Required. The IANA standard MIME type of the message data.

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

    Type: Bytes

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