# A2uiUpdateDataModelMessage

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/protocol/A2uiServerToClientMessage.kt+class:androidx.a2ui.model.protocol.A2uiUpdateDataModelMessage) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public final class A2uiUpdateDataModelMessage implements A2uiServerToClientMessage
```

<br />

*** ** * ** ***

Updates the data model of a surface.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#A2uiUpdateDataModelMessage(kotlin.String,kotlin.String,kotlin.Any)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html surfaceId, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path, https://developer.android.com/reference/java/lang/Object.html value )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#getPath()()` The absolute JSON pointer path to the data point to update. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#getSurfaceId()()` The ID of the surface to update. |
| `final https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#getValue()()` The new value to store. |
| `int` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiUpdateDataModelMessage#toString()()` |

## Public constructors

### A2uiUpdateDataModelMessage

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public A2uiUpdateDataModelMessage(
    @NonNull String surfaceId,
    @NonNull String path,
    Object value
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getPath

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public final @NonNull String getPath()
```

The absolute JSON pointer path to the data point to update. Defaults to root ("/") representing the root of the data model.

### getSurfaceId

```
public @NonNull String getSurfaceId()
```

The ID of the surface to update.

### getValue

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public final Object getValue()
```

The new value to store. If null (or omitted in JSON), the key/path is deleted from the data model.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```