# DeviceDescriptor

public final class **DeviceDescriptor** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Minimal representation of information about a Matter device, to recognize the product and
its purpose.

### Nested Class Summary

|---|---|---|---|
| class | [DeviceDescriptor.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder) || Builder class to generate `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor` instances. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_STABILITY_LOCAL |   |
| int | PARCELABLE_STABILITY_VINTF |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| static [DeviceDescriptor.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder) | [builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#builder())() Returns an empty `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder` instance. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| int | [getDeviceType](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#getDeviceType())() *This method is deprecated. this field is not expected to be populated; the vendor ID and product ID can be used to map to a device type* |
| int | [getProductId](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#getProductId())() Returns the product ID of the device, or zero if the product is unspecified or the vendor is unknown. |
| int | [getVendorId](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#getVendorId())() Returns the vendor ID of the device, or zero if the vendor is unknown. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#hashCode())() |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#toString())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public static [DeviceDescriptor.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor.Builder) **builder**
()

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

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) other)

#### public int **getDeviceType** ()

**This method is deprecated.**   

this field is not expected to be populated; the vendor ID and product ID can be used to
map to a device type
Returns the Matter device type value of the device.

#### public int **getProductId** ()

Returns the product ID of the device, or zero if the product is unspecified or the
vendor is unknown.

#### public int **getVendorId** ()

Returns the vendor ID of the device, or zero if the vendor is unknown.

#### public int **hashCode** ()

#### public [String](https://developer.android.com/reference/java/lang/String.html) **toString** ()

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)