# RecipeEntity

# RecipeEntity

*** ** * ** ***

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

<br />

```
public final class RecipeEntity extends Entity
```

<br />

|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                                                                            |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)            ||
|   | ↳ | [com.google.android.engage.food.datamodel.RecipeEntity](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity) |

*** ** * ** ***

An object representing a recipe entity.

## Summary

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

|                                                                                         ### Public methods                                                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                | [getActionLinkUri](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getAuthor](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getCallout](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getCategory](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getCookTime](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getDescription](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getEntityId](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity#getEntityId())`()` Returns the id of the entity.                                       |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                         | [getPosterImages](https://developer.android.com/reference/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/com/google/android/engage/common/datamodel/Rating)`>` | [getRating](https://developer.android.com/reference/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://developer.android.com/reference/java/lang/String.html)`>`                             | [getTitle](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity#getTitle())`()` Returns the title of the food entity.                                     |

|                                                                                                                                                                                                          ### Inherited methods                                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity) |-------|--------------------------------------------------------------------------------------------------------------------------------| | `int` | [getEntityType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link uri of the food entity.  

### getAuthor

```
public Optional<String> getAuthor()
```

Returns the name of the author for the recipe.  

### getCallout

```
public Optional<String> getCallout()
```

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

### getCategory

```
public Optional<String> getCategory()
```

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

### getCookTime

```
public Optional<String> getCookTime()
```

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

### getDescription

```
public Optional<String> getDescription()
```

Returns the description of the recipe.  

### getEntityId

```
public Optional<String> getEntityId()
```

Returns the id of the entity.  

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster image of the entity.  

### getRating

```
public Optional<Rating> getRating()
```

Returns the rating of the food entity.  

### getTitle

```
public Optional<String> getTitle()
```

Returns the title of the food entity.