AggregateRatingBuilder

public final class AggregateRatingBuilder extends IndexableBuilder<AggregateRatingBuilder>

Builder to construct an Indexable for aggregate rating.

The aggregate rating can only be used as a parameter of other builders, and it cannot be passed to FirebaseAppIndex.update(Indexable...) directly.

For reference, see: //schema.org/AggregateRating.

Public Method Summary

AggregateRatingBuilder
setRatingCount(long ratingCount)
Sets the count of total number of ratings.
AggregateRatingBuilder
setRatingValue(String ratingValue)
Sets the rating value.

Inherited Method Summary

Public Methods

public AggregateRatingBuilder setRatingCount (long ratingCount)

Sets the count of total number of ratings.

Parameters
ratingCount The count of total number of ratings.

public AggregateRatingBuilder setRatingValue (String ratingValue)

Sets the rating value.

Parameters
ratingValue The rating value, ranged from 0.0 to 5.0. For example, "4.5".