# Rating.Builder

# Rating.Builder

*** ** * ** ***

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

<br />

```
public final class Rating.Builder
```

<br />

*** ** * ** ***

Builder class for[Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating).

## Summary

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

|                                                 ### Public methods                                                  |
|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating)                 | [build](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder#build())`()`                                                                                                                                                                                                                                                                                 |
| [Rating.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCount](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder#setCount(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` count)` Sets the count of the rating. e.g. 1.2k, 12k etc |
| [Rating.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCountValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder#setCountValue(long))`(long countValue)` Sets the count of the rating.                                                                                      |
| [Rating.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCurrentValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder#setCurrentValue(double))`(double currentValue)` Sets the current value of the rating.                                                                    |
| [Rating.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setMaxValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder#setMaxValue(double))`(double maxValue)` Sets the max value of the rating.                                                                                    |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### build

```
public Rating build()
```  

### setCount

```
@CanIgnoreReturnValue
public Rating.Builder setCount(String count)
```

Sets the count of the rating. e.g. 1.2k, 12k etc

Optional.  

### setCountValue

```
@CanIgnoreReturnValue
public Rating.Builder setCountValue(long countValue)
```

Sets the count of the rating.

Optional.  

### setCurrentValue

```
@CanIgnoreReturnValue
public Rating.Builder setCurrentValue(double currentValue)
```

Sets the current value of the rating.

Required.  

### setMaxValue

```
@CanIgnoreReturnValue
public Rating.Builder setMaxValue(double maxValue)
```

Sets the max value of the rating.

Required.