# MessagesTrait

# MessagesTrait


```
@Generated(value = ["GoogleHomePlatformCodegen"])
object MessagesTrait
```

<br />

*** ** * ** ***

Attributes for MessagesTrait.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/javax/annotation/processing/Generated(value = ["GoogleHomePlatformCodegen"]) interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.Attributes : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` Attributes for the Messages cluster. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.CancelMessagesRequestCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Cancels the messages in the passed fields. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.CancelMessagesRequestCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the CancelMessagesRequest command. |
| `@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/MessagesTrait.CancelMessagesRequestCommand.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. |
| `data class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.Feature` Messages cluster FeatureMap. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.FutureMessagePreferenceEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` A display device may include this preference in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete` event as a hint to clients about how to handle future similar messages for the user. |
| `interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` This event is sent when the message is confirmed by the user or when the duration of the message has elapsed without confirmation. |
| `data class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageControlBitmap` Control information related to a message. |
| `interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessagePresented : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` This event is sent when a message is presented to the user. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessagePriorityEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` Priority should be used to determine which messages to show when the number of eligible messages is larger than the device's capacity to present them. |
| `interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageQueued : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` This event is sent when a message is added to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.Attributes#messages()` attribute. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageResponseOptionStruct : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` A possible response to a message. |
| `@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/MessagesTrait.MessageResponseOptionStruct.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageStruct : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` Information about a single message. |
| `@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/MessagesTrait.MessageStruct.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. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.PresentMessagesRequestCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Appends the message in the passed fields to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.Attributes#messages()` attribute. |
| `interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.PresentMessagesRequestCommand.OptionalArgs` Optional arguments for the command PresentMessagesRequestCommand Request |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.PresentMessagesRequestCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the PresentMessagesRequest command. |
| `@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/MessagesTrait.PresentMessagesRequestCommand.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 properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterId` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait#Id()` |

## Public properties

### Id

```
val Id: ClusterId
```