# DeviceInfo

public final class **DeviceInfo** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Encapsulating information about an individual Matter device. Instances can be constructed
via the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` class, acquired by `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#builder()`.

### Nested Class Summary

|---|---|---|---|
| class | [DeviceInfo.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder) || Builder for constructing `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo` 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 [DeviceInfo.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder) | [builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#builder())() Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder` for constructing a `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo`. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| [Discriminator](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/Discriminator) | [getDiscriminator](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#getDiscriminator())() The device's discriminator, if known, used to discriminate between Matter device beacons to identify the target device. |
| int | [getProductId](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#getProductId())() The Product ID (PID) of the Matter device, if present, or else zero. |
| int | [getVendorId](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#getVendorId())() The Vendor ID (VID) of the Matter device, if present, or else zero. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#hashCode())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo#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 [DeviceInfo.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/DeviceInfo.Builder) **builder**
()

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

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

#### public [Discriminator](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/Discriminator)
**getDiscriminator** ()

The device's discriminator, if known, used to discriminate between Matter device
beacons to identify the target device.

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

The Product ID (PID) of the Matter device, if present, or else zero. The PID is not
strictly required to be included in the advertisements of all devices. In conjunction
with the VID, this ID uniquely identifies a particular product manufactured by the
vendor.

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

The Vendor ID (VID) of the Matter device, if present, or else zero. The VID is not
strictly required to be included in the advertisements of all devices. This ID uniquely
identifies the manufacturer of the beaconing device.

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

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