# DnsSdServiceInfo


```
class DnsSdServiceInfo : Parcelable
```

<br />

*** ** * ** ***

Information about a resolved Matter DNS-SD service.

## Summary

| ### Nested types |
|---|
| `class https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo.Builder` Builder class to generate `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo` instances. |

| ### Public functions |
|---|---|
| `java-static https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo.Builder!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#builder()()` Returns an empty `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo.Builder` instance. |
| `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/DnsSdServiceInfo#equals(java.lang.Object)(o: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/NetworkLocation!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#getPrimaryNetworkLocation()()` Returns the highest priority `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/NetworkLocation` from `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#getNetworkLocations()`. |
| `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/DnsSdServiceInfo#getTxtAttributeValue(java.lang.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Returns the value of the `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/TxtRecord` that matches the given `key`, if present; else returns null. |
| `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/DnsSdServiceInfo#hasTxtAttribute(java.lang.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Returns true if there is a TXT record for the given `key`. |
| `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/DnsSdServiceInfo#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/DnsSdServiceInfo#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/DnsSdServiceInfo#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/DnsSdServiceInfo#instanceName()` |
| `(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/NetworkLocation!>!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#networkLocations()` |
| `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/DnsSdServiceInfo#serviceType()` |
| `(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/TxtRecord!>!` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#txtRecords()` |

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

## Public functions

### builder

```
java-static fun builder(): DnsSdServiceInfo.Builder!
```

Returns an empty `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo.Builder` instance.

### equals

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

### getPrimaryNetworkLocation

```
fun getPrimaryNetworkLocation(): NetworkLocation!
```

Returns the highest priority `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/common/NetworkLocation` from `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#getNetworkLocations()`. This is always equivalent to the first entry in `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/DnsSdServiceInfo#getNetworkLocations()` and is provided as a convenience.

### getTxtAttributeValue

```
fun getTxtAttributeValue(key: String!): String?
```

Returns the value of the `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/matter/discovery/TxtRecord` that matches the given `key`, if present; else returns null.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | the attribute key; case is ignored when matching |

### hasTxtAttribute

```
fun hasTxtAttribute(key: String!): Boolean
```

Returns true if there is a TXT record for the given `key`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | the attribute key; case is ignored when matching |

### hashCode

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

### toString

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

### writeToParcel

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

## Public properties

### instanceName

```
val instanceName: String!
```

### networkLocations

```
val networkLocations: (Mutable)List<NetworkLocation!>!
```

### serviceType

```
val serviceType: String!
```

### txtRecords

```
val txtRecords: (Mutable)List<TxtRecord!>!
```