# SourceConnectivity

# SourceConnectivity


```
class SourceConnectivity
```

<br />

*** ** * ** ***

Data source metadata for a single trait.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity#SourceConnectivity(com.google.home.ConnectivityState,com.google.home.LocalityType,kotlin.collections.Set)( connectivityState: https://developers.home.google.com/reference/kotlin/com/google/home/ConnectivityState, dataSourceLocality: https://developers.home.google.com/reference/kotlin/com/google/home/LocalityType, backingHubs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Id> )` |

| ### 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/SourceConnectivity#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/SourceConnectivity#hashCode()()` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity#toString()()` |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/ConnectivityState` | `https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity#connectivityState()` The connectivity state of this `https://developers.home.google.com/reference/kotlin/com/google/home/Trait`'s underlying data source. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/LocalityType` | `https://developers.home.google.com/reference/kotlin/com/google/home/SourceConnectivity#dataSourceLocality()` The locality of this `https://developers.home.google.com/reference/kotlin/com/google/home/Trait`'s underlying data source. |

## Public constructors

### SourceConnectivity

```
SourceConnectivity(
    connectivityState: ConnectivityState,
    dataSourceLocality: LocalityType,
    backingHubs: Set<Id> = emptySet()
)
```

## Public functions

### equals

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

### hashCode

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

### toString

```
open fun toString(): String
```

## Public properties

### connectivityState

```
val connectivityState: ConnectivityState
```

The connectivity state of this `https://developers.home.google.com/reference/kotlin/com/google/home/Trait`'s underlying data source.

### dataSourceLocality

```
val dataSourceLocality: LocalityType
```

The locality of this `https://developers.home.google.com/reference/kotlin/com/google/home/Trait`'s underlying data source.

Note: Subsequent commands and writes are not guaranteed to take this route.