# Keyword

Artifact: [androidx.appsearch:appsearch-builtin-types](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/builtintypes/properties/Keyword.java+class:androidx.appsearch.builtintypes.properties.Keyword) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

*** ** * ** ***


```
@Document
class Keyword
```

<br />

*** ** * ** ***

Holds a value assignable to <http://schema.org/keywords>.

Contains exactly one of:

- Text i.e. `https://developer.android.com/reference/java/lang/String.html`

Note: More types may be added over time.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/appsearch/builtintypes/properties/Keyword#Keyword(java.lang.String)(asText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/appsearch/builtintypes/properties/Keyword#asText()()` Returns the Text i.e. `https://developer.android.com/reference/java/lang/String.html` variant, if populated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/builtintypes/properties/Keyword#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appsearch/builtintypes/properties/Keyword#hashCode()()` |

## Public constructors

### Keyword

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
Keyword(asText: String)
```

## Public functions

### asText

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun asText(): String?
```

Returns the Text i.e. `https://developer.android.com/reference/java/lang/String.html` variant, if populated. Otherwise, null.

### equals

```
fun equals(o: Any!): Boolean
```

### hashCode

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