core-3nweb-client-lib 0.43.8 → 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.
- package/build/api-defs/files.d.ts +68 -4
- package/build/core/storage/synced/obj-files.d.ts +1 -0
- package/build/core/storage/synced/obj-files.js +16 -0
- package/build/core/storage/synced/obj-status.d.ts +1 -0
- package/build/core/storage/synced/obj-status.js +18 -0
- package/build/core/storage/synced/storage.d.ts +6 -2
- package/build/core/storage/synced/storage.js +12 -17
- package/build/core/storage/synced/upsyncer.d.ts +10 -1
- package/build/core/storage/synced/upsyncer.js +72 -9
- package/build/core-ipc/file.d.ts +23 -4
- package/build/core-ipc/file.js +56 -80
- package/build/core-ipc/fs.js +46 -132
- package/build/lib-client/fs-utils/files.js +2 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.js +8 -1
- package/build/lib-client/xsp-fs/common.d.ts +13 -21
- package/build/lib-client/xsp-fs/common.js +4 -16
- package/build/lib-client/xsp-fs/file-node.js +9 -22
- package/build/lib-client/xsp-fs/file.d.ts +4 -0
- package/build/lib-client/xsp-fs/file.js +18 -1
- package/build/lib-client/xsp-fs/folder-node.d.ts +5 -1
- package/build/lib-client/xsp-fs/folder-node.js +15 -27
- package/build/lib-client/xsp-fs/fs.d.ts +4 -0
- package/build/lib-client/xsp-fs/fs.js +25 -1
- package/build/lib-client/xsp-fs/link-node.js +3 -19
- package/build/lib-client/xsp-fs/node-in-fs.d.ts +18 -5
- package/build/lib-client/xsp-fs/node-in-fs.js +70 -12
- package/build/lib-common/processes/labelled-exec-pools.js +1 -3
- package/build/protos/asmail.proto.js +1436 -1437
- package/build/protos/file.proto.js +1077 -387
- package/build/protos/fs.proto.js +1395 -1396
- package/package.json +4 -4
- package/protos/file.proto +24 -12
- package/protos/fs.proto +8 -21
package/build/protos/fs.proto.js
CHANGED
|
@@ -1541,34 +1541,25 @@ $root.fs = (function() {
|
|
|
1541
1541
|
return SymLinkTargetReplyBody;
|
|
1542
1542
|
})();
|
|
1543
1543
|
|
|
1544
|
-
fs.
|
|
1544
|
+
fs.WatchTreeRequestBody = (function() {
|
|
1545
1545
|
|
|
1546
1546
|
/**
|
|
1547
|
-
* Properties of a
|
|
1547
|
+
* Properties of a WatchTreeRequestBody.
|
|
1548
1548
|
* @memberof fs
|
|
1549
|
-
* @interface
|
|
1550
|
-
* @property {string|null} [
|
|
1551
|
-
* @property {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
*
|
|
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
|
|
1567
|
-
* @implements
|
|
1557
|
+
* @classdesc Represents a WatchTreeRequestBody.
|
|
1558
|
+
* @implements IWatchTreeRequestBody
|
|
1568
1559
|
* @constructor
|
|
1569
|
-
* @param {fs.
|
|
1560
|
+
* @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
|
|
1570
1561
|
*/
|
|
1571
|
-
function
|
|
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
|
-
*
|
|
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.
|
|
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
|
-
|
|
1575
|
+
WatchTreeRequestBody.prototype.path = "";
|
|
1657
1576
|
|
|
1658
1577
|
/**
|
|
1659
|
-
*
|
|
1660
|
-
* @member {common.
|
|
1661
|
-
* @memberof fs.
|
|
1578
|
+
* WatchTreeRequestBody depth.
|
|
1579
|
+
* @member {common.IUInt32Value|null|undefined} depth
|
|
1580
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1662
1581
|
* @instance
|
|
1663
1582
|
*/
|
|
1664
|
-
|
|
1583
|
+
WatchTreeRequestBody.prototype.depth = null;
|
|
1665
1584
|
|
|
1666
1585
|
/**
|
|
1667
|
-
* Creates a new
|
|
1586
|
+
* Creates a new WatchTreeRequestBody instance using the specified properties.
|
|
1668
1587
|
* @function create
|
|
1669
|
-
* @memberof fs.
|
|
1588
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1670
1589
|
* @static
|
|
1671
|
-
* @param {fs.
|
|
1672
|
-
* @returns {fs.
|
|
1590
|
+
* @param {fs.IWatchTreeRequestBody=} [properties] Properties to set
|
|
1591
|
+
* @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody instance
|
|
1673
1592
|
*/
|
|
1674
|
-
|
|
1675
|
-
return new
|
|
1593
|
+
WatchTreeRequestBody.create = function create(properties) {
|
|
1594
|
+
return new WatchTreeRequestBody(properties);
|
|
1676
1595
|
};
|
|
1677
1596
|
|
|
1678
1597
|
/**
|
|
1679
|
-
* Encodes the specified
|
|
1598
|
+
* Encodes the specified WatchTreeRequestBody message. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
|
|
1680
1599
|
* @function encode
|
|
1681
|
-
* @memberof fs.
|
|
1600
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1682
1601
|
* @static
|
|
1683
|
-
* @param {fs.
|
|
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
|
-
|
|
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
|
|
1694
|
-
if (message.
|
|
1695
|
-
$root.common.
|
|
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
|
|
1617
|
+
* Encodes the specified WatchTreeRequestBody message, length delimited. Does not implicitly {@link fs.WatchTreeRequestBody.verify|verify} messages.
|
|
1717
1618
|
* @function encodeDelimited
|
|
1718
|
-
* @memberof fs.
|
|
1619
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1719
1620
|
* @static
|
|
1720
|
-
* @param {fs.
|
|
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
|
-
|
|
1625
|
+
WatchTreeRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1725
1626
|
return this.encode(message, writer).ldelim();
|
|
1726
1627
|
};
|
|
1727
1628
|
|
|
1728
1629
|
/**
|
|
1729
|
-
* Decodes a
|
|
1630
|
+
* Decodes a WatchTreeRequestBody message from the specified reader or buffer.
|
|
1730
1631
|
* @function decode
|
|
1731
|
-
* @memberof fs.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
|
1757
|
-
message.
|
|
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
|
|
1666
|
+
* Decodes a WatchTreeRequestBody message from the specified reader or buffer, length delimited.
|
|
1802
1667
|
* @function decodeDelimited
|
|
1803
|
-
* @memberof fs.
|
|
1668
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1804
1669
|
* @static
|
|
1805
1670
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1806
|
-
* @returns {fs.
|
|
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
|
-
|
|
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
|
|
1682
|
+
* Verifies a WatchTreeRequestBody message.
|
|
1818
1683
|
* @function verify
|
|
1819
|
-
* @memberof fs.
|
|
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
|
-
|
|
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.
|
|
1834
|
-
var error = $root.common.
|
|
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 "
|
|
1698
|
+
return "depth." + error;
|
|
1877
1699
|
}
|
|
1878
1700
|
return null;
|
|
1879
1701
|
};
|
|
1880
1702
|
|
|
1881
1703
|
/**
|
|
1882
|
-
* Creates a
|
|
1704
|
+
* Creates a WatchTreeRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
1883
1705
|
* @function fromObject
|
|
1884
|
-
* @memberof fs.
|
|
1706
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1885
1707
|
* @static
|
|
1886
1708
|
* @param {Object.<string,*>} object Plain object
|
|
1887
|
-
* @returns {fs.
|
|
1709
|
+
* @returns {fs.WatchTreeRequestBody} WatchTreeRequestBody
|
|
1888
1710
|
*/
|
|
1889
|
-
|
|
1890
|
-
if (object instanceof $root.fs.
|
|
1711
|
+
WatchTreeRequestBody.fromObject = function fromObject(object) {
|
|
1712
|
+
if (object instanceof $root.fs.WatchTreeRequestBody)
|
|
1891
1713
|
return object;
|
|
1892
|
-
var message = new $root.fs.
|
|
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.
|
|
1898
|
-
if (typeof object.
|
|
1899
|
-
throw TypeError(".fs.
|
|
1900
|
-
message.
|
|
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
|
|
1726
|
+
* Creates a plain object from a WatchTreeRequestBody message. Also converts values to other types if specified.
|
|
1947
1727
|
* @function toObject
|
|
1948
|
-
* @memberof fs.
|
|
1728
|
+
* @memberof fs.WatchTreeRequestBody
|
|
1949
1729
|
* @static
|
|
1950
|
-
* @param {fs.
|
|
1730
|
+
* @param {fs.WatchTreeRequestBody} message WatchTreeRequestBody
|
|
1951
1731
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1952
1732
|
* @returns {Object.<string,*>} Plain object
|
|
1953
1733
|
*/
|
|
1954
|
-
|
|
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.
|
|
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.
|
|
1976
|
-
object.
|
|
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
|
|
1750
|
+
* Converts this WatchTreeRequestBody to JSON.
|
|
1998
1751
|
* @function toJSON
|
|
1999
|
-
* @memberof fs.
|
|
1752
|
+
* @memberof fs.WatchTreeRequestBody
|
|
2000
1753
|
* @instance
|
|
2001
1754
|
* @returns {Object.<string,*>} JSON object
|
|
2002
1755
|
*/
|
|
2003
|
-
|
|
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
|
|
1761
|
+
* Gets the default type url for WatchTreeRequestBody
|
|
2009
1762
|
* @function getTypeUrl
|
|
2010
|
-
* @memberof fs.
|
|
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
|
-
|
|
1768
|
+
WatchTreeRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2016
1769
|
if (typeUrlPrefix === undefined) {
|
|
2017
1770
|
typeUrlPrefix = "type.googleapis.com";
|
|
2018
1771
|
}
|
|
2019
|
-
return typeUrlPrefix + "/fs.
|
|
1772
|
+
return typeUrlPrefix + "/fs.WatchTreeRequestBody";
|
|
2020
1773
|
};
|
|
2021
1774
|
|
|
2022
|
-
return
|
|
1775
|
+
return WatchTreeRequestBody;
|
|
2023
1776
|
})();
|
|
2024
1777
|
|
|
2025
|
-
fs.
|
|
1778
|
+
fs.ListFolderReplyBody = (function() {
|
|
2026
1779
|
|
|
2027
1780
|
/**
|
|
2028
|
-
* Properties of a
|
|
1781
|
+
* Properties of a ListFolderReplyBody.
|
|
2029
1782
|
* @memberof fs
|
|
2030
|
-
* @interface
|
|
2031
|
-
* @property {
|
|
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
|
|
1788
|
+
* Constructs a new ListFolderReplyBody.
|
|
2037
1789
|
* @memberof fs
|
|
2038
|
-
* @classdesc Represents a
|
|
2039
|
-
* @implements
|
|
1790
|
+
* @classdesc Represents a ListFolderReplyBody.
|
|
1791
|
+
* @implements IListFolderReplyBody
|
|
2040
1792
|
* @constructor
|
|
2041
|
-
* @param {fs.
|
|
1793
|
+
* @param {fs.IListFolderReplyBody=} [properties] Properties to set
|
|
2042
1794
|
*/
|
|
2043
|
-
function
|
|
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
|
-
*
|
|
2052
|
-
* @member {
|
|
2053
|
-
* @memberof fs.
|
|
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
|
-
|
|
1809
|
+
ListFolderReplyBody.prototype.entries = $util.emptyArray;
|
|
2065
1810
|
|
|
2066
1811
|
/**
|
|
2067
|
-
* Creates a new
|
|
1812
|
+
* Creates a new ListFolderReplyBody instance using the specified properties.
|
|
2068
1813
|
* @function create
|
|
2069
|
-
* @memberof fs.
|
|
1814
|
+
* @memberof fs.ListFolderReplyBody
|
|
2070
1815
|
* @static
|
|
2071
|
-
* @param {fs.
|
|
2072
|
-
* @returns {fs.
|
|
1816
|
+
* @param {fs.IListFolderReplyBody=} [properties] Properties to set
|
|
1817
|
+
* @returns {fs.ListFolderReplyBody} ListFolderReplyBody instance
|
|
2073
1818
|
*/
|
|
2074
|
-
|
|
2075
|
-
return new
|
|
1819
|
+
ListFolderReplyBody.create = function create(properties) {
|
|
1820
|
+
return new ListFolderReplyBody(properties);
|
|
2076
1821
|
};
|
|
2077
1822
|
|
|
2078
1823
|
/**
|
|
2079
|
-
* Encodes the specified
|
|
1824
|
+
* Encodes the specified ListFolderReplyBody message. Does not implicitly {@link fs.ListFolderReplyBody.verify|verify} messages.
|
|
2080
1825
|
* @function encode
|
|
2081
|
-
* @memberof fs.
|
|
1826
|
+
* @memberof fs.ListFolderReplyBody
|
|
2082
1827
|
* @static
|
|
2083
|
-
* @param {fs.
|
|
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
|
-
|
|
1832
|
+
ListFolderReplyBody.encode = function encode(message, writer) {
|
|
2088
1833
|
if (!writer)
|
|
2089
1834
|
writer = $Writer.create();
|
|
2090
|
-
if (message.
|
|
2091
|
-
|
|
2092
|
-
|
|
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.
|
|
14345
|
+
fs.AdoptRemoteFolderItemRequestBody = (function() {
|
|
14827
14346
|
|
|
14828
14347
|
/**
|
|
14829
|
-
* Properties of
|
|
14348
|
+
* Properties of an AdoptRemoteFolderItemRequestBody.
|
|
14830
14349
|
* @memberof fs
|
|
14831
|
-
* @interface
|
|
14832
|
-
* @property {
|
|
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
|
|
14357
|
+
* Constructs a new AdoptRemoteFolderItemRequestBody.
|
|
14837
14358
|
* @memberof fs
|
|
14838
|
-
* @classdesc Represents
|
|
14839
|
-
* @implements
|
|
14359
|
+
* @classdesc Represents an AdoptRemoteFolderItemRequestBody.
|
|
14360
|
+
* @implements IAdoptRemoteFolderItemRequestBody
|
|
14840
14361
|
* @constructor
|
|
14841
|
-
* @param {fs.
|
|
14362
|
+
* @param {fs.IAdoptRemoteFolderItemRequestBody=} [properties] Properties to set
|
|
14842
14363
|
*/
|
|
14843
|
-
function
|
|
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
|
-
*
|
|
14852
|
-
* @member {
|
|
14853
|
-
* @memberof fs.
|
|
14372
|
+
* AdoptRemoteFolderItemRequestBody path.
|
|
14373
|
+
* @member {string} path
|
|
14374
|
+
* @memberof fs.AdoptRemoteFolderItemRequestBody
|
|
14854
14375
|
* @instance
|
|
14855
14376
|
*/
|
|
14856
|
-
|
|
14377
|
+
AdoptRemoteFolderItemRequestBody.prototype.path = "";
|
|
14857
14378
|
|
|
14858
14379
|
/**
|
|
14859
|
-
*
|
|
14860
|
-
* @
|
|
14861
|
-
* @memberof fs.
|
|
14862
|
-
* @
|
|
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
|
-
|
|
14867
|
-
return new FSSyncUploadReplyBody(properties);
|
|
14868
|
-
};
|
|
14385
|
+
AdoptRemoteFolderItemRequestBody.prototype.itemName = "";
|
|
14869
14386
|
|
|
14870
14387
|
/**
|
|
14871
|
-
*
|
|
14872
|
-
* @
|
|
14873
|
-
* @memberof fs.
|
|
14874
|
-
* @
|
|
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
|
|
|
@@ -18858,7 +18167,8 @@ $root.file = (function() {
|
|
|
18858
18167
|
* @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
|
|
18859
18168
|
* @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
|
|
18860
18169
|
* @property {common.IUInt64Value|null} [version] StatsMsg version
|
|
18861
|
-
* @property {
|
|
18170
|
+
* @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
|
|
18171
|
+
* @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
|
|
18862
18172
|
*/
|
|
18863
18173
|
|
|
18864
18174
|
/**
|
|
@@ -18941,12 +18251,20 @@ $root.file = (function() {
|
|
|
18941
18251
|
StatsMsg.prototype.version = null;
|
|
18942
18252
|
|
|
18943
18253
|
/**
|
|
18944
|
-
* StatsMsg
|
|
18945
|
-
* @member {
|
|
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
|
|
18946
18264
|
* @memberof file.StatsMsg
|
|
18947
18265
|
* @instance
|
|
18948
18266
|
*/
|
|
18949
|
-
StatsMsg.prototype.
|
|
18267
|
+
StatsMsg.prototype.versionSyncBranch = null;
|
|
18950
18268
|
|
|
18951
18269
|
/**
|
|
18952
18270
|
* Creates a new StatsMsg instance using the specified properties.
|
|
@@ -18988,8 +18306,10 @@ $root.file = (function() {
|
|
|
18988
18306
|
$root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
18989
18307
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
18990
18308
|
$root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
18991
|
-
if (message.
|
|
18992
|
-
$root.
|
|
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();
|
|
18993
18313
|
return writer;
|
|
18994
18314
|
};
|
|
18995
18315
|
|
|
@@ -19059,7 +18379,11 @@ $root.file = (function() {
|
|
|
19059
18379
|
break;
|
|
19060
18380
|
}
|
|
19061
18381
|
case 9: {
|
|
19062
|
-
message.
|
|
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());
|
|
19063
18387
|
break;
|
|
19064
18388
|
}
|
|
19065
18389
|
default:
|
|
@@ -19135,10 +18459,15 @@ $root.file = (function() {
|
|
|
19135
18459
|
if (error)
|
|
19136
18460
|
return "version." + error;
|
|
19137
18461
|
}
|
|
19138
|
-
if (message.
|
|
19139
|
-
var error = $root.
|
|
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);
|
|
19140
18469
|
if (error)
|
|
19141
|
-
return "
|
|
18470
|
+
return "versionSyncBranch." + error;
|
|
19142
18471
|
}
|
|
19143
18472
|
return null;
|
|
19144
18473
|
};
|
|
@@ -19192,10 +18521,15 @@ $root.file = (function() {
|
|
|
19192
18521
|
throw TypeError(".file.StatsMsg.version: object expected");
|
|
19193
18522
|
message.version = $root.common.UInt64Value.fromObject(object.version);
|
|
19194
18523
|
}
|
|
19195
|
-
if (object.
|
|
19196
|
-
if (typeof object.
|
|
19197
|
-
throw TypeError(".file.StatsMsg.
|
|
19198
|
-
message.
|
|
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);
|
|
19199
18533
|
}
|
|
19200
18534
|
return message;
|
|
19201
18535
|
};
|
|
@@ -19222,7 +18556,8 @@ $root.file = (function() {
|
|
|
19222
18556
|
object.mtime = null;
|
|
19223
18557
|
object.ctime = null;
|
|
19224
18558
|
object.version = null;
|
|
19225
|
-
object.
|
|
18559
|
+
object.bytesNeedDownload = null;
|
|
18560
|
+
object.versionSyncBranch = null;
|
|
19226
18561
|
}
|
|
19227
18562
|
if (message.isFile != null && message.hasOwnProperty("isFile"))
|
|
19228
18563
|
object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
|
|
@@ -19240,8 +18575,10 @@ $root.file = (function() {
|
|
|
19240
18575
|
object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
|
|
19241
18576
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
19242
18577
|
object.version = $root.common.UInt64Value.toObject(message.version, options);
|
|
19243
|
-
if (message.
|
|
19244
|
-
object.
|
|
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);
|
|
19245
18582
|
return object;
|
|
19246
18583
|
};
|
|
19247
18584
|
|
|
@@ -20195,29 +19532,25 @@ $root.file = (function() {
|
|
|
20195
19532
|
return ReadBytesReplyBody;
|
|
20196
19533
|
})();
|
|
20197
19534
|
|
|
20198
|
-
file.
|
|
19535
|
+
file.VersionedReadFlags = (function() {
|
|
20199
19536
|
|
|
20200
19537
|
/**
|
|
20201
|
-
* Properties of a
|
|
19538
|
+
* Properties of a VersionedReadFlags.
|
|
20202
19539
|
* @memberof file
|
|
20203
|
-
* @interface
|
|
20204
|
-
* @property {
|
|
20205
|
-
* @property {
|
|
20206
|
-
* @property {common.IStringValue|null} [src] FileEventMsg src
|
|
20207
|
-
* @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
|
|
20208
|
-
* @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
|
|
20209
|
-
* @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
|
|
20210
19543
|
*/
|
|
20211
19544
|
|
|
20212
19545
|
/**
|
|
20213
|
-
* Constructs a new
|
|
19546
|
+
* Constructs a new VersionedReadFlags.
|
|
20214
19547
|
* @memberof file
|
|
20215
|
-
* @classdesc Represents a
|
|
20216
|
-
* @implements
|
|
19548
|
+
* @classdesc Represents a VersionedReadFlags.
|
|
19549
|
+
* @implements IVersionedReadFlags
|
|
20217
19550
|
* @constructor
|
|
20218
|
-
* @param {file.
|
|
19551
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
20219
19552
|
*/
|
|
20220
|
-
function
|
|
19553
|
+
function VersionedReadFlags(properties) {
|
|
20221
19554
|
if (properties)
|
|
20222
19555
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20223
19556
|
if (properties[keys[i]] != null)
|
|
@@ -20225,428 +19558,91 @@ $root.file = (function() {
|
|
|
20225
19558
|
}
|
|
20226
19559
|
|
|
20227
19560
|
/**
|
|
20228
|
-
*
|
|
20229
|
-
* @member {
|
|
20230
|
-
* @memberof file.
|
|
20231
|
-
* @instance
|
|
20232
|
-
*/
|
|
20233
|
-
FileEventMsg.prototype.type = "";
|
|
20234
|
-
|
|
20235
|
-
/**
|
|
20236
|
-
* FileEventMsg path.
|
|
20237
|
-
* @member {string} path
|
|
20238
|
-
* @memberof file.FileEventMsg
|
|
20239
|
-
* @instance
|
|
20240
|
-
*/
|
|
20241
|
-
FileEventMsg.prototype.path = "";
|
|
20242
|
-
|
|
20243
|
-
/**
|
|
20244
|
-
* FileEventMsg src.
|
|
20245
|
-
* @member {common.IStringValue|null|undefined} src
|
|
20246
|
-
* @memberof file.FileEventMsg
|
|
20247
|
-
* @instance
|
|
20248
|
-
*/
|
|
20249
|
-
FileEventMsg.prototype.src = null;
|
|
20250
|
-
|
|
20251
|
-
/**
|
|
20252
|
-
* FileEventMsg newVersion.
|
|
20253
|
-
* @member {common.IUInt64Value|null|undefined} newVersion
|
|
20254
|
-
* @memberof file.FileEventMsg
|
|
20255
|
-
* @instance
|
|
20256
|
-
*/
|
|
20257
|
-
FileEventMsg.prototype.newVersion = null;
|
|
20258
|
-
|
|
20259
|
-
/**
|
|
20260
|
-
* FileEventMsg removedArchVer.
|
|
20261
|
-
* @member {common.IUInt64Value|null|undefined} removedArchVer
|
|
20262
|
-
* @memberof file.FileEventMsg
|
|
19561
|
+
* VersionedReadFlags archivedVersion.
|
|
19562
|
+
* @member {common.IUInt64Value|null|undefined} archivedVersion
|
|
19563
|
+
* @memberof file.VersionedReadFlags
|
|
20263
19564
|
* @instance
|
|
20264
19565
|
*/
|
|
20265
|
-
|
|
19566
|
+
VersionedReadFlags.prototype.archivedVersion = null;
|
|
20266
19567
|
|
|
20267
19568
|
/**
|
|
20268
|
-
*
|
|
20269
|
-
* @member {common.IUInt64Value|null|undefined}
|
|
20270
|
-
* @memberof file.
|
|
19569
|
+
* VersionedReadFlags remoteVersion.
|
|
19570
|
+
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
19571
|
+
* @memberof file.VersionedReadFlags
|
|
20271
19572
|
* @instance
|
|
20272
19573
|
*/
|
|
20273
|
-
|
|
19574
|
+
VersionedReadFlags.prototype.remoteVersion = null;
|
|
20274
19575
|
|
|
20275
19576
|
/**
|
|
20276
|
-
* Creates a new
|
|
19577
|
+
* Creates a new VersionedReadFlags instance using the specified properties.
|
|
20277
19578
|
* @function create
|
|
20278
|
-
* @memberof file.
|
|
19579
|
+
* @memberof file.VersionedReadFlags
|
|
20279
19580
|
* @static
|
|
20280
|
-
* @param {file.
|
|
20281
|
-
* @returns {file.
|
|
19581
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
19582
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags instance
|
|
20282
19583
|
*/
|
|
20283
|
-
|
|
20284
|
-
return new
|
|
19584
|
+
VersionedReadFlags.create = function create(properties) {
|
|
19585
|
+
return new VersionedReadFlags(properties);
|
|
20285
19586
|
};
|
|
20286
19587
|
|
|
20287
19588
|
/**
|
|
20288
|
-
* Encodes the specified
|
|
19589
|
+
* Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
20289
19590
|
* @function encode
|
|
20290
|
-
* @memberof file.
|
|
19591
|
+
* @memberof file.VersionedReadFlags
|
|
20291
19592
|
* @static
|
|
20292
|
-
* @param {file.
|
|
19593
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
20293
19594
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20294
19595
|
* @returns {$protobuf.Writer} Writer
|
|
20295
19596
|
*/
|
|
20296
|
-
|
|
19597
|
+
VersionedReadFlags.encode = function encode(message, writer) {
|
|
20297
19598
|
if (!writer)
|
|
20298
19599
|
writer = $Writer.create();
|
|
20299
|
-
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
20300
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
20301
|
-
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
20302
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
20303
|
-
if (message.src != null && Object.hasOwnProperty.call(message, "src"))
|
|
20304
|
-
$root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
20305
|
-
if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
|
|
20306
|
-
$root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
20307
|
-
if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
|
|
20308
|
-
$root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
20309
19600
|
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
20310
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id
|
|
19601
|
+
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
19602
|
+
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
19603
|
+
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20311
19604
|
return writer;
|
|
20312
19605
|
};
|
|
20313
19606
|
|
|
20314
19607
|
/**
|
|
20315
|
-
* Encodes the specified
|
|
19608
|
+
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
20316
19609
|
* @function encodeDelimited
|
|
20317
|
-
* @memberof file.
|
|
19610
|
+
* @memberof file.VersionedReadFlags
|
|
20318
19611
|
* @static
|
|
20319
|
-
* @param {file.
|
|
19612
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
20320
19613
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20321
19614
|
* @returns {$protobuf.Writer} Writer
|
|
20322
19615
|
*/
|
|
20323
|
-
|
|
19616
|
+
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20324
19617
|
return this.encode(message, writer).ldelim();
|
|
20325
19618
|
};
|
|
20326
19619
|
|
|
20327
19620
|
/**
|
|
20328
|
-
* Decodes a
|
|
19621
|
+
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
20329
19622
|
* @function decode
|
|
20330
|
-
* @memberof file.
|
|
19623
|
+
* @memberof file.VersionedReadFlags
|
|
20331
19624
|
* @static
|
|
20332
19625
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20333
19626
|
* @param {number} [length] Message length if known beforehand
|
|
20334
|
-
* @returns {file.
|
|
19627
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
20335
19628
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20336
19629
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20337
19630
|
*/
|
|
20338
|
-
|
|
19631
|
+
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
20339
19632
|
if (!(reader instanceof $Reader))
|
|
20340
19633
|
reader = $Reader.create(reader);
|
|
20341
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
19634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
20342
19635
|
while (reader.pos < end) {
|
|
20343
19636
|
var tag = reader.uint32();
|
|
20344
19637
|
if (tag === error)
|
|
20345
19638
|
break;
|
|
20346
19639
|
switch (tag >>> 3) {
|
|
20347
19640
|
case 1: {
|
|
20348
|
-
message.
|
|
19641
|
+
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20349
19642
|
break;
|
|
20350
19643
|
}
|
|
20351
19644
|
case 2: {
|
|
20352
|
-
message.
|
|
20353
|
-
break;
|
|
20354
|
-
}
|
|
20355
|
-
case 3: {
|
|
20356
|
-
message.src = $root.common.StringValue.decode(reader, reader.uint32());
|
|
20357
|
-
break;
|
|
20358
|
-
}
|
|
20359
|
-
case 4: {
|
|
20360
|
-
message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20361
|
-
break;
|
|
20362
|
-
}
|
|
20363
|
-
case 5: {
|
|
20364
|
-
message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20365
|
-
break;
|
|
20366
|
-
}
|
|
20367
|
-
case 6: {
|
|
20368
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20369
|
-
break;
|
|
20370
|
-
}
|
|
20371
|
-
default:
|
|
20372
|
-
reader.skipType(tag & 7);
|
|
20373
|
-
break;
|
|
20374
|
-
}
|
|
20375
|
-
}
|
|
20376
|
-
return message;
|
|
20377
|
-
};
|
|
20378
|
-
|
|
20379
|
-
/**
|
|
20380
|
-
* Decodes a FileEventMsg message from the specified reader or buffer, length delimited.
|
|
20381
|
-
* @function decodeDelimited
|
|
20382
|
-
* @memberof file.FileEventMsg
|
|
20383
|
-
* @static
|
|
20384
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20385
|
-
* @returns {file.FileEventMsg} FileEventMsg
|
|
20386
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20387
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20388
|
-
*/
|
|
20389
|
-
FileEventMsg.decodeDelimited = function decodeDelimited(reader) {
|
|
20390
|
-
if (!(reader instanceof $Reader))
|
|
20391
|
-
reader = new $Reader(reader);
|
|
20392
|
-
return this.decode(reader, reader.uint32());
|
|
20393
|
-
};
|
|
20394
|
-
|
|
20395
|
-
/**
|
|
20396
|
-
* Verifies a FileEventMsg message.
|
|
20397
|
-
* @function verify
|
|
20398
|
-
* @memberof file.FileEventMsg
|
|
20399
|
-
* @static
|
|
20400
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
20401
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20402
|
-
*/
|
|
20403
|
-
FileEventMsg.verify = function verify(message) {
|
|
20404
|
-
if (typeof message !== "object" || message === null)
|
|
20405
|
-
return "object expected";
|
|
20406
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
20407
|
-
if (!$util.isString(message.type))
|
|
20408
|
-
return "type: string expected";
|
|
20409
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
20410
|
-
if (!$util.isString(message.path))
|
|
20411
|
-
return "path: string expected";
|
|
20412
|
-
if (message.src != null && message.hasOwnProperty("src")) {
|
|
20413
|
-
var error = $root.common.StringValue.verify(message.src);
|
|
20414
|
-
if (error)
|
|
20415
|
-
return "src." + error;
|
|
20416
|
-
}
|
|
20417
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
|
|
20418
|
-
var error = $root.common.UInt64Value.verify(message.newVersion);
|
|
20419
|
-
if (error)
|
|
20420
|
-
return "newVersion." + error;
|
|
20421
|
-
}
|
|
20422
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
|
|
20423
|
-
var error = $root.common.UInt64Value.verify(message.removedArchVer);
|
|
20424
|
-
if (error)
|
|
20425
|
-
return "removedArchVer." + error;
|
|
20426
|
-
}
|
|
20427
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
|
|
20428
|
-
var error = $root.common.UInt64Value.verify(message.archivedVersion);
|
|
20429
|
-
if (error)
|
|
20430
|
-
return "archivedVersion." + error;
|
|
20431
|
-
}
|
|
20432
|
-
return null;
|
|
20433
|
-
};
|
|
20434
|
-
|
|
20435
|
-
/**
|
|
20436
|
-
* Creates a FileEventMsg message from a plain object. Also converts values to their respective internal types.
|
|
20437
|
-
* @function fromObject
|
|
20438
|
-
* @memberof file.FileEventMsg
|
|
20439
|
-
* @static
|
|
20440
|
-
* @param {Object.<string,*>} object Plain object
|
|
20441
|
-
* @returns {file.FileEventMsg} FileEventMsg
|
|
20442
|
-
*/
|
|
20443
|
-
FileEventMsg.fromObject = function fromObject(object) {
|
|
20444
|
-
if (object instanceof $root.file.FileEventMsg)
|
|
20445
|
-
return object;
|
|
20446
|
-
var message = new $root.file.FileEventMsg();
|
|
20447
|
-
if (object.type != null)
|
|
20448
|
-
message.type = String(object.type);
|
|
20449
|
-
if (object.path != null)
|
|
20450
|
-
message.path = String(object.path);
|
|
20451
|
-
if (object.src != null) {
|
|
20452
|
-
if (typeof object.src !== "object")
|
|
20453
|
-
throw TypeError(".file.FileEventMsg.src: object expected");
|
|
20454
|
-
message.src = $root.common.StringValue.fromObject(object.src);
|
|
20455
|
-
}
|
|
20456
|
-
if (object.newVersion != null) {
|
|
20457
|
-
if (typeof object.newVersion !== "object")
|
|
20458
|
-
throw TypeError(".file.FileEventMsg.newVersion: object expected");
|
|
20459
|
-
message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
|
|
20460
|
-
}
|
|
20461
|
-
if (object.removedArchVer != null) {
|
|
20462
|
-
if (typeof object.removedArchVer !== "object")
|
|
20463
|
-
throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
|
|
20464
|
-
message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
|
|
20465
|
-
}
|
|
20466
|
-
if (object.archivedVersion != null) {
|
|
20467
|
-
if (typeof object.archivedVersion !== "object")
|
|
20468
|
-
throw TypeError(".file.FileEventMsg.archivedVersion: object expected");
|
|
20469
|
-
message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
|
|
20470
|
-
}
|
|
20471
|
-
return message;
|
|
20472
|
-
};
|
|
20473
|
-
|
|
20474
|
-
/**
|
|
20475
|
-
* Creates a plain object from a FileEventMsg message. Also converts values to other types if specified.
|
|
20476
|
-
* @function toObject
|
|
20477
|
-
* @memberof file.FileEventMsg
|
|
20478
|
-
* @static
|
|
20479
|
-
* @param {file.FileEventMsg} message FileEventMsg
|
|
20480
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20481
|
-
* @returns {Object.<string,*>} Plain object
|
|
20482
|
-
*/
|
|
20483
|
-
FileEventMsg.toObject = function toObject(message, options) {
|
|
20484
|
-
if (!options)
|
|
20485
|
-
options = {};
|
|
20486
|
-
var object = {};
|
|
20487
|
-
if (options.defaults) {
|
|
20488
|
-
object.type = "";
|
|
20489
|
-
object.path = "";
|
|
20490
|
-
object.src = null;
|
|
20491
|
-
object.newVersion = null;
|
|
20492
|
-
object.removedArchVer = null;
|
|
20493
|
-
object.archivedVersion = null;
|
|
20494
|
-
}
|
|
20495
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
20496
|
-
object.type = message.type;
|
|
20497
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
20498
|
-
object.path = message.path;
|
|
20499
|
-
if (message.src != null && message.hasOwnProperty("src"))
|
|
20500
|
-
object.src = $root.common.StringValue.toObject(message.src, options);
|
|
20501
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion"))
|
|
20502
|
-
object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
|
|
20503
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
|
|
20504
|
-
object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
|
|
20505
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
20506
|
-
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
20507
|
-
return object;
|
|
20508
|
-
};
|
|
20509
|
-
|
|
20510
|
-
/**
|
|
20511
|
-
* Converts this FileEventMsg to JSON.
|
|
20512
|
-
* @function toJSON
|
|
20513
|
-
* @memberof file.FileEventMsg
|
|
20514
|
-
* @instance
|
|
20515
|
-
* @returns {Object.<string,*>} JSON object
|
|
20516
|
-
*/
|
|
20517
|
-
FileEventMsg.prototype.toJSON = function toJSON() {
|
|
20518
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20519
|
-
};
|
|
20520
|
-
|
|
20521
|
-
/**
|
|
20522
|
-
* Gets the default type url for FileEventMsg
|
|
20523
|
-
* @function getTypeUrl
|
|
20524
|
-
* @memberof file.FileEventMsg
|
|
20525
|
-
* @static
|
|
20526
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
20527
|
-
* @returns {string} The default type url
|
|
20528
|
-
*/
|
|
20529
|
-
FileEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20530
|
-
if (typeUrlPrefix === undefined) {
|
|
20531
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
20532
|
-
}
|
|
20533
|
-
return typeUrlPrefix + "/file.FileEventMsg";
|
|
20534
|
-
};
|
|
20535
|
-
|
|
20536
|
-
return FileEventMsg;
|
|
20537
|
-
})();
|
|
20538
|
-
|
|
20539
|
-
file.VersionedReadFlags = (function() {
|
|
20540
|
-
|
|
20541
|
-
/**
|
|
20542
|
-
* Properties of a VersionedReadFlags.
|
|
20543
|
-
* @memberof file
|
|
20544
|
-
* @interface IVersionedReadFlags
|
|
20545
|
-
* @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
|
|
20546
|
-
* @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
|
|
20547
|
-
*/
|
|
20548
|
-
|
|
20549
|
-
/**
|
|
20550
|
-
* Constructs a new VersionedReadFlags.
|
|
20551
|
-
* @memberof file
|
|
20552
|
-
* @classdesc Represents a VersionedReadFlags.
|
|
20553
|
-
* @implements IVersionedReadFlags
|
|
20554
|
-
* @constructor
|
|
20555
|
-
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
20556
|
-
*/
|
|
20557
|
-
function VersionedReadFlags(properties) {
|
|
20558
|
-
if (properties)
|
|
20559
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20560
|
-
if (properties[keys[i]] != null)
|
|
20561
|
-
this[keys[i]] = properties[keys[i]];
|
|
20562
|
-
}
|
|
20563
|
-
|
|
20564
|
-
/**
|
|
20565
|
-
* VersionedReadFlags archivedVersion.
|
|
20566
|
-
* @member {common.IUInt64Value|null|undefined} archivedVersion
|
|
20567
|
-
* @memberof file.VersionedReadFlags
|
|
20568
|
-
* @instance
|
|
20569
|
-
*/
|
|
20570
|
-
VersionedReadFlags.prototype.archivedVersion = null;
|
|
20571
|
-
|
|
20572
|
-
/**
|
|
20573
|
-
* VersionedReadFlags remoteVersion.
|
|
20574
|
-
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
20575
|
-
* @memberof file.VersionedReadFlags
|
|
20576
|
-
* @instance
|
|
20577
|
-
*/
|
|
20578
|
-
VersionedReadFlags.prototype.remoteVersion = null;
|
|
20579
|
-
|
|
20580
|
-
/**
|
|
20581
|
-
* Creates a new VersionedReadFlags instance using the specified properties.
|
|
20582
|
-
* @function create
|
|
20583
|
-
* @memberof file.VersionedReadFlags
|
|
20584
|
-
* @static
|
|
20585
|
-
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
20586
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags instance
|
|
20587
|
-
*/
|
|
20588
|
-
VersionedReadFlags.create = function create(properties) {
|
|
20589
|
-
return new VersionedReadFlags(properties);
|
|
20590
|
-
};
|
|
20591
|
-
|
|
20592
|
-
/**
|
|
20593
|
-
* Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
20594
|
-
* @function encode
|
|
20595
|
-
* @memberof file.VersionedReadFlags
|
|
20596
|
-
* @static
|
|
20597
|
-
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
20598
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20599
|
-
* @returns {$protobuf.Writer} Writer
|
|
20600
|
-
*/
|
|
20601
|
-
VersionedReadFlags.encode = function encode(message, writer) {
|
|
20602
|
-
if (!writer)
|
|
20603
|
-
writer = $Writer.create();
|
|
20604
|
-
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
20605
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
20606
|
-
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
20607
|
-
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20608
|
-
return writer;
|
|
20609
|
-
};
|
|
20610
|
-
|
|
20611
|
-
/**
|
|
20612
|
-
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
20613
|
-
* @function encodeDelimited
|
|
20614
|
-
* @memberof file.VersionedReadFlags
|
|
20615
|
-
* @static
|
|
20616
|
-
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
20617
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20618
|
-
* @returns {$protobuf.Writer} Writer
|
|
20619
|
-
*/
|
|
20620
|
-
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20621
|
-
return this.encode(message, writer).ldelim();
|
|
20622
|
-
};
|
|
20623
|
-
|
|
20624
|
-
/**
|
|
20625
|
-
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
20626
|
-
* @function decode
|
|
20627
|
-
* @memberof file.VersionedReadFlags
|
|
20628
|
-
* @static
|
|
20629
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20630
|
-
* @param {number} [length] Message length if known beforehand
|
|
20631
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
20632
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20633
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20634
|
-
*/
|
|
20635
|
-
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
20636
|
-
if (!(reader instanceof $Reader))
|
|
20637
|
-
reader = $Reader.create(reader);
|
|
20638
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
20639
|
-
while (reader.pos < end) {
|
|
20640
|
-
var tag = reader.uint32();
|
|
20641
|
-
if (tag === error)
|
|
20642
|
-
break;
|
|
20643
|
-
switch (tag >>> 3) {
|
|
20644
|
-
case 1: {
|
|
20645
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20646
|
-
break;
|
|
20647
|
-
}
|
|
20648
|
-
case 2: {
|
|
20649
|
-
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
19645
|
+
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
20650
19646
|
break;
|
|
20651
19647
|
}
|
|
20652
19648
|
default:
|
|
@@ -27072,60 +26068,976 @@ $root.file = (function() {
|
|
|
27072
26068
|
if (!options)
|
|
27073
26069
|
options = {};
|
|
27074
26070
|
var object = {};
|
|
27075
|
-
if (options.defaults)
|
|
27076
|
-
object.opts = null;
|
|
27077
|
-
if (message.opts != null && message.hasOwnProperty("opts"))
|
|
27078
|
-
object.opts = $root.file.OptionsToUploadLocal.toObject(message.opts, options);
|
|
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.
|
|
26972
|
+
* @function toObject
|
|
26973
|
+
* @memberof file.OptionsToUploadLocal
|
|
26974
|
+
* @static
|
|
26975
|
+
* @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
|
|
26976
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26977
|
+
* @returns {Object.<string,*>} Plain object
|
|
26978
|
+
*/
|
|
26979
|
+
OptionsToUploadLocal.toObject = function toObject(message, options) {
|
|
26980
|
+
if (!options)
|
|
26981
|
+
options = {};
|
|
26982
|
+
var object = {};
|
|
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);
|
|
27079
26991
|
return object;
|
|
27080
26992
|
};
|
|
27081
26993
|
|
|
27082
26994
|
/**
|
|
27083
|
-
* Converts this
|
|
26995
|
+
* Converts this OptionsToUploadLocal to JSON.
|
|
27084
26996
|
* @function toJSON
|
|
27085
|
-
* @memberof file.
|
|
26997
|
+
* @memberof file.OptionsToUploadLocal
|
|
27086
26998
|
* @instance
|
|
27087
26999
|
* @returns {Object.<string,*>} JSON object
|
|
27088
27000
|
*/
|
|
27089
|
-
|
|
27001
|
+
OptionsToUploadLocal.prototype.toJSON = function toJSON() {
|
|
27090
27002
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27091
27003
|
};
|
|
27092
27004
|
|
|
27093
27005
|
/**
|
|
27094
|
-
* Gets the default type url for
|
|
27006
|
+
* Gets the default type url for OptionsToUploadLocal
|
|
27095
27007
|
* @function getTypeUrl
|
|
27096
|
-
* @memberof file.
|
|
27008
|
+
* @memberof file.OptionsToUploadLocal
|
|
27097
27009
|
* @static
|
|
27098
27010
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27099
27011
|
* @returns {string} The default type url
|
|
27100
27012
|
*/
|
|
27101
|
-
|
|
27013
|
+
OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27102
27014
|
if (typeUrlPrefix === undefined) {
|
|
27103
27015
|
typeUrlPrefix = "type.googleapis.com";
|
|
27104
27016
|
}
|
|
27105
|
-
return typeUrlPrefix + "/file.
|
|
27017
|
+
return typeUrlPrefix + "/file.OptionsToUploadLocal";
|
|
27106
27018
|
};
|
|
27107
27019
|
|
|
27108
|
-
return
|
|
27020
|
+
return OptionsToUploadLocal;
|
|
27109
27021
|
})();
|
|
27110
27022
|
|
|
27111
|
-
file.
|
|
27023
|
+
file.WatchUploadRequestBody = (function() {
|
|
27112
27024
|
|
|
27113
27025
|
/**
|
|
27114
|
-
* Properties of a
|
|
27026
|
+
* Properties of a WatchUploadRequestBody.
|
|
27115
27027
|
* @memberof file
|
|
27116
|
-
* @interface
|
|
27117
|
-
* @property {
|
|
27028
|
+
* @interface IWatchUploadRequestBody
|
|
27029
|
+
* @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
|
|
27118
27030
|
*/
|
|
27119
27031
|
|
|
27120
27032
|
/**
|
|
27121
|
-
* Constructs a new
|
|
27033
|
+
* Constructs a new WatchUploadRequestBody.
|
|
27122
27034
|
* @memberof file
|
|
27123
|
-
* @classdesc Represents a
|
|
27124
|
-
* @implements
|
|
27035
|
+
* @classdesc Represents a WatchUploadRequestBody.
|
|
27036
|
+
* @implements IWatchUploadRequestBody
|
|
27125
27037
|
* @constructor
|
|
27126
|
-
* @param {file.
|
|
27038
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
27127
27039
|
*/
|
|
27128
|
-
function
|
|
27040
|
+
function WatchUploadRequestBody(properties) {
|
|
27129
27041
|
if (properties)
|
|
27130
27042
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27131
27043
|
if (properties[keys[i]] != null)
|
|
@@ -27133,77 +27045,77 @@ $root.file = (function() {
|
|
|
27133
27045
|
}
|
|
27134
27046
|
|
|
27135
27047
|
/**
|
|
27136
|
-
*
|
|
27137
|
-
* @member {
|
|
27138
|
-
* @memberof file.
|
|
27048
|
+
* WatchUploadRequestBody uploadTaskId.
|
|
27049
|
+
* @member {number|Long} uploadTaskId
|
|
27050
|
+
* @memberof file.WatchUploadRequestBody
|
|
27139
27051
|
* @instance
|
|
27140
27052
|
*/
|
|
27141
|
-
|
|
27053
|
+
WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27142
27054
|
|
|
27143
27055
|
/**
|
|
27144
|
-
* Creates a new
|
|
27056
|
+
* Creates a new WatchUploadRequestBody instance using the specified properties.
|
|
27145
27057
|
* @function create
|
|
27146
|
-
* @memberof file.
|
|
27058
|
+
* @memberof file.WatchUploadRequestBody
|
|
27147
27059
|
* @static
|
|
27148
|
-
* @param {file.
|
|
27149
|
-
* @returns {file.
|
|
27060
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
27061
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
|
|
27150
27062
|
*/
|
|
27151
|
-
|
|
27152
|
-
return new
|
|
27063
|
+
WatchUploadRequestBody.create = function create(properties) {
|
|
27064
|
+
return new WatchUploadRequestBody(properties);
|
|
27153
27065
|
};
|
|
27154
27066
|
|
|
27155
27067
|
/**
|
|
27156
|
-
* Encodes the specified
|
|
27068
|
+
* Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
27157
27069
|
* @function encode
|
|
27158
|
-
* @memberof file.
|
|
27070
|
+
* @memberof file.WatchUploadRequestBody
|
|
27159
27071
|
* @static
|
|
27160
|
-
* @param {file.
|
|
27072
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
27161
27073
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27162
27074
|
* @returns {$protobuf.Writer} Writer
|
|
27163
27075
|
*/
|
|
27164
|
-
|
|
27076
|
+
WatchUploadRequestBody.encode = function encode(message, writer) {
|
|
27165
27077
|
if (!writer)
|
|
27166
27078
|
writer = $Writer.create();
|
|
27167
|
-
if (message.
|
|
27168
|
-
|
|
27079
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
27080
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
|
|
27169
27081
|
return writer;
|
|
27170
27082
|
};
|
|
27171
27083
|
|
|
27172
27084
|
/**
|
|
27173
|
-
* Encodes the specified
|
|
27085
|
+
* Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
27174
27086
|
* @function encodeDelimited
|
|
27175
|
-
* @memberof file.
|
|
27087
|
+
* @memberof file.WatchUploadRequestBody
|
|
27176
27088
|
* @static
|
|
27177
|
-
* @param {file.
|
|
27089
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
27178
27090
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27179
27091
|
* @returns {$protobuf.Writer} Writer
|
|
27180
27092
|
*/
|
|
27181
|
-
|
|
27093
|
+
WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27182
27094
|
return this.encode(message, writer).ldelim();
|
|
27183
27095
|
};
|
|
27184
27096
|
|
|
27185
27097
|
/**
|
|
27186
|
-
* Decodes a
|
|
27098
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer.
|
|
27187
27099
|
* @function decode
|
|
27188
|
-
* @memberof file.
|
|
27100
|
+
* @memberof file.WatchUploadRequestBody
|
|
27189
27101
|
* @static
|
|
27190
27102
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27191
27103
|
* @param {number} [length] Message length if known beforehand
|
|
27192
|
-
* @returns {file.
|
|
27104
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
27193
27105
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27194
27106
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27195
27107
|
*/
|
|
27196
|
-
|
|
27108
|
+
WatchUploadRequestBody.decode = function decode(reader, length, error) {
|
|
27197
27109
|
if (!(reader instanceof $Reader))
|
|
27198
27110
|
reader = $Reader.create(reader);
|
|
27199
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
27111
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
|
|
27200
27112
|
while (reader.pos < end) {
|
|
27201
27113
|
var tag = reader.uint32();
|
|
27202
27114
|
if (tag === error)
|
|
27203
27115
|
break;
|
|
27204
27116
|
switch (tag >>> 3) {
|
|
27205
27117
|
case 1: {
|
|
27206
|
-
message.
|
|
27118
|
+
message.uploadTaskId = reader.uint64();
|
|
27207
27119
|
break;
|
|
27208
27120
|
}
|
|
27209
27121
|
default:
|
|
@@ -27215,128 +27127,139 @@ $root.file = (function() {
|
|
|
27215
27127
|
};
|
|
27216
27128
|
|
|
27217
27129
|
/**
|
|
27218
|
-
* Decodes a
|
|
27130
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
|
|
27219
27131
|
* @function decodeDelimited
|
|
27220
|
-
* @memberof file.
|
|
27132
|
+
* @memberof file.WatchUploadRequestBody
|
|
27221
27133
|
* @static
|
|
27222
27134
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27223
|
-
* @returns {file.
|
|
27135
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
27224
27136
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27225
27137
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27226
27138
|
*/
|
|
27227
|
-
|
|
27139
|
+
WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
27228
27140
|
if (!(reader instanceof $Reader))
|
|
27229
27141
|
reader = new $Reader(reader);
|
|
27230
27142
|
return this.decode(reader, reader.uint32());
|
|
27231
27143
|
};
|
|
27232
27144
|
|
|
27233
27145
|
/**
|
|
27234
|
-
* Verifies a
|
|
27146
|
+
* Verifies a WatchUploadRequestBody message.
|
|
27235
27147
|
* @function verify
|
|
27236
|
-
* @memberof file.
|
|
27148
|
+
* @memberof file.WatchUploadRequestBody
|
|
27237
27149
|
* @static
|
|
27238
27150
|
* @param {Object.<string,*>} message Plain object to verify
|
|
27239
27151
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27240
27152
|
*/
|
|
27241
|
-
|
|
27153
|
+
WatchUploadRequestBody.verify = function verify(message) {
|
|
27242
27154
|
if (typeof message !== "object" || message === null)
|
|
27243
27155
|
return "object expected";
|
|
27244
|
-
if (message.
|
|
27245
|
-
|
|
27246
|
-
|
|
27247
|
-
return "uploadedVersion." + error;
|
|
27248
|
-
}
|
|
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";
|
|
27249
27159
|
return null;
|
|
27250
27160
|
};
|
|
27251
27161
|
|
|
27252
27162
|
/**
|
|
27253
|
-
* Creates a
|
|
27163
|
+
* Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
27254
27164
|
* @function fromObject
|
|
27255
|
-
* @memberof file.
|
|
27165
|
+
* @memberof file.WatchUploadRequestBody
|
|
27256
27166
|
* @static
|
|
27257
27167
|
* @param {Object.<string,*>} object Plain object
|
|
27258
|
-
* @returns {file.
|
|
27168
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
27259
27169
|
*/
|
|
27260
|
-
|
|
27261
|
-
if (object instanceof $root.file.
|
|
27170
|
+
WatchUploadRequestBody.fromObject = function fromObject(object) {
|
|
27171
|
+
if (object instanceof $root.file.WatchUploadRequestBody)
|
|
27262
27172
|
return object;
|
|
27263
|
-
var message = new $root.file.
|
|
27264
|
-
if (object.
|
|
27265
|
-
if (
|
|
27266
|
-
|
|
27267
|
-
|
|
27268
|
-
|
|
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);
|
|
27269
27183
|
return message;
|
|
27270
27184
|
};
|
|
27271
27185
|
|
|
27272
27186
|
/**
|
|
27273
|
-
* Creates a plain object from a
|
|
27187
|
+
* Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
|
|
27274
27188
|
* @function toObject
|
|
27275
|
-
* @memberof file.
|
|
27189
|
+
* @memberof file.WatchUploadRequestBody
|
|
27276
27190
|
* @static
|
|
27277
|
-
* @param {file.
|
|
27191
|
+
* @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
|
|
27278
27192
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27279
27193
|
* @returns {Object.<string,*>} Plain object
|
|
27280
27194
|
*/
|
|
27281
|
-
|
|
27195
|
+
WatchUploadRequestBody.toObject = function toObject(message, options) {
|
|
27282
27196
|
if (!options)
|
|
27283
27197
|
options = {};
|
|
27284
27198
|
var object = {};
|
|
27285
27199
|
if (options.defaults)
|
|
27286
|
-
|
|
27287
|
-
|
|
27288
|
-
|
|
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;
|
|
27289
27210
|
return object;
|
|
27290
27211
|
};
|
|
27291
27212
|
|
|
27292
27213
|
/**
|
|
27293
|
-
* Converts this
|
|
27214
|
+
* Converts this WatchUploadRequestBody to JSON.
|
|
27294
27215
|
* @function toJSON
|
|
27295
|
-
* @memberof file.
|
|
27216
|
+
* @memberof file.WatchUploadRequestBody
|
|
27296
27217
|
* @instance
|
|
27297
27218
|
* @returns {Object.<string,*>} JSON object
|
|
27298
27219
|
*/
|
|
27299
|
-
|
|
27220
|
+
WatchUploadRequestBody.prototype.toJSON = function toJSON() {
|
|
27300
27221
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27301
27222
|
};
|
|
27302
27223
|
|
|
27303
27224
|
/**
|
|
27304
|
-
* Gets the default type url for
|
|
27225
|
+
* Gets the default type url for WatchUploadRequestBody
|
|
27305
27226
|
* @function getTypeUrl
|
|
27306
|
-
* @memberof file.
|
|
27227
|
+
* @memberof file.WatchUploadRequestBody
|
|
27307
27228
|
* @static
|
|
27308
27229
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27309
27230
|
* @returns {string} The default type url
|
|
27310
27231
|
*/
|
|
27311
|
-
|
|
27232
|
+
WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27312
27233
|
if (typeUrlPrefix === undefined) {
|
|
27313
27234
|
typeUrlPrefix = "type.googleapis.com";
|
|
27314
27235
|
}
|
|
27315
|
-
return typeUrlPrefix + "/file.
|
|
27236
|
+
return typeUrlPrefix + "/file.WatchUploadRequestBody";
|
|
27316
27237
|
};
|
|
27317
27238
|
|
|
27318
|
-
return
|
|
27239
|
+
return WatchUploadRequestBody;
|
|
27319
27240
|
})();
|
|
27320
27241
|
|
|
27321
|
-
file.
|
|
27242
|
+
file.UploadEventMsg = (function() {
|
|
27322
27243
|
|
|
27323
27244
|
/**
|
|
27324
|
-
* Properties of an
|
|
27245
|
+
* Properties of an UploadEventMsg.
|
|
27325
27246
|
* @memberof file
|
|
27326
|
-
* @interface
|
|
27327
|
-
* @property {
|
|
27328
|
-
* @property {
|
|
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
|
|
27329
27252
|
*/
|
|
27330
27253
|
|
|
27331
27254
|
/**
|
|
27332
|
-
* Constructs a new
|
|
27255
|
+
* Constructs a new UploadEventMsg.
|
|
27333
27256
|
* @memberof file
|
|
27334
|
-
* @classdesc Represents an
|
|
27335
|
-
* @implements
|
|
27257
|
+
* @classdesc Represents an UploadEventMsg.
|
|
27258
|
+
* @implements IUploadEventMsg
|
|
27336
27259
|
* @constructor
|
|
27337
|
-
* @param {file.
|
|
27260
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
27338
27261
|
*/
|
|
27339
|
-
function
|
|
27262
|
+
function UploadEventMsg(properties) {
|
|
27340
27263
|
if (properties)
|
|
27341
27264
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27342
27265
|
if (properties[keys[i]] != null)
|
|
@@ -27344,91 +27267,119 @@ $root.file = (function() {
|
|
|
27344
27267
|
}
|
|
27345
27268
|
|
|
27346
27269
|
/**
|
|
27347
|
-
*
|
|
27348
|
-
* @member {
|
|
27349
|
-
* @memberof file.
|
|
27270
|
+
* UploadEventMsg type.
|
|
27271
|
+
* @member {string} type
|
|
27272
|
+
* @memberof file.UploadEventMsg
|
|
27350
27273
|
* @instance
|
|
27351
27274
|
*/
|
|
27352
|
-
|
|
27275
|
+
UploadEventMsg.prototype.type = "";
|
|
27353
27276
|
|
|
27354
27277
|
/**
|
|
27355
|
-
*
|
|
27356
|
-
* @member {
|
|
27357
|
-
* @memberof file.
|
|
27278
|
+
* UploadEventMsg uploadTaskId.
|
|
27279
|
+
* @member {number|Long} uploadTaskId
|
|
27280
|
+
* @memberof file.UploadEventMsg
|
|
27358
27281
|
* @instance
|
|
27359
27282
|
*/
|
|
27360
|
-
|
|
27283
|
+
UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27361
27284
|
|
|
27362
27285
|
/**
|
|
27363
|
-
*
|
|
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.
|
|
27364
27303
|
* @function create
|
|
27365
|
-
* @memberof file.
|
|
27304
|
+
* @memberof file.UploadEventMsg
|
|
27366
27305
|
* @static
|
|
27367
|
-
* @param {file.
|
|
27368
|
-
* @returns {file.
|
|
27306
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
27307
|
+
* @returns {file.UploadEventMsg} UploadEventMsg instance
|
|
27369
27308
|
*/
|
|
27370
|
-
|
|
27371
|
-
return new
|
|
27309
|
+
UploadEventMsg.create = function create(properties) {
|
|
27310
|
+
return new UploadEventMsg(properties);
|
|
27372
27311
|
};
|
|
27373
27312
|
|
|
27374
27313
|
/**
|
|
27375
|
-
* Encodes the specified
|
|
27314
|
+
* Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
27376
27315
|
* @function encode
|
|
27377
|
-
* @memberof file.
|
|
27316
|
+
* @memberof file.UploadEventMsg
|
|
27378
27317
|
* @static
|
|
27379
|
-
* @param {file.
|
|
27318
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
27380
27319
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27381
27320
|
* @returns {$protobuf.Writer} Writer
|
|
27382
27321
|
*/
|
|
27383
|
-
|
|
27322
|
+
UploadEventMsg.encode = function encode(message, writer) {
|
|
27384
27323
|
if (!writer)
|
|
27385
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);
|
|
27386
27329
|
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
27387
|
-
|
|
27330
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
|
|
27388
27331
|
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
27389
|
-
|
|
27332
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
|
|
27390
27333
|
return writer;
|
|
27391
27334
|
};
|
|
27392
27335
|
|
|
27393
27336
|
/**
|
|
27394
|
-
* Encodes the specified
|
|
27337
|
+
* Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
27395
27338
|
* @function encodeDelimited
|
|
27396
|
-
* @memberof file.
|
|
27339
|
+
* @memberof file.UploadEventMsg
|
|
27397
27340
|
* @static
|
|
27398
|
-
* @param {file.
|
|
27341
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
27399
27342
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27400
27343
|
* @returns {$protobuf.Writer} Writer
|
|
27401
27344
|
*/
|
|
27402
|
-
|
|
27345
|
+
UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27403
27346
|
return this.encode(message, writer).ldelim();
|
|
27404
27347
|
};
|
|
27405
27348
|
|
|
27406
27349
|
/**
|
|
27407
|
-
* Decodes an
|
|
27350
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer.
|
|
27408
27351
|
* @function decode
|
|
27409
|
-
* @memberof file.
|
|
27352
|
+
* @memberof file.UploadEventMsg
|
|
27410
27353
|
* @static
|
|
27411
27354
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27412
27355
|
* @param {number} [length] Message length if known beforehand
|
|
27413
|
-
* @returns {file.
|
|
27356
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
27414
27357
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27415
27358
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27416
27359
|
*/
|
|
27417
|
-
|
|
27360
|
+
UploadEventMsg.decode = function decode(reader, length, error) {
|
|
27418
27361
|
if (!(reader instanceof $Reader))
|
|
27419
27362
|
reader = $Reader.create(reader);
|
|
27420
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
27363
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
|
|
27421
27364
|
while (reader.pos < end) {
|
|
27422
27365
|
var tag = reader.uint32();
|
|
27423
27366
|
if (tag === error)
|
|
27424
27367
|
break;
|
|
27425
27368
|
switch (tag >>> 3) {
|
|
27426
27369
|
case 1: {
|
|
27427
|
-
message.
|
|
27370
|
+
message.type = reader.string();
|
|
27428
27371
|
break;
|
|
27429
27372
|
}
|
|
27430
27373
|
case 2: {
|
|
27431
|
-
message.
|
|
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();
|
|
27432
27383
|
break;
|
|
27433
27384
|
}
|
|
27434
27385
|
default:
|
|
@@ -27440,121 +27391,169 @@ $root.file = (function() {
|
|
|
27440
27391
|
};
|
|
27441
27392
|
|
|
27442
27393
|
/**
|
|
27443
|
-
* Decodes an
|
|
27394
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
|
|
27444
27395
|
* @function decodeDelimited
|
|
27445
|
-
* @memberof file.
|
|
27396
|
+
* @memberof file.UploadEventMsg
|
|
27446
27397
|
* @static
|
|
27447
27398
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27448
|
-
* @returns {file.
|
|
27399
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
27449
27400
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27450
27401
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27451
27402
|
*/
|
|
27452
|
-
|
|
27403
|
+
UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
|
|
27453
27404
|
if (!(reader instanceof $Reader))
|
|
27454
27405
|
reader = new $Reader(reader);
|
|
27455
27406
|
return this.decode(reader, reader.uint32());
|
|
27456
27407
|
};
|
|
27457
27408
|
|
|
27458
27409
|
/**
|
|
27459
|
-
* Verifies an
|
|
27410
|
+
* Verifies an UploadEventMsg message.
|
|
27460
27411
|
* @function verify
|
|
27461
|
-
* @memberof file.
|
|
27412
|
+
* @memberof file.UploadEventMsg
|
|
27462
27413
|
* @static
|
|
27463
27414
|
* @param {Object.<string,*>} message Plain object to verify
|
|
27464
27415
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27465
27416
|
*/
|
|
27466
|
-
|
|
27417
|
+
UploadEventMsg.verify = function verify(message) {
|
|
27467
27418
|
if (typeof message !== "object" || message === null)
|
|
27468
27419
|
return "object expected";
|
|
27469
|
-
if (message.
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
if (
|
|
27477
|
-
return "
|
|
27478
|
-
|
|
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";
|
|
27479
27432
|
return null;
|
|
27480
27433
|
};
|
|
27481
27434
|
|
|
27482
27435
|
/**
|
|
27483
|
-
* Creates an
|
|
27436
|
+
* Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
|
|
27484
27437
|
* @function fromObject
|
|
27485
|
-
* @memberof file.
|
|
27438
|
+
* @memberof file.UploadEventMsg
|
|
27486
27439
|
* @static
|
|
27487
27440
|
* @param {Object.<string,*>} object Plain object
|
|
27488
|
-
* @returns {file.
|
|
27441
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
27489
27442
|
*/
|
|
27490
|
-
|
|
27491
|
-
if (object instanceof $root.file.
|
|
27443
|
+
UploadEventMsg.fromObject = function fromObject(object) {
|
|
27444
|
+
if (object instanceof $root.file.UploadEventMsg)
|
|
27492
27445
|
return object;
|
|
27493
|
-
var message = new $root.file.
|
|
27494
|
-
if (object.
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
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);
|
|
27504
27476
|
return message;
|
|
27505
27477
|
};
|
|
27506
27478
|
|
|
27507
27479
|
/**
|
|
27508
|
-
* Creates a plain object from an
|
|
27480
|
+
* Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
|
|
27509
27481
|
* @function toObject
|
|
27510
|
-
* @memberof file.
|
|
27482
|
+
* @memberof file.UploadEventMsg
|
|
27511
27483
|
* @static
|
|
27512
|
-
* @param {file.
|
|
27484
|
+
* @param {file.UploadEventMsg} message UploadEventMsg
|
|
27513
27485
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27514
27486
|
* @returns {Object.<string,*>} Plain object
|
|
27515
27487
|
*/
|
|
27516
|
-
|
|
27488
|
+
UploadEventMsg.toObject = function toObject(message, options) {
|
|
27517
27489
|
if (!options)
|
|
27518
27490
|
options = {};
|
|
27519
27491
|
var object = {};
|
|
27520
27492
|
if (options.defaults) {
|
|
27521
|
-
object.
|
|
27522
|
-
|
|
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;
|
|
27523
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;
|
|
27524
27517
|
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
27525
|
-
|
|
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;
|
|
27526
27522
|
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
27527
|
-
|
|
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;
|
|
27528
27527
|
return object;
|
|
27529
27528
|
};
|
|
27530
27529
|
|
|
27531
27530
|
/**
|
|
27532
|
-
* Converts this
|
|
27531
|
+
* Converts this UploadEventMsg to JSON.
|
|
27533
27532
|
* @function toJSON
|
|
27534
|
-
* @memberof file.
|
|
27533
|
+
* @memberof file.UploadEventMsg
|
|
27535
27534
|
* @instance
|
|
27536
27535
|
* @returns {Object.<string,*>} JSON object
|
|
27537
27536
|
*/
|
|
27538
|
-
|
|
27537
|
+
UploadEventMsg.prototype.toJSON = function toJSON() {
|
|
27539
27538
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27540
27539
|
};
|
|
27541
27540
|
|
|
27542
27541
|
/**
|
|
27543
|
-
* Gets the default type url for
|
|
27542
|
+
* Gets the default type url for UploadEventMsg
|
|
27544
27543
|
* @function getTypeUrl
|
|
27545
|
-
* @memberof file.
|
|
27544
|
+
* @memberof file.UploadEventMsg
|
|
27546
27545
|
* @static
|
|
27547
27546
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
27548
27547
|
* @returns {string} The default type url
|
|
27549
27548
|
*/
|
|
27550
|
-
|
|
27549
|
+
UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
27551
27550
|
if (typeUrlPrefix === undefined) {
|
|
27552
27551
|
typeUrlPrefix = "type.googleapis.com";
|
|
27553
27552
|
}
|
|
27554
|
-
return typeUrlPrefix + "/file.
|
|
27553
|
+
return typeUrlPrefix + "/file.UploadEventMsg";
|
|
27555
27554
|
};
|
|
27556
27555
|
|
|
27557
|
-
return
|
|
27556
|
+
return UploadEventMsg;
|
|
27558
27557
|
})();
|
|
27559
27558
|
|
|
27560
27559
|
return file;
|