# Profile.Builder

# Profile.Builder

*** ** * ** ***

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

<br />

```
class Profile.Builder
```

<br />

*** ** * ** ***

Builder class for[Profile](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile).

## Summary

|                                                      ### Public constructors                                                       |
|------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#Builder())`()` |

|                                                      ### Public functions                                                       |
|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Profile](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                       |
| [Profile.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAdditionalImage](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#setAdditionalImage(com.google.android.engage.common.datamodel.Image))`(additionalImage: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Returns the additional image associated with the profile. e.g. handle |
| [Profile.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAdditionalText](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#setAdditionalText(java.lang.String))`(additionalText: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Returns the additional metadata associated with the profile. e.g. handle                                                         |
| [Profile.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAvatar](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#setAvatar(com.google.android.engage.common.datamodel.Image))`(avatar: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Returns the avatar associated with the profile.                                                  |
| [Profile.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setName](https://developer.android.com/reference/kotlin/com/google/android/engage/social/datamodel/Profile.Builder#setName(java.lang.String))`(name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Returns the name associated with the profile.                                                                                                                  |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### build

```
fun build(): Profile!
```  

### setAdditionalImage

```
@CanIgnoreReturnValue
fun setAdditionalImage(additionalImage: Image!): Profile.Builder!
```

Returns the additional image associated with the profile. e.g. handle

Optional.

Avatar must be set if additionalImage is set.  

### setAdditionalText

```
@CanIgnoreReturnValue
fun setAdditionalText(additionalText: String!): Profile.Builder!
```

Returns the additional metadata associated with the profile. e.g. handle

Optional.

Name must be set if additionalText is set.  

### setAvatar

```
@CanIgnoreReturnValue
fun setAvatar(avatar: Image!): Profile.Builder!
```

Returns the avatar associated with the profile.

Required.  

### setName

```
@CanIgnoreReturnValue
fun setName(name: String!): Profile.Builder!
```

Returns the name associated with the profile.

Required.