# A2uiDynamicValueSchema

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/schema/commontypes/A2uiDynamicValueSchema.kt+class:androidx.a2ui.model.schema.commontypes.A2uiDynamicValueSchema) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
class A2uiDynamicValueSchema : A2uiCompositeSchema
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.a2ui.model.schema.A2uiSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema) |||
|   | ↳ | [androidx.a2ui.model.schema.A2uiCompositeSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema) ||
|   |   | ↳ | [androidx.a2ui.model.schema.commontypes.A2uiDynamicValueSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema) |

*** ** * ** ***

Represents values from literals, data bindings, or function calls.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#DEFAULT_INSTANCE()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#A2uiDynamicValueSchema(kotlin.String)(description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#getDefinition()()` Returns the underlying schema definition. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#toString()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#definitionName()` Name of this schema within the `$defs` section of the generated JSON Schema. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#description()` semantic description of the schema |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/commontypes/A2uiDynamicValueSchema#schemaId()` Root schema ID used to reference this sub-schema. |

### Inherited functions

From [androidx.a2ui.model.schema.A2uiCompositeSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema) `open https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema#toJsonElement()()`

Serializes this schema to a JSON Schema string representation.
From [androidx.a2ui.model.schema.A2uiSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema#toJsonSchema()()`

Serializes this schema to a JSON Schema string representation.

### Inherited properties

From [androidx.a2ui.model.schema.A2uiCompositeSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>>` `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema#keywords()`

List of JSON Schema keywords applied to this schema node.

## Public companion properties

### DEFAULT_INSTANCE

```
val DEFAULT_INSTANCE: A2uiDynamicValueSchema
```

## Public constructors

### A2uiDynamicValueSchema

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

```
A2uiDynamicValueSchema(description: String? = null)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### getDefinition

```
open fun getDefinition(): A2uiSchema
```

Returns the underlying schema definition.

Concrete subclasses must implement this to return the actual schema details that this schema wraps.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema` | the underlying schema definition |

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### definitionName

```
open val definitionName: String
```

Name of this schema within the `$defs` section of the generated JSON Schema.

If non-null, nested references to this schema will generate a `$ref` pointing to this definition name instead of inlining the full schema. Use this to avoid duplicating complex schemas in components.

### description

```
open val description: String?
```

semantic description of the schema

### schemaId

```
open val schemaId: String
```

Root schema ID used to reference this sub-schema.

Non-null values prepend this ID to the `$ref` path when serializing this schema.

- Format when non-null: `"$schemaId#/$defs/$definitionName"`

- Format when null: `"#/$defs/$definitionName"`

Note: This has no effect if `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiCompositeSchema#definitionName()` is null.