View Source GoogleApi.ContentWarehouse.V1.Model.ShoppingWebentityShoppingAnnotationProductRating (google_api_content_warehouse v0.4.0)

Information about a rating provided for a product. This can represent an aggregated rating if count is set. Next Id: 7

Attributes

  • count (type: String.t, default: nil) - Number of ratings/reviews aggregated to create this product rating. If there are no ratings yet, this field will be explicitly set to zero, so whether this field is set should be checked using has_count.
  • maxValueMillis (type: String.t, default: nil) -
  • minValueMillis (type: String.t, default: nil) - The lower and upper bounds of the rating values that could be submitted for the product. (Note that it is not the min/max ratings submitted for the product, it is the min/max that can hypothetically be submitted.)
  • source (type: String.t, default: nil) -
  • value (type: float(), default: nil) - The value of this rating normalized between 0 and 5. This will not be set if count is set to 0.
  • valueMillis (type: String.t, default: nil) - The non-normalized aggregated value of the ratings for this product.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.ShoppingWebentityShoppingAnnotationProductRating{
    count: String.t() | nil,
    maxValueMillis: String.t() | nil,
    minValueMillis: String.t() | nil,
    source: String.t() | nil,
    value: float() | nil,
    valueMillis: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.