# DoorLockTrait.SetHolidayScheduleCommand.Request

# DoorLockTrait.SetHolidayScheduleCommand.Request


```
class DoorLockTrait.SetHolidayScheduleCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetHolidaySchedule 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.SetHolidayScheduleCommand.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.SetHolidayScheduleCommand.Request#Request(kotlin.UByte,kotlin.UInt,kotlin.UInt,com.google.home.matter.standard.DoorLockTrait.OperatingModeEnum)( holidayIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/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, operatingMode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperatingModeEnum )` Creates a request payload for the SetHolidaySchedule 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.SetHolidayScheduleCommand.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.SetHolidayScheduleCommand.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-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetHolidayScheduleCommand.Request#holidayIndex()` The unique identifier for the holiday whose schedule is to be set. |
| `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.SetHolidayScheduleCommand.Request#localEndTime()` The ending time for the holiday 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.SetHolidayScheduleCommand.Request#localStartTime()` The starting time for the holiday 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://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperatingModeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetHolidayScheduleCommand.Request#operatingMode()` The operating mode to use for the specified holiday schedule start and end time. |

## Public constructors

### Request

```
Request(
    holidayIndex: UByte,
    localStartTime: UInt,
    localEndTime: UInt,
    operatingMode: DoorLockTrait.OperatingModeEnum = OperatingModeEnum.Normal
)
```

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

### holidayIndex

```
val holidayIndex: UByte
```

The unique identifier for the holiday whose schedule is to be set.

### localEndTime

```
val localEndTime: UInt
```

The ending time for the holiday 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 holiday 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.

### operatingMode

```
val operatingMode: DoorLockTrait.OperatingModeEnum
```

The operating mode to use for the specified holiday schedule start and end time. Valid values are defined by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.OperatingModeEnum`.