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 LookerQuery.

Looker Query Object
[Looker API
documentation](https://cloud.google.com/looker/docs/reference/looker-api/latest/methods/Query/run_inline_query).

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ model` | `string` Required. The LookML model used to generate the query. |
| `↳ explore` | `string` Required. The LookML explore used to generate the query. |
| `↳ fields` | `string[]` Optional. The fields to retrieve from the explore. |
| `↳ filters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.LookerQuery.Filter>` Optional. The filters to apply to the explore. |
| `↳ sorts` | `string[]` Optional. The sorts to apply to the explore. |
| `↳ limit` | `string` Optional. Limit in the query. |
| `↳ dynamic_fields` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.DynamicField>` Optional. The dynamic fields used in the query. |
| `↳ query_id` | `string` Optional. The primary identifier for the query resource in Looker, used for API operations. Maps to `id` (or `slug`) in the Looker API `Query` resource. |
| `↳ client_id` | `string` Optional. The short alphanumeric identifier for the query, used for share links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id` in the Looker API `Query` resource. |

### getModel

Required. The LookML model used to generate the query.

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

### setModel

Required. The LookML model used to generate the query.

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

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

### getExplore

Required. The LookML explore used to generate the query.

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

### setExplore

Required. The LookML explore used to generate the query.

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

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

### getFields

Optional. The fields to retrieve from the explore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setFields

Optional. The fields to retrieve from the explore.

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

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

### getFilters

Optional. The filters to apply to the explore.

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

### setFilters

Optional. The filters to apply to the explore.

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

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

### getSorts

Optional. The sorts to apply to the explore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setSorts

Optional. The sorts to apply to the explore.

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

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

### getLimit

Optional. Limit in the query.

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

### hasLimit

### clearLimit

### setLimit

Optional. Limit in the query.

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

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

### getDynamicFields

Optional. The dynamic fields used in the query.

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

### setDynamicFields

Optional. The dynamic fields used in the query.

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

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

### getQueryId

Optional. The primary identifier for the query resource in Looker, used for
API operations. Maps to `id` (or `slug`) in the Looker API `Query`
resource.

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

### hasQueryId

### clearQueryId

### setQueryId

Optional. The primary identifier for the query resource in Looker, used for
API operations. Maps to `id` (or `slug`) in the Looker API `Query`
resource.

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

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

### getClientId

Optional. The short alphanumeric identifier for the query, used for share
links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
in the Looker API `Query` resource.

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

### hasClientId

### clearClientId

### setClientId

Optional. The short alphanumeric identifier for the query, used for share
links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
in the Looker API `Query` resource.

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

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