protobuf-platform 1.2.43 → 1.2.44
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/cms/cms.proto +7 -4
- package/cms/cms_pb.js +188 -36
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -56,10 +56,13 @@ message PongResponse { string pong = 1; }
|
|
|
56
56
|
message PaginationRequest {
|
|
57
57
|
int32 limit = 1;
|
|
58
58
|
int32 offset = 2;
|
|
59
|
-
optional
|
|
60
|
-
optional
|
|
61
|
-
optional
|
|
62
|
-
optional
|
|
59
|
+
optional string order = 3;
|
|
60
|
+
optional int32 is_active = 4;
|
|
61
|
+
optional string geo = 5;
|
|
62
|
+
optional bool admin_side = 6;
|
|
63
|
+
optional string locale = 7;
|
|
64
|
+
optional string title = 8;
|
|
65
|
+
repeated string countries = 9;
|
|
63
66
|
}
|
|
64
67
|
//Media
|
|
65
68
|
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
package/cms/cms_pb.js
CHANGED
|
@@ -131,7 +131,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
131
131
|
* @constructor
|
|
132
132
|
*/
|
|
133
133
|
proto.cms.PaginationRequest = function(opt_data) {
|
|
134
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
134
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PaginationRequest.repeatedFields_, null);
|
|
135
135
|
};
|
|
136
136
|
goog.inherits(proto.cms.PaginationRequest, jspb.Message);
|
|
137
137
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1473,6 +1473,13 @@ proto.cms.PongResponse.prototype.setPong = function(value) {
|
|
|
1473
1473
|
|
|
1474
1474
|
|
|
1475
1475
|
|
|
1476
|
+
/**
|
|
1477
|
+
* List of repeated fields within this message type.
|
|
1478
|
+
* @private {!Array<number>}
|
|
1479
|
+
* @const
|
|
1480
|
+
*/
|
|
1481
|
+
proto.cms.PaginationRequest.repeatedFields_ = [9];
|
|
1482
|
+
|
|
1476
1483
|
|
|
1477
1484
|
|
|
1478
1485
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1506,10 +1513,13 @@ proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
|
1506
1513
|
var f, obj = {
|
|
1507
1514
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1508
1515
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1516
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1517
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1518
|
+
geo: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1519
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
1520
|
+
locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1521
|
+
title: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1522
|
+
countriesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f
|
|
1513
1523
|
};
|
|
1514
1524
|
|
|
1515
1525
|
if (includeInstance) {
|
|
@@ -1555,21 +1565,33 @@ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1555
1565
|
msg.setOffset(value);
|
|
1556
1566
|
break;
|
|
1557
1567
|
case 3:
|
|
1568
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1569
|
+
msg.setOrder(value);
|
|
1570
|
+
break;
|
|
1571
|
+
case 4:
|
|
1558
1572
|
var value = /** @type {number} */ (reader.readInt32());
|
|
1559
1573
|
msg.setIsActive(value);
|
|
1560
1574
|
break;
|
|
1561
|
-
case
|
|
1575
|
+
case 5:
|
|
1562
1576
|
var value = /** @type {string} */ (reader.readString());
|
|
1563
1577
|
msg.setGeo(value);
|
|
1564
1578
|
break;
|
|
1565
|
-
case
|
|
1579
|
+
case 6:
|
|
1566
1580
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1567
1581
|
msg.setAdminSide(value);
|
|
1568
1582
|
break;
|
|
1569
|
-
case
|
|
1583
|
+
case 7:
|
|
1570
1584
|
var value = /** @type {string} */ (reader.readString());
|
|
1571
1585
|
msg.setLocale(value);
|
|
1572
1586
|
break;
|
|
1587
|
+
case 8:
|
|
1588
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1589
|
+
msg.setTitle(value);
|
|
1590
|
+
break;
|
|
1591
|
+
case 9:
|
|
1592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1593
|
+
msg.addCountries(value);
|
|
1594
|
+
break;
|
|
1573
1595
|
default:
|
|
1574
1596
|
reader.skipField();
|
|
1575
1597
|
break;
|
|
@@ -1613,34 +1635,55 @@ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
1613
1635
|
f
|
|
1614
1636
|
);
|
|
1615
1637
|
}
|
|
1616
|
-
f = /** @type {
|
|
1638
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
1617
1639
|
if (f != null) {
|
|
1618
|
-
writer.
|
|
1640
|
+
writer.writeString(
|
|
1619
1641
|
3,
|
|
1620
1642
|
f
|
|
1621
1643
|
);
|
|
1622
1644
|
}
|
|
1623
|
-
f = /** @type {
|
|
1645
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
1624
1646
|
if (f != null) {
|
|
1625
|
-
writer.
|
|
1647
|
+
writer.writeInt32(
|
|
1626
1648
|
4,
|
|
1627
1649
|
f
|
|
1628
1650
|
);
|
|
1629
1651
|
}
|
|
1630
|
-
f = /** @type {
|
|
1652
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
1631
1653
|
if (f != null) {
|
|
1632
|
-
writer.
|
|
1654
|
+
writer.writeString(
|
|
1633
1655
|
5,
|
|
1634
1656
|
f
|
|
1635
1657
|
);
|
|
1636
1658
|
}
|
|
1637
|
-
f = /** @type {
|
|
1659
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
1638
1660
|
if (f != null) {
|
|
1639
|
-
writer.
|
|
1661
|
+
writer.writeBool(
|
|
1640
1662
|
6,
|
|
1641
1663
|
f
|
|
1642
1664
|
);
|
|
1643
1665
|
}
|
|
1666
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
1667
|
+
if (f != null) {
|
|
1668
|
+
writer.writeString(
|
|
1669
|
+
7,
|
|
1670
|
+
f
|
|
1671
|
+
);
|
|
1672
|
+
}
|
|
1673
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
1674
|
+
if (f != null) {
|
|
1675
|
+
writer.writeString(
|
|
1676
|
+
8,
|
|
1677
|
+
f
|
|
1678
|
+
);
|
|
1679
|
+
}
|
|
1680
|
+
f = message.getCountriesList();
|
|
1681
|
+
if (f.length > 0) {
|
|
1682
|
+
writer.writeRepeatedString(
|
|
1683
|
+
9,
|
|
1684
|
+
f
|
|
1685
|
+
);
|
|
1686
|
+
}
|
|
1644
1687
|
};
|
|
1645
1688
|
|
|
1646
1689
|
|
|
@@ -1681,11 +1724,47 @@ proto.cms.PaginationRequest.prototype.setOffset = function(value) {
|
|
|
1681
1724
|
|
|
1682
1725
|
|
|
1683
1726
|
/**
|
|
1684
|
-
* optional
|
|
1727
|
+
* optional string order = 3;
|
|
1728
|
+
* @return {string}
|
|
1729
|
+
*/
|
|
1730
|
+
proto.cms.PaginationRequest.prototype.getOrder = function() {
|
|
1731
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* @param {string} value
|
|
1737
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1738
|
+
*/
|
|
1739
|
+
proto.cms.PaginationRequest.prototype.setOrder = function(value) {
|
|
1740
|
+
return jspb.Message.setField(this, 3, value);
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Clears the field making it undefined.
|
|
1746
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1747
|
+
*/
|
|
1748
|
+
proto.cms.PaginationRequest.prototype.clearOrder = function() {
|
|
1749
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Returns whether this field is set.
|
|
1755
|
+
* @return {boolean}
|
|
1756
|
+
*/
|
|
1757
|
+
proto.cms.PaginationRequest.prototype.hasOrder = function() {
|
|
1758
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* optional int32 is_active = 4;
|
|
1685
1764
|
* @return {number}
|
|
1686
1765
|
*/
|
|
1687
1766
|
proto.cms.PaginationRequest.prototype.getIsActive = function() {
|
|
1688
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
1767
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1689
1768
|
};
|
|
1690
1769
|
|
|
1691
1770
|
|
|
@@ -1694,7 +1773,7 @@ proto.cms.PaginationRequest.prototype.getIsActive = function() {
|
|
|
1694
1773
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1695
1774
|
*/
|
|
1696
1775
|
proto.cms.PaginationRequest.prototype.setIsActive = function(value) {
|
|
1697
|
-
return jspb.Message.setField(this,
|
|
1776
|
+
return jspb.Message.setField(this, 4, value);
|
|
1698
1777
|
};
|
|
1699
1778
|
|
|
1700
1779
|
|
|
@@ -1703,7 +1782,7 @@ proto.cms.PaginationRequest.prototype.setIsActive = function(value) {
|
|
|
1703
1782
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1704
1783
|
*/
|
|
1705
1784
|
proto.cms.PaginationRequest.prototype.clearIsActive = function() {
|
|
1706
|
-
return jspb.Message.setField(this,
|
|
1785
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
1707
1786
|
};
|
|
1708
1787
|
|
|
1709
1788
|
|
|
@@ -1712,16 +1791,16 @@ proto.cms.PaginationRequest.prototype.clearIsActive = function() {
|
|
|
1712
1791
|
* @return {boolean}
|
|
1713
1792
|
*/
|
|
1714
1793
|
proto.cms.PaginationRequest.prototype.hasIsActive = function() {
|
|
1715
|
-
return jspb.Message.getField(this,
|
|
1794
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1716
1795
|
};
|
|
1717
1796
|
|
|
1718
1797
|
|
|
1719
1798
|
/**
|
|
1720
|
-
* optional string geo =
|
|
1799
|
+
* optional string geo = 5;
|
|
1721
1800
|
* @return {string}
|
|
1722
1801
|
*/
|
|
1723
1802
|
proto.cms.PaginationRequest.prototype.getGeo = function() {
|
|
1724
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1803
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1725
1804
|
};
|
|
1726
1805
|
|
|
1727
1806
|
|
|
@@ -1730,7 +1809,7 @@ proto.cms.PaginationRequest.prototype.getGeo = function() {
|
|
|
1730
1809
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1731
1810
|
*/
|
|
1732
1811
|
proto.cms.PaginationRequest.prototype.setGeo = function(value) {
|
|
1733
|
-
return jspb.Message.setField(this,
|
|
1812
|
+
return jspb.Message.setField(this, 5, value);
|
|
1734
1813
|
};
|
|
1735
1814
|
|
|
1736
1815
|
|
|
@@ -1739,7 +1818,7 @@ proto.cms.PaginationRequest.prototype.setGeo = function(value) {
|
|
|
1739
1818
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1740
1819
|
*/
|
|
1741
1820
|
proto.cms.PaginationRequest.prototype.clearGeo = function() {
|
|
1742
|
-
return jspb.Message.setField(this,
|
|
1821
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
1743
1822
|
};
|
|
1744
1823
|
|
|
1745
1824
|
|
|
@@ -1748,16 +1827,16 @@ proto.cms.PaginationRequest.prototype.clearGeo = function() {
|
|
|
1748
1827
|
* @return {boolean}
|
|
1749
1828
|
*/
|
|
1750
1829
|
proto.cms.PaginationRequest.prototype.hasGeo = function() {
|
|
1751
|
-
return jspb.Message.getField(this,
|
|
1830
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1752
1831
|
};
|
|
1753
1832
|
|
|
1754
1833
|
|
|
1755
1834
|
/**
|
|
1756
|
-
* optional bool admin_side =
|
|
1835
|
+
* optional bool admin_side = 6;
|
|
1757
1836
|
* @return {boolean}
|
|
1758
1837
|
*/
|
|
1759
1838
|
proto.cms.PaginationRequest.prototype.getAdminSide = function() {
|
|
1760
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
1839
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
1761
1840
|
};
|
|
1762
1841
|
|
|
1763
1842
|
|
|
@@ -1766,7 +1845,7 @@ proto.cms.PaginationRequest.prototype.getAdminSide = function() {
|
|
|
1766
1845
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1767
1846
|
*/
|
|
1768
1847
|
proto.cms.PaginationRequest.prototype.setAdminSide = function(value) {
|
|
1769
|
-
return jspb.Message.setField(this,
|
|
1848
|
+
return jspb.Message.setField(this, 6, value);
|
|
1770
1849
|
};
|
|
1771
1850
|
|
|
1772
1851
|
|
|
@@ -1775,7 +1854,7 @@ proto.cms.PaginationRequest.prototype.setAdminSide = function(value) {
|
|
|
1775
1854
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1776
1855
|
*/
|
|
1777
1856
|
proto.cms.PaginationRequest.prototype.clearAdminSide = function() {
|
|
1778
|
-
return jspb.Message.setField(this,
|
|
1857
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
1779
1858
|
};
|
|
1780
1859
|
|
|
1781
1860
|
|
|
@@ -1784,16 +1863,16 @@ proto.cms.PaginationRequest.prototype.clearAdminSide = function() {
|
|
|
1784
1863
|
* @return {boolean}
|
|
1785
1864
|
*/
|
|
1786
1865
|
proto.cms.PaginationRequest.prototype.hasAdminSide = function() {
|
|
1787
|
-
return jspb.Message.getField(this,
|
|
1866
|
+
return jspb.Message.getField(this, 6) != null;
|
|
1788
1867
|
};
|
|
1789
1868
|
|
|
1790
1869
|
|
|
1791
1870
|
/**
|
|
1792
|
-
* optional string locale =
|
|
1871
|
+
* optional string locale = 7;
|
|
1793
1872
|
* @return {string}
|
|
1794
1873
|
*/
|
|
1795
1874
|
proto.cms.PaginationRequest.prototype.getLocale = function() {
|
|
1796
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1875
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1797
1876
|
};
|
|
1798
1877
|
|
|
1799
1878
|
|
|
@@ -1802,7 +1881,7 @@ proto.cms.PaginationRequest.prototype.getLocale = function() {
|
|
|
1802
1881
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1803
1882
|
*/
|
|
1804
1883
|
proto.cms.PaginationRequest.prototype.setLocale = function(value) {
|
|
1805
|
-
return jspb.Message.setField(this,
|
|
1884
|
+
return jspb.Message.setField(this, 7, value);
|
|
1806
1885
|
};
|
|
1807
1886
|
|
|
1808
1887
|
|
|
@@ -1811,7 +1890,7 @@ proto.cms.PaginationRequest.prototype.setLocale = function(value) {
|
|
|
1811
1890
|
* @return {!proto.cms.PaginationRequest} returns this
|
|
1812
1891
|
*/
|
|
1813
1892
|
proto.cms.PaginationRequest.prototype.clearLocale = function() {
|
|
1814
|
-
return jspb.Message.setField(this,
|
|
1893
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
1815
1894
|
};
|
|
1816
1895
|
|
|
1817
1896
|
|
|
@@ -1820,7 +1899,80 @@ proto.cms.PaginationRequest.prototype.clearLocale = function() {
|
|
|
1820
1899
|
* @return {boolean}
|
|
1821
1900
|
*/
|
|
1822
1901
|
proto.cms.PaginationRequest.prototype.hasLocale = function() {
|
|
1823
|
-
return jspb.Message.getField(this,
|
|
1902
|
+
return jspb.Message.getField(this, 7) != null;
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* optional string title = 8;
|
|
1908
|
+
* @return {string}
|
|
1909
|
+
*/
|
|
1910
|
+
proto.cms.PaginationRequest.prototype.getTitle = function() {
|
|
1911
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* @param {string} value
|
|
1917
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1918
|
+
*/
|
|
1919
|
+
proto.cms.PaginationRequest.prototype.setTitle = function(value) {
|
|
1920
|
+
return jspb.Message.setField(this, 8, value);
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Clears the field making it undefined.
|
|
1926
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1927
|
+
*/
|
|
1928
|
+
proto.cms.PaginationRequest.prototype.clearTitle = function() {
|
|
1929
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Returns whether this field is set.
|
|
1935
|
+
* @return {boolean}
|
|
1936
|
+
*/
|
|
1937
|
+
proto.cms.PaginationRequest.prototype.hasTitle = function() {
|
|
1938
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* repeated string countries = 9;
|
|
1944
|
+
* @return {!Array<string>}
|
|
1945
|
+
*/
|
|
1946
|
+
proto.cms.PaginationRequest.prototype.getCountriesList = function() {
|
|
1947
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* @param {!Array<string>} value
|
|
1953
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1954
|
+
*/
|
|
1955
|
+
proto.cms.PaginationRequest.prototype.setCountriesList = function(value) {
|
|
1956
|
+
return jspb.Message.setField(this, 9, value || []);
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* @param {string} value
|
|
1962
|
+
* @param {number=} opt_index
|
|
1963
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1964
|
+
*/
|
|
1965
|
+
proto.cms.PaginationRequest.prototype.addCountries = function(value, opt_index) {
|
|
1966
|
+
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Clears the list making it empty but non-null.
|
|
1972
|
+
* @return {!proto.cms.PaginationRequest} returns this
|
|
1973
|
+
*/
|
|
1974
|
+
proto.cms.PaginationRequest.prototype.clearCountriesList = function() {
|
|
1975
|
+
return this.setCountriesList([]);
|
|
1824
1976
|
};
|
|
1825
1977
|
|
|
1826
1978
|
|