# OtaSoftwareUpdateRequestorTrait.ProviderLocation

# OtaSoftwareUpdateRequestorTrait.ProviderLocation


```
class OtaSoftwareUpdateRequestorTrait.ProviderLocation : ClusterStruct
```

<br />

*** ** * ** ***

A fabric-scoped location of an OTA provider on a given fabric.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#ProviderLocation(kotlin.ULong,kotlin.UShort,kotlin.UByte)( providerNodeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, fabricIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html )` Creates the ProviderLocation class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#endpoint()` The endpoint ID for the provider node that implements the OTA Provider cluster. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#fabricIndex()` The identifier for the fabric where the OTA provider is located. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.ProviderLocation#providerNodeId()` |

## Public constructors

### ProviderLocation

```
ProviderLocation(
    providerNodeId: ULong,
    endpoint: UShort,
    fabricIndex: UByte
)
```

Creates the ProviderLocation class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### endpoint

```
val endpoint: UShort
```

The endpoint ID for the provider node that implements the OTA Provider cluster.

### fabricIndex

```
val fabricIndex: UByte
```

The identifier for the fabric where the OTA provider is located.

### providerNodeId

```
val providerNodeId: ULong
```