# CommissioningCompleteMetadata

public final class **CommissioningCompleteMetadata** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Metadata to be returned after successfully commissioning a device.

### Nested Class Summary

|---|---|---|---|
| class | [CommissioningCompleteMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata.Builder) || Builder class to generate `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata` 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 [CommissioningCompleteMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata.Builder) | [builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#builder())() Returns an empty `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata.Builder` instance. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getDeviceNameHint](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#getDeviceNameHint())() Return a suggested name for the commissioned device. |
| [List](https://developer.android.com/reference/java/util/List.html)\<[Room](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room)\> | [getRooms](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#getRooms())() *This method is deprecated. rooms are no longer presented as part of the commissioning flow; room selection should be done within your own application* |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getToken](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#getToken())() Returns an opaque token identifying the device that was commissioned, if specified. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#hashCode())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata#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 [CommissioningCompleteMetadata.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningCompleteMetadata.Builder) **builder** ()

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

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

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

Return a suggested name for the commissioned device. This is not required, and if
not supplied, a suggestion will be generated for you.

#### public [List](https://developer.android.com/reference/java/util/List.html)\<[Room](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room)\>
**getRooms** ()

**This method is deprecated.**   

rooms are no longer presented as part of the commissioning flow; room selection should be
done within your own application
Returns a list of rooms the user will be asked to choose from. If your application
does not group devices into logical rooms, this list can be omitted and left empty.

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

Returns an opaque token identifying the device that was commissioned, if
specified.

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

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