# MessagesTrait.MessageComplete

# MessagesTrait.MessageComplete


```
interface MessagesTrait.MessageComplete : ClusterStruct
```

<br />

Known direct subclasses [Messages.MessageCompleteEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Messages.MessageCompleteEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Messages.MessageCompleteEvent` |   |

*** ** * ** ***

This event is sent when the message is confirmed by the user or when the duration of the message has elapsed without confirmation.

## Summary

| ### 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/MessagesTrait.MessageComplete#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/MessagesTrait.MessageComplete#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/standard/MessagesTrait.FutureMessagePreferenceEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete#futureMessagesPreference()` A user-provided preference for the delivery of similar messages in the future. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete#messageId()` The `messageID` for the message being confirmed. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete#reply()` A user-provided reply to a message. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageComplete#responseId()` The `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageResponseOptionStruct#messageResponseId()` selected by the user. |

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

### futureMessagesPreference

```
val futureMessagesPreference: MessagesTrait.FutureMessagePreferenceEnum?
```

A user-provided preference for the delivery of similar messages in the future. A null value indicates there is no change in user preference.

### messageId

```
val messageId: ByteArray?
```

The `messageID` for the message being confirmed.

### reply

```
val reply: String?
```

A user-provided reply to a message. If there is no reply or the message did not have the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageControlBitmap#responseRequired()` bit set, this field is null.

### responseId

```
val responseId: UInt?
```

The `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MessagesTrait.MessageResponseOptionStruct#messageResponseId()` selected by the user. If there is no response before the duration of the message elapses, this field is null.