# CommissioningRequestMetadata

public final class **CommissioningRequestMetadata** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Metadata providing information necessary to complete commissioning of a Matter device
through a `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningService`.

### Nested Class Summary

|---|---|---|---|
| class | [CommissioningRequestMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata.Builder) || Builder class to generate `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata` 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 [CommissioningRequestMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata.Builder) | [builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#builder())() Returns an empty `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata.Builder` instance. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| [DeviceDescriptor](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor) | [getDeviceDescriptor](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#getDeviceDescriptor())() Returns information about the device to be commissioned. |
| [NetworkLocation](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/NetworkLocation) | [getNetworkLocation](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#getNetworkLocation())() Returns the location on the current network at which the device can be reached. |
| long | [getPasscode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#getPasscode())() Returns the code needed to establish a connection to the device to be commissioned. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#hashCode())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata#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 [CommissioningRequestMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningRequestMetadata.Builder) **builder** ()

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

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

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

Returns information about the device to be commissioned.

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

Returns the location on the current network at which the device can be reached.

#### public long **getPasscode** ()

Returns the code needed to establish a connection to the device to be
commissioned.

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

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