core-3nweb-client-lib 0.43.7 → 0.43.9

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.
Files changed (39) hide show
  1. package/build/api-defs/files.d.ts +82 -4
  2. package/build/core/storage/synced/obj-files.d.ts +1 -0
  3. package/build/core/storage/synced/obj-files.js +16 -0
  4. package/build/core/storage/synced/obj-status.d.ts +1 -0
  5. package/build/core/storage/synced/obj-status.js +18 -0
  6. package/build/core/storage/synced/storage.d.ts +6 -2
  7. package/build/core/storage/synced/storage.js +12 -17
  8. package/build/core/storage/synced/upsyncer.d.ts +10 -1
  9. package/build/core/storage/synced/upsyncer.js +72 -9
  10. package/build/core-ipc/file.d.ts +27 -4
  11. package/build/core-ipc/file.js +90 -94
  12. package/build/core-ipc/fs.js +68 -132
  13. package/build/lib-client/fs-utils/files.js +6 -0
  14. package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -0
  15. package/build/lib-client/objs-on-disk/obj-on-disk.js +8 -1
  16. package/build/lib-client/xsp-fs/common.d.ts +13 -21
  17. package/build/lib-client/xsp-fs/common.js +4 -16
  18. package/build/lib-client/xsp-fs/file-node.d.ts +3 -2
  19. package/build/lib-client/xsp-fs/file-node.js +17 -11
  20. package/build/lib-client/xsp-fs/file.d.ts +5 -0
  21. package/build/lib-client/xsp-fs/file.js +26 -13
  22. package/build/lib-client/xsp-fs/folder-node.d.ts +7 -1
  23. package/build/lib-client/xsp-fs/folder-node.js +18 -10
  24. package/build/lib-client/xsp-fs/fs.d.ts +5 -0
  25. package/build/lib-client/xsp-fs/fs.js +33 -26
  26. package/build/lib-client/xsp-fs/link-node.d.ts +3 -0
  27. package/build/lib-client/xsp-fs/link-node.js +5 -1
  28. package/build/lib-client/xsp-fs/node-in-fs.d.ts +20 -6
  29. package/build/lib-client/xsp-fs/node-in-fs.js +69 -14
  30. package/build/lib-client/xsp-fs/node-persistence.d.ts +1 -0
  31. package/build/lib-client/xsp-fs/node-persistence.js +4 -0
  32. package/build/lib-common/big-endian.js +2 -2
  33. package/build/lib-common/processes/labelled-exec-pools.js +1 -3
  34. package/build/protos/asmail.proto.js +1614 -1588
  35. package/build/protos/file.proto.js +1258 -541
  36. package/build/protos/fs.proto.js +1459 -1433
  37. package/package.json +4 -4
  38. package/protos/file.proto +31 -15
  39. package/protos/fs.proto +13 -22
@@ -1541,34 +1541,25 @@ $root.fs = (function() {
1541
1541
  return SymLinkTargetReplyBody;
1542
1542
  })();
1543
1543
 
1544
- fs.FSEventMsg = (function() {
1544
+ fs.WatchTreeRequestBody = (function() {
1545
1545
 
1546
1546
  /**
1547
- * Properties of a FSEventMsg.
1547
+ * Properties of a WatchTreeRequestBody.
1548
1548
  * @memberof fs
1549
- * @interface IFSEventMsg
1550
- * @property {string|null} [type] FSEventMsg type
1551
- * @property {string|null} [path] FSEventMsg path
1552
- * @property {common.IStringValue|null} [src] FSEventMsg src
1553
- * @property {common.IUInt64Value|null} [newVersion] FSEventMsg newVersion
1554
- * @property {common.IStringValue|null} [name] FSEventMsg name
1555
- * @property {common.IStringValue|null} [oldName] FSEventMsg oldName
1556
- * @property {common.IStringValue|null} [newName] FSEventMsg newName
1557
- * @property {fs.IListingEntryMsg|null} [entry] FSEventMsg entry
1558
- * @property {common.IUInt64Value|null} [moveLabel] FSEventMsg moveLabel
1559
- * @property {common.IUInt64Value|null} [removedArchVer] FSEventMsg removedArchVer
1560
- * @property {common.IUInt64Value|null} [archivedVersion] FSEventMsg archivedVersion
1561
- */
1562
-
1563
- /**
1564
- * Constructs a new FSEventMsg.
1549
+ * @interface IWatchTreeRequestBody
1550
+ * @property {string|null} [path] WatchTreeRequestBody path
1551
+ * @property {common.IUInt32Value|null} [depth] WatchTreeRequestBody depth
1552
+ */
1553
+
1554
+ /**
1555
+ * Constructs a new WatchTreeRequestBody.
1565
1556
  * @memberof fs
1566
- * @classdesc Represents a FSEventMsg.
1567
- * @implements IFSEventMsg
1557
+ * @classdesc Represents a WatchTreeRequestBody.
1558
+ * @implements IWatchTreeRequestBody
1568
1559
  * @constructor
1569
- * @param {fs.IFSEventMsg=} [properties] Properties to set
1560
+ * @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
1570
1561
  */
1571
- function FSEventMsg(properties) {
1562
+ function WatchTreeRequestBody(properties) {
1572
1563
  if (properties)
1573
1564
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1574
1565
  if (properties[keys[i]] != null)
@@ -1576,217 +1567,91 @@ $root.fs = (function() {
1576
1567
  }
1577
1568
 
1578
1569
  /**
1579
- * FSEventMsg type.
1580
- * @member {string} type
1581
- * @memberof fs.FSEventMsg
1582
- * @instance
1583
- */
1584
- FSEventMsg.prototype.type = "";
1585
-
1586
- /**
1587
- * FSEventMsg path.
1570
+ * WatchTreeRequestBody path.
1588
1571
  * @member {string} path
1589
- * @memberof fs.FSEventMsg
1590
- * @instance
1591
- */
1592
- FSEventMsg.prototype.path = "";
1593
-
1594
- /**
1595
- * FSEventMsg src.
1596
- * @member {common.IStringValue|null|undefined} src
1597
- * @memberof fs.FSEventMsg
1598
- * @instance
1599
- */
1600
- FSEventMsg.prototype.src = null;
1601
-
1602
- /**
1603
- * FSEventMsg newVersion.
1604
- * @member {common.IUInt64Value|null|undefined} newVersion
1605
- * @memberof fs.FSEventMsg
1606
- * @instance
1607
- */
1608
- FSEventMsg.prototype.newVersion = null;
1609
-
1610
- /**
1611
- * FSEventMsg name.
1612
- * @member {common.IStringValue|null|undefined} name
1613
- * @memberof fs.FSEventMsg
1614
- * @instance
1615
- */
1616
- FSEventMsg.prototype.name = null;
1617
-
1618
- /**
1619
- * FSEventMsg oldName.
1620
- * @member {common.IStringValue|null|undefined} oldName
1621
- * @memberof fs.FSEventMsg
1622
- * @instance
1623
- */
1624
- FSEventMsg.prototype.oldName = null;
1625
-
1626
- /**
1627
- * FSEventMsg newName.
1628
- * @member {common.IStringValue|null|undefined} newName
1629
- * @memberof fs.FSEventMsg
1630
- * @instance
1631
- */
1632
- FSEventMsg.prototype.newName = null;
1633
-
1634
- /**
1635
- * FSEventMsg entry.
1636
- * @member {fs.IListingEntryMsg|null|undefined} entry
1637
- * @memberof fs.FSEventMsg
1638
- * @instance
1639
- */
1640
- FSEventMsg.prototype.entry = null;
1641
-
1642
- /**
1643
- * FSEventMsg moveLabel.
1644
- * @member {common.IUInt64Value|null|undefined} moveLabel
1645
- * @memberof fs.FSEventMsg
1646
- * @instance
1647
- */
1648
- FSEventMsg.prototype.moveLabel = null;
1649
-
1650
- /**
1651
- * FSEventMsg removedArchVer.
1652
- * @member {common.IUInt64Value|null|undefined} removedArchVer
1653
- * @memberof fs.FSEventMsg
1572
+ * @memberof fs.WatchTreeRequestBody
1654
1573
  * @instance
1655
1574
  */
1656
- FSEventMsg.prototype.removedArchVer = null;
1575
+ WatchTreeRequestBody.prototype.path = "";
1657
1576
 
1658
1577
  /**
1659
- * FSEventMsg archivedVersion.
1660
- * @member {common.IUInt64Value|null|undefined} archivedVersion
1661
- * @memberof fs.FSEventMsg
1578
+ * WatchTreeRequestBody depth.
1579
+ * @member {common.IUInt32Value|null|undefined} depth
1580
+ * @memberof fs.WatchTreeRequestBody
1662
1581
  * @instance
1663
1582
  */
1664
- FSEventMsg.prototype.archivedVersion = null;
1583
+ WatchTreeRequestBody.prototype.depth = null;
1665
1584
 
1666
1585
  /**
1667
- * Creates a new FSEventMsg instance using the specified properties.
1586
+ * Creates a new WatchTreeRequestBody instance using the specified properties.
1668
1587
  * @function create
1669
- * @memberof fs.FSEventMsg
1588
+ * @memberof fs.WatchTreeRequestBody
1670
1589
  * @static
1671
- * @param {fs.IFSEventMsg=} [properties] Properties to set
1672
- * @returns {fs.FSEventMsg} FSEventMsg instance
1590
+ * @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
1591
+ * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody instance
1673
1592
  */
1674
- FSEventMsg.create = function create(properties) {
1675
- return new FSEventMsg(properties);
1593
+ WatchTreeRequestBody.create = function create(properties) {
1594
+ return new WatchTreeRequestBody(properties);
1676
1595
  };
1677
1596
 
1678
1597
  /**
1679
- * Encodes the specified FSEventMsg message. Does not implicitly {@link fs.FSEventMsg.verify|verify} messages.
1598
+ * Encodes the specified WatchTreeRequestBody message. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
1680
1599
  * @function encode
1681
- * @memberof fs.FSEventMsg
1600
+ * @memberof fs.WatchTreeRequestBody
1682
1601
  * @static
1683
- * @param {fs.IFSEventMsg} message FSEventMsg message or plain object to encode
1602
+ * @param {fs.IWatchTreeRequestBody} message WatchTreeRequestBody message or plain object to encode
1684
1603
  * @param {$protobuf.Writer} [writer] Writer to encode to
1685
1604
  * @returns {$protobuf.Writer} Writer
1686
1605
  */
1687
- FSEventMsg.encode = function encode(message, writer) {
1606
+ WatchTreeRequestBody.encode = function encode(message, writer) {
1688
1607
  if (!writer)
1689
1608
  writer = $Writer.create();
1690
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
1691
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
1692
1609
  if (message.path != null && Object.hasOwnProperty.call(message, "path"))
1693
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
1694
- if (message.src != null && Object.hasOwnProperty.call(message, "src"))
1695
- $root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
1696
- if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
1697
- $root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
1698
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
1699
- $root.common.StringValue.encode(message.name, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
1700
- if (message.oldName != null && Object.hasOwnProperty.call(message, "oldName"))
1701
- $root.common.StringValue.encode(message.oldName, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
1702
- if (message.newName != null && Object.hasOwnProperty.call(message, "newName"))
1703
- $root.common.StringValue.encode(message.newName, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
1704
- if (message.entry != null && Object.hasOwnProperty.call(message, "entry"))
1705
- $root.fs.ListingEntryMsg.encode(message.entry, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
1706
- if (message.moveLabel != null && Object.hasOwnProperty.call(message, "moveLabel"))
1707
- $root.common.UInt64Value.encode(message.moveLabel, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
1708
- if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
1709
- $root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
1710
- if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
1711
- $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
1610
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
1611
+ if (message.depth != null && Object.hasOwnProperty.call(message, "depth"))
1612
+ $root.common.UInt32Value.encode(message.depth, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
1712
1613
  return writer;
1713
1614
  };
1714
1615
 
1715
1616
  /**
1716
- * Encodes the specified FSEventMsg message, length delimited. Does not implicitly {@link fs.FSEventMsg.verify|verify} messages.
1617
+ * Encodes the specified WatchTreeRequestBody message, length delimited. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
1717
1618
  * @function encodeDelimited
1718
- * @memberof fs.FSEventMsg
1619
+ * @memberof fs.WatchTreeRequestBody
1719
1620
  * @static
1720
- * @param {fs.IFSEventMsg} message FSEventMsg message or plain object to encode
1621
+ * @param {fs.IWatchTreeRequestBody} message WatchTreeRequestBody message or plain object to encode
1721
1622
  * @param {$protobuf.Writer} [writer] Writer to encode to
1722
1623
  * @returns {$protobuf.Writer} Writer
1723
1624
  */
1724
- FSEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
1625
+ WatchTreeRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
1725
1626
  return this.encode(message, writer).ldelim();
1726
1627
  };
1727
1628
 
1728
1629
  /**
1729
- * Decodes a FSEventMsg message from the specified reader or buffer.
1630
+ * Decodes a WatchTreeRequestBody message from the specified reader or buffer.
1730
1631
  * @function decode
1731
- * @memberof fs.FSEventMsg
1632
+ * @memberof fs.WatchTreeRequestBody
1732
1633
  * @static
1733
1634
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1734
1635
  * @param {number} [length] Message length if known beforehand
1735
- * @returns {fs.FSEventMsg} FSEventMsg
1636
+ * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
1736
1637
  * @throws {Error} If the payload is not a reader or valid buffer
1737
1638
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1738
1639
  */
1739
- FSEventMsg.decode = function decode(reader, length, error) {
1640
+ WatchTreeRequestBody.decode = function decode(reader, length, error) {
1740
1641
  if (!(reader instanceof $Reader))
1741
1642
  reader = $Reader.create(reader);
1742
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSEventMsg();
1643
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.WatchTreeRequestBody();
1743
1644
  while (reader.pos < end) {
1744
1645
  var tag = reader.uint32();
1745
1646
  if (tag === error)
1746
1647
  break;
1747
1648
  switch (tag >>> 3) {
1748
1649
  case 1: {
1749
- message.type = reader.string();
1750
- break;
1751
- }
1752
- case 2: {
1753
1650
  message.path = reader.string();
1754
1651
  break;
1755
1652
  }
1756
- case 3: {
1757
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
1758
- break;
1759
- }
1760
- case 4: {
1761
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1762
- break;
1763
- }
1764
- case 5: {
1765
- message.name = $root.common.StringValue.decode(reader, reader.uint32());
1766
- break;
1767
- }
1768
- case 6: {
1769
- message.oldName = $root.common.StringValue.decode(reader, reader.uint32());
1770
- break;
1771
- }
1772
- case 7: {
1773
- message.newName = $root.common.StringValue.decode(reader, reader.uint32());
1774
- break;
1775
- }
1776
- case 8: {
1777
- message.entry = $root.fs.ListingEntryMsg.decode(reader, reader.uint32());
1778
- break;
1779
- }
1780
- case 9: {
1781
- message.moveLabel = $root.common.UInt64Value.decode(reader, reader.uint32());
1782
- break;
1783
- }
1784
- case 10: {
1785
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
1786
- break;
1787
- }
1788
- case 11: {
1789
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1653
+ case 2: {
1654
+ message.depth = $root.common.UInt32Value.decode(reader, reader.uint32());
1790
1655
  break;
1791
1656
  }
1792
1657
  default:
@@ -1798,249 +1663,137 @@ $root.fs = (function() {
1798
1663
  };
1799
1664
 
1800
1665
  /**
1801
- * Decodes a FSEventMsg message from the specified reader or buffer, length delimited.
1666
+ * Decodes a WatchTreeRequestBody message from the specified reader or buffer, length delimited.
1802
1667
  * @function decodeDelimited
1803
- * @memberof fs.FSEventMsg
1668
+ * @memberof fs.WatchTreeRequestBody
1804
1669
  * @static
1805
1670
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1806
- * @returns {fs.FSEventMsg} FSEventMsg
1671
+ * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
1807
1672
  * @throws {Error} If the payload is not a reader or valid buffer
1808
1673
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1809
1674
  */
1810
- FSEventMsg.decodeDelimited = function decodeDelimited(reader) {
1675
+ WatchTreeRequestBody.decodeDelimited = function decodeDelimited(reader) {
1811
1676
  if (!(reader instanceof $Reader))
1812
1677
  reader = new $Reader(reader);
1813
1678
  return this.decode(reader, reader.uint32());
1814
1679
  };
1815
1680
 
1816
1681
  /**
1817
- * Verifies a FSEventMsg message.
1682
+ * Verifies a WatchTreeRequestBody message.
1818
1683
  * @function verify
1819
- * @memberof fs.FSEventMsg
1684
+ * @memberof fs.WatchTreeRequestBody
1820
1685
  * @static
1821
1686
  * @param {Object.<string,*>} message Plain object to verify
1822
1687
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
1823
1688
  */
1824
- FSEventMsg.verify = function verify(message) {
1689
+ WatchTreeRequestBody.verify = function verify(message) {
1825
1690
  if (typeof message !== "object" || message === null)
1826
1691
  return "object expected";
1827
- if (message.type != null && message.hasOwnProperty("type"))
1828
- if (!$util.isString(message.type))
1829
- return "type: string expected";
1830
1692
  if (message.path != null && message.hasOwnProperty("path"))
1831
1693
  if (!$util.isString(message.path))
1832
1694
  return "path: string expected";
1833
- if (message.src != null && message.hasOwnProperty("src")) {
1834
- var error = $root.common.StringValue.verify(message.src);
1835
- if (error)
1836
- return "src." + error;
1837
- }
1838
- if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
1839
- var error = $root.common.UInt64Value.verify(message.newVersion);
1840
- if (error)
1841
- return "newVersion." + error;
1842
- }
1843
- if (message.name != null && message.hasOwnProperty("name")) {
1844
- var error = $root.common.StringValue.verify(message.name);
1845
- if (error)
1846
- return "name." + error;
1847
- }
1848
- if (message.oldName != null && message.hasOwnProperty("oldName")) {
1849
- var error = $root.common.StringValue.verify(message.oldName);
1850
- if (error)
1851
- return "oldName." + error;
1852
- }
1853
- if (message.newName != null && message.hasOwnProperty("newName")) {
1854
- var error = $root.common.StringValue.verify(message.newName);
1855
- if (error)
1856
- return "newName." + error;
1857
- }
1858
- if (message.entry != null && message.hasOwnProperty("entry")) {
1859
- var error = $root.fs.ListingEntryMsg.verify(message.entry);
1860
- if (error)
1861
- return "entry." + error;
1862
- }
1863
- if (message.moveLabel != null && message.hasOwnProperty("moveLabel")) {
1864
- var error = $root.common.UInt64Value.verify(message.moveLabel);
1865
- if (error)
1866
- return "moveLabel." + error;
1867
- }
1868
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
1869
- var error = $root.common.UInt64Value.verify(message.removedArchVer);
1870
- if (error)
1871
- return "removedArchVer." + error;
1872
- }
1873
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
1874
- var error = $root.common.UInt64Value.verify(message.archivedVersion);
1695
+ if (message.depth != null && message.hasOwnProperty("depth")) {
1696
+ var error = $root.common.UInt32Value.verify(message.depth);
1875
1697
  if (error)
1876
- return "archivedVersion." + error;
1698
+ return "depth." + error;
1877
1699
  }
1878
1700
  return null;
1879
1701
  };
1880
1702
 
1881
1703
  /**
1882
- * Creates a FSEventMsg message from a plain object. Also converts values to their respective internal types.
1704
+ * Creates a WatchTreeRequestBody message from a plain object. Also converts values to their respective internal types.
1883
1705
  * @function fromObject
1884
- * @memberof fs.FSEventMsg
1706
+ * @memberof fs.WatchTreeRequestBody
1885
1707
  * @static
1886
1708
  * @param {Object.<string,*>} object Plain object
1887
- * @returns {fs.FSEventMsg} FSEventMsg
1709
+ * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
1888
1710
  */
1889
- FSEventMsg.fromObject = function fromObject(object) {
1890
- if (object instanceof $root.fs.FSEventMsg)
1711
+ WatchTreeRequestBody.fromObject = function fromObject(object) {
1712
+ if (object instanceof $root.fs.WatchTreeRequestBody)
1891
1713
  return object;
1892
- var message = new $root.fs.FSEventMsg();
1893
- if (object.type != null)
1894
- message.type = String(object.type);
1714
+ var message = new $root.fs.WatchTreeRequestBody();
1895
1715
  if (object.path != null)
1896
1716
  message.path = String(object.path);
1897
- if (object.src != null) {
1898
- if (typeof object.src !== "object")
1899
- throw TypeError(".fs.FSEventMsg.src: object expected");
1900
- message.src = $root.common.StringValue.fromObject(object.src);
1901
- }
1902
- if (object.newVersion != null) {
1903
- if (typeof object.newVersion !== "object")
1904
- throw TypeError(".fs.FSEventMsg.newVersion: object expected");
1905
- message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
1906
- }
1907
- if (object.name != null) {
1908
- if (typeof object.name !== "object")
1909
- throw TypeError(".fs.FSEventMsg.name: object expected");
1910
- message.name = $root.common.StringValue.fromObject(object.name);
1911
- }
1912
- if (object.oldName != null) {
1913
- if (typeof object.oldName !== "object")
1914
- throw TypeError(".fs.FSEventMsg.oldName: object expected");
1915
- message.oldName = $root.common.StringValue.fromObject(object.oldName);
1916
- }
1917
- if (object.newName != null) {
1918
- if (typeof object.newName !== "object")
1919
- throw TypeError(".fs.FSEventMsg.newName: object expected");
1920
- message.newName = $root.common.StringValue.fromObject(object.newName);
1921
- }
1922
- if (object.entry != null) {
1923
- if (typeof object.entry !== "object")
1924
- throw TypeError(".fs.FSEventMsg.entry: object expected");
1925
- message.entry = $root.fs.ListingEntryMsg.fromObject(object.entry);
1926
- }
1927
- if (object.moveLabel != null) {
1928
- if (typeof object.moveLabel !== "object")
1929
- throw TypeError(".fs.FSEventMsg.moveLabel: object expected");
1930
- message.moveLabel = $root.common.UInt64Value.fromObject(object.moveLabel);
1931
- }
1932
- if (object.removedArchVer != null) {
1933
- if (typeof object.removedArchVer !== "object")
1934
- throw TypeError(".fs.FSEventMsg.removedArchVer: object expected");
1935
- message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
1936
- }
1937
- if (object.archivedVersion != null) {
1938
- if (typeof object.archivedVersion !== "object")
1939
- throw TypeError(".fs.FSEventMsg.archivedVersion: object expected");
1940
- message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
1717
+ if (object.depth != null) {
1718
+ if (typeof object.depth !== "object")
1719
+ throw TypeError(".fs.WatchTreeRequestBody.depth: object expected");
1720
+ message.depth = $root.common.UInt32Value.fromObject(object.depth);
1941
1721
  }
1942
1722
  return message;
1943
1723
  };
1944
1724
 
1945
1725
  /**
1946
- * Creates a plain object from a FSEventMsg message. Also converts values to other types if specified.
1726
+ * Creates a plain object from a WatchTreeRequestBody message. Also converts values to other types if specified.
1947
1727
  * @function toObject
1948
- * @memberof fs.FSEventMsg
1728
+ * @memberof fs.WatchTreeRequestBody
1949
1729
  * @static
1950
- * @param {fs.FSEventMsg} message FSEventMsg
1730
+ * @param {fs.WatchTreeRequestBody} message WatchTreeRequestBody
1951
1731
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1952
1732
  * @returns {Object.<string,*>} Plain object
1953
1733
  */
1954
- FSEventMsg.toObject = function toObject(message, options) {
1734
+ WatchTreeRequestBody.toObject = function toObject(message, options) {
1955
1735
  if (!options)
1956
1736
  options = {};
1957
1737
  var object = {};
1958
1738
  if (options.defaults) {
1959
- object.type = "";
1960
1739
  object.path = "";
1961
- object.src = null;
1962
- object.newVersion = null;
1963
- object.name = null;
1964
- object.oldName = null;
1965
- object.newName = null;
1966
- object.entry = null;
1967
- object.moveLabel = null;
1968
- object.removedArchVer = null;
1969
- object.archivedVersion = null;
1740
+ object.depth = null;
1970
1741
  }
1971
- if (message.type != null && message.hasOwnProperty("type"))
1972
- object.type = message.type;
1973
1742
  if (message.path != null && message.hasOwnProperty("path"))
1974
1743
  object.path = message.path;
1975
- if (message.src != null && message.hasOwnProperty("src"))
1976
- object.src = $root.common.StringValue.toObject(message.src, options);
1977
- if (message.newVersion != null && message.hasOwnProperty("newVersion"))
1978
- object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
1979
- if (message.name != null && message.hasOwnProperty("name"))
1980
- object.name = $root.common.StringValue.toObject(message.name, options);
1981
- if (message.oldName != null && message.hasOwnProperty("oldName"))
1982
- object.oldName = $root.common.StringValue.toObject(message.oldName, options);
1983
- if (message.newName != null && message.hasOwnProperty("newName"))
1984
- object.newName = $root.common.StringValue.toObject(message.newName, options);
1985
- if (message.entry != null && message.hasOwnProperty("entry"))
1986
- object.entry = $root.fs.ListingEntryMsg.toObject(message.entry, options);
1987
- if (message.moveLabel != null && message.hasOwnProperty("moveLabel"))
1988
- object.moveLabel = $root.common.UInt64Value.toObject(message.moveLabel, options);
1989
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
1990
- object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
1991
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
1992
- object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
1744
+ if (message.depth != null && message.hasOwnProperty("depth"))
1745
+ object.depth = $root.common.UInt32Value.toObject(message.depth, options);
1993
1746
  return object;
1994
1747
  };
1995
1748
 
1996
1749
  /**
1997
- * Converts this FSEventMsg to JSON.
1750
+ * Converts this WatchTreeRequestBody to JSON.
1998
1751
  * @function toJSON
1999
- * @memberof fs.FSEventMsg
1752
+ * @memberof fs.WatchTreeRequestBody
2000
1753
  * @instance
2001
1754
  * @returns {Object.<string,*>} JSON object
2002
1755
  */
2003
- FSEventMsg.prototype.toJSON = function toJSON() {
1756
+ WatchTreeRequestBody.prototype.toJSON = function toJSON() {
2004
1757
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2005
1758
  };
2006
1759
 
2007
1760
  /**
2008
- * Gets the default type url for FSEventMsg
1761
+ * Gets the default type url for WatchTreeRequestBody
2009
1762
  * @function getTypeUrl
2010
- * @memberof fs.FSEventMsg
1763
+ * @memberof fs.WatchTreeRequestBody
2011
1764
  * @static
2012
1765
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2013
1766
  * @returns {string} The default type url
2014
1767
  */
2015
- FSEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1768
+ WatchTreeRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2016
1769
  if (typeUrlPrefix === undefined) {
2017
1770
  typeUrlPrefix = "type.googleapis.com";
2018
1771
  }
2019
- return typeUrlPrefix + "/fs.FSEventMsg";
1772
+ return typeUrlPrefix + "/fs.WatchTreeRequestBody";
2020
1773
  };
2021
1774
 
2022
- return FSEventMsg;
1775
+ return WatchTreeRequestBody;
2023
1776
  })();
2024
1777
 
2025
- fs.WatchTreeRequestBody = (function() {
1778
+ fs.ListFolderReplyBody = (function() {
2026
1779
 
2027
1780
  /**
2028
- * Properties of a WatchTreeRequestBody.
1781
+ * Properties of a ListFolderReplyBody.
2029
1782
  * @memberof fs
2030
- * @interface IWatchTreeRequestBody
2031
- * @property {string|null} [path] WatchTreeRequestBody path
2032
- * @property {common.IUInt32Value|null} [depth] WatchTreeRequestBody depth
1783
+ * @interface IListFolderReplyBody
1784
+ * @property {Array.<fs.IListingEntryMsg>|null} [entries] ListFolderReplyBody entries
2033
1785
  */
2034
1786
 
2035
1787
  /**
2036
- * Constructs a new WatchTreeRequestBody.
1788
+ * Constructs a new ListFolderReplyBody.
2037
1789
  * @memberof fs
2038
- * @classdesc Represents a WatchTreeRequestBody.
2039
- * @implements IWatchTreeRequestBody
1790
+ * @classdesc Represents a ListFolderReplyBody.
1791
+ * @implements IListFolderReplyBody
2040
1792
  * @constructor
2041
- * @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
1793
+ * @param {fs.IListFolderReplyBody=} [properties] Properties to set
2042
1794
  */
2043
- function WatchTreeRequestBody(properties) {
1795
+ function ListFolderReplyBody(properties) {
1796
+ this.entries = [];
2044
1797
  if (properties)
2045
1798
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2046
1799
  if (properties[keys[i]] != null)
@@ -2048,274 +1801,40 @@ $root.fs = (function() {
2048
1801
  }
2049
1802
 
2050
1803
  /**
2051
- * WatchTreeRequestBody path.
2052
- * @member {string} path
2053
- * @memberof fs.WatchTreeRequestBody
2054
- * @instance
2055
- */
2056
- WatchTreeRequestBody.prototype.path = "";
2057
-
2058
- /**
2059
- * WatchTreeRequestBody depth.
2060
- * @member {common.IUInt32Value|null|undefined} depth
2061
- * @memberof fs.WatchTreeRequestBody
1804
+ * ListFolderReplyBody entries.
1805
+ * @member {Array.<fs.IListingEntryMsg>} entries
1806
+ * @memberof fs.ListFolderReplyBody
2062
1807
  * @instance
2063
1808
  */
2064
- WatchTreeRequestBody.prototype.depth = null;
1809
+ ListFolderReplyBody.prototype.entries = $util.emptyArray;
2065
1810
 
2066
1811
  /**
2067
- * Creates a new WatchTreeRequestBody instance using the specified properties.
1812
+ * Creates a new ListFolderReplyBody instance using the specified properties.
2068
1813
  * @function create
2069
- * @memberof fs.WatchTreeRequestBody
1814
+ * @memberof fs.ListFolderReplyBody
2070
1815
  * @static
2071
- * @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
2072
- * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody instance
1816
+ * @param {fs.IListFolderReplyBody=} [properties] Properties to set
1817
+ * @returns {fs.ListFolderReplyBody} ListFolderReplyBody instance
2073
1818
  */
2074
- WatchTreeRequestBody.create = function create(properties) {
2075
- return new WatchTreeRequestBody(properties);
1819
+ ListFolderReplyBody.create = function create(properties) {
1820
+ return new ListFolderReplyBody(properties);
2076
1821
  };
2077
1822
 
2078
1823
  /**
2079
- * Encodes the specified WatchTreeRequestBody message. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
1824
+ * Encodes the specified ListFolderReplyBody message. Does not implicitly {@link fs.ListFolderReplyBody.verify|verify} messages.
2080
1825
  * @function encode
2081
- * @memberof fs.WatchTreeRequestBody
1826
+ * @memberof fs.ListFolderReplyBody
2082
1827
  * @static
2083
- * @param {fs.IWatchTreeRequestBody} message WatchTreeRequestBody message or plain object to encode
1828
+ * @param {fs.IListFolderReplyBody} message ListFolderReplyBody message or plain object to encode
2084
1829
  * @param {$protobuf.Writer} [writer] Writer to encode to
2085
1830
  * @returns {$protobuf.Writer} Writer
2086
1831
  */
2087
- WatchTreeRequestBody.encode = function encode(message, writer) {
1832
+ ListFolderReplyBody.encode = function encode(message, writer) {
2088
1833
  if (!writer)
2089
1834
  writer = $Writer.create();
2090
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
2091
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
2092
- if (message.depth != null && Object.hasOwnProperty.call(message, "depth"))
2093
- $root.common.UInt32Value.encode(message.depth, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
2094
- return writer;
2095
- };
2096
-
2097
- /**
2098
- * Encodes the specified WatchTreeRequestBody message, length delimited. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
2099
- * @function encodeDelimited
2100
- * @memberof fs.WatchTreeRequestBody
2101
- * @static
2102
- * @param {fs.IWatchTreeRequestBody} message WatchTreeRequestBody message or plain object to encode
2103
- * @param {$protobuf.Writer} [writer] Writer to encode to
2104
- * @returns {$protobuf.Writer} Writer
2105
- */
2106
- WatchTreeRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
2107
- return this.encode(message, writer).ldelim();
2108
- };
2109
-
2110
- /**
2111
- * Decodes a WatchTreeRequestBody message from the specified reader or buffer.
2112
- * @function decode
2113
- * @memberof fs.WatchTreeRequestBody
2114
- * @static
2115
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2116
- * @param {number} [length] Message length if known beforehand
2117
- * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
2118
- * @throws {Error} If the payload is not a reader or valid buffer
2119
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2120
- */
2121
- WatchTreeRequestBody.decode = function decode(reader, length, error) {
2122
- if (!(reader instanceof $Reader))
2123
- reader = $Reader.create(reader);
2124
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.WatchTreeRequestBody();
2125
- while (reader.pos < end) {
2126
- var tag = reader.uint32();
2127
- if (tag === error)
2128
- break;
2129
- switch (tag >>> 3) {
2130
- case 1: {
2131
- message.path = reader.string();
2132
- break;
2133
- }
2134
- case 2: {
2135
- message.depth = $root.common.UInt32Value.decode(reader, reader.uint32());
2136
- break;
2137
- }
2138
- default:
2139
- reader.skipType(tag & 7);
2140
- break;
2141
- }
2142
- }
2143
- return message;
2144
- };
2145
-
2146
- /**
2147
- * Decodes a WatchTreeRequestBody message from the specified reader or buffer, length delimited.
2148
- * @function decodeDelimited
2149
- * @memberof fs.WatchTreeRequestBody
2150
- * @static
2151
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2152
- * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
2153
- * @throws {Error} If the payload is not a reader or valid buffer
2154
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2155
- */
2156
- WatchTreeRequestBody.decodeDelimited = function decodeDelimited(reader) {
2157
- if (!(reader instanceof $Reader))
2158
- reader = new $Reader(reader);
2159
- return this.decode(reader, reader.uint32());
2160
- };
2161
-
2162
- /**
2163
- * Verifies a WatchTreeRequestBody message.
2164
- * @function verify
2165
- * @memberof fs.WatchTreeRequestBody
2166
- * @static
2167
- * @param {Object.<string,*>} message Plain object to verify
2168
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
2169
- */
2170
- WatchTreeRequestBody.verify = function verify(message) {
2171
- if (typeof message !== "object" || message === null)
2172
- return "object expected";
2173
- if (message.path != null && message.hasOwnProperty("path"))
2174
- if (!$util.isString(message.path))
2175
- return "path: string expected";
2176
- if (message.depth != null && message.hasOwnProperty("depth")) {
2177
- var error = $root.common.UInt32Value.verify(message.depth);
2178
- if (error)
2179
- return "depth." + error;
2180
- }
2181
- return null;
2182
- };
2183
-
2184
- /**
2185
- * Creates a WatchTreeRequestBody message from a plain object. Also converts values to their respective internal types.
2186
- * @function fromObject
2187
- * @memberof fs.WatchTreeRequestBody
2188
- * @static
2189
- * @param {Object.<string,*>} object Plain object
2190
- * @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
2191
- */
2192
- WatchTreeRequestBody.fromObject = function fromObject(object) {
2193
- if (object instanceof $root.fs.WatchTreeRequestBody)
2194
- return object;
2195
- var message = new $root.fs.WatchTreeRequestBody();
2196
- if (object.path != null)
2197
- message.path = String(object.path);
2198
- if (object.depth != null) {
2199
- if (typeof object.depth !== "object")
2200
- throw TypeError(".fs.WatchTreeRequestBody.depth: object expected");
2201
- message.depth = $root.common.UInt32Value.fromObject(object.depth);
2202
- }
2203
- return message;
2204
- };
2205
-
2206
- /**
2207
- * Creates a plain object from a WatchTreeRequestBody message. Also converts values to other types if specified.
2208
- * @function toObject
2209
- * @memberof fs.WatchTreeRequestBody
2210
- * @static
2211
- * @param {fs.WatchTreeRequestBody} message WatchTreeRequestBody
2212
- * @param {$protobuf.IConversionOptions} [options] Conversion options
2213
- * @returns {Object.<string,*>} Plain object
2214
- */
2215
- WatchTreeRequestBody.toObject = function toObject(message, options) {
2216
- if (!options)
2217
- options = {};
2218
- var object = {};
2219
- if (options.defaults) {
2220
- object.path = "";
2221
- object.depth = null;
2222
- }
2223
- if (message.path != null && message.hasOwnProperty("path"))
2224
- object.path = message.path;
2225
- if (message.depth != null && message.hasOwnProperty("depth"))
2226
- object.depth = $root.common.UInt32Value.toObject(message.depth, options);
2227
- return object;
2228
- };
2229
-
2230
- /**
2231
- * Converts this WatchTreeRequestBody to JSON.
2232
- * @function toJSON
2233
- * @memberof fs.WatchTreeRequestBody
2234
- * @instance
2235
- * @returns {Object.<string,*>} JSON object
2236
- */
2237
- WatchTreeRequestBody.prototype.toJSON = function toJSON() {
2238
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2239
- };
2240
-
2241
- /**
2242
- * Gets the default type url for WatchTreeRequestBody
2243
- * @function getTypeUrl
2244
- * @memberof fs.WatchTreeRequestBody
2245
- * @static
2246
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2247
- * @returns {string} The default type url
2248
- */
2249
- WatchTreeRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2250
- if (typeUrlPrefix === undefined) {
2251
- typeUrlPrefix = "type.googleapis.com";
2252
- }
2253
- return typeUrlPrefix + "/fs.WatchTreeRequestBody";
2254
- };
2255
-
2256
- return WatchTreeRequestBody;
2257
- })();
2258
-
2259
- fs.ListFolderReplyBody = (function() {
2260
-
2261
- /**
2262
- * Properties of a ListFolderReplyBody.
2263
- * @memberof fs
2264
- * @interface IListFolderReplyBody
2265
- * @property {Array.<fs.IListingEntryMsg>|null} [entries] ListFolderReplyBody entries
2266
- */
2267
-
2268
- /**
2269
- * Constructs a new ListFolderReplyBody.
2270
- * @memberof fs
2271
- * @classdesc Represents a ListFolderReplyBody.
2272
- * @implements IListFolderReplyBody
2273
- * @constructor
2274
- * @param {fs.IListFolderReplyBody=} [properties] Properties to set
2275
- */
2276
- function ListFolderReplyBody(properties) {
2277
- this.entries = [];
2278
- if (properties)
2279
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2280
- if (properties[keys[i]] != null)
2281
- this[keys[i]] = properties[keys[i]];
2282
- }
2283
-
2284
- /**
2285
- * ListFolderReplyBody entries.
2286
- * @member {Array.<fs.IListingEntryMsg>} entries
2287
- * @memberof fs.ListFolderReplyBody
2288
- * @instance
2289
- */
2290
- ListFolderReplyBody.prototype.entries = $util.emptyArray;
2291
-
2292
- /**
2293
- * Creates a new ListFolderReplyBody instance using the specified properties.
2294
- * @function create
2295
- * @memberof fs.ListFolderReplyBody
2296
- * @static
2297
- * @param {fs.IListFolderReplyBody=} [properties] Properties to set
2298
- * @returns {fs.ListFolderReplyBody} ListFolderReplyBody instance
2299
- */
2300
- ListFolderReplyBody.create = function create(properties) {
2301
- return new ListFolderReplyBody(properties);
2302
- };
2303
-
2304
- /**
2305
- * Encodes the specified ListFolderReplyBody message. Does not implicitly {@link fs.ListFolderReplyBody.verify|verify} messages.
2306
- * @function encode
2307
- * @memberof fs.ListFolderReplyBody
2308
- * @static
2309
- * @param {fs.IListFolderReplyBody} message ListFolderReplyBody message or plain object to encode
2310
- * @param {$protobuf.Writer} [writer] Writer to encode to
2311
- * @returns {$protobuf.Writer} Writer
2312
- */
2313
- ListFolderReplyBody.encode = function encode(message, writer) {
2314
- if (!writer)
2315
- writer = $Writer.create();
2316
- if (message.entries != null && message.entries.length)
2317
- for (var i = 0; i < message.entries.length; ++i)
2318
- $root.fs.ListingEntryMsg.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
1835
+ if (message.entries != null && message.entries.length)
1836
+ for (var i = 0; i < message.entries.length; ++i)
1837
+ $root.fs.ListingEntryMsg.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
2319
1838
  return writer;
2320
1839
  };
2321
1840
 
@@ -14823,24 +14342,26 @@ $root.fs = (function() {
14823
14342
  return FSSyncUploadRequestBody;
14824
14343
  })();
14825
14344
 
14826
- fs.FSSyncUploadReplyBody = (function() {
14345
+ fs.AdoptRemoteFolderItemRequestBody = (function() {
14827
14346
 
14828
14347
  /**
14829
- * Properties of a FSSyncUploadReplyBody.
14348
+ * Properties of an AdoptRemoteFolderItemRequestBody.
14830
14349
  * @memberof fs
14831
- * @interface IFSSyncUploadReplyBody
14832
- * @property {common.IUInt64Value|null} [uploadedVersion] FSSyncUploadReplyBody uploadedVersion
14350
+ * @interface IAdoptRemoteFolderItemRequestBody
14351
+ * @property {string|null} [path] AdoptRemoteFolderItemRequestBody path
14352
+ * @property {string|null} [itemName] AdoptRemoteFolderItemRequestBody itemName
14353
+ * @property {fs.AdoptRemoteFolderItemRequestBody.IOptions|null} [opts] AdoptRemoteFolderItemRequestBody opts
14833
14354
  */
14834
14355
 
14835
14356
  /**
14836
- * Constructs a new FSSyncUploadReplyBody.
14357
+ * Constructs a new AdoptRemoteFolderItemRequestBody.
14837
14358
  * @memberof fs
14838
- * @classdesc Represents a FSSyncUploadReplyBody.
14839
- * @implements IFSSyncUploadReplyBody
14359
+ * @classdesc Represents an AdoptRemoteFolderItemRequestBody.
14360
+ * @implements IAdoptRemoteFolderItemRequestBody
14840
14361
  * @constructor
14841
- * @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
14362
+ * @param {fs.IAdoptRemoteFolderItemRequestBody=} [properties] Properties to set
14842
14363
  */
14843
- function FSSyncUploadReplyBody(properties) {
14364
+ function AdoptRemoteFolderItemRequestBody(properties) {
14844
14365
  if (properties)
14845
14366
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14846
14367
  if (properties[keys[i]] != null)
@@ -14848,238 +14369,26 @@ $root.fs = (function() {
14848
14369
  }
14849
14370
 
14850
14371
  /**
14851
- * FSSyncUploadReplyBody uploadedVersion.
14852
- * @member {common.IUInt64Value|null|undefined} uploadedVersion
14853
- * @memberof fs.FSSyncUploadReplyBody
14372
+ * AdoptRemoteFolderItemRequestBody path.
14373
+ * @member {string} path
14374
+ * @memberof fs.AdoptRemoteFolderItemRequestBody
14854
14375
  * @instance
14855
14376
  */
14856
- FSSyncUploadReplyBody.prototype.uploadedVersion = null;
14377
+ AdoptRemoteFolderItemRequestBody.prototype.path = "";
14857
14378
 
14858
14379
  /**
14859
- * Creates a new FSSyncUploadReplyBody instance using the specified properties.
14860
- * @function create
14861
- * @memberof fs.FSSyncUploadReplyBody
14862
- * @static
14863
- * @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
14864
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody instance
14380
+ * AdoptRemoteFolderItemRequestBody itemName.
14381
+ * @member {string} itemName
14382
+ * @memberof fs.AdoptRemoteFolderItemRequestBody
14383
+ * @instance
14865
14384
  */
14866
- FSSyncUploadReplyBody.create = function create(properties) {
14867
- return new FSSyncUploadReplyBody(properties);
14868
- };
14385
+ AdoptRemoteFolderItemRequestBody.prototype.itemName = "";
14869
14386
 
14870
14387
  /**
14871
- * Encodes the specified FSSyncUploadReplyBody message. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
14872
- * @function encode
14873
- * @memberof fs.FSSyncUploadReplyBody
14874
- * @static
14875
- * @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
14876
- * @param {$protobuf.Writer} [writer] Writer to encode to
14877
- * @returns {$protobuf.Writer} Writer
14878
- */
14879
- FSSyncUploadReplyBody.encode = function encode(message, writer) {
14880
- if (!writer)
14881
- writer = $Writer.create();
14882
- if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
14883
- $root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
14884
- return writer;
14885
- };
14886
-
14887
- /**
14888
- * Encodes the specified FSSyncUploadReplyBody message, length delimited. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
14889
- * @function encodeDelimited
14890
- * @memberof fs.FSSyncUploadReplyBody
14891
- * @static
14892
- * @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
14893
- * @param {$protobuf.Writer} [writer] Writer to encode to
14894
- * @returns {$protobuf.Writer} Writer
14895
- */
14896
- FSSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
14897
- return this.encode(message, writer).ldelim();
14898
- };
14899
-
14900
- /**
14901
- * Decodes a FSSyncUploadReplyBody message from the specified reader or buffer.
14902
- * @function decode
14903
- * @memberof fs.FSSyncUploadReplyBody
14904
- * @static
14905
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14906
- * @param {number} [length] Message length if known beforehand
14907
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
14908
- * @throws {Error} If the payload is not a reader or valid buffer
14909
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
14910
- */
14911
- FSSyncUploadReplyBody.decode = function decode(reader, length, error) {
14912
- if (!(reader instanceof $Reader))
14913
- reader = $Reader.create(reader);
14914
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncUploadReplyBody();
14915
- while (reader.pos < end) {
14916
- var tag = reader.uint32();
14917
- if (tag === error)
14918
- break;
14919
- switch (tag >>> 3) {
14920
- case 1: {
14921
- message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
14922
- break;
14923
- }
14924
- default:
14925
- reader.skipType(tag & 7);
14926
- break;
14927
- }
14928
- }
14929
- return message;
14930
- };
14931
-
14932
- /**
14933
- * Decodes a FSSyncUploadReplyBody message from the specified reader or buffer, length delimited.
14934
- * @function decodeDelimited
14935
- * @memberof fs.FSSyncUploadReplyBody
14936
- * @static
14937
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14938
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
14939
- * @throws {Error} If the payload is not a reader or valid buffer
14940
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
14941
- */
14942
- FSSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
14943
- if (!(reader instanceof $Reader))
14944
- reader = new $Reader(reader);
14945
- return this.decode(reader, reader.uint32());
14946
- };
14947
-
14948
- /**
14949
- * Verifies a FSSyncUploadReplyBody message.
14950
- * @function verify
14951
- * @memberof fs.FSSyncUploadReplyBody
14952
- * @static
14953
- * @param {Object.<string,*>} message Plain object to verify
14954
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
14955
- */
14956
- FSSyncUploadReplyBody.verify = function verify(message) {
14957
- if (typeof message !== "object" || message === null)
14958
- return "object expected";
14959
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
14960
- var error = $root.common.UInt64Value.verify(message.uploadedVersion);
14961
- if (error)
14962
- return "uploadedVersion." + error;
14963
- }
14964
- return null;
14965
- };
14966
-
14967
- /**
14968
- * Creates a FSSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
14969
- * @function fromObject
14970
- * @memberof fs.FSSyncUploadReplyBody
14971
- * @static
14972
- * @param {Object.<string,*>} object Plain object
14973
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
14974
- */
14975
- FSSyncUploadReplyBody.fromObject = function fromObject(object) {
14976
- if (object instanceof $root.fs.FSSyncUploadReplyBody)
14977
- return object;
14978
- var message = new $root.fs.FSSyncUploadReplyBody();
14979
- if (object.uploadedVersion != null) {
14980
- if (typeof object.uploadedVersion !== "object")
14981
- throw TypeError(".fs.FSSyncUploadReplyBody.uploadedVersion: object expected");
14982
- message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
14983
- }
14984
- return message;
14985
- };
14986
-
14987
- /**
14988
- * Creates a plain object from a FSSyncUploadReplyBody message. Also converts values to other types if specified.
14989
- * @function toObject
14990
- * @memberof fs.FSSyncUploadReplyBody
14991
- * @static
14992
- * @param {fs.FSSyncUploadReplyBody} message FSSyncUploadReplyBody
14993
- * @param {$protobuf.IConversionOptions} [options] Conversion options
14994
- * @returns {Object.<string,*>} Plain object
14995
- */
14996
- FSSyncUploadReplyBody.toObject = function toObject(message, options) {
14997
- if (!options)
14998
- options = {};
14999
- var object = {};
15000
- if (options.defaults)
15001
- object.uploadedVersion = null;
15002
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
15003
- object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
15004
- return object;
15005
- };
15006
-
15007
- /**
15008
- * Converts this FSSyncUploadReplyBody to JSON.
15009
- * @function toJSON
15010
- * @memberof fs.FSSyncUploadReplyBody
15011
- * @instance
15012
- * @returns {Object.<string,*>} JSON object
15013
- */
15014
- FSSyncUploadReplyBody.prototype.toJSON = function toJSON() {
15015
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
15016
- };
15017
-
15018
- /**
15019
- * Gets the default type url for FSSyncUploadReplyBody
15020
- * @function getTypeUrl
15021
- * @memberof fs.FSSyncUploadReplyBody
15022
- * @static
15023
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
15024
- * @returns {string} The default type url
15025
- */
15026
- FSSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
15027
- if (typeUrlPrefix === undefined) {
15028
- typeUrlPrefix = "type.googleapis.com";
15029
- }
15030
- return typeUrlPrefix + "/fs.FSSyncUploadReplyBody";
15031
- };
15032
-
15033
- return FSSyncUploadReplyBody;
15034
- })();
15035
-
15036
- fs.AdoptRemoteFolderItemRequestBody = (function() {
15037
-
15038
- /**
15039
- * Properties of an AdoptRemoteFolderItemRequestBody.
15040
- * @memberof fs
15041
- * @interface IAdoptRemoteFolderItemRequestBody
15042
- * @property {string|null} [path] AdoptRemoteFolderItemRequestBody path
15043
- * @property {string|null} [itemName] AdoptRemoteFolderItemRequestBody itemName
15044
- * @property {fs.AdoptRemoteFolderItemRequestBody.IOptions|null} [opts] AdoptRemoteFolderItemRequestBody opts
15045
- */
15046
-
15047
- /**
15048
- * Constructs a new AdoptRemoteFolderItemRequestBody.
15049
- * @memberof fs
15050
- * @classdesc Represents an AdoptRemoteFolderItemRequestBody.
15051
- * @implements IAdoptRemoteFolderItemRequestBody
15052
- * @constructor
15053
- * @param {fs.IAdoptRemoteFolderItemRequestBody=} [properties] Properties to set
15054
- */
15055
- function AdoptRemoteFolderItemRequestBody(properties) {
15056
- if (properties)
15057
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15058
- if (properties[keys[i]] != null)
15059
- this[keys[i]] = properties[keys[i]];
15060
- }
15061
-
15062
- /**
15063
- * AdoptRemoteFolderItemRequestBody path.
15064
- * @member {string} path
15065
- * @memberof fs.AdoptRemoteFolderItemRequestBody
15066
- * @instance
15067
- */
15068
- AdoptRemoteFolderItemRequestBody.prototype.path = "";
15069
-
15070
- /**
15071
- * AdoptRemoteFolderItemRequestBody itemName.
15072
- * @member {string} itemName
15073
- * @memberof fs.AdoptRemoteFolderItemRequestBody
15074
- * @instance
15075
- */
15076
- AdoptRemoteFolderItemRequestBody.prototype.itemName = "";
15077
-
15078
- /**
15079
- * AdoptRemoteFolderItemRequestBody opts.
15080
- * @member {fs.AdoptRemoteFolderItemRequestBody.IOptions|null|undefined} opts
15081
- * @memberof fs.AdoptRemoteFolderItemRequestBody
15082
- * @instance
14388
+ * AdoptRemoteFolderItemRequestBody opts.
14389
+ * @member {fs.AdoptRemoteFolderItemRequestBody.IOptions|null|undefined} opts
14390
+ * @memberof fs.AdoptRemoteFolderItemRequestBody
14391
+ * @instance
15083
14392
  */
15084
14393
  AdoptRemoteFolderItemRequestBody.prototype.opts = null;
15085
14394
 
@@ -18533,9 +17842,9 @@ $root.file = (function() {
18533
17842
  * Properties of an UploadingStateMsg.
18534
17843
  * @memberof file
18535
17844
  * @interface IUploadingStateMsg
18536
- * @property {common.IUInt64Value|null} [localVersion] UploadingStateMsg localVersion
18537
- * @property {common.IUInt64Value|null} [remoteVersion] UploadingStateMsg remoteVersion
18538
- * @property {common.IUInt64Value|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
17845
+ * @property {number|Long|null} [localVersion] UploadingStateMsg localVersion
17846
+ * @property {number|Long|null} [remoteVersion] UploadingStateMsg remoteVersion
17847
+ * @property {number|Long|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
18539
17848
  * @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
18540
17849
  */
18541
17850
 
@@ -18556,27 +17865,27 @@ $root.file = (function() {
18556
17865
 
18557
17866
  /**
18558
17867
  * UploadingStateMsg localVersion.
18559
- * @member {common.IUInt64Value|null|undefined} localVersion
17868
+ * @member {number|Long} localVersion
18560
17869
  * @memberof file.UploadingStateMsg
18561
17870
  * @instance
18562
17871
  */
18563
- UploadingStateMsg.prototype.localVersion = null;
17872
+ UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18564
17873
 
18565
17874
  /**
18566
17875
  * UploadingStateMsg remoteVersion.
18567
- * @member {common.IUInt64Value|null|undefined} remoteVersion
17876
+ * @member {number|Long} remoteVersion
18568
17877
  * @memberof file.UploadingStateMsg
18569
17878
  * @instance
18570
17879
  */
18571
- UploadingStateMsg.prototype.remoteVersion = null;
17880
+ UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18572
17881
 
18573
17882
  /**
18574
17883
  * UploadingStateMsg bytesLeftToUpload.
18575
- * @member {common.IUInt64Value|null|undefined} bytesLeftToUpload
17884
+ * @member {number|Long} bytesLeftToUpload
18576
17885
  * @memberof file.UploadingStateMsg
18577
17886
  * @instance
18578
17887
  */
18579
- UploadingStateMsg.prototype.bytesLeftToUpload = null;
17888
+ UploadingStateMsg.prototype.bytesLeftToUpload = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18580
17889
 
18581
17890
  /**
18582
17891
  * UploadingStateMsg uploadStarted.
@@ -18611,11 +17920,11 @@ $root.file = (function() {
18611
17920
  if (!writer)
18612
17921
  writer = $Writer.create();
18613
17922
  if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
18614
- $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17923
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
18615
17924
  if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
18616
- $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17925
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
18617
17926
  if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
18618
- $root.common.UInt64Value.encode(message.bytesLeftToUpload, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
17927
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.bytesLeftToUpload);
18619
17928
  if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
18620
17929
  writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
18621
17930
  return writer;
@@ -18655,15 +17964,15 @@ $root.file = (function() {
18655
17964
  break;
18656
17965
  switch (tag >>> 3) {
18657
17966
  case 1: {
18658
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
17967
+ message.localVersion = reader.uint64();
18659
17968
  break;
18660
17969
  }
18661
17970
  case 2: {
18662
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
17971
+ message.remoteVersion = reader.uint64();
18663
17972
  break;
18664
17973
  }
18665
17974
  case 3: {
18666
- message.bytesLeftToUpload = $root.common.UInt64Value.decode(reader, reader.uint32());
17975
+ message.bytesLeftToUpload = reader.uint64();
18667
17976
  break;
18668
17977
  }
18669
17978
  case 4: {
@@ -18705,21 +18014,15 @@ $root.file = (function() {
18705
18014
  UploadingStateMsg.verify = function verify(message) {
18706
18015
  if (typeof message !== "object" || message === null)
18707
18016
  return "object expected";
18708
- if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
18709
- var error = $root.common.UInt64Value.verify(message.localVersion);
18710
- if (error)
18711
- return "localVersion." + error;
18712
- }
18713
- if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
18714
- var error = $root.common.UInt64Value.verify(message.remoteVersion);
18715
- if (error)
18716
- return "remoteVersion." + error;
18717
- }
18718
- if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload")) {
18719
- var error = $root.common.UInt64Value.verify(message.bytesLeftToUpload);
18720
- if (error)
18721
- return "bytesLeftToUpload." + error;
18722
- }
18017
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
18018
+ if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
18019
+ return "localVersion: integer|Long expected";
18020
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
18021
+ if (!$util.isInteger(message.remoteVersion) && !(message.remoteVersion && $util.isInteger(message.remoteVersion.low) && $util.isInteger(message.remoteVersion.high)))
18022
+ return "remoteVersion: integer|Long expected";
18023
+ if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
18024
+ if (!$util.isInteger(message.bytesLeftToUpload) && !(message.bytesLeftToUpload && $util.isInteger(message.bytesLeftToUpload.low) && $util.isInteger(message.bytesLeftToUpload.high)))
18025
+ return "bytesLeftToUpload: integer|Long expected";
18723
18026
  if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
18724
18027
  if (typeof message.uploadStarted !== "boolean")
18725
18028
  return "uploadStarted: boolean expected";
@@ -18738,21 +18041,33 @@ $root.file = (function() {
18738
18041
  if (object instanceof $root.file.UploadingStateMsg)
18739
18042
  return object;
18740
18043
  var message = new $root.file.UploadingStateMsg();
18741
- if (object.localVersion != null) {
18742
- if (typeof object.localVersion !== "object")
18743
- throw TypeError(".file.UploadingStateMsg.localVersion: object expected");
18744
- message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
18745
- }
18746
- if (object.remoteVersion != null) {
18747
- if (typeof object.remoteVersion !== "object")
18748
- throw TypeError(".file.UploadingStateMsg.remoteVersion: object expected");
18749
- message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
18750
- }
18751
- if (object.bytesLeftToUpload != null) {
18752
- if (typeof object.bytesLeftToUpload !== "object")
18753
- throw TypeError(".file.UploadingStateMsg.bytesLeftToUpload: object expected");
18754
- message.bytesLeftToUpload = $root.common.UInt64Value.fromObject(object.bytesLeftToUpload);
18755
- }
18044
+ if (object.localVersion != null)
18045
+ if ($util.Long)
18046
+ (message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
18047
+ else if (typeof object.localVersion === "string")
18048
+ message.localVersion = parseInt(object.localVersion, 10);
18049
+ else if (typeof object.localVersion === "number")
18050
+ message.localVersion = object.localVersion;
18051
+ else if (typeof object.localVersion === "object")
18052
+ message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
18053
+ if (object.remoteVersion != null)
18054
+ if ($util.Long)
18055
+ (message.remoteVersion = $util.Long.fromValue(object.remoteVersion)).unsigned = true;
18056
+ else if (typeof object.remoteVersion === "string")
18057
+ message.remoteVersion = parseInt(object.remoteVersion, 10);
18058
+ else if (typeof object.remoteVersion === "number")
18059
+ message.remoteVersion = object.remoteVersion;
18060
+ else if (typeof object.remoteVersion === "object")
18061
+ message.remoteVersion = new $util.LongBits(object.remoteVersion.low >>> 0, object.remoteVersion.high >>> 0).toNumber(true);
18062
+ if (object.bytesLeftToUpload != null)
18063
+ if ($util.Long)
18064
+ (message.bytesLeftToUpload = $util.Long.fromValue(object.bytesLeftToUpload)).unsigned = true;
18065
+ else if (typeof object.bytesLeftToUpload === "string")
18066
+ message.bytesLeftToUpload = parseInt(object.bytesLeftToUpload, 10);
18067
+ else if (typeof object.bytesLeftToUpload === "number")
18068
+ message.bytesLeftToUpload = object.bytesLeftToUpload;
18069
+ else if (typeof object.bytesLeftToUpload === "object")
18070
+ message.bytesLeftToUpload = new $util.LongBits(object.bytesLeftToUpload.low >>> 0, object.bytesLeftToUpload.high >>> 0).toNumber(true);
18756
18071
  if (object.uploadStarted != null)
18757
18072
  message.uploadStarted = Boolean(object.uploadStarted);
18758
18073
  return message;
@@ -18772,17 +18087,38 @@ $root.file = (function() {
18772
18087
  options = {};
18773
18088
  var object = {};
18774
18089
  if (options.defaults) {
18775
- object.localVersion = null;
18776
- object.remoteVersion = null;
18777
- object.bytesLeftToUpload = null;
18090
+ if ($util.Long) {
18091
+ var long = new $util.Long(0, 0, true);
18092
+ object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18093
+ } else
18094
+ object.localVersion = options.longs === String ? "0" : 0;
18095
+ if ($util.Long) {
18096
+ var long = new $util.Long(0, 0, true);
18097
+ object.remoteVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18098
+ } else
18099
+ object.remoteVersion = options.longs === String ? "0" : 0;
18100
+ if ($util.Long) {
18101
+ var long = new $util.Long(0, 0, true);
18102
+ object.bytesLeftToUpload = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18103
+ } else
18104
+ object.bytesLeftToUpload = options.longs === String ? "0" : 0;
18778
18105
  object.uploadStarted = false;
18779
18106
  }
18780
18107
  if (message.localVersion != null && message.hasOwnProperty("localVersion"))
18781
- object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
18108
+ if (typeof message.localVersion === "number")
18109
+ object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
18110
+ else
18111
+ object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
18782
18112
  if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
18783
- object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
18113
+ if (typeof message.remoteVersion === "number")
18114
+ object.remoteVersion = options.longs === String ? String(message.remoteVersion) : message.remoteVersion;
18115
+ else
18116
+ object.remoteVersion = options.longs === String ? $util.Long.prototype.toString.call(message.remoteVersion) : options.longs === Number ? new $util.LongBits(message.remoteVersion.low >>> 0, message.remoteVersion.high >>> 0).toNumber(true) : message.remoteVersion;
18784
18117
  if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
18785
- object.bytesLeftToUpload = $root.common.UInt64Value.toObject(message.bytesLeftToUpload, options);
18118
+ if (typeof message.bytesLeftToUpload === "number")
18119
+ object.bytesLeftToUpload = options.longs === String ? String(message.bytesLeftToUpload) : message.bytesLeftToUpload;
18120
+ else
18121
+ object.bytesLeftToUpload = options.longs === String ? $util.Long.prototype.toString.call(message.bytesLeftToUpload) : options.longs === Number ? new $util.LongBits(message.bytesLeftToUpload.low >>> 0, message.bytesLeftToUpload.high >>> 0).toNumber(true) : message.bytesLeftToUpload;
18786
18122
  if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
18787
18123
  object.uploadStarted = message.uploadStarted;
18788
18124
  return object;
@@ -18831,7 +18167,8 @@ $root.file = (function() {
18831
18167
  * @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
18832
18168
  * @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
18833
18169
  * @property {common.IUInt64Value|null} [version] StatsMsg version
18834
- * @property {file.ISyncStatusMsg|null} [sync] StatsMsg sync
18170
+ * @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
18171
+ * @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
18835
18172
  */
18836
18173
 
18837
18174
  /**
@@ -18914,12 +18251,20 @@ $root.file = (function() {
18914
18251
  StatsMsg.prototype.version = null;
18915
18252
 
18916
18253
  /**
18917
- * StatsMsg sync.
18918
- * @member {file.ISyncStatusMsg|null|undefined} sync
18254
+ * StatsMsg bytesNeedDownload.
18255
+ * @member {common.IUInt64Value|null|undefined} bytesNeedDownload
18256
+ * @memberof file.StatsMsg
18257
+ * @instance
18258
+ */
18259
+ StatsMsg.prototype.bytesNeedDownload = null;
18260
+
18261
+ /**
18262
+ * StatsMsg versionSyncBranch.
18263
+ * @member {common.IStringValue|null|undefined} versionSyncBranch
18919
18264
  * @memberof file.StatsMsg
18920
18265
  * @instance
18921
18266
  */
18922
- StatsMsg.prototype.sync = null;
18267
+ StatsMsg.prototype.versionSyncBranch = null;
18923
18268
 
18924
18269
  /**
18925
18270
  * Creates a new StatsMsg instance using the specified properties.
@@ -18961,8 +18306,10 @@ $root.file = (function() {
18961
18306
  $root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
18962
18307
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
18963
18308
  $root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
18964
- if (message.sync != null && Object.hasOwnProperty.call(message, "sync"))
18965
- $root.file.SyncStatusMsg.encode(message.sync, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
18309
+ if (message.bytesNeedDownload != null && Object.hasOwnProperty.call(message, "bytesNeedDownload"))
18310
+ $root.common.UInt64Value.encode(message.bytesNeedDownload, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
18311
+ if (message.versionSyncBranch != null && Object.hasOwnProperty.call(message, "versionSyncBranch"))
18312
+ $root.common.StringValue.encode(message.versionSyncBranch, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
18966
18313
  return writer;
18967
18314
  };
18968
18315
 
@@ -19032,7 +18379,11 @@ $root.file = (function() {
19032
18379
  break;
19033
18380
  }
19034
18381
  case 9: {
19035
- message.sync = $root.file.SyncStatusMsg.decode(reader, reader.uint32());
18382
+ message.bytesNeedDownload = $root.common.UInt64Value.decode(reader, reader.uint32());
18383
+ break;
18384
+ }
18385
+ case 10: {
18386
+ message.versionSyncBranch = $root.common.StringValue.decode(reader, reader.uint32());
19036
18387
  break;
19037
18388
  }
19038
18389
  default:
@@ -19108,10 +18459,15 @@ $root.file = (function() {
19108
18459
  if (error)
19109
18460
  return "version." + error;
19110
18461
  }
19111
- if (message.sync != null && message.hasOwnProperty("sync")) {
19112
- var error = $root.file.SyncStatusMsg.verify(message.sync);
18462
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload")) {
18463
+ var error = $root.common.UInt64Value.verify(message.bytesNeedDownload);
18464
+ if (error)
18465
+ return "bytesNeedDownload." + error;
18466
+ }
18467
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch")) {
18468
+ var error = $root.common.StringValue.verify(message.versionSyncBranch);
19113
18469
  if (error)
19114
- return "sync." + error;
18470
+ return "versionSyncBranch." + error;
19115
18471
  }
19116
18472
  return null;
19117
18473
  };
@@ -19165,10 +18521,15 @@ $root.file = (function() {
19165
18521
  throw TypeError(".file.StatsMsg.version: object expected");
19166
18522
  message.version = $root.common.UInt64Value.fromObject(object.version);
19167
18523
  }
19168
- if (object.sync != null) {
19169
- if (typeof object.sync !== "object")
19170
- throw TypeError(".file.StatsMsg.sync: object expected");
19171
- message.sync = $root.file.SyncStatusMsg.fromObject(object.sync);
18524
+ if (object.bytesNeedDownload != null) {
18525
+ if (typeof object.bytesNeedDownload !== "object")
18526
+ throw TypeError(".file.StatsMsg.bytesNeedDownload: object expected");
18527
+ message.bytesNeedDownload = $root.common.UInt64Value.fromObject(object.bytesNeedDownload);
18528
+ }
18529
+ if (object.versionSyncBranch != null) {
18530
+ if (typeof object.versionSyncBranch !== "object")
18531
+ throw TypeError(".file.StatsMsg.versionSyncBranch: object expected");
18532
+ message.versionSyncBranch = $root.common.StringValue.fromObject(object.versionSyncBranch);
19172
18533
  }
19173
18534
  return message;
19174
18535
  };
@@ -19195,7 +18556,8 @@ $root.file = (function() {
19195
18556
  object.mtime = null;
19196
18557
  object.ctime = null;
19197
18558
  object.version = null;
19198
- object.sync = null;
18559
+ object.bytesNeedDownload = null;
18560
+ object.versionSyncBranch = null;
19199
18561
  }
19200
18562
  if (message.isFile != null && message.hasOwnProperty("isFile"))
19201
18563
  object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
@@ -19213,8 +18575,10 @@ $root.file = (function() {
19213
18575
  object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
19214
18576
  if (message.version != null && message.hasOwnProperty("version"))
19215
18577
  object.version = $root.common.UInt64Value.toObject(message.version, options);
19216
- if (message.sync != null && message.hasOwnProperty("sync"))
19217
- object.sync = $root.file.SyncStatusMsg.toObject(message.sync, options);
18578
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload"))
18579
+ object.bytesNeedDownload = $root.common.UInt64Value.toObject(message.bytesNeedDownload, options);
18580
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch"))
18581
+ object.versionSyncBranch = $root.common.StringValue.toObject(message.versionSyncBranch, options);
19218
18582
  return object;
19219
18583
  };
19220
18584
 
@@ -20168,29 +19532,25 @@ $root.file = (function() {
20168
19532
  return ReadBytesReplyBody;
20169
19533
  })();
20170
19534
 
20171
- file.FileEventMsg = (function() {
19535
+ file.VersionedReadFlags = (function() {
20172
19536
 
20173
19537
  /**
20174
- * Properties of a FileEventMsg.
19538
+ * Properties of a VersionedReadFlags.
20175
19539
  * @memberof file
20176
- * @interface IFileEventMsg
20177
- * @property {string|null} [type] FileEventMsg type
20178
- * @property {string|null} [path] FileEventMsg path
20179
- * @property {common.IStringValue|null} [src] FileEventMsg src
20180
- * @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
20181
- * @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
20182
- * @property {common.IUInt64Value|null} [archivedVersion] FileEventMsg archivedVersion
19540
+ * @interface IVersionedReadFlags
19541
+ * @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
19542
+ * @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
20183
19543
  */
20184
19544
 
20185
19545
  /**
20186
- * Constructs a new FileEventMsg.
19546
+ * Constructs a new VersionedReadFlags.
20187
19547
  * @memberof file
20188
- * @classdesc Represents a FileEventMsg.
20189
- * @implements IFileEventMsg
19548
+ * @classdesc Represents a VersionedReadFlags.
19549
+ * @implements IVersionedReadFlags
20190
19550
  * @constructor
20191
- * @param {file.IFileEventMsg=} [properties] Properties to set
19551
+ * @param {file.IVersionedReadFlags=} [properties] Properties to set
20192
19552
  */
20193
- function FileEventMsg(properties) {
19553
+ function VersionedReadFlags(properties) {
20194
19554
  if (properties)
20195
19555
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20196
19556
  if (properties[keys[i]] != null)
@@ -20198,365 +19558,28 @@ $root.file = (function() {
20198
19558
  }
20199
19559
 
20200
19560
  /**
20201
- * FileEventMsg type.
20202
- * @member {string} type
20203
- * @memberof file.FileEventMsg
19561
+ * VersionedReadFlags archivedVersion.
19562
+ * @member {common.IUInt64Value|null|undefined} archivedVersion
19563
+ * @memberof file.VersionedReadFlags
20204
19564
  * @instance
20205
19565
  */
20206
- FileEventMsg.prototype.type = "";
19566
+ VersionedReadFlags.prototype.archivedVersion = null;
20207
19567
 
20208
19568
  /**
20209
- * FileEventMsg path.
20210
- * @member {string} path
20211
- * @memberof file.FileEventMsg
19569
+ * VersionedReadFlags remoteVersion.
19570
+ * @member {common.IUInt64Value|null|undefined} remoteVersion
19571
+ * @memberof file.VersionedReadFlags
20212
19572
  * @instance
20213
19573
  */
20214
- FileEventMsg.prototype.path = "";
19574
+ VersionedReadFlags.prototype.remoteVersion = null;
20215
19575
 
20216
19576
  /**
20217
- * FileEventMsg src.
20218
- * @member {common.IStringValue|null|undefined} src
20219
- * @memberof file.FileEventMsg
20220
- * @instance
20221
- */
20222
- FileEventMsg.prototype.src = null;
20223
-
20224
- /**
20225
- * FileEventMsg newVersion.
20226
- * @member {common.IUInt64Value|null|undefined} newVersion
20227
- * @memberof file.FileEventMsg
20228
- * @instance
20229
- */
20230
- FileEventMsg.prototype.newVersion = null;
20231
-
20232
- /**
20233
- * FileEventMsg removedArchVer.
20234
- * @member {common.IUInt64Value|null|undefined} removedArchVer
20235
- * @memberof file.FileEventMsg
20236
- * @instance
20237
- */
20238
- FileEventMsg.prototype.removedArchVer = null;
20239
-
20240
- /**
20241
- * FileEventMsg archivedVersion.
20242
- * @member {common.IUInt64Value|null|undefined} archivedVersion
20243
- * @memberof file.FileEventMsg
20244
- * @instance
20245
- */
20246
- FileEventMsg.prototype.archivedVersion = null;
20247
-
20248
- /**
20249
- * Creates a new FileEventMsg instance using the specified properties.
20250
- * @function create
20251
- * @memberof file.FileEventMsg
20252
- * @static
20253
- * @param {file.IFileEventMsg=} [properties] Properties to set
20254
- * @returns {file.FileEventMsg} FileEventMsg instance
20255
- */
20256
- FileEventMsg.create = function create(properties) {
20257
- return new FileEventMsg(properties);
20258
- };
20259
-
20260
- /**
20261
- * Encodes the specified FileEventMsg message. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
20262
- * @function encode
20263
- * @memberof file.FileEventMsg
20264
- * @static
20265
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
20266
- * @param {$protobuf.Writer} [writer] Writer to encode to
20267
- * @returns {$protobuf.Writer} Writer
20268
- */
20269
- FileEventMsg.encode = function encode(message, writer) {
20270
- if (!writer)
20271
- writer = $Writer.create();
20272
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
20273
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
20274
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
20275
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
20276
- if (message.src != null && Object.hasOwnProperty.call(message, "src"))
20277
- $root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
20278
- if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
20279
- $root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
20280
- if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
20281
- $root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
20282
- if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
20283
- $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
20284
- return writer;
20285
- };
20286
-
20287
- /**
20288
- * Encodes the specified FileEventMsg message, length delimited. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
20289
- * @function encodeDelimited
20290
- * @memberof file.FileEventMsg
20291
- * @static
20292
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
20293
- * @param {$protobuf.Writer} [writer] Writer to encode to
20294
- * @returns {$protobuf.Writer} Writer
20295
- */
20296
- FileEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
20297
- return this.encode(message, writer).ldelim();
20298
- };
20299
-
20300
- /**
20301
- * Decodes a FileEventMsg message from the specified reader or buffer.
20302
- * @function decode
20303
- * @memberof file.FileEventMsg
20304
- * @static
20305
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20306
- * @param {number} [length] Message length if known beforehand
20307
- * @returns {file.FileEventMsg} FileEventMsg
20308
- * @throws {Error} If the payload is not a reader or valid buffer
20309
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20310
- */
20311
- FileEventMsg.decode = function decode(reader, length, error) {
20312
- if (!(reader instanceof $Reader))
20313
- reader = $Reader.create(reader);
20314
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileEventMsg();
20315
- while (reader.pos < end) {
20316
- var tag = reader.uint32();
20317
- if (tag === error)
20318
- break;
20319
- switch (tag >>> 3) {
20320
- case 1: {
20321
- message.type = reader.string();
20322
- break;
20323
- }
20324
- case 2: {
20325
- message.path = reader.string();
20326
- break;
20327
- }
20328
- case 3: {
20329
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
20330
- break;
20331
- }
20332
- case 4: {
20333
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
20334
- break;
20335
- }
20336
- case 5: {
20337
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
20338
- break;
20339
- }
20340
- case 6: {
20341
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
20342
- break;
20343
- }
20344
- default:
20345
- reader.skipType(tag & 7);
20346
- break;
20347
- }
20348
- }
20349
- return message;
20350
- };
20351
-
20352
- /**
20353
- * Decodes a FileEventMsg message from the specified reader or buffer, length delimited.
20354
- * @function decodeDelimited
20355
- * @memberof file.FileEventMsg
20356
- * @static
20357
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20358
- * @returns {file.FileEventMsg} FileEventMsg
20359
- * @throws {Error} If the payload is not a reader or valid buffer
20360
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
20361
- */
20362
- FileEventMsg.decodeDelimited = function decodeDelimited(reader) {
20363
- if (!(reader instanceof $Reader))
20364
- reader = new $Reader(reader);
20365
- return this.decode(reader, reader.uint32());
20366
- };
20367
-
20368
- /**
20369
- * Verifies a FileEventMsg message.
20370
- * @function verify
20371
- * @memberof file.FileEventMsg
20372
- * @static
20373
- * @param {Object.<string,*>} message Plain object to verify
20374
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
20375
- */
20376
- FileEventMsg.verify = function verify(message) {
20377
- if (typeof message !== "object" || message === null)
20378
- return "object expected";
20379
- if (message.type != null && message.hasOwnProperty("type"))
20380
- if (!$util.isString(message.type))
20381
- return "type: string expected";
20382
- if (message.path != null && message.hasOwnProperty("path"))
20383
- if (!$util.isString(message.path))
20384
- return "path: string expected";
20385
- if (message.src != null && message.hasOwnProperty("src")) {
20386
- var error = $root.common.StringValue.verify(message.src);
20387
- if (error)
20388
- return "src." + error;
20389
- }
20390
- if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
20391
- var error = $root.common.UInt64Value.verify(message.newVersion);
20392
- if (error)
20393
- return "newVersion." + error;
20394
- }
20395
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
20396
- var error = $root.common.UInt64Value.verify(message.removedArchVer);
20397
- if (error)
20398
- return "removedArchVer." + error;
20399
- }
20400
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
20401
- var error = $root.common.UInt64Value.verify(message.archivedVersion);
20402
- if (error)
20403
- return "archivedVersion." + error;
20404
- }
20405
- return null;
20406
- };
20407
-
20408
- /**
20409
- * Creates a FileEventMsg message from a plain object. Also converts values to their respective internal types.
20410
- * @function fromObject
20411
- * @memberof file.FileEventMsg
20412
- * @static
20413
- * @param {Object.<string,*>} object Plain object
20414
- * @returns {file.FileEventMsg} FileEventMsg
20415
- */
20416
- FileEventMsg.fromObject = function fromObject(object) {
20417
- if (object instanceof $root.file.FileEventMsg)
20418
- return object;
20419
- var message = new $root.file.FileEventMsg();
20420
- if (object.type != null)
20421
- message.type = String(object.type);
20422
- if (object.path != null)
20423
- message.path = String(object.path);
20424
- if (object.src != null) {
20425
- if (typeof object.src !== "object")
20426
- throw TypeError(".file.FileEventMsg.src: object expected");
20427
- message.src = $root.common.StringValue.fromObject(object.src);
20428
- }
20429
- if (object.newVersion != null) {
20430
- if (typeof object.newVersion !== "object")
20431
- throw TypeError(".file.FileEventMsg.newVersion: object expected");
20432
- message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
20433
- }
20434
- if (object.removedArchVer != null) {
20435
- if (typeof object.removedArchVer !== "object")
20436
- throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
20437
- message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
20438
- }
20439
- if (object.archivedVersion != null) {
20440
- if (typeof object.archivedVersion !== "object")
20441
- throw TypeError(".file.FileEventMsg.archivedVersion: object expected");
20442
- message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
20443
- }
20444
- return message;
20445
- };
20446
-
20447
- /**
20448
- * Creates a plain object from a FileEventMsg message. Also converts values to other types if specified.
20449
- * @function toObject
20450
- * @memberof file.FileEventMsg
20451
- * @static
20452
- * @param {file.FileEventMsg} message FileEventMsg
20453
- * @param {$protobuf.IConversionOptions} [options] Conversion options
20454
- * @returns {Object.<string,*>} Plain object
20455
- */
20456
- FileEventMsg.toObject = function toObject(message, options) {
20457
- if (!options)
20458
- options = {};
20459
- var object = {};
20460
- if (options.defaults) {
20461
- object.type = "";
20462
- object.path = "";
20463
- object.src = null;
20464
- object.newVersion = null;
20465
- object.removedArchVer = null;
20466
- object.archivedVersion = null;
20467
- }
20468
- if (message.type != null && message.hasOwnProperty("type"))
20469
- object.type = message.type;
20470
- if (message.path != null && message.hasOwnProperty("path"))
20471
- object.path = message.path;
20472
- if (message.src != null && message.hasOwnProperty("src"))
20473
- object.src = $root.common.StringValue.toObject(message.src, options);
20474
- if (message.newVersion != null && message.hasOwnProperty("newVersion"))
20475
- object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
20476
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
20477
- object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
20478
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
20479
- object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
20480
- return object;
20481
- };
20482
-
20483
- /**
20484
- * Converts this FileEventMsg to JSON.
20485
- * @function toJSON
20486
- * @memberof file.FileEventMsg
20487
- * @instance
20488
- * @returns {Object.<string,*>} JSON object
20489
- */
20490
- FileEventMsg.prototype.toJSON = function toJSON() {
20491
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20492
- };
20493
-
20494
- /**
20495
- * Gets the default type url for FileEventMsg
20496
- * @function getTypeUrl
20497
- * @memberof file.FileEventMsg
20498
- * @static
20499
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20500
- * @returns {string} The default type url
20501
- */
20502
- FileEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20503
- if (typeUrlPrefix === undefined) {
20504
- typeUrlPrefix = "type.googleapis.com";
20505
- }
20506
- return typeUrlPrefix + "/file.FileEventMsg";
20507
- };
20508
-
20509
- return FileEventMsg;
20510
- })();
20511
-
20512
- file.VersionedReadFlags = (function() {
20513
-
20514
- /**
20515
- * Properties of a VersionedReadFlags.
20516
- * @memberof file
20517
- * @interface IVersionedReadFlags
20518
- * @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
20519
- * @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
20520
- */
20521
-
20522
- /**
20523
- * Constructs a new VersionedReadFlags.
20524
- * @memberof file
20525
- * @classdesc Represents a VersionedReadFlags.
20526
- * @implements IVersionedReadFlags
20527
- * @constructor
20528
- * @param {file.IVersionedReadFlags=} [properties] Properties to set
20529
- */
20530
- function VersionedReadFlags(properties) {
20531
- if (properties)
20532
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20533
- if (properties[keys[i]] != null)
20534
- this[keys[i]] = properties[keys[i]];
20535
- }
20536
-
20537
- /**
20538
- * VersionedReadFlags archivedVersion.
20539
- * @member {common.IUInt64Value|null|undefined} archivedVersion
20540
- * @memberof file.VersionedReadFlags
20541
- * @instance
20542
- */
20543
- VersionedReadFlags.prototype.archivedVersion = null;
20544
-
20545
- /**
20546
- * VersionedReadFlags remoteVersion.
20547
- * @member {common.IUInt64Value|null|undefined} remoteVersion
20548
- * @memberof file.VersionedReadFlags
20549
- * @instance
20550
- */
20551
- VersionedReadFlags.prototype.remoteVersion = null;
20552
-
20553
- /**
20554
- * Creates a new VersionedReadFlags instance using the specified properties.
20555
- * @function create
20556
- * @memberof file.VersionedReadFlags
20557
- * @static
20558
- * @param {file.IVersionedReadFlags=} [properties] Properties to set
20559
- * @returns {file.VersionedReadFlags} VersionedReadFlags instance
19577
+ * Creates a new VersionedReadFlags instance using the specified properties.
19578
+ * @function create
19579
+ * @memberof file.VersionedReadFlags
19580
+ * @static
19581
+ * @param {file.IVersionedReadFlags=} [properties] Properties to set
19582
+ * @returns {file.VersionedReadFlags} VersionedReadFlags instance
20560
19583
  */
20561
19584
  VersionedReadFlags.create = function create(properties) {
20562
19585
  return new VersionedReadFlags(properties);
@@ -27033,72 +26056,988 @@ $root.file = (function() {
27033
26056
  };
27034
26057
 
27035
26058
  /**
27036
- * Creates a plain object from a FileSyncUploadRequestBody message. Also converts values to other types if specified.
26059
+ * Creates a plain object from a FileSyncUploadRequestBody message. Also converts values to other types if specified.
26060
+ * @function toObject
26061
+ * @memberof file.FileSyncUploadRequestBody
26062
+ * @static
26063
+ * @param {file.FileSyncUploadRequestBody} message FileSyncUploadRequestBody
26064
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26065
+ * @returns {Object.<string,*>} Plain object
26066
+ */
26067
+ FileSyncUploadRequestBody.toObject = function toObject(message, options) {
26068
+ if (!options)
26069
+ options = {};
26070
+ var object = {};
26071
+ if (options.defaults)
26072
+ object.opts = null;
26073
+ if (message.opts != null && message.hasOwnProperty("opts"))
26074
+ object.opts = $root.file.OptionsToUploadLocal.toObject(message.opts, options);
26075
+ return object;
26076
+ };
26077
+
26078
+ /**
26079
+ * Converts this FileSyncUploadRequestBody to JSON.
26080
+ * @function toJSON
26081
+ * @memberof file.FileSyncUploadRequestBody
26082
+ * @instance
26083
+ * @returns {Object.<string,*>} JSON object
26084
+ */
26085
+ FileSyncUploadRequestBody.prototype.toJSON = function toJSON() {
26086
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26087
+ };
26088
+
26089
+ /**
26090
+ * Gets the default type url for FileSyncUploadRequestBody
26091
+ * @function getTypeUrl
26092
+ * @memberof file.FileSyncUploadRequestBody
26093
+ * @static
26094
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26095
+ * @returns {string} The default type url
26096
+ */
26097
+ FileSyncUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26098
+ if (typeUrlPrefix === undefined) {
26099
+ typeUrlPrefix = "type.googleapis.com";
26100
+ }
26101
+ return typeUrlPrefix + "/file.FileSyncUploadRequestBody";
26102
+ };
26103
+
26104
+ return FileSyncUploadRequestBody;
26105
+ })();
26106
+
26107
+ file.FileSyncUploadReplyBody = (function() {
26108
+
26109
+ /**
26110
+ * Properties of a FileSyncUploadReplyBody.
26111
+ * @memberof file
26112
+ * @interface IFileSyncUploadReplyBody
26113
+ * @property {common.IUInt64Value|null} [uploadedVersion] FileSyncUploadReplyBody uploadedVersion
26114
+ */
26115
+
26116
+ /**
26117
+ * Constructs a new FileSyncUploadReplyBody.
26118
+ * @memberof file
26119
+ * @classdesc Represents a FileSyncUploadReplyBody.
26120
+ * @implements IFileSyncUploadReplyBody
26121
+ * @constructor
26122
+ * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
26123
+ */
26124
+ function FileSyncUploadReplyBody(properties) {
26125
+ if (properties)
26126
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26127
+ if (properties[keys[i]] != null)
26128
+ this[keys[i]] = properties[keys[i]];
26129
+ }
26130
+
26131
+ /**
26132
+ * FileSyncUploadReplyBody uploadedVersion.
26133
+ * @member {common.IUInt64Value|null|undefined} uploadedVersion
26134
+ * @memberof file.FileSyncUploadReplyBody
26135
+ * @instance
26136
+ */
26137
+ FileSyncUploadReplyBody.prototype.uploadedVersion = null;
26138
+
26139
+ /**
26140
+ * Creates a new FileSyncUploadReplyBody instance using the specified properties.
26141
+ * @function create
26142
+ * @memberof file.FileSyncUploadReplyBody
26143
+ * @static
26144
+ * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
26145
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody instance
26146
+ */
26147
+ FileSyncUploadReplyBody.create = function create(properties) {
26148
+ return new FileSyncUploadReplyBody(properties);
26149
+ };
26150
+
26151
+ /**
26152
+ * Encodes the specified FileSyncUploadReplyBody message. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
26153
+ * @function encode
26154
+ * @memberof file.FileSyncUploadReplyBody
26155
+ * @static
26156
+ * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
26157
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26158
+ * @returns {$protobuf.Writer} Writer
26159
+ */
26160
+ FileSyncUploadReplyBody.encode = function encode(message, writer) {
26161
+ if (!writer)
26162
+ writer = $Writer.create();
26163
+ if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
26164
+ $root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26165
+ return writer;
26166
+ };
26167
+
26168
+ /**
26169
+ * Encodes the specified FileSyncUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
26170
+ * @function encodeDelimited
26171
+ * @memberof file.FileSyncUploadReplyBody
26172
+ * @static
26173
+ * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
26174
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26175
+ * @returns {$protobuf.Writer} Writer
26176
+ */
26177
+ FileSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
26178
+ return this.encode(message, writer).ldelim();
26179
+ };
26180
+
26181
+ /**
26182
+ * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer.
26183
+ * @function decode
26184
+ * @memberof file.FileSyncUploadReplyBody
26185
+ * @static
26186
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26187
+ * @param {number} [length] Message length if known beforehand
26188
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
26189
+ * @throws {Error} If the payload is not a reader or valid buffer
26190
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26191
+ */
26192
+ FileSyncUploadReplyBody.decode = function decode(reader, length, error) {
26193
+ if (!(reader instanceof $Reader))
26194
+ reader = $Reader.create(reader);
26195
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncUploadReplyBody();
26196
+ while (reader.pos < end) {
26197
+ var tag = reader.uint32();
26198
+ if (tag === error)
26199
+ break;
26200
+ switch (tag >>> 3) {
26201
+ case 1: {
26202
+ message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
26203
+ break;
26204
+ }
26205
+ default:
26206
+ reader.skipType(tag & 7);
26207
+ break;
26208
+ }
26209
+ }
26210
+ return message;
26211
+ };
26212
+
26213
+ /**
26214
+ * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer, length delimited.
26215
+ * @function decodeDelimited
26216
+ * @memberof file.FileSyncUploadReplyBody
26217
+ * @static
26218
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26219
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
26220
+ * @throws {Error} If the payload is not a reader or valid buffer
26221
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26222
+ */
26223
+ FileSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
26224
+ if (!(reader instanceof $Reader))
26225
+ reader = new $Reader(reader);
26226
+ return this.decode(reader, reader.uint32());
26227
+ };
26228
+
26229
+ /**
26230
+ * Verifies a FileSyncUploadReplyBody message.
26231
+ * @function verify
26232
+ * @memberof file.FileSyncUploadReplyBody
26233
+ * @static
26234
+ * @param {Object.<string,*>} message Plain object to verify
26235
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26236
+ */
26237
+ FileSyncUploadReplyBody.verify = function verify(message) {
26238
+ if (typeof message !== "object" || message === null)
26239
+ return "object expected";
26240
+ if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
26241
+ var error = $root.common.UInt64Value.verify(message.uploadedVersion);
26242
+ if (error)
26243
+ return "uploadedVersion." + error;
26244
+ }
26245
+ return null;
26246
+ };
26247
+
26248
+ /**
26249
+ * Creates a FileSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
26250
+ * @function fromObject
26251
+ * @memberof file.FileSyncUploadReplyBody
26252
+ * @static
26253
+ * @param {Object.<string,*>} object Plain object
26254
+ * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
26255
+ */
26256
+ FileSyncUploadReplyBody.fromObject = function fromObject(object) {
26257
+ if (object instanceof $root.file.FileSyncUploadReplyBody)
26258
+ return object;
26259
+ var message = new $root.file.FileSyncUploadReplyBody();
26260
+ if (object.uploadedVersion != null) {
26261
+ if (typeof object.uploadedVersion !== "object")
26262
+ throw TypeError(".file.FileSyncUploadReplyBody.uploadedVersion: object expected");
26263
+ message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
26264
+ }
26265
+ return message;
26266
+ };
26267
+
26268
+ /**
26269
+ * Creates a plain object from a FileSyncUploadReplyBody message. Also converts values to other types if specified.
26270
+ * @function toObject
26271
+ * @memberof file.FileSyncUploadReplyBody
26272
+ * @static
26273
+ * @param {file.FileSyncUploadReplyBody} message FileSyncUploadReplyBody
26274
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26275
+ * @returns {Object.<string,*>} Plain object
26276
+ */
26277
+ FileSyncUploadReplyBody.toObject = function toObject(message, options) {
26278
+ if (!options)
26279
+ options = {};
26280
+ var object = {};
26281
+ if (options.defaults)
26282
+ object.uploadedVersion = null;
26283
+ if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
26284
+ object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
26285
+ return object;
26286
+ };
26287
+
26288
+ /**
26289
+ * Converts this FileSyncUploadReplyBody to JSON.
26290
+ * @function toJSON
26291
+ * @memberof file.FileSyncUploadReplyBody
26292
+ * @instance
26293
+ * @returns {Object.<string,*>} JSON object
26294
+ */
26295
+ FileSyncUploadReplyBody.prototype.toJSON = function toJSON() {
26296
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26297
+ };
26298
+
26299
+ /**
26300
+ * Gets the default type url for FileSyncUploadReplyBody
26301
+ * @function getTypeUrl
26302
+ * @memberof file.FileSyncUploadReplyBody
26303
+ * @static
26304
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26305
+ * @returns {string} The default type url
26306
+ */
26307
+ FileSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26308
+ if (typeUrlPrefix === undefined) {
26309
+ typeUrlPrefix = "type.googleapis.com";
26310
+ }
26311
+ return typeUrlPrefix + "/file.FileSyncUploadReplyBody";
26312
+ };
26313
+
26314
+ return FileSyncUploadReplyBody;
26315
+ })();
26316
+
26317
+ file.FileSyncStartUploadReplyBody = (function() {
26318
+
26319
+ /**
26320
+ * Properties of a FileSyncStartUploadReplyBody.
26321
+ * @memberof file
26322
+ * @interface IFileSyncStartUploadReplyBody
26323
+ * @property {file.FileSyncStartUploadReplyBody.IUploadInfo|null} [startedUpload] FileSyncStartUploadReplyBody startedUpload
26324
+ */
26325
+
26326
+ /**
26327
+ * Constructs a new FileSyncStartUploadReplyBody.
26328
+ * @memberof file
26329
+ * @classdesc Represents a FileSyncStartUploadReplyBody.
26330
+ * @implements IFileSyncStartUploadReplyBody
26331
+ * @constructor
26332
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
26333
+ */
26334
+ function FileSyncStartUploadReplyBody(properties) {
26335
+ if (properties)
26336
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26337
+ if (properties[keys[i]] != null)
26338
+ this[keys[i]] = properties[keys[i]];
26339
+ }
26340
+
26341
+ /**
26342
+ * FileSyncStartUploadReplyBody startedUpload.
26343
+ * @member {file.FileSyncStartUploadReplyBody.IUploadInfo|null|undefined} startedUpload
26344
+ * @memberof file.FileSyncStartUploadReplyBody
26345
+ * @instance
26346
+ */
26347
+ FileSyncStartUploadReplyBody.prototype.startedUpload = null;
26348
+
26349
+ /**
26350
+ * Creates a new FileSyncStartUploadReplyBody instance using the specified properties.
26351
+ * @function create
26352
+ * @memberof file.FileSyncStartUploadReplyBody
26353
+ * @static
26354
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
26355
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody instance
26356
+ */
26357
+ FileSyncStartUploadReplyBody.create = function create(properties) {
26358
+ return new FileSyncStartUploadReplyBody(properties);
26359
+ };
26360
+
26361
+ /**
26362
+ * Encodes the specified FileSyncStartUploadReplyBody message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
26363
+ * @function encode
26364
+ * @memberof file.FileSyncStartUploadReplyBody
26365
+ * @static
26366
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
26367
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26368
+ * @returns {$protobuf.Writer} Writer
26369
+ */
26370
+ FileSyncStartUploadReplyBody.encode = function encode(message, writer) {
26371
+ if (!writer)
26372
+ writer = $Writer.create();
26373
+ if (message.startedUpload != null && Object.hasOwnProperty.call(message, "startedUpload"))
26374
+ $root.file.FileSyncStartUploadReplyBody.UploadInfo.encode(message.startedUpload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26375
+ return writer;
26376
+ };
26377
+
26378
+ /**
26379
+ * Encodes the specified FileSyncStartUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
26380
+ * @function encodeDelimited
26381
+ * @memberof file.FileSyncStartUploadReplyBody
26382
+ * @static
26383
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
26384
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26385
+ * @returns {$protobuf.Writer} Writer
26386
+ */
26387
+ FileSyncStartUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
26388
+ return this.encode(message, writer).ldelim();
26389
+ };
26390
+
26391
+ /**
26392
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer.
26393
+ * @function decode
26394
+ * @memberof file.FileSyncStartUploadReplyBody
26395
+ * @static
26396
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26397
+ * @param {number} [length] Message length if known beforehand
26398
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
26399
+ * @throws {Error} If the payload is not a reader or valid buffer
26400
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26401
+ */
26402
+ FileSyncStartUploadReplyBody.decode = function decode(reader, length, error) {
26403
+ if (!(reader instanceof $Reader))
26404
+ reader = $Reader.create(reader);
26405
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody();
26406
+ while (reader.pos < end) {
26407
+ var tag = reader.uint32();
26408
+ if (tag === error)
26409
+ break;
26410
+ switch (tag >>> 3) {
26411
+ case 1: {
26412
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.decode(reader, reader.uint32());
26413
+ break;
26414
+ }
26415
+ default:
26416
+ reader.skipType(tag & 7);
26417
+ break;
26418
+ }
26419
+ }
26420
+ return message;
26421
+ };
26422
+
26423
+ /**
26424
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer, length delimited.
26425
+ * @function decodeDelimited
26426
+ * @memberof file.FileSyncStartUploadReplyBody
26427
+ * @static
26428
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26429
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
26430
+ * @throws {Error} If the payload is not a reader or valid buffer
26431
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26432
+ */
26433
+ FileSyncStartUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
26434
+ if (!(reader instanceof $Reader))
26435
+ reader = new $Reader(reader);
26436
+ return this.decode(reader, reader.uint32());
26437
+ };
26438
+
26439
+ /**
26440
+ * Verifies a FileSyncStartUploadReplyBody message.
26441
+ * @function verify
26442
+ * @memberof file.FileSyncStartUploadReplyBody
26443
+ * @static
26444
+ * @param {Object.<string,*>} message Plain object to verify
26445
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26446
+ */
26447
+ FileSyncStartUploadReplyBody.verify = function verify(message) {
26448
+ if (typeof message !== "object" || message === null)
26449
+ return "object expected";
26450
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload")) {
26451
+ var error = $root.file.FileSyncStartUploadReplyBody.UploadInfo.verify(message.startedUpload);
26452
+ if (error)
26453
+ return "startedUpload." + error;
26454
+ }
26455
+ return null;
26456
+ };
26457
+
26458
+ /**
26459
+ * Creates a FileSyncStartUploadReplyBody message from a plain object. Also converts values to their respective internal types.
26460
+ * @function fromObject
26461
+ * @memberof file.FileSyncStartUploadReplyBody
26462
+ * @static
26463
+ * @param {Object.<string,*>} object Plain object
26464
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
26465
+ */
26466
+ FileSyncStartUploadReplyBody.fromObject = function fromObject(object) {
26467
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody)
26468
+ return object;
26469
+ var message = new $root.file.FileSyncStartUploadReplyBody();
26470
+ if (object.startedUpload != null) {
26471
+ if (typeof object.startedUpload !== "object")
26472
+ throw TypeError(".file.FileSyncStartUploadReplyBody.startedUpload: object expected");
26473
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.fromObject(object.startedUpload);
26474
+ }
26475
+ return message;
26476
+ };
26477
+
26478
+ /**
26479
+ * Creates a plain object from a FileSyncStartUploadReplyBody message. Also converts values to other types if specified.
26480
+ * @function toObject
26481
+ * @memberof file.FileSyncStartUploadReplyBody
26482
+ * @static
26483
+ * @param {file.FileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody
26484
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26485
+ * @returns {Object.<string,*>} Plain object
26486
+ */
26487
+ FileSyncStartUploadReplyBody.toObject = function toObject(message, options) {
26488
+ if (!options)
26489
+ options = {};
26490
+ var object = {};
26491
+ if (options.defaults)
26492
+ object.startedUpload = null;
26493
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload"))
26494
+ object.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.toObject(message.startedUpload, options);
26495
+ return object;
26496
+ };
26497
+
26498
+ /**
26499
+ * Converts this FileSyncStartUploadReplyBody to JSON.
26500
+ * @function toJSON
26501
+ * @memberof file.FileSyncStartUploadReplyBody
26502
+ * @instance
26503
+ * @returns {Object.<string,*>} JSON object
26504
+ */
26505
+ FileSyncStartUploadReplyBody.prototype.toJSON = function toJSON() {
26506
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26507
+ };
26508
+
26509
+ /**
26510
+ * Gets the default type url for FileSyncStartUploadReplyBody
26511
+ * @function getTypeUrl
26512
+ * @memberof file.FileSyncStartUploadReplyBody
26513
+ * @static
26514
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26515
+ * @returns {string} The default type url
26516
+ */
26517
+ FileSyncStartUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26518
+ if (typeUrlPrefix === undefined) {
26519
+ typeUrlPrefix = "type.googleapis.com";
26520
+ }
26521
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody";
26522
+ };
26523
+
26524
+ FileSyncStartUploadReplyBody.UploadInfo = (function() {
26525
+
26526
+ /**
26527
+ * Properties of an UploadInfo.
26528
+ * @memberof file.FileSyncStartUploadReplyBody
26529
+ * @interface IUploadInfo
26530
+ * @property {number|Long|null} [uploadVersion] UploadInfo uploadVersion
26531
+ * @property {number|Long|null} [uploadTaskId] UploadInfo uploadTaskId
26532
+ */
26533
+
26534
+ /**
26535
+ * Constructs a new UploadInfo.
26536
+ * @memberof file.FileSyncStartUploadReplyBody
26537
+ * @classdesc Represents an UploadInfo.
26538
+ * @implements IUploadInfo
26539
+ * @constructor
26540
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
26541
+ */
26542
+ function UploadInfo(properties) {
26543
+ if (properties)
26544
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26545
+ if (properties[keys[i]] != null)
26546
+ this[keys[i]] = properties[keys[i]];
26547
+ }
26548
+
26549
+ /**
26550
+ * UploadInfo uploadVersion.
26551
+ * @member {number|Long} uploadVersion
26552
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26553
+ * @instance
26554
+ */
26555
+ UploadInfo.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26556
+
26557
+ /**
26558
+ * UploadInfo uploadTaskId.
26559
+ * @member {number|Long} uploadTaskId
26560
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26561
+ * @instance
26562
+ */
26563
+ UploadInfo.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26564
+
26565
+ /**
26566
+ * Creates a new UploadInfo instance using the specified properties.
26567
+ * @function create
26568
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26569
+ * @static
26570
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
26571
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo instance
26572
+ */
26573
+ UploadInfo.create = function create(properties) {
26574
+ return new UploadInfo(properties);
26575
+ };
26576
+
26577
+ /**
26578
+ * Encodes the specified UploadInfo message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
26579
+ * @function encode
26580
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26581
+ * @static
26582
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
26583
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26584
+ * @returns {$protobuf.Writer} Writer
26585
+ */
26586
+ UploadInfo.encode = function encode(message, writer) {
26587
+ if (!writer)
26588
+ writer = $Writer.create();
26589
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
26590
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadVersion);
26591
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
26592
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
26593
+ return writer;
26594
+ };
26595
+
26596
+ /**
26597
+ * Encodes the specified UploadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
26598
+ * @function encodeDelimited
26599
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26600
+ * @static
26601
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
26602
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26603
+ * @returns {$protobuf.Writer} Writer
26604
+ */
26605
+ UploadInfo.encodeDelimited = function encodeDelimited(message, writer) {
26606
+ return this.encode(message, writer).ldelim();
26607
+ };
26608
+
26609
+ /**
26610
+ * Decodes an UploadInfo message from the specified reader or buffer.
26611
+ * @function decode
26612
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26613
+ * @static
26614
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26615
+ * @param {number} [length] Message length if known beforehand
26616
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
26617
+ * @throws {Error} If the payload is not a reader or valid buffer
26618
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26619
+ */
26620
+ UploadInfo.decode = function decode(reader, length, error) {
26621
+ if (!(reader instanceof $Reader))
26622
+ reader = $Reader.create(reader);
26623
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
26624
+ while (reader.pos < end) {
26625
+ var tag = reader.uint32();
26626
+ if (tag === error)
26627
+ break;
26628
+ switch (tag >>> 3) {
26629
+ case 1: {
26630
+ message.uploadVersion = reader.uint64();
26631
+ break;
26632
+ }
26633
+ case 2: {
26634
+ message.uploadTaskId = reader.uint64();
26635
+ break;
26636
+ }
26637
+ default:
26638
+ reader.skipType(tag & 7);
26639
+ break;
26640
+ }
26641
+ }
26642
+ return message;
26643
+ };
26644
+
26645
+ /**
26646
+ * Decodes an UploadInfo message from the specified reader or buffer, length delimited.
26647
+ * @function decodeDelimited
26648
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26649
+ * @static
26650
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26651
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
26652
+ * @throws {Error} If the payload is not a reader or valid buffer
26653
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26654
+ */
26655
+ UploadInfo.decodeDelimited = function decodeDelimited(reader) {
26656
+ if (!(reader instanceof $Reader))
26657
+ reader = new $Reader(reader);
26658
+ return this.decode(reader, reader.uint32());
26659
+ };
26660
+
26661
+ /**
26662
+ * Verifies an UploadInfo message.
26663
+ * @function verify
26664
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26665
+ * @static
26666
+ * @param {Object.<string,*>} message Plain object to verify
26667
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26668
+ */
26669
+ UploadInfo.verify = function verify(message) {
26670
+ if (typeof message !== "object" || message === null)
26671
+ return "object expected";
26672
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
26673
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
26674
+ return "uploadVersion: integer|Long expected";
26675
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
26676
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
26677
+ return "uploadTaskId: integer|Long expected";
26678
+ return null;
26679
+ };
26680
+
26681
+ /**
26682
+ * Creates an UploadInfo message from a plain object. Also converts values to their respective internal types.
26683
+ * @function fromObject
26684
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26685
+ * @static
26686
+ * @param {Object.<string,*>} object Plain object
26687
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
26688
+ */
26689
+ UploadInfo.fromObject = function fromObject(object) {
26690
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody.UploadInfo)
26691
+ return object;
26692
+ var message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
26693
+ if (object.uploadVersion != null)
26694
+ if ($util.Long)
26695
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
26696
+ else if (typeof object.uploadVersion === "string")
26697
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
26698
+ else if (typeof object.uploadVersion === "number")
26699
+ message.uploadVersion = object.uploadVersion;
26700
+ else if (typeof object.uploadVersion === "object")
26701
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
26702
+ if (object.uploadTaskId != null)
26703
+ if ($util.Long)
26704
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
26705
+ else if (typeof object.uploadTaskId === "string")
26706
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
26707
+ else if (typeof object.uploadTaskId === "number")
26708
+ message.uploadTaskId = object.uploadTaskId;
26709
+ else if (typeof object.uploadTaskId === "object")
26710
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
26711
+ return message;
26712
+ };
26713
+
26714
+ /**
26715
+ * Creates a plain object from an UploadInfo message. Also converts values to other types if specified.
26716
+ * @function toObject
26717
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26718
+ * @static
26719
+ * @param {file.FileSyncStartUploadReplyBody.UploadInfo} message UploadInfo
26720
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26721
+ * @returns {Object.<string,*>} Plain object
26722
+ */
26723
+ UploadInfo.toObject = function toObject(message, options) {
26724
+ if (!options)
26725
+ options = {};
26726
+ var object = {};
26727
+ if (options.defaults) {
26728
+ if ($util.Long) {
26729
+ var long = new $util.Long(0, 0, true);
26730
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26731
+ } else
26732
+ object.uploadVersion = options.longs === String ? "0" : 0;
26733
+ if ($util.Long) {
26734
+ var long = new $util.Long(0, 0, true);
26735
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26736
+ } else
26737
+ object.uploadTaskId = options.longs === String ? "0" : 0;
26738
+ }
26739
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
26740
+ if (typeof message.uploadVersion === "number")
26741
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
26742
+ else
26743
+ object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
26744
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
26745
+ if (typeof message.uploadTaskId === "number")
26746
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
26747
+ else
26748
+ object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
26749
+ return object;
26750
+ };
26751
+
26752
+ /**
26753
+ * Converts this UploadInfo to JSON.
26754
+ * @function toJSON
26755
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26756
+ * @instance
26757
+ * @returns {Object.<string,*>} JSON object
26758
+ */
26759
+ UploadInfo.prototype.toJSON = function toJSON() {
26760
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26761
+ };
26762
+
26763
+ /**
26764
+ * Gets the default type url for UploadInfo
26765
+ * @function getTypeUrl
26766
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
26767
+ * @static
26768
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26769
+ * @returns {string} The default type url
26770
+ */
26771
+ UploadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
26772
+ if (typeUrlPrefix === undefined) {
26773
+ typeUrlPrefix = "type.googleapis.com";
26774
+ }
26775
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody.UploadInfo";
26776
+ };
26777
+
26778
+ return UploadInfo;
26779
+ })();
26780
+
26781
+ return FileSyncStartUploadReplyBody;
26782
+ })();
26783
+
26784
+ file.OptionsToUploadLocal = (function() {
26785
+
26786
+ /**
26787
+ * Properties of an OptionsToUploadLocal.
26788
+ * @memberof file
26789
+ * @interface IOptionsToUploadLocal
26790
+ * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
26791
+ * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
26792
+ */
26793
+
26794
+ /**
26795
+ * Constructs a new OptionsToUploadLocal.
26796
+ * @memberof file
26797
+ * @classdesc Represents an OptionsToUploadLocal.
26798
+ * @implements IOptionsToUploadLocal
26799
+ * @constructor
26800
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
26801
+ */
26802
+ function OptionsToUploadLocal(properties) {
26803
+ if (properties)
26804
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26805
+ if (properties[keys[i]] != null)
26806
+ this[keys[i]] = properties[keys[i]];
26807
+ }
26808
+
26809
+ /**
26810
+ * OptionsToUploadLocal localVersion.
26811
+ * @member {common.IUInt64Value|null|undefined} localVersion
26812
+ * @memberof file.OptionsToUploadLocal
26813
+ * @instance
26814
+ */
26815
+ OptionsToUploadLocal.prototype.localVersion = null;
26816
+
26817
+ /**
26818
+ * OptionsToUploadLocal uploadVersion.
26819
+ * @member {common.IUInt64Value|null|undefined} uploadVersion
26820
+ * @memberof file.OptionsToUploadLocal
26821
+ * @instance
26822
+ */
26823
+ OptionsToUploadLocal.prototype.uploadVersion = null;
26824
+
26825
+ /**
26826
+ * Creates a new OptionsToUploadLocal instance using the specified properties.
26827
+ * @function create
26828
+ * @memberof file.OptionsToUploadLocal
26829
+ * @static
26830
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
26831
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
26832
+ */
26833
+ OptionsToUploadLocal.create = function create(properties) {
26834
+ return new OptionsToUploadLocal(properties);
26835
+ };
26836
+
26837
+ /**
26838
+ * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
26839
+ * @function encode
26840
+ * @memberof file.OptionsToUploadLocal
26841
+ * @static
26842
+ * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
26843
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26844
+ * @returns {$protobuf.Writer} Writer
26845
+ */
26846
+ OptionsToUploadLocal.encode = function encode(message, writer) {
26847
+ if (!writer)
26848
+ writer = $Writer.create();
26849
+ if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
26850
+ $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26851
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
26852
+ $root.common.UInt64Value.encode(message.uploadVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26853
+ return writer;
26854
+ };
26855
+
26856
+ /**
26857
+ * Encodes the specified OptionsToUploadLocal message, length delimited. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
26858
+ * @function encodeDelimited
26859
+ * @memberof file.OptionsToUploadLocal
26860
+ * @static
26861
+ * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
26862
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26863
+ * @returns {$protobuf.Writer} Writer
26864
+ */
26865
+ OptionsToUploadLocal.encodeDelimited = function encodeDelimited(message, writer) {
26866
+ return this.encode(message, writer).ldelim();
26867
+ };
26868
+
26869
+ /**
26870
+ * Decodes an OptionsToUploadLocal message from the specified reader or buffer.
26871
+ * @function decode
26872
+ * @memberof file.OptionsToUploadLocal
26873
+ * @static
26874
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26875
+ * @param {number} [length] Message length if known beforehand
26876
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
26877
+ * @throws {Error} If the payload is not a reader or valid buffer
26878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26879
+ */
26880
+ OptionsToUploadLocal.decode = function decode(reader, length, error) {
26881
+ if (!(reader instanceof $Reader))
26882
+ reader = $Reader.create(reader);
26883
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToUploadLocal();
26884
+ while (reader.pos < end) {
26885
+ var tag = reader.uint32();
26886
+ if (tag === error)
26887
+ break;
26888
+ switch (tag >>> 3) {
26889
+ case 1: {
26890
+ message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
26891
+ break;
26892
+ }
26893
+ case 2: {
26894
+ message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
26895
+ break;
26896
+ }
26897
+ default:
26898
+ reader.skipType(tag & 7);
26899
+ break;
26900
+ }
26901
+ }
26902
+ return message;
26903
+ };
26904
+
26905
+ /**
26906
+ * Decodes an OptionsToUploadLocal message from the specified reader or buffer, length delimited.
26907
+ * @function decodeDelimited
26908
+ * @memberof file.OptionsToUploadLocal
26909
+ * @static
26910
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26911
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
26912
+ * @throws {Error} If the payload is not a reader or valid buffer
26913
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26914
+ */
26915
+ OptionsToUploadLocal.decodeDelimited = function decodeDelimited(reader) {
26916
+ if (!(reader instanceof $Reader))
26917
+ reader = new $Reader(reader);
26918
+ return this.decode(reader, reader.uint32());
26919
+ };
26920
+
26921
+ /**
26922
+ * Verifies an OptionsToUploadLocal message.
26923
+ * @function verify
26924
+ * @memberof file.OptionsToUploadLocal
26925
+ * @static
26926
+ * @param {Object.<string,*>} message Plain object to verify
26927
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26928
+ */
26929
+ OptionsToUploadLocal.verify = function verify(message) {
26930
+ if (typeof message !== "object" || message === null)
26931
+ return "object expected";
26932
+ if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
26933
+ var error = $root.common.UInt64Value.verify(message.localVersion);
26934
+ if (error)
26935
+ return "localVersion." + error;
26936
+ }
26937
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion")) {
26938
+ var error = $root.common.UInt64Value.verify(message.uploadVersion);
26939
+ if (error)
26940
+ return "uploadVersion." + error;
26941
+ }
26942
+ return null;
26943
+ };
26944
+
26945
+ /**
26946
+ * Creates an OptionsToUploadLocal message from a plain object. Also converts values to their respective internal types.
26947
+ * @function fromObject
26948
+ * @memberof file.OptionsToUploadLocal
26949
+ * @static
26950
+ * @param {Object.<string,*>} object Plain object
26951
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
26952
+ */
26953
+ OptionsToUploadLocal.fromObject = function fromObject(object) {
26954
+ if (object instanceof $root.file.OptionsToUploadLocal)
26955
+ return object;
26956
+ var message = new $root.file.OptionsToUploadLocal();
26957
+ if (object.localVersion != null) {
26958
+ if (typeof object.localVersion !== "object")
26959
+ throw TypeError(".file.OptionsToUploadLocal.localVersion: object expected");
26960
+ message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
26961
+ }
26962
+ if (object.uploadVersion != null) {
26963
+ if (typeof object.uploadVersion !== "object")
26964
+ throw TypeError(".file.OptionsToUploadLocal.uploadVersion: object expected");
26965
+ message.uploadVersion = $root.common.UInt64Value.fromObject(object.uploadVersion);
26966
+ }
26967
+ return message;
26968
+ };
26969
+
26970
+ /**
26971
+ * Creates a plain object from an OptionsToUploadLocal message. Also converts values to other types if specified.
27037
26972
  * @function toObject
27038
- * @memberof file.FileSyncUploadRequestBody
26973
+ * @memberof file.OptionsToUploadLocal
27039
26974
  * @static
27040
- * @param {file.FileSyncUploadRequestBody} message FileSyncUploadRequestBody
26975
+ * @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
27041
26976
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27042
26977
  * @returns {Object.<string,*>} Plain object
27043
26978
  */
27044
- FileSyncUploadRequestBody.toObject = function toObject(message, options) {
26979
+ OptionsToUploadLocal.toObject = function toObject(message, options) {
27045
26980
  if (!options)
27046
26981
  options = {};
27047
26982
  var object = {};
27048
- if (options.defaults)
27049
- object.opts = null;
27050
- if (message.opts != null && message.hasOwnProperty("opts"))
27051
- object.opts = $root.file.OptionsToUploadLocal.toObject(message.opts, options);
26983
+ if (options.defaults) {
26984
+ object.localVersion = null;
26985
+ object.uploadVersion = null;
26986
+ }
26987
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
26988
+ object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
26989
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
26990
+ object.uploadVersion = $root.common.UInt64Value.toObject(message.uploadVersion, options);
27052
26991
  return object;
27053
26992
  };
27054
26993
 
27055
26994
  /**
27056
- * Converts this FileSyncUploadRequestBody to JSON.
26995
+ * Converts this OptionsToUploadLocal to JSON.
27057
26996
  * @function toJSON
27058
- * @memberof file.FileSyncUploadRequestBody
26997
+ * @memberof file.OptionsToUploadLocal
27059
26998
  * @instance
27060
26999
  * @returns {Object.<string,*>} JSON object
27061
27000
  */
27062
- FileSyncUploadRequestBody.prototype.toJSON = function toJSON() {
27001
+ OptionsToUploadLocal.prototype.toJSON = function toJSON() {
27063
27002
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27064
27003
  };
27065
27004
 
27066
27005
  /**
27067
- * Gets the default type url for FileSyncUploadRequestBody
27006
+ * Gets the default type url for OptionsToUploadLocal
27068
27007
  * @function getTypeUrl
27069
- * @memberof file.FileSyncUploadRequestBody
27008
+ * @memberof file.OptionsToUploadLocal
27070
27009
  * @static
27071
27010
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
27072
27011
  * @returns {string} The default type url
27073
27012
  */
27074
- FileSyncUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27013
+ OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27075
27014
  if (typeUrlPrefix === undefined) {
27076
27015
  typeUrlPrefix = "type.googleapis.com";
27077
27016
  }
27078
- return typeUrlPrefix + "/file.FileSyncUploadRequestBody";
27017
+ return typeUrlPrefix + "/file.OptionsToUploadLocal";
27079
27018
  };
27080
27019
 
27081
- return FileSyncUploadRequestBody;
27020
+ return OptionsToUploadLocal;
27082
27021
  })();
27083
27022
 
27084
- file.FileSyncUploadReplyBody = (function() {
27023
+ file.WatchUploadRequestBody = (function() {
27085
27024
 
27086
27025
  /**
27087
- * Properties of a FileSyncUploadReplyBody.
27026
+ * Properties of a WatchUploadRequestBody.
27088
27027
  * @memberof file
27089
- * @interface IFileSyncUploadReplyBody
27090
- * @property {common.IUInt64Value|null} [uploadedVersion] FileSyncUploadReplyBody uploadedVersion
27028
+ * @interface IWatchUploadRequestBody
27029
+ * @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
27091
27030
  */
27092
27031
 
27093
27032
  /**
27094
- * Constructs a new FileSyncUploadReplyBody.
27033
+ * Constructs a new WatchUploadRequestBody.
27095
27034
  * @memberof file
27096
- * @classdesc Represents a FileSyncUploadReplyBody.
27097
- * @implements IFileSyncUploadReplyBody
27035
+ * @classdesc Represents a WatchUploadRequestBody.
27036
+ * @implements IWatchUploadRequestBody
27098
27037
  * @constructor
27099
- * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
27038
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
27100
27039
  */
27101
- function FileSyncUploadReplyBody(properties) {
27040
+ function WatchUploadRequestBody(properties) {
27102
27041
  if (properties)
27103
27042
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27104
27043
  if (properties[keys[i]] != null)
@@ -27106,77 +27045,77 @@ $root.file = (function() {
27106
27045
  }
27107
27046
 
27108
27047
  /**
27109
- * FileSyncUploadReplyBody uploadedVersion.
27110
- * @member {common.IUInt64Value|null|undefined} uploadedVersion
27111
- * @memberof file.FileSyncUploadReplyBody
27048
+ * WatchUploadRequestBody uploadTaskId.
27049
+ * @member {number|Long} uploadTaskId
27050
+ * @memberof file.WatchUploadRequestBody
27112
27051
  * @instance
27113
27052
  */
27114
- FileSyncUploadReplyBody.prototype.uploadedVersion = null;
27053
+ WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27115
27054
 
27116
27055
  /**
27117
- * Creates a new FileSyncUploadReplyBody instance using the specified properties.
27056
+ * Creates a new WatchUploadRequestBody instance using the specified properties.
27118
27057
  * @function create
27119
- * @memberof file.FileSyncUploadReplyBody
27058
+ * @memberof file.WatchUploadRequestBody
27120
27059
  * @static
27121
- * @param {file.IFileSyncUploadReplyBody=} [properties] Properties to set
27122
- * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody instance
27060
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
27061
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
27123
27062
  */
27124
- FileSyncUploadReplyBody.create = function create(properties) {
27125
- return new FileSyncUploadReplyBody(properties);
27063
+ WatchUploadRequestBody.create = function create(properties) {
27064
+ return new WatchUploadRequestBody(properties);
27126
27065
  };
27127
27066
 
27128
27067
  /**
27129
- * Encodes the specified FileSyncUploadReplyBody message. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
27068
+ * Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
27130
27069
  * @function encode
27131
- * @memberof file.FileSyncUploadReplyBody
27070
+ * @memberof file.WatchUploadRequestBody
27132
27071
  * @static
27133
- * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
27072
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
27134
27073
  * @param {$protobuf.Writer} [writer] Writer to encode to
27135
27074
  * @returns {$protobuf.Writer} Writer
27136
27075
  */
27137
- FileSyncUploadReplyBody.encode = function encode(message, writer) {
27076
+ WatchUploadRequestBody.encode = function encode(message, writer) {
27138
27077
  if (!writer)
27139
27078
  writer = $Writer.create();
27140
- if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
27141
- $root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
27079
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
27080
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
27142
27081
  return writer;
27143
27082
  };
27144
27083
 
27145
27084
  /**
27146
- * Encodes the specified FileSyncUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncUploadReplyBody.verify|verify} messages.
27085
+ * Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
27147
27086
  * @function encodeDelimited
27148
- * @memberof file.FileSyncUploadReplyBody
27087
+ * @memberof file.WatchUploadRequestBody
27149
27088
  * @static
27150
- * @param {file.IFileSyncUploadReplyBody} message FileSyncUploadReplyBody message or plain object to encode
27089
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
27151
27090
  * @param {$protobuf.Writer} [writer] Writer to encode to
27152
27091
  * @returns {$protobuf.Writer} Writer
27153
27092
  */
27154
- FileSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
27093
+ WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
27155
27094
  return this.encode(message, writer).ldelim();
27156
27095
  };
27157
27096
 
27158
27097
  /**
27159
- * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer.
27098
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer.
27160
27099
  * @function decode
27161
- * @memberof file.FileSyncUploadReplyBody
27100
+ * @memberof file.WatchUploadRequestBody
27162
27101
  * @static
27163
27102
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27164
27103
  * @param {number} [length] Message length if known beforehand
27165
- * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
27104
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
27166
27105
  * @throws {Error} If the payload is not a reader or valid buffer
27167
27106
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
27168
27107
  */
27169
- FileSyncUploadReplyBody.decode = function decode(reader, length, error) {
27108
+ WatchUploadRequestBody.decode = function decode(reader, length, error) {
27170
27109
  if (!(reader instanceof $Reader))
27171
27110
  reader = $Reader.create(reader);
27172
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncUploadReplyBody();
27111
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
27173
27112
  while (reader.pos < end) {
27174
27113
  var tag = reader.uint32();
27175
27114
  if (tag === error)
27176
27115
  break;
27177
27116
  switch (tag >>> 3) {
27178
27117
  case 1: {
27179
- message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
27118
+ message.uploadTaskId = reader.uint64();
27180
27119
  break;
27181
27120
  }
27182
27121
  default:
@@ -27188,128 +27127,139 @@ $root.file = (function() {
27188
27127
  };
27189
27128
 
27190
27129
  /**
27191
- * Decodes a FileSyncUploadReplyBody message from the specified reader or buffer, length delimited.
27130
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
27192
27131
  * @function decodeDelimited
27193
- * @memberof file.FileSyncUploadReplyBody
27132
+ * @memberof file.WatchUploadRequestBody
27194
27133
  * @static
27195
27134
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27196
- * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
27135
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
27197
27136
  * @throws {Error} If the payload is not a reader or valid buffer
27198
27137
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
27199
27138
  */
27200
- FileSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
27139
+ WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
27201
27140
  if (!(reader instanceof $Reader))
27202
27141
  reader = new $Reader(reader);
27203
27142
  return this.decode(reader, reader.uint32());
27204
27143
  };
27205
27144
 
27206
27145
  /**
27207
- * Verifies a FileSyncUploadReplyBody message.
27146
+ * Verifies a WatchUploadRequestBody message.
27208
27147
  * @function verify
27209
- * @memberof file.FileSyncUploadReplyBody
27148
+ * @memberof file.WatchUploadRequestBody
27210
27149
  * @static
27211
27150
  * @param {Object.<string,*>} message Plain object to verify
27212
27151
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
27213
27152
  */
27214
- FileSyncUploadReplyBody.verify = function verify(message) {
27153
+ WatchUploadRequestBody.verify = function verify(message) {
27215
27154
  if (typeof message !== "object" || message === null)
27216
27155
  return "object expected";
27217
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
27218
- var error = $root.common.UInt64Value.verify(message.uploadedVersion);
27219
- if (error)
27220
- return "uploadedVersion." + error;
27221
- }
27156
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
27157
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
27158
+ return "uploadTaskId: integer|Long expected";
27222
27159
  return null;
27223
27160
  };
27224
27161
 
27225
27162
  /**
27226
- * Creates a FileSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
27163
+ * Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
27227
27164
  * @function fromObject
27228
- * @memberof file.FileSyncUploadReplyBody
27165
+ * @memberof file.WatchUploadRequestBody
27229
27166
  * @static
27230
27167
  * @param {Object.<string,*>} object Plain object
27231
- * @returns {file.FileSyncUploadReplyBody} FileSyncUploadReplyBody
27168
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
27232
27169
  */
27233
- FileSyncUploadReplyBody.fromObject = function fromObject(object) {
27234
- if (object instanceof $root.file.FileSyncUploadReplyBody)
27170
+ WatchUploadRequestBody.fromObject = function fromObject(object) {
27171
+ if (object instanceof $root.file.WatchUploadRequestBody)
27235
27172
  return object;
27236
- var message = new $root.file.FileSyncUploadReplyBody();
27237
- if (object.uploadedVersion != null) {
27238
- if (typeof object.uploadedVersion !== "object")
27239
- throw TypeError(".file.FileSyncUploadReplyBody.uploadedVersion: object expected");
27240
- message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
27241
- }
27173
+ var message = new $root.file.WatchUploadRequestBody();
27174
+ if (object.uploadTaskId != null)
27175
+ if ($util.Long)
27176
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
27177
+ else if (typeof object.uploadTaskId === "string")
27178
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
27179
+ else if (typeof object.uploadTaskId === "number")
27180
+ message.uploadTaskId = object.uploadTaskId;
27181
+ else if (typeof object.uploadTaskId === "object")
27182
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
27242
27183
  return message;
27243
27184
  };
27244
27185
 
27245
27186
  /**
27246
- * Creates a plain object from a FileSyncUploadReplyBody message. Also converts values to other types if specified.
27187
+ * Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
27247
27188
  * @function toObject
27248
- * @memberof file.FileSyncUploadReplyBody
27189
+ * @memberof file.WatchUploadRequestBody
27249
27190
  * @static
27250
- * @param {file.FileSyncUploadReplyBody} message FileSyncUploadReplyBody
27191
+ * @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
27251
27192
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27252
27193
  * @returns {Object.<string,*>} Plain object
27253
27194
  */
27254
- FileSyncUploadReplyBody.toObject = function toObject(message, options) {
27195
+ WatchUploadRequestBody.toObject = function toObject(message, options) {
27255
27196
  if (!options)
27256
27197
  options = {};
27257
27198
  var object = {};
27258
27199
  if (options.defaults)
27259
- object.uploadedVersion = null;
27260
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
27261
- object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
27200
+ if ($util.Long) {
27201
+ var long = new $util.Long(0, 0, true);
27202
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27203
+ } else
27204
+ object.uploadTaskId = options.longs === String ? "0" : 0;
27205
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
27206
+ if (typeof message.uploadTaskId === "number")
27207
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
27208
+ else
27209
+ object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
27262
27210
  return object;
27263
27211
  };
27264
27212
 
27265
27213
  /**
27266
- * Converts this FileSyncUploadReplyBody to JSON.
27214
+ * Converts this WatchUploadRequestBody to JSON.
27267
27215
  * @function toJSON
27268
- * @memberof file.FileSyncUploadReplyBody
27216
+ * @memberof file.WatchUploadRequestBody
27269
27217
  * @instance
27270
27218
  * @returns {Object.<string,*>} JSON object
27271
27219
  */
27272
- FileSyncUploadReplyBody.prototype.toJSON = function toJSON() {
27220
+ WatchUploadRequestBody.prototype.toJSON = function toJSON() {
27273
27221
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27274
27222
  };
27275
27223
 
27276
27224
  /**
27277
- * Gets the default type url for FileSyncUploadReplyBody
27225
+ * Gets the default type url for WatchUploadRequestBody
27278
27226
  * @function getTypeUrl
27279
- * @memberof file.FileSyncUploadReplyBody
27227
+ * @memberof file.WatchUploadRequestBody
27280
27228
  * @static
27281
27229
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
27282
27230
  * @returns {string} The default type url
27283
27231
  */
27284
- FileSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27232
+ WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27285
27233
  if (typeUrlPrefix === undefined) {
27286
27234
  typeUrlPrefix = "type.googleapis.com";
27287
27235
  }
27288
- return typeUrlPrefix + "/file.FileSyncUploadReplyBody";
27236
+ return typeUrlPrefix + "/file.WatchUploadRequestBody";
27289
27237
  };
27290
27238
 
27291
- return FileSyncUploadReplyBody;
27239
+ return WatchUploadRequestBody;
27292
27240
  })();
27293
27241
 
27294
- file.OptionsToUploadLocal = (function() {
27242
+ file.UploadEventMsg = (function() {
27295
27243
 
27296
27244
  /**
27297
- * Properties of an OptionsToUploadLocal.
27245
+ * Properties of an UploadEventMsg.
27298
27246
  * @memberof file
27299
- * @interface IOptionsToUploadLocal
27300
- * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
27301
- * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
27247
+ * @interface IUploadEventMsg
27248
+ * @property {string|null} [type] UploadEventMsg type
27249
+ * @property {number|Long|null} [uploadTaskId] UploadEventMsg uploadTaskId
27250
+ * @property {number|Long|null} [localVersion] UploadEventMsg localVersion
27251
+ * @property {number|Long|null} [uploadVersion] UploadEventMsg uploadVersion
27302
27252
  */
27303
27253
 
27304
27254
  /**
27305
- * Constructs a new OptionsToUploadLocal.
27255
+ * Constructs a new UploadEventMsg.
27306
27256
  * @memberof file
27307
- * @classdesc Represents an OptionsToUploadLocal.
27308
- * @implements IOptionsToUploadLocal
27257
+ * @classdesc Represents an UploadEventMsg.
27258
+ * @implements IUploadEventMsg
27309
27259
  * @constructor
27310
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
27260
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
27311
27261
  */
27312
- function OptionsToUploadLocal(properties) {
27262
+ function UploadEventMsg(properties) {
27313
27263
  if (properties)
27314
27264
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27315
27265
  if (properties[keys[i]] != null)
@@ -27317,91 +27267,119 @@ $root.file = (function() {
27317
27267
  }
27318
27268
 
27319
27269
  /**
27320
- * OptionsToUploadLocal localVersion.
27321
- * @member {common.IUInt64Value|null|undefined} localVersion
27322
- * @memberof file.OptionsToUploadLocal
27270
+ * UploadEventMsg type.
27271
+ * @member {string} type
27272
+ * @memberof file.UploadEventMsg
27323
27273
  * @instance
27324
27274
  */
27325
- OptionsToUploadLocal.prototype.localVersion = null;
27275
+ UploadEventMsg.prototype.type = "";
27326
27276
 
27327
27277
  /**
27328
- * OptionsToUploadLocal uploadVersion.
27329
- * @member {common.IUInt64Value|null|undefined} uploadVersion
27330
- * @memberof file.OptionsToUploadLocal
27278
+ * UploadEventMsg uploadTaskId.
27279
+ * @member {number|Long} uploadTaskId
27280
+ * @memberof file.UploadEventMsg
27331
27281
  * @instance
27332
27282
  */
27333
- OptionsToUploadLocal.prototype.uploadVersion = null;
27283
+ UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27334
27284
 
27335
27285
  /**
27336
- * Creates a new OptionsToUploadLocal instance using the specified properties.
27286
+ * UploadEventMsg localVersion.
27287
+ * @member {number|Long} localVersion
27288
+ * @memberof file.UploadEventMsg
27289
+ * @instance
27290
+ */
27291
+ UploadEventMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27292
+
27293
+ /**
27294
+ * UploadEventMsg uploadVersion.
27295
+ * @member {number|Long} uploadVersion
27296
+ * @memberof file.UploadEventMsg
27297
+ * @instance
27298
+ */
27299
+ UploadEventMsg.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27300
+
27301
+ /**
27302
+ * Creates a new UploadEventMsg instance using the specified properties.
27337
27303
  * @function create
27338
- * @memberof file.OptionsToUploadLocal
27304
+ * @memberof file.UploadEventMsg
27339
27305
  * @static
27340
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
27341
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
27306
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
27307
+ * @returns {file.UploadEventMsg} UploadEventMsg instance
27342
27308
  */
27343
- OptionsToUploadLocal.create = function create(properties) {
27344
- return new OptionsToUploadLocal(properties);
27309
+ UploadEventMsg.create = function create(properties) {
27310
+ return new UploadEventMsg(properties);
27345
27311
  };
27346
27312
 
27347
27313
  /**
27348
- * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
27314
+ * Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
27349
27315
  * @function encode
27350
- * @memberof file.OptionsToUploadLocal
27316
+ * @memberof file.UploadEventMsg
27351
27317
  * @static
27352
- * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
27318
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
27353
27319
  * @param {$protobuf.Writer} [writer] Writer to encode to
27354
27320
  * @returns {$protobuf.Writer} Writer
27355
27321
  */
27356
- OptionsToUploadLocal.encode = function encode(message, writer) {
27322
+ UploadEventMsg.encode = function encode(message, writer) {
27357
27323
  if (!writer)
27358
27324
  writer = $Writer.create();
27325
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
27326
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
27327
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
27328
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
27359
27329
  if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
27360
- $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
27330
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
27361
27331
  if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
27362
- $root.common.UInt64Value.encode(message.uploadVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
27332
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
27363
27333
  return writer;
27364
27334
  };
27365
27335
 
27366
27336
  /**
27367
- * Encodes the specified OptionsToUploadLocal message, length delimited. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
27337
+ * Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
27368
27338
  * @function encodeDelimited
27369
- * @memberof file.OptionsToUploadLocal
27339
+ * @memberof file.UploadEventMsg
27370
27340
  * @static
27371
- * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
27341
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
27372
27342
  * @param {$protobuf.Writer} [writer] Writer to encode to
27373
27343
  * @returns {$protobuf.Writer} Writer
27374
27344
  */
27375
- OptionsToUploadLocal.encodeDelimited = function encodeDelimited(message, writer) {
27345
+ UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
27376
27346
  return this.encode(message, writer).ldelim();
27377
27347
  };
27378
27348
 
27379
27349
  /**
27380
- * Decodes an OptionsToUploadLocal message from the specified reader or buffer.
27350
+ * Decodes an UploadEventMsg message from the specified reader or buffer.
27381
27351
  * @function decode
27382
- * @memberof file.OptionsToUploadLocal
27352
+ * @memberof file.UploadEventMsg
27383
27353
  * @static
27384
27354
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27385
27355
  * @param {number} [length] Message length if known beforehand
27386
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
27356
+ * @returns {file.UploadEventMsg} UploadEventMsg
27387
27357
  * @throws {Error} If the payload is not a reader or valid buffer
27388
27358
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
27389
27359
  */
27390
- OptionsToUploadLocal.decode = function decode(reader, length, error) {
27360
+ UploadEventMsg.decode = function decode(reader, length, error) {
27391
27361
  if (!(reader instanceof $Reader))
27392
27362
  reader = $Reader.create(reader);
27393
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToUploadLocal();
27363
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
27394
27364
  while (reader.pos < end) {
27395
27365
  var tag = reader.uint32();
27396
27366
  if (tag === error)
27397
27367
  break;
27398
27368
  switch (tag >>> 3) {
27399
27369
  case 1: {
27400
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
27370
+ message.type = reader.string();
27401
27371
  break;
27402
27372
  }
27403
27373
  case 2: {
27404
- message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
27374
+ message.uploadTaskId = reader.uint64();
27375
+ break;
27376
+ }
27377
+ case 3: {
27378
+ message.localVersion = reader.uint64();
27379
+ break;
27380
+ }
27381
+ case 4: {
27382
+ message.uploadVersion = reader.uint64();
27405
27383
  break;
27406
27384
  }
27407
27385
  default:
@@ -27413,121 +27391,169 @@ $root.file = (function() {
27413
27391
  };
27414
27392
 
27415
27393
  /**
27416
- * Decodes an OptionsToUploadLocal message from the specified reader or buffer, length delimited.
27394
+ * Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
27417
27395
  * @function decodeDelimited
27418
- * @memberof file.OptionsToUploadLocal
27396
+ * @memberof file.UploadEventMsg
27419
27397
  * @static
27420
27398
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27421
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
27399
+ * @returns {file.UploadEventMsg} UploadEventMsg
27422
27400
  * @throws {Error} If the payload is not a reader or valid buffer
27423
27401
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
27424
27402
  */
27425
- OptionsToUploadLocal.decodeDelimited = function decodeDelimited(reader) {
27403
+ UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
27426
27404
  if (!(reader instanceof $Reader))
27427
27405
  reader = new $Reader(reader);
27428
27406
  return this.decode(reader, reader.uint32());
27429
27407
  };
27430
27408
 
27431
27409
  /**
27432
- * Verifies an OptionsToUploadLocal message.
27410
+ * Verifies an UploadEventMsg message.
27433
27411
  * @function verify
27434
- * @memberof file.OptionsToUploadLocal
27412
+ * @memberof file.UploadEventMsg
27435
27413
  * @static
27436
27414
  * @param {Object.<string,*>} message Plain object to verify
27437
27415
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
27438
27416
  */
27439
- OptionsToUploadLocal.verify = function verify(message) {
27417
+ UploadEventMsg.verify = function verify(message) {
27440
27418
  if (typeof message !== "object" || message === null)
27441
27419
  return "object expected";
27442
- if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
27443
- var error = $root.common.UInt64Value.verify(message.localVersion);
27444
- if (error)
27445
- return "localVersion." + error;
27446
- }
27447
- if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion")) {
27448
- var error = $root.common.UInt64Value.verify(message.uploadVersion);
27449
- if (error)
27450
- return "uploadVersion." + error;
27451
- }
27420
+ if (message.type != null && message.hasOwnProperty("type"))
27421
+ if (!$util.isString(message.type))
27422
+ return "type: string expected";
27423
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
27424
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
27425
+ return "uploadTaskId: integer|Long expected";
27426
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
27427
+ if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
27428
+ return "localVersion: integer|Long expected";
27429
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
27430
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
27431
+ return "uploadVersion: integer|Long expected";
27452
27432
  return null;
27453
27433
  };
27454
27434
 
27455
27435
  /**
27456
- * Creates an OptionsToUploadLocal message from a plain object. Also converts values to their respective internal types.
27436
+ * Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
27457
27437
  * @function fromObject
27458
- * @memberof file.OptionsToUploadLocal
27438
+ * @memberof file.UploadEventMsg
27459
27439
  * @static
27460
27440
  * @param {Object.<string,*>} object Plain object
27461
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
27441
+ * @returns {file.UploadEventMsg} UploadEventMsg
27462
27442
  */
27463
- OptionsToUploadLocal.fromObject = function fromObject(object) {
27464
- if (object instanceof $root.file.OptionsToUploadLocal)
27443
+ UploadEventMsg.fromObject = function fromObject(object) {
27444
+ if (object instanceof $root.file.UploadEventMsg)
27465
27445
  return object;
27466
- var message = new $root.file.OptionsToUploadLocal();
27467
- if (object.localVersion != null) {
27468
- if (typeof object.localVersion !== "object")
27469
- throw TypeError(".file.OptionsToUploadLocal.localVersion: object expected");
27470
- message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
27471
- }
27472
- if (object.uploadVersion != null) {
27473
- if (typeof object.uploadVersion !== "object")
27474
- throw TypeError(".file.OptionsToUploadLocal.uploadVersion: object expected");
27475
- message.uploadVersion = $root.common.UInt64Value.fromObject(object.uploadVersion);
27476
- }
27446
+ var message = new $root.file.UploadEventMsg();
27447
+ if (object.type != null)
27448
+ message.type = String(object.type);
27449
+ if (object.uploadTaskId != null)
27450
+ if ($util.Long)
27451
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
27452
+ else if (typeof object.uploadTaskId === "string")
27453
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
27454
+ else if (typeof object.uploadTaskId === "number")
27455
+ message.uploadTaskId = object.uploadTaskId;
27456
+ else if (typeof object.uploadTaskId === "object")
27457
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
27458
+ if (object.localVersion != null)
27459
+ if ($util.Long)
27460
+ (message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
27461
+ else if (typeof object.localVersion === "string")
27462
+ message.localVersion = parseInt(object.localVersion, 10);
27463
+ else if (typeof object.localVersion === "number")
27464
+ message.localVersion = object.localVersion;
27465
+ else if (typeof object.localVersion === "object")
27466
+ message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
27467
+ if (object.uploadVersion != null)
27468
+ if ($util.Long)
27469
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
27470
+ else if (typeof object.uploadVersion === "string")
27471
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
27472
+ else if (typeof object.uploadVersion === "number")
27473
+ message.uploadVersion = object.uploadVersion;
27474
+ else if (typeof object.uploadVersion === "object")
27475
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
27477
27476
  return message;
27478
27477
  };
27479
27478
 
27480
27479
  /**
27481
- * Creates a plain object from an OptionsToUploadLocal message. Also converts values to other types if specified.
27480
+ * Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
27482
27481
  * @function toObject
27483
- * @memberof file.OptionsToUploadLocal
27482
+ * @memberof file.UploadEventMsg
27484
27483
  * @static
27485
- * @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
27484
+ * @param {file.UploadEventMsg} message UploadEventMsg
27486
27485
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27487
27486
  * @returns {Object.<string,*>} Plain object
27488
27487
  */
27489
- OptionsToUploadLocal.toObject = function toObject(message, options) {
27488
+ UploadEventMsg.toObject = function toObject(message, options) {
27490
27489
  if (!options)
27491
27490
  options = {};
27492
27491
  var object = {};
27493
27492
  if (options.defaults) {
27494
- object.localVersion = null;
27495
- object.uploadVersion = null;
27493
+ object.type = "";
27494
+ if ($util.Long) {
27495
+ var long = new $util.Long(0, 0, true);
27496
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27497
+ } else
27498
+ object.uploadTaskId = options.longs === String ? "0" : 0;
27499
+ if ($util.Long) {
27500
+ var long = new $util.Long(0, 0, true);
27501
+ object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27502
+ } else
27503
+ object.localVersion = options.longs === String ? "0" : 0;
27504
+ if ($util.Long) {
27505
+ var long = new $util.Long(0, 0, true);
27506
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27507
+ } else
27508
+ object.uploadVersion = options.longs === String ? "0" : 0;
27496
27509
  }
27510
+ if (message.type != null && message.hasOwnProperty("type"))
27511
+ object.type = message.type;
27512
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
27513
+ if (typeof message.uploadTaskId === "number")
27514
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
27515
+ else
27516
+ object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
27497
27517
  if (message.localVersion != null && message.hasOwnProperty("localVersion"))
27498
- object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
27518
+ if (typeof message.localVersion === "number")
27519
+ object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
27520
+ else
27521
+ object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
27499
27522
  if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
27500
- object.uploadVersion = $root.common.UInt64Value.toObject(message.uploadVersion, options);
27523
+ if (typeof message.uploadVersion === "number")
27524
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
27525
+ else
27526
+ object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
27501
27527
  return object;
27502
27528
  };
27503
27529
 
27504
27530
  /**
27505
- * Converts this OptionsToUploadLocal to JSON.
27531
+ * Converts this UploadEventMsg to JSON.
27506
27532
  * @function toJSON
27507
- * @memberof file.OptionsToUploadLocal
27533
+ * @memberof file.UploadEventMsg
27508
27534
  * @instance
27509
27535
  * @returns {Object.<string,*>} JSON object
27510
27536
  */
27511
- OptionsToUploadLocal.prototype.toJSON = function toJSON() {
27537
+ UploadEventMsg.prototype.toJSON = function toJSON() {
27512
27538
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27513
27539
  };
27514
27540
 
27515
27541
  /**
27516
- * Gets the default type url for OptionsToUploadLocal
27542
+ * Gets the default type url for UploadEventMsg
27517
27543
  * @function getTypeUrl
27518
- * @memberof file.OptionsToUploadLocal
27544
+ * @memberof file.UploadEventMsg
27519
27545
  * @static
27520
27546
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
27521
27547
  * @returns {string} The default type url
27522
27548
  */
27523
- OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27549
+ UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
27524
27550
  if (typeUrlPrefix === undefined) {
27525
27551
  typeUrlPrefix = "type.googleapis.com";
27526
27552
  }
27527
- return typeUrlPrefix + "/file.OptionsToUploadLocal";
27553
+ return typeUrlPrefix + "/file.UploadEventMsg";
27528
27554
  };
27529
27555
 
27530
- return OptionsToUploadLocal;
27556
+ return UploadEventMsg;
27531
27557
  })();
27532
27558
 
27533
27559
  return file;