GeostoreComposableItemProto

GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto


Table of Contents ▼

Jump to a specific part of the page:

Description

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 List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. callToAction (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreCallToActionProto, default: nil)
    - Call to action for the individual product.
  2. jobMetadata (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreJobMetadata, default: nil)
    -
  3. media (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto), default: nil)
    - Any photos describing this item.
  4. nameInfo (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto), 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.
  5. 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
  6. price (type: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto, default: nil)
    - Price of the item. There should be at most one price for any given currency.
  7. 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).
  8. 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.

Type

@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
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.GeostoreComposableItemProto