# TraitFilter

# TraitFilter


```
class TraitFilter : HistoryFilter.DisjunctiveClause
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||
| ↳ | [com.google.home.HistoryFilter](https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter) |||
|   | ↳ | [com.google.home.HistoryFilter.DisjunctiveClause](https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter.DisjunctiveClause) ||
|   |   | ↳ | [com.google.home.TraitFilter](https://developers.home.google.com/reference/kotlin/com/google/home/TraitFilter) |

*** ** * ** ***

Trait filter using the existing SDK trait definitions.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFilter#TRAIT_FIELD()` |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFilter#TraitFilter(com.google.home.TraitFactory)(trait: https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/Trait>)` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFilter#toFilterString()()` All filter classes must implement this method so we can generate the string filter. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/Trait>` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitFilter#trait()` |

| ### Inherited functions |
|---|
| From [com.google.home.HistoryFilter](https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter) |---|---| | `infix https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter#AND(com.google.home.HistoryFilter)(other: https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter)` Infix 'AND' extension function. | |
| From [com.google.home.HistoryFilter.DisjunctiveClause](https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter.DisjunctiveClause) |---|---| | `infix https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter.DisjunctiveClause` | `https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter.DisjunctiveClause#OR(com.google.home.HistoryFilter.DisjunctiveClause)(other: https://developers.home.google.com/reference/kotlin/com/google/home/HistoryFilter.DisjunctiveClause)` Infix 'OR' extension function. | |

## Constants

### TRAIT_FIELD

```
const val TRAIT_FIELD: String
```

## Public constructors

### TraitFilter

```
TraitFilter(trait: TraitFactory<Trait>)
```

## Public functions

### toFilterString

```
open fun toFilterString(): String
```

All filter classes must implement this method so we can generate the string filter.

## Public properties

### trait

```
val trait: TraitFactory<Trait>
```