# RecipeEntity

# RecipeEntity

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity "View this page in Java")  

<br />

```
class RecipeEntity : Entity
```

<br />

|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                   |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)            ||
|   | ↳ | [com.google.android.engage.food.datamodel.RecipeEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity) |

*** ** * ** ***

An object representing a recipe entity.

## Summary

|                                                                                                                                  ### Nested types                                                                                                                                   |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[RecipeEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder) Builder class for[RecipeEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity). |

|                                                                                                                                               ### Public functions                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                                                                                            | [getActionLinkUri](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getActionLinkUri())`()` Returns the action link uri of the food entity.           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getAuthor](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getAuthor())`()` Returns the name of the author for the recipe.                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getCallout())`()` Returns the callout of the recipe entity. e.g. "Trending under vegan" |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getCategory](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getCategory())`()` Returns the category of the recipe. e.g. "Greek"                    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getCookTime](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getCookTime())`()` Returns the cook time of the recipe. e.g. "Under 3 hours"           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getDescription())`()` Returns the description of the recipe.                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getEntityId())`()` Returns the id of the entity.                                       |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getPosterImages())`()` Returns the poster image of the entity.                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!>!`                                                                                                       | [getRating](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getRating())`()` Returns the rating of the food entity.                                  |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                 | [getTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity#getTitle())`()` Returns the title of the food entity.                                     |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getActionLinkUri

```
fun getActionLinkUri(): Uri!
```

Returns the action link uri of the food entity.  

### getAuthor

```
fun getAuthor(): Optional<String!>!
```

Returns the name of the author for the recipe.  

### getCallout

```
fun getCallout(): Optional<String!>!
```

Returns the callout of the recipe entity. e.g. "Trending under vegan"  

### getCategory

```
fun getCategory(): Optional<String!>!
```

Returns the category of the recipe. e.g. "Greek"  

### getCookTime

```
fun getCookTime(): Optional<String!>!
```

Returns the cook time of the recipe. e.g. "Under 3 hours"  

### getDescription

```
fun getDescription(): Optional<String!>!
```

Returns the description of the recipe.  

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the id of the entity.  

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the entity.  

### getRating

```
fun getRating(): Optional<Rating!>!
```

Returns the rating of the food entity.  

### getTitle

```
fun getTitle(): Optional<String!>!
```

Returns the title of the food entity.