# Interface DataFilterOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface DataFilterOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getField()

    public abstract String getField()

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

`string field = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The field. |

### getFieldBytes()

    public abstract ByteString getFieldBytes()

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

`string field = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for field. |

### getType()

    public abstract DataFilterType getType()

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

`
.google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.DataFilterType` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

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

`
.google.cloud.geminidataanalytics.v1.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### getValue()

    public abstract String 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"\]

`string value = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The value. |

### getValueBytes()

    public abstract ByteString getValueBytes()

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

`string value = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for value. |