Class GoogleCloudRetailV2alphaRating
The rating of a Product.
Implements
Inherited Members
Namespace: Google.Apis.CloudRetail.v2alpha.Data
Assembly: Google.Apis.CloudRetail.v2alpha.dll
Syntax
public class GoogleCloudRetailV2alphaRating : IDirectResponseSchema
Properties
AverageRating
The average rating of the Product. The rating is scaled at 1-5. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
[JsonProperty("averageRating")]
public virtual float? AverageRating { get; set; }
Property Value
Type | Description |
---|---|
float? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
RatingCount
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.
Declaration
[JsonProperty("ratingCount")]
public virtual int? RatingCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
RatingHistogram
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.
Declaration
[JsonProperty("ratingHistogram")]
public virtual IList<int?> RatingHistogram { get; set; }
Property Value
Type | Description |
---|---|
IList<int?> |