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 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".

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面