# ThermostatTrait.GetWeeklyScheduleCommand.Request

# ThermostatTrait.GetWeeklyScheduleCommand.Request


```
class ThermostatTrait.GetWeeklyScheduleCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the GetWeeklySchedule 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.GetWeeklyScheduleCommand.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.GetWeeklyScheduleCommand.Request#Request(com.google.home.matter.standard.ThermostatTrait.ScheduleDayOfWeekBitmap,com.google.home.matter.standard.ThermostatTrait.ScheduleModeBitmap)( daysToReturn: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleDayOfWeekBitmap, modeToReturn: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.ScheduleModeBitmap )` Creates a request payload for the GetWeeklySchedule 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.GetWeeklyScheduleCommand.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.GetWeeklyScheduleCommand.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.GetWeeklyScheduleCommand.Request#daysToReturn()` The number of days the client would like to return the set point values for. |
| `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.GetWeeklyScheduleCommand.Request#modeToReturn()` Indicates the mode the client would like to return the set point values for. |

## Public constructors

### Request

```
Request(
    daysToReturn: ThermostatTrait.ScheduleDayOfWeekBitmap = ScheduleDayOfWeekBitmap(),
    modeToReturn: ThermostatTrait.ScheduleModeBitmap = ScheduleModeBitmap()
)
```

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

### daysToReturn

```
val daysToReturn: ThermostatTrait.ScheduleDayOfWeekBitmap
```

The number of days the client would like to return the set point values for. It can be any combination of single days or the entire week.

### modeToReturn

```
val modeToReturn: ThermostatTrait.ScheduleModeBitmap
```

Indicates the mode the client would like to return the set point values for. It can be any combination of modes.