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

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #field

    def field() -> ::String

**Returns**

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

### #field=

    def field=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The field to filter on. For example: \["event_date", "customer_id", "product_category"\]
**Returns**

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

### #type

    def type() -> ::Google::Cloud::GeminiDataAnalytics::V1::DataFilterType

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::DataFilterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-DataFilterType)) --- Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

### #type=

    def type=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1::DataFilterType

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1::DataFilterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-DataFilterType)) --- Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1::DataFilterType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1/latest/Google-Cloud-GeminiDataAnalytics-V1-DataFilterType)) --- Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

### #value

    def value() -> ::String

**Returns**

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

### #value=

    def value=(value) -> ::String

**Parameter**

- **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"\]
**Returns**

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