View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto (google_api_content_warehouse v0.3.0)

Generic item proto. This is intended to have only certain aspects filled (e.g. photo only, name + price). Valid combinations of properties are enforced by linters.

Attributes

  • callToAction (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t, default: nil) - Call to action for the individual product.
  • jobMetadata (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata.t, default: nil) -
  • media (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t), default: nil) - Any photos describing this item.
  • nameInfo (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t), default: nil) - The repeated name_info field is for price list sections listed in multiple languages. At least one name_info containing id must be specified. There should be at most one name_info for any given language. When representing a job item, there should be exactly one name_info specified.
  • offered (type: String.t, default: nil) - Represents if an item is offered at a business. For TYPE_JOB, this represents if this job is offered by the corresponding business
  • price (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t, default: nil) - Price of the item. There should be at most one price for any given currency.
  • priceFormat (type: String.t, default: nil) - Represents which price format is being used by this item, which determines the usage/meaning of the “price” field above. Optional – the default value is legal and safe (represents no price if the “price” field is unset).
  • rankingHint (type: number(), default: nil) - Numerical score which can be provided by data sources to indicate preferred item ordering. This is purely a hint – we are not required to followed it if we have a different order we think is better. Higher scores represent items that should be shown more prominently/earlier. Optional.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto{
  callToAction:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto.t() | nil,
  jobMetadata:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata.t() | nil,
  media: [GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t()] | nil,
  nameInfo:
    [GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()]
    | nil,
  offered: String.t() | nil,
  price: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t() | nil,
  priceFormat: String.t() | nil,
  rankingHint: number() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.