OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.manufacturers.v1; | 3 library googleapis.manufacturers.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 | 163 |
164 | 164 |
165 /** | 165 /** |
166 * Attributes of the product. For more information, see | 166 * Attributes of the product. For more information, see |
167 * https://support.google.com/manufacturers/answer/6124116. | 167 * https://support.google.com/manufacturers/answer/6124116. |
168 */ | 168 */ |
169 class Attributes { | 169 class Attributes { |
170 /** | 170 /** |
| 171 * The additional images of the product. For more information, see |
| 172 * https://support.google.com/manufacturers/answer/6124116#addlimage. |
| 173 */ |
| 174 core.List<Image> additionalImageLink; |
| 175 /** |
| 176 * The target age group of the product. For more information, see |
| 177 * https://support.google.com/manufacturers/answer/6124116#agegroup. |
| 178 */ |
| 179 core.String ageGroup; |
| 180 /** |
171 * The brand name of the product. For more information, see | 181 * The brand name of the product. For more information, see |
172 * https://support.google.com/manufacturers/answer/6124116#brand. | 182 * https://support.google.com/manufacturers/answer/6124116#brand. |
173 */ | 183 */ |
174 core.String brand; | 184 core.String brand; |
175 /** | 185 /** |
| 186 * The capacity of the product. For more information, see |
| 187 * https://support.google.com/manufacturers/answer/6124116#capacity. |
| 188 */ |
| 189 Capacity capacity; |
| 190 /** |
| 191 * The color of the product. For more information, see |
| 192 * https://support.google.com/manufacturers/answer/6124116#color. |
| 193 */ |
| 194 core.String color; |
| 195 /** |
| 196 * The count of the product. For more information, see |
| 197 * https://support.google.com/manufacturers/answer/6124116#count. |
| 198 */ |
| 199 Count count; |
| 200 /** |
| 201 * The description of the product. For more information, see |
| 202 * https://support.google.com/manufacturers/answer/6124116#description. |
| 203 */ |
| 204 core.String description; |
| 205 /** |
| 206 * The disclosure date of the product. For more information, see |
| 207 * https://support.google.com/manufacturers/answer/6124116#disclosure. |
| 208 */ |
| 209 core.String disclosureDate; |
| 210 /** |
| 211 * The rich format description of the product. For more information, see |
| 212 * https://support.google.com/manufacturers/answer/6124116#featuredesc. |
| 213 */ |
| 214 core.List<FeatureDescription> featureDescription; |
| 215 /** |
| 216 * The flavor of the product. For more information, see |
| 217 * https://support.google.com/manufacturers/answer/6124116#flavor. |
| 218 */ |
| 219 core.String flavor; |
| 220 /** |
| 221 * The format of the product. For more information, see |
| 222 * https://support.google.com/manufacturers/answer/6124116#format. |
| 223 */ |
| 224 core.String format; |
| 225 /** |
| 226 * The target gender of the product. For more information, see |
| 227 * https://support.google.com/manufacturers/answer/6124116#gender. |
| 228 */ |
| 229 core.String gender; |
| 230 /** |
176 * The Global Trade Item Number (GTIN) of the product. For more information, | 231 * The Global Trade Item Number (GTIN) of the product. For more information, |
177 * see https://support.google.com/manufacturers/answer/6124116#gtin. | 232 * see https://support.google.com/manufacturers/answer/6124116#gtin. |
178 */ | 233 */ |
179 core.List<core.String> gtin; | 234 core.List<core.String> gtin; |
180 /** | 235 /** |
| 236 * The image of the product. For more information, see |
| 237 * https://support.google.com/manufacturers/answer/6124116#image. |
| 238 */ |
| 239 Image imageLink; |
| 240 /** |
| 241 * The item group id of the product. For more information, see |
| 242 * https://support.google.com/manufacturers/answer/6124116#itemgroupid. |
| 243 */ |
| 244 core.String itemGroupId; |
| 245 /** |
| 246 * The material of the product. For more information, see |
| 247 * https://support.google.com/manufacturers/answer/6124116#material. |
| 248 */ |
| 249 core.String material; |
| 250 /** |
181 * The Manufacturer Part Number (MPN) of the product. For more information, | 251 * The Manufacturer Part Number (MPN) of the product. For more information, |
182 * see https://support.google.com/manufacturers/answer/6124116#mpn. | 252 * see https://support.google.com/manufacturers/answer/6124116#mpn. |
183 */ | 253 */ |
184 core.String mpn; | 254 core.String mpn; |
185 /** | 255 /** |
| 256 * The pattern of the product. For more information, see |
| 257 * https://support.google.com/manufacturers/answer/6124116#pattern. |
| 258 */ |
| 259 core.String pattern; |
| 260 /** |
| 261 * The details of the product. For more information, see |
| 262 * https://support.google.com/manufacturers/answer/6124116#productdetail. |
| 263 */ |
| 264 core.List<ProductDetail> productDetail; |
| 265 /** |
186 * The name of the group of products related to the product. For more | 266 * The name of the group of products related to the product. For more |
187 * information, see | 267 * information, see |
188 * https://support.google.com/manufacturers/answer/6124116#productline. | 268 * https://support.google.com/manufacturers/answer/6124116#productline. |
189 */ | 269 */ |
190 core.String productLine; | 270 core.String productLine; |
191 /** | 271 /** |
192 * The canonical name of the product. For more information, see | 272 * The canonical name of the product. For more information, see |
193 * https://support.google.com/manufacturers/answer/6124116#productname. | 273 * https://support.google.com/manufacturers/answer/6124116#productname. |
194 */ | 274 */ |
195 core.String productName; | 275 core.String productName; |
196 /** | 276 /** |
197 * The URL of the manufacturer's detail page of the product. For more | 277 * The URL of the detail page of the product. For more information, see |
198 * information, see | |
199 * https://support.google.com/manufacturers/answer/6124116#productpage. | 278 * https://support.google.com/manufacturers/answer/6124116#productpage. |
200 */ | 279 */ |
201 core.String productPageUrl; | 280 core.String productPageUrl; |
202 /** | 281 /** |
203 * The manufacturer's category of the product. For more information, see | 282 * The category of the product. For more information, see |
204 * https://support.google.com/manufacturers/answer/6124116#producttype. | 283 * https://support.google.com/manufacturers/answer/6124116#producttype. |
205 */ | 284 */ |
206 core.List<core.String> productType; | 285 core.List<core.String> productType; |
207 /** | 286 /** |
| 287 * The release date of the product. For more information, see |
| 288 * https://support.google.com/manufacturers/answer/6124116#release. |
| 289 */ |
| 290 core.String releaseDate; |
| 291 /** |
| 292 * The scent of the product. For more information, see |
| 293 * https://support.google.com/manufacturers/answer/6124116#scent. |
| 294 */ |
| 295 core.String scent; |
| 296 /** |
| 297 * The size of the product. For more information, see |
| 298 * https://support.google.com/manufacturers/answer/6124116#size. |
| 299 */ |
| 300 core.String size; |
| 301 /** |
| 302 * The size system of the product. For more information, see |
| 303 * https://support.google.com/manufacturers/answer/6124116#sizesystem. |
| 304 */ |
| 305 core.String sizeSystem; |
| 306 /** |
| 307 * The size type of the product. For more information, see |
| 308 * https://support.google.com/manufacturers/answer/6124116#sizetype. |
| 309 */ |
| 310 core.String sizeType; |
| 311 /** |
| 312 * The suggested retail price (MSRP) of the product. For more information, |
| 313 * see https://support.google.com/manufacturers/answer/6124116#price. |
| 314 */ |
| 315 Price suggestedRetailPrice; |
| 316 /** |
| 317 * The theme of the product. For more information, see |
| 318 * https://support.google.com/manufacturers/answer/6124116#theme. |
| 319 */ |
| 320 core.String theme; |
| 321 /** |
208 * The title of the product. For more information, see | 322 * The title of the product. For more information, see |
209 * https://support.google.com/manufacturers/answer/6124116#title. | 323 * https://support.google.com/manufacturers/answer/6124116#title. |
210 */ | 324 */ |
211 core.String title; | 325 core.String title; |
| 326 /** |
| 327 * The videos of the product. For more information, see |
| 328 * https://support.google.com/manufacturers/answer/6124116#video. |
| 329 */ |
| 330 core.List<core.String> videoLink; |
212 | 331 |
213 Attributes(); | 332 Attributes(); |
214 | 333 |
215 Attributes.fromJson(core.Map _json) { | 334 Attributes.fromJson(core.Map _json) { |
| 335 if (_json.containsKey("additionalImageLink")) { |
| 336 additionalImageLink = _json["additionalImageLink"].map((value) => new Imag
e.fromJson(value)).toList(); |
| 337 } |
| 338 if (_json.containsKey("ageGroup")) { |
| 339 ageGroup = _json["ageGroup"]; |
| 340 } |
216 if (_json.containsKey("brand")) { | 341 if (_json.containsKey("brand")) { |
217 brand = _json["brand"]; | 342 brand = _json["brand"]; |
218 } | 343 } |
| 344 if (_json.containsKey("capacity")) { |
| 345 capacity = new Capacity.fromJson(_json["capacity"]); |
| 346 } |
| 347 if (_json.containsKey("color")) { |
| 348 color = _json["color"]; |
| 349 } |
| 350 if (_json.containsKey("count")) { |
| 351 count = new Count.fromJson(_json["count"]); |
| 352 } |
| 353 if (_json.containsKey("description")) { |
| 354 description = _json["description"]; |
| 355 } |
| 356 if (_json.containsKey("disclosureDate")) { |
| 357 disclosureDate = _json["disclosureDate"]; |
| 358 } |
| 359 if (_json.containsKey("featureDescription")) { |
| 360 featureDescription = _json["featureDescription"].map((value) => new Featur
eDescription.fromJson(value)).toList(); |
| 361 } |
| 362 if (_json.containsKey("flavor")) { |
| 363 flavor = _json["flavor"]; |
| 364 } |
| 365 if (_json.containsKey("format")) { |
| 366 format = _json["format"]; |
| 367 } |
| 368 if (_json.containsKey("gender")) { |
| 369 gender = _json["gender"]; |
| 370 } |
219 if (_json.containsKey("gtin")) { | 371 if (_json.containsKey("gtin")) { |
220 gtin = _json["gtin"]; | 372 gtin = _json["gtin"]; |
221 } | 373 } |
| 374 if (_json.containsKey("imageLink")) { |
| 375 imageLink = new Image.fromJson(_json["imageLink"]); |
| 376 } |
| 377 if (_json.containsKey("itemGroupId")) { |
| 378 itemGroupId = _json["itemGroupId"]; |
| 379 } |
| 380 if (_json.containsKey("material")) { |
| 381 material = _json["material"]; |
| 382 } |
222 if (_json.containsKey("mpn")) { | 383 if (_json.containsKey("mpn")) { |
223 mpn = _json["mpn"]; | 384 mpn = _json["mpn"]; |
224 } | 385 } |
| 386 if (_json.containsKey("pattern")) { |
| 387 pattern = _json["pattern"]; |
| 388 } |
| 389 if (_json.containsKey("productDetail")) { |
| 390 productDetail = _json["productDetail"].map((value) => new ProductDetail.fr
omJson(value)).toList(); |
| 391 } |
225 if (_json.containsKey("productLine")) { | 392 if (_json.containsKey("productLine")) { |
226 productLine = _json["productLine"]; | 393 productLine = _json["productLine"]; |
227 } | 394 } |
228 if (_json.containsKey("productName")) { | 395 if (_json.containsKey("productName")) { |
229 productName = _json["productName"]; | 396 productName = _json["productName"]; |
230 } | 397 } |
231 if (_json.containsKey("productPageUrl")) { | 398 if (_json.containsKey("productPageUrl")) { |
232 productPageUrl = _json["productPageUrl"]; | 399 productPageUrl = _json["productPageUrl"]; |
233 } | 400 } |
234 if (_json.containsKey("productType")) { | 401 if (_json.containsKey("productType")) { |
235 productType = _json["productType"]; | 402 productType = _json["productType"]; |
236 } | 403 } |
| 404 if (_json.containsKey("releaseDate")) { |
| 405 releaseDate = _json["releaseDate"]; |
| 406 } |
| 407 if (_json.containsKey("scent")) { |
| 408 scent = _json["scent"]; |
| 409 } |
| 410 if (_json.containsKey("size")) { |
| 411 size = _json["size"]; |
| 412 } |
| 413 if (_json.containsKey("sizeSystem")) { |
| 414 sizeSystem = _json["sizeSystem"]; |
| 415 } |
| 416 if (_json.containsKey("sizeType")) { |
| 417 sizeType = _json["sizeType"]; |
| 418 } |
| 419 if (_json.containsKey("suggestedRetailPrice")) { |
| 420 suggestedRetailPrice = new Price.fromJson(_json["suggestedRetailPrice"]); |
| 421 } |
| 422 if (_json.containsKey("theme")) { |
| 423 theme = _json["theme"]; |
| 424 } |
237 if (_json.containsKey("title")) { | 425 if (_json.containsKey("title")) { |
238 title = _json["title"]; | 426 title = _json["title"]; |
239 } | 427 } |
| 428 if (_json.containsKey("videoLink")) { |
| 429 videoLink = _json["videoLink"]; |
| 430 } |
240 } | 431 } |
241 | 432 |
242 core.Map toJson() { | 433 core.Map toJson() { |
243 var _json = new core.Map(); | 434 var _json = new core.Map(); |
| 435 if (additionalImageLink != null) { |
| 436 _json["additionalImageLink"] = additionalImageLink.map((value) => (value).
toJson()).toList(); |
| 437 } |
| 438 if (ageGroup != null) { |
| 439 _json["ageGroup"] = ageGroup; |
| 440 } |
244 if (brand != null) { | 441 if (brand != null) { |
245 _json["brand"] = brand; | 442 _json["brand"] = brand; |
246 } | 443 } |
| 444 if (capacity != null) { |
| 445 _json["capacity"] = (capacity).toJson(); |
| 446 } |
| 447 if (color != null) { |
| 448 _json["color"] = color; |
| 449 } |
| 450 if (count != null) { |
| 451 _json["count"] = (count).toJson(); |
| 452 } |
| 453 if (description != null) { |
| 454 _json["description"] = description; |
| 455 } |
| 456 if (disclosureDate != null) { |
| 457 _json["disclosureDate"] = disclosureDate; |
| 458 } |
| 459 if (featureDescription != null) { |
| 460 _json["featureDescription"] = featureDescription.map((value) => (value).to
Json()).toList(); |
| 461 } |
| 462 if (flavor != null) { |
| 463 _json["flavor"] = flavor; |
| 464 } |
| 465 if (format != null) { |
| 466 _json["format"] = format; |
| 467 } |
| 468 if (gender != null) { |
| 469 _json["gender"] = gender; |
| 470 } |
247 if (gtin != null) { | 471 if (gtin != null) { |
248 _json["gtin"] = gtin; | 472 _json["gtin"] = gtin; |
249 } | 473 } |
| 474 if (imageLink != null) { |
| 475 _json["imageLink"] = (imageLink).toJson(); |
| 476 } |
| 477 if (itemGroupId != null) { |
| 478 _json["itemGroupId"] = itemGroupId; |
| 479 } |
| 480 if (material != null) { |
| 481 _json["material"] = material; |
| 482 } |
250 if (mpn != null) { | 483 if (mpn != null) { |
251 _json["mpn"] = mpn; | 484 _json["mpn"] = mpn; |
252 } | 485 } |
| 486 if (pattern != null) { |
| 487 _json["pattern"] = pattern; |
| 488 } |
| 489 if (productDetail != null) { |
| 490 _json["productDetail"] = productDetail.map((value) => (value).toJson()).to
List(); |
| 491 } |
253 if (productLine != null) { | 492 if (productLine != null) { |
254 _json["productLine"] = productLine; | 493 _json["productLine"] = productLine; |
255 } | 494 } |
256 if (productName != null) { | 495 if (productName != null) { |
257 _json["productName"] = productName; | 496 _json["productName"] = productName; |
258 } | 497 } |
259 if (productPageUrl != null) { | 498 if (productPageUrl != null) { |
260 _json["productPageUrl"] = productPageUrl; | 499 _json["productPageUrl"] = productPageUrl; |
261 } | 500 } |
262 if (productType != null) { | 501 if (productType != null) { |
263 _json["productType"] = productType; | 502 _json["productType"] = productType; |
264 } | 503 } |
| 504 if (releaseDate != null) { |
| 505 _json["releaseDate"] = releaseDate; |
| 506 } |
| 507 if (scent != null) { |
| 508 _json["scent"] = scent; |
| 509 } |
| 510 if (size != null) { |
| 511 _json["size"] = size; |
| 512 } |
| 513 if (sizeSystem != null) { |
| 514 _json["sizeSystem"] = sizeSystem; |
| 515 } |
| 516 if (sizeType != null) { |
| 517 _json["sizeType"] = sizeType; |
| 518 } |
| 519 if (suggestedRetailPrice != null) { |
| 520 _json["suggestedRetailPrice"] = (suggestedRetailPrice).toJson(); |
| 521 } |
| 522 if (theme != null) { |
| 523 _json["theme"] = theme; |
| 524 } |
265 if (title != null) { | 525 if (title != null) { |
266 _json["title"] = title; | 526 _json["title"] = title; |
267 } | 527 } |
268 return _json; | 528 if (videoLink != null) { |
269 } | 529 _json["videoLink"] = videoLink; |
270 } | 530 } |
| 531 return _json; |
| 532 } |
| 533 } |
| 534 |
| 535 /** |
| 536 * The capacity of a product. For more information, see |
| 537 * https://support.google.com/manufacturers/answer/6124116#capacity. |
| 538 */ |
| 539 class Capacity { |
| 540 /** The unit of the capacity, i.e., MB, GB, or TB. */ |
| 541 core.String unit; |
| 542 /** The numeric value of the capacity. */ |
| 543 core.String value; |
| 544 |
| 545 Capacity(); |
| 546 |
| 547 Capacity.fromJson(core.Map _json) { |
| 548 if (_json.containsKey("unit")) { |
| 549 unit = _json["unit"]; |
| 550 } |
| 551 if (_json.containsKey("value")) { |
| 552 value = _json["value"]; |
| 553 } |
| 554 } |
| 555 |
| 556 core.Map toJson() { |
| 557 var _json = new core.Map(); |
| 558 if (unit != null) { |
| 559 _json["unit"] = unit; |
| 560 } |
| 561 if (value != null) { |
| 562 _json["value"] = value; |
| 563 } |
| 564 return _json; |
| 565 } |
| 566 } |
| 567 |
| 568 /** |
| 569 * The number of products in a single package. For more information, see |
| 570 * https://support.google.com/manufacturers/answer/6124116#count. |
| 571 */ |
| 572 class Count { |
| 573 /** The unit in which these products are counted. */ |
| 574 core.String unit; |
| 575 /** The numeric value of the number of products in a package. */ |
| 576 core.String value; |
| 577 |
| 578 Count(); |
| 579 |
| 580 Count.fromJson(core.Map _json) { |
| 581 if (_json.containsKey("unit")) { |
| 582 unit = _json["unit"]; |
| 583 } |
| 584 if (_json.containsKey("value")) { |
| 585 value = _json["value"]; |
| 586 } |
| 587 } |
| 588 |
| 589 core.Map toJson() { |
| 590 var _json = new core.Map(); |
| 591 if (unit != null) { |
| 592 _json["unit"] = unit; |
| 593 } |
| 594 if (value != null) { |
| 595 _json["value"] = value; |
| 596 } |
| 597 return _json; |
| 598 } |
| 599 } |
| 600 |
| 601 /** |
| 602 * A feature description of the product. For more information, see |
| 603 * https://support.google.com/manufacturers/answer/6124116#featuredesc. |
| 604 */ |
| 605 class FeatureDescription { |
| 606 /** A short description of the feature. */ |
| 607 core.String headline; |
| 608 /** An optional image describing the feature. */ |
| 609 Image image; |
| 610 /** A detailed description of the feature. */ |
| 611 core.String text; |
| 612 |
| 613 FeatureDescription(); |
| 614 |
| 615 FeatureDescription.fromJson(core.Map _json) { |
| 616 if (_json.containsKey("headline")) { |
| 617 headline = _json["headline"]; |
| 618 } |
| 619 if (_json.containsKey("image")) { |
| 620 image = new Image.fromJson(_json["image"]); |
| 621 } |
| 622 if (_json.containsKey("text")) { |
| 623 text = _json["text"]; |
| 624 } |
| 625 } |
| 626 |
| 627 core.Map toJson() { |
| 628 var _json = new core.Map(); |
| 629 if (headline != null) { |
| 630 _json["headline"] = headline; |
| 631 } |
| 632 if (image != null) { |
| 633 _json["image"] = (image).toJson(); |
| 634 } |
| 635 if (text != null) { |
| 636 _json["text"] = text; |
| 637 } |
| 638 return _json; |
| 639 } |
| 640 } |
| 641 |
| 642 /** An image. */ |
| 643 class Image { |
| 644 /** |
| 645 * The URL of the image. For crawled images, this is the provided URL. For |
| 646 * uploaded images, this is a serving URL from Google if the image has been |
| 647 * processed successfully. |
| 648 */ |
| 649 core.String imageUrl; |
| 650 /** |
| 651 * The status of the image. |
| 652 * @OutputOnly |
| 653 * Possible string values are: |
| 654 * - "STATUS_UNSPECIFIED" : Status is unspecified. Should not be used. |
| 655 * - "PENDING_PROCESSING" : Image was uploaded and is being processed. |
| 656 * - "PENDING_CRAWL" : The image crawl is still pending. |
| 657 * - "OK" : The image was processed and it meets the requirements. |
| 658 * - "ROBOTED" : The image URL is protected by robots.txt file and cannot be |
| 659 * crawled. |
| 660 * - "XROBOTED" : The image URL is protected by X-Robots-Tag and cannot be |
| 661 * crawled. |
| 662 * - "CRAWL_ERROR" : There was an error while crawling the image. |
| 663 * - "PROCESSING_ERROR" : The image cannot be processed. |
| 664 * - "DECODING_ERROR" : The image cannot be decoded. |
| 665 * - "TOO_BIG" : The image is too big. |
| 666 * - "CRAWL_SKIPPED" : The image was manually overridden and will not be |
| 667 * crawled. |
| 668 */ |
| 669 core.String status; |
| 670 /** |
| 671 * The type of the image, i.e., crawled or uploaded. |
| 672 * @OutputOnly |
| 673 * Possible string values are: |
| 674 * - "TYPE_UNSPECIFIED" : Type is unspecified. Should not be used. |
| 675 * - "CRAWLED" : The image was crawled from a provided URL. |
| 676 * - "UPLOADED" : The image was uploaded. |
| 677 */ |
| 678 core.String type; |
| 679 |
| 680 Image(); |
| 681 |
| 682 Image.fromJson(core.Map _json) { |
| 683 if (_json.containsKey("imageUrl")) { |
| 684 imageUrl = _json["imageUrl"]; |
| 685 } |
| 686 if (_json.containsKey("status")) { |
| 687 status = _json["status"]; |
| 688 } |
| 689 if (_json.containsKey("type")) { |
| 690 type = _json["type"]; |
| 691 } |
| 692 } |
| 693 |
| 694 core.Map toJson() { |
| 695 var _json = new core.Map(); |
| 696 if (imageUrl != null) { |
| 697 _json["imageUrl"] = imageUrl; |
| 698 } |
| 699 if (status != null) { |
| 700 _json["status"] = status; |
| 701 } |
| 702 if (type != null) { |
| 703 _json["type"] = type; |
| 704 } |
| 705 return _json; |
| 706 } |
| 707 } |
271 | 708 |
272 /** Product issue. */ | 709 /** Product issue. */ |
273 class Issue { | 710 class Issue { |
274 /** | 711 /** |
275 * If present, the attribute that triggered the issue. For more information | 712 * If present, the attribute that triggered the issue. For more information |
276 * about attributes, see | 713 * about attributes, see |
277 * https://support.google.com/manufacturers/answer/6124116. | 714 * https://support.google.com/manufacturers/answer/6124116. |
278 */ | 715 */ |
279 core.String attribute; | 716 core.String attribute; |
280 /** Description of the issue. */ | 717 /** Description of the issue. */ |
281 core.String description; | 718 core.String description; |
282 /** | 719 /** |
283 * The severity of the issue. | 720 * The severity of the issue. |
284 * Possible string values are: | 721 * Possible string values are: |
285 * - "SEVERITY_UNSPECIFIED" : Unspecified severity, never used. | 722 * - "SEVERITY_UNSPECIFIED" : Unspecified severity, never used. |
286 * - "ERROR" : Error severity. The issue prevents the usage of the whole item. | 723 * - "ERROR" : Error severity. The issue prevents the usage of the whole item. |
287 * - "WARNING" : Warning severity. The issue is either one that prevents the | 724 * - "WARNING" : Warning severity. The issue is either one that prevents the |
288 * usage of the | 725 * usage of the |
289 * attribute that triggered it or one that will soon prevent the usage of | 726 * attribute that triggered it or one that will soon prevent the usage of |
290 * the whole item. | 727 * the whole item. |
291 * - "INFO" : Info severity. The issue is one that doesn't require immediate | 728 * - "INFO" : Info severity. The issue is one that doesn't require immediate |
292 * attention. | 729 * attention. |
293 * It is, for example, used to communicate which attributes are still | 730 * It is, for example, used to communicate which attributes are still |
294 * pending review. | 731 * pending review. |
295 */ | 732 */ |
296 core.String severity; | 733 core.String severity; |
| 734 /** The timestamp when this issue appeared. */ |
| 735 core.String timestamp; |
297 /** | 736 /** |
298 * The server-generated type of the issue, for example, | 737 * The server-generated type of the issue, for example, |
299 * “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. | 738 * “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. |
300 */ | 739 */ |
301 core.String type; | 740 core.String type; |
302 | 741 |
303 Issue(); | 742 Issue(); |
304 | 743 |
305 Issue.fromJson(core.Map _json) { | 744 Issue.fromJson(core.Map _json) { |
306 if (_json.containsKey("attribute")) { | 745 if (_json.containsKey("attribute")) { |
307 attribute = _json["attribute"]; | 746 attribute = _json["attribute"]; |
308 } | 747 } |
309 if (_json.containsKey("description")) { | 748 if (_json.containsKey("description")) { |
310 description = _json["description"]; | 749 description = _json["description"]; |
311 } | 750 } |
312 if (_json.containsKey("severity")) { | 751 if (_json.containsKey("severity")) { |
313 severity = _json["severity"]; | 752 severity = _json["severity"]; |
314 } | 753 } |
| 754 if (_json.containsKey("timestamp")) { |
| 755 timestamp = _json["timestamp"]; |
| 756 } |
315 if (_json.containsKey("type")) { | 757 if (_json.containsKey("type")) { |
316 type = _json["type"]; | 758 type = _json["type"]; |
317 } | 759 } |
318 } | 760 } |
319 | 761 |
320 core.Map toJson() { | 762 core.Map toJson() { |
321 var _json = new core.Map(); | 763 var _json = new core.Map(); |
322 if (attribute != null) { | 764 if (attribute != null) { |
323 _json["attribute"] = attribute; | 765 _json["attribute"] = attribute; |
324 } | 766 } |
325 if (description != null) { | 767 if (description != null) { |
326 _json["description"] = description; | 768 _json["description"] = description; |
327 } | 769 } |
328 if (severity != null) { | 770 if (severity != null) { |
329 _json["severity"] = severity; | 771 _json["severity"] = severity; |
330 } | 772 } |
| 773 if (timestamp != null) { |
| 774 _json["timestamp"] = timestamp; |
| 775 } |
331 if (type != null) { | 776 if (type != null) { |
332 _json["type"] = type; | 777 _json["type"] = type; |
333 } | 778 } |
334 return _json; | 779 return _json; |
335 } | 780 } |
336 } | 781 } |
337 | 782 |
338 class ListProductsResponse { | 783 class ListProductsResponse { |
339 /** The token for the retrieval of the next page of product statuses. */ | 784 /** The token for the retrieval of the next page of product statuses. */ |
340 core.String nextPageToken; | 785 core.String nextPageToken; |
(...skipping 16 matching lines...) Expand all Loading... |
357 if (nextPageToken != null) { | 802 if (nextPageToken != null) { |
358 _json["nextPageToken"] = nextPageToken; | 803 _json["nextPageToken"] = nextPageToken; |
359 } | 804 } |
360 if (products != null) { | 805 if (products != null) { |
361 _json["products"] = products.map((value) => (value).toJson()).toList(); | 806 _json["products"] = products.map((value) => (value).toJson()).toList(); |
362 } | 807 } |
363 return _json; | 808 return _json; |
364 } | 809 } |
365 } | 810 } |
366 | 811 |
| 812 /** A price. */ |
| 813 class Price { |
| 814 /** The numeric value of the price. */ |
| 815 core.String amount; |
| 816 /** The currency in which the price is denoted. */ |
| 817 core.String currency; |
| 818 |
| 819 Price(); |
| 820 |
| 821 Price.fromJson(core.Map _json) { |
| 822 if (_json.containsKey("amount")) { |
| 823 amount = _json["amount"]; |
| 824 } |
| 825 if (_json.containsKey("currency")) { |
| 826 currency = _json["currency"]; |
| 827 } |
| 828 } |
| 829 |
| 830 core.Map toJson() { |
| 831 var _json = new core.Map(); |
| 832 if (amount != null) { |
| 833 _json["amount"] = amount; |
| 834 } |
| 835 if (currency != null) { |
| 836 _json["currency"] = currency; |
| 837 } |
| 838 return _json; |
| 839 } |
| 840 } |
| 841 |
367 /** Product data. */ | 842 /** Product data. */ |
368 class Product { | 843 class Product { |
369 /** | 844 /** |
370 * The content language of the product as a two-letter ISO 639-1 language code | 845 * The content language of the product as a two-letter ISO 639-1 language code |
371 * (for example, en). | 846 * (for example, en). |
372 * @OutputOnly | 847 * @OutputOnly |
373 */ | 848 */ |
374 core.String contentLanguage; | 849 core.String contentLanguage; |
375 /** | 850 /** |
376 * Final attributes of the product. The final attributes are obtained by | 851 * Final attributes of the product. The final attributes are obtained by |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 } | 973 } |
499 if (targetCountry != null) { | 974 if (targetCountry != null) { |
500 _json["targetCountry"] = targetCountry; | 975 _json["targetCountry"] = targetCountry; |
501 } | 976 } |
502 if (uploadedAttributes != null) { | 977 if (uploadedAttributes != null) { |
503 _json["uploadedAttributes"] = (uploadedAttributes).toJson(); | 978 _json["uploadedAttributes"] = (uploadedAttributes).toJson(); |
504 } | 979 } |
505 return _json; | 980 return _json; |
506 } | 981 } |
507 } | 982 } |
| 983 |
| 984 /** |
| 985 * A product detail of the product. For more information, see |
| 986 * https://support.google.com/manufacturers/answer/6124116#productdetail. |
| 987 */ |
| 988 class ProductDetail { |
| 989 /** The name of the attribute. */ |
| 990 core.String attributeName; |
| 991 /** The value of the attribute. */ |
| 992 core.String attributeValue; |
| 993 /** |
| 994 * A short section name that can be reused between multiple product details. |
| 995 */ |
| 996 core.String sectionName; |
| 997 |
| 998 ProductDetail(); |
| 999 |
| 1000 ProductDetail.fromJson(core.Map _json) { |
| 1001 if (_json.containsKey("attributeName")) { |
| 1002 attributeName = _json["attributeName"]; |
| 1003 } |
| 1004 if (_json.containsKey("attributeValue")) { |
| 1005 attributeValue = _json["attributeValue"]; |
| 1006 } |
| 1007 if (_json.containsKey("sectionName")) { |
| 1008 sectionName = _json["sectionName"]; |
| 1009 } |
| 1010 } |
| 1011 |
| 1012 core.Map toJson() { |
| 1013 var _json = new core.Map(); |
| 1014 if (attributeName != null) { |
| 1015 _json["attributeName"] = attributeName; |
| 1016 } |
| 1017 if (attributeValue != null) { |
| 1018 _json["attributeValue"] = attributeValue; |
| 1019 } |
| 1020 if (sectionName != null) { |
| 1021 _json["sectionName"] = sectionName; |
| 1022 } |
| 1023 return _json; |
| 1024 } |
| 1025 } |
OLD | NEW |