# AppFunctionSchemaMetadata

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

*** ** * ** ***


```
public final class AppFunctionSchemaMetadata
```

<br />

*** ** * ** ***

Represents a predefined AppFunction schema.

A schema defines a function's input parameters and output. This class holds identifying information about a specific, SDK-provided schema.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionSchemaMetadata#AppFunctionSchemaMetadata(kotlin.String,kotlin.String,kotlin.Long)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html category, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name, long version )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionSchemaMetadata#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/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionSchemaMetadata#getCategory()()` Specifies the category of the schema used by this function. |
| `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/AppFunctionSchemaMetadata#getName()()` The unique name of the schema within its category. |
| `final long` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionSchemaMetadata#getVersion()()` The version of the schema. |
| `int` | `https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionSchemaMetadata#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/AppFunctionSchemaMetadata#toString()()` |

## Public constructors

### AppFunctionSchemaMetadata

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

```
public AppFunctionSchemaMetadata(
    @NonNull String category,
    @NonNull String name,
    long version
)
```

## Public methods

### equals

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

### getCategory

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

```
public final @NonNull String getCategory()
```

Specifies the category of the schema used by this function. This allows for logical grouping of schemas. For instance, all schemas related to email functionality would be categorized as 'email'.

### getName

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

```
public final @NonNull String getName()
```

The unique name of the schema within its category.

### getVersion

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

```
public final long getVersion()
```

The version of the schema. This is used to track the changes to the schema over time.

### hashCode

```
public int hashCode()
```

### toString

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