# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.

REST client for the DataChatService service.


<br />

Service to ask a natural language question on top of BigQuery
and Looker Studio datasources to get back streamed responses of various kinds
to help provide a rich conversational answer.

## Inherits

- Object

## Includes

- [Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the DataChatService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration "Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all DataChatService clients
::Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.configure do |config|
  config.timeout = 10.0
end
```

### #chat

    def chat(request, options = nil) -> ::Enumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>
    def chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, client_managed_resource_context: nil, looker_settings: nil, project: nil, parent: nil, messages: nil, credentials: nil, thinking_mode: nil, model: nil) -> ::Enumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>

Answers a data question by generating a stream of
\[Message\]\[google.cloud.geminidataanalytics.v1.Message\] objects.
**Overloads**

    def chat(request, options = nil) -> ::Enumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>

Pass arguments to `chat` via a request object, either of type [ChatRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ChatRequest "Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ChatRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, client_managed_resource_context: nil, looker_settings: nil, project: nil, parent: nil, messages: nil, credentials: nil, thinking_mode: nil, model: nil) -> ::Enumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>

Pass arguments to `chat` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **inline_context** ([::Google::Cloud::GeminiDataAnalytics::V1beta::Context](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Context), ::Hash) --- 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.


  Note: The following parameters are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **conversation_reference** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ConversationReference), ::Hash) --- Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.


  Note: The following parameters are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **data_agent_context** ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAgentContext), ::Hash) --- Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.


  Note: The following parameters are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **client_managed_resource_context** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ClientManagedResourceContext), ::Hash) --- 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.


  Note: The following parameters are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **looker_settings** ([::Google::Cloud::GeminiDataAnalytics::V1beta::LookerSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-LookerSettings), ::Hash) --- Optional. Looker specific settings.
- **project** (::String) --- Optional. Deprecated: Use `parent` field instead. The Google Cloud project to be used for quota and billing.
- **parent** (::String) --- Required. The parent value for chat request. Pattern: `projects/{project}/locations/{location}`
- **messages** (::Array\<[::Google::Cloud::GeminiDataAnalytics::V1beta::Message](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Message), ::Hash\>) --- Required. Content of current conversation.
- **credentials** ([::Google::Cloud::GeminiDataAnalytics::V1beta::Credentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Credentials), ::Hash) --- 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).
- **thinking_mode** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::ThinkingMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ChatRequest-ThinkingMode)) --- Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified.
- **model** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::Model](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/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.
**Returns**

- (::Enumerable\<[::Google::Cloud::GeminiDataAnalytics::V1beta::Message](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Message)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest.new

# Call the chat method to start streaming.
output = client.chat request

# The returned object is a streamed enumerable yielding elements of type
# ::Google::Cloud::GeminiDataAnalytics::V1beta::Message
output.each do |current_response|
  p current_response
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the DataChatService Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client#Google__Cloud__GeminiDataAnalytics__V1beta__DataChatService__Rest__Client_configure_class_ "Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration "Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration))

### #create_conversation

    def create_conversation(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
    def create_conversation(parent: nil, conversation_id: nil, conversation: nil, request_id: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Creates a new conversation to persist the conversation history. Each
conversation will have multiple messages associated with it.
**Overloads**

    def create_conversation(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Pass arguments to `create_conversation` via a request object, either of type [CreateConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-CreateConversationRequest "Google::Cloud::GeminiDataAnalytics::V1beta::CreateConversationRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::CreateConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-CreateConversationRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_conversation(parent: nil, conversation_id: nil, conversation: nil, request_id: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Pass arguments to `create_conversation` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent value for CreateConversationRequest. Format: `projects/{project}/locations/{location}`
- **conversation_id** (::String) --- Optional. The conversation id of the conversation to create. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id.
- **conversation** ([::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation), ::Hash) --- Required. The conversation to create.
- **request_id** (::String) --- Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::CreateConversationRequest.new

# Call the create_conversation method.
result = client.create_conversation request

# The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::Conversation.
p result
```

### #delete_conversation

    def delete_conversation(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_conversation(name: nil) -> ::Google::Protobuf::Empty

Deletes a conversation.
**Overloads**

    def delete_conversation(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_conversation` via a request object, either of type [Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DeleteConversationRequest "Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DeleteConversationRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_conversation(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_conversation` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Name of the resource. Format: `projects/{project}/locations/{location}/conversations/{conversation}`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest.new

# Call the delete_conversation method.
result = client.delete_conversation request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #get_conversation

    def get_conversation(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
    def get_conversation(name: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Gets details of a single conversation by using conversation id and parent.
**Overloads**

    def get_conversation(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Pass arguments to `get_conversation` via a request object, either of type [GetConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-GetConversationRequest "Google::Cloud::GeminiDataAnalytics::V1beta::GetConversationRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::GetConversationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-GetConversationRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_conversation(name: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation

Pass arguments to `get_conversation` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Name of the resource. Format: `projects/{project}/locations/{location}/conversations/{conversation}`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::GetConversationRequest.new

# Call the get_conversation method.
result = client.get_conversation request

# The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::Conversation.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new DataChatService REST client object.
**Yields**

- (config) --- Configure the DataChatService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataChatService-Rest-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_conversations

    def list_conversations(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation>
    def list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation>

Lists all conversations for a given parent.
**Overloads**

    def list_conversations(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation>

Pass arguments to `list_conversations` via a request object, either of type [ListConversationsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ListConversationsRequest "Google::Cloud::GeminiDataAnalytics::V1beta::ListConversationsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ListConversationsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ListConversationsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation>

Pass arguments to `list_conversations` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent value for ListConversationsRequest. Format: `projects/{project}/locations/{location}`
- **page_size** (::Integer) --- 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.
- **page_token** (::String) --- Optional. A token identifying a page of results the server should return.
- **filter** (::String) ---

  Optional. Returned conversations will match criteria specified within the
  filter. ListConversations allows filtering by:
  - agents
  - labels
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-Conversation)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::ListConversationsRequest.new

# Call the list_conversations method.
result = client.list_conversations request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation.
  p item
end
```

### #list_messages

    def list_messages(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage>
    def list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage>

Lists all messages for a given conversation.
**Overloads**

    def list_messages(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage>

Pass arguments to `list_messages` via a request object, either of type [ListMessagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ListMessagesRequest "Google::Cloud::GeminiDataAnalytics::V1beta::ListMessagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ListMessagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ListMessagesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_messages(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage>

Pass arguments to `list_messages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The conversation to list messages under. Format: `projects/{project}/locations/{location}/conversations/{conversation_id}`
- **page_size** (::Integer) --- 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.
- **page_token** (::String) --- Optional. A token identifying a page of results the server should return.
- **filter** (::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
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-StorageMessage)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-StorageMessage)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::ListMessagesRequest.new

# Call the list_messages method.
result = client.list_messages request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::GeminiDataAnalytics::V1beta::StorageMessage.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Rest::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Rest::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #query_data

    def query_data(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse
    def query_data(parent: nil, prompt: nil, context: nil, generation_options: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse

Queries data from a natural language user query.
**Overloads**

    def query_data(request, options = nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse

Pass arguments to `query_data` via a request object, either of type [QueryDataRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-QueryDataRequest "Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-QueryDataRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def query_data(parent: nil, prompt: nil, context: nil, generation_options: nil) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse

Pass arguments to `query_data` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent resource to generate the query for. Format: projects/{project}/locations/{location}
- **prompt** (::String) --- Required. The natural language query for which to generate query. Example: "What are the top 5 best selling products this month?"
- **context** ([::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-QueryDataContext), ::Hash) --- Required. The context for the data query, including the data sources to use.
- **generation_options** ([::Google::Cloud::GeminiDataAnalytics::V1beta::GenerationOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-GenerationOptions), ::Hash) --- Optional. Options to control query generation and execution behavior.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-QueryDataResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-QueryDataResponse))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/gemini_data_analytics/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataRequest.new

# Call the query_data method.
result = client.query_data request

# The returned object is of type Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse.
p result
```

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)