# Badge

# Badge

*** ** * ** ***

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

<br />

```
class Badge
```

<br />

*** ** * ** ***

An object representing a badge.

## Summary

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

|                                                                                           ### Public functions                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!` | [getImage](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                         | [getText](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge#getText())`()` Returns the text for the badge.                |

## Public functions

### getImage

```
fun getImage(): Optional<Image!>!
```

Returns the logo/profile image of the badge.  

### getText

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

Returns the text for the badge.