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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attributes

Returns a new instance of Attributes.



265
266
267
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 265

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



34
35
36
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 34

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)


40
41
42
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 40

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)


46
47
48
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 46

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



52
53
54
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 52

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)


58
59
60
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 58

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



64
65
66
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 64

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)


70
71
72
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 70

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)


76
77
78
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 76

def disclosure_date
  @disclosure_date
end

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

Returns:

  • (Array<String>)


83
84
85
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 83

def excluded_destination
  @excluded_destination
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



89
90
91
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 89

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)


95
96
97
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 95

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)


101
102
103
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 101

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)


107
108
109
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 107

def gender
  @gender
end

#groceryGoogle::Apis::ManufacturersV1::Grocery

Grocery Attributes. See more at https://support.google.com/manufacturers/ answer/12098458#grocery. Corresponds to the JSON property grocery



113
114
115
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 113

def grocery
  @grocery
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>)


119
120
121
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 119

def gtin
  @gtin
end

An image. Corresponds to the JSON property imageLink



124
125
126
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 124

def image_link
  @image_link
end

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

Returns:

  • (Array<String>)


131
132
133
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 131

def included_destination
  @included_destination
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)


137
138
139
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 137

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)


143
144
145
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 143

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)


149
150
151
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 149

def mpn
  @mpn
end

#nutritionGoogle::Apis::ManufacturersV1::Nutrition

Nutrition Attributes. See more at https://support.google.com/manufacturers/ answer/12098458#food-servings. Corresponds to the JSON property nutrition



155
156
157
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 155

def nutrition
  @nutrition
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)


161
162
163
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 161

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



167
168
169
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 167

def product_detail
  @product_detail
end

#product_highlightArray<String>

The product highlights. For more information, see https://support.google.com/ manufacturers/answer/10066942 Corresponds to the JSON property productHighlight

Returns:

  • (Array<String>)


173
174
175
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 173

def product_highlight
  @product_highlight
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)


179
180
181
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 179

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)


185
186
187
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 185

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)


191
192
193
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 191

def product_page_url
  @product_page_url
end

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

Returns:

  • (Array<String>)


197
198
199
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 197

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)


203
204
205
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 203

def release_date
  @release_date
end

#rich_product_contentArray<String>

Rich product content. For more information, see https://support.google.com/ manufacturers/answer/9389865 Corresponds to the JSON property richProductContent

Returns:

  • (Array<String>)


209
210
211
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 209

def rich_product_content
  @rich_product_content
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)


215
216
217
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 215

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)


221
222
223
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 221

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)


227
228
229
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 227

def size_system
  @size_system
end

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

Returns:

  • (Array<String>)


233
234
235
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 233

def size_type
  @size_type
end

#suggested_retail_priceGoogle::Apis::ManufacturersV1::Price

A price. Corresponds to the JSON property suggestedRetailPrice



238
239
240
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 238

def suggested_retail_price
  @suggested_retail_price
end

#target_client_idString

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

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 245

def target_client_id
  @target_client_id
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)


251
252
253
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 251

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)


257
258
259
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 257

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>)


263
264
265
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 263

def video_link
  @video_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 270

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)
  @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)
  @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)
end