Class: Google::Apis::ManufacturersV1::Attributes
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Attributes
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb
Overview
Attributes of the product. For more information, see https://support.google. com/manufacturers/answer/6124116.
Instance Attribute Summary collapse
-
#additional_image_link ⇒ Array<Google::Apis::ManufacturersV1::Image>
The additional images of the product.
-
#age_group ⇒ String
The target age group of the product.
-
#brand ⇒ String
The brand name of the product.
-
#capacity ⇒ Google::Apis::ManufacturersV1::Capacity
The capacity of a product.
-
#certification ⇒ Array<Google::Apis::ManufacturersV1::GoogleShoppingManufacturersV1ProductCertification>
Optional.
-
#color ⇒ String
The color of the product.
-
#count ⇒ Google::Apis::ManufacturersV1::Count
The number of products in a single package.
-
#description ⇒ String
The description of the product.
-
#disclosure_date ⇒ String
The disclosure date of the product.
-
#excluded_destination ⇒ Array<String>
A list of excluded destinations such as "ClientExport", "ClientShoppingCatalog" or "PartnerShoppingCatalog".
-
#feature_description ⇒ Array<Google::Apis::ManufacturersV1::FeatureDescription>
The rich format description of the product.
-
#flavor ⇒ String
The flavor of the product.
-
#format ⇒ String
The format of the product.
-
#gender ⇒ String
The target gender of the product.
-
#grocery ⇒ Google::Apis::ManufacturersV1::Grocery
Grocery Attributes.
-
#gtin ⇒ Array<String>
The Global Trade Item Number (GTIN) of the product.
-
#image_link ⇒ Google::Apis::ManufacturersV1::Image
An image.
-
#included_destination ⇒ Array<String>
A list of included destinations such as "ClientExport", "ClientShoppingCatalog" or "PartnerShoppingCatalog".
-
#intended_country ⇒ Array<String>
Optional.
-
#item_group_id ⇒ String
The item group id of the product.
-
#material ⇒ String
The material of the product.
-
#mpn ⇒ String
The Manufacturer Part Number (MPN) of the product.
-
#nutrition ⇒ Google::Apis::ManufacturersV1::Nutrition
Nutrition Attributes.
-
#pattern ⇒ String
The pattern of the product.
-
#product_detail ⇒ Array<Google::Apis::ManufacturersV1::ProductDetail>
The details of the product.
-
#product_highlight ⇒ Array<String>
The product highlights.
-
#product_line ⇒ String
The name of the group of products related to the product.
-
#product_name ⇒ String
The canonical name of the product.
-
#product_page_url ⇒ String
The URL of the detail page of the product.
-
#product_type ⇒ Array<String>
The type or category of the product.
-
#release_date ⇒ String
The release date of the product.
-
#rich_product_content ⇒ Array<String>
Rich product content.
-
#scent ⇒ String
The scent of the product.
-
#size ⇒ String
The size of the product.
-
#size_system ⇒ String
The size system of the product.
-
#size_type ⇒ Array<String>
The size type of the product.
-
#suggested_retail_price ⇒ Google::Apis::ManufacturersV1::Price
A price.
-
#target_client_id ⇒ String
The target client id.
-
#theme ⇒ String
The theme of the product.
-
#title ⇒ String
The title of the product.
-
#video_link ⇒ Array<String>
The videos of the product.
-
#virtual_model_link ⇒ String
Virtual Model (3d) asset link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attributes
constructor
A new instance of Attributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attributes
Returns a new instance of Attributes.
284 285 286 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_image_link ⇒ Array<Google::Apis::ManufacturersV1::Image>
The additional images of the product. For more information, see https://
support.google.com/manufacturers/answer/6124116#addlimage.
Corresponds to the JSON property additionalImageLink
34 35 36 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 34 def additional_image_link @additional_image_link end |
#age_group ⇒ String
The target age group of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#agegroup.
Corresponds to the JSON property ageGroup
40 41 42 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 40 def age_group @age_group end |
#brand ⇒ String
The brand name of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#brand.
Corresponds to the JSON property brand
46 47 48 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 46 def brand @brand end |
#capacity ⇒ Google::Apis::ManufacturersV1::Capacity
The capacity of a product. For more information, see https://support.google.
com/manufacturers/answer/6124116#capacity.
Corresponds to the JSON property capacity
52 53 54 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 52 def capacity @capacity end |
#certification ⇒ Array<Google::Apis::ManufacturersV1::GoogleShoppingManufacturersV1ProductCertification>
Optional. List of certifications claimed by this product.
Corresponds to the JSON property certification
57 58 59 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 57 def certification @certification end |
#color ⇒ String
The color of the product. For more information, see https://support.google.com/
manufacturers/answer/6124116#color.
Corresponds to the JSON property color
63 64 65 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 63 def color @color end |
#count ⇒ Google::Apis::ManufacturersV1::Count
The number of products in a single package. For more information, see https://
support.google.com/manufacturers/answer/6124116#count.
Corresponds to the JSON property count
69 70 71 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 69 def count @count end |
#description ⇒ String
The description of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#description.
Corresponds to the JSON property description
75 76 77 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 75 def description @description end |
#disclosure_date ⇒ String
The disclosure date of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#disclosure.
Corresponds to the JSON property disclosureDate
81 82 83 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 81 def disclosure_date @disclosure_date end |
#excluded_destination ⇒ Array<String>
A list of excluded destinations such as "ClientExport", "ClientShoppingCatalog"
or "PartnerShoppingCatalog". For more information, see https://support.google.
com/manufacturers/answer/7443550
Corresponds to the JSON property excludedDestination
88 89 90 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 88 def excluded_destination @excluded_destination end |
#feature_description ⇒ Array<Google::Apis::ManufacturersV1::FeatureDescription>
The rich format description of the product. For more information, see https://
support.google.com/manufacturers/answer/6124116#featuredesc.
Corresponds to the JSON property featureDescription
94 95 96 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 94 def feature_description @feature_description end |
#flavor ⇒ String
The flavor of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#flavor.
Corresponds to the JSON property flavor
100 101 102 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 100 def flavor @flavor end |
#format ⇒ String
The format of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#format.
Corresponds to the JSON property format
106 107 108 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 106 def format @format end |
#gender ⇒ String
The target gender of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#gender.
Corresponds to the JSON property gender
112 113 114 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 112 def gender @gender end |
#grocery ⇒ Google::Apis::ManufacturersV1::Grocery
Grocery Attributes. See more at https://support.google.com/manufacturers/
answer/12098458#grocery.
Corresponds to the JSON property grocery
118 119 120 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 118 def grocery @grocery end |
#gtin ⇒ Array<String>
The Global Trade Item Number (GTIN) of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#gtin.
Corresponds to the JSON property gtin
124 125 126 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 124 def gtin @gtin end |
#image_link ⇒ Google::Apis::ManufacturersV1::Image
An image.
Corresponds to the JSON property imageLink
129 130 131 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 129 def image_link @image_link end |
#included_destination ⇒ Array<String>
A list of included destinations such as "ClientExport", "ClientShoppingCatalog"
or "PartnerShoppingCatalog". For more information, see https://support.google.
com/manufacturers/answer/7443550
Corresponds to the JSON property includedDestination
136 137 138 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 136 def included_destination @included_destination end |
#intended_country ⇒ Array<String>
Optional. List of countries to show this product in. Countries provided in
this attribute will override any of the countries configured at feed level.
The values should be: the CLDR territory code of the countries in which this item will
be shown.
Corresponds to the JSON property intendedCountry
145 146 147 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 145 def intended_country @intended_country end |
#item_group_id ⇒ String
The item group id of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#itemgroupid.
Corresponds to the JSON property itemGroupId
151 152 153 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 151 def item_group_id @item_group_id end |
#material ⇒ String
The material of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#material.
Corresponds to the JSON property material
157 158 159 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 157 def material @material end |
#mpn ⇒ String
The Manufacturer Part Number (MPN) of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#mpn.
Corresponds to the JSON property mpn
163 164 165 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 163 def mpn @mpn end |
#nutrition ⇒ Google::Apis::ManufacturersV1::Nutrition
Nutrition Attributes. See more at https://support.google.com/manufacturers/
answer/12098458#food-servings.
Corresponds to the JSON property nutrition
169 170 171 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 169 def nutrition @nutrition end |
#pattern ⇒ String
The pattern of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#pattern.
Corresponds to the JSON property pattern
175 176 177 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 175 def pattern @pattern end |
#product_detail ⇒ Array<Google::Apis::ManufacturersV1::ProductDetail>
The details of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#productdetail.
Corresponds to the JSON property productDetail
181 182 183 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 181 def product_detail @product_detail end |
#product_highlight ⇒ Array<String>
The product highlights. For more information, see https://support.google.com/
manufacturers/answer/10066942
Corresponds to the JSON property productHighlight
187 188 189 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 187 def product_highlight @product_highlight end |
#product_line ⇒ String
The name of the group of products related to the product. For more information,
see https://support.google.com/manufacturers/answer/6124116#productline.
Corresponds to the JSON property productLine
193 194 195 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 193 def product_line @product_line end |
#product_name ⇒ String
The canonical name of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#productname.
Corresponds to the JSON property productName
199 200 201 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 199 def product_name @product_name end |
#product_page_url ⇒ String
The URL of the detail page of the product. For more information, see https://
support.google.com/manufacturers/answer/6124116#productpage.
Corresponds to the JSON property productPageUrl
205 206 207 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 205 def product_page_url @product_page_url end |
#product_type ⇒ Array<String>
The type or category of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#producttype.
Corresponds to the JSON property productType
211 212 213 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 211 def product_type @product_type end |
#release_date ⇒ String
The release date of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#release.
Corresponds to the JSON property releaseDate
217 218 219 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 217 def release_date @release_date end |
#rich_product_content ⇒ Array<String>
Rich product content. For more information, see https://support.google.com/
manufacturers/answer/9389865
Corresponds to the JSON property richProductContent
223 224 225 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 223 def rich_product_content @rich_product_content end |
#scent ⇒ String
The scent of the product. For more information, see https://support.google.com/
manufacturers/answer/6124116#scent.
Corresponds to the JSON property scent
229 230 231 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 229 def scent @scent end |
#size ⇒ String
The size of the product. For more information, see https://support.google.com/
manufacturers/answer/6124116#size.
Corresponds to the JSON property size
235 236 237 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 235 def size @size end |
#size_system ⇒ String
The size system of the product. For more information, see https://support.
google.com/manufacturers/answer/6124116#sizesystem.
Corresponds to the JSON property sizeSystem
241 242 243 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 241 def size_system @size_system end |
#size_type ⇒ Array<String>
The size type of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#sizetype.
Corresponds to the JSON property sizeType
247 248 249 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 247 def size_type @size_type end |
#suggested_retail_price ⇒ Google::Apis::ManufacturersV1::Price
A price.
Corresponds to the JSON property suggestedRetailPrice
252 253 254 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 252 def suggested_retail_price @suggested_retail_price end |
#target_client_id ⇒ String
The target client id. Should only be used in the accounts of the data partners.
For more information, see https://support.google.com/manufacturers/answer/
10857344
Corresponds to the JSON property targetClientId
259 260 261 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 259 def target_client_id @target_client_id end |
#theme ⇒ String
The theme of the product. For more information, see https://support.google.com/
manufacturers/answer/6124116#theme.
Corresponds to the JSON property theme
265 266 267 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 265 def theme @theme end |
#title ⇒ String
The title of the product. For more information, see https://support.google.com/
manufacturers/answer/6124116#title.
Corresponds to the JSON property title
271 272 273 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 271 def title @title end |
#video_link ⇒ Array<String>
The videos of the product. For more information, see https://support.google.
com/manufacturers/answer/6124116#video.
Corresponds to the JSON property videoLink
277 278 279 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 277 def video_link @video_link end |
#virtual_model_link ⇒ String
Virtual Model (3d) asset link.
Corresponds to the JSON property virtualModelLink
282 283 284 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 282 def virtual_model_link @virtual_model_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 289 def update!(**args) @additional_image_link = args[:additional_image_link] if args.key?(:additional_image_link) @age_group = args[:age_group] if args.key?(:age_group) @brand = args[:brand] if args.key?(:brand) @capacity = args[:capacity] if args.key?(:capacity) @certification = args[:certification] if args.key?(:certification) @color = args[:color] if args.key?(:color) @count = args[:count] if args.key?(:count) @description = args[:description] if args.key?(:description) @disclosure_date = args[:disclosure_date] if args.key?(:disclosure_date) @excluded_destination = args[:excluded_destination] if args.key?(:excluded_destination) @feature_description = args[:feature_description] if args.key?(:feature_description) @flavor = args[:flavor] if args.key?(:flavor) @format = args[:format] if args.key?(:format) @gender = args[:gender] if args.key?(:gender) @grocery = args[:grocery] if args.key?(:grocery) @gtin = args[:gtin] if args.key?(:gtin) @image_link = args[:image_link] if args.key?(:image_link) @included_destination = args[:included_destination] if args.key?(:included_destination) @intended_country = args[:intended_country] if args.key?(:intended_country) @item_group_id = args[:item_group_id] if args.key?(:item_group_id) @material = args[:material] if args.key?(:material) @mpn = args[:mpn] if args.key?(:mpn) @nutrition = args[:nutrition] if args.key?(:nutrition) @pattern = args[:pattern] if args.key?(:pattern) @product_detail = args[:product_detail] if args.key?(:product_detail) @product_highlight = args[:product_highlight] if args.key?(:product_highlight) @product_line = args[:product_line] if args.key?(:product_line) @product_name = args[:product_name] if args.key?(:product_name) @product_page_url = args[:product_page_url] if args.key?(:product_page_url) @product_type = args[:product_type] if args.key?(:product_type) @release_date = args[:release_date] if args.key?(:release_date) @rich_product_content = args[:rich_product_content] if args.key?(:rich_product_content) @scent = args[:scent] if args.key?(:scent) @size = args[:size] if args.key?(:size) @size_system = args[:size_system] if args.key?(:size_system) @size_type = args[:size_type] if args.key?(:size_type) @suggested_retail_price = args[:suggested_retail_price] if args.key?(:suggested_retail_price) @target_client_id = args[:target_client_id] if args.key?(:target_client_id) @theme = args[:theme] if args.key?(:theme) @title = args[:title] if args.key?(:title) @video_link = args[:video_link] if args.key?(:video_link) @virtual_model_link = args[:virtual_model_link] if args.key?(:virtual_model_link) end |