# OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request

# OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request


```
class OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the AnnounceOtaProvider command.

## 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.AnnounceOtaProviderCommand.Request.CommandFields : 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 command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request#Request(kotlin.ULong,kotlin.UShort,com.google.home.matter.standard.OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,com.google.home.matter.serialization.OptionalValue,kotlin.UShort)( providerNodeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, vendorId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, announcementReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum, metadataForNode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>, endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html )` Creates a request payload for the AnnounceOtaProvider command. |

| ### 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.AnnounceOtaProviderCommand.Request#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.AnnounceOtaProviderCommand.Request#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://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request#announcementReason()` The reason for the announcement. |
| `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.AnnounceOtaProviderCommand.Request#endpoint()` The endpoint ID of the node that implements the OTA Provider cluster. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.Request#metadataForNode()` A top-level anonymous list, where each list element contains a profile-specific tag encoded in fully-qualified form, and a manufacturer-specific payload. |
| `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.AnnounceOtaProviderCommand.Request#providerNodeId()` The ID of a node implementing the OTA Provider cluster. |
| `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.AnnounceOtaProviderCommand.Request#vendorId()` The assigned Vendor ID of the node invoking this command. |

## Public constructors

### Request

```
Request(
    providerNodeId: ULong,
    vendorId: UShort,
    announcementReason: OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum = AnnouncementReasonEnum.SimpleAnnouncement,
    metadataForNode: OptionalValue<ByteArray> = OptionalValue.absent(),
    endpoint: UShort
)
```

Creates a request payload for the AnnounceOtaProvider command.

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

### announcementReason

```
val announcementReason: OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum
```

The reason for the announcement.

### endpoint

```
val endpoint: UShort
```

The endpoint ID of the node that implements the OTA Provider cluster.

### metadataForNode

```
val metadataForNode: OptionalValue<ByteArray>
```

A top-level anonymous list, where each list element contains a profile-specific tag encoded in fully-qualified form, and a manufacturer-specific payload.

### providerNodeId

```
val providerNodeId: ULong
```

The ID of a node implementing the OTA Provider cluster.

### vendorId

```
val vendorId: UShort
```

The assigned Vendor ID of the node invoking this command.