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

Context for the chat request using a data agent.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #context_version

    def context_version() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext::ContextVersion

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext::ContextVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAgentContext-ContextVersion)) --- Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

### #context_version=

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

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext::ContextVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAgentContext-ContextVersion)) --- Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext::ContextVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAgentContext-ContextVersion)) --- Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)

### #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. Deprecated: Use credentials in ChatRequest. The credentials to use when calling the Looker data source.


  Currently supports both OAuth token and API key-based credentials, as
  described in
  [Authentication with an
  SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).

### #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. Deprecated: Use credentials in ChatRequest. The credentials to use when calling the Looker data source.


  Currently supports both OAuth token and API key-based credentials, as
  described in
  [Authentication with an
  SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
**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. Deprecated: Use credentials in ChatRequest. The credentials to use when calling the Looker data source.


  Currently supports both OAuth token and API key-based credentials, as
  described in
  [Authentication with an
  SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).

### #data_agent

    def data_agent() -> ::String

**Returns**

- (::String) --- Required. The name of the data agent resource.

### #data_agent=

    def data_agent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the data agent resource.
**Returns**

- (::String) --- Required. The name of the data agent resource.