# DoorLockTrait.SetYearDayScheduleCommand.Request

# DoorLockTrait.SetYearDayScheduleCommand.Request


```
class DoorLockTrait.SetYearDayScheduleCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetYearDaySchedule 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/DoorLockTrait.SetYearDayScheduleCommand.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/DoorLockTrait.SetYearDayScheduleCommand.Request#Request(kotlin.UByte,kotlin.UShort,kotlin.UInt,kotlin.UInt)( yearDayIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, userIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, localStartTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, localEndTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html )` Creates a request payload for the SetYearDaySchedule 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/DoorLockTrait.SetYearDayScheduleCommand.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/DoorLockTrait.SetYearDayScheduleCommand.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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetYearDayScheduleCommand.Request#localEndTime()` The ending time for the year day schedule in Epoch Time in seconds with local time offset based on the local timezone and DST offset on the day represented by the value. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetYearDayScheduleCommand.Request#localStartTime()` The starting time for the year day schedule in Epoch Time in seconds with local time offset based on the local timezone and DST offset on the day represented by the value. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetYearDayScheduleCommand.Request#userIndex()` The unique identifier for the user for whom the repeating schedule is being set. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetYearDayScheduleCommand.Request#yearDayIndex()` The unique identifier for the year day schedule. |

## Public constructors

### Request

```
Request(
    yearDayIndex: UByte,
    userIndex: UShort,
    localStartTime: UInt,
    localEndTime: UInt
)
```

Creates a request payload for the SetYearDaySchedule 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

### localEndTime

```
val localEndTime: UInt
```

The ending time for the year day schedule in Epoch Time in seconds with local time offset based on the local timezone and DST offset on the day represented by the value.

### localStartTime

```
val localStartTime: UInt
```

The starting time for the year day schedule in Epoch Time in seconds with local time offset based on the local timezone and DST offset on the day represented by the value.

### userIndex

```
val userIndex: UShort
```

The unique identifier for the user for whom the repeating schedule is being set.

### yearDayIndex

```
val yearDayIndex: UByte
```

The unique identifier for the year day schedule.