# ChimeTrait.ChimeSoundStruct

# ChimeTrait.ChimeSoundStruct


```
class ChimeTrait.ChimeSoundStruct : ClusterStruct
```

<br />

*** ** * ** ***

A chime sound that can be played.

## 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/ChimeTrait.ChimeSoundStruct.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/ChimeTrait.ChimeSoundStruct#ChimeSoundStruct(kotlin.UByte,kotlin.String)(chimeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Creates the ChimeSoundStruct 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/ChimeTrait.ChimeSoundStruct#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/ChimeTrait.ChimeSoundStruct#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-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChimeTrait.ChimeSoundStruct#chimeId()` A unique identifier for the chime sound. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChimeTrait.ChimeSoundStruct#name()` The name of the chime sound. |

## Public constructors

### ChimeSoundStruct

```
ChimeSoundStruct(chimeId: UByte, name: String = "")
```

Creates the ChimeSoundStruct 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

### chimeId

```
val chimeId: UByte
```

A unique identifier for the chime sound.

### name

```
val name: String
```

The name of the chime sound.