0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class DataQuery.

A query for retrieving data.

Generated from protobuf message `google.cloud.geminidataanalytics.v1beta.DataQuery`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ looker` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.LookerQuery` Optional. A query for retrieving data from a Looker explore. |
| `↳ question` | `string` Optional. A natural language question to answer. |
| `↳ name` | `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" |
| `↳ datasources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Datasource>` Optional. The datasources available to answer the question. |

### getLooker

Optional. A query for retrieving data from a Looker explore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.LookerQuery|null` |   |

### hasLooker

### setLooker

Optional. A query for retrieving data from a Looker explore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.LookerQuery` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQuestion

Optional. A natural language question to answer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setQuestion

Optional. A natural language question to answer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

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"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDatasources

Optional. The datasources available to answer the question.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Datasource>` |   |

### setDatasources

Optional. The datasources available to answer the question.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Datasource>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQueryType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |