# DoorLockTrait.SetWeekDayScheduleCommand.Request

# DoorLockTrait.SetWeekDayScheduleCommand.Request


```
class DoorLockTrait.SetWeekDayScheduleCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetWeekDaySchedule 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.SetWeekDayScheduleCommand.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.SetWeekDayScheduleCommand.Request#Request(kotlin.UByte,kotlin.UShort,com.google.home.matter.standard.DoorLockTrait.DaysMaskMap,kotlin.UByte,kotlin.UByte,kotlin.UByte,kotlin.UByte)( weekDayIndex: 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, daysMask: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.DaysMaskMap, startHour: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, startMinute: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, endHour: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, endMinute: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html )` Creates a request payload for the SetWeekDaySchedule 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.SetWeekDayScheduleCommand.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.SetWeekDayScheduleCommand.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/DoorLockTrait.DaysMaskMap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.SetWeekDayScheduleCommand.Request#daysMask()` The days that constitute the repeating schedule. |
| `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.SetWeekDayScheduleCommand.Request#endHour()` The end hour of the repeating event. |
| `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.SetWeekDayScheduleCommand.Request#endMinute()` The end minute of the repeating event. |
| `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.SetWeekDayScheduleCommand.Request#startHour()` The start hour of the repeating event. |
| `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.SetWeekDayScheduleCommand.Request#startMinute()` The start minute of the repeating event. |
| `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.SetWeekDayScheduleCommand.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.SetWeekDayScheduleCommand.Request#weekDayIndex()` The unique identifier for the week day. |

## Public constructors

### Request

```
Request(
    weekDayIndex: UByte,
    userIndex: UShort,
    daysMask: DoorLockTrait.DaysMaskMap = DaysMaskMap(),
    startHour: UByte,
    startMinute: UByte,
    endHour: UByte,
    endMinute: UByte
)
```

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

### daysMask

```
val daysMask: DoorLockTrait.DaysMaskMap
```

The days that constitute the repeating schedule. Valid values are defined by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.DaysMaskMap`.

### endHour

```
val endHour: UByte
```

The end hour of the repeating event.

### endMinute

```
val endMinute: UByte
```

The end minute of the repeating event.

### startHour

```
val startHour: UByte
```

The start hour of the repeating event.

### startMinute

```
val startMinute: UByte
```

The start minute of the repeating event.

### userIndex

```
val userIndex: UShort
```

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

### weekDayIndex

```
val weekDayIndex: UByte
```

The unique identifier for the week day.