# AppFunctionData.Builder

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

*** ** * ** ***


```
class AppFunctionData.Builder
```

<br />

*** ** * ** ***

Builder for constructing `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData`

For example, to write an `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` for calling an AppFunction

```kotlin
fun callCreateNoteFunction(metadata: AppFunctionMetadata) {
  val appFunctionData = AppFunctionData.Builder(
    metadata.parameters,
    metadata.components,
  ).apply {
    setString("title", "Note Title")
    // If the function doesn't accept "owner" as parameter, it would throw an error
    setString("owner", "Me")
    // If the function actually expects "content" as String, it would throw an error
    setInt("content", 100)
  }
   .build()
}
```

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#Builder(androidx.appfunctions.metadata.AppFunctionAllOfTypeMetadata,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)( allOfTypeMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata, componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata )` Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing an all-of object. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#Builder(androidx.appfunctions.metadata.AppFunctionObjectTypeMetadata,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)( objectTypeMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionObjectTypeMetadata, componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata )` Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing an object. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#Builder(kotlin.collections.List,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)( parameterMetadataList: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionParameterMetadata>, componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata )` Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create input data for an AppFunction execution call. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#Builder(androidx.appfunctions.metadata.AppFunctionResponseMetadata,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)( responseMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionResponseMetadata, componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata )` Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing a response. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#build()()` Builds `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData)` Sets an `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData>)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)` Sets an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html <T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: T)` Sets a `https://developer.android.com/reference/android/os/Parcelable.html` value of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)`. |
| `inline https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html <T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html <T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)( key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>, clazz: https://developer.android.com/reference/java/lang/Class.html<T> )` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)`. |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)` Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)`. |

## Public constructors

### Builder

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

```
Builder(
    allOfTypeMetadata: AppFunctionAllOfTypeMetadata,
    componentMetadata: AppFunctionComponentsMetadata
)
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing an all-of object.

The caller can use this to construct the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` that conforms with the provided `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#(androidx.appfunctions.metadata.AppFunctionAllOfTypeMetadata,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)`.

| Parameters |
|---|---|
| `allOfTypeMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata` defining the object structure. |
| `componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` that has the shared data types. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionAllOfTypeMetadata` |   |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` |   |

### Builder

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

```
Builder(
    objectTypeMetadata: AppFunctionObjectTypeMetadata,
    componentMetadata: AppFunctionComponentsMetadata
)
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing an object.

The caller can use this to construct the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` that conforms with the provided `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#(androidx.appfunctions.metadata.AppFunctionObjectTypeMetadata,androidx.appfunctions.metadata.AppFunctionComponentsMetadata)`.

| Parameters |
|---|---|
| `objectTypeMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionObjectTypeMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionObjectTypeMetadata` defining the object structure. |
| `componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` that has the shared data types. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionObjectTypeMetadata` |   |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` |   |

### Builder

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

```
Builder(
    parameterMetadataList: List<AppFunctionParameterMetadata>,
    componentMetadata: AppFunctionComponentsMetadata
)
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create input data for an AppFunction execution call.

The caller can use this to construct the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` for `https://developer.android.com/reference/kotlin/androidx/appfunctions/ExecuteAppFunctionRequest#functionParameters()`.

| Parameters |
|---|---|
| `parameterMetadataList: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionParameterMetadata>` | List of `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionParameterMetadata` defining the input parameters. |
| `componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` that has the shared data types. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionParameterMetadata` |   |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` |   |

### Builder

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

```
Builder(
    responseMetadata: AppFunctionResponseMetadata,
    componentMetadata: AppFunctionComponentsMetadata
)
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder` to create `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` representing a response.

The caller can use this to construct the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` for `https://developer.android.com/reference/kotlin/androidx/appfunctions/ExecuteAppFunctionResponse.Success#returnValue()`.

| Parameters |
|---|---|
| `responseMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionResponseMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionResponseMetadata` defining the response structure. |
| `componentMetadata: https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` that has the shared data types. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionResponseMetadata` |   |
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionComponentsMetadata` |   |

## Public functions

### build

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

```
fun build(): AppFunctionData
```

Builds `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData`

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if any required property, as defined by the metadata specification, is missing. |

### setAppFunctionData

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

```
@CanIgnoreReturnValue
fun setAppFunctionData(key: String, value: AppFunctionData): AppFunctionData.Builder
```

Sets an `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for. |
| `value: https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` | The `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionData(kotlin.String,androidx.appfunctions.AppFunctionData)`. |

### setAppFunctionDataList

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

```
@CanIgnoreReturnValue
fun setAppFunctionDataList(key: String, value: List<AppFunctionData>): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setAppFunctionDataList(kotlin.String,kotlin.collections.List)`. |

### setBoolean

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

```
@CanIgnoreReturnValue
fun setBoolean(key: String, value: Boolean): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBoolean(kotlin.String,kotlin.Boolean)`. |

### setBooleanArray

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

```
@CanIgnoreReturnValue
fun setBooleanArray(key: String, value: BooleanArray): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setBooleanArray(kotlin.String,kotlin.BooleanArray)`. |

### setByteArray

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

```
@CanIgnoreReturnValue
fun setByteArray(key: String, value: ByteArray): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setByteArray(kotlin.String,kotlin.ByteArray)`. |

### setDouble

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

```
@CanIgnoreReturnValue
fun setDouble(key: String, value: Double): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDouble(kotlin.String,kotlin.Double)`. |

### setDoubleArray

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

```
@CanIgnoreReturnValue
fun setDoubleArray(key: String, value: DoubleArray): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setDoubleArray(kotlin.String,kotlin.DoubleArray)`. |

### setFloat

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

```
@CanIgnoreReturnValue
fun setFloat(key: String, value: Float): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloat(kotlin.String,kotlin.Float)`. |

### setFloatArray

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

```
@CanIgnoreReturnValue
fun setFloatArray(key: String, value: FloatArray): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setFloatArray(kotlin.String,kotlin.FloatArray)`. |

### setInt

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

```
@CanIgnoreReturnValue
fun setInt(key: String, value: Int): AppFunctionData.Builder
```

Sets an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setInt(kotlin.String,kotlin.Int)`. |

### setIntArray

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

```
@CanIgnoreReturnValue
fun setIntArray(key: String, value: IntArray): AppFunctionData.Builder
```

Sets an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setIntArray(kotlin.String,kotlin.IntArray)`. |

### setLong

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

```
@CanIgnoreReturnValue
fun setLong(key: String, value: Long): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLong(kotlin.String,kotlin.Long)`. |

### setLongArray

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

```
@CanIgnoreReturnValue
fun setLongArray(key: String, value: LongArray): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setLongArray(kotlin.String,kotlin.LongArray)`. |

### setParcelable

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

```
@CanIgnoreReturnValue
fun <T : Parcelable> setParcelable(key: String, value: T): AppFunctionData.Builder
```

Sets a `https://developer.android.com/reference/android/os/Parcelable.html` value of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)`.

For `Parcelable` types not defined by the Android platform (e.g., custom classes shared between agents and apps), forward and backward compatibility is **not guaranteed** by this library. The sender and receiver of the `Parcelable` are responsible for managing any compatibility and versioning concerns.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the value for. |
| `value: T` | The `https://developer.android.com/reference/android/os/Parcelable.html` value of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelable(kotlin.String,android.os.Parcelable)` to set. |

### setParcelableList

```
@CanIgnoreReturnValue
inline fun <T : Parcelable> setParcelableList(key: String, value: List<T>): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)`.

For `Parcelable` types not defined by the Android platform (e.g., custom classes shared between agents and apps), forward and backward compatibility is **not guaranteed** by this framework. The sender and receiver of the `Parcelable` are responsible for managing any compatibility and versioning concerns.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the list for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List)` to set. |

### setParcelableList

```
@CanIgnoreReturnValue
fun <T : Parcelable> setParcelableList(
    key: String,
    value: List<T>,
    clazz: Class<T>
): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)` for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)`.

For `Parcelable` types not defined by the Android platform (e.g., custom classes shared between agents and apps), forward and backward compatibility is **not guaranteed** by this framework. The sender and receiver of the `Parcelable` are responsible for managing any compatibility and versioning concerns.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the list for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/android/os/Parcelable.html` values of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)` to set. |
| `clazz: https://developer.android.com/reference/java/lang/Class.html<T>` | The `https://developer.android.com/reference/java/lang/Class.html` of the `https://developer.android.com/reference/android/os/Parcelable.html` list to set, of type `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setParcelableList(kotlin.String,kotlin.collections.List,java.lang.Class)`. |

### setString

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

```
@CanIgnoreReturnValue
fun setString(key: String, value: String): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setString(kotlin.String,kotlin.String)`. |

### setStringList

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

```
@CanIgnoreReturnValue
fun setStringList(key: String, value: List<String>): AppFunctionData.Builder
```

Sets a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for the given `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to set the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value for. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value to set. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)` is not allowed or the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)` does not match the metadata specification associated with the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionData.Builder#setStringList(kotlin.String,kotlin.collections.List)`. |