lib/google_api/manufacturers/v1/model/attributes.ex

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Manufacturers.V1.Model.Attributes do
  @moduledoc """
  Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116.

  ## Attributes

  *   `productType` (*type:* `list(String.t)`, *default:* `nil`) - The type or category of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#producttype.
  *   `includedDestination` (*type:* `list(String.t)`, *default:* `nil`) - A list of included destinations.
  *   `color` (*type:* `String.t`, *default:* `nil`) - The color of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#color.
  *   `itemGroupId` (*type:* `String.t`, *default:* `nil`) - The item group id of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#itemgroupid.
  *   `size` (*type:* `String.t`, *default:* `nil`) - The size of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#size.
  *   `pattern` (*type:* `String.t`, *default:* `nil`) - The pattern of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#pattern.
  *   `mpn` (*type:* `String.t`, *default:* `nil`) - The Manufacturer Part Number (MPN) of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#mpn.
  *   `gender` (*type:* `String.t`, *default:* `nil`) - The target gender of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#gender.
  *   `additionalImageLink` (*type:* `list(GoogleApi.Manufacturers.V1.Model.Image.t)`, *default:* `nil`) - The additional images of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#addlimage.
  *   `description` (*type:* `String.t`, *default:* `nil`) - The description of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#description.
  *   `gtin` (*type:* `list(String.t)`, *default:* `nil`) - The Global Trade Item Number (GTIN) of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#gtin.
  *   `sizeSystem` (*type:* `String.t`, *default:* `nil`) - The size system of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#sizesystem.
  *   `releaseDate` (*type:* `String.t`, *default:* `nil`) - The release date of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#release.
  *   `theme` (*type:* `String.t`, *default:* `nil`) - The theme of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#theme.
  *   `productPageUrl` (*type:* `String.t`, *default:* `nil`) - The URL of the detail page of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productpage.
  *   `productLine` (*type:* `String.t`, *default:* `nil`) - The name of the group of products related to the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productline.
  *   `sizeType` (*type:* `list(String.t)`, *default:* `nil`) - The size type of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#sizetype.
  *   `productDetail` (*type:* `list(GoogleApi.Manufacturers.V1.Model.ProductDetail.t)`, *default:* `nil`) - The details of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productdetail.
  *   `targetClientId` (*type:* `String.t`, *default:* `nil`) - The target client id. Should only be used in the accounts of the data partners.
  *   `material` (*type:* `String.t`, *default:* `nil`) - The material of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#material.
  *   `brand` (*type:* `String.t`, *default:* `nil`) - The brand name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#brand.
  *   `flavor` (*type:* `String.t`, *default:* `nil`) - The flavor of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#flavor.
  *   `productName` (*type:* `String.t`, *default:* `nil`) - The canonical name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productname.
  *   `videoLink` (*type:* `list(String.t)`, *default:* `nil`) - The videos of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#video.
  *   `scent` (*type:* `String.t`, *default:* `nil`) - The scent of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#scent.
  *   `suggestedRetailPrice` (*type:* `GoogleApi.Manufacturers.V1.Model.Price.t`, *default:* `nil`) - The suggested retail price (MSRP) of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#price.
  *   `imageLink` (*type:* `GoogleApi.Manufacturers.V1.Model.Image.t`, *default:* `nil`) - The image of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#image.
  *   `ageGroup` (*type:* `String.t`, *default:* `nil`) - The target age group of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#agegroup.
  *   `capacity` (*type:* `GoogleApi.Manufacturers.V1.Model.Capacity.t`, *default:* `nil`) - The capacity of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#capacity.
  *   `productHighlight` (*type:* `list(String.t)`, *default:* `nil`) - The product highlights. For more information, see https://support.google.com/manufacturers/answer/10066942
  *   `featureDescription` (*type:* `list(GoogleApi.Manufacturers.V1.Model.FeatureDescription.t)`, *default:* `nil`) - The rich format description of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#featuredesc.
  *   `richProductContent` (*type:* `list(String.t)`, *default:* `nil`) - Rich product content. For more information, see https://support.google.com/manufacturers/answer/9389865
  *   `format` (*type:* `String.t`, *default:* `nil`) - The format of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#format.
  *   `count` (*type:* `GoogleApi.Manufacturers.V1.Model.Count.t`, *default:* `nil`) - The count of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#count.
  *   `disclosureDate` (*type:* `String.t`, *default:* `nil`) - The disclosure date of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#disclosure.
  *   `title` (*type:* `String.t`, *default:* `nil`) - The title of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#title.
  *   `excludedDestination` (*type:* `list(String.t)`, *default:* `nil`) - A list of excluded destinations.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :productType => list(String.t()) | nil,
          :includedDestination => list(String.t()) | nil,
          :color => String.t() | nil,
          :itemGroupId => String.t() | nil,
          :size => String.t() | nil,
          :pattern => String.t() | nil,
          :mpn => String.t() | nil,
          :gender => String.t() | nil,
          :additionalImageLink => list(GoogleApi.Manufacturers.V1.Model.Image.t()) | nil,
          :description => String.t() | nil,
          :gtin => list(String.t()) | nil,
          :sizeSystem => String.t() | nil,
          :releaseDate => String.t() | nil,
          :theme => String.t() | nil,
          :productPageUrl => String.t() | nil,
          :productLine => String.t() | nil,
          :sizeType => list(String.t()) | nil,
          :productDetail => list(GoogleApi.Manufacturers.V1.Model.ProductDetail.t()) | nil,
          :targetClientId => String.t() | nil,
          :material => String.t() | nil,
          :brand => String.t() | nil,
          :flavor => String.t() | nil,
          :productName => String.t() | nil,
          :videoLink => list(String.t()) | nil,
          :scent => String.t() | nil,
          :suggestedRetailPrice => GoogleApi.Manufacturers.V1.Model.Price.t() | nil,
          :imageLink => GoogleApi.Manufacturers.V1.Model.Image.t() | nil,
          :ageGroup => String.t() | nil,
          :capacity => GoogleApi.Manufacturers.V1.Model.Capacity.t() | nil,
          :productHighlight => list(String.t()) | nil,
          :featureDescription =>
            list(GoogleApi.Manufacturers.V1.Model.FeatureDescription.t()) | nil,
          :richProductContent => list(String.t()) | nil,
          :format => String.t() | nil,
          :count => GoogleApi.Manufacturers.V1.Model.Count.t() | nil,
          :disclosureDate => String.t() | nil,
          :title => String.t() | nil,
          :excludedDestination => list(String.t()) | nil
        }

  field(:productType, type: :list)
  field(:includedDestination, type: :list)
  field(:color)
  field(:itemGroupId)
  field(:size)
  field(:pattern)
  field(:mpn)
  field(:gender)
  field(:additionalImageLink, as: GoogleApi.Manufacturers.V1.Model.Image, type: :list)
  field(:description)
  field(:gtin, type: :list)
  field(:sizeSystem)
  field(:releaseDate)
  field(:theme)
  field(:productPageUrl)
  field(:productLine)
  field(:sizeType, type: :list)
  field(:productDetail, as: GoogleApi.Manufacturers.V1.Model.ProductDetail, type: :list)
  field(:targetClientId)
  field(:material)
  field(:brand)
  field(:flavor)
  field(:productName)
  field(:videoLink, type: :list)
  field(:scent)
  field(:suggestedRetailPrice, as: GoogleApi.Manufacturers.V1.Model.Price)
  field(:imageLink, as: GoogleApi.Manufacturers.V1.Model.Image)
  field(:ageGroup)
  field(:capacity, as: GoogleApi.Manufacturers.V1.Model.Capacity)
  field(:productHighlight, type: :list)
  field(:featureDescription, as: GoogleApi.Manufacturers.V1.Model.FeatureDescription, type: :list)
  field(:richProductContent, type: :list)
  field(:format)
  field(:count, as: GoogleApi.Manufacturers.V1.Model.Count)
  field(:disclosureDate)
  field(:title)
  field(:excludedDestination, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.Manufacturers.V1.Model.Attributes do
  def decode(value, options) do
    GoogleApi.Manufacturers.V1.Model.Attributes.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Manufacturers.V1.Model.Attributes do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end