GoogleCloudRetailV2RatingResponse class
The rating of a Product.
Constructors
-
GoogleCloudRetailV2RatingResponse({required Input<
double> averageRating, required Input<int> ratingCount, required Input<List< ratingHistogram})int> > -
Creates a new GoogleCloudRetailV2RatingResponse.
averageRatingThe average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.ratingCountThe total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.ratingHistogramList of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example,41, 14, 13, 47, 303. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.const -
GoogleCloudRetailV2RatingResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
averageRating
→ Input<
double> -
The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ratingCount
→ Input<
int> -
The total number of ratings. This value is independent of the value of rating_histogram. This value must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
final
-
ratingHistogram
→ Input<
List< int> > -
List of rating counts per rating value (index = rating - 1). The list is empty if there is no rating. If the list is non-empty, its size is always 5. Otherwise, an INVALID_ARGUMENT error is returned. For example,
41, 14, 13, 47, 303. It means that the Product got 41 ratings with 1 star, 14 ratings with 2 star, and so on.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited