# Trait.TraitMetadata

# Trait.TraitMetadata


```
class Trait.TraitMetadata
```

<br />

*** ** * ** ***

General metadata common to all traits.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata#TraitMetadata(com.google.home.SourceConnectivity)(sourceConnectivity: https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity?)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity?` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata#sourceConnectivity()` Network locality and connectivity state of the data source for this trait. |

## Public constructors

### TraitMetadata

```
TraitMetadata(sourceConnectivity: SourceConnectivity? = null)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### sourceConnectivity

```
val sourceConnectivity: SourceConnectivity?
```

Network locality and connectivity state of the data source for this trait. May be `null`, in which case no such information is known. Non-null value for this can only be one of ONLINE,OFFLINE,UNKNOWN.