# Badge

# Badge

*** ** * ** ***

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

<br />

```
public final class Badge
```

<br />

*** ** * ** ***

An object representing a badge.

## Summary

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

|                                                                                        ### Public methods                                                                                        |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>` | [getImage](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge#getImage())`()` Returns the logo/profile image of the badge. |
| [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)`>`                           | [getText](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Badge#getText())`()` Returns the text for the badge.                |

## Public methods

### getImage

```
public Optional<Image> getImage()
```

Returns the logo/profile image of the badge.  

### getText

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

Returns the text for the badge.