# AppFunctionAllOfTypeMetadata

Artifact: [androidx.appfunctions:appfunctions](https://developer.android.com/jetpack/androidx/releases/appfunctions) [View Source](https://cs.android.com/search?q=file:androidx/appfunctions/metadata/AppFunctionDataTypeMetadata.kt+class:androidx.appfunctions.metadata.AppFunctionAllOfTypeMetadata) Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

*** ** * ** ***


```
public final class AppFunctionAllOfTypeMetadata extends AppFunctionDataTypeMetadata
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.appfunctions.metadata.AppFunctionDataTypeMetadata](https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata) ||
|   | ↳ | [androidx.appfunctions.metadata.AppFunctionAllOfTypeMetadata](https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata) |

*** ** * ** ***

Defines the schema of a single object data type that is a composition of all of the other types in the `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#matchAll()` list.

An object of this type must match all of the `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata` in the `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#matchAll()` list. `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#matchAll()` takes an array of object definitions that are composed together to a single object to form this type. Note that while this composition offers object type extensibility, it does not imply a hierarchy between the objects matched in `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#matchAll()` i.e. the resulting single object is a flattened representation of all the other matched objects.

For example, consider the following objects:

```
package com.example.myapp

open class Address (
    open val street: String,
    open val city: String,
    open val state: String,
    open val zipCode: String,
)

class PersonWithAddress (
    override val street: String,
    override val city: String,
    override val state: String,
    override val zipCode: String,
    val name: String,
    val age: Int,
) : Address(street, city, state, zipCode)
```

The following `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata` can be used to define a data type that matches PersonWithAddress.

```
val personWithAddressType = AppFunctionAllOfTypeMetadata(
    qualifiedName = "com.example.myapp.PersonWithAddress",
    matchAll = listOf(
        AppFunctionObjectTypeMetadata(
            properties = mapOf(
                "street" to AppFunctionStringTypeMetadata(...),
                "city" to AppFunctionStringTypeMetadata(...),
                "state" to AppFunctionStringTypeMetadata(...),
                "zipCode" to AppFunctionStringTypeMetadata(...),
            ),
            required = listOf("street", "city", "state", "zipCode"),
            qualifiedName = "com.example.myapp.Address",
            isNullable = false,
        ),
        AppFunctionObjectTypeMetadata(
            properties = mapOf(
                "name" to AppFunctionStringTypeMetadata(...),
                "age" to AppFunctionIntTypeMetadata(...),
            ),
            required = listOf("name", "age"),
            qualifiedName = "com.example.myapp.PersonWithAddress",
            isNullable = false,
        ),
    ),
    isNullable = false,
)
```

This data type can be used to define the schema of an input or output type.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#AppFunctionAllOfTypeMetadata(kotlin.collections.List,kotlin.String,kotlin.Boolean,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata> matchAll, https://developer.android.com/reference/java/lang/String.html qualifiedName, boolean isNullable, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html description )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#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/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata>` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#getMatchAll()()` The list of data types that are composed. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#getQualifiedName()()` The composed object's qualified name if available. |
| `int` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata#toString()()` |

### Inherited methods

From [androidx.appfunctions.metadata.AppFunctionDataTypeMetadata](https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata) `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata#getDescription()()`

A description of the data type and its intended use.
`final boolean` `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionDataTypeMetadata#isNullable()()`

Whether the data type is nullable.

## Public constructors

### AppFunctionAllOfTypeMetadata

```
public AppFunctionAllOfTypeMetadata(
    @NonNull List<@NonNull AppFunctionDataTypeMetadata> matchAll,
    String qualifiedName,
    boolean isNullable,
    @NonNull String description
)
```

## Public methods

### equals

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

### getMatchAll

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

```
public final @NonNull List<@NonNull AppFunctionDataTypeMetadata> getMatchAll()
```

The list of data types that are composed.

### getQualifiedName

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

```
public final String getQualifiedName()
```

The composed object's qualified name if available. For example, "androidx.appfunctions.metadata.PersonWithAddress".

Use this value to set `https://developer.android.com/reference/androidx/appfunctions/AppFunctionData#qualifiedName()` when trying to build the parameters for `https://developer.android.com/reference/androidx/appfunctions/ExecuteAppFunctionRequest`.

### hashCode

```
public int hashCode()
```

### toString

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