# ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct

# ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct


```
class ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct : ClusterStruct
```

<br />

*** ** * ** ***

Indicates when cumulative measurements were most recently zero.

## 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/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#CumulativeEnergyResetStruct(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( importedResetTimestamp: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>, exportedResetTimestamp: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>, importedResetSystime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?>, exportedResetSystime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?> )` Creates the CumulativeEnergyResetStruct class. |

| ### 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/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#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/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#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/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#exportedResetSystime()` The time, in milliseconds, since boot when cumulative exported energy was most recently zero. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#exportedResetTimestamp()` The timestamp in UTC of when cumulative exported energy was most recently zero. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#importedResetSystime()` The time, in milliseconds, since boot when cumulative imported energy was most recently zero. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.CumulativeEnergyResetStruct#importedResetTimestamp()` The timestamp in UTC of when cumulative imported energy was most recently zero. |

## Public constructors

### CumulativeEnergyResetStruct

```
CumulativeEnergyResetStruct(
    importedResetTimestamp: OptionalValue<UInt?> = OptionalValue.absent(),
    exportedResetTimestamp: OptionalValue<UInt?> = OptionalValue.absent(),
    importedResetSystime: OptionalValue<ULong?> = OptionalValue.absent(),
    exportedResetSystime: OptionalValue<ULong?> = OptionalValue.absent()
)
```

Creates the CumulativeEnergyResetStruct class.

## 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

### exportedResetSystime

```
val exportedResetSystime: OptionalValue<ULong?>
```

The time, in milliseconds, since boot when cumulative exported energy was most recently zero.

### exportedResetTimestamp

```
val exportedResetTimestamp: OptionalValue<UInt?>
```

The timestamp in UTC of when cumulative exported energy was most recently zero.

### importedResetSystime

```
val importedResetSystime: OptionalValue<ULong?>
```

The time, in milliseconds, since boot when cumulative imported energy was most recently zero.

### importedResetTimestamp

```
val importedResetTimestamp: OptionalValue<UInt?>
```

The timestamp in UTC of when cumulative imported energy was most recently zero.