# A2uiSchemaKeyword.OneOf

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

*** ** * ** ***


```
class A2uiSchemaKeyword.OneOf : A2uiSchemaKeyword<Nothing>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.a2ui.model.schema.A2uiSchemaKeyword](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword)\<[Nothing](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html)\> ||
|   | ↳ | [androidx.a2ui.model.schema.A2uiSchemaKeyword.OneOf](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf) |

*** ** * ** ***

Subschemas where the instance must match exactly one (`oneOf`).

Uses `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html` as the type parameter so that covariance (`out T`) allows this keyword to be used in any typed schema's keyword list.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf#OneOf(kotlin.collections.List)(schemas: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema>)` |

| ### 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/A2uiSchemaKeyword.OneOf#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword.OneOf#schemas()` list of subschemas to validate against |

## Public constructors

### OneOf

```
OneOf(schemas: List<A2uiSchema>)
```

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### schemas

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

```
val schemas: List<A2uiSchema>
```

list of subschemas to validate against