# ResolveServiceRequest


```
class ResolveServiceRequest : Parcelable
```

<br />

*** ** * ** ***

Request for DNS-SD resolution to indicate information about the service to be resolved.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#SERVICE_TYPE_COMMISSIONABLE() = "_matterc._udp"` DNS-SD service type for a commissionable Matter service. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#SERVICE_TYPE_OPERATIONAL() = "_matter._tcp"` DNS-SD service type for an operational Matter service. |

| ### Public functions |
|---|---|
| `java-static https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#create(java.lang.String,java.lang.String)(instanceName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, serviceType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Creates a new `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest`. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#equals(java.lang.Object)(o: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#hashCode()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#toString()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#writeToParcel(android.os.Parcel,int)(dest: https://developer.android.com/reference/android/os/Parcel.html!, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#instanceName()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#serviceType()` |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited functions

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Constants

### SERVICE_TYPE_COMMISSIONABLE

```
const val SERVICE_TYPE_COMMISSIONABLE = "_matterc._udp": String!
```

DNS-SD service type for a commissionable Matter service.

### SERVICE_TYPE_OPERATIONAL

```
const val SERVICE_TYPE_OPERATIONAL = "_matter._tcp": String!
```

DNS-SD service type for an operational Matter service.

## Public functions

### create

```
java-static fun create(instanceName: String!, serviceType: String!): ResolveServiceRequest!
```

Creates a new `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest`.

| Parameters |
|---|---|
| `instanceName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | the DNS-SD instance name of the service to resolve |
| `serviceType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | the type of the service to discover (one of `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#SERVICE_TYPE_COMMISSIONABLE()`, one of `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/ResolveServiceRequest#SERVICE_TYPE_OPERATIONAL()`) |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if `serviceType` or `instanceName` are empty |

### equals

```
fun equals(o: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String!
```

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```

## Public properties

### instanceName

```
val instanceName: String!
```

### serviceType

```
val serviceType: String!
```