# GeneralDiagnosticsTrait.DeviceLoadStruct


```
class GeneralDiagnosticsTrait.DeviceLoadStruct : ClusterStruct
```

<br />

*** ** * ** ***

## 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/GeneralDiagnosticsTrait.DeviceLoadStruct.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/GeneralDiagnosticsTrait.DeviceLoadStruct#DeviceLoadStruct(kotlin.UShort,kotlin.UShort,kotlin.UInt,kotlin.UInt,kotlin.UInt)( currentSubscriptions: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, currentSubscriptionsForFabric: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, totalSubscriptionsEstablished: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, totalInteractionModelMessagesSent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, totalInteractionModelMessagesReceived: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html )` |

| ### 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/GeneralDiagnosticsTrait.DeviceLoadStruct#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/GeneralDiagnosticsTrait.DeviceLoadStruct#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/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.DeviceLoadStruct#currentSubscriptions()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.DeviceLoadStruct#currentSubscriptionsForFabric()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.DeviceLoadStruct#totalInteractionModelMessagesReceived()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.DeviceLoadStruct#totalInteractionModelMessagesSent()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.DeviceLoadStruct#totalSubscriptionsEstablished()` |

## Public constructors

### DeviceLoadStruct

```
DeviceLoadStruct(
    currentSubscriptions: UShort,
    currentSubscriptionsForFabric: UShort,
    totalSubscriptionsEstablished: UInt,
    totalInteractionModelMessagesSent: UInt,
    totalInteractionModelMessagesReceived: UInt
)
```

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

### currentSubscriptions

```
val currentSubscriptions: UShort
```

### currentSubscriptionsForFabric

```
val currentSubscriptionsForFabric: UShort
```

### totalInteractionModelMessagesReceived

```
val totalInteractionModelMessagesReceived: UInt
```

### totalInteractionModelMessagesSent

```
val totalInteractionModelMessagesSent: UInt
```

### totalSubscriptionsEstablished

```
val totalSubscriptionsEstablished: UInt
```