# DeviceDescriptor


```
class DeviceDescriptor : Parcelable
```

<br />

*** ** * ** ***

Minimal representation of information about a Matter device, to recognize the product and its purpose.

## Summary

| ### Nested types |
|---|
| `class https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder` Builder class to generate `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor` instances. |

| ### Public functions |
|---|---|
| `java-static https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#builder()()` Returns an empty `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder` instance. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#equals(java.lang.Object)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `@https://developer.android.com/reference/androidx/annotation/IntRange.html(from = 1, to = 65535) https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getNullableProductId()()` Like `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getProductId()` but returns `null` if product is unspecified (instead of 0). |
| `@https://developer.android.com/reference/androidx/annotation/IntRange.html(from = 1, to = 65535) https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getNullableVendorId()()` Like `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getVendorId()` but returns `null` if vendor is unknown. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#hashCode()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#toString()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#deviceType()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#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/common/DeviceDescriptor#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(): DeviceDescriptor.Builder!
```

Returns an empty `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder` instance.

### equals

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

### getNullableProductId

```
fun getNullableProductId(): @IntRange(from = 1, to = 65535) Int?
```

Like `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getProductId()` but returns `null` if product is unspecified (instead of 0).

### getNullableVendorId

```
fun getNullableVendorId(): @IntRange(from = 1, to = 65535) Int?
```

Like `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/DeviceDescriptor#getVendorId()` but returns `null` if vendor is unknown.

### hashCode

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

### toString

```
fun toString(): String!
```

### writeToParcel

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

## Public properties

### deviceType

```
val deviceType: Int
```

### productId

```
val productId: Int
```

### vendorId

```
val vendorId: Int
```