# ThermostatTrait.SetWeeklyScheduleCommand.Request

# ThermostatTrait.SetWeeklyScheduleCommand.Request


```
class ThermostatTrait.SetWeeklyScheduleCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetWeeklySchedule 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/ThermostatTrait.SetWeeklyScheduleCommand.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/ThermostatTrait.SetWeeklyScheduleCommand.Request#Request(kotlin.UByte,com.google.home.matter.standard.ThermostatTrait.ScheduleDayOfWeekBitmap,com.google.home.matter.standard.ThermostatTrait.ScheduleModeBitmap,kotlin.collections.List)( numberOfTransitionsForSequence: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, dayOfWeekForSequence: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleDayOfWeekBitmap, modeForSequence: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleModeBitmap, transitions: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct> )` Creates a request payload for the SetWeeklySchedule 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/ThermostatTrait.SetWeeklyScheduleCommand.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/ThermostatTrait.SetWeeklyScheduleCommand.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/ThermostatTrait.ScheduleDayOfWeekBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.SetWeeklyScheduleCommand.Request#dayOfWeekForSequence()` The day(s) of the week to which all the transitions within the payload of the command should be associated. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleModeBitmap` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.SetWeeklyScheduleCommand.Request#modeForSequence()` How the app decodes the `coolSetpoint` and `heatSetpoint` fields of each transition. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.SetWeeklyScheduleCommand.Request#numberOfTransitionsForSequence()` The number of individual transitions to expect for this sequence of commands. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.SetWeeklyScheduleCommand.Request#transitions()` The list of setpoint transitions used to update the specified daily schedules. |

## Public constructors

### Request

```
Request(
    numberOfTransitionsForSequence: UByte,
    dayOfWeekForSequence: ThermostatTrait.ScheduleDayOfWeekBitmap = ScheduleDayOfWeekBitmap(),
    modeForSequence: ThermostatTrait.ScheduleModeBitmap = ScheduleModeBitmap(),
    transitions: List<ThermostatTrait.WeeklyScheduleTransitionStruct> = emptyList()
)
```

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

### dayOfWeekForSequence

```
val dayOfWeekForSequence: ThermostatTrait.ScheduleDayOfWeekBitmap
```

The day(s) of the week to which all the transitions within the payload of the command should be associated. The bitmap values conform to those defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleDayOfWeekBitmap`.

### modeForSequence

```
val modeForSequence: ThermostatTrait.ScheduleModeBitmap
```

How the app decodes the `coolSetpoint` and `heatSetpoint` fields of each transition. The bitmap values confirm to those defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleModeBitmap`.

### numberOfTransitionsForSequence

```
val numberOfTransitionsForSequence: UByte
```

The number of individual transitions to expect for this sequence of commands.

### transitions

```
val transitions: List<ThermostatTrait.WeeklyScheduleTransitionStruct>
```

The list of setpoint transitions used to update the specified daily schedules. Each setpoint transition is represented by a `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.WeeklyScheduleTransitionStruct`.