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.
Files changed (34) hide show
  1. package/build/api-defs/files.d.ts +68 -4
  2. package/build/core/storage/synced/obj-files.d.ts +1 -0
  3. package/build/core/storage/synced/obj-files.js +16 -0
  4. package/build/core/storage/synced/obj-status.d.ts +1 -0
  5. package/build/core/storage/synced/obj-status.js +18 -0
  6. package/build/core/storage/synced/storage.d.ts +6 -2
  7. package/build/core/storage/synced/storage.js +12 -17
  8. package/build/core/storage/synced/upsyncer.d.ts +10 -1
  9. package/build/core/storage/synced/upsyncer.js +72 -9
  10. package/build/core-ipc/file.d.ts +23 -4
  11. package/build/core-ipc/file.js +56 -80
  12. package/build/core-ipc/fs.js +46 -132
  13. package/build/lib-client/fs-utils/files.js +2 -0
  14. package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -0
  15. package/build/lib-client/objs-on-disk/obj-on-disk.js +8 -1
  16. package/build/lib-client/xsp-fs/common.d.ts +13 -21
  17. package/build/lib-client/xsp-fs/common.js +4 -16
  18. package/build/lib-client/xsp-fs/file-node.js +9 -22
  19. package/build/lib-client/xsp-fs/file.d.ts +4 -0
  20. package/build/lib-client/xsp-fs/file.js +18 -1
  21. package/build/lib-client/xsp-fs/folder-node.d.ts +5 -1
  22. package/build/lib-client/xsp-fs/folder-node.js +15 -27
  23. package/build/lib-client/xsp-fs/fs.d.ts +4 -0
  24. package/build/lib-client/xsp-fs/fs.js +25 -1
  25. package/build/lib-client/xsp-fs/link-node.js +3 -19
  26. package/build/lib-client/xsp-fs/node-in-fs.d.ts +18 -5
  27. package/build/lib-client/xsp-fs/node-in-fs.js +70 -12
  28. package/build/lib-common/processes/labelled-exec-pools.js +1 -3
  29. package/build/protos/asmail.proto.js +1436 -1437
  30. package/build/protos/file.proto.js +1077 -387
  31. package/build/protos/fs.proto.js +1395 -1396
  32. package/package.json +4 -4
  33. package/protos/file.proto +24 -12
  34. package/protos/fs.proto +8 -21
@@ -1318,7 +1318,8 @@ $root.file = (function() {
1318
1318
  * @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
1319
1319
  * @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
1320
1320
  * @property {common.IUInt64Value|null} [version] StatsMsg version
1321
- * @property {file.ISyncStatusMsg|null} [sync] StatsMsg sync
1321
+ * @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
1322
+ * @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
1322
1323
  */
1323
1324
 
1324
1325
  /**
@@ -1401,12 +1402,20 @@ $root.file = (function() {
1401
1402
  StatsMsg.prototype.version = null;
1402
1403
 
1403
1404
  /**
1404
- * StatsMsg sync.
1405
- * @member {file.ISyncStatusMsg|null|undefined} sync
1405
+ * StatsMsg bytesNeedDownload.
1406
+ * @member {common.IUInt64Value|null|undefined} bytesNeedDownload
1406
1407
  * @memberof file.StatsMsg
1407
1408
  * @instance
1408
1409
  */
1409
- StatsMsg.prototype.sync = null;
1410
+ StatsMsg.prototype.bytesNeedDownload = null;
1411
+
1412
+ /**
1413
+ * StatsMsg versionSyncBranch.
1414
+ * @member {common.IStringValue|null|undefined} versionSyncBranch
1415
+ * @memberof file.StatsMsg
1416
+ * @instance
1417
+ */
1418
+ StatsMsg.prototype.versionSyncBranch = null;
1410
1419
 
1411
1420
  /**
1412
1421
  * Creates a new StatsMsg instance using the specified properties.
@@ -1448,8 +1457,10 @@ $root.file = (function() {
1448
1457
  $root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
1449
1458
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
1450
1459
  $root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
1451
- if (message.sync != null && Object.hasOwnProperty.call(message, "sync"))
1452
- $root.file.SyncStatusMsg.encode(message.sync, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
1460
+ if (message.bytesNeedDownload != null && Object.hasOwnProperty.call(message, "bytesNeedDownload"))
1461
+ $root.common.UInt64Value.encode(message.bytesNeedDownload, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
1462
+ if (message.versionSyncBranch != null && Object.hasOwnProperty.call(message, "versionSyncBranch"))
1463
+ $root.common.StringValue.encode(message.versionSyncBranch, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
1453
1464
  return writer;
1454
1465
  };
1455
1466
 
@@ -1519,7 +1530,11 @@ $root.file = (function() {
1519
1530
  break;
1520
1531
  }
1521
1532
  case 9: {
1522
- message.sync = $root.file.SyncStatusMsg.decode(reader, reader.uint32());
1533
+ message.bytesNeedDownload = $root.common.UInt64Value.decode(reader, reader.uint32());
1534
+ break;
1535
+ }
1536
+ case 10: {
1537
+ message.versionSyncBranch = $root.common.StringValue.decode(reader, reader.uint32());
1523
1538
  break;
1524
1539
  }
1525
1540
  default:
@@ -1595,10 +1610,15 @@ $root.file = (function() {
1595
1610
  if (error)
1596
1611
  return "version." + error;
1597
1612
  }
1598
- if (message.sync != null && message.hasOwnProperty("sync")) {
1599
- var error = $root.file.SyncStatusMsg.verify(message.sync);
1613
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload")) {
1614
+ var error = $root.common.UInt64Value.verify(message.bytesNeedDownload);
1600
1615
  if (error)
1601
- return "sync." + error;
1616
+ return "bytesNeedDownload." + error;
1617
+ }
1618
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch")) {
1619
+ var error = $root.common.StringValue.verify(message.versionSyncBranch);
1620
+ if (error)
1621
+ return "versionSyncBranch." + error;
1602
1622
  }
1603
1623
  return null;
1604
1624
  };
@@ -1652,10 +1672,15 @@ $root.file = (function() {
1652
1672
  throw TypeError(".file.StatsMsg.version: object expected");
1653
1673
  message.version = $root.common.UInt64Value.fromObject(object.version);
1654
1674
  }
1655
- if (object.sync != null) {
1656
- if (typeof object.sync !== "object")
1657
- throw TypeError(".file.StatsMsg.sync: object expected");
1658
- message.sync = $root.file.SyncStatusMsg.fromObject(object.sync);
1675
+ if (object.bytesNeedDownload != null) {
1676
+ if (typeof object.bytesNeedDownload !== "object")
1677
+ throw TypeError(".file.StatsMsg.bytesNeedDownload: object expected");
1678
+ message.bytesNeedDownload = $root.common.UInt64Value.fromObject(object.bytesNeedDownload);
1679
+ }
1680
+ if (object.versionSyncBranch != null) {
1681
+ if (typeof object.versionSyncBranch !== "object")
1682
+ throw TypeError(".file.StatsMsg.versionSyncBranch: object expected");
1683
+ message.versionSyncBranch = $root.common.StringValue.fromObject(object.versionSyncBranch);
1659
1684
  }
1660
1685
  return message;
1661
1686
  };
@@ -1682,7 +1707,8 @@ $root.file = (function() {
1682
1707
  object.mtime = null;
1683
1708
  object.ctime = null;
1684
1709
  object.version = null;
1685
- object.sync = null;
1710
+ object.bytesNeedDownload = null;
1711
+ object.versionSyncBranch = null;
1686
1712
  }
1687
1713
  if (message.isFile != null && message.hasOwnProperty("isFile"))
1688
1714
  object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
@@ -1700,8 +1726,10 @@ $root.file = (function() {
1700
1726
  object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
1701
1727
  if (message.version != null && message.hasOwnProperty("version"))
1702
1728
  object.version = $root.common.UInt64Value.toObject(message.version, options);
1703
- if (message.sync != null && message.hasOwnProperty("sync"))
1704
- object.sync = $root.file.SyncStatusMsg.toObject(message.sync, options);
1729
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload"))
1730
+ object.bytesNeedDownload = $root.common.UInt64Value.toObject(message.bytesNeedDownload, options);
1731
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch"))
1732
+ object.versionSyncBranch = $root.common.StringValue.toObject(message.versionSyncBranch, options);
1705
1733
  return object;
1706
1734
  };
1707
1735
 
@@ -2655,347 +2683,6 @@ $root.file = (function() {
2655
2683
  return ReadBytesReplyBody;
2656
2684
  })();
2657
2685
 
2658
- file.FileEventMsg = (function() {
2659
-
2660
- /**
2661
- * Properties of a FileEventMsg.
2662
- * @memberof file
2663
- * @interface IFileEventMsg
2664
- * @property {string|null} [type] FileEventMsg type
2665
- * @property {string|null} [path] FileEventMsg path
2666
- * @property {common.IStringValue|null} [src] FileEventMsg src
2667
- * @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
2668
- * @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
2669
- * @property {common.IUInt64Value|null} [archivedVersion] FileEventMsg archivedVersion
2670
- */
2671
-
2672
- /**
2673
- * Constructs a new FileEventMsg.
2674
- * @memberof file
2675
- * @classdesc Represents a FileEventMsg.
2676
- * @implements IFileEventMsg
2677
- * @constructor
2678
- * @param {file.IFileEventMsg=} [properties] Properties to set
2679
- */
2680
- function FileEventMsg(properties) {
2681
- if (properties)
2682
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2683
- if (properties[keys[i]] != null)
2684
- this[keys[i]] = properties[keys[i]];
2685
- }
2686
-
2687
- /**
2688
- * FileEventMsg type.
2689
- * @member {string} type
2690
- * @memberof file.FileEventMsg
2691
- * @instance
2692
- */
2693
- FileEventMsg.prototype.type = "";
2694
-
2695
- /**
2696
- * FileEventMsg path.
2697
- * @member {string} path
2698
- * @memberof file.FileEventMsg
2699
- * @instance
2700
- */
2701
- FileEventMsg.prototype.path = "";
2702
-
2703
- /**
2704
- * FileEventMsg src.
2705
- * @member {common.IStringValue|null|undefined} src
2706
- * @memberof file.FileEventMsg
2707
- * @instance
2708
- */
2709
- FileEventMsg.prototype.src = null;
2710
-
2711
- /**
2712
- * FileEventMsg newVersion.
2713
- * @member {common.IUInt64Value|null|undefined} newVersion
2714
- * @memberof file.FileEventMsg
2715
- * @instance
2716
- */
2717
- FileEventMsg.prototype.newVersion = null;
2718
-
2719
- /**
2720
- * FileEventMsg removedArchVer.
2721
- * @member {common.IUInt64Value|null|undefined} removedArchVer
2722
- * @memberof file.FileEventMsg
2723
- * @instance
2724
- */
2725
- FileEventMsg.prototype.removedArchVer = null;
2726
-
2727
- /**
2728
- * FileEventMsg archivedVersion.
2729
- * @member {common.IUInt64Value|null|undefined} archivedVersion
2730
- * @memberof file.FileEventMsg
2731
- * @instance
2732
- */
2733
- FileEventMsg.prototype.archivedVersion = null;
2734
-
2735
- /**
2736
- * Creates a new FileEventMsg instance using the specified properties.
2737
- * @function create
2738
- * @memberof file.FileEventMsg
2739
- * @static
2740
- * @param {file.IFileEventMsg=} [properties] Properties to set
2741
- * @returns {file.FileEventMsg} FileEventMsg instance
2742
- */
2743
- FileEventMsg.create = function create(properties) {
2744
- return new FileEventMsg(properties);
2745
- };
2746
-
2747
- /**
2748
- * Encodes the specified FileEventMsg message. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
2749
- * @function encode
2750
- * @memberof file.FileEventMsg
2751
- * @static
2752
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
2753
- * @param {$protobuf.Writer} [writer] Writer to encode to
2754
- * @returns {$protobuf.Writer} Writer
2755
- */
2756
- FileEventMsg.encode = function encode(message, writer) {
2757
- if (!writer)
2758
- writer = $Writer.create();
2759
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
2760
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
2761
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
2762
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
2763
- if (message.src != null && Object.hasOwnProperty.call(message, "src"))
2764
- $root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
2765
- if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
2766
- $root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
2767
- if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
2768
- $root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
2769
- if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
2770
- $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
2771
- return writer;
2772
- };
2773
-
2774
- /**
2775
- * Encodes the specified FileEventMsg message, length delimited. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
2776
- * @function encodeDelimited
2777
- * @memberof file.FileEventMsg
2778
- * @static
2779
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
2780
- * @param {$protobuf.Writer} [writer] Writer to encode to
2781
- * @returns {$protobuf.Writer} Writer
2782
- */
2783
- FileEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
2784
- return this.encode(message, writer).ldelim();
2785
- };
2786
-
2787
- /**
2788
- * Decodes a FileEventMsg message from the specified reader or buffer.
2789
- * @function decode
2790
- * @memberof file.FileEventMsg
2791
- * @static
2792
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2793
- * @param {number} [length] Message length if known beforehand
2794
- * @returns {file.FileEventMsg} FileEventMsg
2795
- * @throws {Error} If the payload is not a reader or valid buffer
2796
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2797
- */
2798
- FileEventMsg.decode = function decode(reader, length, error) {
2799
- if (!(reader instanceof $Reader))
2800
- reader = $Reader.create(reader);
2801
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileEventMsg();
2802
- while (reader.pos < end) {
2803
- var tag = reader.uint32();
2804
- if (tag === error)
2805
- break;
2806
- switch (tag >>> 3) {
2807
- case 1: {
2808
- message.type = reader.string();
2809
- break;
2810
- }
2811
- case 2: {
2812
- message.path = reader.string();
2813
- break;
2814
- }
2815
- case 3: {
2816
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
2817
- break;
2818
- }
2819
- case 4: {
2820
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2821
- break;
2822
- }
2823
- case 5: {
2824
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
2825
- break;
2826
- }
2827
- case 6: {
2828
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
2829
- break;
2830
- }
2831
- default:
2832
- reader.skipType(tag & 7);
2833
- break;
2834
- }
2835
- }
2836
- return message;
2837
- };
2838
-
2839
- /**
2840
- * Decodes a FileEventMsg message from the specified reader or buffer, length delimited.
2841
- * @function decodeDelimited
2842
- * @memberof file.FileEventMsg
2843
- * @static
2844
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2845
- * @returns {file.FileEventMsg} FileEventMsg
2846
- * @throws {Error} If the payload is not a reader or valid buffer
2847
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2848
- */
2849
- FileEventMsg.decodeDelimited = function decodeDelimited(reader) {
2850
- if (!(reader instanceof $Reader))
2851
- reader = new $Reader(reader);
2852
- return this.decode(reader, reader.uint32());
2853
- };
2854
-
2855
- /**
2856
- * Verifies a FileEventMsg message.
2857
- * @function verify
2858
- * @memberof file.FileEventMsg
2859
- * @static
2860
- * @param {Object.<string,*>} message Plain object to verify
2861
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
2862
- */
2863
- FileEventMsg.verify = function verify(message) {
2864
- if (typeof message !== "object" || message === null)
2865
- return "object expected";
2866
- if (message.type != null && message.hasOwnProperty("type"))
2867
- if (!$util.isString(message.type))
2868
- return "type: string expected";
2869
- if (message.path != null && message.hasOwnProperty("path"))
2870
- if (!$util.isString(message.path))
2871
- return "path: string expected";
2872
- if (message.src != null && message.hasOwnProperty("src")) {
2873
- var error = $root.common.StringValue.verify(message.src);
2874
- if (error)
2875
- return "src." + error;
2876
- }
2877
- if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
2878
- var error = $root.common.UInt64Value.verify(message.newVersion);
2879
- if (error)
2880
- return "newVersion." + error;
2881
- }
2882
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
2883
- var error = $root.common.UInt64Value.verify(message.removedArchVer);
2884
- if (error)
2885
- return "removedArchVer." + error;
2886
- }
2887
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
2888
- var error = $root.common.UInt64Value.verify(message.archivedVersion);
2889
- if (error)
2890
- return "archivedVersion." + error;
2891
- }
2892
- return null;
2893
- };
2894
-
2895
- /**
2896
- * Creates a FileEventMsg message from a plain object. Also converts values to their respective internal types.
2897
- * @function fromObject
2898
- * @memberof file.FileEventMsg
2899
- * @static
2900
- * @param {Object.<string,*>} object Plain object
2901
- * @returns {file.FileEventMsg} FileEventMsg
2902
- */
2903
- FileEventMsg.fromObject = function fromObject(object) {
2904
- if (object instanceof $root.file.FileEventMsg)
2905
- return object;
2906
- var message = new $root.file.FileEventMsg();
2907
- if (object.type != null)
2908
- message.type = String(object.type);
2909
- if (object.path != null)
2910
- message.path = String(object.path);
2911
- if (object.src != null) {
2912
- if (typeof object.src !== "object")
2913
- throw TypeError(".file.FileEventMsg.src: object expected");
2914
- message.src = $root.common.StringValue.fromObject(object.src);
2915
- }
2916
- if (object.newVersion != null) {
2917
- if (typeof object.newVersion !== "object")
2918
- throw TypeError(".file.FileEventMsg.newVersion: object expected");
2919
- message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
2920
- }
2921
- if (object.removedArchVer != null) {
2922
- if (typeof object.removedArchVer !== "object")
2923
- throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
2924
- message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
2925
- }
2926
- if (object.archivedVersion != null) {
2927
- if (typeof object.archivedVersion !== "object")
2928
- throw TypeError(".file.FileEventMsg.archivedVersion: object expected");
2929
- message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
2930
- }
2931
- return message;
2932
- };
2933
-
2934
- /**
2935
- * Creates a plain object from a FileEventMsg message. Also converts values to other types if specified.
2936
- * @function toObject
2937
- * @memberof file.FileEventMsg
2938
- * @static
2939
- * @param {file.FileEventMsg} message FileEventMsg
2940
- * @param {$protobuf.IConversionOptions} [options] Conversion options
2941
- * @returns {Object.<string,*>} Plain object
2942
- */
2943
- FileEventMsg.toObject = function toObject(message, options) {
2944
- if (!options)
2945
- options = {};
2946
- var object = {};
2947
- if (options.defaults) {
2948
- object.type = "";
2949
- object.path = "";
2950
- object.src = null;
2951
- object.newVersion = null;
2952
- object.removedArchVer = null;
2953
- object.archivedVersion = null;
2954
- }
2955
- if (message.type != null && message.hasOwnProperty("type"))
2956
- object.type = message.type;
2957
- if (message.path != null && message.hasOwnProperty("path"))
2958
- object.path = message.path;
2959
- if (message.src != null && message.hasOwnProperty("src"))
2960
- object.src = $root.common.StringValue.toObject(message.src, options);
2961
- if (message.newVersion != null && message.hasOwnProperty("newVersion"))
2962
- object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
2963
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
2964
- object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
2965
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
2966
- object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
2967
- return object;
2968
- };
2969
-
2970
- /**
2971
- * Converts this FileEventMsg to JSON.
2972
- * @function toJSON
2973
- * @memberof file.FileEventMsg
2974
- * @instance
2975
- * @returns {Object.<string,*>} JSON object
2976
- */
2977
- FileEventMsg.prototype.toJSON = function toJSON() {
2978
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2979
- };
2980
-
2981
- /**
2982
- * Gets the default type url for FileEventMsg
2983
- * @function getTypeUrl
2984
- * @memberof file.FileEventMsg
2985
- * @static
2986
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2987
- * @returns {string} The default type url
2988
- */
2989
- FileEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
2990
- if (typeUrlPrefix === undefined) {
2991
- typeUrlPrefix = "type.googleapis.com";
2992
- }
2993
- return typeUrlPrefix + "/file.FileEventMsg";
2994
- };
2995
-
2996
- return FileEventMsg;
2997
- })();
2998
-
2999
2686
  file.VersionedReadFlags = (function() {
3000
2687
 
3001
2688
  /**
@@ -9778,25 +9465,24 @@ $root.file = (function() {
9778
9465
  return FileSyncUploadReplyBody;
9779
9466
  })();
9780
9467
 
9781
- file.OptionsToUploadLocal = (function() {
9468
+ file.FileSyncStartUploadReplyBody = (function() {
9782
9469
 
9783
9470
  /**
9784
- * Properties of an OptionsToUploadLocal.
9471
+ * Properties of a FileSyncStartUploadReplyBody.
9785
9472
  * @memberof file
9786
- * @interface IOptionsToUploadLocal
9787
- * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
9788
- * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
9473
+ * @interface IFileSyncStartUploadReplyBody
9474
+ * @property {file.FileSyncStartUploadReplyBody.IUploadInfo|null} [startedUpload] FileSyncStartUploadReplyBody startedUpload
9789
9475
  */
9790
9476
 
9791
9477
  /**
9792
- * Constructs a new OptionsToUploadLocal.
9478
+ * Constructs a new FileSyncStartUploadReplyBody.
9793
9479
  * @memberof file
9794
- * @classdesc Represents an OptionsToUploadLocal.
9795
- * @implements IOptionsToUploadLocal
9480
+ * @classdesc Represents a FileSyncStartUploadReplyBody.
9481
+ * @implements IFileSyncStartUploadReplyBody
9796
9482
  * @constructor
9797
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
9483
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
9798
9484
  */
9799
- function OptionsToUploadLocal(properties) {
9485
+ function FileSyncStartUploadReplyBody(properties) {
9800
9486
  if (properties)
9801
9487
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9802
9488
  if (properties[keys[i]] != null)
@@ -9804,35 +9490,503 @@ $root.file = (function() {
9804
9490
  }
9805
9491
 
9806
9492
  /**
9807
- * OptionsToUploadLocal localVersion.
9808
- * @member {common.IUInt64Value|null|undefined} localVersion
9809
- * @memberof file.OptionsToUploadLocal
9810
- * @instance
9811
- */
9812
- OptionsToUploadLocal.prototype.localVersion = null;
9813
-
9814
- /**
9815
- * OptionsToUploadLocal uploadVersion.
9816
- * @member {common.IUInt64Value|null|undefined} uploadVersion
9817
- * @memberof file.OptionsToUploadLocal
9493
+ * FileSyncStartUploadReplyBody startedUpload.
9494
+ * @member {file.FileSyncStartUploadReplyBody.IUploadInfo|null|undefined} startedUpload
9495
+ * @memberof file.FileSyncStartUploadReplyBody
9818
9496
  * @instance
9819
9497
  */
9820
- OptionsToUploadLocal.prototype.uploadVersion = null;
9498
+ FileSyncStartUploadReplyBody.prototype.startedUpload = null;
9821
9499
 
9822
9500
  /**
9823
- * Creates a new OptionsToUploadLocal instance using the specified properties.
9501
+ * Creates a new FileSyncStartUploadReplyBody instance using the specified properties.
9824
9502
  * @function create
9825
- * @memberof file.OptionsToUploadLocal
9503
+ * @memberof file.FileSyncStartUploadReplyBody
9826
9504
  * @static
9827
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
9828
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
9505
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
9506
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody instance
9829
9507
  */
9830
- OptionsToUploadLocal.create = function create(properties) {
9831
- return new OptionsToUploadLocal(properties);
9508
+ FileSyncStartUploadReplyBody.create = function create(properties) {
9509
+ return new FileSyncStartUploadReplyBody(properties);
9832
9510
  };
9833
9511
 
9834
9512
  /**
9835
- * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
9513
+ * Encodes the specified FileSyncStartUploadReplyBody message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
9514
+ * @function encode
9515
+ * @memberof file.FileSyncStartUploadReplyBody
9516
+ * @static
9517
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
9518
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9519
+ * @returns {$protobuf.Writer} Writer
9520
+ */
9521
+ FileSyncStartUploadReplyBody.encode = function encode(message, writer) {
9522
+ if (!writer)
9523
+ writer = $Writer.create();
9524
+ if (message.startedUpload != null && Object.hasOwnProperty.call(message, "startedUpload"))
9525
+ $root.file.FileSyncStartUploadReplyBody.UploadInfo.encode(message.startedUpload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9526
+ return writer;
9527
+ };
9528
+
9529
+ /**
9530
+ * Encodes the specified FileSyncStartUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
9531
+ * @function encodeDelimited
9532
+ * @memberof file.FileSyncStartUploadReplyBody
9533
+ * @static
9534
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
9535
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9536
+ * @returns {$protobuf.Writer} Writer
9537
+ */
9538
+ FileSyncStartUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
9539
+ return this.encode(message, writer).ldelim();
9540
+ };
9541
+
9542
+ /**
9543
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer.
9544
+ * @function decode
9545
+ * @memberof file.FileSyncStartUploadReplyBody
9546
+ * @static
9547
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9548
+ * @param {number} [length] Message length if known beforehand
9549
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
9550
+ * @throws {Error} If the payload is not a reader or valid buffer
9551
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9552
+ */
9553
+ FileSyncStartUploadReplyBody.decode = function decode(reader, length, error) {
9554
+ if (!(reader instanceof $Reader))
9555
+ reader = $Reader.create(reader);
9556
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody();
9557
+ while (reader.pos < end) {
9558
+ var tag = reader.uint32();
9559
+ if (tag === error)
9560
+ break;
9561
+ switch (tag >>> 3) {
9562
+ case 1: {
9563
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.decode(reader, reader.uint32());
9564
+ break;
9565
+ }
9566
+ default:
9567
+ reader.skipType(tag & 7);
9568
+ break;
9569
+ }
9570
+ }
9571
+ return message;
9572
+ };
9573
+
9574
+ /**
9575
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer, length delimited.
9576
+ * @function decodeDelimited
9577
+ * @memberof file.FileSyncStartUploadReplyBody
9578
+ * @static
9579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9580
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
9581
+ * @throws {Error} If the payload is not a reader or valid buffer
9582
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9583
+ */
9584
+ FileSyncStartUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
9585
+ if (!(reader instanceof $Reader))
9586
+ reader = new $Reader(reader);
9587
+ return this.decode(reader, reader.uint32());
9588
+ };
9589
+
9590
+ /**
9591
+ * Verifies a FileSyncStartUploadReplyBody message.
9592
+ * @function verify
9593
+ * @memberof file.FileSyncStartUploadReplyBody
9594
+ * @static
9595
+ * @param {Object.<string,*>} message Plain object to verify
9596
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9597
+ */
9598
+ FileSyncStartUploadReplyBody.verify = function verify(message) {
9599
+ if (typeof message !== "object" || message === null)
9600
+ return "object expected";
9601
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload")) {
9602
+ var error = $root.file.FileSyncStartUploadReplyBody.UploadInfo.verify(message.startedUpload);
9603
+ if (error)
9604
+ return "startedUpload." + error;
9605
+ }
9606
+ return null;
9607
+ };
9608
+
9609
+ /**
9610
+ * Creates a FileSyncStartUploadReplyBody message from a plain object. Also converts values to their respective internal types.
9611
+ * @function fromObject
9612
+ * @memberof file.FileSyncStartUploadReplyBody
9613
+ * @static
9614
+ * @param {Object.<string,*>} object Plain object
9615
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
9616
+ */
9617
+ FileSyncStartUploadReplyBody.fromObject = function fromObject(object) {
9618
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody)
9619
+ return object;
9620
+ var message = new $root.file.FileSyncStartUploadReplyBody();
9621
+ if (object.startedUpload != null) {
9622
+ if (typeof object.startedUpload !== "object")
9623
+ throw TypeError(".file.FileSyncStartUploadReplyBody.startedUpload: object expected");
9624
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.fromObject(object.startedUpload);
9625
+ }
9626
+ return message;
9627
+ };
9628
+
9629
+ /**
9630
+ * Creates a plain object from a FileSyncStartUploadReplyBody message. Also converts values to other types if specified.
9631
+ * @function toObject
9632
+ * @memberof file.FileSyncStartUploadReplyBody
9633
+ * @static
9634
+ * @param {file.FileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody
9635
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9636
+ * @returns {Object.<string,*>} Plain object
9637
+ */
9638
+ FileSyncStartUploadReplyBody.toObject = function toObject(message, options) {
9639
+ if (!options)
9640
+ options = {};
9641
+ var object = {};
9642
+ if (options.defaults)
9643
+ object.startedUpload = null;
9644
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload"))
9645
+ object.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.toObject(message.startedUpload, options);
9646
+ return object;
9647
+ };
9648
+
9649
+ /**
9650
+ * Converts this FileSyncStartUploadReplyBody to JSON.
9651
+ * @function toJSON
9652
+ * @memberof file.FileSyncStartUploadReplyBody
9653
+ * @instance
9654
+ * @returns {Object.<string,*>} JSON object
9655
+ */
9656
+ FileSyncStartUploadReplyBody.prototype.toJSON = function toJSON() {
9657
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9658
+ };
9659
+
9660
+ /**
9661
+ * Gets the default type url for FileSyncStartUploadReplyBody
9662
+ * @function getTypeUrl
9663
+ * @memberof file.FileSyncStartUploadReplyBody
9664
+ * @static
9665
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9666
+ * @returns {string} The default type url
9667
+ */
9668
+ FileSyncStartUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9669
+ if (typeUrlPrefix === undefined) {
9670
+ typeUrlPrefix = "type.googleapis.com";
9671
+ }
9672
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody";
9673
+ };
9674
+
9675
+ FileSyncStartUploadReplyBody.UploadInfo = (function() {
9676
+
9677
+ /**
9678
+ * Properties of an UploadInfo.
9679
+ * @memberof file.FileSyncStartUploadReplyBody
9680
+ * @interface IUploadInfo
9681
+ * @property {number|Long|null} [uploadVersion] UploadInfo uploadVersion
9682
+ * @property {number|Long|null} [uploadTaskId] UploadInfo uploadTaskId
9683
+ */
9684
+
9685
+ /**
9686
+ * Constructs a new UploadInfo.
9687
+ * @memberof file.FileSyncStartUploadReplyBody
9688
+ * @classdesc Represents an UploadInfo.
9689
+ * @implements IUploadInfo
9690
+ * @constructor
9691
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
9692
+ */
9693
+ function UploadInfo(properties) {
9694
+ if (properties)
9695
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9696
+ if (properties[keys[i]] != null)
9697
+ this[keys[i]] = properties[keys[i]];
9698
+ }
9699
+
9700
+ /**
9701
+ * UploadInfo uploadVersion.
9702
+ * @member {number|Long} uploadVersion
9703
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9704
+ * @instance
9705
+ */
9706
+ UploadInfo.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
9707
+
9708
+ /**
9709
+ * UploadInfo uploadTaskId.
9710
+ * @member {number|Long} uploadTaskId
9711
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9712
+ * @instance
9713
+ */
9714
+ UploadInfo.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
9715
+
9716
+ /**
9717
+ * Creates a new UploadInfo instance using the specified properties.
9718
+ * @function create
9719
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9720
+ * @static
9721
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
9722
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo instance
9723
+ */
9724
+ UploadInfo.create = function create(properties) {
9725
+ return new UploadInfo(properties);
9726
+ };
9727
+
9728
+ /**
9729
+ * Encodes the specified UploadInfo message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
9730
+ * @function encode
9731
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9732
+ * @static
9733
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
9734
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9735
+ * @returns {$protobuf.Writer} Writer
9736
+ */
9737
+ UploadInfo.encode = function encode(message, writer) {
9738
+ if (!writer)
9739
+ writer = $Writer.create();
9740
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
9741
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadVersion);
9742
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
9743
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
9744
+ return writer;
9745
+ };
9746
+
9747
+ /**
9748
+ * Encodes the specified UploadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
9749
+ * @function encodeDelimited
9750
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9751
+ * @static
9752
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
9753
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9754
+ * @returns {$protobuf.Writer} Writer
9755
+ */
9756
+ UploadInfo.encodeDelimited = function encodeDelimited(message, writer) {
9757
+ return this.encode(message, writer).ldelim();
9758
+ };
9759
+
9760
+ /**
9761
+ * Decodes an UploadInfo message from the specified reader or buffer.
9762
+ * @function decode
9763
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9764
+ * @static
9765
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9766
+ * @param {number} [length] Message length if known beforehand
9767
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
9768
+ * @throws {Error} If the payload is not a reader or valid buffer
9769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9770
+ */
9771
+ UploadInfo.decode = function decode(reader, length, error) {
9772
+ if (!(reader instanceof $Reader))
9773
+ reader = $Reader.create(reader);
9774
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
9775
+ while (reader.pos < end) {
9776
+ var tag = reader.uint32();
9777
+ if (tag === error)
9778
+ break;
9779
+ switch (tag >>> 3) {
9780
+ case 1: {
9781
+ message.uploadVersion = reader.uint64();
9782
+ break;
9783
+ }
9784
+ case 2: {
9785
+ message.uploadTaskId = reader.uint64();
9786
+ break;
9787
+ }
9788
+ default:
9789
+ reader.skipType(tag & 7);
9790
+ break;
9791
+ }
9792
+ }
9793
+ return message;
9794
+ };
9795
+
9796
+ /**
9797
+ * Decodes an UploadInfo message from the specified reader or buffer, length delimited.
9798
+ * @function decodeDelimited
9799
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9800
+ * @static
9801
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9802
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
9803
+ * @throws {Error} If the payload is not a reader or valid buffer
9804
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9805
+ */
9806
+ UploadInfo.decodeDelimited = function decodeDelimited(reader) {
9807
+ if (!(reader instanceof $Reader))
9808
+ reader = new $Reader(reader);
9809
+ return this.decode(reader, reader.uint32());
9810
+ };
9811
+
9812
+ /**
9813
+ * Verifies an UploadInfo message.
9814
+ * @function verify
9815
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9816
+ * @static
9817
+ * @param {Object.<string,*>} message Plain object to verify
9818
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9819
+ */
9820
+ UploadInfo.verify = function verify(message) {
9821
+ if (typeof message !== "object" || message === null)
9822
+ return "object expected";
9823
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
9824
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
9825
+ return "uploadVersion: integer|Long expected";
9826
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
9827
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
9828
+ return "uploadTaskId: integer|Long expected";
9829
+ return null;
9830
+ };
9831
+
9832
+ /**
9833
+ * Creates an UploadInfo message from a plain object. Also converts values to their respective internal types.
9834
+ * @function fromObject
9835
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9836
+ * @static
9837
+ * @param {Object.<string,*>} object Plain object
9838
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
9839
+ */
9840
+ UploadInfo.fromObject = function fromObject(object) {
9841
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody.UploadInfo)
9842
+ return object;
9843
+ var message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
9844
+ if (object.uploadVersion != null)
9845
+ if ($util.Long)
9846
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
9847
+ else if (typeof object.uploadVersion === "string")
9848
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
9849
+ else if (typeof object.uploadVersion === "number")
9850
+ message.uploadVersion = object.uploadVersion;
9851
+ else if (typeof object.uploadVersion === "object")
9852
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
9853
+ if (object.uploadTaskId != null)
9854
+ if ($util.Long)
9855
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
9856
+ else if (typeof object.uploadTaskId === "string")
9857
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
9858
+ else if (typeof object.uploadTaskId === "number")
9859
+ message.uploadTaskId = object.uploadTaskId;
9860
+ else if (typeof object.uploadTaskId === "object")
9861
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
9862
+ return message;
9863
+ };
9864
+
9865
+ /**
9866
+ * Creates a plain object from an UploadInfo message. Also converts values to other types if specified.
9867
+ * @function toObject
9868
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9869
+ * @static
9870
+ * @param {file.FileSyncStartUploadReplyBody.UploadInfo} message UploadInfo
9871
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9872
+ * @returns {Object.<string,*>} Plain object
9873
+ */
9874
+ UploadInfo.toObject = function toObject(message, options) {
9875
+ if (!options)
9876
+ options = {};
9877
+ var object = {};
9878
+ if (options.defaults) {
9879
+ if ($util.Long) {
9880
+ var long = new $util.Long(0, 0, true);
9881
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
9882
+ } else
9883
+ object.uploadVersion = options.longs === String ? "0" : 0;
9884
+ if ($util.Long) {
9885
+ var long = new $util.Long(0, 0, true);
9886
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
9887
+ } else
9888
+ object.uploadTaskId = options.longs === String ? "0" : 0;
9889
+ }
9890
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
9891
+ if (typeof message.uploadVersion === "number")
9892
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
9893
+ else
9894
+ 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;
9895
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
9896
+ if (typeof message.uploadTaskId === "number")
9897
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
9898
+ else
9899
+ 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;
9900
+ return object;
9901
+ };
9902
+
9903
+ /**
9904
+ * Converts this UploadInfo to JSON.
9905
+ * @function toJSON
9906
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9907
+ * @instance
9908
+ * @returns {Object.<string,*>} JSON object
9909
+ */
9910
+ UploadInfo.prototype.toJSON = function toJSON() {
9911
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9912
+ };
9913
+
9914
+ /**
9915
+ * Gets the default type url for UploadInfo
9916
+ * @function getTypeUrl
9917
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
9918
+ * @static
9919
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9920
+ * @returns {string} The default type url
9921
+ */
9922
+ UploadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9923
+ if (typeUrlPrefix === undefined) {
9924
+ typeUrlPrefix = "type.googleapis.com";
9925
+ }
9926
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody.UploadInfo";
9927
+ };
9928
+
9929
+ return UploadInfo;
9930
+ })();
9931
+
9932
+ return FileSyncStartUploadReplyBody;
9933
+ })();
9934
+
9935
+ file.OptionsToUploadLocal = (function() {
9936
+
9937
+ /**
9938
+ * Properties of an OptionsToUploadLocal.
9939
+ * @memberof file
9940
+ * @interface IOptionsToUploadLocal
9941
+ * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
9942
+ * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
9943
+ */
9944
+
9945
+ /**
9946
+ * Constructs a new OptionsToUploadLocal.
9947
+ * @memberof file
9948
+ * @classdesc Represents an OptionsToUploadLocal.
9949
+ * @implements IOptionsToUploadLocal
9950
+ * @constructor
9951
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
9952
+ */
9953
+ function OptionsToUploadLocal(properties) {
9954
+ if (properties)
9955
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9956
+ if (properties[keys[i]] != null)
9957
+ this[keys[i]] = properties[keys[i]];
9958
+ }
9959
+
9960
+ /**
9961
+ * OptionsToUploadLocal localVersion.
9962
+ * @member {common.IUInt64Value|null|undefined} localVersion
9963
+ * @memberof file.OptionsToUploadLocal
9964
+ * @instance
9965
+ */
9966
+ OptionsToUploadLocal.prototype.localVersion = null;
9967
+
9968
+ /**
9969
+ * OptionsToUploadLocal uploadVersion.
9970
+ * @member {common.IUInt64Value|null|undefined} uploadVersion
9971
+ * @memberof file.OptionsToUploadLocal
9972
+ * @instance
9973
+ */
9974
+ OptionsToUploadLocal.prototype.uploadVersion = null;
9975
+
9976
+ /**
9977
+ * Creates a new OptionsToUploadLocal instance using the specified properties.
9978
+ * @function create
9979
+ * @memberof file.OptionsToUploadLocal
9980
+ * @static
9981
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
9982
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
9983
+ */
9984
+ OptionsToUploadLocal.create = function create(properties) {
9985
+ return new OptionsToUploadLocal(properties);
9986
+ };
9987
+
9988
+ /**
9989
+ * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
9836
9990
  * @function encode
9837
9991
  * @memberof file.OptionsToUploadLocal
9838
9992
  * @static
@@ -10017,6 +10171,542 @@ $root.file = (function() {
10017
10171
  return OptionsToUploadLocal;
10018
10172
  })();
10019
10173
 
10174
+ file.WatchUploadRequestBody = (function() {
10175
+
10176
+ /**
10177
+ * Properties of a WatchUploadRequestBody.
10178
+ * @memberof file
10179
+ * @interface IWatchUploadRequestBody
10180
+ * @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
10181
+ */
10182
+
10183
+ /**
10184
+ * Constructs a new WatchUploadRequestBody.
10185
+ * @memberof file
10186
+ * @classdesc Represents a WatchUploadRequestBody.
10187
+ * @implements IWatchUploadRequestBody
10188
+ * @constructor
10189
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
10190
+ */
10191
+ function WatchUploadRequestBody(properties) {
10192
+ if (properties)
10193
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10194
+ if (properties[keys[i]] != null)
10195
+ this[keys[i]] = properties[keys[i]];
10196
+ }
10197
+
10198
+ /**
10199
+ * WatchUploadRequestBody uploadTaskId.
10200
+ * @member {number|Long} uploadTaskId
10201
+ * @memberof file.WatchUploadRequestBody
10202
+ * @instance
10203
+ */
10204
+ WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10205
+
10206
+ /**
10207
+ * Creates a new WatchUploadRequestBody instance using the specified properties.
10208
+ * @function create
10209
+ * @memberof file.WatchUploadRequestBody
10210
+ * @static
10211
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
10212
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
10213
+ */
10214
+ WatchUploadRequestBody.create = function create(properties) {
10215
+ return new WatchUploadRequestBody(properties);
10216
+ };
10217
+
10218
+ /**
10219
+ * Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
10220
+ * @function encode
10221
+ * @memberof file.WatchUploadRequestBody
10222
+ * @static
10223
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
10224
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10225
+ * @returns {$protobuf.Writer} Writer
10226
+ */
10227
+ WatchUploadRequestBody.encode = function encode(message, writer) {
10228
+ if (!writer)
10229
+ writer = $Writer.create();
10230
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
10231
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
10232
+ return writer;
10233
+ };
10234
+
10235
+ /**
10236
+ * Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
10237
+ * @function encodeDelimited
10238
+ * @memberof file.WatchUploadRequestBody
10239
+ * @static
10240
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
10241
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10242
+ * @returns {$protobuf.Writer} Writer
10243
+ */
10244
+ WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
10245
+ return this.encode(message, writer).ldelim();
10246
+ };
10247
+
10248
+ /**
10249
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer.
10250
+ * @function decode
10251
+ * @memberof file.WatchUploadRequestBody
10252
+ * @static
10253
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10254
+ * @param {number} [length] Message length if known beforehand
10255
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
10256
+ * @throws {Error} If the payload is not a reader or valid buffer
10257
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10258
+ */
10259
+ WatchUploadRequestBody.decode = function decode(reader, length, error) {
10260
+ if (!(reader instanceof $Reader))
10261
+ reader = $Reader.create(reader);
10262
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
10263
+ while (reader.pos < end) {
10264
+ var tag = reader.uint32();
10265
+ if (tag === error)
10266
+ break;
10267
+ switch (tag >>> 3) {
10268
+ case 1: {
10269
+ message.uploadTaskId = reader.uint64();
10270
+ break;
10271
+ }
10272
+ default:
10273
+ reader.skipType(tag & 7);
10274
+ break;
10275
+ }
10276
+ }
10277
+ return message;
10278
+ };
10279
+
10280
+ /**
10281
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
10282
+ * @function decodeDelimited
10283
+ * @memberof file.WatchUploadRequestBody
10284
+ * @static
10285
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10286
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
10287
+ * @throws {Error} If the payload is not a reader or valid buffer
10288
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10289
+ */
10290
+ WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
10291
+ if (!(reader instanceof $Reader))
10292
+ reader = new $Reader(reader);
10293
+ return this.decode(reader, reader.uint32());
10294
+ };
10295
+
10296
+ /**
10297
+ * Verifies a WatchUploadRequestBody message.
10298
+ * @function verify
10299
+ * @memberof file.WatchUploadRequestBody
10300
+ * @static
10301
+ * @param {Object.<string,*>} message Plain object to verify
10302
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10303
+ */
10304
+ WatchUploadRequestBody.verify = function verify(message) {
10305
+ if (typeof message !== "object" || message === null)
10306
+ return "object expected";
10307
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
10308
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
10309
+ return "uploadTaskId: integer|Long expected";
10310
+ return null;
10311
+ };
10312
+
10313
+ /**
10314
+ * Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
10315
+ * @function fromObject
10316
+ * @memberof file.WatchUploadRequestBody
10317
+ * @static
10318
+ * @param {Object.<string,*>} object Plain object
10319
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
10320
+ */
10321
+ WatchUploadRequestBody.fromObject = function fromObject(object) {
10322
+ if (object instanceof $root.file.WatchUploadRequestBody)
10323
+ return object;
10324
+ var message = new $root.file.WatchUploadRequestBody();
10325
+ if (object.uploadTaskId != null)
10326
+ if ($util.Long)
10327
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
10328
+ else if (typeof object.uploadTaskId === "string")
10329
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
10330
+ else if (typeof object.uploadTaskId === "number")
10331
+ message.uploadTaskId = object.uploadTaskId;
10332
+ else if (typeof object.uploadTaskId === "object")
10333
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
10334
+ return message;
10335
+ };
10336
+
10337
+ /**
10338
+ * Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
10339
+ * @function toObject
10340
+ * @memberof file.WatchUploadRequestBody
10341
+ * @static
10342
+ * @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
10343
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10344
+ * @returns {Object.<string,*>} Plain object
10345
+ */
10346
+ WatchUploadRequestBody.toObject = function toObject(message, options) {
10347
+ if (!options)
10348
+ options = {};
10349
+ var object = {};
10350
+ if (options.defaults)
10351
+ if ($util.Long) {
10352
+ var long = new $util.Long(0, 0, true);
10353
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10354
+ } else
10355
+ object.uploadTaskId = options.longs === String ? "0" : 0;
10356
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
10357
+ if (typeof message.uploadTaskId === "number")
10358
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
10359
+ else
10360
+ 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;
10361
+ return object;
10362
+ };
10363
+
10364
+ /**
10365
+ * Converts this WatchUploadRequestBody to JSON.
10366
+ * @function toJSON
10367
+ * @memberof file.WatchUploadRequestBody
10368
+ * @instance
10369
+ * @returns {Object.<string,*>} JSON object
10370
+ */
10371
+ WatchUploadRequestBody.prototype.toJSON = function toJSON() {
10372
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10373
+ };
10374
+
10375
+ /**
10376
+ * Gets the default type url for WatchUploadRequestBody
10377
+ * @function getTypeUrl
10378
+ * @memberof file.WatchUploadRequestBody
10379
+ * @static
10380
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10381
+ * @returns {string} The default type url
10382
+ */
10383
+ WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10384
+ if (typeUrlPrefix === undefined) {
10385
+ typeUrlPrefix = "type.googleapis.com";
10386
+ }
10387
+ return typeUrlPrefix + "/file.WatchUploadRequestBody";
10388
+ };
10389
+
10390
+ return WatchUploadRequestBody;
10391
+ })();
10392
+
10393
+ file.UploadEventMsg = (function() {
10394
+
10395
+ /**
10396
+ * Properties of an UploadEventMsg.
10397
+ * @memberof file
10398
+ * @interface IUploadEventMsg
10399
+ * @property {string|null} [type] UploadEventMsg type
10400
+ * @property {number|Long|null} [uploadTaskId] UploadEventMsg uploadTaskId
10401
+ * @property {number|Long|null} [localVersion] UploadEventMsg localVersion
10402
+ * @property {number|Long|null} [uploadVersion] UploadEventMsg uploadVersion
10403
+ */
10404
+
10405
+ /**
10406
+ * Constructs a new UploadEventMsg.
10407
+ * @memberof file
10408
+ * @classdesc Represents an UploadEventMsg.
10409
+ * @implements IUploadEventMsg
10410
+ * @constructor
10411
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
10412
+ */
10413
+ function UploadEventMsg(properties) {
10414
+ if (properties)
10415
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10416
+ if (properties[keys[i]] != null)
10417
+ this[keys[i]] = properties[keys[i]];
10418
+ }
10419
+
10420
+ /**
10421
+ * UploadEventMsg type.
10422
+ * @member {string} type
10423
+ * @memberof file.UploadEventMsg
10424
+ * @instance
10425
+ */
10426
+ UploadEventMsg.prototype.type = "";
10427
+
10428
+ /**
10429
+ * UploadEventMsg uploadTaskId.
10430
+ * @member {number|Long} uploadTaskId
10431
+ * @memberof file.UploadEventMsg
10432
+ * @instance
10433
+ */
10434
+ UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10435
+
10436
+ /**
10437
+ * UploadEventMsg localVersion.
10438
+ * @member {number|Long} localVersion
10439
+ * @memberof file.UploadEventMsg
10440
+ * @instance
10441
+ */
10442
+ UploadEventMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10443
+
10444
+ /**
10445
+ * UploadEventMsg uploadVersion.
10446
+ * @member {number|Long} uploadVersion
10447
+ * @memberof file.UploadEventMsg
10448
+ * @instance
10449
+ */
10450
+ UploadEventMsg.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10451
+
10452
+ /**
10453
+ * Creates a new UploadEventMsg instance using the specified properties.
10454
+ * @function create
10455
+ * @memberof file.UploadEventMsg
10456
+ * @static
10457
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
10458
+ * @returns {file.UploadEventMsg} UploadEventMsg instance
10459
+ */
10460
+ UploadEventMsg.create = function create(properties) {
10461
+ return new UploadEventMsg(properties);
10462
+ };
10463
+
10464
+ /**
10465
+ * Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
10466
+ * @function encode
10467
+ * @memberof file.UploadEventMsg
10468
+ * @static
10469
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
10470
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10471
+ * @returns {$protobuf.Writer} Writer
10472
+ */
10473
+ UploadEventMsg.encode = function encode(message, writer) {
10474
+ if (!writer)
10475
+ writer = $Writer.create();
10476
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
10477
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
10478
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
10479
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
10480
+ if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
10481
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
10482
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
10483
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
10484
+ return writer;
10485
+ };
10486
+
10487
+ /**
10488
+ * Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
10489
+ * @function encodeDelimited
10490
+ * @memberof file.UploadEventMsg
10491
+ * @static
10492
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
10493
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10494
+ * @returns {$protobuf.Writer} Writer
10495
+ */
10496
+ UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
10497
+ return this.encode(message, writer).ldelim();
10498
+ };
10499
+
10500
+ /**
10501
+ * Decodes an UploadEventMsg message from the specified reader or buffer.
10502
+ * @function decode
10503
+ * @memberof file.UploadEventMsg
10504
+ * @static
10505
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10506
+ * @param {number} [length] Message length if known beforehand
10507
+ * @returns {file.UploadEventMsg} UploadEventMsg
10508
+ * @throws {Error} If the payload is not a reader or valid buffer
10509
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10510
+ */
10511
+ UploadEventMsg.decode = function decode(reader, length, error) {
10512
+ if (!(reader instanceof $Reader))
10513
+ reader = $Reader.create(reader);
10514
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
10515
+ while (reader.pos < end) {
10516
+ var tag = reader.uint32();
10517
+ if (tag === error)
10518
+ break;
10519
+ switch (tag >>> 3) {
10520
+ case 1: {
10521
+ message.type = reader.string();
10522
+ break;
10523
+ }
10524
+ case 2: {
10525
+ message.uploadTaskId = reader.uint64();
10526
+ break;
10527
+ }
10528
+ case 3: {
10529
+ message.localVersion = reader.uint64();
10530
+ break;
10531
+ }
10532
+ case 4: {
10533
+ message.uploadVersion = reader.uint64();
10534
+ break;
10535
+ }
10536
+ default:
10537
+ reader.skipType(tag & 7);
10538
+ break;
10539
+ }
10540
+ }
10541
+ return message;
10542
+ };
10543
+
10544
+ /**
10545
+ * Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
10546
+ * @function decodeDelimited
10547
+ * @memberof file.UploadEventMsg
10548
+ * @static
10549
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10550
+ * @returns {file.UploadEventMsg} UploadEventMsg
10551
+ * @throws {Error} If the payload is not a reader or valid buffer
10552
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10553
+ */
10554
+ UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
10555
+ if (!(reader instanceof $Reader))
10556
+ reader = new $Reader(reader);
10557
+ return this.decode(reader, reader.uint32());
10558
+ };
10559
+
10560
+ /**
10561
+ * Verifies an UploadEventMsg message.
10562
+ * @function verify
10563
+ * @memberof file.UploadEventMsg
10564
+ * @static
10565
+ * @param {Object.<string,*>} message Plain object to verify
10566
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10567
+ */
10568
+ UploadEventMsg.verify = function verify(message) {
10569
+ if (typeof message !== "object" || message === null)
10570
+ return "object expected";
10571
+ if (message.type != null && message.hasOwnProperty("type"))
10572
+ if (!$util.isString(message.type))
10573
+ return "type: string expected";
10574
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
10575
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
10576
+ return "uploadTaskId: integer|Long expected";
10577
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
10578
+ if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
10579
+ return "localVersion: integer|Long expected";
10580
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
10581
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
10582
+ return "uploadVersion: integer|Long expected";
10583
+ return null;
10584
+ };
10585
+
10586
+ /**
10587
+ * Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
10588
+ * @function fromObject
10589
+ * @memberof file.UploadEventMsg
10590
+ * @static
10591
+ * @param {Object.<string,*>} object Plain object
10592
+ * @returns {file.UploadEventMsg} UploadEventMsg
10593
+ */
10594
+ UploadEventMsg.fromObject = function fromObject(object) {
10595
+ if (object instanceof $root.file.UploadEventMsg)
10596
+ return object;
10597
+ var message = new $root.file.UploadEventMsg();
10598
+ if (object.type != null)
10599
+ message.type = String(object.type);
10600
+ if (object.uploadTaskId != null)
10601
+ if ($util.Long)
10602
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
10603
+ else if (typeof object.uploadTaskId === "string")
10604
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
10605
+ else if (typeof object.uploadTaskId === "number")
10606
+ message.uploadTaskId = object.uploadTaskId;
10607
+ else if (typeof object.uploadTaskId === "object")
10608
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
10609
+ if (object.localVersion != null)
10610
+ if ($util.Long)
10611
+ (message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
10612
+ else if (typeof object.localVersion === "string")
10613
+ message.localVersion = parseInt(object.localVersion, 10);
10614
+ else if (typeof object.localVersion === "number")
10615
+ message.localVersion = object.localVersion;
10616
+ else if (typeof object.localVersion === "object")
10617
+ message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
10618
+ if (object.uploadVersion != null)
10619
+ if ($util.Long)
10620
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
10621
+ else if (typeof object.uploadVersion === "string")
10622
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
10623
+ else if (typeof object.uploadVersion === "number")
10624
+ message.uploadVersion = object.uploadVersion;
10625
+ else if (typeof object.uploadVersion === "object")
10626
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
10627
+ return message;
10628
+ };
10629
+
10630
+ /**
10631
+ * Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
10632
+ * @function toObject
10633
+ * @memberof file.UploadEventMsg
10634
+ * @static
10635
+ * @param {file.UploadEventMsg} message UploadEventMsg
10636
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10637
+ * @returns {Object.<string,*>} Plain object
10638
+ */
10639
+ UploadEventMsg.toObject = function toObject(message, options) {
10640
+ if (!options)
10641
+ options = {};
10642
+ var object = {};
10643
+ if (options.defaults) {
10644
+ object.type = "";
10645
+ if ($util.Long) {
10646
+ var long = new $util.Long(0, 0, true);
10647
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10648
+ } else
10649
+ object.uploadTaskId = options.longs === String ? "0" : 0;
10650
+ if ($util.Long) {
10651
+ var long = new $util.Long(0, 0, true);
10652
+ object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10653
+ } else
10654
+ object.localVersion = options.longs === String ? "0" : 0;
10655
+ if ($util.Long) {
10656
+ var long = new $util.Long(0, 0, true);
10657
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10658
+ } else
10659
+ object.uploadVersion = options.longs === String ? "0" : 0;
10660
+ }
10661
+ if (message.type != null && message.hasOwnProperty("type"))
10662
+ object.type = message.type;
10663
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
10664
+ if (typeof message.uploadTaskId === "number")
10665
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
10666
+ else
10667
+ 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;
10668
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
10669
+ if (typeof message.localVersion === "number")
10670
+ object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
10671
+ else
10672
+ 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;
10673
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
10674
+ if (typeof message.uploadVersion === "number")
10675
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
10676
+ else
10677
+ 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;
10678
+ return object;
10679
+ };
10680
+
10681
+ /**
10682
+ * Converts this UploadEventMsg to JSON.
10683
+ * @function toJSON
10684
+ * @memberof file.UploadEventMsg
10685
+ * @instance
10686
+ * @returns {Object.<string,*>} JSON object
10687
+ */
10688
+ UploadEventMsg.prototype.toJSON = function toJSON() {
10689
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10690
+ };
10691
+
10692
+ /**
10693
+ * Gets the default type url for UploadEventMsg
10694
+ * @function getTypeUrl
10695
+ * @memberof file.UploadEventMsg
10696
+ * @static
10697
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10698
+ * @returns {string} The default type url
10699
+ */
10700
+ UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10701
+ if (typeUrlPrefix === undefined) {
10702
+ typeUrlPrefix = "type.googleapis.com";
10703
+ }
10704
+ return typeUrlPrefix + "/file.UploadEventMsg";
10705
+ };
10706
+
10707
+ return UploadEventMsg;
10708
+ })();
10709
+
10020
10710
  return file;
10021
10711
  })();
10022
10712