# A2uiFunctionArgParser

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

*** ** * ** ***


```
public static class A2uiFunctionArgParser
```

<br />

*** ** * ** ***

Reusable utility methods to parse and validate dynamic arguments passed to catalog functions.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a raw argument value from the `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)` map under the given `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `final boolean` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a Boolean argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false". |
| `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/java/lang/Boolean.html>` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a List of Booleans under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false". |
| `final double` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a Double argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `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/java/lang/Double.html>` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a List of Doubles under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `final long` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a UTC epoch millisecond timestamp argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)`, supporting numeric timestamps (in seconds or milliseconds) and ISO 8601 date / date-time strings. |
| `final int` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves an Int argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `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/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a List of Ints under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `final long` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a Long argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `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/java/lang/Long.html>` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a List of Longs under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `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/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a String argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |
| `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/java/lang/String.html>` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path )` Retrieves a List of Strings under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`. |

## Public fields

### INSTANCE

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

```
public static @NonNull A2uiFunctionArgParser INSTANCE
```

## Public methods

### getArg

```
public final @NonNull Object getArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a raw argument value from the `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)` map under the given `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key to retrieve. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html` | The raw argument value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing. |

### getBooleanArg

```
public final boolean getBooleanArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a Boolean argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false".

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `boolean` | The resolved Boolean value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getBooleanListArg

```
public final @NonNull List<@NonNull Boolean> getBooleanListArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a List of Booleans under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getBooleanListArg(kotlin.collections.Map,kotlin.String,kotlin.String)` supporting either actual Booleans or the case-insensitive strings "true" and "false".

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `@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/java/lang/Boolean.html>` | The resolved List of Booleans. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getDoubleArg

```
public final double getDoubleArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a Double argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `double` | The resolved Double value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getDoubleListArg

```
public final @NonNull List<@NonNull Double> getDoubleListArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a List of Doubles under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getDoubleListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `@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/java/lang/Double.html>` | The resolved List of Doubles. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getEpochMillisArg

```
public final long getEpochMillisArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a UTC epoch millisecond timestamp argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getEpochMillisArg(kotlin.collections.Map,kotlin.String,kotlin.String)`, supporting numeric timestamps (in seconds or milliseconds) and ISO 8601 date / date-time strings.

Date-only strings (e.g., `"2026-06-15"`) are normalized to UTC start-of-day. Numeric values less than 10,000,000,000 are treated as epoch seconds, otherwise as epoch milliseconds.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `long` | The resolved timestamp in UTC epoch milliseconds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or cannot be parsed as a date or timestamp. |

### getIntArg

```
public final int getIntArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves an Int argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `int` | The resolved Int value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getIntListArg

```
public final @NonNull List<@NonNull Integer> getIntListArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a List of Ints under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getIntListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `@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/java/lang/Integer.html>` | The resolved List of Ints. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getLongArg

```
public final long getLongArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a Long argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `long` | The resolved Long value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or invalid. |

### getLongListArg

```
public final @NonNull List<@NonNull Long> getLongListArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a List of Longs under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getLongListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `@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/java/lang/Long.html>` | The resolved List of Longs. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |

### getStringArg

```
public final @NonNull String getStringArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a String argument under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final error path will be constructed as `"${path}/${key}"`. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | The resolved String value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing, invalid or violates constraints. |

### getStringListArg

```
public final @NonNull List<@NonNull String> getStringListArg(
    @NonNull Map<@NonNull String, @NonNull Object> args,
    @NonNull String key,
    @NonNull String path
)
```

Retrieves a List of Strings under `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiFunctionArgParser#getStringListArg(kotlin.collections.Map,kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html> args` | The map of arguments. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The argument key. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html path` | The parent context path. The final element path will be constructed with the index suffix, like `${path}/${key}/${index}`. |

| Returns |
|---|---|
| `@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/java/lang/String.html>` | The resolved List of Strings. |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiException.A2uiValidationException` | if the argument is missing or any element violates constraints. |