# Data Analytics API with Gemini V1 API - Class Google::Cloud::GeminiDataAnalytics::V1::DataQuery (v0.2.0)

0.2.0 (latest) 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1 API class Google::Cloud::GeminiDataAnalytics::V1::DataQuery.

A query for retrieving data.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #datasources

    def datasources() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1::Datasource>

**Returns**

- (::Array\<[::Google::Cloud::GeminiDataAnalytics::V1::Datasource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-Datasource)\>) --- Optional. The datasources available to answer the question.

### #datasources=

    def datasources=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1::Datasource>

**Parameter**

- **value** (::Array\<[::Google::Cloud::GeminiDataAnalytics::V1::Datasource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-Datasource)\>) --- Optional. The datasources available to answer the question.
**Returns**

- (::Array\<[::Google::Cloud::GeminiDataAnalytics::V1::Datasource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-Datasource)\>) --- Optional. The datasources available to answer the question.

### #looker

    def looker() -> ::Google::Cloud::GeminiDataAnalytics::V1::LookerQuery

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::LookerQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-LookerQuery)) --- Optional. A query for retrieving data from a Looker explore.

### #looker=

    def looker=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1::LookerQuery

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1::LookerQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-LookerQuery)) --- Optional. A query for retrieving data from a Looker explore.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::LookerQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-LookerQuery)) --- Optional. A query for retrieving data from a Looker explore.

### #name

    def name() -> ::String

**Returns**

- (::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"

### #name=

    def name=(value) -> ::String

**Parameter**

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

- (::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"

### #question

    def question() -> ::String

**Returns**

- (::String) --- Optional. A natural language question to answer.

### #question=

    def question=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A natural language question to answer.
**Returns**

- (::String) --- Optional. A natural language question to answer.