public final class

AggregateRatingBuilder

extends IndexableBuilder<AggregateRatingBuilder>
java.lang.Object
   ↳ com.google.firebase.appindexing.builders.IndexableBuilder<com.google.firebase.appindexing.builders.AggregateRatingBuilder>
     ↳ com.google.firebase.appindexing.builders.AggregateRatingBuilder

Class Overview

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 update(Indexable...) directly.

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

Summary

Public Methods
AggregateRatingBuilder setRatingCount(long ratingCount)
Sets the count of total number of ratings.
AggregateRatingBuilder setRatingValue(String ratingValue)
Sets the rating value.
[Expand]
Inherited Methods
From class com.google.firebase.appindexing.builders.IndexableBuilder
From class java.lang.Object

Public Methods

public AggregateRatingBuilder setRatingCount (long ratingCount)

Sets the count of total number of ratings.

Parameters
ratingCount long: The count of total number of ratings.
Returns
AggregateRatingBuilder

public AggregateRatingBuilder setRatingValue (String ratingValue)

Sets the rating value.

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