# EnergyEvseTrait.GetTargetsCommand.Response

# EnergyEvseTrait.GetTargetsCommand.Response


```
class EnergyEvseTrait.GetTargetsCommand.Response : ClusterStruct
```

<br />

*** ** * ** ***

The result of the `GetTargets` 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/EnergyEvseTrait.GetTargetsCommand.Response.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 response fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.GetTargetsCommand.Response#Response(kotlin.collections.List)( chargingTargetSchedules: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.ChargingTargetScheduleStruct> )` Creates a response payload from the GetTargets 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/EnergyEvseTrait.GetTargetsCommand.Response#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/EnergyEvseTrait.GetTargetsCommand.Response#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.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.ChargingTargetScheduleStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.GetTargetsCommand.Response#chargingTargetSchedules()` A list of up to seven sets of daily charging targets and their associated days of the week. |

## Public constructors

### Response

```
Response(
    chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct> = emptyList()
)
```

Creates a response payload from the GetTargets 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

### chargingTargetSchedules

```
val chargingTargetSchedules: List<EnergyEvseTrait.ChargingTargetScheduleStruct>
```

A list of up to seven sets of daily charging targets and their associated days of the week.