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

A filter on a datasource's underlying data. Filter syntax documentation:
<https://cloud.google.com/looker/docs/filter-expressions>

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `string` Optional. The field to filter on. For example: \["event_date", "customer_id", "product_category"\] |
| `↳ value` | `string` Optional. The default value used for this filter if the filter is not overridden in a query. For example: \["after 2024-01-01", "123", "-fashion"\] |
| `↳ type` | `int` Optional. The type of filter present on a datasource, such as ALWAYS_FILTER. |

### getField

Optional. The field to filter on. For example: \["event_date",
"customer_id", "product_category"\]

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

### setField

Optional. The field to filter on. For example: \["event_date",
"customer_id", "product_category"\]

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

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

### getValue

Optional. The default value used for this filter if the filter is not
overridden in a query. For example: \["after 2024-01-01", "123", "-fashion"\]

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

### setValue

Optional. The default value used for this filter if the filter is not
overridden in a query. For example: \["after 2024-01-01", "123", "-fashion"\]

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

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

### getType

Optional. The type of filter present on a datasource, such as
ALWAYS_FILTER.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataFilterType](https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.DataFilterType). |

### setType

Optional. The type of filter present on a datasource, such as
ALWAYS_FILTER.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataFilterType](https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.DataFilterType). |

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