@vocdoni/proto 1.14.4 → 1.14.7
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/.github/workflows/post-merge.yml +1 -1
- package/dist/client-store/index.d.ts +2 -2
- package/dist/client-store/index.js +182 -132
- package/dist/client-store/index.mjs +182 -132
- package/dist/{entity-35513b52.d.ts → entity-e8dfcd83.d.ts} +1 -1
- package/dist/{index-7dfc19fc.d.ts → index-05df597a.d.ts} +1 -1
- package/dist/{index-45e93762.d.ts → index-d457aeb5.d.ts} +2 -2
- package/dist/{index-8a98085c.d.ts → index-fe26a63a.d.ts} +4250 -2546
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1817 -1160
- package/dist/index.mjs +1817 -1160
- package/dist/metadata/index.d.ts +2 -2
- package/dist/metadata/index.js +463 -325
- package/dist/metadata/index.mjs +463 -325
- package/dist/vochain/index.d.ts +1 -1
- package/dist/vochain/index.js +1181 -710
- package/dist/vochain/index.mjs +1179 -710
- package/package.json +2 -2
- package/src/vochain/vochain.proto +27 -9
package/dist/metadata/index.mjs
CHANGED
|
@@ -1433,13 +1433,13 @@ var EntityMetadataStore = {
|
|
|
1433
1433
|
const tag = reader.uint32();
|
|
1434
1434
|
switch (tag >>> 3) {
|
|
1435
1435
|
case 1:
|
|
1436
|
-
if (tag
|
|
1436
|
+
if (tag !== 10) {
|
|
1437
1437
|
break;
|
|
1438
1438
|
}
|
|
1439
1439
|
message.items.push(EntityMetadata.decode(reader, reader.uint32()));
|
|
1440
1440
|
continue;
|
|
1441
1441
|
}
|
|
1442
|
-
if ((tag & 7)
|
|
1442
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1443
1443
|
break;
|
|
1444
1444
|
}
|
|
1445
1445
|
reader.skipType(tag & 7);
|
|
@@ -1451,10 +1451,8 @@ var EntityMetadataStore = {
|
|
|
1451
1451
|
},
|
|
1452
1452
|
toJSON(message) {
|
|
1453
1453
|
const obj = {};
|
|
1454
|
-
if (message.items) {
|
|
1455
|
-
obj.items = message.items.map((e) =>
|
|
1456
|
-
} else {
|
|
1457
|
-
obj.items = [];
|
|
1454
|
+
if (message.items?.length) {
|
|
1455
|
+
obj.items = message.items.map((e) => EntityMetadata.toJSON(e));
|
|
1458
1456
|
}
|
|
1459
1457
|
return obj;
|
|
1460
1458
|
},
|
|
@@ -1535,19 +1533,19 @@ var EntityMetadata = {
|
|
|
1535
1533
|
const tag = reader.uint32();
|
|
1536
1534
|
switch (tag >>> 3) {
|
|
1537
1535
|
case 1:
|
|
1538
|
-
if (tag
|
|
1536
|
+
if (tag !== 10) {
|
|
1539
1537
|
break;
|
|
1540
1538
|
}
|
|
1541
1539
|
message.version = reader.string();
|
|
1542
1540
|
continue;
|
|
1543
1541
|
case 2:
|
|
1544
|
-
if (tag
|
|
1542
|
+
if (tag !== 18) {
|
|
1545
1543
|
break;
|
|
1546
1544
|
}
|
|
1547
1545
|
message.languages.push(reader.string());
|
|
1548
1546
|
continue;
|
|
1549
1547
|
case 3:
|
|
1550
|
-
if (tag
|
|
1548
|
+
if (tag !== 26) {
|
|
1551
1549
|
break;
|
|
1552
1550
|
}
|
|
1553
1551
|
const entry3 = EntityMetadata_NameEntry.decode(reader, reader.uint32());
|
|
@@ -1556,7 +1554,7 @@ var EntityMetadata = {
|
|
|
1556
1554
|
}
|
|
1557
1555
|
continue;
|
|
1558
1556
|
case 4:
|
|
1559
|
-
if (tag
|
|
1557
|
+
if (tag !== 34) {
|
|
1560
1558
|
break;
|
|
1561
1559
|
}
|
|
1562
1560
|
const entry4 = EntityMetadata_DescriptionEntry.decode(reader, reader.uint32());
|
|
@@ -1565,13 +1563,13 @@ var EntityMetadata = {
|
|
|
1565
1563
|
}
|
|
1566
1564
|
continue;
|
|
1567
1565
|
case 5:
|
|
1568
|
-
if (tag
|
|
1566
|
+
if (tag !== 42) {
|
|
1569
1567
|
break;
|
|
1570
1568
|
}
|
|
1571
1569
|
message.votingProcesses = EntityMetadata_VotingProcesses.decode(reader, reader.uint32());
|
|
1572
1570
|
continue;
|
|
1573
1571
|
case 6:
|
|
1574
|
-
if (tag
|
|
1572
|
+
if (tag !== 50) {
|
|
1575
1573
|
break;
|
|
1576
1574
|
}
|
|
1577
1575
|
const entry6 = EntityMetadata_NewsFeedEntry.decode(reader, reader.uint32());
|
|
@@ -1580,43 +1578,43 @@ var EntityMetadata = {
|
|
|
1580
1578
|
}
|
|
1581
1579
|
continue;
|
|
1582
1580
|
case 7:
|
|
1583
|
-
if (tag
|
|
1581
|
+
if (tag !== 58) {
|
|
1584
1582
|
break;
|
|
1585
1583
|
}
|
|
1586
1584
|
message.media = EntityMetadata_Media.decode(reader, reader.uint32());
|
|
1587
1585
|
continue;
|
|
1588
1586
|
case 8:
|
|
1589
|
-
if (tag
|
|
1587
|
+
if (tag !== 66) {
|
|
1590
1588
|
break;
|
|
1591
1589
|
}
|
|
1592
1590
|
message.actions.push(EntityMetadata_Action.decode(reader, reader.uint32()));
|
|
1593
1591
|
continue;
|
|
1594
1592
|
case 9:
|
|
1595
|
-
if (tag
|
|
1593
|
+
if (tag !== 74) {
|
|
1596
1594
|
break;
|
|
1597
1595
|
}
|
|
1598
1596
|
message.bootEntities.push(EntityReference.decode(reader, reader.uint32()));
|
|
1599
1597
|
continue;
|
|
1600
1598
|
case 10:
|
|
1601
|
-
if (tag
|
|
1599
|
+
if (tag !== 82) {
|
|
1602
1600
|
break;
|
|
1603
1601
|
}
|
|
1604
1602
|
message.fallbackBootNodeEntities.push(EntityReference.decode(reader, reader.uint32()));
|
|
1605
1603
|
continue;
|
|
1606
1604
|
case 11:
|
|
1607
|
-
if (tag
|
|
1605
|
+
if (tag !== 90) {
|
|
1608
1606
|
break;
|
|
1609
1607
|
}
|
|
1610
1608
|
message.trustedEntities.push(EntityReference.decode(reader, reader.uint32()));
|
|
1611
1609
|
continue;
|
|
1612
1610
|
case 12:
|
|
1613
|
-
if (tag
|
|
1611
|
+
if (tag !== 98) {
|
|
1614
1612
|
break;
|
|
1615
1613
|
}
|
|
1616
1614
|
message.censusServiceManagedEntities.push(EntityReference.decode(reader, reader.uint32()));
|
|
1617
1615
|
continue;
|
|
1618
1616
|
case 100:
|
|
1619
|
-
if (tag
|
|
1617
|
+
if (tag !== 802) {
|
|
1620
1618
|
break;
|
|
1621
1619
|
}
|
|
1622
1620
|
const entry100 = EntityMetadata_MetaEntry.decode(reader, reader.uint32());
|
|
@@ -1625,7 +1623,7 @@ var EntityMetadata = {
|
|
|
1625
1623
|
}
|
|
1626
1624
|
continue;
|
|
1627
1625
|
}
|
|
1628
|
-
if ((tag & 7)
|
|
1626
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1629
1627
|
break;
|
|
1630
1628
|
}
|
|
1631
1629
|
reader.skipType(tag & 7);
|
|
@@ -1663,66 +1661,68 @@ var EntityMetadata = {
|
|
|
1663
1661
|
},
|
|
1664
1662
|
toJSON(message) {
|
|
1665
1663
|
const obj = {};
|
|
1666
|
-
message.version !==
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
obj.languages =
|
|
1664
|
+
if (message.version !== "") {
|
|
1665
|
+
obj.version = message.version;
|
|
1666
|
+
}
|
|
1667
|
+
if (message.languages?.length) {
|
|
1668
|
+
obj.languages = message.languages;
|
|
1671
1669
|
}
|
|
1672
|
-
obj.name = {};
|
|
1673
1670
|
if (message.name) {
|
|
1674
|
-
Object.entries(message.name)
|
|
1675
|
-
|
|
1676
|
-
|
|
1671
|
+
const entries = Object.entries(message.name);
|
|
1672
|
+
if (entries.length > 0) {
|
|
1673
|
+
obj.name = {};
|
|
1674
|
+
entries.forEach(([k, v]) => {
|
|
1675
|
+
obj.name[k] = v;
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1677
1678
|
}
|
|
1678
|
-
obj.description = {};
|
|
1679
1679
|
if (message.description) {
|
|
1680
|
-
Object.entries(message.description)
|
|
1681
|
-
|
|
1682
|
-
|
|
1680
|
+
const entries = Object.entries(message.description);
|
|
1681
|
+
if (entries.length > 0) {
|
|
1682
|
+
obj.description = {};
|
|
1683
|
+
entries.forEach(([k, v]) => {
|
|
1684
|
+
obj.description[k] = v;
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
if (message.votingProcesses !== void 0) {
|
|
1689
|
+
obj.votingProcesses = EntityMetadata_VotingProcesses.toJSON(message.votingProcesses);
|
|
1683
1690
|
}
|
|
1684
|
-
message.votingProcesses !== void 0 && (obj.votingProcesses = message.votingProcesses ? EntityMetadata_VotingProcesses.toJSON(message.votingProcesses) : void 0);
|
|
1685
|
-
obj.newsFeed = {};
|
|
1686
1691
|
if (message.newsFeed) {
|
|
1687
|
-
Object.entries(message.newsFeed)
|
|
1688
|
-
|
|
1689
|
-
|
|
1692
|
+
const entries = Object.entries(message.newsFeed);
|
|
1693
|
+
if (entries.length > 0) {
|
|
1694
|
+
obj.newsFeed = {};
|
|
1695
|
+
entries.forEach(([k, v]) => {
|
|
1696
|
+
obj.newsFeed[k] = v;
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1690
1699
|
}
|
|
1691
|
-
message.media !== void 0
|
|
1692
|
-
|
|
1693
|
-
obj.actions = message.actions.map((e) => e ? EntityMetadata_Action.toJSON(e) : void 0);
|
|
1694
|
-
} else {
|
|
1695
|
-
obj.actions = [];
|
|
1700
|
+
if (message.media !== void 0) {
|
|
1701
|
+
obj.media = EntityMetadata_Media.toJSON(message.media);
|
|
1696
1702
|
}
|
|
1697
|
-
if (message.
|
|
1698
|
-
obj.
|
|
1699
|
-
} else {
|
|
1700
|
-
obj.bootEntities = [];
|
|
1703
|
+
if (message.actions?.length) {
|
|
1704
|
+
obj.actions = message.actions.map((e) => EntityMetadata_Action.toJSON(e));
|
|
1701
1705
|
}
|
|
1702
|
-
if (message.
|
|
1703
|
-
obj.
|
|
1704
|
-
(e) => e ? EntityReference.toJSON(e) : void 0
|
|
1705
|
-
);
|
|
1706
|
-
} else {
|
|
1707
|
-
obj.fallbackBootNodeEntities = [];
|
|
1706
|
+
if (message.bootEntities?.length) {
|
|
1707
|
+
obj.bootEntities = message.bootEntities.map((e) => EntityReference.toJSON(e));
|
|
1708
1708
|
}
|
|
1709
|
-
if (message.
|
|
1710
|
-
obj.
|
|
1711
|
-
} else {
|
|
1712
|
-
obj.trustedEntities = [];
|
|
1709
|
+
if (message.fallbackBootNodeEntities?.length) {
|
|
1710
|
+
obj.fallbackBootNodeEntities = message.fallbackBootNodeEntities.map((e) => EntityReference.toJSON(e));
|
|
1713
1711
|
}
|
|
1714
|
-
if (message.
|
|
1715
|
-
obj.
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
obj.censusServiceManagedEntities = [];
|
|
1712
|
+
if (message.trustedEntities?.length) {
|
|
1713
|
+
obj.trustedEntities = message.trustedEntities.map((e) => EntityReference.toJSON(e));
|
|
1714
|
+
}
|
|
1715
|
+
if (message.censusServiceManagedEntities?.length) {
|
|
1716
|
+
obj.censusServiceManagedEntities = message.censusServiceManagedEntities.map((e) => EntityReference.toJSON(e));
|
|
1720
1717
|
}
|
|
1721
|
-
obj.meta = {};
|
|
1722
1718
|
if (message.meta) {
|
|
1723
|
-
Object.entries(message.meta)
|
|
1724
|
-
|
|
1725
|
-
|
|
1719
|
+
const entries = Object.entries(message.meta);
|
|
1720
|
+
if (entries.length > 0) {
|
|
1721
|
+
obj.meta = {};
|
|
1722
|
+
entries.forEach(([k, v]) => {
|
|
1723
|
+
obj.meta[k] = v;
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
1726
|
}
|
|
1727
1727
|
return obj;
|
|
1728
1728
|
},
|
|
@@ -1791,19 +1791,19 @@ var EntityMetadata_NameEntry = {
|
|
|
1791
1791
|
const tag = reader.uint32();
|
|
1792
1792
|
switch (tag >>> 3) {
|
|
1793
1793
|
case 1:
|
|
1794
|
-
if (tag
|
|
1794
|
+
if (tag !== 10) {
|
|
1795
1795
|
break;
|
|
1796
1796
|
}
|
|
1797
1797
|
message.key = reader.string();
|
|
1798
1798
|
continue;
|
|
1799
1799
|
case 2:
|
|
1800
|
-
if (tag
|
|
1800
|
+
if (tag !== 18) {
|
|
1801
1801
|
break;
|
|
1802
1802
|
}
|
|
1803
1803
|
message.value = reader.string();
|
|
1804
1804
|
continue;
|
|
1805
1805
|
}
|
|
1806
|
-
if ((tag & 7)
|
|
1806
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1807
1807
|
break;
|
|
1808
1808
|
}
|
|
1809
1809
|
reader.skipType(tag & 7);
|
|
@@ -1815,8 +1815,12 @@ var EntityMetadata_NameEntry = {
|
|
|
1815
1815
|
},
|
|
1816
1816
|
toJSON(message) {
|
|
1817
1817
|
const obj = {};
|
|
1818
|
-
message.key !==
|
|
1819
|
-
|
|
1818
|
+
if (message.key !== "") {
|
|
1819
|
+
obj.key = message.key;
|
|
1820
|
+
}
|
|
1821
|
+
if (message.value !== "") {
|
|
1822
|
+
obj.value = message.value;
|
|
1823
|
+
}
|
|
1820
1824
|
return obj;
|
|
1821
1825
|
},
|
|
1822
1826
|
create(base) {
|
|
@@ -1850,19 +1854,19 @@ var EntityMetadata_DescriptionEntry = {
|
|
|
1850
1854
|
const tag = reader.uint32();
|
|
1851
1855
|
switch (tag >>> 3) {
|
|
1852
1856
|
case 1:
|
|
1853
|
-
if (tag
|
|
1857
|
+
if (tag !== 10) {
|
|
1854
1858
|
break;
|
|
1855
1859
|
}
|
|
1856
1860
|
message.key = reader.string();
|
|
1857
1861
|
continue;
|
|
1858
1862
|
case 2:
|
|
1859
|
-
if (tag
|
|
1863
|
+
if (tag !== 18) {
|
|
1860
1864
|
break;
|
|
1861
1865
|
}
|
|
1862
1866
|
message.value = reader.string();
|
|
1863
1867
|
continue;
|
|
1864
1868
|
}
|
|
1865
|
-
if ((tag & 7)
|
|
1869
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1866
1870
|
break;
|
|
1867
1871
|
}
|
|
1868
1872
|
reader.skipType(tag & 7);
|
|
@@ -1874,8 +1878,12 @@ var EntityMetadata_DescriptionEntry = {
|
|
|
1874
1878
|
},
|
|
1875
1879
|
toJSON(message) {
|
|
1876
1880
|
const obj = {};
|
|
1877
|
-
message.key !==
|
|
1878
|
-
|
|
1881
|
+
if (message.key !== "") {
|
|
1882
|
+
obj.key = message.key;
|
|
1883
|
+
}
|
|
1884
|
+
if (message.value !== "") {
|
|
1885
|
+
obj.value = message.value;
|
|
1886
|
+
}
|
|
1879
1887
|
return obj;
|
|
1880
1888
|
},
|
|
1881
1889
|
create(base) {
|
|
@@ -1909,19 +1917,19 @@ var EntityMetadata_VotingProcesses = {
|
|
|
1909
1917
|
const tag = reader.uint32();
|
|
1910
1918
|
switch (tag >>> 3) {
|
|
1911
1919
|
case 1:
|
|
1912
|
-
if (tag
|
|
1920
|
+
if (tag !== 10) {
|
|
1913
1921
|
break;
|
|
1914
1922
|
}
|
|
1915
1923
|
message.active.push(reader.string());
|
|
1916
1924
|
continue;
|
|
1917
1925
|
case 2:
|
|
1918
|
-
if (tag
|
|
1926
|
+
if (tag !== 18) {
|
|
1919
1927
|
break;
|
|
1920
1928
|
}
|
|
1921
1929
|
message.ended.push(reader.string());
|
|
1922
1930
|
continue;
|
|
1923
1931
|
}
|
|
1924
|
-
if ((tag & 7)
|
|
1932
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1925
1933
|
break;
|
|
1926
1934
|
}
|
|
1927
1935
|
reader.skipType(tag & 7);
|
|
@@ -1936,15 +1944,11 @@ var EntityMetadata_VotingProcesses = {
|
|
|
1936
1944
|
},
|
|
1937
1945
|
toJSON(message) {
|
|
1938
1946
|
const obj = {};
|
|
1939
|
-
if (message.active) {
|
|
1940
|
-
obj.active = message.active
|
|
1941
|
-
} else {
|
|
1942
|
-
obj.active = [];
|
|
1947
|
+
if (message.active?.length) {
|
|
1948
|
+
obj.active = message.active;
|
|
1943
1949
|
}
|
|
1944
|
-
if (message.ended) {
|
|
1945
|
-
obj.ended = message.ended
|
|
1946
|
-
} else {
|
|
1947
|
-
obj.ended = [];
|
|
1950
|
+
if (message.ended?.length) {
|
|
1951
|
+
obj.ended = message.ended;
|
|
1948
1952
|
}
|
|
1949
1953
|
return obj;
|
|
1950
1954
|
},
|
|
@@ -1979,19 +1983,19 @@ var EntityMetadata_NewsFeedEntry = {
|
|
|
1979
1983
|
const tag = reader.uint32();
|
|
1980
1984
|
switch (tag >>> 3) {
|
|
1981
1985
|
case 1:
|
|
1982
|
-
if (tag
|
|
1986
|
+
if (tag !== 10) {
|
|
1983
1987
|
break;
|
|
1984
1988
|
}
|
|
1985
1989
|
message.key = reader.string();
|
|
1986
1990
|
continue;
|
|
1987
1991
|
case 2:
|
|
1988
|
-
if (tag
|
|
1992
|
+
if (tag !== 18) {
|
|
1989
1993
|
break;
|
|
1990
1994
|
}
|
|
1991
1995
|
message.value = reader.string();
|
|
1992
1996
|
continue;
|
|
1993
1997
|
}
|
|
1994
|
-
if ((tag & 7)
|
|
1998
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1995
1999
|
break;
|
|
1996
2000
|
}
|
|
1997
2001
|
reader.skipType(tag & 7);
|
|
@@ -2003,8 +2007,12 @@ var EntityMetadata_NewsFeedEntry = {
|
|
|
2003
2007
|
},
|
|
2004
2008
|
toJSON(message) {
|
|
2005
2009
|
const obj = {};
|
|
2006
|
-
message.key !==
|
|
2007
|
-
|
|
2010
|
+
if (message.key !== "") {
|
|
2011
|
+
obj.key = message.key;
|
|
2012
|
+
}
|
|
2013
|
+
if (message.value !== "") {
|
|
2014
|
+
obj.value = message.value;
|
|
2015
|
+
}
|
|
2008
2016
|
return obj;
|
|
2009
2017
|
},
|
|
2010
2018
|
create(base) {
|
|
@@ -2038,19 +2046,19 @@ var EntityMetadata_Media = {
|
|
|
2038
2046
|
const tag = reader.uint32();
|
|
2039
2047
|
switch (tag >>> 3) {
|
|
2040
2048
|
case 1:
|
|
2041
|
-
if (tag
|
|
2049
|
+
if (tag !== 10) {
|
|
2042
2050
|
break;
|
|
2043
2051
|
}
|
|
2044
2052
|
message.avatar = reader.string();
|
|
2045
2053
|
continue;
|
|
2046
2054
|
case 2:
|
|
2047
|
-
if (tag
|
|
2055
|
+
if (tag !== 18) {
|
|
2048
2056
|
break;
|
|
2049
2057
|
}
|
|
2050
2058
|
message.header = reader.string();
|
|
2051
2059
|
continue;
|
|
2052
2060
|
}
|
|
2053
|
-
if ((tag & 7)
|
|
2061
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2054
2062
|
break;
|
|
2055
2063
|
}
|
|
2056
2064
|
reader.skipType(tag & 7);
|
|
@@ -2065,8 +2073,12 @@ var EntityMetadata_Media = {
|
|
|
2065
2073
|
},
|
|
2066
2074
|
toJSON(message) {
|
|
2067
2075
|
const obj = {};
|
|
2068
|
-
message.avatar !==
|
|
2069
|
-
|
|
2076
|
+
if (message.avatar !== "") {
|
|
2077
|
+
obj.avatar = message.avatar;
|
|
2078
|
+
}
|
|
2079
|
+
if (message.header !== "") {
|
|
2080
|
+
obj.header = message.header;
|
|
2081
|
+
}
|
|
2070
2082
|
return obj;
|
|
2071
2083
|
},
|
|
2072
2084
|
create(base) {
|
|
@@ -2112,19 +2124,19 @@ var EntityMetadata_Action = {
|
|
|
2112
2124
|
const tag = reader.uint32();
|
|
2113
2125
|
switch (tag >>> 3) {
|
|
2114
2126
|
case 1:
|
|
2115
|
-
if (tag
|
|
2127
|
+
if (tag !== 10) {
|
|
2116
2128
|
break;
|
|
2117
2129
|
}
|
|
2118
2130
|
message.type = reader.string();
|
|
2119
2131
|
continue;
|
|
2120
2132
|
case 7:
|
|
2121
|
-
if (tag
|
|
2133
|
+
if (tag !== 58) {
|
|
2122
2134
|
break;
|
|
2123
2135
|
}
|
|
2124
2136
|
message.actionKey = reader.string();
|
|
2125
2137
|
continue;
|
|
2126
2138
|
case 2:
|
|
2127
|
-
if (tag
|
|
2139
|
+
if (tag !== 18) {
|
|
2128
2140
|
break;
|
|
2129
2141
|
}
|
|
2130
2142
|
const entry2 = EntityMetadata_Action_NameEntry.decode(reader, reader.uint32());
|
|
@@ -2133,25 +2145,25 @@ var EntityMetadata_Action = {
|
|
|
2133
2145
|
}
|
|
2134
2146
|
continue;
|
|
2135
2147
|
case 3:
|
|
2136
|
-
if (tag
|
|
2148
|
+
if (tag !== 26) {
|
|
2137
2149
|
break;
|
|
2138
2150
|
}
|
|
2139
2151
|
message.visible = reader.string();
|
|
2140
2152
|
continue;
|
|
2141
2153
|
case 4:
|
|
2142
|
-
if (tag
|
|
2154
|
+
if (tag !== 34) {
|
|
2143
2155
|
break;
|
|
2144
2156
|
}
|
|
2145
2157
|
message.url = reader.string();
|
|
2146
2158
|
continue;
|
|
2147
2159
|
case 5:
|
|
2148
|
-
if (tag
|
|
2160
|
+
if (tag !== 42) {
|
|
2149
2161
|
break;
|
|
2150
2162
|
}
|
|
2151
2163
|
message.imageSources.push(EntityMetadata_Action_ImageSource.decode(reader, reader.uint32()));
|
|
2152
2164
|
continue;
|
|
2153
2165
|
}
|
|
2154
|
-
if ((tag & 7)
|
|
2166
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2155
2167
|
break;
|
|
2156
2168
|
}
|
|
2157
2169
|
reader.skipType(tag & 7);
|
|
@@ -2173,20 +2185,29 @@ var EntityMetadata_Action = {
|
|
|
2173
2185
|
},
|
|
2174
2186
|
toJSON(message) {
|
|
2175
2187
|
const obj = {};
|
|
2176
|
-
message.type !==
|
|
2177
|
-
|
|
2178
|
-
|
|
2188
|
+
if (message.type !== "") {
|
|
2189
|
+
obj.type = message.type;
|
|
2190
|
+
}
|
|
2191
|
+
if (message.actionKey !== "") {
|
|
2192
|
+
obj.actionKey = message.actionKey;
|
|
2193
|
+
}
|
|
2179
2194
|
if (message.name) {
|
|
2180
|
-
Object.entries(message.name)
|
|
2181
|
-
|
|
2182
|
-
|
|
2195
|
+
const entries = Object.entries(message.name);
|
|
2196
|
+
if (entries.length > 0) {
|
|
2197
|
+
obj.name = {};
|
|
2198
|
+
entries.forEach(([k, v]) => {
|
|
2199
|
+
obj.name[k] = v;
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
if (message.visible !== "") {
|
|
2204
|
+
obj.visible = message.visible;
|
|
2205
|
+
}
|
|
2206
|
+
if (message.url !== "") {
|
|
2207
|
+
obj.url = message.url;
|
|
2183
2208
|
}
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
if (message.imageSources) {
|
|
2187
|
-
obj.imageSources = message.imageSources.map((e) => e ? EntityMetadata_Action_ImageSource.toJSON(e) : void 0);
|
|
2188
|
-
} else {
|
|
2189
|
-
obj.imageSources = [];
|
|
2209
|
+
if (message.imageSources?.length) {
|
|
2210
|
+
obj.imageSources = message.imageSources.map((e) => EntityMetadata_Action_ImageSource.toJSON(e));
|
|
2190
2211
|
}
|
|
2191
2212
|
return obj;
|
|
2192
2213
|
},
|
|
@@ -2230,19 +2251,19 @@ var EntityMetadata_Action_NameEntry = {
|
|
|
2230
2251
|
const tag = reader.uint32();
|
|
2231
2252
|
switch (tag >>> 3) {
|
|
2232
2253
|
case 1:
|
|
2233
|
-
if (tag
|
|
2254
|
+
if (tag !== 10) {
|
|
2234
2255
|
break;
|
|
2235
2256
|
}
|
|
2236
2257
|
message.key = reader.string();
|
|
2237
2258
|
continue;
|
|
2238
2259
|
case 2:
|
|
2239
|
-
if (tag
|
|
2260
|
+
if (tag !== 18) {
|
|
2240
2261
|
break;
|
|
2241
2262
|
}
|
|
2242
2263
|
message.value = reader.string();
|
|
2243
2264
|
continue;
|
|
2244
2265
|
}
|
|
2245
|
-
if ((tag & 7)
|
|
2266
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2246
2267
|
break;
|
|
2247
2268
|
}
|
|
2248
2269
|
reader.skipType(tag & 7);
|
|
@@ -2254,8 +2275,12 @@ var EntityMetadata_Action_NameEntry = {
|
|
|
2254
2275
|
},
|
|
2255
2276
|
toJSON(message) {
|
|
2256
2277
|
const obj = {};
|
|
2257
|
-
message.key !==
|
|
2258
|
-
|
|
2278
|
+
if (message.key !== "") {
|
|
2279
|
+
obj.key = message.key;
|
|
2280
|
+
}
|
|
2281
|
+
if (message.value !== "") {
|
|
2282
|
+
obj.value = message.value;
|
|
2283
|
+
}
|
|
2259
2284
|
return obj;
|
|
2260
2285
|
},
|
|
2261
2286
|
create(base) {
|
|
@@ -2298,31 +2323,31 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2298
2323
|
const tag = reader.uint32();
|
|
2299
2324
|
switch (tag >>> 3) {
|
|
2300
2325
|
case 1:
|
|
2301
|
-
if (tag
|
|
2326
|
+
if (tag !== 10) {
|
|
2302
2327
|
break;
|
|
2303
2328
|
}
|
|
2304
2329
|
message.type = reader.string();
|
|
2305
2330
|
continue;
|
|
2306
2331
|
case 2:
|
|
2307
|
-
if (tag
|
|
2332
|
+
if (tag !== 18) {
|
|
2308
2333
|
break;
|
|
2309
2334
|
}
|
|
2310
2335
|
message.name = reader.string();
|
|
2311
2336
|
continue;
|
|
2312
2337
|
case 3:
|
|
2313
|
-
if (tag
|
|
2338
|
+
if (tag !== 26) {
|
|
2314
2339
|
break;
|
|
2315
2340
|
}
|
|
2316
2341
|
message.orientation = reader.string();
|
|
2317
2342
|
continue;
|
|
2318
2343
|
case 4:
|
|
2319
|
-
if (tag
|
|
2344
|
+
if (tag !== 34) {
|
|
2320
2345
|
break;
|
|
2321
2346
|
}
|
|
2322
2347
|
message.overlay = reader.string();
|
|
2323
2348
|
continue;
|
|
2324
2349
|
case 5:
|
|
2325
|
-
if (tag
|
|
2350
|
+
if (tag !== 42) {
|
|
2326
2351
|
break;
|
|
2327
2352
|
}
|
|
2328
2353
|
const entry5 = EntityMetadata_Action_ImageSource_CaptionEntry.decode(reader, reader.uint32());
|
|
@@ -2331,7 +2356,7 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2331
2356
|
}
|
|
2332
2357
|
continue;
|
|
2333
2358
|
}
|
|
2334
|
-
if ((tag & 7)
|
|
2359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2335
2360
|
break;
|
|
2336
2361
|
}
|
|
2337
2362
|
reader.skipType(tag & 7);
|
|
@@ -2352,15 +2377,26 @@ var EntityMetadata_Action_ImageSource = {
|
|
|
2352
2377
|
},
|
|
2353
2378
|
toJSON(message) {
|
|
2354
2379
|
const obj = {};
|
|
2355
|
-
message.type !==
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
message.
|
|
2359
|
-
|
|
2380
|
+
if (message.type !== "") {
|
|
2381
|
+
obj.type = message.type;
|
|
2382
|
+
}
|
|
2383
|
+
if (message.name !== "") {
|
|
2384
|
+
obj.name = message.name;
|
|
2385
|
+
}
|
|
2386
|
+
if (message.orientation !== "") {
|
|
2387
|
+
obj.orientation = message.orientation;
|
|
2388
|
+
}
|
|
2389
|
+
if (message.overlay !== "") {
|
|
2390
|
+
obj.overlay = message.overlay;
|
|
2391
|
+
}
|
|
2360
2392
|
if (message.caption) {
|
|
2361
|
-
Object.entries(message.caption)
|
|
2362
|
-
|
|
2363
|
-
|
|
2393
|
+
const entries = Object.entries(message.caption);
|
|
2394
|
+
if (entries.length > 0) {
|
|
2395
|
+
obj.caption = {};
|
|
2396
|
+
entries.forEach(([k, v]) => {
|
|
2397
|
+
obj.caption[k] = v;
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2364
2400
|
}
|
|
2365
2401
|
return obj;
|
|
2366
2402
|
},
|
|
@@ -2403,19 +2439,19 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
|
|
|
2403
2439
|
const tag = reader.uint32();
|
|
2404
2440
|
switch (tag >>> 3) {
|
|
2405
2441
|
case 1:
|
|
2406
|
-
if (tag
|
|
2442
|
+
if (tag !== 10) {
|
|
2407
2443
|
break;
|
|
2408
2444
|
}
|
|
2409
2445
|
message.key = reader.string();
|
|
2410
2446
|
continue;
|
|
2411
2447
|
case 2:
|
|
2412
|
-
if (tag
|
|
2448
|
+
if (tag !== 18) {
|
|
2413
2449
|
break;
|
|
2414
2450
|
}
|
|
2415
2451
|
message.value = reader.string();
|
|
2416
2452
|
continue;
|
|
2417
2453
|
}
|
|
2418
|
-
if ((tag & 7)
|
|
2454
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2419
2455
|
break;
|
|
2420
2456
|
}
|
|
2421
2457
|
reader.skipType(tag & 7);
|
|
@@ -2427,8 +2463,12 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
|
|
|
2427
2463
|
},
|
|
2428
2464
|
toJSON(message) {
|
|
2429
2465
|
const obj = {};
|
|
2430
|
-
message.key !==
|
|
2431
|
-
|
|
2466
|
+
if (message.key !== "") {
|
|
2467
|
+
obj.key = message.key;
|
|
2468
|
+
}
|
|
2469
|
+
if (message.value !== "") {
|
|
2470
|
+
obj.value = message.value;
|
|
2471
|
+
}
|
|
2432
2472
|
return obj;
|
|
2433
2473
|
},
|
|
2434
2474
|
create(base) {
|
|
@@ -2462,19 +2502,19 @@ var EntityMetadata_MetaEntry = {
|
|
|
2462
2502
|
const tag = reader.uint32();
|
|
2463
2503
|
switch (tag >>> 3) {
|
|
2464
2504
|
case 1:
|
|
2465
|
-
if (tag
|
|
2505
|
+
if (tag !== 10) {
|
|
2466
2506
|
break;
|
|
2467
2507
|
}
|
|
2468
2508
|
message.key = reader.string();
|
|
2469
2509
|
continue;
|
|
2470
2510
|
case 2:
|
|
2471
|
-
if (tag
|
|
2511
|
+
if (tag !== 18) {
|
|
2472
2512
|
break;
|
|
2473
2513
|
}
|
|
2474
2514
|
message.value = reader.string();
|
|
2475
2515
|
continue;
|
|
2476
2516
|
}
|
|
2477
|
-
if ((tag & 7)
|
|
2517
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2478
2518
|
break;
|
|
2479
2519
|
}
|
|
2480
2520
|
reader.skipType(tag & 7);
|
|
@@ -2486,8 +2526,12 @@ var EntityMetadata_MetaEntry = {
|
|
|
2486
2526
|
},
|
|
2487
2527
|
toJSON(message) {
|
|
2488
2528
|
const obj = {};
|
|
2489
|
-
message.key !==
|
|
2490
|
-
|
|
2529
|
+
if (message.key !== "") {
|
|
2530
|
+
obj.key = message.key;
|
|
2531
|
+
}
|
|
2532
|
+
if (message.value !== "") {
|
|
2533
|
+
obj.value = message.value;
|
|
2534
|
+
}
|
|
2491
2535
|
return obj;
|
|
2492
2536
|
},
|
|
2493
2537
|
create(base) {
|
|
@@ -2521,19 +2565,19 @@ var EntityReference = {
|
|
|
2521
2565
|
const tag = reader.uint32();
|
|
2522
2566
|
switch (tag >>> 3) {
|
|
2523
2567
|
case 1:
|
|
2524
|
-
if (tag
|
|
2568
|
+
if (tag !== 10) {
|
|
2525
2569
|
break;
|
|
2526
2570
|
}
|
|
2527
2571
|
message.entityId = reader.string();
|
|
2528
2572
|
continue;
|
|
2529
2573
|
case 2:
|
|
2530
|
-
if (tag
|
|
2574
|
+
if (tag !== 18) {
|
|
2531
2575
|
break;
|
|
2532
2576
|
}
|
|
2533
2577
|
message.entryPoints.push(reader.string());
|
|
2534
2578
|
continue;
|
|
2535
2579
|
}
|
|
2536
|
-
if ((tag & 7)
|
|
2580
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2537
2581
|
break;
|
|
2538
2582
|
}
|
|
2539
2583
|
reader.skipType(tag & 7);
|
|
@@ -2548,11 +2592,11 @@ var EntityReference = {
|
|
|
2548
2592
|
},
|
|
2549
2593
|
toJSON(message) {
|
|
2550
2594
|
const obj = {};
|
|
2551
|
-
message.entityId !==
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
obj.entryPoints =
|
|
2595
|
+
if (message.entityId !== "") {
|
|
2596
|
+
obj.entityId = message.entityId;
|
|
2597
|
+
}
|
|
2598
|
+
if (message.entryPoints?.length) {
|
|
2599
|
+
obj.entryPoints = message.entryPoints;
|
|
2556
2600
|
}
|
|
2557
2601
|
return obj;
|
|
2558
2602
|
},
|
|
@@ -2593,13 +2637,13 @@ var FeedStore = {
|
|
|
2593
2637
|
const tag = reader.uint32();
|
|
2594
2638
|
switch (tag >>> 3) {
|
|
2595
2639
|
case 1:
|
|
2596
|
-
if (tag
|
|
2640
|
+
if (tag !== 10) {
|
|
2597
2641
|
break;
|
|
2598
2642
|
}
|
|
2599
2643
|
message.items.push(Feed.decode(reader, reader.uint32()));
|
|
2600
2644
|
continue;
|
|
2601
2645
|
}
|
|
2602
|
-
if ((tag & 7)
|
|
2646
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2603
2647
|
break;
|
|
2604
2648
|
}
|
|
2605
2649
|
reader.skipType(tag & 7);
|
|
@@ -2611,10 +2655,8 @@ var FeedStore = {
|
|
|
2611
2655
|
},
|
|
2612
2656
|
toJSON(message) {
|
|
2613
2657
|
const obj = {};
|
|
2614
|
-
if (message.items) {
|
|
2615
|
-
obj.items = message.items.map((e) =>
|
|
2616
|
-
} else {
|
|
2617
|
-
obj.items = [];
|
|
2658
|
+
if (message.items?.length) {
|
|
2659
|
+
obj.items = message.items.map((e) => Feed.toJSON(e));
|
|
2618
2660
|
}
|
|
2619
2661
|
return obj;
|
|
2620
2662
|
},
|
|
@@ -2683,61 +2725,61 @@ var Feed = {
|
|
|
2683
2725
|
const tag = reader.uint32();
|
|
2684
2726
|
switch (tag >>> 3) {
|
|
2685
2727
|
case 1:
|
|
2686
|
-
if (tag
|
|
2728
|
+
if (tag !== 10) {
|
|
2687
2729
|
break;
|
|
2688
2730
|
}
|
|
2689
2731
|
message.version = reader.string();
|
|
2690
2732
|
continue;
|
|
2691
2733
|
case 2:
|
|
2692
|
-
if (tag
|
|
2734
|
+
if (tag !== 18) {
|
|
2693
2735
|
break;
|
|
2694
2736
|
}
|
|
2695
2737
|
message.title = reader.string();
|
|
2696
2738
|
continue;
|
|
2697
2739
|
case 3:
|
|
2698
|
-
if (tag
|
|
2740
|
+
if (tag !== 26) {
|
|
2699
2741
|
break;
|
|
2700
2742
|
}
|
|
2701
2743
|
message.homePageUrl = reader.string();
|
|
2702
2744
|
continue;
|
|
2703
2745
|
case 4:
|
|
2704
|
-
if (tag
|
|
2746
|
+
if (tag !== 34) {
|
|
2705
2747
|
break;
|
|
2706
2748
|
}
|
|
2707
2749
|
message.description = reader.string();
|
|
2708
2750
|
continue;
|
|
2709
2751
|
case 5:
|
|
2710
|
-
if (tag
|
|
2752
|
+
if (tag !== 42) {
|
|
2711
2753
|
break;
|
|
2712
2754
|
}
|
|
2713
2755
|
message.feedUrl = reader.string();
|
|
2714
2756
|
continue;
|
|
2715
2757
|
case 6:
|
|
2716
|
-
if (tag
|
|
2758
|
+
if (tag !== 50) {
|
|
2717
2759
|
break;
|
|
2718
2760
|
}
|
|
2719
2761
|
message.icon = reader.string();
|
|
2720
2762
|
continue;
|
|
2721
2763
|
case 7:
|
|
2722
|
-
if (tag
|
|
2764
|
+
if (tag !== 58) {
|
|
2723
2765
|
break;
|
|
2724
2766
|
}
|
|
2725
2767
|
message.favicon = reader.string();
|
|
2726
2768
|
continue;
|
|
2727
2769
|
case 8:
|
|
2728
|
-
if (tag
|
|
2770
|
+
if (tag !== 64) {
|
|
2729
2771
|
break;
|
|
2730
2772
|
}
|
|
2731
2773
|
message.expired = reader.bool();
|
|
2732
2774
|
continue;
|
|
2733
2775
|
case 9:
|
|
2734
|
-
if (tag
|
|
2776
|
+
if (tag !== 74) {
|
|
2735
2777
|
break;
|
|
2736
2778
|
}
|
|
2737
2779
|
message.items.push(FeedPost.decode(reader, reader.uint32()));
|
|
2738
2780
|
continue;
|
|
2739
2781
|
case 100:
|
|
2740
|
-
if (tag
|
|
2782
|
+
if (tag !== 802) {
|
|
2741
2783
|
break;
|
|
2742
2784
|
}
|
|
2743
2785
|
const entry100 = Feed_MetaEntry.decode(reader, reader.uint32());
|
|
@@ -2746,7 +2788,7 @@ var Feed = {
|
|
|
2746
2788
|
}
|
|
2747
2789
|
continue;
|
|
2748
2790
|
}
|
|
2749
|
-
if ((tag & 7)
|
|
2791
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2750
2792
|
break;
|
|
2751
2793
|
}
|
|
2752
2794
|
reader.skipType(tag & 7);
|
|
@@ -2772,24 +2814,41 @@ var Feed = {
|
|
|
2772
2814
|
},
|
|
2773
2815
|
toJSON(message) {
|
|
2774
2816
|
const obj = {};
|
|
2775
|
-
message.version !==
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
message.
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
message.
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2817
|
+
if (message.version !== "") {
|
|
2818
|
+
obj.version = message.version;
|
|
2819
|
+
}
|
|
2820
|
+
if (message.title !== "") {
|
|
2821
|
+
obj.title = message.title;
|
|
2822
|
+
}
|
|
2823
|
+
if (message.homePageUrl !== "") {
|
|
2824
|
+
obj.homePageUrl = message.homePageUrl;
|
|
2825
|
+
}
|
|
2826
|
+
if (message.description !== "") {
|
|
2827
|
+
obj.description = message.description;
|
|
2828
|
+
}
|
|
2829
|
+
if (message.feedUrl !== "") {
|
|
2830
|
+
obj.feedUrl = message.feedUrl;
|
|
2831
|
+
}
|
|
2832
|
+
if (message.icon !== "") {
|
|
2833
|
+
obj.icon = message.icon;
|
|
2834
|
+
}
|
|
2835
|
+
if (message.favicon !== "") {
|
|
2836
|
+
obj.favicon = message.favicon;
|
|
2837
|
+
}
|
|
2838
|
+
if (message.expired === true) {
|
|
2839
|
+
obj.expired = message.expired;
|
|
2840
|
+
}
|
|
2841
|
+
if (message.items?.length) {
|
|
2842
|
+
obj.items = message.items.map((e) => FeedPost.toJSON(e));
|
|
2843
|
+
}
|
|
2789
2844
|
if (message.meta) {
|
|
2790
|
-
Object.entries(message.meta)
|
|
2791
|
-
|
|
2792
|
-
|
|
2845
|
+
const entries = Object.entries(message.meta);
|
|
2846
|
+
if (entries.length > 0) {
|
|
2847
|
+
obj.meta = {};
|
|
2848
|
+
entries.forEach(([k, v]) => {
|
|
2849
|
+
obj.meta[k] = v;
|
|
2850
|
+
});
|
|
2851
|
+
}
|
|
2793
2852
|
}
|
|
2794
2853
|
return obj;
|
|
2795
2854
|
},
|
|
@@ -2837,19 +2896,19 @@ var Feed_MetaEntry = {
|
|
|
2837
2896
|
const tag = reader.uint32();
|
|
2838
2897
|
switch (tag >>> 3) {
|
|
2839
2898
|
case 1:
|
|
2840
|
-
if (tag
|
|
2899
|
+
if (tag !== 10) {
|
|
2841
2900
|
break;
|
|
2842
2901
|
}
|
|
2843
2902
|
message.key = reader.string();
|
|
2844
2903
|
continue;
|
|
2845
2904
|
case 2:
|
|
2846
|
-
if (tag
|
|
2905
|
+
if (tag !== 18) {
|
|
2847
2906
|
break;
|
|
2848
2907
|
}
|
|
2849
2908
|
message.value = reader.string();
|
|
2850
2909
|
continue;
|
|
2851
2910
|
}
|
|
2852
|
-
if ((tag & 7)
|
|
2911
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2853
2912
|
break;
|
|
2854
2913
|
}
|
|
2855
2914
|
reader.skipType(tag & 7);
|
|
@@ -2861,8 +2920,12 @@ var Feed_MetaEntry = {
|
|
|
2861
2920
|
},
|
|
2862
2921
|
toJSON(message) {
|
|
2863
2922
|
const obj = {};
|
|
2864
|
-
message.key !==
|
|
2865
|
-
|
|
2923
|
+
if (message.key !== "") {
|
|
2924
|
+
obj.key = message.key;
|
|
2925
|
+
}
|
|
2926
|
+
if (message.value !== "") {
|
|
2927
|
+
obj.value = message.value;
|
|
2928
|
+
}
|
|
2866
2929
|
return obj;
|
|
2867
2930
|
},
|
|
2868
2931
|
create(base) {
|
|
@@ -2935,73 +2998,73 @@ var FeedPost = {
|
|
|
2935
2998
|
const tag = reader.uint32();
|
|
2936
2999
|
switch (tag >>> 3) {
|
|
2937
3000
|
case 1:
|
|
2938
|
-
if (tag
|
|
3001
|
+
if (tag !== 10) {
|
|
2939
3002
|
break;
|
|
2940
3003
|
}
|
|
2941
3004
|
message.id = reader.string();
|
|
2942
3005
|
continue;
|
|
2943
3006
|
case 2:
|
|
2944
|
-
if (tag
|
|
3007
|
+
if (tag !== 18) {
|
|
2945
3008
|
break;
|
|
2946
3009
|
}
|
|
2947
3010
|
message.title = reader.string();
|
|
2948
3011
|
continue;
|
|
2949
3012
|
case 3:
|
|
2950
|
-
if (tag
|
|
3013
|
+
if (tag !== 26) {
|
|
2951
3014
|
break;
|
|
2952
3015
|
}
|
|
2953
3016
|
message.summary = reader.string();
|
|
2954
3017
|
continue;
|
|
2955
3018
|
case 4:
|
|
2956
|
-
if (tag
|
|
3019
|
+
if (tag !== 34) {
|
|
2957
3020
|
break;
|
|
2958
3021
|
}
|
|
2959
3022
|
message.contentText = reader.string();
|
|
2960
3023
|
continue;
|
|
2961
3024
|
case 5:
|
|
2962
|
-
if (tag
|
|
3025
|
+
if (tag !== 42) {
|
|
2963
3026
|
break;
|
|
2964
3027
|
}
|
|
2965
3028
|
message.contentHtml = reader.string();
|
|
2966
3029
|
continue;
|
|
2967
3030
|
case 6:
|
|
2968
|
-
if (tag
|
|
3031
|
+
if (tag !== 50) {
|
|
2969
3032
|
break;
|
|
2970
3033
|
}
|
|
2971
3034
|
message.url = reader.string();
|
|
2972
3035
|
continue;
|
|
2973
3036
|
case 7:
|
|
2974
|
-
if (tag
|
|
3037
|
+
if (tag !== 58) {
|
|
2975
3038
|
break;
|
|
2976
3039
|
}
|
|
2977
3040
|
message.image = reader.string();
|
|
2978
3041
|
continue;
|
|
2979
3042
|
case 8:
|
|
2980
|
-
if (tag
|
|
3043
|
+
if (tag !== 66) {
|
|
2981
3044
|
break;
|
|
2982
3045
|
}
|
|
2983
3046
|
message.tags.push(reader.string());
|
|
2984
3047
|
continue;
|
|
2985
3048
|
case 9:
|
|
2986
|
-
if (tag
|
|
3049
|
+
if (tag !== 74) {
|
|
2987
3050
|
break;
|
|
2988
3051
|
}
|
|
2989
3052
|
message.datePublished = reader.string();
|
|
2990
3053
|
continue;
|
|
2991
3054
|
case 10:
|
|
2992
|
-
if (tag
|
|
3055
|
+
if (tag !== 82) {
|
|
2993
3056
|
break;
|
|
2994
3057
|
}
|
|
2995
3058
|
message.dateModified = reader.string();
|
|
2996
3059
|
continue;
|
|
2997
3060
|
case 11:
|
|
2998
|
-
if (tag
|
|
3061
|
+
if (tag !== 90) {
|
|
2999
3062
|
break;
|
|
3000
3063
|
}
|
|
3001
3064
|
message.author = FeedPost_Author.decode(reader, reader.uint32());
|
|
3002
3065
|
continue;
|
|
3003
3066
|
}
|
|
3004
|
-
if ((tag & 7)
|
|
3067
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3005
3068
|
break;
|
|
3006
3069
|
}
|
|
3007
3070
|
reader.skipType(tag & 7);
|
|
@@ -3025,21 +3088,39 @@ var FeedPost = {
|
|
|
3025
3088
|
},
|
|
3026
3089
|
toJSON(message) {
|
|
3027
3090
|
const obj = {};
|
|
3028
|
-
message.id !==
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
message.
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
message.
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
obj.
|
|
3039
|
-
}
|
|
3040
|
-
message.
|
|
3041
|
-
|
|
3042
|
-
|
|
3091
|
+
if (message.id !== "") {
|
|
3092
|
+
obj.id = message.id;
|
|
3093
|
+
}
|
|
3094
|
+
if (message.title !== "") {
|
|
3095
|
+
obj.title = message.title;
|
|
3096
|
+
}
|
|
3097
|
+
if (message.summary !== "") {
|
|
3098
|
+
obj.summary = message.summary;
|
|
3099
|
+
}
|
|
3100
|
+
if (message.contentText !== "") {
|
|
3101
|
+
obj.contentText = message.contentText;
|
|
3102
|
+
}
|
|
3103
|
+
if (message.contentHtml !== "") {
|
|
3104
|
+
obj.contentHtml = message.contentHtml;
|
|
3105
|
+
}
|
|
3106
|
+
if (message.url !== "") {
|
|
3107
|
+
obj.url = message.url;
|
|
3108
|
+
}
|
|
3109
|
+
if (message.image !== "") {
|
|
3110
|
+
obj.image = message.image;
|
|
3111
|
+
}
|
|
3112
|
+
if (message.tags?.length) {
|
|
3113
|
+
obj.tags = message.tags;
|
|
3114
|
+
}
|
|
3115
|
+
if (message.datePublished !== "") {
|
|
3116
|
+
obj.datePublished = message.datePublished;
|
|
3117
|
+
}
|
|
3118
|
+
if (message.dateModified !== "") {
|
|
3119
|
+
obj.dateModified = message.dateModified;
|
|
3120
|
+
}
|
|
3121
|
+
if (message.author !== void 0) {
|
|
3122
|
+
obj.author = FeedPost_Author.toJSON(message.author);
|
|
3123
|
+
}
|
|
3043
3124
|
return obj;
|
|
3044
3125
|
},
|
|
3045
3126
|
create(base) {
|
|
@@ -3082,19 +3163,19 @@ var FeedPost_Author = {
|
|
|
3082
3163
|
const tag = reader.uint32();
|
|
3083
3164
|
switch (tag >>> 3) {
|
|
3084
3165
|
case 1:
|
|
3085
|
-
if (tag
|
|
3166
|
+
if (tag !== 10) {
|
|
3086
3167
|
break;
|
|
3087
3168
|
}
|
|
3088
3169
|
message.name = reader.string();
|
|
3089
3170
|
continue;
|
|
3090
3171
|
case 2:
|
|
3091
|
-
if (tag
|
|
3172
|
+
if (tag !== 18) {
|
|
3092
3173
|
break;
|
|
3093
3174
|
}
|
|
3094
3175
|
message.url = reader.string();
|
|
3095
3176
|
continue;
|
|
3096
3177
|
}
|
|
3097
|
-
if ((tag & 7)
|
|
3178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3098
3179
|
break;
|
|
3099
3180
|
}
|
|
3100
3181
|
reader.skipType(tag & 7);
|
|
@@ -3106,8 +3187,12 @@ var FeedPost_Author = {
|
|
|
3106
3187
|
},
|
|
3107
3188
|
toJSON(message) {
|
|
3108
3189
|
const obj = {};
|
|
3109
|
-
message.name !==
|
|
3110
|
-
|
|
3190
|
+
if (message.name !== "") {
|
|
3191
|
+
obj.name = message.name;
|
|
3192
|
+
}
|
|
3193
|
+
if (message.url !== "") {
|
|
3194
|
+
obj.url = message.url;
|
|
3195
|
+
}
|
|
3111
3196
|
return obj;
|
|
3112
3197
|
},
|
|
3113
3198
|
create(base) {
|
|
@@ -3147,13 +3232,13 @@ var ProcessMetadataStore = {
|
|
|
3147
3232
|
const tag = reader.uint32();
|
|
3148
3233
|
switch (tag >>> 3) {
|
|
3149
3234
|
case 1:
|
|
3150
|
-
if (tag
|
|
3235
|
+
if (tag !== 10) {
|
|
3151
3236
|
break;
|
|
3152
3237
|
}
|
|
3153
3238
|
message.items.push(ProcessMetadata.decode(reader, reader.uint32()));
|
|
3154
3239
|
continue;
|
|
3155
3240
|
}
|
|
3156
|
-
if ((tag & 7)
|
|
3241
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3157
3242
|
break;
|
|
3158
3243
|
}
|
|
3159
3244
|
reader.skipType(tag & 7);
|
|
@@ -3165,10 +3250,8 @@ var ProcessMetadataStore = {
|
|
|
3165
3250
|
},
|
|
3166
3251
|
toJSON(message) {
|
|
3167
3252
|
const obj = {};
|
|
3168
|
-
if (message.items) {
|
|
3169
|
-
obj.items = message.items.map((e) =>
|
|
3170
|
-
} else {
|
|
3171
|
-
obj.items = [];
|
|
3253
|
+
if (message.items?.length) {
|
|
3254
|
+
obj.items = message.items.map((e) => ProcessMetadata.toJSON(e));
|
|
3172
3255
|
}
|
|
3173
3256
|
return obj;
|
|
3174
3257
|
},
|
|
@@ -3217,13 +3300,13 @@ var ProcessMetadata = {
|
|
|
3217
3300
|
const tag = reader.uint32();
|
|
3218
3301
|
switch (tag >>> 3) {
|
|
3219
3302
|
case 1:
|
|
3220
|
-
if (tag
|
|
3303
|
+
if (tag !== 10) {
|
|
3221
3304
|
break;
|
|
3222
3305
|
}
|
|
3223
3306
|
message.version = reader.string();
|
|
3224
3307
|
continue;
|
|
3225
3308
|
case 2:
|
|
3226
|
-
if (tag
|
|
3309
|
+
if (tag !== 18) {
|
|
3227
3310
|
break;
|
|
3228
3311
|
}
|
|
3229
3312
|
const entry2 = ProcessMetadata_TitleEntry.decode(reader, reader.uint32());
|
|
@@ -3232,7 +3315,7 @@ var ProcessMetadata = {
|
|
|
3232
3315
|
}
|
|
3233
3316
|
continue;
|
|
3234
3317
|
case 3:
|
|
3235
|
-
if (tag
|
|
3318
|
+
if (tag !== 26) {
|
|
3236
3319
|
break;
|
|
3237
3320
|
}
|
|
3238
3321
|
const entry3 = ProcessMetadata_DescriptionEntry.decode(reader, reader.uint32());
|
|
@@ -3241,7 +3324,7 @@ var ProcessMetadata = {
|
|
|
3241
3324
|
}
|
|
3242
3325
|
continue;
|
|
3243
3326
|
case 4:
|
|
3244
|
-
if (tag
|
|
3327
|
+
if (tag !== 34) {
|
|
3245
3328
|
break;
|
|
3246
3329
|
}
|
|
3247
3330
|
const entry4 = ProcessMetadata_MediaEntry.decode(reader, reader.uint32());
|
|
@@ -3250,19 +3333,19 @@ var ProcessMetadata = {
|
|
|
3250
3333
|
}
|
|
3251
3334
|
continue;
|
|
3252
3335
|
case 5:
|
|
3253
|
-
if (tag
|
|
3336
|
+
if (tag !== 42) {
|
|
3254
3337
|
break;
|
|
3255
3338
|
}
|
|
3256
3339
|
message.questions.push(ProcessMetadata_Question.decode(reader, reader.uint32()));
|
|
3257
3340
|
continue;
|
|
3258
3341
|
case 6:
|
|
3259
|
-
if (tag
|
|
3342
|
+
if (tag !== 50) {
|
|
3260
3343
|
break;
|
|
3261
3344
|
}
|
|
3262
3345
|
message.results = ProcessMetadata_Results.decode(reader, reader.uint32());
|
|
3263
3346
|
continue;
|
|
3264
3347
|
case 100:
|
|
3265
|
-
if (tag
|
|
3348
|
+
if (tag !== 802) {
|
|
3266
3349
|
break;
|
|
3267
3350
|
}
|
|
3268
3351
|
const entry100 = ProcessMetadata_MetaEntry.decode(reader, reader.uint32());
|
|
@@ -3271,7 +3354,7 @@ var ProcessMetadata = {
|
|
|
3271
3354
|
}
|
|
3272
3355
|
continue;
|
|
3273
3356
|
}
|
|
3274
|
-
if ((tag & 7)
|
|
3357
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3275
3358
|
break;
|
|
3276
3359
|
}
|
|
3277
3360
|
reader.skipType(tag & 7);
|
|
@@ -3303,36 +3386,50 @@ var ProcessMetadata = {
|
|
|
3303
3386
|
},
|
|
3304
3387
|
toJSON(message) {
|
|
3305
3388
|
const obj = {};
|
|
3306
|
-
message.version !==
|
|
3307
|
-
|
|
3389
|
+
if (message.version !== "") {
|
|
3390
|
+
obj.version = message.version;
|
|
3391
|
+
}
|
|
3308
3392
|
if (message.title) {
|
|
3309
|
-
Object.entries(message.title)
|
|
3310
|
-
|
|
3311
|
-
|
|
3393
|
+
const entries = Object.entries(message.title);
|
|
3394
|
+
if (entries.length > 0) {
|
|
3395
|
+
obj.title = {};
|
|
3396
|
+
entries.forEach(([k, v]) => {
|
|
3397
|
+
obj.title[k] = v;
|
|
3398
|
+
});
|
|
3399
|
+
}
|
|
3312
3400
|
}
|
|
3313
|
-
obj.description = {};
|
|
3314
3401
|
if (message.description) {
|
|
3315
|
-
Object.entries(message.description)
|
|
3316
|
-
|
|
3317
|
-
|
|
3402
|
+
const entries = Object.entries(message.description);
|
|
3403
|
+
if (entries.length > 0) {
|
|
3404
|
+
obj.description = {};
|
|
3405
|
+
entries.forEach(([k, v]) => {
|
|
3406
|
+
obj.description[k] = v;
|
|
3407
|
+
});
|
|
3408
|
+
}
|
|
3318
3409
|
}
|
|
3319
|
-
obj.media = {};
|
|
3320
3410
|
if (message.media) {
|
|
3321
|
-
Object.entries(message.media)
|
|
3322
|
-
|
|
3323
|
-
|
|
3411
|
+
const entries = Object.entries(message.media);
|
|
3412
|
+
if (entries.length > 0) {
|
|
3413
|
+
obj.media = {};
|
|
3414
|
+
entries.forEach(([k, v]) => {
|
|
3415
|
+
obj.media[k] = v;
|
|
3416
|
+
});
|
|
3417
|
+
}
|
|
3324
3418
|
}
|
|
3325
|
-
if (message.questions) {
|
|
3326
|
-
obj.questions = message.questions.map((e) =>
|
|
3327
|
-
}
|
|
3328
|
-
|
|
3419
|
+
if (message.questions?.length) {
|
|
3420
|
+
obj.questions = message.questions.map((e) => ProcessMetadata_Question.toJSON(e));
|
|
3421
|
+
}
|
|
3422
|
+
if (message.results !== void 0) {
|
|
3423
|
+
obj.results = ProcessMetadata_Results.toJSON(message.results);
|
|
3329
3424
|
}
|
|
3330
|
-
message.results !== void 0 && (obj.results = message.results ? ProcessMetadata_Results.toJSON(message.results) : void 0);
|
|
3331
|
-
obj.meta = {};
|
|
3332
3425
|
if (message.meta) {
|
|
3333
|
-
Object.entries(message.meta)
|
|
3334
|
-
|
|
3335
|
-
|
|
3426
|
+
const entries = Object.entries(message.meta);
|
|
3427
|
+
if (entries.length > 0) {
|
|
3428
|
+
obj.meta = {};
|
|
3429
|
+
entries.forEach(([k, v]) => {
|
|
3430
|
+
obj.meta[k] = v;
|
|
3431
|
+
});
|
|
3432
|
+
}
|
|
3336
3433
|
}
|
|
3337
3434
|
return obj;
|
|
3338
3435
|
},
|
|
@@ -3395,19 +3492,19 @@ var ProcessMetadata_TitleEntry = {
|
|
|
3395
3492
|
const tag = reader.uint32();
|
|
3396
3493
|
switch (tag >>> 3) {
|
|
3397
3494
|
case 1:
|
|
3398
|
-
if (tag
|
|
3495
|
+
if (tag !== 10) {
|
|
3399
3496
|
break;
|
|
3400
3497
|
}
|
|
3401
3498
|
message.key = reader.string();
|
|
3402
3499
|
continue;
|
|
3403
3500
|
case 2:
|
|
3404
|
-
if (tag
|
|
3501
|
+
if (tag !== 18) {
|
|
3405
3502
|
break;
|
|
3406
3503
|
}
|
|
3407
3504
|
message.value = reader.string();
|
|
3408
3505
|
continue;
|
|
3409
3506
|
}
|
|
3410
|
-
if ((tag & 7)
|
|
3507
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3411
3508
|
break;
|
|
3412
3509
|
}
|
|
3413
3510
|
reader.skipType(tag & 7);
|
|
@@ -3419,8 +3516,12 @@ var ProcessMetadata_TitleEntry = {
|
|
|
3419
3516
|
},
|
|
3420
3517
|
toJSON(message) {
|
|
3421
3518
|
const obj = {};
|
|
3422
|
-
message.key !==
|
|
3423
|
-
|
|
3519
|
+
if (message.key !== "") {
|
|
3520
|
+
obj.key = message.key;
|
|
3521
|
+
}
|
|
3522
|
+
if (message.value !== "") {
|
|
3523
|
+
obj.value = message.value;
|
|
3524
|
+
}
|
|
3424
3525
|
return obj;
|
|
3425
3526
|
},
|
|
3426
3527
|
create(base) {
|
|
@@ -3454,19 +3555,19 @@ var ProcessMetadata_DescriptionEntry = {
|
|
|
3454
3555
|
const tag = reader.uint32();
|
|
3455
3556
|
switch (tag >>> 3) {
|
|
3456
3557
|
case 1:
|
|
3457
|
-
if (tag
|
|
3558
|
+
if (tag !== 10) {
|
|
3458
3559
|
break;
|
|
3459
3560
|
}
|
|
3460
3561
|
message.key = reader.string();
|
|
3461
3562
|
continue;
|
|
3462
3563
|
case 2:
|
|
3463
|
-
if (tag
|
|
3564
|
+
if (tag !== 18) {
|
|
3464
3565
|
break;
|
|
3465
3566
|
}
|
|
3466
3567
|
message.value = reader.string();
|
|
3467
3568
|
continue;
|
|
3468
3569
|
}
|
|
3469
|
-
if ((tag & 7)
|
|
3570
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3470
3571
|
break;
|
|
3471
3572
|
}
|
|
3472
3573
|
reader.skipType(tag & 7);
|
|
@@ -3478,8 +3579,12 @@ var ProcessMetadata_DescriptionEntry = {
|
|
|
3478
3579
|
},
|
|
3479
3580
|
toJSON(message) {
|
|
3480
3581
|
const obj = {};
|
|
3481
|
-
message.key !==
|
|
3482
|
-
|
|
3582
|
+
if (message.key !== "") {
|
|
3583
|
+
obj.key = message.key;
|
|
3584
|
+
}
|
|
3585
|
+
if (message.value !== "") {
|
|
3586
|
+
obj.value = message.value;
|
|
3587
|
+
}
|
|
3483
3588
|
return obj;
|
|
3484
3589
|
},
|
|
3485
3590
|
create(base) {
|
|
@@ -3513,19 +3618,19 @@ var ProcessMetadata_MediaEntry = {
|
|
|
3513
3618
|
const tag = reader.uint32();
|
|
3514
3619
|
switch (tag >>> 3) {
|
|
3515
3620
|
case 1:
|
|
3516
|
-
if (tag
|
|
3621
|
+
if (tag !== 10) {
|
|
3517
3622
|
break;
|
|
3518
3623
|
}
|
|
3519
3624
|
message.key = reader.string();
|
|
3520
3625
|
continue;
|
|
3521
3626
|
case 2:
|
|
3522
|
-
if (tag
|
|
3627
|
+
if (tag !== 18) {
|
|
3523
3628
|
break;
|
|
3524
3629
|
}
|
|
3525
3630
|
message.value = reader.string();
|
|
3526
3631
|
continue;
|
|
3527
3632
|
}
|
|
3528
|
-
if ((tag & 7)
|
|
3633
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3529
3634
|
break;
|
|
3530
3635
|
}
|
|
3531
3636
|
reader.skipType(tag & 7);
|
|
@@ -3537,8 +3642,12 @@ var ProcessMetadata_MediaEntry = {
|
|
|
3537
3642
|
},
|
|
3538
3643
|
toJSON(message) {
|
|
3539
3644
|
const obj = {};
|
|
3540
|
-
message.key !==
|
|
3541
|
-
|
|
3645
|
+
if (message.key !== "") {
|
|
3646
|
+
obj.key = message.key;
|
|
3647
|
+
}
|
|
3648
|
+
if (message.value !== "") {
|
|
3649
|
+
obj.value = message.value;
|
|
3650
|
+
}
|
|
3542
3651
|
return obj;
|
|
3543
3652
|
},
|
|
3544
3653
|
create(base) {
|
|
@@ -3575,7 +3684,7 @@ var ProcessMetadata_Question = {
|
|
|
3575
3684
|
const tag = reader.uint32();
|
|
3576
3685
|
switch (tag >>> 3) {
|
|
3577
3686
|
case 1:
|
|
3578
|
-
if (tag
|
|
3687
|
+
if (tag !== 10) {
|
|
3579
3688
|
break;
|
|
3580
3689
|
}
|
|
3581
3690
|
const entry1 = ProcessMetadata_Question_TitleEntry.decode(reader, reader.uint32());
|
|
@@ -3584,7 +3693,7 @@ var ProcessMetadata_Question = {
|
|
|
3584
3693
|
}
|
|
3585
3694
|
continue;
|
|
3586
3695
|
case 2:
|
|
3587
|
-
if (tag
|
|
3696
|
+
if (tag !== 18) {
|
|
3588
3697
|
break;
|
|
3589
3698
|
}
|
|
3590
3699
|
const entry2 = ProcessMetadata_Question_DescriptionEntry.decode(reader, reader.uint32());
|
|
@@ -3593,13 +3702,13 @@ var ProcessMetadata_Question = {
|
|
|
3593
3702
|
}
|
|
3594
3703
|
continue;
|
|
3595
3704
|
case 3:
|
|
3596
|
-
if (tag
|
|
3705
|
+
if (tag !== 26) {
|
|
3597
3706
|
break;
|
|
3598
3707
|
}
|
|
3599
3708
|
message.choices.push(ProcessMetadata_Question_VoteOption.decode(reader, reader.uint32()));
|
|
3600
3709
|
continue;
|
|
3601
3710
|
}
|
|
3602
|
-
if ((tag & 7)
|
|
3711
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3603
3712
|
break;
|
|
3604
3713
|
}
|
|
3605
3714
|
reader.skipType(tag & 7);
|
|
@@ -3621,22 +3730,26 @@ var ProcessMetadata_Question = {
|
|
|
3621
3730
|
},
|
|
3622
3731
|
toJSON(message) {
|
|
3623
3732
|
const obj = {};
|
|
3624
|
-
obj.title = {};
|
|
3625
3733
|
if (message.title) {
|
|
3626
|
-
Object.entries(message.title)
|
|
3627
|
-
|
|
3628
|
-
|
|
3734
|
+
const entries = Object.entries(message.title);
|
|
3735
|
+
if (entries.length > 0) {
|
|
3736
|
+
obj.title = {};
|
|
3737
|
+
entries.forEach(([k, v]) => {
|
|
3738
|
+
obj.title[k] = v;
|
|
3739
|
+
});
|
|
3740
|
+
}
|
|
3629
3741
|
}
|
|
3630
|
-
obj.description = {};
|
|
3631
3742
|
if (message.description) {
|
|
3632
|
-
Object.entries(message.description)
|
|
3633
|
-
|
|
3634
|
-
|
|
3743
|
+
const entries = Object.entries(message.description);
|
|
3744
|
+
if (entries.length > 0) {
|
|
3745
|
+
obj.description = {};
|
|
3746
|
+
entries.forEach(([k, v]) => {
|
|
3747
|
+
obj.description[k] = v;
|
|
3748
|
+
});
|
|
3749
|
+
}
|
|
3635
3750
|
}
|
|
3636
|
-
if (message.choices) {
|
|
3637
|
-
obj.choices = message.choices.map((e) =>
|
|
3638
|
-
} else {
|
|
3639
|
-
obj.choices = [];
|
|
3751
|
+
if (message.choices?.length) {
|
|
3752
|
+
obj.choices = message.choices.map((e) => ProcessMetadata_Question_VoteOption.toJSON(e));
|
|
3640
3753
|
}
|
|
3641
3754
|
return obj;
|
|
3642
3755
|
},
|
|
@@ -3685,19 +3798,19 @@ var ProcessMetadata_Question_TitleEntry = {
|
|
|
3685
3798
|
const tag = reader.uint32();
|
|
3686
3799
|
switch (tag >>> 3) {
|
|
3687
3800
|
case 1:
|
|
3688
|
-
if (tag
|
|
3801
|
+
if (tag !== 10) {
|
|
3689
3802
|
break;
|
|
3690
3803
|
}
|
|
3691
3804
|
message.key = reader.string();
|
|
3692
3805
|
continue;
|
|
3693
3806
|
case 2:
|
|
3694
|
-
if (tag
|
|
3807
|
+
if (tag !== 18) {
|
|
3695
3808
|
break;
|
|
3696
3809
|
}
|
|
3697
3810
|
message.value = reader.string();
|
|
3698
3811
|
continue;
|
|
3699
3812
|
}
|
|
3700
|
-
if ((tag & 7)
|
|
3813
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3701
3814
|
break;
|
|
3702
3815
|
}
|
|
3703
3816
|
reader.skipType(tag & 7);
|
|
@@ -3709,8 +3822,12 @@ var ProcessMetadata_Question_TitleEntry = {
|
|
|
3709
3822
|
},
|
|
3710
3823
|
toJSON(message) {
|
|
3711
3824
|
const obj = {};
|
|
3712
|
-
message.key !==
|
|
3713
|
-
|
|
3825
|
+
if (message.key !== "") {
|
|
3826
|
+
obj.key = message.key;
|
|
3827
|
+
}
|
|
3828
|
+
if (message.value !== "") {
|
|
3829
|
+
obj.value = message.value;
|
|
3830
|
+
}
|
|
3714
3831
|
return obj;
|
|
3715
3832
|
},
|
|
3716
3833
|
create(base) {
|
|
@@ -3744,19 +3861,19 @@ var ProcessMetadata_Question_DescriptionEntry = {
|
|
|
3744
3861
|
const tag = reader.uint32();
|
|
3745
3862
|
switch (tag >>> 3) {
|
|
3746
3863
|
case 1:
|
|
3747
|
-
if (tag
|
|
3864
|
+
if (tag !== 10) {
|
|
3748
3865
|
break;
|
|
3749
3866
|
}
|
|
3750
3867
|
message.key = reader.string();
|
|
3751
3868
|
continue;
|
|
3752
3869
|
case 2:
|
|
3753
|
-
if (tag
|
|
3870
|
+
if (tag !== 18) {
|
|
3754
3871
|
break;
|
|
3755
3872
|
}
|
|
3756
3873
|
message.value = reader.string();
|
|
3757
3874
|
continue;
|
|
3758
3875
|
}
|
|
3759
|
-
if ((tag & 7)
|
|
3876
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3760
3877
|
break;
|
|
3761
3878
|
}
|
|
3762
3879
|
reader.skipType(tag & 7);
|
|
@@ -3768,8 +3885,12 @@ var ProcessMetadata_Question_DescriptionEntry = {
|
|
|
3768
3885
|
},
|
|
3769
3886
|
toJSON(message) {
|
|
3770
3887
|
const obj = {};
|
|
3771
|
-
message.key !==
|
|
3772
|
-
|
|
3888
|
+
if (message.key !== "") {
|
|
3889
|
+
obj.key = message.key;
|
|
3890
|
+
}
|
|
3891
|
+
if (message.value !== "") {
|
|
3892
|
+
obj.value = message.value;
|
|
3893
|
+
}
|
|
3773
3894
|
return obj;
|
|
3774
3895
|
},
|
|
3775
3896
|
create(base) {
|
|
@@ -3803,7 +3924,7 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
3803
3924
|
const tag = reader.uint32();
|
|
3804
3925
|
switch (tag >>> 3) {
|
|
3805
3926
|
case 1:
|
|
3806
|
-
if (tag
|
|
3927
|
+
if (tag !== 10) {
|
|
3807
3928
|
break;
|
|
3808
3929
|
}
|
|
3809
3930
|
const entry1 = ProcessMetadata_Question_VoteOption_TitleEntry.decode(reader, reader.uint32());
|
|
@@ -3812,13 +3933,13 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
3812
3933
|
}
|
|
3813
3934
|
continue;
|
|
3814
3935
|
case 2:
|
|
3815
|
-
if (tag
|
|
3936
|
+
if (tag !== 16) {
|
|
3816
3937
|
break;
|
|
3817
3938
|
}
|
|
3818
3939
|
message.value = reader.int32();
|
|
3819
3940
|
continue;
|
|
3820
3941
|
}
|
|
3821
|
-
if ((tag & 7)
|
|
3942
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3822
3943
|
break;
|
|
3823
3944
|
}
|
|
3824
3945
|
reader.skipType(tag & 7);
|
|
@@ -3836,13 +3957,18 @@ var ProcessMetadata_Question_VoteOption = {
|
|
|
3836
3957
|
},
|
|
3837
3958
|
toJSON(message) {
|
|
3838
3959
|
const obj = {};
|
|
3839
|
-
obj.title = {};
|
|
3840
3960
|
if (message.title) {
|
|
3841
|
-
Object.entries(message.title)
|
|
3842
|
-
|
|
3843
|
-
|
|
3961
|
+
const entries = Object.entries(message.title);
|
|
3962
|
+
if (entries.length > 0) {
|
|
3963
|
+
obj.title = {};
|
|
3964
|
+
entries.forEach(([k, v]) => {
|
|
3965
|
+
obj.title[k] = v;
|
|
3966
|
+
});
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
if (message.value !== 0) {
|
|
3970
|
+
obj.value = Math.round(message.value);
|
|
3844
3971
|
}
|
|
3845
|
-
message.value !== void 0 && (obj.value = Math.round(message.value));
|
|
3846
3972
|
return obj;
|
|
3847
3973
|
},
|
|
3848
3974
|
create(base) {
|
|
@@ -3881,19 +4007,19 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
|
|
|
3881
4007
|
const tag = reader.uint32();
|
|
3882
4008
|
switch (tag >>> 3) {
|
|
3883
4009
|
case 1:
|
|
3884
|
-
if (tag
|
|
4010
|
+
if (tag !== 10) {
|
|
3885
4011
|
break;
|
|
3886
4012
|
}
|
|
3887
4013
|
message.key = reader.string();
|
|
3888
4014
|
continue;
|
|
3889
4015
|
case 2:
|
|
3890
|
-
if (tag
|
|
4016
|
+
if (tag !== 18) {
|
|
3891
4017
|
break;
|
|
3892
4018
|
}
|
|
3893
4019
|
message.value = reader.string();
|
|
3894
4020
|
continue;
|
|
3895
4021
|
}
|
|
3896
|
-
if ((tag & 7)
|
|
4022
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3897
4023
|
break;
|
|
3898
4024
|
}
|
|
3899
4025
|
reader.skipType(tag & 7);
|
|
@@ -3905,8 +4031,12 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
|
|
|
3905
4031
|
},
|
|
3906
4032
|
toJSON(message) {
|
|
3907
4033
|
const obj = {};
|
|
3908
|
-
message.key !==
|
|
3909
|
-
|
|
4034
|
+
if (message.key !== "") {
|
|
4035
|
+
obj.key = message.key;
|
|
4036
|
+
}
|
|
4037
|
+
if (message.value !== "") {
|
|
4038
|
+
obj.value = message.value;
|
|
4039
|
+
}
|
|
3910
4040
|
return obj;
|
|
3911
4041
|
},
|
|
3912
4042
|
create(base) {
|
|
@@ -3940,19 +4070,19 @@ var ProcessMetadata_Results = {
|
|
|
3940
4070
|
const tag = reader.uint32();
|
|
3941
4071
|
switch (tag >>> 3) {
|
|
3942
4072
|
case 1:
|
|
3943
|
-
if (tag
|
|
4073
|
+
if (tag !== 10) {
|
|
3944
4074
|
break;
|
|
3945
4075
|
}
|
|
3946
4076
|
message.aggregation = reader.string();
|
|
3947
4077
|
continue;
|
|
3948
4078
|
case 2:
|
|
3949
|
-
if (tag
|
|
4079
|
+
if (tag !== 18) {
|
|
3950
4080
|
break;
|
|
3951
4081
|
}
|
|
3952
4082
|
message.display = reader.string();
|
|
3953
4083
|
continue;
|
|
3954
4084
|
}
|
|
3955
|
-
if ((tag & 7)
|
|
4085
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3956
4086
|
break;
|
|
3957
4087
|
}
|
|
3958
4088
|
reader.skipType(tag & 7);
|
|
@@ -3967,8 +4097,12 @@ var ProcessMetadata_Results = {
|
|
|
3967
4097
|
},
|
|
3968
4098
|
toJSON(message) {
|
|
3969
4099
|
const obj = {};
|
|
3970
|
-
message.aggregation !==
|
|
3971
|
-
|
|
4100
|
+
if (message.aggregation !== "") {
|
|
4101
|
+
obj.aggregation = message.aggregation;
|
|
4102
|
+
}
|
|
4103
|
+
if (message.display !== "") {
|
|
4104
|
+
obj.display = message.display;
|
|
4105
|
+
}
|
|
3972
4106
|
return obj;
|
|
3973
4107
|
},
|
|
3974
4108
|
create(base) {
|
|
@@ -4002,19 +4136,19 @@ var ProcessMetadata_MetaEntry = {
|
|
|
4002
4136
|
const tag = reader.uint32();
|
|
4003
4137
|
switch (tag >>> 3) {
|
|
4004
4138
|
case 1:
|
|
4005
|
-
if (tag
|
|
4139
|
+
if (tag !== 10) {
|
|
4006
4140
|
break;
|
|
4007
4141
|
}
|
|
4008
4142
|
message.key = reader.string();
|
|
4009
4143
|
continue;
|
|
4010
4144
|
case 2:
|
|
4011
|
-
if (tag
|
|
4145
|
+
if (tag !== 18) {
|
|
4012
4146
|
break;
|
|
4013
4147
|
}
|
|
4014
4148
|
message.value = reader.string();
|
|
4015
4149
|
continue;
|
|
4016
4150
|
}
|
|
4017
|
-
if ((tag & 7)
|
|
4151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4018
4152
|
break;
|
|
4019
4153
|
}
|
|
4020
4154
|
reader.skipType(tag & 7);
|
|
@@ -4026,8 +4160,12 @@ var ProcessMetadata_MetaEntry = {
|
|
|
4026
4160
|
},
|
|
4027
4161
|
toJSON(message) {
|
|
4028
4162
|
const obj = {};
|
|
4029
|
-
message.key !==
|
|
4030
|
-
|
|
4163
|
+
if (message.key !== "") {
|
|
4164
|
+
obj.key = message.key;
|
|
4165
|
+
}
|
|
4166
|
+
if (message.value !== "") {
|
|
4167
|
+
obj.value = message.value;
|
|
4168
|
+
}
|
|
4031
4169
|
return obj;
|
|
4032
4170
|
},
|
|
4033
4171
|
create(base) {
|