# ResolveServiceResult

public final class **ResolveServiceResult** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Result of a DNS-SD resolution request, encapsulating the resolved DNS-SD service info.

### 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 [ResolveServiceResult](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult) | [create](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult#create(com.google.android.gms.home.matter.discovery.DnsSdServiceInfo))([DnsSdServiceInfo](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo) serviceInfo) Returns a `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult` for the given `serviceInfo`. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) |
| [DnsSdServiceInfo](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo) | [getServiceInfo](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult#getServiceInfo())() Returns the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo` that was resolved. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult#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/discovery/ResolveServiceResult#toString())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult#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 [ResolveServiceResult](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult) **create**
([DnsSdServiceInfo](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo) serviceInfo)

Returns a `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/ResolveServiceResult` for the given `serviceInfo`.

##### Throws

| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException.html) | if `serviceInfo` is null |
|---|---|

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

#### public [DnsSdServiceInfo](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo)
**getServiceInfo** ()

Returns the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo` that was resolved.

#### 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)