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

Message representing reference to a Spanner database and agent context.
Only supported for the `QueryData` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agent_context_reference

    def agent_context_reference() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-AgentContextReference)) --- Optional. Parameters for retrieving data from Agent Context.

### #agent_context_reference=

    def agent_context_reference=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-AgentContextReference)) --- Optional. Parameters for retrieving data from Agent Context.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::AgentContextReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-AgentContextReference)) --- Optional. Parameters for retrieving data from Agent Context.

### #database_reference

    def database_reference() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-SpannerDatabaseReference)) --- Required. Singular proto that supports specifying which database and tables to include.

### #database_reference=

    def database_reference=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-SpannerDatabaseReference)) --- Required. Singular proto that supports specifying which database and tables to include.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::SpannerDatabaseReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-SpannerDatabaseReference)) --- Required. Singular proto that supports specifying which database and tables to include.