Class: Google::Apis::ManufacturersV1::Attributes

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manufacturers_v1/classes.rb,
generated/google/apis/manufacturers_v1/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Attributes

Returns a new instance of Attributes



416
417
418
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 416

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

The additional images of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#addlimage. Corresponds to the JSON property additionalImageLink



252
253
254
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 252

def additional_image_link
  @additional_image_link
end

#age_groupString

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

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 335

def age_group
  @age_group
end

#brandString

The brand name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#brand. Corresponds to the JSON property brand

Returns:

  • (String)


311
312
313
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 311

def brand
  @brand
end

#capacityGoogle::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



390
391
392
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 390

def capacity
  @capacity
end

#colorString

The color of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#color. Corresponds to the JSON property color

Returns:

  • (String)


264
265
266
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 264

def color
  @color
end

#countGoogle::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



305
306
307
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 305

def count
  @count
end

#descriptionString

The description of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#description. Corresponds to the JSON property description

Returns:

  • (String)


396
397
398
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 396

def description
  @description
end

#disclosure_dateString

The disclosure date of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#disclosure. Corresponds to the JSON property disclosureDate

Returns:

  • (String)


323
324
325
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 323

def disclosure_date
  @disclosure_date
end

#feature_descriptionArray<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



287
288
289
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 287

def feature_description
  @feature_description
end

#flavorString

The flavor of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#flavor. Corresponds to the JSON property flavor

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 341

def flavor
  @flavor
end

#formatString

The format of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#format. Corresponds to the JSON property format

Returns:

  • (String)


246
247
248
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 246

def format
  @format
end

#genderString

The target gender of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#gender. Corresponds to the JSON property gender

Returns:

  • (String)


402
403
404
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 402

def gender
  @gender
end

#gtinArray<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

Returns:

  • (Array<String>)


371
372
373
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 371

def gtin
  @gtin
end

An image. Corresponds to the JSON property imageLink



234
235
236
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 234

def image_link
  @image_link
end

#item_group_idString

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

Returns:

  • (String)


377
378
379
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 377

def item_group_id
  @item_group_id
end

#materialString

The material of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#material. Corresponds to the JSON property material

Returns:

  • (String)


317
318
319
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 317

def material
  @material
end

#mpnString

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

Returns:

  • (String)


353
354
355
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 353

def mpn
  @mpn
end

#patternString

The pattern of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#pattern. Corresponds to the JSON property pattern

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 229

def pattern
  @pattern
end

#product_detailArray<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



347
348
349
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 347

def product_detail
  @product_detail
end

#product_lineString

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

Returns:

  • (String)


384
385
386
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 384

def product_line
  @product_line
end

#product_nameString

The canonical name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productname. Corresponds to the JSON property productName

Returns:

  • (String)


270
271
272
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 270

def product_name
  @product_name
end

#product_page_urlString

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

Returns:

  • (String)


359
360
361
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 359

def product_page_url
  @product_page_url
end

#product_typeArray<String>

The category of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#producttype. Corresponds to the JSON property productType

Returns:

  • (Array<String>)


240
241
242
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 240

def product_type
  @product_type
end

#release_dateString

The release date of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#release. Corresponds to the JSON property releaseDate

Returns:

  • (String)


365
366
367
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 365

def release_date
  @release_date
end

#scentString

The scent of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#scent. Corresponds to the JSON property scent

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 329

def scent
  @scent
end

#sizeString

The size of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#size. Corresponds to the JSON property size

Returns:

  • (String)


293
294
295
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 293

def size
  @size
end

#size_systemString

The size system of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#sizesystem. Corresponds to the JSON property sizeSystem

Returns:

  • (String)


408
409
410
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 408

def size_system
  @size_system
end

#size_typeString

The size type of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#sizetype. Corresponds to the JSON property sizeType

Returns:

  • (String)


276
277
278
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 276

def size_type
  @size_type
end

#suggested_retail_priceGoogle::Apis::ManufacturersV1::Price

A price. Corresponds to the JSON property suggestedRetailPrice



281
282
283
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 281

def suggested_retail_price
  @suggested_retail_price
end

#themeString

The theme of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#theme. Corresponds to the JSON property theme

Returns:

  • (String)


414
415
416
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 414

def theme
  @theme
end

#titleString

The title of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#title. Corresponds to the JSON property title

Returns:

  • (String)


299
300
301
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 299

def title
  @title
end

The videos of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#video. Corresponds to the JSON property videoLink

Returns:

  • (Array<String>)


258
259
260
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 258

def video_link
  @video_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 421

def update!(**args)
  @pattern = args[:pattern] if args.key?(:pattern)
  @image_link = args[:image_link] if args.key?(:image_link)
  @product_type = args[:product_type] if args.key?(:product_type)
  @format = args[:format] if args.key?(:format)
  @additional_image_link = args[:additional_image_link] if args.key?(:additional_image_link)
  @video_link = args[:video_link] if args.key?(:video_link)
  @color = args[:color] if args.key?(:color)
  @product_name = args[:product_name] if args.key?(:product_name)
  @size_type = args[:size_type] if args.key?(:size_type)
  @suggested_retail_price = args[:suggested_retail_price] if args.key?(:suggested_retail_price)
  @feature_description = args[:feature_description] if args.key?(:feature_description)
  @size = args[:size] if args.key?(:size)
  @title = args[:title] if args.key?(:title)
  @count = args[:count] if args.key?(:count)
  @brand = args[:brand] if args.key?(:brand)
  @material = args[:material] if args.key?(:material)
  @disclosure_date = args[:disclosure_date] if args.key?(:disclosure_date)
  @scent = args[:scent] if args.key?(:scent)
  @age_group = args[:age_group] if args.key?(:age_group)
  @flavor = args[:flavor] if args.key?(:flavor)
  @product_detail = args[:product_detail] if args.key?(:product_detail)
  @mpn = args[:mpn] if args.key?(:mpn)
  @product_page_url = args[:product_page_url] if args.key?(:product_page_url)
  @release_date = args[:release_date] if args.key?(:release_date)
  @gtin = args[:gtin] if args.key?(:gtin)
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
  @product_line = args[:product_line] if args.key?(:product_line)
  @capacity = args[:capacity] if args.key?(:capacity)
  @description = args[:description] if args.key?(:description)
  @gender = args[:gender] if args.key?(:gender)
  @size_system = args[:size_system] if args.key?(:size_system)
  @theme = args[:theme] if args.key?(:theme)
end