# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest (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::ChatRequest.

Request for Chat.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #client_managed_resource_context

    def client_managed_resource_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext

**Returns**

- ([::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)) --- 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 fields are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #client_managed_resource_context=

    def client_managed_resource_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext

**Parameter**

- **value** ([::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)) --- 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 fields are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::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)) --- 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 fields are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #conversation_reference

    def conversation_reference() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference

**Returns**

- ([::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)) --- Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.


  Note: The following fields are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #conversation_reference=

    def conversation_reference=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference

**Parameter**

- **value** ([::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)) --- Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.


  Note: The following fields are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::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)) --- Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.


  Note: The following fields are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #credentials

    def credentials() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Credentials

**Returns**

- ([::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)) --- 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).

### #credentials=

    def credentials=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Credentials

**Parameter**

- **value** ([::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)) --- 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).
**Returns**

- ([::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)) --- 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).

### #data_agent_context

    def data_agent_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext

**Returns**

- ([::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)) --- Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.


  Note: The following fields are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #data_agent_context=

    def data_agent_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext

**Parameter**

- **value** ([::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)) --- Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.


  Note: The following fields are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::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)) --- Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.


  Note: The following fields are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inline_context

    def inline_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context

**Returns**

- ([::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)) --- 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 fields are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inline_context=

    def inline_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context

**Parameter**

- **value** ([::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)) --- 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 fields are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::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)) --- 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 fields are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #looker_settings

    def looker_settings() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::LookerSettings

**Returns**

- ([::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)) --- Optional. Looker specific settings.

### #looker_settings=

    def looker_settings=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::LookerSettings

**Parameter**

- **value** ([::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)) --- Optional. Looker specific settings.
**Returns**

- ([::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)) --- Optional. Looker specific settings.

### #messages

    def messages() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>

**Returns**

- (::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)\>) --- Required. Content of current conversation.

### #messages=

    def messages=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>

**Parameter**

- **value** (::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)\>) --- Required. Content of current conversation.
**Returns**

- (::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)\>) --- Required. Content of current conversation.

### #model

    def model() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::Model

**Returns**

- ([::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.

### #model=

    def model=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::Model

**Parameter**

- **value** ([::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**

- ([::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.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent value for chat request. Pattern: `projects/{project}/locations/{location}`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent value for chat request. Pattern: `projects/{project}/locations/{location}`
**Returns**

- (::String) --- Required. The parent value for chat request. Pattern: `projects/{project}/locations/{location}`

### #project

    def project() -> ::String

**Returns**

- (::String) --- Optional. Deprecated: Use `parent` field instead. The Google Cloud project to be used for quota and billing.

### #project=

    def project=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Deprecated: Use `parent` field instead. The Google Cloud project to be used for quota and billing.
**Returns**

- (::String) --- Optional. Deprecated: Use `parent` field instead. The Google Cloud project to be used for quota and billing.

### #thinking_mode

    def thinking_mode() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::ThinkingMode

**Returns**

- ([::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.

### #thinking_mode=

    def thinking_mode=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest::ThinkingMode

**Parameter**

- **value** ([::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.
**Returns**

- ([::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.