# DeviceInfo


```
class DeviceInfo : Parcelable
```

<br />

*** ** * ** ***

Encapsulating information about an individual Matter device. Instances can be constructed via the `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` class, acquired by `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#builder()`.

## Summary

| ### Nested types |
|---|
| `class https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` Builder for constructing `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo` instances. |

| ### Public functions |
|---|---|
| `java-static https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#builder()()` Returns a new `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` for constructing a `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo`. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#equals(java.lang.Object)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#hashCode()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#writeToParcel(android.os.Parcel,int)(dest: https://developer.android.com/reference/android/os/Parcel.html!, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/Discriminator?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#discriminator()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#productId()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo#vendorId()` |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited functions

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Public functions

### builder

```
java-static fun builder(): DeviceInfo.Builder!
```

Returns a new `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` for constructing a `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/commissioning/DeviceInfo`.

### equals

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

### hashCode

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

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```

## Public properties

### discriminator

```
val discriminator: Discriminator?
```

### productId

```
val productId: Int
```

### vendorId

```
val vendorId: Int
```