@google-shopping/reports 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/build/protos/google/shopping/merchant/reports/v1beta/reports.proto +71 -8
- package/build/protos/google/shopping/type/types.proto +1 -1
- package/build/protos/protos.d.ts +146 -425
- package/build/protos/protos.js +683 -930
- package/build/protos/protos.json +71 -0
- package/build/src/index.js +1 -1
- package/build/src/v1beta/gapic_metadata.json +37 -0
- package/build/src/v1beta/index.js +1 -1
- package/build/src/v1beta/report_service_client.d.ts +3 -3
- package/build/src/v1beta/report_service_client.js +56 -27
- package/build/src/v1beta/report_service_client.js.map +1 -1
- package/build/src/v1beta/report_service_proto_list.json +4 -0
- package/package.json +16 -16
package/build/protos/protos.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2025 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -671,6 +671,7 @@
|
|
671
671
|
* @memberof google.shopping.merchant.reports.v1beta
|
672
672
|
* @interface IReportRow
|
673
673
|
* @property {google.shopping.merchant.reports.v1beta.IProductPerformanceView|null} [productPerformanceView] ReportRow productPerformanceView
|
674
|
+
* @property {google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null} [nonProductPerformanceView] ReportRow nonProductPerformanceView
|
674
675
|
* @property {google.shopping.merchant.reports.v1beta.IProductView|null} [productView] ReportRow productView
|
675
676
|
* @property {google.shopping.merchant.reports.v1beta.IPriceCompetitivenessProductView|null} [priceCompetitivenessProductView] ReportRow priceCompetitivenessProductView
|
676
677
|
* @property {google.shopping.merchant.reports.v1beta.IPriceInsightsProductView|null} [priceInsightsProductView] ReportRow priceInsightsProductView
|
@@ -704,6 +705,14 @@
|
|
704
705
|
*/
|
705
706
|
ReportRow.prototype.productPerformanceView = null;
|
706
707
|
|
708
|
+
/**
|
709
|
+
* ReportRow nonProductPerformanceView.
|
710
|
+
* @member {google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null|undefined} nonProductPerformanceView
|
711
|
+
* @memberof google.shopping.merchant.reports.v1beta.ReportRow
|
712
|
+
* @instance
|
713
|
+
*/
|
714
|
+
ReportRow.prototype.nonProductPerformanceView = null;
|
715
|
+
|
707
716
|
/**
|
708
717
|
* ReportRow productView.
|
709
718
|
* @member {google.shopping.merchant.reports.v1beta.IProductView|null|undefined} productView
|
@@ -804,6 +813,8 @@
|
|
804
813
|
$root.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.encode(message.bestSellersProductClusterView, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
805
814
|
if (message.bestSellersBrandView != null && Object.hasOwnProperty.call(message, "bestSellersBrandView"))
|
806
815
|
$root.google.shopping.merchant.reports.v1beta.BestSellersBrandView.encode(message.bestSellersBrandView, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
816
|
+
if (message.nonProductPerformanceView != null && Object.hasOwnProperty.call(message, "nonProductPerformanceView"))
|
817
|
+
$root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.encode(message.nonProductPerformanceView, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
807
818
|
if (message.competitiveVisibilityCompetitorView != null && Object.hasOwnProperty.call(message, "competitiveVisibilityCompetitorView"))
|
808
819
|
$root.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView.encode(message.competitiveVisibilityCompetitorView, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
809
820
|
if (message.competitiveVisibilityTopMerchantView != null && Object.hasOwnProperty.call(message, "competitiveVisibilityTopMerchantView"))
|
@@ -848,6 +859,10 @@
|
|
848
859
|
message.productPerformanceView = $root.google.shopping.merchant.reports.v1beta.ProductPerformanceView.decode(reader, reader.uint32());
|
849
860
|
break;
|
850
861
|
}
|
862
|
+
case 7: {
|
863
|
+
message.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.decode(reader, reader.uint32());
|
864
|
+
break;
|
865
|
+
}
|
851
866
|
case 2: {
|
852
867
|
message.productView = $root.google.shopping.merchant.reports.v1beta.ProductView.decode(reader, reader.uint32());
|
853
868
|
break;
|
@@ -920,6 +935,11 @@
|
|
920
935
|
if (error)
|
921
936
|
return "productPerformanceView." + error;
|
922
937
|
}
|
938
|
+
if (message.nonProductPerformanceView != null && message.hasOwnProperty("nonProductPerformanceView")) {
|
939
|
+
var error = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify(message.nonProductPerformanceView);
|
940
|
+
if (error)
|
941
|
+
return "nonProductPerformanceView." + error;
|
942
|
+
}
|
923
943
|
if (message.productView != null && message.hasOwnProperty("productView")) {
|
924
944
|
var error = $root.google.shopping.merchant.reports.v1beta.ProductView.verify(message.productView);
|
925
945
|
if (error)
|
@@ -980,6 +1000,11 @@
|
|
980
1000
|
throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.productPerformanceView: object expected");
|
981
1001
|
message.productPerformanceView = $root.google.shopping.merchant.reports.v1beta.ProductPerformanceView.fromObject(object.productPerformanceView);
|
982
1002
|
}
|
1003
|
+
if (object.nonProductPerformanceView != null) {
|
1004
|
+
if (typeof object.nonProductPerformanceView !== "object")
|
1005
|
+
throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.nonProductPerformanceView: object expected");
|
1006
|
+
message.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.fromObject(object.nonProductPerformanceView);
|
1007
|
+
}
|
983
1008
|
if (object.productView != null) {
|
984
1009
|
if (typeof object.productView !== "object")
|
985
1010
|
throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.productView: object expected");
|
@@ -1043,6 +1068,7 @@
|
|
1043
1068
|
object.priceInsightsProductView = null;
|
1044
1069
|
object.bestSellersProductClusterView = null;
|
1045
1070
|
object.bestSellersBrandView = null;
|
1071
|
+
object.nonProductPerformanceView = null;
|
1046
1072
|
object.competitiveVisibilityCompetitorView = null;
|
1047
1073
|
object.competitiveVisibilityTopMerchantView = null;
|
1048
1074
|
object.competitiveVisibilityBenchmarkView = null;
|
@@ -1059,6 +1085,8 @@
|
|
1059
1085
|
object.bestSellersProductClusterView = $root.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.toObject(message.bestSellersProductClusterView, options);
|
1060
1086
|
if (message.bestSellersBrandView != null && message.hasOwnProperty("bestSellersBrandView"))
|
1061
1087
|
object.bestSellersBrandView = $root.google.shopping.merchant.reports.v1beta.BestSellersBrandView.toObject(message.bestSellersBrandView, options);
|
1088
|
+
if (message.nonProductPerformanceView != null && message.hasOwnProperty("nonProductPerformanceView"))
|
1089
|
+
object.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.toObject(message.nonProductPerformanceView, options);
|
1062
1090
|
if (message.competitiveVisibilityCompetitorView != null && message.hasOwnProperty("competitiveVisibilityCompetitorView"))
|
1063
1091
|
object.competitiveVisibilityCompetitorView = $root.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView.toObject(message.competitiveVisibilityCompetitorView, options);
|
1064
1092
|
if (message.competitiveVisibilityTopMerchantView != null && message.hasOwnProperty("competitiveVisibilityTopMerchantView"))
|
@@ -1375,276 +1403,151 @@
|
|
1375
1403
|
// OneOf field names bound to virtual getters and setters
|
1376
1404
|
var $oneOfFields;
|
1377
1405
|
|
1378
|
-
|
1379
|
-
* ProductPerformanceView _marketingMethod.
|
1380
|
-
* @member {"marketingMethod"|undefined} _marketingMethod
|
1381
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1382
|
-
* @instance
|
1383
|
-
*/
|
1406
|
+
// Virtual OneOf for proto3 optional field
|
1384
1407
|
Object.defineProperty(ProductPerformanceView.prototype, "_marketingMethod", {
|
1385
1408
|
get: $util.oneOfGetter($oneOfFields = ["marketingMethod"]),
|
1386
1409
|
set: $util.oneOfSetter($oneOfFields)
|
1387
1410
|
});
|
1388
1411
|
|
1389
|
-
|
1390
|
-
* ProductPerformanceView _customerCountryCode.
|
1391
|
-
* @member {"customerCountryCode"|undefined} _customerCountryCode
|
1392
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1393
|
-
* @instance
|
1394
|
-
*/
|
1412
|
+
// Virtual OneOf for proto3 optional field
|
1395
1413
|
Object.defineProperty(ProductPerformanceView.prototype, "_customerCountryCode", {
|
1396
1414
|
get: $util.oneOfGetter($oneOfFields = ["customerCountryCode"]),
|
1397
1415
|
set: $util.oneOfSetter($oneOfFields)
|
1398
1416
|
});
|
1399
1417
|
|
1400
|
-
|
1401
|
-
* ProductPerformanceView _offerId.
|
1402
|
-
* @member {"offerId"|undefined} _offerId
|
1403
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1404
|
-
* @instance
|
1405
|
-
*/
|
1418
|
+
// Virtual OneOf for proto3 optional field
|
1406
1419
|
Object.defineProperty(ProductPerformanceView.prototype, "_offerId", {
|
1407
1420
|
get: $util.oneOfGetter($oneOfFields = ["offerId"]),
|
1408
1421
|
set: $util.oneOfSetter($oneOfFields)
|
1409
1422
|
});
|
1410
1423
|
|
1411
|
-
|
1412
|
-
* ProductPerformanceView _title.
|
1413
|
-
* @member {"title"|undefined} _title
|
1414
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1415
|
-
* @instance
|
1416
|
-
*/
|
1424
|
+
// Virtual OneOf for proto3 optional field
|
1417
1425
|
Object.defineProperty(ProductPerformanceView.prototype, "_title", {
|
1418
1426
|
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
1419
1427
|
set: $util.oneOfSetter($oneOfFields)
|
1420
1428
|
});
|
1421
1429
|
|
1422
|
-
|
1423
|
-
* ProductPerformanceView _brand.
|
1424
|
-
* @member {"brand"|undefined} _brand
|
1425
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1426
|
-
* @instance
|
1427
|
-
*/
|
1430
|
+
// Virtual OneOf for proto3 optional field
|
1428
1431
|
Object.defineProperty(ProductPerformanceView.prototype, "_brand", {
|
1429
1432
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
1430
1433
|
set: $util.oneOfSetter($oneOfFields)
|
1431
1434
|
});
|
1432
1435
|
|
1433
|
-
|
1434
|
-
* ProductPerformanceView _categoryL1.
|
1435
|
-
* @member {"categoryL1"|undefined} _categoryL1
|
1436
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1437
|
-
* @instance
|
1438
|
-
*/
|
1436
|
+
// Virtual OneOf for proto3 optional field
|
1439
1437
|
Object.defineProperty(ProductPerformanceView.prototype, "_categoryL1", {
|
1440
1438
|
get: $util.oneOfGetter($oneOfFields = ["categoryL1"]),
|
1441
1439
|
set: $util.oneOfSetter($oneOfFields)
|
1442
1440
|
});
|
1443
1441
|
|
1444
|
-
|
1445
|
-
* ProductPerformanceView _categoryL2.
|
1446
|
-
* @member {"categoryL2"|undefined} _categoryL2
|
1447
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1448
|
-
* @instance
|
1449
|
-
*/
|
1442
|
+
// Virtual OneOf for proto3 optional field
|
1450
1443
|
Object.defineProperty(ProductPerformanceView.prototype, "_categoryL2", {
|
1451
1444
|
get: $util.oneOfGetter($oneOfFields = ["categoryL2"]),
|
1452
1445
|
set: $util.oneOfSetter($oneOfFields)
|
1453
1446
|
});
|
1454
1447
|
|
1455
|
-
|
1456
|
-
* ProductPerformanceView _categoryL3.
|
1457
|
-
* @member {"categoryL3"|undefined} _categoryL3
|
1458
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1459
|
-
* @instance
|
1460
|
-
*/
|
1448
|
+
// Virtual OneOf for proto3 optional field
|
1461
1449
|
Object.defineProperty(ProductPerformanceView.prototype, "_categoryL3", {
|
1462
1450
|
get: $util.oneOfGetter($oneOfFields = ["categoryL3"]),
|
1463
1451
|
set: $util.oneOfSetter($oneOfFields)
|
1464
1452
|
});
|
1465
1453
|
|
1466
|
-
|
1467
|
-
* ProductPerformanceView _categoryL4.
|
1468
|
-
* @member {"categoryL4"|undefined} _categoryL4
|
1469
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1470
|
-
* @instance
|
1471
|
-
*/
|
1454
|
+
// Virtual OneOf for proto3 optional field
|
1472
1455
|
Object.defineProperty(ProductPerformanceView.prototype, "_categoryL4", {
|
1473
1456
|
get: $util.oneOfGetter($oneOfFields = ["categoryL4"]),
|
1474
1457
|
set: $util.oneOfSetter($oneOfFields)
|
1475
1458
|
});
|
1476
1459
|
|
1477
|
-
|
1478
|
-
* ProductPerformanceView _categoryL5.
|
1479
|
-
* @member {"categoryL5"|undefined} _categoryL5
|
1480
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1481
|
-
* @instance
|
1482
|
-
*/
|
1460
|
+
// Virtual OneOf for proto3 optional field
|
1483
1461
|
Object.defineProperty(ProductPerformanceView.prototype, "_categoryL5", {
|
1484
1462
|
get: $util.oneOfGetter($oneOfFields = ["categoryL5"]),
|
1485
1463
|
set: $util.oneOfSetter($oneOfFields)
|
1486
1464
|
});
|
1487
1465
|
|
1488
|
-
|
1489
|
-
* ProductPerformanceView _productTypeL1.
|
1490
|
-
* @member {"productTypeL1"|undefined} _productTypeL1
|
1491
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1492
|
-
* @instance
|
1493
|
-
*/
|
1466
|
+
// Virtual OneOf for proto3 optional field
|
1494
1467
|
Object.defineProperty(ProductPerformanceView.prototype, "_productTypeL1", {
|
1495
1468
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL1"]),
|
1496
1469
|
set: $util.oneOfSetter($oneOfFields)
|
1497
1470
|
});
|
1498
1471
|
|
1499
|
-
|
1500
|
-
* ProductPerformanceView _productTypeL2.
|
1501
|
-
* @member {"productTypeL2"|undefined} _productTypeL2
|
1502
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1503
|
-
* @instance
|
1504
|
-
*/
|
1472
|
+
// Virtual OneOf for proto3 optional field
|
1505
1473
|
Object.defineProperty(ProductPerformanceView.prototype, "_productTypeL2", {
|
1506
1474
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL2"]),
|
1507
1475
|
set: $util.oneOfSetter($oneOfFields)
|
1508
1476
|
});
|
1509
1477
|
|
1510
|
-
|
1511
|
-
* ProductPerformanceView _productTypeL3.
|
1512
|
-
* @member {"productTypeL3"|undefined} _productTypeL3
|
1513
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1514
|
-
* @instance
|
1515
|
-
*/
|
1478
|
+
// Virtual OneOf for proto3 optional field
|
1516
1479
|
Object.defineProperty(ProductPerformanceView.prototype, "_productTypeL3", {
|
1517
1480
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL3"]),
|
1518
1481
|
set: $util.oneOfSetter($oneOfFields)
|
1519
1482
|
});
|
1520
1483
|
|
1521
|
-
|
1522
|
-
* ProductPerformanceView _productTypeL4.
|
1523
|
-
* @member {"productTypeL4"|undefined} _productTypeL4
|
1524
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1525
|
-
* @instance
|
1526
|
-
*/
|
1484
|
+
// Virtual OneOf for proto3 optional field
|
1527
1485
|
Object.defineProperty(ProductPerformanceView.prototype, "_productTypeL4", {
|
1528
1486
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL4"]),
|
1529
1487
|
set: $util.oneOfSetter($oneOfFields)
|
1530
1488
|
});
|
1531
1489
|
|
1532
|
-
|
1533
|
-
* ProductPerformanceView _productTypeL5.
|
1534
|
-
* @member {"productTypeL5"|undefined} _productTypeL5
|
1535
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1536
|
-
* @instance
|
1537
|
-
*/
|
1490
|
+
// Virtual OneOf for proto3 optional field
|
1538
1491
|
Object.defineProperty(ProductPerformanceView.prototype, "_productTypeL5", {
|
1539
1492
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL5"]),
|
1540
1493
|
set: $util.oneOfSetter($oneOfFields)
|
1541
1494
|
});
|
1542
1495
|
|
1543
|
-
|
1544
|
-
* ProductPerformanceView _customLabel0.
|
1545
|
-
* @member {"customLabel0"|undefined} _customLabel0
|
1546
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1547
|
-
* @instance
|
1548
|
-
*/
|
1496
|
+
// Virtual OneOf for proto3 optional field
|
1549
1497
|
Object.defineProperty(ProductPerformanceView.prototype, "_customLabel0", {
|
1550
1498
|
get: $util.oneOfGetter($oneOfFields = ["customLabel0"]),
|
1551
1499
|
set: $util.oneOfSetter($oneOfFields)
|
1552
1500
|
});
|
1553
1501
|
|
1554
|
-
|
1555
|
-
* ProductPerformanceView _customLabel1.
|
1556
|
-
* @member {"customLabel1"|undefined} _customLabel1
|
1557
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1558
|
-
* @instance
|
1559
|
-
*/
|
1502
|
+
// Virtual OneOf for proto3 optional field
|
1560
1503
|
Object.defineProperty(ProductPerformanceView.prototype, "_customLabel1", {
|
1561
1504
|
get: $util.oneOfGetter($oneOfFields = ["customLabel1"]),
|
1562
1505
|
set: $util.oneOfSetter($oneOfFields)
|
1563
1506
|
});
|
1564
1507
|
|
1565
|
-
|
1566
|
-
* ProductPerformanceView _customLabel2.
|
1567
|
-
* @member {"customLabel2"|undefined} _customLabel2
|
1568
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1569
|
-
* @instance
|
1570
|
-
*/
|
1508
|
+
// Virtual OneOf for proto3 optional field
|
1571
1509
|
Object.defineProperty(ProductPerformanceView.prototype, "_customLabel2", {
|
1572
1510
|
get: $util.oneOfGetter($oneOfFields = ["customLabel2"]),
|
1573
1511
|
set: $util.oneOfSetter($oneOfFields)
|
1574
1512
|
});
|
1575
1513
|
|
1576
|
-
|
1577
|
-
* ProductPerformanceView _customLabel3.
|
1578
|
-
* @member {"customLabel3"|undefined} _customLabel3
|
1579
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1580
|
-
* @instance
|
1581
|
-
*/
|
1514
|
+
// Virtual OneOf for proto3 optional field
|
1582
1515
|
Object.defineProperty(ProductPerformanceView.prototype, "_customLabel3", {
|
1583
1516
|
get: $util.oneOfGetter($oneOfFields = ["customLabel3"]),
|
1584
1517
|
set: $util.oneOfSetter($oneOfFields)
|
1585
1518
|
});
|
1586
1519
|
|
1587
|
-
|
1588
|
-
* ProductPerformanceView _customLabel4.
|
1589
|
-
* @member {"customLabel4"|undefined} _customLabel4
|
1590
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1591
|
-
* @instance
|
1592
|
-
*/
|
1520
|
+
// Virtual OneOf for proto3 optional field
|
1593
1521
|
Object.defineProperty(ProductPerformanceView.prototype, "_customLabel4", {
|
1594
1522
|
get: $util.oneOfGetter($oneOfFields = ["customLabel4"]),
|
1595
1523
|
set: $util.oneOfSetter($oneOfFields)
|
1596
1524
|
});
|
1597
1525
|
|
1598
|
-
|
1599
|
-
* ProductPerformanceView _clicks.
|
1600
|
-
* @member {"clicks"|undefined} _clicks
|
1601
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1602
|
-
* @instance
|
1603
|
-
*/
|
1526
|
+
// Virtual OneOf for proto3 optional field
|
1604
1527
|
Object.defineProperty(ProductPerformanceView.prototype, "_clicks", {
|
1605
1528
|
get: $util.oneOfGetter($oneOfFields = ["clicks"]),
|
1606
1529
|
set: $util.oneOfSetter($oneOfFields)
|
1607
1530
|
});
|
1608
1531
|
|
1609
|
-
|
1610
|
-
* ProductPerformanceView _impressions.
|
1611
|
-
* @member {"impressions"|undefined} _impressions
|
1612
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1613
|
-
* @instance
|
1614
|
-
*/
|
1532
|
+
// Virtual OneOf for proto3 optional field
|
1615
1533
|
Object.defineProperty(ProductPerformanceView.prototype, "_impressions", {
|
1616
1534
|
get: $util.oneOfGetter($oneOfFields = ["impressions"]),
|
1617
1535
|
set: $util.oneOfSetter($oneOfFields)
|
1618
1536
|
});
|
1619
1537
|
|
1620
|
-
|
1621
|
-
* ProductPerformanceView _clickThroughRate.
|
1622
|
-
* @member {"clickThroughRate"|undefined} _clickThroughRate
|
1623
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1624
|
-
* @instance
|
1625
|
-
*/
|
1538
|
+
// Virtual OneOf for proto3 optional field
|
1626
1539
|
Object.defineProperty(ProductPerformanceView.prototype, "_clickThroughRate", {
|
1627
1540
|
get: $util.oneOfGetter($oneOfFields = ["clickThroughRate"]),
|
1628
1541
|
set: $util.oneOfSetter($oneOfFields)
|
1629
1542
|
});
|
1630
1543
|
|
1631
|
-
|
1632
|
-
* ProductPerformanceView _conversions.
|
1633
|
-
* @member {"conversions"|undefined} _conversions
|
1634
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1635
|
-
* @instance
|
1636
|
-
*/
|
1544
|
+
// Virtual OneOf for proto3 optional field
|
1637
1545
|
Object.defineProperty(ProductPerformanceView.prototype, "_conversions", {
|
1638
1546
|
get: $util.oneOfGetter($oneOfFields = ["conversions"]),
|
1639
1547
|
set: $util.oneOfSetter($oneOfFields)
|
1640
1548
|
});
|
1641
1549
|
|
1642
|
-
|
1643
|
-
* ProductPerformanceView _conversionRate.
|
1644
|
-
* @member {"conversionRate"|undefined} _conversionRate
|
1645
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductPerformanceView
|
1646
|
-
* @instance
|
1647
|
-
*/
|
1550
|
+
// Virtual OneOf for proto3 optional field
|
1648
1551
|
Object.defineProperty(ProductPerformanceView.prototype, "_conversionRate", {
|
1649
1552
|
get: $util.oneOfGetter($oneOfFields = ["conversionRate"]),
|
1650
1553
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -2658,265 +2561,145 @@
|
|
2658
2561
|
// OneOf field names bound to virtual getters and setters
|
2659
2562
|
var $oneOfFields;
|
2660
2563
|
|
2661
|
-
|
2662
|
-
* ProductView _id.
|
2663
|
-
* @member {"id"|undefined} _id
|
2664
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2665
|
-
* @instance
|
2666
|
-
*/
|
2564
|
+
// Virtual OneOf for proto3 optional field
|
2667
2565
|
Object.defineProperty(ProductView.prototype, "_id", {
|
2668
2566
|
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
2669
2567
|
set: $util.oneOfSetter($oneOfFields)
|
2670
2568
|
});
|
2671
2569
|
|
2672
|
-
|
2673
|
-
* ProductView _channel.
|
2674
|
-
* @member {"channel"|undefined} _channel
|
2675
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2676
|
-
* @instance
|
2677
|
-
*/
|
2570
|
+
// Virtual OneOf for proto3 optional field
|
2678
2571
|
Object.defineProperty(ProductView.prototype, "_channel", {
|
2679
2572
|
get: $util.oneOfGetter($oneOfFields = ["channel"]),
|
2680
2573
|
set: $util.oneOfSetter($oneOfFields)
|
2681
2574
|
});
|
2682
2575
|
|
2683
|
-
|
2684
|
-
* ProductView _languageCode.
|
2685
|
-
* @member {"languageCode"|undefined} _languageCode
|
2686
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2687
|
-
* @instance
|
2688
|
-
*/
|
2576
|
+
// Virtual OneOf for proto3 optional field
|
2689
2577
|
Object.defineProperty(ProductView.prototype, "_languageCode", {
|
2690
2578
|
get: $util.oneOfGetter($oneOfFields = ["languageCode"]),
|
2691
2579
|
set: $util.oneOfSetter($oneOfFields)
|
2692
2580
|
});
|
2693
2581
|
|
2694
|
-
|
2695
|
-
* ProductView _feedLabel.
|
2696
|
-
* @member {"feedLabel"|undefined} _feedLabel
|
2697
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2698
|
-
* @instance
|
2699
|
-
*/
|
2582
|
+
// Virtual OneOf for proto3 optional field
|
2700
2583
|
Object.defineProperty(ProductView.prototype, "_feedLabel", {
|
2701
2584
|
get: $util.oneOfGetter($oneOfFields = ["feedLabel"]),
|
2702
2585
|
set: $util.oneOfSetter($oneOfFields)
|
2703
2586
|
});
|
2704
2587
|
|
2705
|
-
|
2706
|
-
* ProductView _offerId.
|
2707
|
-
* @member {"offerId"|undefined} _offerId
|
2708
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2709
|
-
* @instance
|
2710
|
-
*/
|
2588
|
+
// Virtual OneOf for proto3 optional field
|
2711
2589
|
Object.defineProperty(ProductView.prototype, "_offerId", {
|
2712
2590
|
get: $util.oneOfGetter($oneOfFields = ["offerId"]),
|
2713
2591
|
set: $util.oneOfSetter($oneOfFields)
|
2714
2592
|
});
|
2715
2593
|
|
2716
|
-
|
2717
|
-
* ProductView _title.
|
2718
|
-
* @member {"title"|undefined} _title
|
2719
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2720
|
-
* @instance
|
2721
|
-
*/
|
2594
|
+
// Virtual OneOf for proto3 optional field
|
2722
2595
|
Object.defineProperty(ProductView.prototype, "_title", {
|
2723
2596
|
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
2724
2597
|
set: $util.oneOfSetter($oneOfFields)
|
2725
2598
|
});
|
2726
2599
|
|
2727
|
-
|
2728
|
-
* ProductView _brand.
|
2729
|
-
* @member {"brand"|undefined} _brand
|
2730
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2731
|
-
* @instance
|
2732
|
-
*/
|
2600
|
+
// Virtual OneOf for proto3 optional field
|
2733
2601
|
Object.defineProperty(ProductView.prototype, "_brand", {
|
2734
2602
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
2735
2603
|
set: $util.oneOfSetter($oneOfFields)
|
2736
2604
|
});
|
2737
2605
|
|
2738
|
-
|
2739
|
-
* ProductView _categoryL1.
|
2740
|
-
* @member {"categoryL1"|undefined} _categoryL1
|
2741
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2742
|
-
* @instance
|
2743
|
-
*/
|
2606
|
+
// Virtual OneOf for proto3 optional field
|
2744
2607
|
Object.defineProperty(ProductView.prototype, "_categoryL1", {
|
2745
2608
|
get: $util.oneOfGetter($oneOfFields = ["categoryL1"]),
|
2746
2609
|
set: $util.oneOfSetter($oneOfFields)
|
2747
2610
|
});
|
2748
2611
|
|
2749
|
-
|
2750
|
-
* ProductView _categoryL2.
|
2751
|
-
* @member {"categoryL2"|undefined} _categoryL2
|
2752
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2753
|
-
* @instance
|
2754
|
-
*/
|
2612
|
+
// Virtual OneOf for proto3 optional field
|
2755
2613
|
Object.defineProperty(ProductView.prototype, "_categoryL2", {
|
2756
2614
|
get: $util.oneOfGetter($oneOfFields = ["categoryL2"]),
|
2757
2615
|
set: $util.oneOfSetter($oneOfFields)
|
2758
2616
|
});
|
2759
2617
|
|
2760
|
-
|
2761
|
-
* ProductView _categoryL3.
|
2762
|
-
* @member {"categoryL3"|undefined} _categoryL3
|
2763
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2764
|
-
* @instance
|
2765
|
-
*/
|
2618
|
+
// Virtual OneOf for proto3 optional field
|
2766
2619
|
Object.defineProperty(ProductView.prototype, "_categoryL3", {
|
2767
2620
|
get: $util.oneOfGetter($oneOfFields = ["categoryL3"]),
|
2768
2621
|
set: $util.oneOfSetter($oneOfFields)
|
2769
2622
|
});
|
2770
2623
|
|
2771
|
-
|
2772
|
-
* ProductView _categoryL4.
|
2773
|
-
* @member {"categoryL4"|undefined} _categoryL4
|
2774
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2775
|
-
* @instance
|
2776
|
-
*/
|
2624
|
+
// Virtual OneOf for proto3 optional field
|
2777
2625
|
Object.defineProperty(ProductView.prototype, "_categoryL4", {
|
2778
2626
|
get: $util.oneOfGetter($oneOfFields = ["categoryL4"]),
|
2779
2627
|
set: $util.oneOfSetter($oneOfFields)
|
2780
2628
|
});
|
2781
2629
|
|
2782
|
-
|
2783
|
-
* ProductView _categoryL5.
|
2784
|
-
* @member {"categoryL5"|undefined} _categoryL5
|
2785
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2786
|
-
* @instance
|
2787
|
-
*/
|
2630
|
+
// Virtual OneOf for proto3 optional field
|
2788
2631
|
Object.defineProperty(ProductView.prototype, "_categoryL5", {
|
2789
2632
|
get: $util.oneOfGetter($oneOfFields = ["categoryL5"]),
|
2790
2633
|
set: $util.oneOfSetter($oneOfFields)
|
2791
2634
|
});
|
2792
2635
|
|
2793
|
-
|
2794
|
-
* ProductView _productTypeL1.
|
2795
|
-
* @member {"productTypeL1"|undefined} _productTypeL1
|
2796
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2797
|
-
* @instance
|
2798
|
-
*/
|
2636
|
+
// Virtual OneOf for proto3 optional field
|
2799
2637
|
Object.defineProperty(ProductView.prototype, "_productTypeL1", {
|
2800
2638
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL1"]),
|
2801
2639
|
set: $util.oneOfSetter($oneOfFields)
|
2802
2640
|
});
|
2803
2641
|
|
2804
|
-
|
2805
|
-
* ProductView _productTypeL2.
|
2806
|
-
* @member {"productTypeL2"|undefined} _productTypeL2
|
2807
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2808
|
-
* @instance
|
2809
|
-
*/
|
2642
|
+
// Virtual OneOf for proto3 optional field
|
2810
2643
|
Object.defineProperty(ProductView.prototype, "_productTypeL2", {
|
2811
2644
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL2"]),
|
2812
2645
|
set: $util.oneOfSetter($oneOfFields)
|
2813
2646
|
});
|
2814
2647
|
|
2815
|
-
|
2816
|
-
* ProductView _productTypeL3.
|
2817
|
-
* @member {"productTypeL3"|undefined} _productTypeL3
|
2818
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2819
|
-
* @instance
|
2820
|
-
*/
|
2648
|
+
// Virtual OneOf for proto3 optional field
|
2821
2649
|
Object.defineProperty(ProductView.prototype, "_productTypeL3", {
|
2822
2650
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL3"]),
|
2823
2651
|
set: $util.oneOfSetter($oneOfFields)
|
2824
2652
|
});
|
2825
2653
|
|
2826
|
-
|
2827
|
-
* ProductView _productTypeL4.
|
2828
|
-
* @member {"productTypeL4"|undefined} _productTypeL4
|
2829
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2830
|
-
* @instance
|
2831
|
-
*/
|
2654
|
+
// Virtual OneOf for proto3 optional field
|
2832
2655
|
Object.defineProperty(ProductView.prototype, "_productTypeL4", {
|
2833
2656
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL4"]),
|
2834
2657
|
set: $util.oneOfSetter($oneOfFields)
|
2835
2658
|
});
|
2836
2659
|
|
2837
|
-
|
2838
|
-
* ProductView _productTypeL5.
|
2839
|
-
* @member {"productTypeL5"|undefined} _productTypeL5
|
2840
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2841
|
-
* @instance
|
2842
|
-
*/
|
2660
|
+
// Virtual OneOf for proto3 optional field
|
2843
2661
|
Object.defineProperty(ProductView.prototype, "_productTypeL5", {
|
2844
2662
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL5"]),
|
2845
2663
|
set: $util.oneOfSetter($oneOfFields)
|
2846
2664
|
});
|
2847
2665
|
|
2848
|
-
|
2849
|
-
* ProductView _condition.
|
2850
|
-
* @member {"condition"|undefined} _condition
|
2851
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2852
|
-
* @instance
|
2853
|
-
*/
|
2666
|
+
// Virtual OneOf for proto3 optional field
|
2854
2667
|
Object.defineProperty(ProductView.prototype, "_condition", {
|
2855
2668
|
get: $util.oneOfGetter($oneOfFields = ["condition"]),
|
2856
2669
|
set: $util.oneOfSetter($oneOfFields)
|
2857
2670
|
});
|
2858
2671
|
|
2859
|
-
|
2860
|
-
* ProductView _availability.
|
2861
|
-
* @member {"availability"|undefined} _availability
|
2862
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2863
|
-
* @instance
|
2864
|
-
*/
|
2672
|
+
// Virtual OneOf for proto3 optional field
|
2865
2673
|
Object.defineProperty(ProductView.prototype, "_availability", {
|
2866
2674
|
get: $util.oneOfGetter($oneOfFields = ["availability"]),
|
2867
2675
|
set: $util.oneOfSetter($oneOfFields)
|
2868
2676
|
});
|
2869
2677
|
|
2870
|
-
|
2871
|
-
* ProductView _shippingLabel.
|
2872
|
-
* @member {"shippingLabel"|undefined} _shippingLabel
|
2873
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2874
|
-
* @instance
|
2875
|
-
*/
|
2678
|
+
// Virtual OneOf for proto3 optional field
|
2876
2679
|
Object.defineProperty(ProductView.prototype, "_shippingLabel", {
|
2877
2680
|
get: $util.oneOfGetter($oneOfFields = ["shippingLabel"]),
|
2878
2681
|
set: $util.oneOfSetter($oneOfFields)
|
2879
2682
|
});
|
2880
2683
|
|
2881
|
-
|
2882
|
-
* ProductView _itemGroupId.
|
2883
|
-
* @member {"itemGroupId"|undefined} _itemGroupId
|
2884
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2885
|
-
* @instance
|
2886
|
-
*/
|
2684
|
+
// Virtual OneOf for proto3 optional field
|
2887
2685
|
Object.defineProperty(ProductView.prototype, "_itemGroupId", {
|
2888
2686
|
get: $util.oneOfGetter($oneOfFields = ["itemGroupId"]),
|
2889
2687
|
set: $util.oneOfSetter($oneOfFields)
|
2890
2688
|
});
|
2891
2689
|
|
2892
|
-
|
2893
|
-
* ProductView _thumbnailLink.
|
2894
|
-
* @member {"thumbnailLink"|undefined} _thumbnailLink
|
2895
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2896
|
-
* @instance
|
2897
|
-
*/
|
2690
|
+
// Virtual OneOf for proto3 optional field
|
2898
2691
|
Object.defineProperty(ProductView.prototype, "_thumbnailLink", {
|
2899
2692
|
get: $util.oneOfGetter($oneOfFields = ["thumbnailLink"]),
|
2900
2693
|
set: $util.oneOfSetter($oneOfFields)
|
2901
2694
|
});
|
2902
2695
|
|
2903
|
-
|
2904
|
-
* ProductView _aggregatedReportingContextStatus.
|
2905
|
-
* @member {"aggregatedReportingContextStatus"|undefined} _aggregatedReportingContextStatus
|
2906
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2907
|
-
* @instance
|
2908
|
-
*/
|
2696
|
+
// Virtual OneOf for proto3 optional field
|
2909
2697
|
Object.defineProperty(ProductView.prototype, "_aggregatedReportingContextStatus", {
|
2910
2698
|
get: $util.oneOfGetter($oneOfFields = ["aggregatedReportingContextStatus"]),
|
2911
2699
|
set: $util.oneOfSetter($oneOfFields)
|
2912
2700
|
});
|
2913
2701
|
|
2914
|
-
|
2915
|
-
* ProductView _clickPotentialRank.
|
2916
|
-
* @member {"clickPotentialRank"|undefined} _clickPotentialRank
|
2917
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2918
|
-
* @instance
|
2919
|
-
*/
|
2702
|
+
// Virtual OneOf for proto3 optional field
|
2920
2703
|
Object.defineProperty(ProductView.prototype, "_clickPotentialRank", {
|
2921
2704
|
get: $util.oneOfGetter($oneOfFields = ["clickPotentialRank"]),
|
2922
2705
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -3796,12 +3579,7 @@
|
|
3796
3579
|
// OneOf field names bound to virtual getters and setters
|
3797
3580
|
var $oneOfFields;
|
3798
3581
|
|
3799
|
-
|
3800
|
-
* ItemIssue _resolution.
|
3801
|
-
* @member {"resolution"|undefined} _resolution
|
3802
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView.ItemIssue
|
3803
|
-
* @instance
|
3804
|
-
*/
|
3582
|
+
// Virtual OneOf for proto3 optional field
|
3805
3583
|
Object.defineProperty(ItemIssue.prototype, "_resolution", {
|
3806
3584
|
get: $util.oneOfGetter($oneOfFields = ["resolution"]),
|
3807
3585
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -4087,23 +3865,13 @@
|
|
4087
3865
|
// OneOf field names bound to virtual getters and setters
|
4088
3866
|
var $oneOfFields;
|
4089
3867
|
|
4090
|
-
|
4091
|
-
* ItemIssueType _code.
|
4092
|
-
* @member {"code"|undefined} _code
|
4093
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueType
|
4094
|
-
* @instance
|
4095
|
-
*/
|
3868
|
+
// Virtual OneOf for proto3 optional field
|
4096
3869
|
Object.defineProperty(ItemIssueType.prototype, "_code", {
|
4097
3870
|
get: $util.oneOfGetter($oneOfFields = ["code"]),
|
4098
3871
|
set: $util.oneOfSetter($oneOfFields)
|
4099
3872
|
});
|
4100
3873
|
|
4101
|
-
|
4102
|
-
* ItemIssueType _canonicalAttribute.
|
4103
|
-
* @member {"canonicalAttribute"|undefined} _canonicalAttribute
|
4104
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueType
|
4105
|
-
* @instance
|
4106
|
-
*/
|
3874
|
+
// Virtual OneOf for proto3 optional field
|
4107
3875
|
Object.defineProperty(ItemIssueType.prototype, "_canonicalAttribute", {
|
4108
3876
|
get: $util.oneOfGetter($oneOfFields = ["canonicalAttribute"]),
|
4109
3877
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -4347,12 +4115,7 @@
|
|
4347
4115
|
// OneOf field names bound to virtual getters and setters
|
4348
4116
|
var $oneOfFields;
|
4349
4117
|
|
4350
|
-
|
4351
|
-
* ItemIssueSeverity _aggregatedSeverity.
|
4352
|
-
* @member {"aggregatedSeverity"|undefined} _aggregatedSeverity
|
4353
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity
|
4354
|
-
* @instance
|
4355
|
-
*/
|
4118
|
+
// Virtual OneOf for proto3 optional field
|
4356
4119
|
Object.defineProperty(ItemIssueSeverity.prototype, "_aggregatedSeverity", {
|
4357
4120
|
get: $util.oneOfGetter($oneOfFields = ["aggregatedSeverity"]),
|
4358
4121
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -4649,12 +4412,7 @@
|
|
4649
4412
|
// OneOf field names bound to virtual getters and setters
|
4650
4413
|
var $oneOfFields;
|
4651
4414
|
|
4652
|
-
|
4653
|
-
* IssueSeverityPerReportingContext _reportingContext.
|
4654
|
-
* @member {"reportingContext"|undefined} _reportingContext
|
4655
|
-
* @memberof google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext
|
4656
|
-
* @instance
|
4657
|
-
*/
|
4415
|
+
// Virtual OneOf for proto3 optional field
|
4658
4416
|
Object.defineProperty(IssueSeverityPerReportingContext.prototype, "_reportingContext", {
|
4659
4417
|
get: $util.oneOfGetter($oneOfFields = ["reportingContext"]),
|
4660
4418
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -5239,166 +4997,91 @@
|
|
5239
4997
|
// OneOf field names bound to virtual getters and setters
|
5240
4998
|
var $oneOfFields;
|
5241
4999
|
|
5242
|
-
|
5243
|
-
* PriceCompetitivenessProductView _reportCountryCode.
|
5244
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
5245
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5246
|
-
* @instance
|
5247
|
-
*/
|
5000
|
+
// Virtual OneOf for proto3 optional field
|
5248
5001
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_reportCountryCode", {
|
5249
5002
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
5250
5003
|
set: $util.oneOfSetter($oneOfFields)
|
5251
5004
|
});
|
5252
5005
|
|
5253
|
-
|
5254
|
-
* PriceCompetitivenessProductView _id.
|
5255
|
-
* @member {"id"|undefined} _id
|
5256
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5257
|
-
* @instance
|
5258
|
-
*/
|
5006
|
+
// Virtual OneOf for proto3 optional field
|
5259
5007
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_id", {
|
5260
5008
|
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
5261
5009
|
set: $util.oneOfSetter($oneOfFields)
|
5262
5010
|
});
|
5263
5011
|
|
5264
|
-
|
5265
|
-
* PriceCompetitivenessProductView _offerId.
|
5266
|
-
* @member {"offerId"|undefined} _offerId
|
5267
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5268
|
-
* @instance
|
5269
|
-
*/
|
5012
|
+
// Virtual OneOf for proto3 optional field
|
5270
5013
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_offerId", {
|
5271
5014
|
get: $util.oneOfGetter($oneOfFields = ["offerId"]),
|
5272
5015
|
set: $util.oneOfSetter($oneOfFields)
|
5273
5016
|
});
|
5274
5017
|
|
5275
|
-
|
5276
|
-
* PriceCompetitivenessProductView _title.
|
5277
|
-
* @member {"title"|undefined} _title
|
5278
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5279
|
-
* @instance
|
5280
|
-
*/
|
5018
|
+
// Virtual OneOf for proto3 optional field
|
5281
5019
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_title", {
|
5282
5020
|
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
5283
5021
|
set: $util.oneOfSetter($oneOfFields)
|
5284
5022
|
});
|
5285
5023
|
|
5286
|
-
|
5287
|
-
* PriceCompetitivenessProductView _brand.
|
5288
|
-
* @member {"brand"|undefined} _brand
|
5289
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5290
|
-
* @instance
|
5291
|
-
*/
|
5024
|
+
// Virtual OneOf for proto3 optional field
|
5292
5025
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_brand", {
|
5293
5026
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
5294
5027
|
set: $util.oneOfSetter($oneOfFields)
|
5295
5028
|
});
|
5296
5029
|
|
5297
|
-
|
5298
|
-
* PriceCompetitivenessProductView _categoryL1.
|
5299
|
-
* @member {"categoryL1"|undefined} _categoryL1
|
5300
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5301
|
-
* @instance
|
5302
|
-
*/
|
5030
|
+
// Virtual OneOf for proto3 optional field
|
5303
5031
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_categoryL1", {
|
5304
5032
|
get: $util.oneOfGetter($oneOfFields = ["categoryL1"]),
|
5305
5033
|
set: $util.oneOfSetter($oneOfFields)
|
5306
5034
|
});
|
5307
5035
|
|
5308
|
-
|
5309
|
-
* PriceCompetitivenessProductView _categoryL2.
|
5310
|
-
* @member {"categoryL2"|undefined} _categoryL2
|
5311
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5312
|
-
* @instance
|
5313
|
-
*/
|
5036
|
+
// Virtual OneOf for proto3 optional field
|
5314
5037
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_categoryL2", {
|
5315
5038
|
get: $util.oneOfGetter($oneOfFields = ["categoryL2"]),
|
5316
5039
|
set: $util.oneOfSetter($oneOfFields)
|
5317
5040
|
});
|
5318
5041
|
|
5319
|
-
|
5320
|
-
* PriceCompetitivenessProductView _categoryL3.
|
5321
|
-
* @member {"categoryL3"|undefined} _categoryL3
|
5322
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5323
|
-
* @instance
|
5324
|
-
*/
|
5042
|
+
// Virtual OneOf for proto3 optional field
|
5325
5043
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_categoryL3", {
|
5326
5044
|
get: $util.oneOfGetter($oneOfFields = ["categoryL3"]),
|
5327
5045
|
set: $util.oneOfSetter($oneOfFields)
|
5328
5046
|
});
|
5329
5047
|
|
5330
|
-
|
5331
|
-
* PriceCompetitivenessProductView _categoryL4.
|
5332
|
-
* @member {"categoryL4"|undefined} _categoryL4
|
5333
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5334
|
-
* @instance
|
5335
|
-
*/
|
5048
|
+
// Virtual OneOf for proto3 optional field
|
5336
5049
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_categoryL4", {
|
5337
5050
|
get: $util.oneOfGetter($oneOfFields = ["categoryL4"]),
|
5338
5051
|
set: $util.oneOfSetter($oneOfFields)
|
5339
5052
|
});
|
5340
5053
|
|
5341
|
-
|
5342
|
-
* PriceCompetitivenessProductView _categoryL5.
|
5343
|
-
* @member {"categoryL5"|undefined} _categoryL5
|
5344
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5345
|
-
* @instance
|
5346
|
-
*/
|
5054
|
+
// Virtual OneOf for proto3 optional field
|
5347
5055
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_categoryL5", {
|
5348
5056
|
get: $util.oneOfGetter($oneOfFields = ["categoryL5"]),
|
5349
5057
|
set: $util.oneOfSetter($oneOfFields)
|
5350
5058
|
});
|
5351
5059
|
|
5352
|
-
|
5353
|
-
* PriceCompetitivenessProductView _productTypeL1.
|
5354
|
-
* @member {"productTypeL1"|undefined} _productTypeL1
|
5355
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5356
|
-
* @instance
|
5357
|
-
*/
|
5060
|
+
// Virtual OneOf for proto3 optional field
|
5358
5061
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_productTypeL1", {
|
5359
5062
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL1"]),
|
5360
5063
|
set: $util.oneOfSetter($oneOfFields)
|
5361
5064
|
});
|
5362
5065
|
|
5363
|
-
|
5364
|
-
* PriceCompetitivenessProductView _productTypeL2.
|
5365
|
-
* @member {"productTypeL2"|undefined} _productTypeL2
|
5366
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5367
|
-
* @instance
|
5368
|
-
*/
|
5066
|
+
// Virtual OneOf for proto3 optional field
|
5369
5067
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_productTypeL2", {
|
5370
5068
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL2"]),
|
5371
5069
|
set: $util.oneOfSetter($oneOfFields)
|
5372
5070
|
});
|
5373
5071
|
|
5374
|
-
|
5375
|
-
* PriceCompetitivenessProductView _productTypeL3.
|
5376
|
-
* @member {"productTypeL3"|undefined} _productTypeL3
|
5377
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5378
|
-
* @instance
|
5379
|
-
*/
|
5072
|
+
// Virtual OneOf for proto3 optional field
|
5380
5073
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_productTypeL3", {
|
5381
5074
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL3"]),
|
5382
5075
|
set: $util.oneOfSetter($oneOfFields)
|
5383
5076
|
});
|
5384
5077
|
|
5385
|
-
|
5386
|
-
* PriceCompetitivenessProductView _productTypeL4.
|
5387
|
-
* @member {"productTypeL4"|undefined} _productTypeL4
|
5388
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5389
|
-
* @instance
|
5390
|
-
*/
|
5078
|
+
// Virtual OneOf for proto3 optional field
|
5391
5079
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_productTypeL4", {
|
5392
5080
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL4"]),
|
5393
5081
|
set: $util.oneOfSetter($oneOfFields)
|
5394
5082
|
});
|
5395
5083
|
|
5396
|
-
|
5397
|
-
* PriceCompetitivenessProductView _productTypeL5.
|
5398
|
-
* @member {"productTypeL5"|undefined} _productTypeL5
|
5399
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView
|
5400
|
-
* @instance
|
5401
|
-
*/
|
5084
|
+
// Virtual OneOf for proto3 optional field
|
5402
5085
|
Object.defineProperty(PriceCompetitivenessProductView.prototype, "_productTypeL5", {
|
5403
5086
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL5"]),
|
5404
5087
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -5896,6 +5579,7 @@
|
|
5896
5579
|
* @property {number|null} [predictedImpressionsChangeFraction] PriceInsightsProductView predictedImpressionsChangeFraction
|
5897
5580
|
* @property {number|null} [predictedClicksChangeFraction] PriceInsightsProductView predictedClicksChangeFraction
|
5898
5581
|
* @property {number|null} [predictedConversionsChangeFraction] PriceInsightsProductView predictedConversionsChangeFraction
|
5582
|
+
* @property {google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|null} [effectiveness] PriceInsightsProductView effectiveness
|
5899
5583
|
*/
|
5900
5584
|
|
5901
5585
|
/**
|
@@ -6065,191 +5749,114 @@
|
|
6065
5749
|
*/
|
6066
5750
|
PriceInsightsProductView.prototype.predictedConversionsChangeFraction = null;
|
6067
5751
|
|
6068
|
-
// OneOf field names bound to virtual getters and setters
|
6069
|
-
var $oneOfFields;
|
6070
|
-
|
6071
5752
|
/**
|
6072
|
-
* PriceInsightsProductView
|
6073
|
-
* @member {
|
5753
|
+
* PriceInsightsProductView effectiveness.
|
5754
|
+
* @member {google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness} effectiveness
|
6074
5755
|
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6075
5756
|
* @instance
|
6076
5757
|
*/
|
5758
|
+
PriceInsightsProductView.prototype.effectiveness = 0;
|
5759
|
+
|
5760
|
+
// OneOf field names bound to virtual getters and setters
|
5761
|
+
var $oneOfFields;
|
5762
|
+
|
5763
|
+
// Virtual OneOf for proto3 optional field
|
6077
5764
|
Object.defineProperty(PriceInsightsProductView.prototype, "_id", {
|
6078
5765
|
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
6079
5766
|
set: $util.oneOfSetter($oneOfFields)
|
6080
5767
|
});
|
6081
5768
|
|
6082
|
-
|
6083
|
-
* PriceInsightsProductView _offerId.
|
6084
|
-
* @member {"offerId"|undefined} _offerId
|
6085
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6086
|
-
* @instance
|
6087
|
-
*/
|
5769
|
+
// Virtual OneOf for proto3 optional field
|
6088
5770
|
Object.defineProperty(PriceInsightsProductView.prototype, "_offerId", {
|
6089
5771
|
get: $util.oneOfGetter($oneOfFields = ["offerId"]),
|
6090
5772
|
set: $util.oneOfSetter($oneOfFields)
|
6091
5773
|
});
|
6092
5774
|
|
6093
|
-
|
6094
|
-
* PriceInsightsProductView _title.
|
6095
|
-
* @member {"title"|undefined} _title
|
6096
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6097
|
-
* @instance
|
6098
|
-
*/
|
5775
|
+
// Virtual OneOf for proto3 optional field
|
6099
5776
|
Object.defineProperty(PriceInsightsProductView.prototype, "_title", {
|
6100
5777
|
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
6101
5778
|
set: $util.oneOfSetter($oneOfFields)
|
6102
5779
|
});
|
6103
5780
|
|
6104
|
-
|
6105
|
-
* PriceInsightsProductView _brand.
|
6106
|
-
* @member {"brand"|undefined} _brand
|
6107
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6108
|
-
* @instance
|
6109
|
-
*/
|
5781
|
+
// Virtual OneOf for proto3 optional field
|
6110
5782
|
Object.defineProperty(PriceInsightsProductView.prototype, "_brand", {
|
6111
5783
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
6112
5784
|
set: $util.oneOfSetter($oneOfFields)
|
6113
5785
|
});
|
6114
5786
|
|
6115
|
-
|
6116
|
-
* PriceInsightsProductView _categoryL1.
|
6117
|
-
* @member {"categoryL1"|undefined} _categoryL1
|
6118
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6119
|
-
* @instance
|
6120
|
-
*/
|
5787
|
+
// Virtual OneOf for proto3 optional field
|
6121
5788
|
Object.defineProperty(PriceInsightsProductView.prototype, "_categoryL1", {
|
6122
5789
|
get: $util.oneOfGetter($oneOfFields = ["categoryL1"]),
|
6123
5790
|
set: $util.oneOfSetter($oneOfFields)
|
6124
5791
|
});
|
6125
5792
|
|
6126
|
-
|
6127
|
-
* PriceInsightsProductView _categoryL2.
|
6128
|
-
* @member {"categoryL2"|undefined} _categoryL2
|
6129
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6130
|
-
* @instance
|
6131
|
-
*/
|
5793
|
+
// Virtual OneOf for proto3 optional field
|
6132
5794
|
Object.defineProperty(PriceInsightsProductView.prototype, "_categoryL2", {
|
6133
5795
|
get: $util.oneOfGetter($oneOfFields = ["categoryL2"]),
|
6134
5796
|
set: $util.oneOfSetter($oneOfFields)
|
6135
5797
|
});
|
6136
5798
|
|
6137
|
-
|
6138
|
-
* PriceInsightsProductView _categoryL3.
|
6139
|
-
* @member {"categoryL3"|undefined} _categoryL3
|
6140
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6141
|
-
* @instance
|
6142
|
-
*/
|
5799
|
+
// Virtual OneOf for proto3 optional field
|
6143
5800
|
Object.defineProperty(PriceInsightsProductView.prototype, "_categoryL3", {
|
6144
5801
|
get: $util.oneOfGetter($oneOfFields = ["categoryL3"]),
|
6145
5802
|
set: $util.oneOfSetter($oneOfFields)
|
6146
5803
|
});
|
6147
5804
|
|
6148
|
-
|
6149
|
-
* PriceInsightsProductView _categoryL4.
|
6150
|
-
* @member {"categoryL4"|undefined} _categoryL4
|
6151
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6152
|
-
* @instance
|
6153
|
-
*/
|
5805
|
+
// Virtual OneOf for proto3 optional field
|
6154
5806
|
Object.defineProperty(PriceInsightsProductView.prototype, "_categoryL4", {
|
6155
5807
|
get: $util.oneOfGetter($oneOfFields = ["categoryL4"]),
|
6156
5808
|
set: $util.oneOfSetter($oneOfFields)
|
6157
5809
|
});
|
6158
5810
|
|
6159
|
-
|
6160
|
-
* PriceInsightsProductView _categoryL5.
|
6161
|
-
* @member {"categoryL5"|undefined} _categoryL5
|
6162
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6163
|
-
* @instance
|
6164
|
-
*/
|
5811
|
+
// Virtual OneOf for proto3 optional field
|
6165
5812
|
Object.defineProperty(PriceInsightsProductView.prototype, "_categoryL5", {
|
6166
5813
|
get: $util.oneOfGetter($oneOfFields = ["categoryL5"]),
|
6167
5814
|
set: $util.oneOfSetter($oneOfFields)
|
6168
5815
|
});
|
6169
5816
|
|
6170
|
-
|
6171
|
-
* PriceInsightsProductView _productTypeL1.
|
6172
|
-
* @member {"productTypeL1"|undefined} _productTypeL1
|
6173
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6174
|
-
* @instance
|
6175
|
-
*/
|
5817
|
+
// Virtual OneOf for proto3 optional field
|
6176
5818
|
Object.defineProperty(PriceInsightsProductView.prototype, "_productTypeL1", {
|
6177
5819
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL1"]),
|
6178
5820
|
set: $util.oneOfSetter($oneOfFields)
|
6179
5821
|
});
|
6180
5822
|
|
6181
|
-
|
6182
|
-
* PriceInsightsProductView _productTypeL2.
|
6183
|
-
* @member {"productTypeL2"|undefined} _productTypeL2
|
6184
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6185
|
-
* @instance
|
6186
|
-
*/
|
5823
|
+
// Virtual OneOf for proto3 optional field
|
6187
5824
|
Object.defineProperty(PriceInsightsProductView.prototype, "_productTypeL2", {
|
6188
5825
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL2"]),
|
6189
5826
|
set: $util.oneOfSetter($oneOfFields)
|
6190
5827
|
});
|
6191
5828
|
|
6192
|
-
|
6193
|
-
* PriceInsightsProductView _productTypeL3.
|
6194
|
-
* @member {"productTypeL3"|undefined} _productTypeL3
|
6195
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6196
|
-
* @instance
|
6197
|
-
*/
|
5829
|
+
// Virtual OneOf for proto3 optional field
|
6198
5830
|
Object.defineProperty(PriceInsightsProductView.prototype, "_productTypeL3", {
|
6199
5831
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL3"]),
|
6200
5832
|
set: $util.oneOfSetter($oneOfFields)
|
6201
5833
|
});
|
6202
5834
|
|
6203
|
-
|
6204
|
-
* PriceInsightsProductView _productTypeL4.
|
6205
|
-
* @member {"productTypeL4"|undefined} _productTypeL4
|
6206
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6207
|
-
* @instance
|
6208
|
-
*/
|
5835
|
+
// Virtual OneOf for proto3 optional field
|
6209
5836
|
Object.defineProperty(PriceInsightsProductView.prototype, "_productTypeL4", {
|
6210
5837
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL4"]),
|
6211
5838
|
set: $util.oneOfSetter($oneOfFields)
|
6212
5839
|
});
|
6213
5840
|
|
6214
|
-
|
6215
|
-
* PriceInsightsProductView _productTypeL5.
|
6216
|
-
* @member {"productTypeL5"|undefined} _productTypeL5
|
6217
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6218
|
-
* @instance
|
6219
|
-
*/
|
5841
|
+
// Virtual OneOf for proto3 optional field
|
6220
5842
|
Object.defineProperty(PriceInsightsProductView.prototype, "_productTypeL5", {
|
6221
5843
|
get: $util.oneOfGetter($oneOfFields = ["productTypeL5"]),
|
6222
5844
|
set: $util.oneOfSetter($oneOfFields)
|
6223
5845
|
});
|
6224
5846
|
|
6225
|
-
|
6226
|
-
* PriceInsightsProductView _predictedImpressionsChangeFraction.
|
6227
|
-
* @member {"predictedImpressionsChangeFraction"|undefined} _predictedImpressionsChangeFraction
|
6228
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6229
|
-
* @instance
|
6230
|
-
*/
|
5847
|
+
// Virtual OneOf for proto3 optional field
|
6231
5848
|
Object.defineProperty(PriceInsightsProductView.prototype, "_predictedImpressionsChangeFraction", {
|
6232
5849
|
get: $util.oneOfGetter($oneOfFields = ["predictedImpressionsChangeFraction"]),
|
6233
5850
|
set: $util.oneOfSetter($oneOfFields)
|
6234
5851
|
});
|
6235
5852
|
|
6236
|
-
|
6237
|
-
* PriceInsightsProductView _predictedClicksChangeFraction.
|
6238
|
-
* @member {"predictedClicksChangeFraction"|undefined} _predictedClicksChangeFraction
|
6239
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6240
|
-
* @instance
|
6241
|
-
*/
|
5853
|
+
// Virtual OneOf for proto3 optional field
|
6242
5854
|
Object.defineProperty(PriceInsightsProductView.prototype, "_predictedClicksChangeFraction", {
|
6243
5855
|
get: $util.oneOfGetter($oneOfFields = ["predictedClicksChangeFraction"]),
|
6244
5856
|
set: $util.oneOfSetter($oneOfFields)
|
6245
5857
|
});
|
6246
5858
|
|
6247
|
-
|
6248
|
-
* PriceInsightsProductView _predictedConversionsChangeFraction.
|
6249
|
-
* @member {"predictedConversionsChangeFraction"|undefined} _predictedConversionsChangeFraction
|
6250
|
-
* @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
|
6251
|
-
* @instance
|
6252
|
-
*/
|
5859
|
+
// Virtual OneOf for proto3 optional field
|
6253
5860
|
Object.defineProperty(PriceInsightsProductView.prototype, "_predictedConversionsChangeFraction", {
|
6254
5861
|
get: $util.oneOfGetter($oneOfFields = ["predictedConversionsChangeFraction"]),
|
6255
5862
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -6317,6 +5924,8 @@
|
|
6317
5924
|
writer.uint32(/* id 18, wireType 1 =*/145).double(message.predictedClicksChangeFraction);
|
6318
5925
|
if (message.predictedConversionsChangeFraction != null && Object.hasOwnProperty.call(message, "predictedConversionsChangeFraction"))
|
6319
5926
|
writer.uint32(/* id 19, wireType 1 =*/153).double(message.predictedConversionsChangeFraction);
|
5927
|
+
if (message.effectiveness != null && Object.hasOwnProperty.call(message, "effectiveness"))
|
5928
|
+
writer.uint32(/* id 22, wireType 0 =*/176).int32(message.effectiveness);
|
6320
5929
|
return writer;
|
6321
5930
|
};
|
6322
5931
|
|
@@ -6427,6 +6036,10 @@
|
|
6427
6036
|
message.predictedConversionsChangeFraction = reader.double();
|
6428
6037
|
break;
|
6429
6038
|
}
|
6039
|
+
case 22: {
|
6040
|
+
message.effectiveness = reader.int32();
|
6041
|
+
break;
|
6042
|
+
}
|
6430
6043
|
default:
|
6431
6044
|
reader.skipType(tag & 7);
|
6432
6045
|
break;
|
@@ -6558,6 +6171,16 @@
|
|
6558
6171
|
if (typeof message.predictedConversionsChangeFraction !== "number")
|
6559
6172
|
return "predictedConversionsChangeFraction: number expected";
|
6560
6173
|
}
|
6174
|
+
if (message.effectiveness != null && message.hasOwnProperty("effectiveness"))
|
6175
|
+
switch (message.effectiveness) {
|
6176
|
+
default:
|
6177
|
+
return "effectiveness: enum value expected";
|
6178
|
+
case 0:
|
6179
|
+
case 1:
|
6180
|
+
case 2:
|
6181
|
+
case 3:
|
6182
|
+
break;
|
6183
|
+
}
|
6561
6184
|
return null;
|
6562
6185
|
};
|
6563
6186
|
|
@@ -6617,6 +6240,30 @@
|
|
6617
6240
|
message.predictedClicksChangeFraction = Number(object.predictedClicksChangeFraction);
|
6618
6241
|
if (object.predictedConversionsChangeFraction != null)
|
6619
6242
|
message.predictedConversionsChangeFraction = Number(object.predictedConversionsChangeFraction);
|
6243
|
+
switch (object.effectiveness) {
|
6244
|
+
default:
|
6245
|
+
if (typeof object.effectiveness === "number") {
|
6246
|
+
message.effectiveness = object.effectiveness;
|
6247
|
+
break;
|
6248
|
+
}
|
6249
|
+
break;
|
6250
|
+
case "EFFECTIVENESS_UNSPECIFIED":
|
6251
|
+
case 0:
|
6252
|
+
message.effectiveness = 0;
|
6253
|
+
break;
|
6254
|
+
case "LOW":
|
6255
|
+
case 1:
|
6256
|
+
message.effectiveness = 1;
|
6257
|
+
break;
|
6258
|
+
case "MEDIUM":
|
6259
|
+
case 2:
|
6260
|
+
message.effectiveness = 2;
|
6261
|
+
break;
|
6262
|
+
case "HIGH":
|
6263
|
+
case 3:
|
6264
|
+
message.effectiveness = 3;
|
6265
|
+
break;
|
6266
|
+
}
|
6620
6267
|
return message;
|
6621
6268
|
};
|
6622
6269
|
|
@@ -6636,6 +6283,7 @@
|
|
6636
6283
|
if (options.defaults) {
|
6637
6284
|
object.price = null;
|
6638
6285
|
object.suggestedPrice = null;
|
6286
|
+
object.effectiveness = options.enums === String ? "EFFECTIVENESS_UNSPECIFIED" : 0;
|
6639
6287
|
}
|
6640
6288
|
if (message.id != null && message.hasOwnProperty("id")) {
|
6641
6289
|
object.id = message.id;
|
@@ -6726,6 +6374,8 @@
|
|
6726
6374
|
if (options.oneofs)
|
6727
6375
|
object._predictedConversionsChangeFraction = "predictedConversionsChangeFraction";
|
6728
6376
|
}
|
6377
|
+
if (message.effectiveness != null && message.hasOwnProperty("effectiveness"))
|
6378
|
+
object.effectiveness = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness[message.effectiveness] === undefined ? message.effectiveness : $root.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness[message.effectiveness] : message.effectiveness;
|
6729
6379
|
return object;
|
6730
6380
|
};
|
6731
6381
|
|
@@ -6755,6 +6405,24 @@
|
|
6755
6405
|
return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.PriceInsightsProductView";
|
6756
6406
|
};
|
6757
6407
|
|
6408
|
+
/**
|
6409
|
+
* Effectiveness enum.
|
6410
|
+
* @name google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness
|
6411
|
+
* @enum {number}
|
6412
|
+
* @property {number} EFFECTIVENESS_UNSPECIFIED=0 EFFECTIVENESS_UNSPECIFIED value
|
6413
|
+
* @property {number} LOW=1 LOW value
|
6414
|
+
* @property {number} MEDIUM=2 MEDIUM value
|
6415
|
+
* @property {number} HIGH=3 HIGH value
|
6416
|
+
*/
|
6417
|
+
PriceInsightsProductView.Effectiveness = (function() {
|
6418
|
+
var valuesById = {}, values = Object.create(valuesById);
|
6419
|
+
values[valuesById[0] = "EFFECTIVENESS_UNSPECIFIED"] = 0;
|
6420
|
+
values[valuesById[1] = "LOW"] = 1;
|
6421
|
+
values[valuesById[2] = "MEDIUM"] = 2;
|
6422
|
+
values[valuesById[3] = "HIGH"] = 3;
|
6423
|
+
return values;
|
6424
|
+
})();
|
6425
|
+
|
6758
6426
|
return PriceInsightsProductView;
|
6759
6427
|
})();
|
6760
6428
|
|
@@ -6956,188 +6624,103 @@
|
|
6956
6624
|
// OneOf field names bound to virtual getters and setters
|
6957
6625
|
var $oneOfFields;
|
6958
6626
|
|
6959
|
-
|
6960
|
-
* BestSellersProductClusterView _reportGranularity.
|
6961
|
-
* @member {"reportGranularity"|undefined} _reportGranularity
|
6962
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
6963
|
-
* @instance
|
6964
|
-
*/
|
6627
|
+
// Virtual OneOf for proto3 optional field
|
6965
6628
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_reportGranularity", {
|
6966
6629
|
get: $util.oneOfGetter($oneOfFields = ["reportGranularity"]),
|
6967
6630
|
set: $util.oneOfSetter($oneOfFields)
|
6968
6631
|
});
|
6969
6632
|
|
6970
|
-
|
6971
|
-
* BestSellersProductClusterView _reportCountryCode.
|
6972
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
6973
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
6974
|
-
* @instance
|
6975
|
-
*/
|
6633
|
+
// Virtual OneOf for proto3 optional field
|
6976
6634
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_reportCountryCode", {
|
6977
6635
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
6978
6636
|
set: $util.oneOfSetter($oneOfFields)
|
6979
6637
|
});
|
6980
6638
|
|
6981
|
-
|
6982
|
-
* BestSellersProductClusterView _reportCategoryId.
|
6983
|
-
* @member {"reportCategoryId"|undefined} _reportCategoryId
|
6984
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
6985
|
-
* @instance
|
6986
|
-
*/
|
6639
|
+
// Virtual OneOf for proto3 optional field
|
6987
6640
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_reportCategoryId", {
|
6988
6641
|
get: $util.oneOfGetter($oneOfFields = ["reportCategoryId"]),
|
6989
6642
|
set: $util.oneOfSetter($oneOfFields)
|
6990
6643
|
});
|
6991
6644
|
|
6992
|
-
|
6993
|
-
* BestSellersProductClusterView _title.
|
6994
|
-
* @member {"title"|undefined} _title
|
6995
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
6996
|
-
* @instance
|
6997
|
-
*/
|
6645
|
+
// Virtual OneOf for proto3 optional field
|
6998
6646
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_title", {
|
6999
6647
|
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
7000
6648
|
set: $util.oneOfSetter($oneOfFields)
|
7001
6649
|
});
|
7002
6650
|
|
7003
|
-
|
7004
|
-
* BestSellersProductClusterView _brand.
|
7005
|
-
* @member {"brand"|undefined} _brand
|
7006
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7007
|
-
* @instance
|
7008
|
-
*/
|
6651
|
+
// Virtual OneOf for proto3 optional field
|
7009
6652
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_brand", {
|
7010
6653
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
7011
6654
|
set: $util.oneOfSetter($oneOfFields)
|
7012
6655
|
});
|
7013
6656
|
|
7014
|
-
|
7015
|
-
* BestSellersProductClusterView _categoryL1.
|
7016
|
-
* @member {"categoryL1"|undefined} _categoryL1
|
7017
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7018
|
-
* @instance
|
7019
|
-
*/
|
6657
|
+
// Virtual OneOf for proto3 optional field
|
7020
6658
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_categoryL1", {
|
7021
6659
|
get: $util.oneOfGetter($oneOfFields = ["categoryL1"]),
|
7022
6660
|
set: $util.oneOfSetter($oneOfFields)
|
7023
6661
|
});
|
7024
6662
|
|
7025
|
-
|
7026
|
-
* BestSellersProductClusterView _categoryL2.
|
7027
|
-
* @member {"categoryL2"|undefined} _categoryL2
|
7028
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7029
|
-
* @instance
|
7030
|
-
*/
|
6663
|
+
// Virtual OneOf for proto3 optional field
|
7031
6664
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_categoryL2", {
|
7032
6665
|
get: $util.oneOfGetter($oneOfFields = ["categoryL2"]),
|
7033
6666
|
set: $util.oneOfSetter($oneOfFields)
|
7034
6667
|
});
|
7035
6668
|
|
7036
|
-
|
7037
|
-
* BestSellersProductClusterView _categoryL3.
|
7038
|
-
* @member {"categoryL3"|undefined} _categoryL3
|
7039
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7040
|
-
* @instance
|
7041
|
-
*/
|
6669
|
+
// Virtual OneOf for proto3 optional field
|
7042
6670
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_categoryL3", {
|
7043
6671
|
get: $util.oneOfGetter($oneOfFields = ["categoryL3"]),
|
7044
6672
|
set: $util.oneOfSetter($oneOfFields)
|
7045
6673
|
});
|
7046
6674
|
|
7047
|
-
|
7048
|
-
* BestSellersProductClusterView _categoryL4.
|
7049
|
-
* @member {"categoryL4"|undefined} _categoryL4
|
7050
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7051
|
-
* @instance
|
7052
|
-
*/
|
6675
|
+
// Virtual OneOf for proto3 optional field
|
7053
6676
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_categoryL4", {
|
7054
6677
|
get: $util.oneOfGetter($oneOfFields = ["categoryL4"]),
|
7055
6678
|
set: $util.oneOfSetter($oneOfFields)
|
7056
6679
|
});
|
7057
6680
|
|
7058
|
-
|
7059
|
-
* BestSellersProductClusterView _categoryL5.
|
7060
|
-
* @member {"categoryL5"|undefined} _categoryL5
|
7061
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7062
|
-
* @instance
|
7063
|
-
*/
|
6681
|
+
// Virtual OneOf for proto3 optional field
|
7064
6682
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_categoryL5", {
|
7065
6683
|
get: $util.oneOfGetter($oneOfFields = ["categoryL5"]),
|
7066
6684
|
set: $util.oneOfSetter($oneOfFields)
|
7067
6685
|
});
|
7068
6686
|
|
7069
|
-
|
7070
|
-
* BestSellersProductClusterView _inventoryStatus.
|
7071
|
-
* @member {"inventoryStatus"|undefined} _inventoryStatus
|
7072
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7073
|
-
* @instance
|
7074
|
-
*/
|
6687
|
+
// Virtual OneOf for proto3 optional field
|
7075
6688
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_inventoryStatus", {
|
7076
6689
|
get: $util.oneOfGetter($oneOfFields = ["inventoryStatus"]),
|
7077
6690
|
set: $util.oneOfSetter($oneOfFields)
|
7078
6691
|
});
|
7079
6692
|
|
7080
|
-
|
7081
|
-
* BestSellersProductClusterView _brandInventoryStatus.
|
7082
|
-
* @member {"brandInventoryStatus"|undefined} _brandInventoryStatus
|
7083
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7084
|
-
* @instance
|
7085
|
-
*/
|
6693
|
+
// Virtual OneOf for proto3 optional field
|
7086
6694
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_brandInventoryStatus", {
|
7087
6695
|
get: $util.oneOfGetter($oneOfFields = ["brandInventoryStatus"]),
|
7088
6696
|
set: $util.oneOfSetter($oneOfFields)
|
7089
6697
|
});
|
7090
6698
|
|
7091
|
-
|
7092
|
-
* BestSellersProductClusterView _rank.
|
7093
|
-
* @member {"rank"|undefined} _rank
|
7094
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7095
|
-
* @instance
|
7096
|
-
*/
|
6699
|
+
// Virtual OneOf for proto3 optional field
|
7097
6700
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_rank", {
|
7098
6701
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
7099
6702
|
set: $util.oneOfSetter($oneOfFields)
|
7100
6703
|
});
|
7101
6704
|
|
7102
|
-
|
7103
|
-
* BestSellersProductClusterView _previousRank.
|
7104
|
-
* @member {"previousRank"|undefined} _previousRank
|
7105
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7106
|
-
* @instance
|
7107
|
-
*/
|
6705
|
+
// Virtual OneOf for proto3 optional field
|
7108
6706
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_previousRank", {
|
7109
6707
|
get: $util.oneOfGetter($oneOfFields = ["previousRank"]),
|
7110
6708
|
set: $util.oneOfSetter($oneOfFields)
|
7111
6709
|
});
|
7112
6710
|
|
7113
|
-
|
7114
|
-
* BestSellersProductClusterView _relativeDemand.
|
7115
|
-
* @member {"relativeDemand"|undefined} _relativeDemand
|
7116
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7117
|
-
* @instance
|
7118
|
-
*/
|
6711
|
+
// Virtual OneOf for proto3 optional field
|
7119
6712
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_relativeDemand", {
|
7120
6713
|
get: $util.oneOfGetter($oneOfFields = ["relativeDemand"]),
|
7121
6714
|
set: $util.oneOfSetter($oneOfFields)
|
7122
6715
|
});
|
7123
6716
|
|
7124
|
-
|
7125
|
-
* BestSellersProductClusterView _previousRelativeDemand.
|
7126
|
-
* @member {"previousRelativeDemand"|undefined} _previousRelativeDemand
|
7127
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7128
|
-
* @instance
|
7129
|
-
*/
|
6717
|
+
// Virtual OneOf for proto3 optional field
|
7130
6718
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_previousRelativeDemand", {
|
7131
6719
|
get: $util.oneOfGetter($oneOfFields = ["previousRelativeDemand"]),
|
7132
6720
|
set: $util.oneOfSetter($oneOfFields)
|
7133
6721
|
});
|
7134
6722
|
|
7135
|
-
|
7136
|
-
* BestSellersProductClusterView _relativeDemandChange.
|
7137
|
-
* @member {"relativeDemandChange"|undefined} _relativeDemandChange
|
7138
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersProductClusterView
|
7139
|
-
* @instance
|
7140
|
-
*/
|
6723
|
+
// Virtual OneOf for proto3 optional field
|
7141
6724
|
Object.defineProperty(BestSellersProductClusterView.prototype, "_relativeDemandChange", {
|
7142
6725
|
get: $util.oneOfGetter($oneOfFields = ["relativeDemandChange"]),
|
7143
6726
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -8009,100 +7592,55 @@
|
|
8009
7592
|
// OneOf field names bound to virtual getters and setters
|
8010
7593
|
var $oneOfFields;
|
8011
7594
|
|
8012
|
-
|
8013
|
-
* BestSellersBrandView _reportGranularity.
|
8014
|
-
* @member {"reportGranularity"|undefined} _reportGranularity
|
8015
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8016
|
-
* @instance
|
8017
|
-
*/
|
7595
|
+
// Virtual OneOf for proto3 optional field
|
8018
7596
|
Object.defineProperty(BestSellersBrandView.prototype, "_reportGranularity", {
|
8019
7597
|
get: $util.oneOfGetter($oneOfFields = ["reportGranularity"]),
|
8020
7598
|
set: $util.oneOfSetter($oneOfFields)
|
8021
7599
|
});
|
8022
7600
|
|
8023
|
-
|
8024
|
-
* BestSellersBrandView _reportCountryCode.
|
8025
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
8026
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8027
|
-
* @instance
|
8028
|
-
*/
|
7601
|
+
// Virtual OneOf for proto3 optional field
|
8029
7602
|
Object.defineProperty(BestSellersBrandView.prototype, "_reportCountryCode", {
|
8030
7603
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
8031
7604
|
set: $util.oneOfSetter($oneOfFields)
|
8032
7605
|
});
|
8033
7606
|
|
8034
|
-
|
8035
|
-
* BestSellersBrandView _reportCategoryId.
|
8036
|
-
* @member {"reportCategoryId"|undefined} _reportCategoryId
|
8037
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8038
|
-
* @instance
|
8039
|
-
*/
|
7607
|
+
// Virtual OneOf for proto3 optional field
|
8040
7608
|
Object.defineProperty(BestSellersBrandView.prototype, "_reportCategoryId", {
|
8041
7609
|
get: $util.oneOfGetter($oneOfFields = ["reportCategoryId"]),
|
8042
7610
|
set: $util.oneOfSetter($oneOfFields)
|
8043
7611
|
});
|
8044
7612
|
|
8045
|
-
|
8046
|
-
* BestSellersBrandView _brand.
|
8047
|
-
* @member {"brand"|undefined} _brand
|
8048
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8049
|
-
* @instance
|
8050
|
-
*/
|
7613
|
+
// Virtual OneOf for proto3 optional field
|
8051
7614
|
Object.defineProperty(BestSellersBrandView.prototype, "_brand", {
|
8052
7615
|
get: $util.oneOfGetter($oneOfFields = ["brand"]),
|
8053
7616
|
set: $util.oneOfSetter($oneOfFields)
|
8054
7617
|
});
|
8055
7618
|
|
8056
|
-
|
8057
|
-
* BestSellersBrandView _rank.
|
8058
|
-
* @member {"rank"|undefined} _rank
|
8059
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8060
|
-
* @instance
|
8061
|
-
*/
|
7619
|
+
// Virtual OneOf for proto3 optional field
|
8062
7620
|
Object.defineProperty(BestSellersBrandView.prototype, "_rank", {
|
8063
7621
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
8064
7622
|
set: $util.oneOfSetter($oneOfFields)
|
8065
7623
|
});
|
8066
7624
|
|
8067
|
-
|
8068
|
-
* BestSellersBrandView _previousRank.
|
8069
|
-
* @member {"previousRank"|undefined} _previousRank
|
8070
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8071
|
-
* @instance
|
8072
|
-
*/
|
7625
|
+
// Virtual OneOf for proto3 optional field
|
8073
7626
|
Object.defineProperty(BestSellersBrandView.prototype, "_previousRank", {
|
8074
7627
|
get: $util.oneOfGetter($oneOfFields = ["previousRank"]),
|
8075
7628
|
set: $util.oneOfSetter($oneOfFields)
|
8076
7629
|
});
|
8077
7630
|
|
8078
|
-
|
8079
|
-
* BestSellersBrandView _relativeDemand.
|
8080
|
-
* @member {"relativeDemand"|undefined} _relativeDemand
|
8081
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8082
|
-
* @instance
|
8083
|
-
*/
|
7631
|
+
// Virtual OneOf for proto3 optional field
|
8084
7632
|
Object.defineProperty(BestSellersBrandView.prototype, "_relativeDemand", {
|
8085
7633
|
get: $util.oneOfGetter($oneOfFields = ["relativeDemand"]),
|
8086
7634
|
set: $util.oneOfSetter($oneOfFields)
|
8087
7635
|
});
|
8088
7636
|
|
8089
|
-
|
8090
|
-
* BestSellersBrandView _previousRelativeDemand.
|
8091
|
-
* @member {"previousRelativeDemand"|undefined} _previousRelativeDemand
|
8092
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8093
|
-
* @instance
|
8094
|
-
*/
|
7637
|
+
// Virtual OneOf for proto3 optional field
|
8095
7638
|
Object.defineProperty(BestSellersBrandView.prototype, "_previousRelativeDemand", {
|
8096
7639
|
get: $util.oneOfGetter($oneOfFields = ["previousRelativeDemand"]),
|
8097
7640
|
set: $util.oneOfSetter($oneOfFields)
|
8098
7641
|
});
|
8099
7642
|
|
8100
|
-
|
8101
|
-
* BestSellersBrandView _relativeDemandChange.
|
8102
|
-
* @member {"relativeDemandChange"|undefined} _relativeDemandChange
|
8103
|
-
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8104
|
-
* @instance
|
8105
|
-
*/
|
7643
|
+
// Virtual OneOf for proto3 optional field
|
8106
7644
|
Object.defineProperty(BestSellersBrandView.prototype, "_relativeDemandChange", {
|
8107
7645
|
get: $util.oneOfGetter($oneOfFields = ["relativeDemandChange"]),
|
8108
7646
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -8478,134 +8016,494 @@
|
|
8478
8016
|
message.previousRelativeDemand = 50;
|
8479
8017
|
break;
|
8480
8018
|
}
|
8481
|
-
switch (object.relativeDemandChange) {
|
8482
|
-
default:
|
8483
|
-
if (typeof object.relativeDemandChange === "number") {
|
8484
|
-
message.relativeDemandChange = object.relativeDemandChange;
|
8485
|
-
break;
|
8486
|
-
}
|
8487
|
-
break;
|
8488
|
-
case "RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED":
|
8489
|
-
case 0:
|
8490
|
-
message.relativeDemandChange = 0;
|
8491
|
-
break;
|
8492
|
-
case "SINKER":
|
8493
|
-
case 1:
|
8494
|
-
message.relativeDemandChange = 1;
|
8495
|
-
break;
|
8496
|
-
case "FLAT":
|
8497
|
-
case 2:
|
8498
|
-
message.relativeDemandChange = 2;
|
8499
|
-
break;
|
8500
|
-
case "RISER":
|
8501
|
-
case 3:
|
8502
|
-
message.relativeDemandChange = 3;
|
8503
|
-
break;
|
8019
|
+
switch (object.relativeDemandChange) {
|
8020
|
+
default:
|
8021
|
+
if (typeof object.relativeDemandChange === "number") {
|
8022
|
+
message.relativeDemandChange = object.relativeDemandChange;
|
8023
|
+
break;
|
8024
|
+
}
|
8025
|
+
break;
|
8026
|
+
case "RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED":
|
8027
|
+
case 0:
|
8028
|
+
message.relativeDemandChange = 0;
|
8029
|
+
break;
|
8030
|
+
case "SINKER":
|
8031
|
+
case 1:
|
8032
|
+
message.relativeDemandChange = 1;
|
8033
|
+
break;
|
8034
|
+
case "FLAT":
|
8035
|
+
case 2:
|
8036
|
+
message.relativeDemandChange = 2;
|
8037
|
+
break;
|
8038
|
+
case "RISER":
|
8039
|
+
case 3:
|
8040
|
+
message.relativeDemandChange = 3;
|
8041
|
+
break;
|
8042
|
+
}
|
8043
|
+
return message;
|
8044
|
+
};
|
8045
|
+
|
8046
|
+
/**
|
8047
|
+
* Creates a plain object from a BestSellersBrandView message. Also converts values to other types if specified.
|
8048
|
+
* @function toObject
|
8049
|
+
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8050
|
+
* @static
|
8051
|
+
* @param {google.shopping.merchant.reports.v1beta.BestSellersBrandView} message BestSellersBrandView
|
8052
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
8053
|
+
* @returns {Object.<string,*>} Plain object
|
8054
|
+
*/
|
8055
|
+
BestSellersBrandView.toObject = function toObject(message, options) {
|
8056
|
+
if (!options)
|
8057
|
+
options = {};
|
8058
|
+
var object = {};
|
8059
|
+
if (options.defaults)
|
8060
|
+
object.reportDate = null;
|
8061
|
+
if (message.reportDate != null && message.hasOwnProperty("reportDate"))
|
8062
|
+
object.reportDate = $root.google.type.Date.toObject(message.reportDate, options);
|
8063
|
+
if (message.reportGranularity != null && message.hasOwnProperty("reportGranularity")) {
|
8064
|
+
object.reportGranularity = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum[message.reportGranularity] === undefined ? message.reportGranularity : $root.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum[message.reportGranularity] : message.reportGranularity;
|
8065
|
+
if (options.oneofs)
|
8066
|
+
object._reportGranularity = "reportGranularity";
|
8067
|
+
}
|
8068
|
+
if (message.reportCountryCode != null && message.hasOwnProperty("reportCountryCode")) {
|
8069
|
+
object.reportCountryCode = message.reportCountryCode;
|
8070
|
+
if (options.oneofs)
|
8071
|
+
object._reportCountryCode = "reportCountryCode";
|
8072
|
+
}
|
8073
|
+
if (message.reportCategoryId != null && message.hasOwnProperty("reportCategoryId")) {
|
8074
|
+
if (typeof message.reportCategoryId === "number")
|
8075
|
+
object.reportCategoryId = options.longs === String ? String(message.reportCategoryId) : message.reportCategoryId;
|
8076
|
+
else
|
8077
|
+
object.reportCategoryId = options.longs === String ? $util.Long.prototype.toString.call(message.reportCategoryId) : options.longs === Number ? new $util.LongBits(message.reportCategoryId.low >>> 0, message.reportCategoryId.high >>> 0).toNumber() : message.reportCategoryId;
|
8078
|
+
if (options.oneofs)
|
8079
|
+
object._reportCategoryId = "reportCategoryId";
|
8080
|
+
}
|
8081
|
+
if (message.brand != null && message.hasOwnProperty("brand")) {
|
8082
|
+
object.brand = message.brand;
|
8083
|
+
if (options.oneofs)
|
8084
|
+
object._brand = "brand";
|
8085
|
+
}
|
8086
|
+
if (message.rank != null && message.hasOwnProperty("rank")) {
|
8087
|
+
if (typeof message.rank === "number")
|
8088
|
+
object.rank = options.longs === String ? String(message.rank) : message.rank;
|
8089
|
+
else
|
8090
|
+
object.rank = options.longs === String ? $util.Long.prototype.toString.call(message.rank) : options.longs === Number ? new $util.LongBits(message.rank.low >>> 0, message.rank.high >>> 0).toNumber() : message.rank;
|
8091
|
+
if (options.oneofs)
|
8092
|
+
object._rank = "rank";
|
8093
|
+
}
|
8094
|
+
if (message.previousRank != null && message.hasOwnProperty("previousRank")) {
|
8095
|
+
if (typeof message.previousRank === "number")
|
8096
|
+
object.previousRank = options.longs === String ? String(message.previousRank) : message.previousRank;
|
8097
|
+
else
|
8098
|
+
object.previousRank = options.longs === String ? $util.Long.prototype.toString.call(message.previousRank) : options.longs === Number ? new $util.LongBits(message.previousRank.low >>> 0, message.previousRank.high >>> 0).toNumber() : message.previousRank;
|
8099
|
+
if (options.oneofs)
|
8100
|
+
object._previousRank = "previousRank";
|
8101
|
+
}
|
8102
|
+
if (message.relativeDemand != null && message.hasOwnProperty("relativeDemand")) {
|
8103
|
+
object.relativeDemand = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.relativeDemand] === undefined ? message.relativeDemand : $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.relativeDemand] : message.relativeDemand;
|
8104
|
+
if (options.oneofs)
|
8105
|
+
object._relativeDemand = "relativeDemand";
|
8106
|
+
}
|
8107
|
+
if (message.previousRelativeDemand != null && message.hasOwnProperty("previousRelativeDemand")) {
|
8108
|
+
object.previousRelativeDemand = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.previousRelativeDemand] === undefined ? message.previousRelativeDemand : $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.previousRelativeDemand] : message.previousRelativeDemand;
|
8109
|
+
if (options.oneofs)
|
8110
|
+
object._previousRelativeDemand = "previousRelativeDemand";
|
8111
|
+
}
|
8112
|
+
if (message.relativeDemandChange != null && message.hasOwnProperty("relativeDemandChange")) {
|
8113
|
+
object.relativeDemandChange = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum[message.relativeDemandChange] === undefined ? message.relativeDemandChange : $root.google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum[message.relativeDemandChange] : message.relativeDemandChange;
|
8114
|
+
if (options.oneofs)
|
8115
|
+
object._relativeDemandChange = "relativeDemandChange";
|
8116
|
+
}
|
8117
|
+
return object;
|
8118
|
+
};
|
8119
|
+
|
8120
|
+
/**
|
8121
|
+
* Converts this BestSellersBrandView to JSON.
|
8122
|
+
* @function toJSON
|
8123
|
+
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8124
|
+
* @instance
|
8125
|
+
* @returns {Object.<string,*>} JSON object
|
8126
|
+
*/
|
8127
|
+
BestSellersBrandView.prototype.toJSON = function toJSON() {
|
8128
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
8129
|
+
};
|
8130
|
+
|
8131
|
+
/**
|
8132
|
+
* Gets the default type url for BestSellersBrandView
|
8133
|
+
* @function getTypeUrl
|
8134
|
+
* @memberof google.shopping.merchant.reports.v1beta.BestSellersBrandView
|
8135
|
+
* @static
|
8136
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
8137
|
+
* @returns {string} The default type url
|
8138
|
+
*/
|
8139
|
+
BestSellersBrandView.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
8140
|
+
if (typeUrlPrefix === undefined) {
|
8141
|
+
typeUrlPrefix = "type.googleapis.com";
|
8142
|
+
}
|
8143
|
+
return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.BestSellersBrandView";
|
8144
|
+
};
|
8145
|
+
|
8146
|
+
return BestSellersBrandView;
|
8147
|
+
})();
|
8148
|
+
|
8149
|
+
v1beta.NonProductPerformanceView = (function() {
|
8150
|
+
|
8151
|
+
/**
|
8152
|
+
* Properties of a NonProductPerformanceView.
|
8153
|
+
* @memberof google.shopping.merchant.reports.v1beta
|
8154
|
+
* @interface INonProductPerformanceView
|
8155
|
+
* @property {google.type.IDate|null} [date] NonProductPerformanceView date
|
8156
|
+
* @property {google.type.IDate|null} [week] NonProductPerformanceView week
|
8157
|
+
* @property {number|Long|null} [clicks] NonProductPerformanceView clicks
|
8158
|
+
* @property {number|Long|null} [impressions] NonProductPerformanceView impressions
|
8159
|
+
* @property {number|null} [clickThroughRate] NonProductPerformanceView clickThroughRate
|
8160
|
+
*/
|
8161
|
+
|
8162
|
+
/**
|
8163
|
+
* Constructs a new NonProductPerformanceView.
|
8164
|
+
* @memberof google.shopping.merchant.reports.v1beta
|
8165
|
+
* @classdesc Represents a NonProductPerformanceView.
|
8166
|
+
* @implements INonProductPerformanceView
|
8167
|
+
* @constructor
|
8168
|
+
* @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView=} [properties] Properties to set
|
8169
|
+
*/
|
8170
|
+
function NonProductPerformanceView(properties) {
|
8171
|
+
if (properties)
|
8172
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
8173
|
+
if (properties[keys[i]] != null)
|
8174
|
+
this[keys[i]] = properties[keys[i]];
|
8175
|
+
}
|
8176
|
+
|
8177
|
+
/**
|
8178
|
+
* NonProductPerformanceView date.
|
8179
|
+
* @member {google.type.IDate|null|undefined} date
|
8180
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8181
|
+
* @instance
|
8182
|
+
*/
|
8183
|
+
NonProductPerformanceView.prototype.date = null;
|
8184
|
+
|
8185
|
+
/**
|
8186
|
+
* NonProductPerformanceView week.
|
8187
|
+
* @member {google.type.IDate|null|undefined} week
|
8188
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8189
|
+
* @instance
|
8190
|
+
*/
|
8191
|
+
NonProductPerformanceView.prototype.week = null;
|
8192
|
+
|
8193
|
+
/**
|
8194
|
+
* NonProductPerformanceView clicks.
|
8195
|
+
* @member {number|Long|null|undefined} clicks
|
8196
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8197
|
+
* @instance
|
8198
|
+
*/
|
8199
|
+
NonProductPerformanceView.prototype.clicks = null;
|
8200
|
+
|
8201
|
+
/**
|
8202
|
+
* NonProductPerformanceView impressions.
|
8203
|
+
* @member {number|Long|null|undefined} impressions
|
8204
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8205
|
+
* @instance
|
8206
|
+
*/
|
8207
|
+
NonProductPerformanceView.prototype.impressions = null;
|
8208
|
+
|
8209
|
+
/**
|
8210
|
+
* NonProductPerformanceView clickThroughRate.
|
8211
|
+
* @member {number|null|undefined} clickThroughRate
|
8212
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8213
|
+
* @instance
|
8214
|
+
*/
|
8215
|
+
NonProductPerformanceView.prototype.clickThroughRate = null;
|
8216
|
+
|
8217
|
+
// OneOf field names bound to virtual getters and setters
|
8218
|
+
var $oneOfFields;
|
8219
|
+
|
8220
|
+
// Virtual OneOf for proto3 optional field
|
8221
|
+
Object.defineProperty(NonProductPerformanceView.prototype, "_clicks", {
|
8222
|
+
get: $util.oneOfGetter($oneOfFields = ["clicks"]),
|
8223
|
+
set: $util.oneOfSetter($oneOfFields)
|
8224
|
+
});
|
8225
|
+
|
8226
|
+
// Virtual OneOf for proto3 optional field
|
8227
|
+
Object.defineProperty(NonProductPerformanceView.prototype, "_impressions", {
|
8228
|
+
get: $util.oneOfGetter($oneOfFields = ["impressions"]),
|
8229
|
+
set: $util.oneOfSetter($oneOfFields)
|
8230
|
+
});
|
8231
|
+
|
8232
|
+
// Virtual OneOf for proto3 optional field
|
8233
|
+
Object.defineProperty(NonProductPerformanceView.prototype, "_clickThroughRate", {
|
8234
|
+
get: $util.oneOfGetter($oneOfFields = ["clickThroughRate"]),
|
8235
|
+
set: $util.oneOfSetter($oneOfFields)
|
8236
|
+
});
|
8237
|
+
|
8238
|
+
/**
|
8239
|
+
* Creates a new NonProductPerformanceView instance using the specified properties.
|
8240
|
+
* @function create
|
8241
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8242
|
+
* @static
|
8243
|
+
* @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView=} [properties] Properties to set
|
8244
|
+
* @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView instance
|
8245
|
+
*/
|
8246
|
+
NonProductPerformanceView.create = function create(properties) {
|
8247
|
+
return new NonProductPerformanceView(properties);
|
8248
|
+
};
|
8249
|
+
|
8250
|
+
/**
|
8251
|
+
* Encodes the specified NonProductPerformanceView message. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
|
8252
|
+
* @function encode
|
8253
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8254
|
+
* @static
|
8255
|
+
* @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView} message NonProductPerformanceView message or plain object to encode
|
8256
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
8257
|
+
* @returns {$protobuf.Writer} Writer
|
8258
|
+
*/
|
8259
|
+
NonProductPerformanceView.encode = function encode(message, writer) {
|
8260
|
+
if (!writer)
|
8261
|
+
writer = $Writer.create();
|
8262
|
+
if (message.date != null && Object.hasOwnProperty.call(message, "date"))
|
8263
|
+
$root.google.type.Date.encode(message.date, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
8264
|
+
if (message.week != null && Object.hasOwnProperty.call(message, "week"))
|
8265
|
+
$root.google.type.Date.encode(message.week, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
8266
|
+
if (message.clicks != null && Object.hasOwnProperty.call(message, "clicks"))
|
8267
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clicks);
|
8268
|
+
if (message.impressions != null && Object.hasOwnProperty.call(message, "impressions"))
|
8269
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.impressions);
|
8270
|
+
if (message.clickThroughRate != null && Object.hasOwnProperty.call(message, "clickThroughRate"))
|
8271
|
+
writer.uint32(/* id 5, wireType 1 =*/41).double(message.clickThroughRate);
|
8272
|
+
return writer;
|
8273
|
+
};
|
8274
|
+
|
8275
|
+
/**
|
8276
|
+
* Encodes the specified NonProductPerformanceView message, length delimited. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
|
8277
|
+
* @function encodeDelimited
|
8278
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8279
|
+
* @static
|
8280
|
+
* @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView} message NonProductPerformanceView message or plain object to encode
|
8281
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
8282
|
+
* @returns {$protobuf.Writer} Writer
|
8283
|
+
*/
|
8284
|
+
NonProductPerformanceView.encodeDelimited = function encodeDelimited(message, writer) {
|
8285
|
+
return this.encode(message, writer).ldelim();
|
8286
|
+
};
|
8287
|
+
|
8288
|
+
/**
|
8289
|
+
* Decodes a NonProductPerformanceView message from the specified reader or buffer.
|
8290
|
+
* @function decode
|
8291
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8292
|
+
* @static
|
8293
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
8294
|
+
* @param {number} [length] Message length if known beforehand
|
8295
|
+
* @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
|
8296
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
8297
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8298
|
+
*/
|
8299
|
+
NonProductPerformanceView.decode = function decode(reader, length) {
|
8300
|
+
if (!(reader instanceof $Reader))
|
8301
|
+
reader = $Reader.create(reader);
|
8302
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView();
|
8303
|
+
while (reader.pos < end) {
|
8304
|
+
var tag = reader.uint32();
|
8305
|
+
switch (tag >>> 3) {
|
8306
|
+
case 1: {
|
8307
|
+
message.date = $root.google.type.Date.decode(reader, reader.uint32());
|
8308
|
+
break;
|
8309
|
+
}
|
8310
|
+
case 2: {
|
8311
|
+
message.week = $root.google.type.Date.decode(reader, reader.uint32());
|
8312
|
+
break;
|
8313
|
+
}
|
8314
|
+
case 3: {
|
8315
|
+
message.clicks = reader.int64();
|
8316
|
+
break;
|
8317
|
+
}
|
8318
|
+
case 4: {
|
8319
|
+
message.impressions = reader.int64();
|
8320
|
+
break;
|
8321
|
+
}
|
8322
|
+
case 5: {
|
8323
|
+
message.clickThroughRate = reader.double();
|
8324
|
+
break;
|
8325
|
+
}
|
8326
|
+
default:
|
8327
|
+
reader.skipType(tag & 7);
|
8328
|
+
break;
|
8329
|
+
}
|
8330
|
+
}
|
8331
|
+
return message;
|
8332
|
+
};
|
8333
|
+
|
8334
|
+
/**
|
8335
|
+
* Decodes a NonProductPerformanceView message from the specified reader or buffer, length delimited.
|
8336
|
+
* @function decodeDelimited
|
8337
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8338
|
+
* @static
|
8339
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
8340
|
+
* @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
|
8341
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
8342
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8343
|
+
*/
|
8344
|
+
NonProductPerformanceView.decodeDelimited = function decodeDelimited(reader) {
|
8345
|
+
if (!(reader instanceof $Reader))
|
8346
|
+
reader = new $Reader(reader);
|
8347
|
+
return this.decode(reader, reader.uint32());
|
8348
|
+
};
|
8349
|
+
|
8350
|
+
/**
|
8351
|
+
* Verifies a NonProductPerformanceView message.
|
8352
|
+
* @function verify
|
8353
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8354
|
+
* @static
|
8355
|
+
* @param {Object.<string,*>} message Plain object to verify
|
8356
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
8357
|
+
*/
|
8358
|
+
NonProductPerformanceView.verify = function verify(message) {
|
8359
|
+
if (typeof message !== "object" || message === null)
|
8360
|
+
return "object expected";
|
8361
|
+
var properties = {};
|
8362
|
+
if (message.date != null && message.hasOwnProperty("date")) {
|
8363
|
+
var error = $root.google.type.Date.verify(message.date);
|
8364
|
+
if (error)
|
8365
|
+
return "date." + error;
|
8366
|
+
}
|
8367
|
+
if (message.week != null && message.hasOwnProperty("week")) {
|
8368
|
+
var error = $root.google.type.Date.verify(message.week);
|
8369
|
+
if (error)
|
8370
|
+
return "week." + error;
|
8371
|
+
}
|
8372
|
+
if (message.clicks != null && message.hasOwnProperty("clicks")) {
|
8373
|
+
properties._clicks = 1;
|
8374
|
+
if (!$util.isInteger(message.clicks) && !(message.clicks && $util.isInteger(message.clicks.low) && $util.isInteger(message.clicks.high)))
|
8375
|
+
return "clicks: integer|Long expected";
|
8376
|
+
}
|
8377
|
+
if (message.impressions != null && message.hasOwnProperty("impressions")) {
|
8378
|
+
properties._impressions = 1;
|
8379
|
+
if (!$util.isInteger(message.impressions) && !(message.impressions && $util.isInteger(message.impressions.low) && $util.isInteger(message.impressions.high)))
|
8380
|
+
return "impressions: integer|Long expected";
|
8381
|
+
}
|
8382
|
+
if (message.clickThroughRate != null && message.hasOwnProperty("clickThroughRate")) {
|
8383
|
+
properties._clickThroughRate = 1;
|
8384
|
+
if (typeof message.clickThroughRate !== "number")
|
8385
|
+
return "clickThroughRate: number expected";
|
8386
|
+
}
|
8387
|
+
return null;
|
8388
|
+
};
|
8389
|
+
|
8390
|
+
/**
|
8391
|
+
* Creates a NonProductPerformanceView message from a plain object. Also converts values to their respective internal types.
|
8392
|
+
* @function fromObject
|
8393
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8394
|
+
* @static
|
8395
|
+
* @param {Object.<string,*>} object Plain object
|
8396
|
+
* @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
|
8397
|
+
*/
|
8398
|
+
NonProductPerformanceView.fromObject = function fromObject(object) {
|
8399
|
+
if (object instanceof $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView)
|
8400
|
+
return object;
|
8401
|
+
var message = new $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView();
|
8402
|
+
if (object.date != null) {
|
8403
|
+
if (typeof object.date !== "object")
|
8404
|
+
throw TypeError(".google.shopping.merchant.reports.v1beta.NonProductPerformanceView.date: object expected");
|
8405
|
+
message.date = $root.google.type.Date.fromObject(object.date);
|
8406
|
+
}
|
8407
|
+
if (object.week != null) {
|
8408
|
+
if (typeof object.week !== "object")
|
8409
|
+
throw TypeError(".google.shopping.merchant.reports.v1beta.NonProductPerformanceView.week: object expected");
|
8410
|
+
message.week = $root.google.type.Date.fromObject(object.week);
|
8504
8411
|
}
|
8412
|
+
if (object.clicks != null)
|
8413
|
+
if ($util.Long)
|
8414
|
+
(message.clicks = $util.Long.fromValue(object.clicks)).unsigned = false;
|
8415
|
+
else if (typeof object.clicks === "string")
|
8416
|
+
message.clicks = parseInt(object.clicks, 10);
|
8417
|
+
else if (typeof object.clicks === "number")
|
8418
|
+
message.clicks = object.clicks;
|
8419
|
+
else if (typeof object.clicks === "object")
|
8420
|
+
message.clicks = new $util.LongBits(object.clicks.low >>> 0, object.clicks.high >>> 0).toNumber();
|
8421
|
+
if (object.impressions != null)
|
8422
|
+
if ($util.Long)
|
8423
|
+
(message.impressions = $util.Long.fromValue(object.impressions)).unsigned = false;
|
8424
|
+
else if (typeof object.impressions === "string")
|
8425
|
+
message.impressions = parseInt(object.impressions, 10);
|
8426
|
+
else if (typeof object.impressions === "number")
|
8427
|
+
message.impressions = object.impressions;
|
8428
|
+
else if (typeof object.impressions === "object")
|
8429
|
+
message.impressions = new $util.LongBits(object.impressions.low >>> 0, object.impressions.high >>> 0).toNumber();
|
8430
|
+
if (object.clickThroughRate != null)
|
8431
|
+
message.clickThroughRate = Number(object.clickThroughRate);
|
8505
8432
|
return message;
|
8506
8433
|
};
|
8507
8434
|
|
8508
8435
|
/**
|
8509
|
-
* Creates a plain object from a
|
8436
|
+
* Creates a plain object from a NonProductPerformanceView message. Also converts values to other types if specified.
|
8510
8437
|
* @function toObject
|
8511
|
-
* @memberof google.shopping.merchant.reports.v1beta.
|
8438
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8512
8439
|
* @static
|
8513
|
-
* @param {google.shopping.merchant.reports.v1beta.
|
8440
|
+
* @param {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} message NonProductPerformanceView
|
8514
8441
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
8515
8442
|
* @returns {Object.<string,*>} Plain object
|
8516
8443
|
*/
|
8517
|
-
|
8444
|
+
NonProductPerformanceView.toObject = function toObject(message, options) {
|
8518
8445
|
if (!options)
|
8519
8446
|
options = {};
|
8520
8447
|
var object = {};
|
8521
|
-
if (options.defaults)
|
8522
|
-
object.
|
8523
|
-
|
8524
|
-
object.reportDate = $root.google.type.Date.toObject(message.reportDate, options);
|
8525
|
-
if (message.reportGranularity != null && message.hasOwnProperty("reportGranularity")) {
|
8526
|
-
object.reportGranularity = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum[message.reportGranularity] === undefined ? message.reportGranularity : $root.google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum[message.reportGranularity] : message.reportGranularity;
|
8527
|
-
if (options.oneofs)
|
8528
|
-
object._reportGranularity = "reportGranularity";
|
8529
|
-
}
|
8530
|
-
if (message.reportCountryCode != null && message.hasOwnProperty("reportCountryCode")) {
|
8531
|
-
object.reportCountryCode = message.reportCountryCode;
|
8532
|
-
if (options.oneofs)
|
8533
|
-
object._reportCountryCode = "reportCountryCode";
|
8534
|
-
}
|
8535
|
-
if (message.reportCategoryId != null && message.hasOwnProperty("reportCategoryId")) {
|
8536
|
-
if (typeof message.reportCategoryId === "number")
|
8537
|
-
object.reportCategoryId = options.longs === String ? String(message.reportCategoryId) : message.reportCategoryId;
|
8538
|
-
else
|
8539
|
-
object.reportCategoryId = options.longs === String ? $util.Long.prototype.toString.call(message.reportCategoryId) : options.longs === Number ? new $util.LongBits(message.reportCategoryId.low >>> 0, message.reportCategoryId.high >>> 0).toNumber() : message.reportCategoryId;
|
8540
|
-
if (options.oneofs)
|
8541
|
-
object._reportCategoryId = "reportCategoryId";
|
8542
|
-
}
|
8543
|
-
if (message.brand != null && message.hasOwnProperty("brand")) {
|
8544
|
-
object.brand = message.brand;
|
8545
|
-
if (options.oneofs)
|
8546
|
-
object._brand = "brand";
|
8448
|
+
if (options.defaults) {
|
8449
|
+
object.date = null;
|
8450
|
+
object.week = null;
|
8547
8451
|
}
|
8548
|
-
if (message.
|
8549
|
-
|
8550
|
-
|
8452
|
+
if (message.date != null && message.hasOwnProperty("date"))
|
8453
|
+
object.date = $root.google.type.Date.toObject(message.date, options);
|
8454
|
+
if (message.week != null && message.hasOwnProperty("week"))
|
8455
|
+
object.week = $root.google.type.Date.toObject(message.week, options);
|
8456
|
+
if (message.clicks != null && message.hasOwnProperty("clicks")) {
|
8457
|
+
if (typeof message.clicks === "number")
|
8458
|
+
object.clicks = options.longs === String ? String(message.clicks) : message.clicks;
|
8551
8459
|
else
|
8552
|
-
object.
|
8460
|
+
object.clicks = options.longs === String ? $util.Long.prototype.toString.call(message.clicks) : options.longs === Number ? new $util.LongBits(message.clicks.low >>> 0, message.clicks.high >>> 0).toNumber() : message.clicks;
|
8553
8461
|
if (options.oneofs)
|
8554
|
-
object.
|
8462
|
+
object._clicks = "clicks";
|
8555
8463
|
}
|
8556
|
-
if (message.
|
8557
|
-
if (typeof message.
|
8558
|
-
object.
|
8464
|
+
if (message.impressions != null && message.hasOwnProperty("impressions")) {
|
8465
|
+
if (typeof message.impressions === "number")
|
8466
|
+
object.impressions = options.longs === String ? String(message.impressions) : message.impressions;
|
8559
8467
|
else
|
8560
|
-
object.
|
8561
|
-
if (options.oneofs)
|
8562
|
-
object._previousRank = "previousRank";
|
8563
|
-
}
|
8564
|
-
if (message.relativeDemand != null && message.hasOwnProperty("relativeDemand")) {
|
8565
|
-
object.relativeDemand = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.relativeDemand] === undefined ? message.relativeDemand : $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.relativeDemand] : message.relativeDemand;
|
8566
|
-
if (options.oneofs)
|
8567
|
-
object._relativeDemand = "relativeDemand";
|
8568
|
-
}
|
8569
|
-
if (message.previousRelativeDemand != null && message.hasOwnProperty("previousRelativeDemand")) {
|
8570
|
-
object.previousRelativeDemand = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.previousRelativeDemand] === undefined ? message.previousRelativeDemand : $root.google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum[message.previousRelativeDemand] : message.previousRelativeDemand;
|
8468
|
+
object.impressions = options.longs === String ? $util.Long.prototype.toString.call(message.impressions) : options.longs === Number ? new $util.LongBits(message.impressions.low >>> 0, message.impressions.high >>> 0).toNumber() : message.impressions;
|
8571
8469
|
if (options.oneofs)
|
8572
|
-
object.
|
8470
|
+
object._impressions = "impressions";
|
8573
8471
|
}
|
8574
|
-
if (message.
|
8575
|
-
object.
|
8472
|
+
if (message.clickThroughRate != null && message.hasOwnProperty("clickThroughRate")) {
|
8473
|
+
object.clickThroughRate = options.json && !isFinite(message.clickThroughRate) ? String(message.clickThroughRate) : message.clickThroughRate;
|
8576
8474
|
if (options.oneofs)
|
8577
|
-
object.
|
8475
|
+
object._clickThroughRate = "clickThroughRate";
|
8578
8476
|
}
|
8579
8477
|
return object;
|
8580
8478
|
};
|
8581
8479
|
|
8582
8480
|
/**
|
8583
|
-
* Converts this
|
8481
|
+
* Converts this NonProductPerformanceView to JSON.
|
8584
8482
|
* @function toJSON
|
8585
|
-
* @memberof google.shopping.merchant.reports.v1beta.
|
8483
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8586
8484
|
* @instance
|
8587
8485
|
* @returns {Object.<string,*>} JSON object
|
8588
8486
|
*/
|
8589
|
-
|
8487
|
+
NonProductPerformanceView.prototype.toJSON = function toJSON() {
|
8590
8488
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
8591
8489
|
};
|
8592
8490
|
|
8593
8491
|
/**
|
8594
|
-
* Gets the default type url for
|
8492
|
+
* Gets the default type url for NonProductPerformanceView
|
8595
8493
|
* @function getTypeUrl
|
8596
|
-
* @memberof google.shopping.merchant.reports.v1beta.
|
8494
|
+
* @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
|
8597
8495
|
* @static
|
8598
8496
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
8599
8497
|
* @returns {string} The default type url
|
8600
8498
|
*/
|
8601
|
-
|
8499
|
+
NonProductPerformanceView.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
8602
8500
|
if (typeUrlPrefix === undefined) {
|
8603
8501
|
typeUrlPrefix = "type.googleapis.com";
|
8604
8502
|
}
|
8605
|
-
return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.
|
8503
|
+
return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.NonProductPerformanceView";
|
8606
8504
|
};
|
8607
8505
|
|
8608
|
-
return
|
8506
|
+
return NonProductPerformanceView;
|
8609
8507
|
})();
|
8610
8508
|
|
8611
8509
|
v1beta.CompetitiveVisibilityCompetitorView = (function() {
|
@@ -8733,111 +8631,61 @@
|
|
8733
8631
|
// OneOf field names bound to virtual getters and setters
|
8734
8632
|
var $oneOfFields;
|
8735
8633
|
|
8736
|
-
|
8737
|
-
* CompetitiveVisibilityCompetitorView _domain.
|
8738
|
-
* @member {"domain"|undefined} _domain
|
8739
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8740
|
-
* @instance
|
8741
|
-
*/
|
8634
|
+
// Virtual OneOf for proto3 optional field
|
8742
8635
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_domain", {
|
8743
8636
|
get: $util.oneOfGetter($oneOfFields = ["domain"]),
|
8744
8637
|
set: $util.oneOfSetter($oneOfFields)
|
8745
8638
|
});
|
8746
8639
|
|
8747
|
-
|
8748
|
-
* CompetitiveVisibilityCompetitorView _isYourDomain.
|
8749
|
-
* @member {"isYourDomain"|undefined} _isYourDomain
|
8750
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8751
|
-
* @instance
|
8752
|
-
*/
|
8640
|
+
// Virtual OneOf for proto3 optional field
|
8753
8641
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_isYourDomain", {
|
8754
8642
|
get: $util.oneOfGetter($oneOfFields = ["isYourDomain"]),
|
8755
8643
|
set: $util.oneOfSetter($oneOfFields)
|
8756
8644
|
});
|
8757
8645
|
|
8758
|
-
|
8759
|
-
* CompetitiveVisibilityCompetitorView _reportCountryCode.
|
8760
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
8761
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8762
|
-
* @instance
|
8763
|
-
*/
|
8646
|
+
// Virtual OneOf for proto3 optional field
|
8764
8647
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_reportCountryCode", {
|
8765
8648
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
8766
8649
|
set: $util.oneOfSetter($oneOfFields)
|
8767
8650
|
});
|
8768
8651
|
|
8769
|
-
|
8770
|
-
* CompetitiveVisibilityCompetitorView _reportCategoryId.
|
8771
|
-
* @member {"reportCategoryId"|undefined} _reportCategoryId
|
8772
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8773
|
-
* @instance
|
8774
|
-
*/
|
8652
|
+
// Virtual OneOf for proto3 optional field
|
8775
8653
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_reportCategoryId", {
|
8776
8654
|
get: $util.oneOfGetter($oneOfFields = ["reportCategoryId"]),
|
8777
8655
|
set: $util.oneOfSetter($oneOfFields)
|
8778
8656
|
});
|
8779
8657
|
|
8780
|
-
|
8781
|
-
* CompetitiveVisibilityCompetitorView _trafficSource.
|
8782
|
-
* @member {"trafficSource"|undefined} _trafficSource
|
8783
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8784
|
-
* @instance
|
8785
|
-
*/
|
8658
|
+
// Virtual OneOf for proto3 optional field
|
8786
8659
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_trafficSource", {
|
8787
8660
|
get: $util.oneOfGetter($oneOfFields = ["trafficSource"]),
|
8788
8661
|
set: $util.oneOfSetter($oneOfFields)
|
8789
8662
|
});
|
8790
8663
|
|
8791
|
-
|
8792
|
-
* CompetitiveVisibilityCompetitorView _rank.
|
8793
|
-
* @member {"rank"|undefined} _rank
|
8794
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8795
|
-
* @instance
|
8796
|
-
*/
|
8664
|
+
// Virtual OneOf for proto3 optional field
|
8797
8665
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_rank", {
|
8798
8666
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
8799
8667
|
set: $util.oneOfSetter($oneOfFields)
|
8800
8668
|
});
|
8801
8669
|
|
8802
|
-
|
8803
|
-
* CompetitiveVisibilityCompetitorView _adsOrganicRatio.
|
8804
|
-
* @member {"adsOrganicRatio"|undefined} _adsOrganicRatio
|
8805
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8806
|
-
* @instance
|
8807
|
-
*/
|
8670
|
+
// Virtual OneOf for proto3 optional field
|
8808
8671
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_adsOrganicRatio", {
|
8809
8672
|
get: $util.oneOfGetter($oneOfFields = ["adsOrganicRatio"]),
|
8810
8673
|
set: $util.oneOfSetter($oneOfFields)
|
8811
8674
|
});
|
8812
8675
|
|
8813
|
-
|
8814
|
-
* CompetitiveVisibilityCompetitorView _pageOverlapRate.
|
8815
|
-
* @member {"pageOverlapRate"|undefined} _pageOverlapRate
|
8816
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8817
|
-
* @instance
|
8818
|
-
*/
|
8676
|
+
// Virtual OneOf for proto3 optional field
|
8819
8677
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_pageOverlapRate", {
|
8820
8678
|
get: $util.oneOfGetter($oneOfFields = ["pageOverlapRate"]),
|
8821
8679
|
set: $util.oneOfSetter($oneOfFields)
|
8822
8680
|
});
|
8823
8681
|
|
8824
|
-
|
8825
|
-
* CompetitiveVisibilityCompetitorView _higherPositionRate.
|
8826
|
-
* @member {"higherPositionRate"|undefined} _higherPositionRate
|
8827
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8828
|
-
* @instance
|
8829
|
-
*/
|
8682
|
+
// Virtual OneOf for proto3 optional field
|
8830
8683
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_higherPositionRate", {
|
8831
8684
|
get: $util.oneOfGetter($oneOfFields = ["higherPositionRate"]),
|
8832
8685
|
set: $util.oneOfSetter($oneOfFields)
|
8833
8686
|
});
|
8834
8687
|
|
8835
|
-
|
8836
|
-
* CompetitiveVisibilityCompetitorView _relativeVisibility.
|
8837
|
-
* @member {"relativeVisibility"|undefined} _relativeVisibility
|
8838
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView
|
8839
|
-
* @instance
|
8840
|
-
*/
|
8688
|
+
// Virtual OneOf for proto3 optional field
|
8841
8689
|
Object.defineProperty(CompetitiveVisibilityCompetitorView.prototype, "_relativeVisibility", {
|
8842
8690
|
get: $util.oneOfGetter($oneOfFields = ["relativeVisibility"]),
|
8843
8691
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -9365,100 +9213,55 @@
|
|
9365
9213
|
// OneOf field names bound to virtual getters and setters
|
9366
9214
|
var $oneOfFields;
|
9367
9215
|
|
9368
|
-
|
9369
|
-
* CompetitiveVisibilityTopMerchantView _domain.
|
9370
|
-
* @member {"domain"|undefined} _domain
|
9371
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9372
|
-
* @instance
|
9373
|
-
*/
|
9216
|
+
// Virtual OneOf for proto3 optional field
|
9374
9217
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_domain", {
|
9375
9218
|
get: $util.oneOfGetter($oneOfFields = ["domain"]),
|
9376
9219
|
set: $util.oneOfSetter($oneOfFields)
|
9377
9220
|
});
|
9378
9221
|
|
9379
|
-
|
9380
|
-
* CompetitiveVisibilityTopMerchantView _isYourDomain.
|
9381
|
-
* @member {"isYourDomain"|undefined} _isYourDomain
|
9382
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9383
|
-
* @instance
|
9384
|
-
*/
|
9222
|
+
// Virtual OneOf for proto3 optional field
|
9385
9223
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_isYourDomain", {
|
9386
9224
|
get: $util.oneOfGetter($oneOfFields = ["isYourDomain"]),
|
9387
9225
|
set: $util.oneOfSetter($oneOfFields)
|
9388
9226
|
});
|
9389
9227
|
|
9390
|
-
|
9391
|
-
* CompetitiveVisibilityTopMerchantView _reportCountryCode.
|
9392
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
9393
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9394
|
-
* @instance
|
9395
|
-
*/
|
9228
|
+
// Virtual OneOf for proto3 optional field
|
9396
9229
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_reportCountryCode", {
|
9397
9230
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
9398
9231
|
set: $util.oneOfSetter($oneOfFields)
|
9399
9232
|
});
|
9400
9233
|
|
9401
|
-
|
9402
|
-
* CompetitiveVisibilityTopMerchantView _reportCategoryId.
|
9403
|
-
* @member {"reportCategoryId"|undefined} _reportCategoryId
|
9404
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9405
|
-
* @instance
|
9406
|
-
*/
|
9234
|
+
// Virtual OneOf for proto3 optional field
|
9407
9235
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_reportCategoryId", {
|
9408
9236
|
get: $util.oneOfGetter($oneOfFields = ["reportCategoryId"]),
|
9409
9237
|
set: $util.oneOfSetter($oneOfFields)
|
9410
9238
|
});
|
9411
9239
|
|
9412
|
-
|
9413
|
-
* CompetitiveVisibilityTopMerchantView _trafficSource.
|
9414
|
-
* @member {"trafficSource"|undefined} _trafficSource
|
9415
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9416
|
-
* @instance
|
9417
|
-
*/
|
9240
|
+
// Virtual OneOf for proto3 optional field
|
9418
9241
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_trafficSource", {
|
9419
9242
|
get: $util.oneOfGetter($oneOfFields = ["trafficSource"]),
|
9420
9243
|
set: $util.oneOfSetter($oneOfFields)
|
9421
9244
|
});
|
9422
9245
|
|
9423
|
-
|
9424
|
-
* CompetitiveVisibilityTopMerchantView _rank.
|
9425
|
-
* @member {"rank"|undefined} _rank
|
9426
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9427
|
-
* @instance
|
9428
|
-
*/
|
9246
|
+
// Virtual OneOf for proto3 optional field
|
9429
9247
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_rank", {
|
9430
9248
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
9431
9249
|
set: $util.oneOfSetter($oneOfFields)
|
9432
9250
|
});
|
9433
9251
|
|
9434
|
-
|
9435
|
-
* CompetitiveVisibilityTopMerchantView _adsOrganicRatio.
|
9436
|
-
* @member {"adsOrganicRatio"|undefined} _adsOrganicRatio
|
9437
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9438
|
-
* @instance
|
9439
|
-
*/
|
9252
|
+
// Virtual OneOf for proto3 optional field
|
9440
9253
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_adsOrganicRatio", {
|
9441
9254
|
get: $util.oneOfGetter($oneOfFields = ["adsOrganicRatio"]),
|
9442
9255
|
set: $util.oneOfSetter($oneOfFields)
|
9443
9256
|
});
|
9444
9257
|
|
9445
|
-
|
9446
|
-
* CompetitiveVisibilityTopMerchantView _pageOverlapRate.
|
9447
|
-
* @member {"pageOverlapRate"|undefined} _pageOverlapRate
|
9448
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9449
|
-
* @instance
|
9450
|
-
*/
|
9258
|
+
// Virtual OneOf for proto3 optional field
|
9451
9259
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_pageOverlapRate", {
|
9452
9260
|
get: $util.oneOfGetter($oneOfFields = ["pageOverlapRate"]),
|
9453
9261
|
set: $util.oneOfSetter($oneOfFields)
|
9454
9262
|
});
|
9455
9263
|
|
9456
|
-
|
9457
|
-
* CompetitiveVisibilityTopMerchantView _higherPositionRate.
|
9458
|
-
* @member {"higherPositionRate"|undefined} _higherPositionRate
|
9459
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView
|
9460
|
-
* @instance
|
9461
|
-
*/
|
9264
|
+
// Virtual OneOf for proto3 optional field
|
9462
9265
|
Object.defineProperty(CompetitiveVisibilityTopMerchantView.prototype, "_higherPositionRate", {
|
9463
9266
|
get: $util.oneOfGetter($oneOfFields = ["higherPositionRate"]),
|
9464
9267
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -9932,56 +9735,31 @@
|
|
9932
9735
|
// OneOf field names bound to virtual getters and setters
|
9933
9736
|
var $oneOfFields;
|
9934
9737
|
|
9935
|
-
|
9936
|
-
* CompetitiveVisibilityBenchmarkView _reportCountryCode.
|
9937
|
-
* @member {"reportCountryCode"|undefined} _reportCountryCode
|
9938
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView
|
9939
|
-
* @instance
|
9940
|
-
*/
|
9738
|
+
// Virtual OneOf for proto3 optional field
|
9941
9739
|
Object.defineProperty(CompetitiveVisibilityBenchmarkView.prototype, "_reportCountryCode", {
|
9942
9740
|
get: $util.oneOfGetter($oneOfFields = ["reportCountryCode"]),
|
9943
9741
|
set: $util.oneOfSetter($oneOfFields)
|
9944
9742
|
});
|
9945
9743
|
|
9946
|
-
|
9947
|
-
* CompetitiveVisibilityBenchmarkView _reportCategoryId.
|
9948
|
-
* @member {"reportCategoryId"|undefined} _reportCategoryId
|
9949
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView
|
9950
|
-
* @instance
|
9951
|
-
*/
|
9744
|
+
// Virtual OneOf for proto3 optional field
|
9952
9745
|
Object.defineProperty(CompetitiveVisibilityBenchmarkView.prototype, "_reportCategoryId", {
|
9953
9746
|
get: $util.oneOfGetter($oneOfFields = ["reportCategoryId"]),
|
9954
9747
|
set: $util.oneOfSetter($oneOfFields)
|
9955
9748
|
});
|
9956
9749
|
|
9957
|
-
|
9958
|
-
* CompetitiveVisibilityBenchmarkView _trafficSource.
|
9959
|
-
* @member {"trafficSource"|undefined} _trafficSource
|
9960
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView
|
9961
|
-
* @instance
|
9962
|
-
*/
|
9750
|
+
// Virtual OneOf for proto3 optional field
|
9963
9751
|
Object.defineProperty(CompetitiveVisibilityBenchmarkView.prototype, "_trafficSource", {
|
9964
9752
|
get: $util.oneOfGetter($oneOfFields = ["trafficSource"]),
|
9965
9753
|
set: $util.oneOfSetter($oneOfFields)
|
9966
9754
|
});
|
9967
9755
|
|
9968
|
-
|
9969
|
-
* CompetitiveVisibilityBenchmarkView _yourDomainVisibilityTrend.
|
9970
|
-
* @member {"yourDomainVisibilityTrend"|undefined} _yourDomainVisibilityTrend
|
9971
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView
|
9972
|
-
* @instance
|
9973
|
-
*/
|
9756
|
+
// Virtual OneOf for proto3 optional field
|
9974
9757
|
Object.defineProperty(CompetitiveVisibilityBenchmarkView.prototype, "_yourDomainVisibilityTrend", {
|
9975
9758
|
get: $util.oneOfGetter($oneOfFields = ["yourDomainVisibilityTrend"]),
|
9976
9759
|
set: $util.oneOfSetter($oneOfFields)
|
9977
9760
|
});
|
9978
9761
|
|
9979
|
-
|
9980
|
-
* CompetitiveVisibilityBenchmarkView _categoryBenchmarkVisibilityTrend.
|
9981
|
-
* @member {"categoryBenchmarkVisibilityTrend"|undefined} _categoryBenchmarkVisibilityTrend
|
9982
|
-
* @memberof google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView
|
9983
|
-
* @instance
|
9984
|
-
*/
|
9762
|
+
// Virtual OneOf for proto3 optional field
|
9985
9763
|
Object.defineProperty(CompetitiveVisibilityBenchmarkView.prototype, "_categoryBenchmarkVisibilityTrend", {
|
9986
9764
|
get: $util.oneOfGetter($oneOfFields = ["categoryBenchmarkVisibilityTrend"]),
|
9987
9765
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -11320,12 +11098,7 @@
|
|
11320
11098
|
// OneOf field names bound to virtual getters and setters
|
11321
11099
|
var $oneOfFields;
|
11322
11100
|
|
11323
|
-
|
11324
|
-
* Weight _amountMicros.
|
11325
|
-
* @member {"amountMicros"|undefined} _amountMicros
|
11326
|
-
* @memberof google.shopping.type.Weight
|
11327
|
-
* @instance
|
11328
|
-
*/
|
11101
|
+
// Virtual OneOf for proto3 optional field
|
11329
11102
|
Object.defineProperty(Weight.prototype, "_amountMicros", {
|
11330
11103
|
get: $util.oneOfGetter($oneOfFields = ["amountMicros"]),
|
11331
11104
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -11615,23 +11388,13 @@
|
|
11615
11388
|
// OneOf field names bound to virtual getters and setters
|
11616
11389
|
var $oneOfFields;
|
11617
11390
|
|
11618
|
-
|
11619
|
-
* Price _amountMicros.
|
11620
|
-
* @member {"amountMicros"|undefined} _amountMicros
|
11621
|
-
* @memberof google.shopping.type.Price
|
11622
|
-
* @instance
|
11623
|
-
*/
|
11391
|
+
// Virtual OneOf for proto3 optional field
|
11624
11392
|
Object.defineProperty(Price.prototype, "_amountMicros", {
|
11625
11393
|
get: $util.oneOfGetter($oneOfFields = ["amountMicros"]),
|
11626
11394
|
set: $util.oneOfSetter($oneOfFields)
|
11627
11395
|
});
|
11628
11396
|
|
11629
|
-
|
11630
|
-
* Price _currencyCode.
|
11631
|
-
* @member {"currencyCode"|undefined} _currencyCode
|
11632
|
-
* @memberof google.shopping.type.Price
|
11633
|
-
* @instance
|
11634
|
-
*/
|
11397
|
+
// Virtual OneOf for proto3 optional field
|
11635
11398
|
Object.defineProperty(Price.prototype, "_currencyCode", {
|
11636
11399
|
get: $util.oneOfGetter($oneOfFields = ["currencyCode"]),
|
11637
11400
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -11894,23 +11657,13 @@
|
|
11894
11657
|
// OneOf field names bound to virtual getters and setters
|
11895
11658
|
var $oneOfFields;
|
11896
11659
|
|
11897
|
-
|
11898
|
-
* CustomAttribute _name.
|
11899
|
-
* @member {"name"|undefined} _name
|
11900
|
-
* @memberof google.shopping.type.CustomAttribute
|
11901
|
-
* @instance
|
11902
|
-
*/
|
11660
|
+
// Virtual OneOf for proto3 optional field
|
11903
11661
|
Object.defineProperty(CustomAttribute.prototype, "_name", {
|
11904
11662
|
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
11905
11663
|
set: $util.oneOfSetter($oneOfFields)
|
11906
11664
|
});
|
11907
11665
|
|
11908
|
-
|
11909
|
-
* CustomAttribute _value.
|
11910
|
-
* @member {"value"|undefined} _value
|
11911
|
-
* @memberof google.shopping.type.CustomAttribute
|
11912
|
-
* @instance
|
11913
|
-
*/
|
11666
|
+
// Virtual OneOf for proto3 optional field
|
11914
11667
|
Object.defineProperty(CustomAttribute.prototype, "_value", {
|
11915
11668
|
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
11916
11669
|
set: $util.oneOfSetter($oneOfFields)
|