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 |
Inherited Method Summary
final Indexable |
build()
Finalize building the object.
|
T | |
<S extends IndexableBuilder<?>> T | |
T |
put(String key,
Indexable...
values)
Sets one or multiple
Indexable
values for a property, replacing its previous values.
|
T | |
T | |
T | |
final T | |
T | |
final T | |
final <S extends IndexableBuilder<?>> T |
setIsPartOf(S... collections)
Sets the sub-group or collection that this Indexable is part of.
|
final T | |
T | |
final T | |
final T | |
final T |
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". |
---|