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
@@ -9167,7 +9167,8 @@ $root.file = (function() {
9167
9167
  * @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
9168
9168
  * @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
9169
9169
  * @property {common.IUInt64Value|null} [version] StatsMsg version
9170
- * @property {file.ISyncStatusMsg|null} [sync] StatsMsg sync
9170
+ * @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
9171
+ * @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
9171
9172
  */
9172
9173
 
9173
9174
  /**
@@ -9250,12 +9251,20 @@ $root.file = (function() {
9250
9251
  StatsMsg.prototype.version = null;
9251
9252
 
9252
9253
  /**
9253
- * StatsMsg sync.
9254
- * @member {file.ISyncStatusMsg|null|undefined} sync
9254
+ * StatsMsg bytesNeedDownload.
9255
+ * @member {common.IUInt64Value|null|undefined} bytesNeedDownload
9255
9256
  * @memberof file.StatsMsg
9256
9257
  * @instance
9257
9258
  */
9258
- StatsMsg.prototype.sync = null;
9259
+ StatsMsg.prototype.bytesNeedDownload = null;
9260
+
9261
+ /**
9262
+ * StatsMsg versionSyncBranch.
9263
+ * @member {common.IStringValue|null|undefined} versionSyncBranch
9264
+ * @memberof file.StatsMsg
9265
+ * @instance
9266
+ */
9267
+ StatsMsg.prototype.versionSyncBranch = null;
9259
9268
 
9260
9269
  /**
9261
9270
  * Creates a new StatsMsg instance using the specified properties.
@@ -9297,8 +9306,10 @@ $root.file = (function() {
9297
9306
  $root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
9298
9307
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
9299
9308
  $root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
9300
- if (message.sync != null && Object.hasOwnProperty.call(message, "sync"))
9301
- $root.file.SyncStatusMsg.encode(message.sync, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
9309
+ if (message.bytesNeedDownload != null && Object.hasOwnProperty.call(message, "bytesNeedDownload"))
9310
+ $root.common.UInt64Value.encode(message.bytesNeedDownload, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
9311
+ if (message.versionSyncBranch != null && Object.hasOwnProperty.call(message, "versionSyncBranch"))
9312
+ $root.common.StringValue.encode(message.versionSyncBranch, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
9302
9313
  return writer;
9303
9314
  };
9304
9315
 
@@ -9368,7 +9379,11 @@ $root.file = (function() {
9368
9379
  break;
9369
9380
  }
9370
9381
  case 9: {
9371
- message.sync = $root.file.SyncStatusMsg.decode(reader, reader.uint32());
9382
+ message.bytesNeedDownload = $root.common.UInt64Value.decode(reader, reader.uint32());
9383
+ break;
9384
+ }
9385
+ case 10: {
9386
+ message.versionSyncBranch = $root.common.StringValue.decode(reader, reader.uint32());
9372
9387
  break;
9373
9388
  }
9374
9389
  default:
@@ -9444,10 +9459,15 @@ $root.file = (function() {
9444
9459
  if (error)
9445
9460
  return "version." + error;
9446
9461
  }
9447
- if (message.sync != null && message.hasOwnProperty("sync")) {
9448
- var error = $root.file.SyncStatusMsg.verify(message.sync);
9462
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload")) {
9463
+ var error = $root.common.UInt64Value.verify(message.bytesNeedDownload);
9449
9464
  if (error)
9450
- return "sync." + error;
9465
+ return "bytesNeedDownload." + error;
9466
+ }
9467
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch")) {
9468
+ var error = $root.common.StringValue.verify(message.versionSyncBranch);
9469
+ if (error)
9470
+ return "versionSyncBranch." + error;
9451
9471
  }
9452
9472
  return null;
9453
9473
  };
@@ -9501,10 +9521,15 @@ $root.file = (function() {
9501
9521
  throw TypeError(".file.StatsMsg.version: object expected");
9502
9522
  message.version = $root.common.UInt64Value.fromObject(object.version);
9503
9523
  }
9504
- if (object.sync != null) {
9505
- if (typeof object.sync !== "object")
9506
- throw TypeError(".file.StatsMsg.sync: object expected");
9507
- message.sync = $root.file.SyncStatusMsg.fromObject(object.sync);
9524
+ if (object.bytesNeedDownload != null) {
9525
+ if (typeof object.bytesNeedDownload !== "object")
9526
+ throw TypeError(".file.StatsMsg.bytesNeedDownload: object expected");
9527
+ message.bytesNeedDownload = $root.common.UInt64Value.fromObject(object.bytesNeedDownload);
9528
+ }
9529
+ if (object.versionSyncBranch != null) {
9530
+ if (typeof object.versionSyncBranch !== "object")
9531
+ throw TypeError(".file.StatsMsg.versionSyncBranch: object expected");
9532
+ message.versionSyncBranch = $root.common.StringValue.fromObject(object.versionSyncBranch);
9508
9533
  }
9509
9534
  return message;
9510
9535
  };
@@ -9531,7 +9556,8 @@ $root.file = (function() {
9531
9556
  object.mtime = null;
9532
9557
  object.ctime = null;
9533
9558
  object.version = null;
9534
- object.sync = null;
9559
+ object.bytesNeedDownload = null;
9560
+ object.versionSyncBranch = null;
9535
9561
  }
9536
9562
  if (message.isFile != null && message.hasOwnProperty("isFile"))
9537
9563
  object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
@@ -9549,8 +9575,10 @@ $root.file = (function() {
9549
9575
  object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
9550
9576
  if (message.version != null && message.hasOwnProperty("version"))
9551
9577
  object.version = $root.common.UInt64Value.toObject(message.version, options);
9552
- if (message.sync != null && message.hasOwnProperty("sync"))
9553
- object.sync = $root.file.SyncStatusMsg.toObject(message.sync, options);
9578
+ if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload"))
9579
+ object.bytesNeedDownload = $root.common.UInt64Value.toObject(message.bytesNeedDownload, options);
9580
+ if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch"))
9581
+ object.versionSyncBranch = $root.common.StringValue.toObject(message.versionSyncBranch, options);
9554
9582
  return object;
9555
9583
  };
9556
9584
 
@@ -10504,347 +10532,6 @@ $root.file = (function() {
10504
10532
  return ReadBytesReplyBody;
10505
10533
  })();
10506
10534
 
10507
- file.FileEventMsg = (function() {
10508
-
10509
- /**
10510
- * Properties of a FileEventMsg.
10511
- * @memberof file
10512
- * @interface IFileEventMsg
10513
- * @property {string|null} [type] FileEventMsg type
10514
- * @property {string|null} [path] FileEventMsg path
10515
- * @property {common.IStringValue|null} [src] FileEventMsg src
10516
- * @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
10517
- * @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
10518
- * @property {common.IUInt64Value|null} [archivedVersion] FileEventMsg archivedVersion
10519
- */
10520
-
10521
- /**
10522
- * Constructs a new FileEventMsg.
10523
- * @memberof file
10524
- * @classdesc Represents a FileEventMsg.
10525
- * @implements IFileEventMsg
10526
- * @constructor
10527
- * @param {file.IFileEventMsg=} [properties] Properties to set
10528
- */
10529
- function FileEventMsg(properties) {
10530
- if (properties)
10531
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10532
- if (properties[keys[i]] != null)
10533
- this[keys[i]] = properties[keys[i]];
10534
- }
10535
-
10536
- /**
10537
- * FileEventMsg type.
10538
- * @member {string} type
10539
- * @memberof file.FileEventMsg
10540
- * @instance
10541
- */
10542
- FileEventMsg.prototype.type = "";
10543
-
10544
- /**
10545
- * FileEventMsg path.
10546
- * @member {string} path
10547
- * @memberof file.FileEventMsg
10548
- * @instance
10549
- */
10550
- FileEventMsg.prototype.path = "";
10551
-
10552
- /**
10553
- * FileEventMsg src.
10554
- * @member {common.IStringValue|null|undefined} src
10555
- * @memberof file.FileEventMsg
10556
- * @instance
10557
- */
10558
- FileEventMsg.prototype.src = null;
10559
-
10560
- /**
10561
- * FileEventMsg newVersion.
10562
- * @member {common.IUInt64Value|null|undefined} newVersion
10563
- * @memberof file.FileEventMsg
10564
- * @instance
10565
- */
10566
- FileEventMsg.prototype.newVersion = null;
10567
-
10568
- /**
10569
- * FileEventMsg removedArchVer.
10570
- * @member {common.IUInt64Value|null|undefined} removedArchVer
10571
- * @memberof file.FileEventMsg
10572
- * @instance
10573
- */
10574
- FileEventMsg.prototype.removedArchVer = null;
10575
-
10576
- /**
10577
- * FileEventMsg archivedVersion.
10578
- * @member {common.IUInt64Value|null|undefined} archivedVersion
10579
- * @memberof file.FileEventMsg
10580
- * @instance
10581
- */
10582
- FileEventMsg.prototype.archivedVersion = null;
10583
-
10584
- /**
10585
- * Creates a new FileEventMsg instance using the specified properties.
10586
- * @function create
10587
- * @memberof file.FileEventMsg
10588
- * @static
10589
- * @param {file.IFileEventMsg=} [properties] Properties to set
10590
- * @returns {file.FileEventMsg} FileEventMsg instance
10591
- */
10592
- FileEventMsg.create = function create(properties) {
10593
- return new FileEventMsg(properties);
10594
- };
10595
-
10596
- /**
10597
- * Encodes the specified FileEventMsg message. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
10598
- * @function encode
10599
- * @memberof file.FileEventMsg
10600
- * @static
10601
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
10602
- * @param {$protobuf.Writer} [writer] Writer to encode to
10603
- * @returns {$protobuf.Writer} Writer
10604
- */
10605
- FileEventMsg.encode = function encode(message, writer) {
10606
- if (!writer)
10607
- writer = $Writer.create();
10608
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
10609
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
10610
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
10611
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
10612
- if (message.src != null && Object.hasOwnProperty.call(message, "src"))
10613
- $root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10614
- if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
10615
- $root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
10616
- if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
10617
- $root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
10618
- if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
10619
- $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
10620
- return writer;
10621
- };
10622
-
10623
- /**
10624
- * Encodes the specified FileEventMsg message, length delimited. Does not implicitly {@link file.FileEventMsg.verify|verify} messages.
10625
- * @function encodeDelimited
10626
- * @memberof file.FileEventMsg
10627
- * @static
10628
- * @param {file.IFileEventMsg} message FileEventMsg message or plain object to encode
10629
- * @param {$protobuf.Writer} [writer] Writer to encode to
10630
- * @returns {$protobuf.Writer} Writer
10631
- */
10632
- FileEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
10633
- return this.encode(message, writer).ldelim();
10634
- };
10635
-
10636
- /**
10637
- * Decodes a FileEventMsg message from the specified reader or buffer.
10638
- * @function decode
10639
- * @memberof file.FileEventMsg
10640
- * @static
10641
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10642
- * @param {number} [length] Message length if known beforehand
10643
- * @returns {file.FileEventMsg} FileEventMsg
10644
- * @throws {Error} If the payload is not a reader or valid buffer
10645
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
10646
- */
10647
- FileEventMsg.decode = function decode(reader, length, error) {
10648
- if (!(reader instanceof $Reader))
10649
- reader = $Reader.create(reader);
10650
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileEventMsg();
10651
- while (reader.pos < end) {
10652
- var tag = reader.uint32();
10653
- if (tag === error)
10654
- break;
10655
- switch (tag >>> 3) {
10656
- case 1: {
10657
- message.type = reader.string();
10658
- break;
10659
- }
10660
- case 2: {
10661
- message.path = reader.string();
10662
- break;
10663
- }
10664
- case 3: {
10665
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
10666
- break;
10667
- }
10668
- case 4: {
10669
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
10670
- break;
10671
- }
10672
- case 5: {
10673
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
10674
- break;
10675
- }
10676
- case 6: {
10677
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
10678
- break;
10679
- }
10680
- default:
10681
- reader.skipType(tag & 7);
10682
- break;
10683
- }
10684
- }
10685
- return message;
10686
- };
10687
-
10688
- /**
10689
- * Decodes a FileEventMsg message from the specified reader or buffer, length delimited.
10690
- * @function decodeDelimited
10691
- * @memberof file.FileEventMsg
10692
- * @static
10693
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10694
- * @returns {file.FileEventMsg} FileEventMsg
10695
- * @throws {Error} If the payload is not a reader or valid buffer
10696
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
10697
- */
10698
- FileEventMsg.decodeDelimited = function decodeDelimited(reader) {
10699
- if (!(reader instanceof $Reader))
10700
- reader = new $Reader(reader);
10701
- return this.decode(reader, reader.uint32());
10702
- };
10703
-
10704
- /**
10705
- * Verifies a FileEventMsg message.
10706
- * @function verify
10707
- * @memberof file.FileEventMsg
10708
- * @static
10709
- * @param {Object.<string,*>} message Plain object to verify
10710
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
10711
- */
10712
- FileEventMsg.verify = function verify(message) {
10713
- if (typeof message !== "object" || message === null)
10714
- return "object expected";
10715
- if (message.type != null && message.hasOwnProperty("type"))
10716
- if (!$util.isString(message.type))
10717
- return "type: string expected";
10718
- if (message.path != null && message.hasOwnProperty("path"))
10719
- if (!$util.isString(message.path))
10720
- return "path: string expected";
10721
- if (message.src != null && message.hasOwnProperty("src")) {
10722
- var error = $root.common.StringValue.verify(message.src);
10723
- if (error)
10724
- return "src." + error;
10725
- }
10726
- if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
10727
- var error = $root.common.UInt64Value.verify(message.newVersion);
10728
- if (error)
10729
- return "newVersion." + error;
10730
- }
10731
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
10732
- var error = $root.common.UInt64Value.verify(message.removedArchVer);
10733
- if (error)
10734
- return "removedArchVer." + error;
10735
- }
10736
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
10737
- var error = $root.common.UInt64Value.verify(message.archivedVersion);
10738
- if (error)
10739
- return "archivedVersion." + error;
10740
- }
10741
- return null;
10742
- };
10743
-
10744
- /**
10745
- * Creates a FileEventMsg message from a plain object. Also converts values to their respective internal types.
10746
- * @function fromObject
10747
- * @memberof file.FileEventMsg
10748
- * @static
10749
- * @param {Object.<string,*>} object Plain object
10750
- * @returns {file.FileEventMsg} FileEventMsg
10751
- */
10752
- FileEventMsg.fromObject = function fromObject(object) {
10753
- if (object instanceof $root.file.FileEventMsg)
10754
- return object;
10755
- var message = new $root.file.FileEventMsg();
10756
- if (object.type != null)
10757
- message.type = String(object.type);
10758
- if (object.path != null)
10759
- message.path = String(object.path);
10760
- if (object.src != null) {
10761
- if (typeof object.src !== "object")
10762
- throw TypeError(".file.FileEventMsg.src: object expected");
10763
- message.src = $root.common.StringValue.fromObject(object.src);
10764
- }
10765
- if (object.newVersion != null) {
10766
- if (typeof object.newVersion !== "object")
10767
- throw TypeError(".file.FileEventMsg.newVersion: object expected");
10768
- message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
10769
- }
10770
- if (object.removedArchVer != null) {
10771
- if (typeof object.removedArchVer !== "object")
10772
- throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
10773
- message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
10774
- }
10775
- if (object.archivedVersion != null) {
10776
- if (typeof object.archivedVersion !== "object")
10777
- throw TypeError(".file.FileEventMsg.archivedVersion: object expected");
10778
- message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
10779
- }
10780
- return message;
10781
- };
10782
-
10783
- /**
10784
- * Creates a plain object from a FileEventMsg message. Also converts values to other types if specified.
10785
- * @function toObject
10786
- * @memberof file.FileEventMsg
10787
- * @static
10788
- * @param {file.FileEventMsg} message FileEventMsg
10789
- * @param {$protobuf.IConversionOptions} [options] Conversion options
10790
- * @returns {Object.<string,*>} Plain object
10791
- */
10792
- FileEventMsg.toObject = function toObject(message, options) {
10793
- if (!options)
10794
- options = {};
10795
- var object = {};
10796
- if (options.defaults) {
10797
- object.type = "";
10798
- object.path = "";
10799
- object.src = null;
10800
- object.newVersion = null;
10801
- object.removedArchVer = null;
10802
- object.archivedVersion = null;
10803
- }
10804
- if (message.type != null && message.hasOwnProperty("type"))
10805
- object.type = message.type;
10806
- if (message.path != null && message.hasOwnProperty("path"))
10807
- object.path = message.path;
10808
- if (message.src != null && message.hasOwnProperty("src"))
10809
- object.src = $root.common.StringValue.toObject(message.src, options);
10810
- if (message.newVersion != null && message.hasOwnProperty("newVersion"))
10811
- object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
10812
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
10813
- object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
10814
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
10815
- object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
10816
- return object;
10817
- };
10818
-
10819
- /**
10820
- * Converts this FileEventMsg to JSON.
10821
- * @function toJSON
10822
- * @memberof file.FileEventMsg
10823
- * @instance
10824
- * @returns {Object.<string,*>} JSON object
10825
- */
10826
- FileEventMsg.prototype.toJSON = function toJSON() {
10827
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10828
- };
10829
-
10830
- /**
10831
- * Gets the default type url for FileEventMsg
10832
- * @function getTypeUrl
10833
- * @memberof file.FileEventMsg
10834
- * @static
10835
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10836
- * @returns {string} The default type url
10837
- */
10838
- FileEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10839
- if (typeUrlPrefix === undefined) {
10840
- typeUrlPrefix = "type.googleapis.com";
10841
- }
10842
- return typeUrlPrefix + "/file.FileEventMsg";
10843
- };
10844
-
10845
- return FileEventMsg;
10846
- })();
10847
-
10848
10535
  file.VersionedReadFlags = (function() {
10849
10536
 
10850
10537
  /**
@@ -17627,25 +17314,24 @@ $root.file = (function() {
17627
17314
  return FileSyncUploadReplyBody;
17628
17315
  })();
17629
17316
 
17630
- file.OptionsToUploadLocal = (function() {
17317
+ file.FileSyncStartUploadReplyBody = (function() {
17631
17318
 
17632
17319
  /**
17633
- * Properties of an OptionsToUploadLocal.
17320
+ * Properties of a FileSyncStartUploadReplyBody.
17634
17321
  * @memberof file
17635
- * @interface IOptionsToUploadLocal
17636
- * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
17637
- * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
17322
+ * @interface IFileSyncStartUploadReplyBody
17323
+ * @property {file.FileSyncStartUploadReplyBody.IUploadInfo|null} [startedUpload] FileSyncStartUploadReplyBody startedUpload
17638
17324
  */
17639
17325
 
17640
17326
  /**
17641
- * Constructs a new OptionsToUploadLocal.
17327
+ * Constructs a new FileSyncStartUploadReplyBody.
17642
17328
  * @memberof file
17643
- * @classdesc Represents an OptionsToUploadLocal.
17644
- * @implements IOptionsToUploadLocal
17329
+ * @classdesc Represents a FileSyncStartUploadReplyBody.
17330
+ * @implements IFileSyncStartUploadReplyBody
17645
17331
  * @constructor
17646
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
17332
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
17647
17333
  */
17648
- function OptionsToUploadLocal(properties) {
17334
+ function FileSyncStartUploadReplyBody(properties) {
17649
17335
  if (properties)
17650
17336
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17651
17337
  if (properties[keys[i]] != null)
@@ -17653,91 +17339,1047 @@ $root.file = (function() {
17653
17339
  }
17654
17340
 
17655
17341
  /**
17656
- * OptionsToUploadLocal localVersion.
17657
- * @member {common.IUInt64Value|null|undefined} localVersion
17658
- * @memberof file.OptionsToUploadLocal
17342
+ * FileSyncStartUploadReplyBody startedUpload.
17343
+ * @member {file.FileSyncStartUploadReplyBody.IUploadInfo|null|undefined} startedUpload
17344
+ * @memberof file.FileSyncStartUploadReplyBody
17659
17345
  * @instance
17660
17346
  */
17661
- OptionsToUploadLocal.prototype.localVersion = null;
17347
+ FileSyncStartUploadReplyBody.prototype.startedUpload = null;
17662
17348
 
17663
17349
  /**
17664
- * OptionsToUploadLocal uploadVersion.
17665
- * @member {common.IUInt64Value|null|undefined} uploadVersion
17666
- * @memberof file.OptionsToUploadLocal
17667
- * @instance
17350
+ * Creates a new FileSyncStartUploadReplyBody instance using the specified properties.
17351
+ * @function create
17352
+ * @memberof file.FileSyncStartUploadReplyBody
17353
+ * @static
17354
+ * @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
17355
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody instance
17356
+ */
17357
+ FileSyncStartUploadReplyBody.create = function create(properties) {
17358
+ return new FileSyncStartUploadReplyBody(properties);
17359
+ };
17360
+
17361
+ /**
17362
+ * Encodes the specified FileSyncStartUploadReplyBody message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
17363
+ * @function encode
17364
+ * @memberof file.FileSyncStartUploadReplyBody
17365
+ * @static
17366
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
17367
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17368
+ * @returns {$protobuf.Writer} Writer
17369
+ */
17370
+ FileSyncStartUploadReplyBody.encode = function encode(message, writer) {
17371
+ if (!writer)
17372
+ writer = $Writer.create();
17373
+ if (message.startedUpload != null && Object.hasOwnProperty.call(message, "startedUpload"))
17374
+ $root.file.FileSyncStartUploadReplyBody.UploadInfo.encode(message.startedUpload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17375
+ return writer;
17376
+ };
17377
+
17378
+ /**
17379
+ * Encodes the specified FileSyncStartUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
17380
+ * @function encodeDelimited
17381
+ * @memberof file.FileSyncStartUploadReplyBody
17382
+ * @static
17383
+ * @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
17384
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17385
+ * @returns {$protobuf.Writer} Writer
17386
+ */
17387
+ FileSyncStartUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
17388
+ return this.encode(message, writer).ldelim();
17389
+ };
17390
+
17391
+ /**
17392
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer.
17393
+ * @function decode
17394
+ * @memberof file.FileSyncStartUploadReplyBody
17395
+ * @static
17396
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17397
+ * @param {number} [length] Message length if known beforehand
17398
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
17399
+ * @throws {Error} If the payload is not a reader or valid buffer
17400
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17401
+ */
17402
+ FileSyncStartUploadReplyBody.decode = function decode(reader, length, error) {
17403
+ if (!(reader instanceof $Reader))
17404
+ reader = $Reader.create(reader);
17405
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody();
17406
+ while (reader.pos < end) {
17407
+ var tag = reader.uint32();
17408
+ if (tag === error)
17409
+ break;
17410
+ switch (tag >>> 3) {
17411
+ case 1: {
17412
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.decode(reader, reader.uint32());
17413
+ break;
17414
+ }
17415
+ default:
17416
+ reader.skipType(tag & 7);
17417
+ break;
17418
+ }
17419
+ }
17420
+ return message;
17421
+ };
17422
+
17423
+ /**
17424
+ * Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer, length delimited.
17425
+ * @function decodeDelimited
17426
+ * @memberof file.FileSyncStartUploadReplyBody
17427
+ * @static
17428
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17429
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
17430
+ * @throws {Error} If the payload is not a reader or valid buffer
17431
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17432
+ */
17433
+ FileSyncStartUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
17434
+ if (!(reader instanceof $Reader))
17435
+ reader = new $Reader(reader);
17436
+ return this.decode(reader, reader.uint32());
17437
+ };
17438
+
17439
+ /**
17440
+ * Verifies a FileSyncStartUploadReplyBody message.
17441
+ * @function verify
17442
+ * @memberof file.FileSyncStartUploadReplyBody
17443
+ * @static
17444
+ * @param {Object.<string,*>} message Plain object to verify
17445
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17446
+ */
17447
+ FileSyncStartUploadReplyBody.verify = function verify(message) {
17448
+ if (typeof message !== "object" || message === null)
17449
+ return "object expected";
17450
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload")) {
17451
+ var error = $root.file.FileSyncStartUploadReplyBody.UploadInfo.verify(message.startedUpload);
17452
+ if (error)
17453
+ return "startedUpload." + error;
17454
+ }
17455
+ return null;
17456
+ };
17457
+
17458
+ /**
17459
+ * Creates a FileSyncStartUploadReplyBody message from a plain object. Also converts values to their respective internal types.
17460
+ * @function fromObject
17461
+ * @memberof file.FileSyncStartUploadReplyBody
17462
+ * @static
17463
+ * @param {Object.<string,*>} object Plain object
17464
+ * @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
17465
+ */
17466
+ FileSyncStartUploadReplyBody.fromObject = function fromObject(object) {
17467
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody)
17468
+ return object;
17469
+ var message = new $root.file.FileSyncStartUploadReplyBody();
17470
+ if (object.startedUpload != null) {
17471
+ if (typeof object.startedUpload !== "object")
17472
+ throw TypeError(".file.FileSyncStartUploadReplyBody.startedUpload: object expected");
17473
+ message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.fromObject(object.startedUpload);
17474
+ }
17475
+ return message;
17476
+ };
17477
+
17478
+ /**
17479
+ * Creates a plain object from a FileSyncStartUploadReplyBody message. Also converts values to other types if specified.
17480
+ * @function toObject
17481
+ * @memberof file.FileSyncStartUploadReplyBody
17482
+ * @static
17483
+ * @param {file.FileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody
17484
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17485
+ * @returns {Object.<string,*>} Plain object
17486
+ */
17487
+ FileSyncStartUploadReplyBody.toObject = function toObject(message, options) {
17488
+ if (!options)
17489
+ options = {};
17490
+ var object = {};
17491
+ if (options.defaults)
17492
+ object.startedUpload = null;
17493
+ if (message.startedUpload != null && message.hasOwnProperty("startedUpload"))
17494
+ object.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.toObject(message.startedUpload, options);
17495
+ return object;
17496
+ };
17497
+
17498
+ /**
17499
+ * Converts this FileSyncStartUploadReplyBody to JSON.
17500
+ * @function toJSON
17501
+ * @memberof file.FileSyncStartUploadReplyBody
17502
+ * @instance
17503
+ * @returns {Object.<string,*>} JSON object
17504
+ */
17505
+ FileSyncStartUploadReplyBody.prototype.toJSON = function toJSON() {
17506
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17507
+ };
17508
+
17509
+ /**
17510
+ * Gets the default type url for FileSyncStartUploadReplyBody
17511
+ * @function getTypeUrl
17512
+ * @memberof file.FileSyncStartUploadReplyBody
17513
+ * @static
17514
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17515
+ * @returns {string} The default type url
17516
+ */
17517
+ FileSyncStartUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17518
+ if (typeUrlPrefix === undefined) {
17519
+ typeUrlPrefix = "type.googleapis.com";
17520
+ }
17521
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody";
17522
+ };
17523
+
17524
+ FileSyncStartUploadReplyBody.UploadInfo = (function() {
17525
+
17526
+ /**
17527
+ * Properties of an UploadInfo.
17528
+ * @memberof file.FileSyncStartUploadReplyBody
17529
+ * @interface IUploadInfo
17530
+ * @property {number|Long|null} [uploadVersion] UploadInfo uploadVersion
17531
+ * @property {number|Long|null} [uploadTaskId] UploadInfo uploadTaskId
17532
+ */
17533
+
17534
+ /**
17535
+ * Constructs a new UploadInfo.
17536
+ * @memberof file.FileSyncStartUploadReplyBody
17537
+ * @classdesc Represents an UploadInfo.
17538
+ * @implements IUploadInfo
17539
+ * @constructor
17540
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
17541
+ */
17542
+ function UploadInfo(properties) {
17543
+ if (properties)
17544
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17545
+ if (properties[keys[i]] != null)
17546
+ this[keys[i]] = properties[keys[i]];
17547
+ }
17548
+
17549
+ /**
17550
+ * UploadInfo uploadVersion.
17551
+ * @member {number|Long} uploadVersion
17552
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17553
+ * @instance
17554
+ */
17555
+ UploadInfo.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17556
+
17557
+ /**
17558
+ * UploadInfo uploadTaskId.
17559
+ * @member {number|Long} uploadTaskId
17560
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17561
+ * @instance
17562
+ */
17563
+ UploadInfo.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17564
+
17565
+ /**
17566
+ * Creates a new UploadInfo instance using the specified properties.
17567
+ * @function create
17568
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17569
+ * @static
17570
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
17571
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo instance
17572
+ */
17573
+ UploadInfo.create = function create(properties) {
17574
+ return new UploadInfo(properties);
17575
+ };
17576
+
17577
+ /**
17578
+ * Encodes the specified UploadInfo message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
17579
+ * @function encode
17580
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17581
+ * @static
17582
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
17583
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17584
+ * @returns {$protobuf.Writer} Writer
17585
+ */
17586
+ UploadInfo.encode = function encode(message, writer) {
17587
+ if (!writer)
17588
+ writer = $Writer.create();
17589
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
17590
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadVersion);
17591
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
17592
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
17593
+ return writer;
17594
+ };
17595
+
17596
+ /**
17597
+ * Encodes the specified UploadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
17598
+ * @function encodeDelimited
17599
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17600
+ * @static
17601
+ * @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
17602
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17603
+ * @returns {$protobuf.Writer} Writer
17604
+ */
17605
+ UploadInfo.encodeDelimited = function encodeDelimited(message, writer) {
17606
+ return this.encode(message, writer).ldelim();
17607
+ };
17608
+
17609
+ /**
17610
+ * Decodes an UploadInfo message from the specified reader or buffer.
17611
+ * @function decode
17612
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17613
+ * @static
17614
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17615
+ * @param {number} [length] Message length if known beforehand
17616
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
17617
+ * @throws {Error} If the payload is not a reader or valid buffer
17618
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17619
+ */
17620
+ UploadInfo.decode = function decode(reader, length, error) {
17621
+ if (!(reader instanceof $Reader))
17622
+ reader = $Reader.create(reader);
17623
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
17624
+ while (reader.pos < end) {
17625
+ var tag = reader.uint32();
17626
+ if (tag === error)
17627
+ break;
17628
+ switch (tag >>> 3) {
17629
+ case 1: {
17630
+ message.uploadVersion = reader.uint64();
17631
+ break;
17632
+ }
17633
+ case 2: {
17634
+ message.uploadTaskId = reader.uint64();
17635
+ break;
17636
+ }
17637
+ default:
17638
+ reader.skipType(tag & 7);
17639
+ break;
17640
+ }
17641
+ }
17642
+ return message;
17643
+ };
17644
+
17645
+ /**
17646
+ * Decodes an UploadInfo message from the specified reader or buffer, length delimited.
17647
+ * @function decodeDelimited
17648
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17649
+ * @static
17650
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17651
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
17652
+ * @throws {Error} If the payload is not a reader or valid buffer
17653
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17654
+ */
17655
+ UploadInfo.decodeDelimited = function decodeDelimited(reader) {
17656
+ if (!(reader instanceof $Reader))
17657
+ reader = new $Reader(reader);
17658
+ return this.decode(reader, reader.uint32());
17659
+ };
17660
+
17661
+ /**
17662
+ * Verifies an UploadInfo message.
17663
+ * @function verify
17664
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17665
+ * @static
17666
+ * @param {Object.<string,*>} message Plain object to verify
17667
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17668
+ */
17669
+ UploadInfo.verify = function verify(message) {
17670
+ if (typeof message !== "object" || message === null)
17671
+ return "object expected";
17672
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
17673
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
17674
+ return "uploadVersion: integer|Long expected";
17675
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
17676
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
17677
+ return "uploadTaskId: integer|Long expected";
17678
+ return null;
17679
+ };
17680
+
17681
+ /**
17682
+ * Creates an UploadInfo message from a plain object. Also converts values to their respective internal types.
17683
+ * @function fromObject
17684
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17685
+ * @static
17686
+ * @param {Object.<string,*>} object Plain object
17687
+ * @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
17688
+ */
17689
+ UploadInfo.fromObject = function fromObject(object) {
17690
+ if (object instanceof $root.file.FileSyncStartUploadReplyBody.UploadInfo)
17691
+ return object;
17692
+ var message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
17693
+ if (object.uploadVersion != null)
17694
+ if ($util.Long)
17695
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
17696
+ else if (typeof object.uploadVersion === "string")
17697
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
17698
+ else if (typeof object.uploadVersion === "number")
17699
+ message.uploadVersion = object.uploadVersion;
17700
+ else if (typeof object.uploadVersion === "object")
17701
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
17702
+ if (object.uploadTaskId != null)
17703
+ if ($util.Long)
17704
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
17705
+ else if (typeof object.uploadTaskId === "string")
17706
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
17707
+ else if (typeof object.uploadTaskId === "number")
17708
+ message.uploadTaskId = object.uploadTaskId;
17709
+ else if (typeof object.uploadTaskId === "object")
17710
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
17711
+ return message;
17712
+ };
17713
+
17714
+ /**
17715
+ * Creates a plain object from an UploadInfo message. Also converts values to other types if specified.
17716
+ * @function toObject
17717
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17718
+ * @static
17719
+ * @param {file.FileSyncStartUploadReplyBody.UploadInfo} message UploadInfo
17720
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17721
+ * @returns {Object.<string,*>} Plain object
17722
+ */
17723
+ UploadInfo.toObject = function toObject(message, options) {
17724
+ if (!options)
17725
+ options = {};
17726
+ var object = {};
17727
+ if (options.defaults) {
17728
+ if ($util.Long) {
17729
+ var long = new $util.Long(0, 0, true);
17730
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17731
+ } else
17732
+ object.uploadVersion = options.longs === String ? "0" : 0;
17733
+ if ($util.Long) {
17734
+ var long = new $util.Long(0, 0, true);
17735
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17736
+ } else
17737
+ object.uploadTaskId = options.longs === String ? "0" : 0;
17738
+ }
17739
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
17740
+ if (typeof message.uploadVersion === "number")
17741
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
17742
+ else
17743
+ 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;
17744
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
17745
+ if (typeof message.uploadTaskId === "number")
17746
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
17747
+ else
17748
+ 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;
17749
+ return object;
17750
+ };
17751
+
17752
+ /**
17753
+ * Converts this UploadInfo to JSON.
17754
+ * @function toJSON
17755
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17756
+ * @instance
17757
+ * @returns {Object.<string,*>} JSON object
17758
+ */
17759
+ UploadInfo.prototype.toJSON = function toJSON() {
17760
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17761
+ };
17762
+
17763
+ /**
17764
+ * Gets the default type url for UploadInfo
17765
+ * @function getTypeUrl
17766
+ * @memberof file.FileSyncStartUploadReplyBody.UploadInfo
17767
+ * @static
17768
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17769
+ * @returns {string} The default type url
17770
+ */
17771
+ UploadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17772
+ if (typeUrlPrefix === undefined) {
17773
+ typeUrlPrefix = "type.googleapis.com";
17774
+ }
17775
+ return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody.UploadInfo";
17776
+ };
17777
+
17778
+ return UploadInfo;
17779
+ })();
17780
+
17781
+ return FileSyncStartUploadReplyBody;
17782
+ })();
17783
+
17784
+ file.OptionsToUploadLocal = (function() {
17785
+
17786
+ /**
17787
+ * Properties of an OptionsToUploadLocal.
17788
+ * @memberof file
17789
+ * @interface IOptionsToUploadLocal
17790
+ * @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
17791
+ * @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
17792
+ */
17793
+
17794
+ /**
17795
+ * Constructs a new OptionsToUploadLocal.
17796
+ * @memberof file
17797
+ * @classdesc Represents an OptionsToUploadLocal.
17798
+ * @implements IOptionsToUploadLocal
17799
+ * @constructor
17800
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
17801
+ */
17802
+ function OptionsToUploadLocal(properties) {
17803
+ if (properties)
17804
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17805
+ if (properties[keys[i]] != null)
17806
+ this[keys[i]] = properties[keys[i]];
17807
+ }
17808
+
17809
+ /**
17810
+ * OptionsToUploadLocal localVersion.
17811
+ * @member {common.IUInt64Value|null|undefined} localVersion
17812
+ * @memberof file.OptionsToUploadLocal
17813
+ * @instance
17814
+ */
17815
+ OptionsToUploadLocal.prototype.localVersion = null;
17816
+
17817
+ /**
17818
+ * OptionsToUploadLocal uploadVersion.
17819
+ * @member {common.IUInt64Value|null|undefined} uploadVersion
17820
+ * @memberof file.OptionsToUploadLocal
17821
+ * @instance
17822
+ */
17823
+ OptionsToUploadLocal.prototype.uploadVersion = null;
17824
+
17825
+ /**
17826
+ * Creates a new OptionsToUploadLocal instance using the specified properties.
17827
+ * @function create
17828
+ * @memberof file.OptionsToUploadLocal
17829
+ * @static
17830
+ * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
17831
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
17832
+ */
17833
+ OptionsToUploadLocal.create = function create(properties) {
17834
+ return new OptionsToUploadLocal(properties);
17835
+ };
17836
+
17837
+ /**
17838
+ * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
17839
+ * @function encode
17840
+ * @memberof file.OptionsToUploadLocal
17841
+ * @static
17842
+ * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
17843
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17844
+ * @returns {$protobuf.Writer} Writer
17845
+ */
17846
+ OptionsToUploadLocal.encode = function encode(message, writer) {
17847
+ if (!writer)
17848
+ writer = $Writer.create();
17849
+ if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
17850
+ $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17851
+ if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
17852
+ $root.common.UInt64Value.encode(message.uploadVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17853
+ return writer;
17854
+ };
17855
+
17856
+ /**
17857
+ * Encodes the specified OptionsToUploadLocal message, length delimited. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
17858
+ * @function encodeDelimited
17859
+ * @memberof file.OptionsToUploadLocal
17860
+ * @static
17861
+ * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
17862
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17863
+ * @returns {$protobuf.Writer} Writer
17864
+ */
17865
+ OptionsToUploadLocal.encodeDelimited = function encodeDelimited(message, writer) {
17866
+ return this.encode(message, writer).ldelim();
17867
+ };
17868
+
17869
+ /**
17870
+ * Decodes an OptionsToUploadLocal message from the specified reader or buffer.
17871
+ * @function decode
17872
+ * @memberof file.OptionsToUploadLocal
17873
+ * @static
17874
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17875
+ * @param {number} [length] Message length if known beforehand
17876
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
17877
+ * @throws {Error} If the payload is not a reader or valid buffer
17878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17879
+ */
17880
+ OptionsToUploadLocal.decode = function decode(reader, length, error) {
17881
+ if (!(reader instanceof $Reader))
17882
+ reader = $Reader.create(reader);
17883
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToUploadLocal();
17884
+ while (reader.pos < end) {
17885
+ var tag = reader.uint32();
17886
+ if (tag === error)
17887
+ break;
17888
+ switch (tag >>> 3) {
17889
+ case 1: {
17890
+ message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
17891
+ break;
17892
+ }
17893
+ case 2: {
17894
+ message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
17895
+ break;
17896
+ }
17897
+ default:
17898
+ reader.skipType(tag & 7);
17899
+ break;
17900
+ }
17901
+ }
17902
+ return message;
17903
+ };
17904
+
17905
+ /**
17906
+ * Decodes an OptionsToUploadLocal message from the specified reader or buffer, length delimited.
17907
+ * @function decodeDelimited
17908
+ * @memberof file.OptionsToUploadLocal
17909
+ * @static
17910
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17911
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
17912
+ * @throws {Error} If the payload is not a reader or valid buffer
17913
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17914
+ */
17915
+ OptionsToUploadLocal.decodeDelimited = function decodeDelimited(reader) {
17916
+ if (!(reader instanceof $Reader))
17917
+ reader = new $Reader(reader);
17918
+ return this.decode(reader, reader.uint32());
17919
+ };
17920
+
17921
+ /**
17922
+ * Verifies an OptionsToUploadLocal message.
17923
+ * @function verify
17924
+ * @memberof file.OptionsToUploadLocal
17925
+ * @static
17926
+ * @param {Object.<string,*>} message Plain object to verify
17927
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17928
+ */
17929
+ OptionsToUploadLocal.verify = function verify(message) {
17930
+ if (typeof message !== "object" || message === null)
17931
+ return "object expected";
17932
+ if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
17933
+ var error = $root.common.UInt64Value.verify(message.localVersion);
17934
+ if (error)
17935
+ return "localVersion." + error;
17936
+ }
17937
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion")) {
17938
+ var error = $root.common.UInt64Value.verify(message.uploadVersion);
17939
+ if (error)
17940
+ return "uploadVersion." + error;
17941
+ }
17942
+ return null;
17943
+ };
17944
+
17945
+ /**
17946
+ * Creates an OptionsToUploadLocal message from a plain object. Also converts values to their respective internal types.
17947
+ * @function fromObject
17948
+ * @memberof file.OptionsToUploadLocal
17949
+ * @static
17950
+ * @param {Object.<string,*>} object Plain object
17951
+ * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
17952
+ */
17953
+ OptionsToUploadLocal.fromObject = function fromObject(object) {
17954
+ if (object instanceof $root.file.OptionsToUploadLocal)
17955
+ return object;
17956
+ var message = new $root.file.OptionsToUploadLocal();
17957
+ if (object.localVersion != null) {
17958
+ if (typeof object.localVersion !== "object")
17959
+ throw TypeError(".file.OptionsToUploadLocal.localVersion: object expected");
17960
+ message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
17961
+ }
17962
+ if (object.uploadVersion != null) {
17963
+ if (typeof object.uploadVersion !== "object")
17964
+ throw TypeError(".file.OptionsToUploadLocal.uploadVersion: object expected");
17965
+ message.uploadVersion = $root.common.UInt64Value.fromObject(object.uploadVersion);
17966
+ }
17967
+ return message;
17968
+ };
17969
+
17970
+ /**
17971
+ * Creates a plain object from an OptionsToUploadLocal message. Also converts values to other types if specified.
17972
+ * @function toObject
17973
+ * @memberof file.OptionsToUploadLocal
17974
+ * @static
17975
+ * @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
17976
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17977
+ * @returns {Object.<string,*>} Plain object
17978
+ */
17979
+ OptionsToUploadLocal.toObject = function toObject(message, options) {
17980
+ if (!options)
17981
+ options = {};
17982
+ var object = {};
17983
+ if (options.defaults) {
17984
+ object.localVersion = null;
17985
+ object.uploadVersion = null;
17986
+ }
17987
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
17988
+ object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
17989
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
17990
+ object.uploadVersion = $root.common.UInt64Value.toObject(message.uploadVersion, options);
17991
+ return object;
17992
+ };
17993
+
17994
+ /**
17995
+ * Converts this OptionsToUploadLocal to JSON.
17996
+ * @function toJSON
17997
+ * @memberof file.OptionsToUploadLocal
17998
+ * @instance
17999
+ * @returns {Object.<string,*>} JSON object
18000
+ */
18001
+ OptionsToUploadLocal.prototype.toJSON = function toJSON() {
18002
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18003
+ };
18004
+
18005
+ /**
18006
+ * Gets the default type url for OptionsToUploadLocal
18007
+ * @function getTypeUrl
18008
+ * @memberof file.OptionsToUploadLocal
18009
+ * @static
18010
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18011
+ * @returns {string} The default type url
18012
+ */
18013
+ OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18014
+ if (typeUrlPrefix === undefined) {
18015
+ typeUrlPrefix = "type.googleapis.com";
18016
+ }
18017
+ return typeUrlPrefix + "/file.OptionsToUploadLocal";
18018
+ };
18019
+
18020
+ return OptionsToUploadLocal;
18021
+ })();
18022
+
18023
+ file.WatchUploadRequestBody = (function() {
18024
+
18025
+ /**
18026
+ * Properties of a WatchUploadRequestBody.
18027
+ * @memberof file
18028
+ * @interface IWatchUploadRequestBody
18029
+ * @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
18030
+ */
18031
+
18032
+ /**
18033
+ * Constructs a new WatchUploadRequestBody.
18034
+ * @memberof file
18035
+ * @classdesc Represents a WatchUploadRequestBody.
18036
+ * @implements IWatchUploadRequestBody
18037
+ * @constructor
18038
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
18039
+ */
18040
+ function WatchUploadRequestBody(properties) {
18041
+ if (properties)
18042
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18043
+ if (properties[keys[i]] != null)
18044
+ this[keys[i]] = properties[keys[i]];
18045
+ }
18046
+
18047
+ /**
18048
+ * WatchUploadRequestBody uploadTaskId.
18049
+ * @member {number|Long} uploadTaskId
18050
+ * @memberof file.WatchUploadRequestBody
18051
+ * @instance
18052
+ */
18053
+ WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18054
+
18055
+ /**
18056
+ * Creates a new WatchUploadRequestBody instance using the specified properties.
18057
+ * @function create
18058
+ * @memberof file.WatchUploadRequestBody
18059
+ * @static
18060
+ * @param {file.IWatchUploadRequestBody=} [properties] Properties to set
18061
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
18062
+ */
18063
+ WatchUploadRequestBody.create = function create(properties) {
18064
+ return new WatchUploadRequestBody(properties);
18065
+ };
18066
+
18067
+ /**
18068
+ * Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
18069
+ * @function encode
18070
+ * @memberof file.WatchUploadRequestBody
18071
+ * @static
18072
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
18073
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18074
+ * @returns {$protobuf.Writer} Writer
18075
+ */
18076
+ WatchUploadRequestBody.encode = function encode(message, writer) {
18077
+ if (!writer)
18078
+ writer = $Writer.create();
18079
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
18080
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
18081
+ return writer;
18082
+ };
18083
+
18084
+ /**
18085
+ * Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
18086
+ * @function encodeDelimited
18087
+ * @memberof file.WatchUploadRequestBody
18088
+ * @static
18089
+ * @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
18090
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18091
+ * @returns {$protobuf.Writer} Writer
17668
18092
  */
17669
- OptionsToUploadLocal.prototype.uploadVersion = null;
18093
+ WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
18094
+ return this.encode(message, writer).ldelim();
18095
+ };
17670
18096
 
17671
18097
  /**
17672
- * Creates a new OptionsToUploadLocal instance using the specified properties.
18098
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer.
18099
+ * @function decode
18100
+ * @memberof file.WatchUploadRequestBody
18101
+ * @static
18102
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18103
+ * @param {number} [length] Message length if known beforehand
18104
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
18105
+ * @throws {Error} If the payload is not a reader or valid buffer
18106
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18107
+ */
18108
+ WatchUploadRequestBody.decode = function decode(reader, length, error) {
18109
+ if (!(reader instanceof $Reader))
18110
+ reader = $Reader.create(reader);
18111
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
18112
+ while (reader.pos < end) {
18113
+ var tag = reader.uint32();
18114
+ if (tag === error)
18115
+ break;
18116
+ switch (tag >>> 3) {
18117
+ case 1: {
18118
+ message.uploadTaskId = reader.uint64();
18119
+ break;
18120
+ }
18121
+ default:
18122
+ reader.skipType(tag & 7);
18123
+ break;
18124
+ }
18125
+ }
18126
+ return message;
18127
+ };
18128
+
18129
+ /**
18130
+ * Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
18131
+ * @function decodeDelimited
18132
+ * @memberof file.WatchUploadRequestBody
18133
+ * @static
18134
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18135
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
18136
+ * @throws {Error} If the payload is not a reader or valid buffer
18137
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18138
+ */
18139
+ WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
18140
+ if (!(reader instanceof $Reader))
18141
+ reader = new $Reader(reader);
18142
+ return this.decode(reader, reader.uint32());
18143
+ };
18144
+
18145
+ /**
18146
+ * Verifies a WatchUploadRequestBody message.
18147
+ * @function verify
18148
+ * @memberof file.WatchUploadRequestBody
18149
+ * @static
18150
+ * @param {Object.<string,*>} message Plain object to verify
18151
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18152
+ */
18153
+ WatchUploadRequestBody.verify = function verify(message) {
18154
+ if (typeof message !== "object" || message === null)
18155
+ return "object expected";
18156
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
18157
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
18158
+ return "uploadTaskId: integer|Long expected";
18159
+ return null;
18160
+ };
18161
+
18162
+ /**
18163
+ * Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
18164
+ * @function fromObject
18165
+ * @memberof file.WatchUploadRequestBody
18166
+ * @static
18167
+ * @param {Object.<string,*>} object Plain object
18168
+ * @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
18169
+ */
18170
+ WatchUploadRequestBody.fromObject = function fromObject(object) {
18171
+ if (object instanceof $root.file.WatchUploadRequestBody)
18172
+ return object;
18173
+ var message = new $root.file.WatchUploadRequestBody();
18174
+ if (object.uploadTaskId != null)
18175
+ if ($util.Long)
18176
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
18177
+ else if (typeof object.uploadTaskId === "string")
18178
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
18179
+ else if (typeof object.uploadTaskId === "number")
18180
+ message.uploadTaskId = object.uploadTaskId;
18181
+ else if (typeof object.uploadTaskId === "object")
18182
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
18183
+ return message;
18184
+ };
18185
+
18186
+ /**
18187
+ * Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
18188
+ * @function toObject
18189
+ * @memberof file.WatchUploadRequestBody
18190
+ * @static
18191
+ * @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
18192
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18193
+ * @returns {Object.<string,*>} Plain object
18194
+ */
18195
+ WatchUploadRequestBody.toObject = function toObject(message, options) {
18196
+ if (!options)
18197
+ options = {};
18198
+ var object = {};
18199
+ if (options.defaults)
18200
+ if ($util.Long) {
18201
+ var long = new $util.Long(0, 0, true);
18202
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18203
+ } else
18204
+ object.uploadTaskId = options.longs === String ? "0" : 0;
18205
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
18206
+ if (typeof message.uploadTaskId === "number")
18207
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
18208
+ else
18209
+ 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;
18210
+ return object;
18211
+ };
18212
+
18213
+ /**
18214
+ * Converts this WatchUploadRequestBody to JSON.
18215
+ * @function toJSON
18216
+ * @memberof file.WatchUploadRequestBody
18217
+ * @instance
18218
+ * @returns {Object.<string,*>} JSON object
18219
+ */
18220
+ WatchUploadRequestBody.prototype.toJSON = function toJSON() {
18221
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18222
+ };
18223
+
18224
+ /**
18225
+ * Gets the default type url for WatchUploadRequestBody
18226
+ * @function getTypeUrl
18227
+ * @memberof file.WatchUploadRequestBody
18228
+ * @static
18229
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18230
+ * @returns {string} The default type url
18231
+ */
18232
+ WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18233
+ if (typeUrlPrefix === undefined) {
18234
+ typeUrlPrefix = "type.googleapis.com";
18235
+ }
18236
+ return typeUrlPrefix + "/file.WatchUploadRequestBody";
18237
+ };
18238
+
18239
+ return WatchUploadRequestBody;
18240
+ })();
18241
+
18242
+ file.UploadEventMsg = (function() {
18243
+
18244
+ /**
18245
+ * Properties of an UploadEventMsg.
18246
+ * @memberof file
18247
+ * @interface IUploadEventMsg
18248
+ * @property {string|null} [type] UploadEventMsg type
18249
+ * @property {number|Long|null} [uploadTaskId] UploadEventMsg uploadTaskId
18250
+ * @property {number|Long|null} [localVersion] UploadEventMsg localVersion
18251
+ * @property {number|Long|null} [uploadVersion] UploadEventMsg uploadVersion
18252
+ */
18253
+
18254
+ /**
18255
+ * Constructs a new UploadEventMsg.
18256
+ * @memberof file
18257
+ * @classdesc Represents an UploadEventMsg.
18258
+ * @implements IUploadEventMsg
18259
+ * @constructor
18260
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
18261
+ */
18262
+ function UploadEventMsg(properties) {
18263
+ if (properties)
18264
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18265
+ if (properties[keys[i]] != null)
18266
+ this[keys[i]] = properties[keys[i]];
18267
+ }
18268
+
18269
+ /**
18270
+ * UploadEventMsg type.
18271
+ * @member {string} type
18272
+ * @memberof file.UploadEventMsg
18273
+ * @instance
18274
+ */
18275
+ UploadEventMsg.prototype.type = "";
18276
+
18277
+ /**
18278
+ * UploadEventMsg uploadTaskId.
18279
+ * @member {number|Long} uploadTaskId
18280
+ * @memberof file.UploadEventMsg
18281
+ * @instance
18282
+ */
18283
+ UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18284
+
18285
+ /**
18286
+ * UploadEventMsg localVersion.
18287
+ * @member {number|Long} localVersion
18288
+ * @memberof file.UploadEventMsg
18289
+ * @instance
18290
+ */
18291
+ UploadEventMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18292
+
18293
+ /**
18294
+ * UploadEventMsg uploadVersion.
18295
+ * @member {number|Long} uploadVersion
18296
+ * @memberof file.UploadEventMsg
18297
+ * @instance
18298
+ */
18299
+ UploadEventMsg.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18300
+
18301
+ /**
18302
+ * Creates a new UploadEventMsg instance using the specified properties.
17673
18303
  * @function create
17674
- * @memberof file.OptionsToUploadLocal
18304
+ * @memberof file.UploadEventMsg
17675
18305
  * @static
17676
- * @param {file.IOptionsToUploadLocal=} [properties] Properties to set
17677
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
18306
+ * @param {file.IUploadEventMsg=} [properties] Properties to set
18307
+ * @returns {file.UploadEventMsg} UploadEventMsg instance
17678
18308
  */
17679
- OptionsToUploadLocal.create = function create(properties) {
17680
- return new OptionsToUploadLocal(properties);
18309
+ UploadEventMsg.create = function create(properties) {
18310
+ return new UploadEventMsg(properties);
17681
18311
  };
17682
18312
 
17683
18313
  /**
17684
- * Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
18314
+ * Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
17685
18315
  * @function encode
17686
- * @memberof file.OptionsToUploadLocal
18316
+ * @memberof file.UploadEventMsg
17687
18317
  * @static
17688
- * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
18318
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
17689
18319
  * @param {$protobuf.Writer} [writer] Writer to encode to
17690
18320
  * @returns {$protobuf.Writer} Writer
17691
18321
  */
17692
- OptionsToUploadLocal.encode = function encode(message, writer) {
18322
+ UploadEventMsg.encode = function encode(message, writer) {
17693
18323
  if (!writer)
17694
18324
  writer = $Writer.create();
18325
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
18326
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
18327
+ if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
18328
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
17695
18329
  if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
17696
- $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18330
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
17697
18331
  if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
17698
- $root.common.UInt64Value.encode(message.uploadVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18332
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
17699
18333
  return writer;
17700
18334
  };
17701
18335
 
17702
18336
  /**
17703
- * Encodes the specified OptionsToUploadLocal message, length delimited. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
18337
+ * Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
17704
18338
  * @function encodeDelimited
17705
- * @memberof file.OptionsToUploadLocal
18339
+ * @memberof file.UploadEventMsg
17706
18340
  * @static
17707
- * @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
18341
+ * @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
17708
18342
  * @param {$protobuf.Writer} [writer] Writer to encode to
17709
18343
  * @returns {$protobuf.Writer} Writer
17710
18344
  */
17711
- OptionsToUploadLocal.encodeDelimited = function encodeDelimited(message, writer) {
18345
+ UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
17712
18346
  return this.encode(message, writer).ldelim();
17713
18347
  };
17714
18348
 
17715
18349
  /**
17716
- * Decodes an OptionsToUploadLocal message from the specified reader or buffer.
18350
+ * Decodes an UploadEventMsg message from the specified reader or buffer.
17717
18351
  * @function decode
17718
- * @memberof file.OptionsToUploadLocal
18352
+ * @memberof file.UploadEventMsg
17719
18353
  * @static
17720
18354
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17721
18355
  * @param {number} [length] Message length if known beforehand
17722
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
18356
+ * @returns {file.UploadEventMsg} UploadEventMsg
17723
18357
  * @throws {Error} If the payload is not a reader or valid buffer
17724
18358
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17725
18359
  */
17726
- OptionsToUploadLocal.decode = function decode(reader, length, error) {
18360
+ UploadEventMsg.decode = function decode(reader, length, error) {
17727
18361
  if (!(reader instanceof $Reader))
17728
18362
  reader = $Reader.create(reader);
17729
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToUploadLocal();
18363
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
17730
18364
  while (reader.pos < end) {
17731
18365
  var tag = reader.uint32();
17732
18366
  if (tag === error)
17733
18367
  break;
17734
18368
  switch (tag >>> 3) {
17735
18369
  case 1: {
17736
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
18370
+ message.type = reader.string();
17737
18371
  break;
17738
18372
  }
17739
18373
  case 2: {
17740
- message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
18374
+ message.uploadTaskId = reader.uint64();
18375
+ break;
18376
+ }
18377
+ case 3: {
18378
+ message.localVersion = reader.uint64();
18379
+ break;
18380
+ }
18381
+ case 4: {
18382
+ message.uploadVersion = reader.uint64();
17741
18383
  break;
17742
18384
  }
17743
18385
  default:
@@ -17749,121 +18391,169 @@ $root.file = (function() {
17749
18391
  };
17750
18392
 
17751
18393
  /**
17752
- * Decodes an OptionsToUploadLocal message from the specified reader or buffer, length delimited.
18394
+ * Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
17753
18395
  * @function decodeDelimited
17754
- * @memberof file.OptionsToUploadLocal
18396
+ * @memberof file.UploadEventMsg
17755
18397
  * @static
17756
18398
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17757
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
18399
+ * @returns {file.UploadEventMsg} UploadEventMsg
17758
18400
  * @throws {Error} If the payload is not a reader or valid buffer
17759
18401
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17760
18402
  */
17761
- OptionsToUploadLocal.decodeDelimited = function decodeDelimited(reader) {
18403
+ UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
17762
18404
  if (!(reader instanceof $Reader))
17763
18405
  reader = new $Reader(reader);
17764
18406
  return this.decode(reader, reader.uint32());
17765
18407
  };
17766
18408
 
17767
18409
  /**
17768
- * Verifies an OptionsToUploadLocal message.
18410
+ * Verifies an UploadEventMsg message.
17769
18411
  * @function verify
17770
- * @memberof file.OptionsToUploadLocal
18412
+ * @memberof file.UploadEventMsg
17771
18413
  * @static
17772
18414
  * @param {Object.<string,*>} message Plain object to verify
17773
18415
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
17774
18416
  */
17775
- OptionsToUploadLocal.verify = function verify(message) {
18417
+ UploadEventMsg.verify = function verify(message) {
17776
18418
  if (typeof message !== "object" || message === null)
17777
18419
  return "object expected";
17778
- if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
17779
- var error = $root.common.UInt64Value.verify(message.localVersion);
17780
- if (error)
17781
- return "localVersion." + error;
17782
- }
17783
- if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion")) {
17784
- var error = $root.common.UInt64Value.verify(message.uploadVersion);
17785
- if (error)
17786
- return "uploadVersion." + error;
17787
- }
18420
+ if (message.type != null && message.hasOwnProperty("type"))
18421
+ if (!$util.isString(message.type))
18422
+ return "type: string expected";
18423
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
18424
+ if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
18425
+ return "uploadTaskId: integer|Long expected";
18426
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
18427
+ if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
18428
+ return "localVersion: integer|Long expected";
18429
+ if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
18430
+ if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
18431
+ return "uploadVersion: integer|Long expected";
17788
18432
  return null;
17789
18433
  };
17790
18434
 
17791
18435
  /**
17792
- * Creates an OptionsToUploadLocal message from a plain object. Also converts values to their respective internal types.
18436
+ * Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
17793
18437
  * @function fromObject
17794
- * @memberof file.OptionsToUploadLocal
18438
+ * @memberof file.UploadEventMsg
17795
18439
  * @static
17796
18440
  * @param {Object.<string,*>} object Plain object
17797
- * @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
18441
+ * @returns {file.UploadEventMsg} UploadEventMsg
17798
18442
  */
17799
- OptionsToUploadLocal.fromObject = function fromObject(object) {
17800
- if (object instanceof $root.file.OptionsToUploadLocal)
18443
+ UploadEventMsg.fromObject = function fromObject(object) {
18444
+ if (object instanceof $root.file.UploadEventMsg)
17801
18445
  return object;
17802
- var message = new $root.file.OptionsToUploadLocal();
17803
- if (object.localVersion != null) {
17804
- if (typeof object.localVersion !== "object")
17805
- throw TypeError(".file.OptionsToUploadLocal.localVersion: object expected");
17806
- message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
17807
- }
17808
- if (object.uploadVersion != null) {
17809
- if (typeof object.uploadVersion !== "object")
17810
- throw TypeError(".file.OptionsToUploadLocal.uploadVersion: object expected");
17811
- message.uploadVersion = $root.common.UInt64Value.fromObject(object.uploadVersion);
17812
- }
18446
+ var message = new $root.file.UploadEventMsg();
18447
+ if (object.type != null)
18448
+ message.type = String(object.type);
18449
+ if (object.uploadTaskId != null)
18450
+ if ($util.Long)
18451
+ (message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
18452
+ else if (typeof object.uploadTaskId === "string")
18453
+ message.uploadTaskId = parseInt(object.uploadTaskId, 10);
18454
+ else if (typeof object.uploadTaskId === "number")
18455
+ message.uploadTaskId = object.uploadTaskId;
18456
+ else if (typeof object.uploadTaskId === "object")
18457
+ message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
18458
+ if (object.localVersion != null)
18459
+ if ($util.Long)
18460
+ (message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
18461
+ else if (typeof object.localVersion === "string")
18462
+ message.localVersion = parseInt(object.localVersion, 10);
18463
+ else if (typeof object.localVersion === "number")
18464
+ message.localVersion = object.localVersion;
18465
+ else if (typeof object.localVersion === "object")
18466
+ message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
18467
+ if (object.uploadVersion != null)
18468
+ if ($util.Long)
18469
+ (message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
18470
+ else if (typeof object.uploadVersion === "string")
18471
+ message.uploadVersion = parseInt(object.uploadVersion, 10);
18472
+ else if (typeof object.uploadVersion === "number")
18473
+ message.uploadVersion = object.uploadVersion;
18474
+ else if (typeof object.uploadVersion === "object")
18475
+ message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
17813
18476
  return message;
17814
18477
  };
17815
18478
 
17816
18479
  /**
17817
- * Creates a plain object from an OptionsToUploadLocal message. Also converts values to other types if specified.
18480
+ * Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
17818
18481
  * @function toObject
17819
- * @memberof file.OptionsToUploadLocal
18482
+ * @memberof file.UploadEventMsg
17820
18483
  * @static
17821
- * @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
18484
+ * @param {file.UploadEventMsg} message UploadEventMsg
17822
18485
  * @param {$protobuf.IConversionOptions} [options] Conversion options
17823
18486
  * @returns {Object.<string,*>} Plain object
17824
18487
  */
17825
- OptionsToUploadLocal.toObject = function toObject(message, options) {
18488
+ UploadEventMsg.toObject = function toObject(message, options) {
17826
18489
  if (!options)
17827
18490
  options = {};
17828
18491
  var object = {};
17829
18492
  if (options.defaults) {
17830
- object.localVersion = null;
17831
- object.uploadVersion = null;
18493
+ object.type = "";
18494
+ if ($util.Long) {
18495
+ var long = new $util.Long(0, 0, true);
18496
+ object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18497
+ } else
18498
+ object.uploadTaskId = options.longs === String ? "0" : 0;
18499
+ if ($util.Long) {
18500
+ var long = new $util.Long(0, 0, true);
18501
+ object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18502
+ } else
18503
+ object.localVersion = options.longs === String ? "0" : 0;
18504
+ if ($util.Long) {
18505
+ var long = new $util.Long(0, 0, true);
18506
+ object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18507
+ } else
18508
+ object.uploadVersion = options.longs === String ? "0" : 0;
17832
18509
  }
18510
+ if (message.type != null && message.hasOwnProperty("type"))
18511
+ object.type = message.type;
18512
+ if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
18513
+ if (typeof message.uploadTaskId === "number")
18514
+ object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
18515
+ else
18516
+ 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;
17833
18517
  if (message.localVersion != null && message.hasOwnProperty("localVersion"))
17834
- object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
18518
+ if (typeof message.localVersion === "number")
18519
+ object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
18520
+ else
18521
+ 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;
17835
18522
  if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
17836
- object.uploadVersion = $root.common.UInt64Value.toObject(message.uploadVersion, options);
18523
+ if (typeof message.uploadVersion === "number")
18524
+ object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
18525
+ else
18526
+ 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;
17837
18527
  return object;
17838
18528
  };
17839
18529
 
17840
18530
  /**
17841
- * Converts this OptionsToUploadLocal to JSON.
18531
+ * Converts this UploadEventMsg to JSON.
17842
18532
  * @function toJSON
17843
- * @memberof file.OptionsToUploadLocal
18533
+ * @memberof file.UploadEventMsg
17844
18534
  * @instance
17845
18535
  * @returns {Object.<string,*>} JSON object
17846
18536
  */
17847
- OptionsToUploadLocal.prototype.toJSON = function toJSON() {
18537
+ UploadEventMsg.prototype.toJSON = function toJSON() {
17848
18538
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17849
18539
  };
17850
18540
 
17851
18541
  /**
17852
- * Gets the default type url for OptionsToUploadLocal
18542
+ * Gets the default type url for UploadEventMsg
17853
18543
  * @function getTypeUrl
17854
- * @memberof file.OptionsToUploadLocal
18544
+ * @memberof file.UploadEventMsg
17855
18545
  * @static
17856
18546
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17857
18547
  * @returns {string} The default type url
17858
18548
  */
17859
- OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18549
+ UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
17860
18550
  if (typeUrlPrefix === undefined) {
17861
18551
  typeUrlPrefix = "type.googleapis.com";
17862
18552
  }
17863
- return typeUrlPrefix + "/file.OptionsToUploadLocal";
18553
+ return typeUrlPrefix + "/file.UploadEventMsg";
17864
18554
  };
17865
18555
 
17866
- return OptionsToUploadLocal;
18556
+ return UploadEventMsg;
17867
18557
  })();
17868
18558
 
17869
18559
  return file;
@@ -18697,322 +19387,63 @@ $root.fs = (function() {
18697
19387
  };
18698
19388
 
18699
19389
  /**
18700
- * Encodes the specified GetXAttrRequestBody message. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
18701
- * @function encode
18702
- * @memberof fs.GetXAttrRequestBody
18703
- * @static
18704
- * @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
18705
- * @param {$protobuf.Writer} [writer] Writer to encode to
18706
- * @returns {$protobuf.Writer} Writer
18707
- */
18708
- GetXAttrRequestBody.encode = function encode(message, writer) {
18709
- if (!writer)
18710
- writer = $Writer.create();
18711
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
18712
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
18713
- if (message.xaName != null && Object.hasOwnProperty.call(message, "xaName"))
18714
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.xaName);
18715
- return writer;
18716
- };
18717
-
18718
- /**
18719
- * Encodes the specified GetXAttrRequestBody message, length delimited. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
18720
- * @function encodeDelimited
18721
- * @memberof fs.GetXAttrRequestBody
18722
- * @static
18723
- * @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
18724
- * @param {$protobuf.Writer} [writer] Writer to encode to
18725
- * @returns {$protobuf.Writer} Writer
18726
- */
18727
- GetXAttrRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
18728
- return this.encode(message, writer).ldelim();
18729
- };
18730
-
18731
- /**
18732
- * Decodes a GetXAttrRequestBody message from the specified reader or buffer.
18733
- * @function decode
18734
- * @memberof fs.GetXAttrRequestBody
18735
- * @static
18736
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18737
- * @param {number} [length] Message length if known beforehand
18738
- * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
18739
- * @throws {Error} If the payload is not a reader or valid buffer
18740
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
18741
- */
18742
- GetXAttrRequestBody.decode = function decode(reader, length, error) {
18743
- if (!(reader instanceof $Reader))
18744
- reader = $Reader.create(reader);
18745
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.GetXAttrRequestBody();
18746
- while (reader.pos < end) {
18747
- var tag = reader.uint32();
18748
- if (tag === error)
18749
- break;
18750
- switch (tag >>> 3) {
18751
- case 1: {
18752
- message.path = reader.string();
18753
- break;
18754
- }
18755
- case 2: {
18756
- message.xaName = reader.string();
18757
- break;
18758
- }
18759
- default:
18760
- reader.skipType(tag & 7);
18761
- break;
18762
- }
18763
- }
18764
- return message;
18765
- };
18766
-
18767
- /**
18768
- * Decodes a GetXAttrRequestBody message from the specified reader or buffer, length delimited.
18769
- * @function decodeDelimited
18770
- * @memberof fs.GetXAttrRequestBody
18771
- * @static
18772
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18773
- * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
18774
- * @throws {Error} If the payload is not a reader or valid buffer
18775
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
18776
- */
18777
- GetXAttrRequestBody.decodeDelimited = function decodeDelimited(reader) {
18778
- if (!(reader instanceof $Reader))
18779
- reader = new $Reader(reader);
18780
- return this.decode(reader, reader.uint32());
18781
- };
18782
-
18783
- /**
18784
- * Verifies a GetXAttrRequestBody message.
18785
- * @function verify
18786
- * @memberof fs.GetXAttrRequestBody
18787
- * @static
18788
- * @param {Object.<string,*>} message Plain object to verify
18789
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
18790
- */
18791
- GetXAttrRequestBody.verify = function verify(message) {
18792
- if (typeof message !== "object" || message === null)
18793
- return "object expected";
18794
- if (message.path != null && message.hasOwnProperty("path"))
18795
- if (!$util.isString(message.path))
18796
- return "path: string expected";
18797
- if (message.xaName != null && message.hasOwnProperty("xaName"))
18798
- if (!$util.isString(message.xaName))
18799
- return "xaName: string expected";
18800
- return null;
18801
- };
18802
-
18803
- /**
18804
- * Creates a GetXAttrRequestBody message from a plain object. Also converts values to their respective internal types.
18805
- * @function fromObject
18806
- * @memberof fs.GetXAttrRequestBody
18807
- * @static
18808
- * @param {Object.<string,*>} object Plain object
18809
- * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
18810
- */
18811
- GetXAttrRequestBody.fromObject = function fromObject(object) {
18812
- if (object instanceof $root.fs.GetXAttrRequestBody)
18813
- return object;
18814
- var message = new $root.fs.GetXAttrRequestBody();
18815
- if (object.path != null)
18816
- message.path = String(object.path);
18817
- if (object.xaName != null)
18818
- message.xaName = String(object.xaName);
18819
- return message;
18820
- };
18821
-
18822
- /**
18823
- * Creates a plain object from a GetXAttrRequestBody message. Also converts values to other types if specified.
18824
- * @function toObject
18825
- * @memberof fs.GetXAttrRequestBody
18826
- * @static
18827
- * @param {fs.GetXAttrRequestBody} message GetXAttrRequestBody
18828
- * @param {$protobuf.IConversionOptions} [options] Conversion options
18829
- * @returns {Object.<string,*>} Plain object
18830
- */
18831
- GetXAttrRequestBody.toObject = function toObject(message, options) {
18832
- if (!options)
18833
- options = {};
18834
- var object = {};
18835
- if (options.defaults) {
18836
- object.path = "";
18837
- object.xaName = "";
18838
- }
18839
- if (message.path != null && message.hasOwnProperty("path"))
18840
- object.path = message.path;
18841
- if (message.xaName != null && message.hasOwnProperty("xaName"))
18842
- object.xaName = message.xaName;
18843
- return object;
18844
- };
18845
-
18846
- /**
18847
- * Converts this GetXAttrRequestBody to JSON.
18848
- * @function toJSON
18849
- * @memberof fs.GetXAttrRequestBody
18850
- * @instance
18851
- * @returns {Object.<string,*>} JSON object
18852
- */
18853
- GetXAttrRequestBody.prototype.toJSON = function toJSON() {
18854
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18855
- };
18856
-
18857
- /**
18858
- * Gets the default type url for GetXAttrRequestBody
18859
- * @function getTypeUrl
18860
- * @memberof fs.GetXAttrRequestBody
18861
- * @static
18862
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18863
- * @returns {string} The default type url
18864
- */
18865
- GetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18866
- if (typeUrlPrefix === undefined) {
18867
- typeUrlPrefix = "type.googleapis.com";
18868
- }
18869
- return typeUrlPrefix + "/fs.GetXAttrRequestBody";
18870
- };
18871
-
18872
- return GetXAttrRequestBody;
18873
- })();
18874
-
18875
- fs.SymLink = (function() {
18876
-
18877
- /**
18878
- * Properties of a SymLink.
18879
- * @memberof fs
18880
- * @interface ISymLink
18881
- * @property {boolean|null} [readonly] SymLink readonly
18882
- * @property {common.IBooleanValue|null} [isFile] SymLink isFile
18883
- * @property {common.IBooleanValue|null} [isFolder] SymLink isFolder
18884
- * @property {common.IObjectReference|null} [impl] SymLink impl
18885
- */
18886
-
18887
- /**
18888
- * Constructs a new SymLink.
18889
- * @memberof fs
18890
- * @classdesc Represents a SymLink.
18891
- * @implements ISymLink
18892
- * @constructor
18893
- * @param {fs.ISymLink=} [properties] Properties to set
18894
- */
18895
- function SymLink(properties) {
18896
- if (properties)
18897
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18898
- if (properties[keys[i]] != null)
18899
- this[keys[i]] = properties[keys[i]];
18900
- }
18901
-
18902
- /**
18903
- * SymLink readonly.
18904
- * @member {boolean} readonly
18905
- * @memberof fs.SymLink
18906
- * @instance
18907
- */
18908
- SymLink.prototype.readonly = false;
18909
-
18910
- /**
18911
- * SymLink isFile.
18912
- * @member {common.IBooleanValue|null|undefined} isFile
18913
- * @memberof fs.SymLink
18914
- * @instance
18915
- */
18916
- SymLink.prototype.isFile = null;
18917
-
18918
- /**
18919
- * SymLink isFolder.
18920
- * @member {common.IBooleanValue|null|undefined} isFolder
18921
- * @memberof fs.SymLink
18922
- * @instance
18923
- */
18924
- SymLink.prototype.isFolder = null;
18925
-
18926
- /**
18927
- * SymLink impl.
18928
- * @member {common.IObjectReference|null|undefined} impl
18929
- * @memberof fs.SymLink
18930
- * @instance
18931
- */
18932
- SymLink.prototype.impl = null;
18933
-
18934
- /**
18935
- * Creates a new SymLink instance using the specified properties.
18936
- * @function create
18937
- * @memberof fs.SymLink
18938
- * @static
18939
- * @param {fs.ISymLink=} [properties] Properties to set
18940
- * @returns {fs.SymLink} SymLink instance
18941
- */
18942
- SymLink.create = function create(properties) {
18943
- return new SymLink(properties);
18944
- };
18945
-
18946
- /**
18947
- * Encodes the specified SymLink message. Does not implicitly {@link fs.SymLink.verify|verify} messages.
19390
+ * Encodes the specified GetXAttrRequestBody message. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
18948
19391
  * @function encode
18949
- * @memberof fs.SymLink
19392
+ * @memberof fs.GetXAttrRequestBody
18950
19393
  * @static
18951
- * @param {fs.ISymLink} message SymLink message or plain object to encode
19394
+ * @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
18952
19395
  * @param {$protobuf.Writer} [writer] Writer to encode to
18953
19396
  * @returns {$protobuf.Writer} Writer
18954
19397
  */
18955
- SymLink.encode = function encode(message, writer) {
19398
+ GetXAttrRequestBody.encode = function encode(message, writer) {
18956
19399
  if (!writer)
18957
19400
  writer = $Writer.create();
18958
- if (message.readonly != null && Object.hasOwnProperty.call(message, "readonly"))
18959
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.readonly);
18960
- if (message.isFile != null && Object.hasOwnProperty.call(message, "isFile"))
18961
- $root.common.BooleanValue.encode(message.isFile, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18962
- if (message.isFolder != null && Object.hasOwnProperty.call(message, "isFolder"))
18963
- $root.common.BooleanValue.encode(message.isFolder, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
18964
- if (message.impl != null && Object.hasOwnProperty.call(message, "impl"))
18965
- $root.common.ObjectReference.encode(message.impl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
19401
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
19402
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
19403
+ if (message.xaName != null && Object.hasOwnProperty.call(message, "xaName"))
19404
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.xaName);
18966
19405
  return writer;
18967
19406
  };
18968
19407
 
18969
19408
  /**
18970
- * Encodes the specified SymLink message, length delimited. Does not implicitly {@link fs.SymLink.verify|verify} messages.
19409
+ * Encodes the specified GetXAttrRequestBody message, length delimited. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
18971
19410
  * @function encodeDelimited
18972
- * @memberof fs.SymLink
19411
+ * @memberof fs.GetXAttrRequestBody
18973
19412
  * @static
18974
- * @param {fs.ISymLink} message SymLink message or plain object to encode
19413
+ * @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
18975
19414
  * @param {$protobuf.Writer} [writer] Writer to encode to
18976
19415
  * @returns {$protobuf.Writer} Writer
18977
19416
  */
18978
- SymLink.encodeDelimited = function encodeDelimited(message, writer) {
19417
+ GetXAttrRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
18979
19418
  return this.encode(message, writer).ldelim();
18980
19419
  };
18981
19420
 
18982
19421
  /**
18983
- * Decodes a SymLink message from the specified reader or buffer.
19422
+ * Decodes a GetXAttrRequestBody message from the specified reader or buffer.
18984
19423
  * @function decode
18985
- * @memberof fs.SymLink
19424
+ * @memberof fs.GetXAttrRequestBody
18986
19425
  * @static
18987
19426
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18988
19427
  * @param {number} [length] Message length if known beforehand
18989
- * @returns {fs.SymLink} SymLink
19428
+ * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
18990
19429
  * @throws {Error} If the payload is not a reader or valid buffer
18991
19430
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
18992
19431
  */
18993
- SymLink.decode = function decode(reader, length, error) {
19432
+ GetXAttrRequestBody.decode = function decode(reader, length, error) {
18994
19433
  if (!(reader instanceof $Reader))
18995
19434
  reader = $Reader.create(reader);
18996
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLink();
19435
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.GetXAttrRequestBody();
18997
19436
  while (reader.pos < end) {
18998
19437
  var tag = reader.uint32();
18999
19438
  if (tag === error)
19000
19439
  break;
19001
19440
  switch (tag >>> 3) {
19002
19441
  case 1: {
19003
- message.readonly = reader.bool();
19442
+ message.path = reader.string();
19004
19443
  break;
19005
19444
  }
19006
19445
  case 2: {
19007
- message.isFile = $root.common.BooleanValue.decode(reader, reader.uint32());
19008
- break;
19009
- }
19010
- case 3: {
19011
- message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
19012
- break;
19013
- }
19014
- case 4: {
19015
- message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
19446
+ message.xaName = reader.string();
19016
19447
  break;
19017
19448
  }
19018
19449
  default:
@@ -19024,163 +19455,134 @@ $root.fs = (function() {
19024
19455
  };
19025
19456
 
19026
19457
  /**
19027
- * Decodes a SymLink message from the specified reader or buffer, length delimited.
19458
+ * Decodes a GetXAttrRequestBody message from the specified reader or buffer, length delimited.
19028
19459
  * @function decodeDelimited
19029
- * @memberof fs.SymLink
19460
+ * @memberof fs.GetXAttrRequestBody
19030
19461
  * @static
19031
19462
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19032
- * @returns {fs.SymLink} SymLink
19463
+ * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
19033
19464
  * @throws {Error} If the payload is not a reader or valid buffer
19034
19465
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19035
19466
  */
19036
- SymLink.decodeDelimited = function decodeDelimited(reader) {
19467
+ GetXAttrRequestBody.decodeDelimited = function decodeDelimited(reader) {
19037
19468
  if (!(reader instanceof $Reader))
19038
19469
  reader = new $Reader(reader);
19039
19470
  return this.decode(reader, reader.uint32());
19040
19471
  };
19041
19472
 
19042
19473
  /**
19043
- * Verifies a SymLink message.
19474
+ * Verifies a GetXAttrRequestBody message.
19044
19475
  * @function verify
19045
- * @memberof fs.SymLink
19476
+ * @memberof fs.GetXAttrRequestBody
19046
19477
  * @static
19047
19478
  * @param {Object.<string,*>} message Plain object to verify
19048
19479
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
19049
19480
  */
19050
- SymLink.verify = function verify(message) {
19481
+ GetXAttrRequestBody.verify = function verify(message) {
19051
19482
  if (typeof message !== "object" || message === null)
19052
19483
  return "object expected";
19053
- if (message.readonly != null && message.hasOwnProperty("readonly"))
19054
- if (typeof message.readonly !== "boolean")
19055
- return "readonly: boolean expected";
19056
- if (message.isFile != null && message.hasOwnProperty("isFile")) {
19057
- var error = $root.common.BooleanValue.verify(message.isFile);
19058
- if (error)
19059
- return "isFile." + error;
19060
- }
19061
- if (message.isFolder != null && message.hasOwnProperty("isFolder")) {
19062
- var error = $root.common.BooleanValue.verify(message.isFolder);
19063
- if (error)
19064
- return "isFolder." + error;
19065
- }
19066
- if (message.impl != null && message.hasOwnProperty("impl")) {
19067
- var error = $root.common.ObjectReference.verify(message.impl);
19068
- if (error)
19069
- return "impl." + error;
19070
- }
19484
+ if (message.path != null && message.hasOwnProperty("path"))
19485
+ if (!$util.isString(message.path))
19486
+ return "path: string expected";
19487
+ if (message.xaName != null && message.hasOwnProperty("xaName"))
19488
+ if (!$util.isString(message.xaName))
19489
+ return "xaName: string expected";
19071
19490
  return null;
19072
19491
  };
19073
19492
 
19074
19493
  /**
19075
- * Creates a SymLink message from a plain object. Also converts values to their respective internal types.
19494
+ * Creates a GetXAttrRequestBody message from a plain object. Also converts values to their respective internal types.
19076
19495
  * @function fromObject
19077
- * @memberof fs.SymLink
19496
+ * @memberof fs.GetXAttrRequestBody
19078
19497
  * @static
19079
19498
  * @param {Object.<string,*>} object Plain object
19080
- * @returns {fs.SymLink} SymLink
19499
+ * @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
19081
19500
  */
19082
- SymLink.fromObject = function fromObject(object) {
19083
- if (object instanceof $root.fs.SymLink)
19501
+ GetXAttrRequestBody.fromObject = function fromObject(object) {
19502
+ if (object instanceof $root.fs.GetXAttrRequestBody)
19084
19503
  return object;
19085
- var message = new $root.fs.SymLink();
19086
- if (object.readonly != null)
19087
- message.readonly = Boolean(object.readonly);
19088
- if (object.isFile != null) {
19089
- if (typeof object.isFile !== "object")
19090
- throw TypeError(".fs.SymLink.isFile: object expected");
19091
- message.isFile = $root.common.BooleanValue.fromObject(object.isFile);
19092
- }
19093
- if (object.isFolder != null) {
19094
- if (typeof object.isFolder !== "object")
19095
- throw TypeError(".fs.SymLink.isFolder: object expected");
19096
- message.isFolder = $root.common.BooleanValue.fromObject(object.isFolder);
19097
- }
19098
- if (object.impl != null) {
19099
- if (typeof object.impl !== "object")
19100
- throw TypeError(".fs.SymLink.impl: object expected");
19101
- message.impl = $root.common.ObjectReference.fromObject(object.impl);
19102
- }
19504
+ var message = new $root.fs.GetXAttrRequestBody();
19505
+ if (object.path != null)
19506
+ message.path = String(object.path);
19507
+ if (object.xaName != null)
19508
+ message.xaName = String(object.xaName);
19103
19509
  return message;
19104
19510
  };
19105
19511
 
19106
19512
  /**
19107
- * Creates a plain object from a SymLink message. Also converts values to other types if specified.
19513
+ * Creates a plain object from a GetXAttrRequestBody message. Also converts values to other types if specified.
19108
19514
  * @function toObject
19109
- * @memberof fs.SymLink
19515
+ * @memberof fs.GetXAttrRequestBody
19110
19516
  * @static
19111
- * @param {fs.SymLink} message SymLink
19517
+ * @param {fs.GetXAttrRequestBody} message GetXAttrRequestBody
19112
19518
  * @param {$protobuf.IConversionOptions} [options] Conversion options
19113
19519
  * @returns {Object.<string,*>} Plain object
19114
19520
  */
19115
- SymLink.toObject = function toObject(message, options) {
19521
+ GetXAttrRequestBody.toObject = function toObject(message, options) {
19116
19522
  if (!options)
19117
19523
  options = {};
19118
19524
  var object = {};
19119
19525
  if (options.defaults) {
19120
- object.readonly = false;
19121
- object.isFile = null;
19122
- object.isFolder = null;
19123
- object.impl = null;
19526
+ object.path = "";
19527
+ object.xaName = "";
19124
19528
  }
19125
- if (message.readonly != null && message.hasOwnProperty("readonly"))
19126
- object.readonly = message.readonly;
19127
- if (message.isFile != null && message.hasOwnProperty("isFile"))
19128
- object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
19129
- if (message.isFolder != null && message.hasOwnProperty("isFolder"))
19130
- object.isFolder = $root.common.BooleanValue.toObject(message.isFolder, options);
19131
- if (message.impl != null && message.hasOwnProperty("impl"))
19132
- object.impl = $root.common.ObjectReference.toObject(message.impl, options);
19529
+ if (message.path != null && message.hasOwnProperty("path"))
19530
+ object.path = message.path;
19531
+ if (message.xaName != null && message.hasOwnProperty("xaName"))
19532
+ object.xaName = message.xaName;
19133
19533
  return object;
19134
19534
  };
19135
19535
 
19136
19536
  /**
19137
- * Converts this SymLink to JSON.
19537
+ * Converts this GetXAttrRequestBody to JSON.
19138
19538
  * @function toJSON
19139
- * @memberof fs.SymLink
19539
+ * @memberof fs.GetXAttrRequestBody
19140
19540
  * @instance
19141
19541
  * @returns {Object.<string,*>} JSON object
19142
19542
  */
19143
- SymLink.prototype.toJSON = function toJSON() {
19543
+ GetXAttrRequestBody.prototype.toJSON = function toJSON() {
19144
19544
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19145
19545
  };
19146
19546
 
19147
19547
  /**
19148
- * Gets the default type url for SymLink
19548
+ * Gets the default type url for GetXAttrRequestBody
19149
19549
  * @function getTypeUrl
19150
- * @memberof fs.SymLink
19550
+ * @memberof fs.GetXAttrRequestBody
19151
19551
  * @static
19152
19552
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19153
19553
  * @returns {string} The default type url
19154
19554
  */
19155
- SymLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19555
+ GetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19156
19556
  if (typeUrlPrefix === undefined) {
19157
19557
  typeUrlPrefix = "type.googleapis.com";
19158
19558
  }
19159
- return typeUrlPrefix + "/fs.SymLink";
19559
+ return typeUrlPrefix + "/fs.GetXAttrRequestBody";
19160
19560
  };
19161
19561
 
19162
- return SymLink;
19562
+ return GetXAttrRequestBody;
19163
19563
  })();
19164
19564
 
19165
- fs.SymLinkTargetReplyBody = (function() {
19565
+ fs.SymLink = (function() {
19166
19566
 
19167
19567
  /**
19168
- * Properties of a SymLinkTargetReplyBody.
19568
+ * Properties of a SymLink.
19169
19569
  * @memberof fs
19170
- * @interface ISymLinkTargetReplyBody
19171
- * @property {fs.IFS|null} [fs] SymLinkTargetReplyBody fs
19172
- * @property {file.IFile|null} [file] SymLinkTargetReplyBody file
19570
+ * @interface ISymLink
19571
+ * @property {boolean|null} [readonly] SymLink readonly
19572
+ * @property {common.IBooleanValue|null} [isFile] SymLink isFile
19573
+ * @property {common.IBooleanValue|null} [isFolder] SymLink isFolder
19574
+ * @property {common.IObjectReference|null} [impl] SymLink impl
19173
19575
  */
19174
19576
 
19175
19577
  /**
19176
- * Constructs a new SymLinkTargetReplyBody.
19578
+ * Constructs a new SymLink.
19177
19579
  * @memberof fs
19178
- * @classdesc Represents a SymLinkTargetReplyBody.
19179
- * @implements ISymLinkTargetReplyBody
19580
+ * @classdesc Represents a SymLink.
19581
+ * @implements ISymLink
19180
19582
  * @constructor
19181
- * @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
19583
+ * @param {fs.ISymLink=} [properties] Properties to set
19182
19584
  */
19183
- function SymLinkTargetReplyBody(properties) {
19585
+ function SymLink(properties) {
19184
19586
  if (properties)
19185
19587
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19186
19588
  if (properties[keys[i]] != null)
@@ -19188,91 +19590,119 @@ $root.fs = (function() {
19188
19590
  }
19189
19591
 
19190
19592
  /**
19191
- * SymLinkTargetReplyBody fs.
19192
- * @member {fs.IFS|null|undefined} fs
19193
- * @memberof fs.SymLinkTargetReplyBody
19593
+ * SymLink readonly.
19594
+ * @member {boolean} readonly
19595
+ * @memberof fs.SymLink
19194
19596
  * @instance
19195
19597
  */
19196
- SymLinkTargetReplyBody.prototype.fs = null;
19598
+ SymLink.prototype.readonly = false;
19197
19599
 
19198
19600
  /**
19199
- * SymLinkTargetReplyBody file.
19200
- * @member {file.IFile|null|undefined} file
19201
- * @memberof fs.SymLinkTargetReplyBody
19601
+ * SymLink isFile.
19602
+ * @member {common.IBooleanValue|null|undefined} isFile
19603
+ * @memberof fs.SymLink
19202
19604
  * @instance
19203
19605
  */
19204
- SymLinkTargetReplyBody.prototype.file = null;
19606
+ SymLink.prototype.isFile = null;
19205
19607
 
19206
19608
  /**
19207
- * Creates a new SymLinkTargetReplyBody instance using the specified properties.
19609
+ * SymLink isFolder.
19610
+ * @member {common.IBooleanValue|null|undefined} isFolder
19611
+ * @memberof fs.SymLink
19612
+ * @instance
19613
+ */
19614
+ SymLink.prototype.isFolder = null;
19615
+
19616
+ /**
19617
+ * SymLink impl.
19618
+ * @member {common.IObjectReference|null|undefined} impl
19619
+ * @memberof fs.SymLink
19620
+ * @instance
19621
+ */
19622
+ SymLink.prototype.impl = null;
19623
+
19624
+ /**
19625
+ * Creates a new SymLink instance using the specified properties.
19208
19626
  * @function create
19209
- * @memberof fs.SymLinkTargetReplyBody
19627
+ * @memberof fs.SymLink
19210
19628
  * @static
19211
- * @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
19212
- * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody instance
19629
+ * @param {fs.ISymLink=} [properties] Properties to set
19630
+ * @returns {fs.SymLink} SymLink instance
19213
19631
  */
19214
- SymLinkTargetReplyBody.create = function create(properties) {
19215
- return new SymLinkTargetReplyBody(properties);
19632
+ SymLink.create = function create(properties) {
19633
+ return new SymLink(properties);
19216
19634
  };
19217
19635
 
19218
19636
  /**
19219
- * Encodes the specified SymLinkTargetReplyBody message. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
19637
+ * Encodes the specified SymLink message. Does not implicitly {@link fs.SymLink.verify|verify} messages.
19220
19638
  * @function encode
19221
- * @memberof fs.SymLinkTargetReplyBody
19639
+ * @memberof fs.SymLink
19222
19640
  * @static
19223
- * @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
19641
+ * @param {fs.ISymLink} message SymLink message or plain object to encode
19224
19642
  * @param {$protobuf.Writer} [writer] Writer to encode to
19225
19643
  * @returns {$protobuf.Writer} Writer
19226
19644
  */
19227
- SymLinkTargetReplyBody.encode = function encode(message, writer) {
19645
+ SymLink.encode = function encode(message, writer) {
19228
19646
  if (!writer)
19229
19647
  writer = $Writer.create();
19230
- if (message.fs != null && Object.hasOwnProperty.call(message, "fs"))
19231
- $root.fs.FS.encode(message.fs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
19232
- if (message.file != null && Object.hasOwnProperty.call(message, "file"))
19233
- $root.file.File.encode(message.file, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
19648
+ if (message.readonly != null && Object.hasOwnProperty.call(message, "readonly"))
19649
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.readonly);
19650
+ if (message.isFile != null && Object.hasOwnProperty.call(message, "isFile"))
19651
+ $root.common.BooleanValue.encode(message.isFile, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
19652
+ if (message.isFolder != null && Object.hasOwnProperty.call(message, "isFolder"))
19653
+ $root.common.BooleanValue.encode(message.isFolder, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
19654
+ if (message.impl != null && Object.hasOwnProperty.call(message, "impl"))
19655
+ $root.common.ObjectReference.encode(message.impl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
19234
19656
  return writer;
19235
19657
  };
19236
19658
 
19237
19659
  /**
19238
- * Encodes the specified SymLinkTargetReplyBody message, length delimited. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
19660
+ * Encodes the specified SymLink message, length delimited. Does not implicitly {@link fs.SymLink.verify|verify} messages.
19239
19661
  * @function encodeDelimited
19240
- * @memberof fs.SymLinkTargetReplyBody
19662
+ * @memberof fs.SymLink
19241
19663
  * @static
19242
- * @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
19664
+ * @param {fs.ISymLink} message SymLink message or plain object to encode
19243
19665
  * @param {$protobuf.Writer} [writer] Writer to encode to
19244
19666
  * @returns {$protobuf.Writer} Writer
19245
19667
  */
19246
- SymLinkTargetReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
19668
+ SymLink.encodeDelimited = function encodeDelimited(message, writer) {
19247
19669
  return this.encode(message, writer).ldelim();
19248
19670
  };
19249
19671
 
19250
19672
  /**
19251
- * Decodes a SymLinkTargetReplyBody message from the specified reader or buffer.
19673
+ * Decodes a SymLink message from the specified reader or buffer.
19252
19674
  * @function decode
19253
- * @memberof fs.SymLinkTargetReplyBody
19675
+ * @memberof fs.SymLink
19254
19676
  * @static
19255
19677
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19256
19678
  * @param {number} [length] Message length if known beforehand
19257
- * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19679
+ * @returns {fs.SymLink} SymLink
19258
19680
  * @throws {Error} If the payload is not a reader or valid buffer
19259
19681
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19260
19682
  */
19261
- SymLinkTargetReplyBody.decode = function decode(reader, length, error) {
19683
+ SymLink.decode = function decode(reader, length, error) {
19262
19684
  if (!(reader instanceof $Reader))
19263
19685
  reader = $Reader.create(reader);
19264
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLinkTargetReplyBody();
19686
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLink();
19265
19687
  while (reader.pos < end) {
19266
19688
  var tag = reader.uint32();
19267
19689
  if (tag === error)
19268
19690
  break;
19269
19691
  switch (tag >>> 3) {
19270
19692
  case 1: {
19271
- message.fs = $root.fs.FS.decode(reader, reader.uint32());
19693
+ message.readonly = reader.bool();
19272
19694
  break;
19273
19695
  }
19274
19696
  case 2: {
19275
- message.file = $root.file.File.decode(reader, reader.uint32());
19697
+ message.isFile = $root.common.BooleanValue.decode(reader, reader.uint32());
19698
+ break;
19699
+ }
19700
+ case 3: {
19701
+ message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
19702
+ break;
19703
+ }
19704
+ case 4: {
19705
+ message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
19276
19706
  break;
19277
19707
  }
19278
19708
  default:
@@ -19284,151 +19714,163 @@ $root.fs = (function() {
19284
19714
  };
19285
19715
 
19286
19716
  /**
19287
- * Decodes a SymLinkTargetReplyBody message from the specified reader or buffer, length delimited.
19717
+ * Decodes a SymLink message from the specified reader or buffer, length delimited.
19288
19718
  * @function decodeDelimited
19289
- * @memberof fs.SymLinkTargetReplyBody
19719
+ * @memberof fs.SymLink
19290
19720
  * @static
19291
19721
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19292
- * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19722
+ * @returns {fs.SymLink} SymLink
19293
19723
  * @throws {Error} If the payload is not a reader or valid buffer
19294
19724
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19295
19725
  */
19296
- SymLinkTargetReplyBody.decodeDelimited = function decodeDelimited(reader) {
19726
+ SymLink.decodeDelimited = function decodeDelimited(reader) {
19297
19727
  if (!(reader instanceof $Reader))
19298
19728
  reader = new $Reader(reader);
19299
19729
  return this.decode(reader, reader.uint32());
19300
19730
  };
19301
19731
 
19302
19732
  /**
19303
- * Verifies a SymLinkTargetReplyBody message.
19733
+ * Verifies a SymLink message.
19304
19734
  * @function verify
19305
- * @memberof fs.SymLinkTargetReplyBody
19735
+ * @memberof fs.SymLink
19306
19736
  * @static
19307
19737
  * @param {Object.<string,*>} message Plain object to verify
19308
19738
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
19309
19739
  */
19310
- SymLinkTargetReplyBody.verify = function verify(message) {
19740
+ SymLink.verify = function verify(message) {
19311
19741
  if (typeof message !== "object" || message === null)
19312
19742
  return "object expected";
19313
- if (message.fs != null && message.hasOwnProperty("fs")) {
19314
- var error = $root.fs.FS.verify(message.fs);
19743
+ if (message.readonly != null && message.hasOwnProperty("readonly"))
19744
+ if (typeof message.readonly !== "boolean")
19745
+ return "readonly: boolean expected";
19746
+ if (message.isFile != null && message.hasOwnProperty("isFile")) {
19747
+ var error = $root.common.BooleanValue.verify(message.isFile);
19315
19748
  if (error)
19316
- return "fs." + error;
19749
+ return "isFile." + error;
19317
19750
  }
19318
- if (message.file != null && message.hasOwnProperty("file")) {
19319
- var error = $root.file.File.verify(message.file);
19751
+ if (message.isFolder != null && message.hasOwnProperty("isFolder")) {
19752
+ var error = $root.common.BooleanValue.verify(message.isFolder);
19320
19753
  if (error)
19321
- return "file." + error;
19754
+ return "isFolder." + error;
19755
+ }
19756
+ if (message.impl != null && message.hasOwnProperty("impl")) {
19757
+ var error = $root.common.ObjectReference.verify(message.impl);
19758
+ if (error)
19759
+ return "impl." + error;
19322
19760
  }
19323
19761
  return null;
19324
19762
  };
19325
19763
 
19326
19764
  /**
19327
- * Creates a SymLinkTargetReplyBody message from a plain object. Also converts values to their respective internal types.
19765
+ * Creates a SymLink message from a plain object. Also converts values to their respective internal types.
19328
19766
  * @function fromObject
19329
- * @memberof fs.SymLinkTargetReplyBody
19767
+ * @memberof fs.SymLink
19330
19768
  * @static
19331
19769
  * @param {Object.<string,*>} object Plain object
19332
- * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19770
+ * @returns {fs.SymLink} SymLink
19333
19771
  */
19334
- SymLinkTargetReplyBody.fromObject = function fromObject(object) {
19335
- if (object instanceof $root.fs.SymLinkTargetReplyBody)
19772
+ SymLink.fromObject = function fromObject(object) {
19773
+ if (object instanceof $root.fs.SymLink)
19336
19774
  return object;
19337
- var message = new $root.fs.SymLinkTargetReplyBody();
19338
- if (object.fs != null) {
19339
- if (typeof object.fs !== "object")
19340
- throw TypeError(".fs.SymLinkTargetReplyBody.fs: object expected");
19341
- message.fs = $root.fs.FS.fromObject(object.fs);
19775
+ var message = new $root.fs.SymLink();
19776
+ if (object.readonly != null)
19777
+ message.readonly = Boolean(object.readonly);
19778
+ if (object.isFile != null) {
19779
+ if (typeof object.isFile !== "object")
19780
+ throw TypeError(".fs.SymLink.isFile: object expected");
19781
+ message.isFile = $root.common.BooleanValue.fromObject(object.isFile);
19342
19782
  }
19343
- if (object.file != null) {
19344
- if (typeof object.file !== "object")
19345
- throw TypeError(".fs.SymLinkTargetReplyBody.file: object expected");
19346
- message.file = $root.file.File.fromObject(object.file);
19783
+ if (object.isFolder != null) {
19784
+ if (typeof object.isFolder !== "object")
19785
+ throw TypeError(".fs.SymLink.isFolder: object expected");
19786
+ message.isFolder = $root.common.BooleanValue.fromObject(object.isFolder);
19787
+ }
19788
+ if (object.impl != null) {
19789
+ if (typeof object.impl !== "object")
19790
+ throw TypeError(".fs.SymLink.impl: object expected");
19791
+ message.impl = $root.common.ObjectReference.fromObject(object.impl);
19347
19792
  }
19348
19793
  return message;
19349
19794
  };
19350
19795
 
19351
19796
  /**
19352
- * Creates a plain object from a SymLinkTargetReplyBody message. Also converts values to other types if specified.
19797
+ * Creates a plain object from a SymLink message. Also converts values to other types if specified.
19353
19798
  * @function toObject
19354
- * @memberof fs.SymLinkTargetReplyBody
19799
+ * @memberof fs.SymLink
19355
19800
  * @static
19356
- * @param {fs.SymLinkTargetReplyBody} message SymLinkTargetReplyBody
19801
+ * @param {fs.SymLink} message SymLink
19357
19802
  * @param {$protobuf.IConversionOptions} [options] Conversion options
19358
19803
  * @returns {Object.<string,*>} Plain object
19359
19804
  */
19360
- SymLinkTargetReplyBody.toObject = function toObject(message, options) {
19805
+ SymLink.toObject = function toObject(message, options) {
19361
19806
  if (!options)
19362
19807
  options = {};
19363
19808
  var object = {};
19364
19809
  if (options.defaults) {
19365
- object.fs = null;
19366
- object.file = null;
19810
+ object.readonly = false;
19811
+ object.isFile = null;
19812
+ object.isFolder = null;
19813
+ object.impl = null;
19367
19814
  }
19368
- if (message.fs != null && message.hasOwnProperty("fs"))
19369
- object.fs = $root.fs.FS.toObject(message.fs, options);
19370
- if (message.file != null && message.hasOwnProperty("file"))
19371
- object.file = $root.file.File.toObject(message.file, options);
19815
+ if (message.readonly != null && message.hasOwnProperty("readonly"))
19816
+ object.readonly = message.readonly;
19817
+ if (message.isFile != null && message.hasOwnProperty("isFile"))
19818
+ object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
19819
+ if (message.isFolder != null && message.hasOwnProperty("isFolder"))
19820
+ object.isFolder = $root.common.BooleanValue.toObject(message.isFolder, options);
19821
+ if (message.impl != null && message.hasOwnProperty("impl"))
19822
+ object.impl = $root.common.ObjectReference.toObject(message.impl, options);
19372
19823
  return object;
19373
19824
  };
19374
19825
 
19375
19826
  /**
19376
- * Converts this SymLinkTargetReplyBody to JSON.
19827
+ * Converts this SymLink to JSON.
19377
19828
  * @function toJSON
19378
- * @memberof fs.SymLinkTargetReplyBody
19829
+ * @memberof fs.SymLink
19379
19830
  * @instance
19380
19831
  * @returns {Object.<string,*>} JSON object
19381
19832
  */
19382
- SymLinkTargetReplyBody.prototype.toJSON = function toJSON() {
19833
+ SymLink.prototype.toJSON = function toJSON() {
19383
19834
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19384
19835
  };
19385
19836
 
19386
19837
  /**
19387
- * Gets the default type url for SymLinkTargetReplyBody
19838
+ * Gets the default type url for SymLink
19388
19839
  * @function getTypeUrl
19389
- * @memberof fs.SymLinkTargetReplyBody
19840
+ * @memberof fs.SymLink
19390
19841
  * @static
19391
19842
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19392
19843
  * @returns {string} The default type url
19393
19844
  */
19394
- SymLinkTargetReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19845
+ SymLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19395
19846
  if (typeUrlPrefix === undefined) {
19396
19847
  typeUrlPrefix = "type.googleapis.com";
19397
19848
  }
19398
- return typeUrlPrefix + "/fs.SymLinkTargetReplyBody";
19849
+ return typeUrlPrefix + "/fs.SymLink";
19399
19850
  };
19400
19851
 
19401
- return SymLinkTargetReplyBody;
19852
+ return SymLink;
19402
19853
  })();
19403
19854
 
19404
- fs.FSEventMsg = (function() {
19855
+ fs.SymLinkTargetReplyBody = (function() {
19405
19856
 
19406
19857
  /**
19407
- * Properties of a FSEventMsg.
19858
+ * Properties of a SymLinkTargetReplyBody.
19408
19859
  * @memberof fs
19409
- * @interface IFSEventMsg
19410
- * @property {string|null} [type] FSEventMsg type
19411
- * @property {string|null} [path] FSEventMsg path
19412
- * @property {common.IStringValue|null} [src] FSEventMsg src
19413
- * @property {common.IUInt64Value|null} [newVersion] FSEventMsg newVersion
19414
- * @property {common.IStringValue|null} [name] FSEventMsg name
19415
- * @property {common.IStringValue|null} [oldName] FSEventMsg oldName
19416
- * @property {common.IStringValue|null} [newName] FSEventMsg newName
19417
- * @property {fs.IListingEntryMsg|null} [entry] FSEventMsg entry
19418
- * @property {common.IUInt64Value|null} [moveLabel] FSEventMsg moveLabel
19419
- * @property {common.IUInt64Value|null} [removedArchVer] FSEventMsg removedArchVer
19420
- * @property {common.IUInt64Value|null} [archivedVersion] FSEventMsg archivedVersion
19421
- */
19422
-
19423
- /**
19424
- * Constructs a new FSEventMsg.
19860
+ * @interface ISymLinkTargetReplyBody
19861
+ * @property {fs.IFS|null} [fs] SymLinkTargetReplyBody fs
19862
+ * @property {file.IFile|null} [file] SymLinkTargetReplyBody file
19863
+ */
19864
+
19865
+ /**
19866
+ * Constructs a new SymLinkTargetReplyBody.
19425
19867
  * @memberof fs
19426
- * @classdesc Represents a FSEventMsg.
19427
- * @implements IFSEventMsg
19868
+ * @classdesc Represents a SymLinkTargetReplyBody.
19869
+ * @implements ISymLinkTargetReplyBody
19428
19870
  * @constructor
19429
- * @param {fs.IFSEventMsg=} [properties] Properties to set
19871
+ * @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
19430
19872
  */
19431
- function FSEventMsg(properties) {
19873
+ function SymLinkTargetReplyBody(properties) {
19432
19874
  if (properties)
19433
19875
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19434
19876
  if (properties[keys[i]] != null)
@@ -19436,217 +19878,91 @@ $root.fs = (function() {
19436
19878
  }
19437
19879
 
19438
19880
  /**
19439
- * FSEventMsg type.
19440
- * @member {string} type
19441
- * @memberof fs.FSEventMsg
19442
- * @instance
19443
- */
19444
- FSEventMsg.prototype.type = "";
19445
-
19446
- /**
19447
- * FSEventMsg path.
19448
- * @member {string} path
19449
- * @memberof fs.FSEventMsg
19450
- * @instance
19451
- */
19452
- FSEventMsg.prototype.path = "";
19453
-
19454
- /**
19455
- * FSEventMsg src.
19456
- * @member {common.IStringValue|null|undefined} src
19457
- * @memberof fs.FSEventMsg
19458
- * @instance
19459
- */
19460
- FSEventMsg.prototype.src = null;
19461
-
19462
- /**
19463
- * FSEventMsg newVersion.
19464
- * @member {common.IUInt64Value|null|undefined} newVersion
19465
- * @memberof fs.FSEventMsg
19466
- * @instance
19467
- */
19468
- FSEventMsg.prototype.newVersion = null;
19469
-
19470
- /**
19471
- * FSEventMsg name.
19472
- * @member {common.IStringValue|null|undefined} name
19473
- * @memberof fs.FSEventMsg
19474
- * @instance
19475
- */
19476
- FSEventMsg.prototype.name = null;
19477
-
19478
- /**
19479
- * FSEventMsg oldName.
19480
- * @member {common.IStringValue|null|undefined} oldName
19481
- * @memberof fs.FSEventMsg
19482
- * @instance
19483
- */
19484
- FSEventMsg.prototype.oldName = null;
19485
-
19486
- /**
19487
- * FSEventMsg newName.
19488
- * @member {common.IStringValue|null|undefined} newName
19489
- * @memberof fs.FSEventMsg
19490
- * @instance
19491
- */
19492
- FSEventMsg.prototype.newName = null;
19493
-
19494
- /**
19495
- * FSEventMsg entry.
19496
- * @member {fs.IListingEntryMsg|null|undefined} entry
19497
- * @memberof fs.FSEventMsg
19498
- * @instance
19499
- */
19500
- FSEventMsg.prototype.entry = null;
19501
-
19502
- /**
19503
- * FSEventMsg moveLabel.
19504
- * @member {common.IUInt64Value|null|undefined} moveLabel
19505
- * @memberof fs.FSEventMsg
19506
- * @instance
19507
- */
19508
- FSEventMsg.prototype.moveLabel = null;
19509
-
19510
- /**
19511
- * FSEventMsg removedArchVer.
19512
- * @member {common.IUInt64Value|null|undefined} removedArchVer
19513
- * @memberof fs.FSEventMsg
19881
+ * SymLinkTargetReplyBody fs.
19882
+ * @member {fs.IFS|null|undefined} fs
19883
+ * @memberof fs.SymLinkTargetReplyBody
19514
19884
  * @instance
19515
19885
  */
19516
- FSEventMsg.prototype.removedArchVer = null;
19886
+ SymLinkTargetReplyBody.prototype.fs = null;
19517
19887
 
19518
19888
  /**
19519
- * FSEventMsg archivedVersion.
19520
- * @member {common.IUInt64Value|null|undefined} archivedVersion
19521
- * @memberof fs.FSEventMsg
19889
+ * SymLinkTargetReplyBody file.
19890
+ * @member {file.IFile|null|undefined} file
19891
+ * @memberof fs.SymLinkTargetReplyBody
19522
19892
  * @instance
19523
19893
  */
19524
- FSEventMsg.prototype.archivedVersion = null;
19894
+ SymLinkTargetReplyBody.prototype.file = null;
19525
19895
 
19526
19896
  /**
19527
- * Creates a new FSEventMsg instance using the specified properties.
19897
+ * Creates a new SymLinkTargetReplyBody instance using the specified properties.
19528
19898
  * @function create
19529
- * @memberof fs.FSEventMsg
19899
+ * @memberof fs.SymLinkTargetReplyBody
19530
19900
  * @static
19531
- * @param {fs.IFSEventMsg=} [properties] Properties to set
19532
- * @returns {fs.FSEventMsg} FSEventMsg instance
19901
+ * @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
19902
+ * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody instance
19533
19903
  */
19534
- FSEventMsg.create = function create(properties) {
19535
- return new FSEventMsg(properties);
19904
+ SymLinkTargetReplyBody.create = function create(properties) {
19905
+ return new SymLinkTargetReplyBody(properties);
19536
19906
  };
19537
19907
 
19538
19908
  /**
19539
- * Encodes the specified FSEventMsg message. Does not implicitly {@link fs.FSEventMsg.verify|verify} messages.
19909
+ * Encodes the specified SymLinkTargetReplyBody message. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
19540
19910
  * @function encode
19541
- * @memberof fs.FSEventMsg
19911
+ * @memberof fs.SymLinkTargetReplyBody
19542
19912
  * @static
19543
- * @param {fs.IFSEventMsg} message FSEventMsg message or plain object to encode
19913
+ * @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
19544
19914
  * @param {$protobuf.Writer} [writer] Writer to encode to
19545
19915
  * @returns {$protobuf.Writer} Writer
19546
19916
  */
19547
- FSEventMsg.encode = function encode(message, writer) {
19917
+ SymLinkTargetReplyBody.encode = function encode(message, writer) {
19548
19918
  if (!writer)
19549
19919
  writer = $Writer.create();
19550
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
19551
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
19552
- if (message.path != null && Object.hasOwnProperty.call(message, "path"))
19553
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
19554
- if (message.src != null && Object.hasOwnProperty.call(message, "src"))
19555
- $root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
19556
- if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
19557
- $root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
19558
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
19559
- $root.common.StringValue.encode(message.name, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
19560
- if (message.oldName != null && Object.hasOwnProperty.call(message, "oldName"))
19561
- $root.common.StringValue.encode(message.oldName, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
19562
- if (message.newName != null && Object.hasOwnProperty.call(message, "newName"))
19563
- $root.common.StringValue.encode(message.newName, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
19564
- if (message.entry != null && Object.hasOwnProperty.call(message, "entry"))
19565
- $root.fs.ListingEntryMsg.encode(message.entry, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
19566
- if (message.moveLabel != null && Object.hasOwnProperty.call(message, "moveLabel"))
19567
- $root.common.UInt64Value.encode(message.moveLabel, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
19568
- if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
19569
- $root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
19570
- if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
19571
- $root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
19920
+ if (message.fs != null && Object.hasOwnProperty.call(message, "fs"))
19921
+ $root.fs.FS.encode(message.fs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
19922
+ if (message.file != null && Object.hasOwnProperty.call(message, "file"))
19923
+ $root.file.File.encode(message.file, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
19572
19924
  return writer;
19573
19925
  };
19574
19926
 
19575
19927
  /**
19576
- * Encodes the specified FSEventMsg message, length delimited. Does not implicitly {@link fs.FSEventMsg.verify|verify} messages.
19928
+ * Encodes the specified SymLinkTargetReplyBody message, length delimited. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
19577
19929
  * @function encodeDelimited
19578
- * @memberof fs.FSEventMsg
19930
+ * @memberof fs.SymLinkTargetReplyBody
19579
19931
  * @static
19580
- * @param {fs.IFSEventMsg} message FSEventMsg message or plain object to encode
19932
+ * @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
19581
19933
  * @param {$protobuf.Writer} [writer] Writer to encode to
19582
19934
  * @returns {$protobuf.Writer} Writer
19583
19935
  */
19584
- FSEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
19936
+ SymLinkTargetReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
19585
19937
  return this.encode(message, writer).ldelim();
19586
19938
  };
19587
19939
 
19588
19940
  /**
19589
- * Decodes a FSEventMsg message from the specified reader or buffer.
19941
+ * Decodes a SymLinkTargetReplyBody message from the specified reader or buffer.
19590
19942
  * @function decode
19591
- * @memberof fs.FSEventMsg
19943
+ * @memberof fs.SymLinkTargetReplyBody
19592
19944
  * @static
19593
19945
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19594
19946
  * @param {number} [length] Message length if known beforehand
19595
- * @returns {fs.FSEventMsg} FSEventMsg
19947
+ * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19596
19948
  * @throws {Error} If the payload is not a reader or valid buffer
19597
19949
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19598
19950
  */
19599
- FSEventMsg.decode = function decode(reader, length, error) {
19951
+ SymLinkTargetReplyBody.decode = function decode(reader, length, error) {
19600
19952
  if (!(reader instanceof $Reader))
19601
19953
  reader = $Reader.create(reader);
19602
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSEventMsg();
19603
- while (reader.pos < end) {
19604
- var tag = reader.uint32();
19605
- if (tag === error)
19606
- break;
19607
- switch (tag >>> 3) {
19608
- case 1: {
19609
- message.type = reader.string();
19610
- break;
19611
- }
19612
- case 2: {
19613
- message.path = reader.string();
19614
- break;
19615
- }
19616
- case 3: {
19617
- message.src = $root.common.StringValue.decode(reader, reader.uint32());
19618
- break;
19619
- }
19620
- case 4: {
19621
- message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
19622
- break;
19623
- }
19624
- case 5: {
19625
- message.name = $root.common.StringValue.decode(reader, reader.uint32());
19626
- break;
19627
- }
19628
- case 6: {
19629
- message.oldName = $root.common.StringValue.decode(reader, reader.uint32());
19630
- break;
19631
- }
19632
- case 7: {
19633
- message.newName = $root.common.StringValue.decode(reader, reader.uint32());
19634
- break;
19635
- }
19636
- case 8: {
19637
- message.entry = $root.fs.ListingEntryMsg.decode(reader, reader.uint32());
19638
- break;
19639
- }
19640
- case 9: {
19641
- message.moveLabel = $root.common.UInt64Value.decode(reader, reader.uint32());
19642
- break;
19643
- }
19644
- case 10: {
19645
- message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
19954
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLinkTargetReplyBody();
19955
+ while (reader.pos < end) {
19956
+ var tag = reader.uint32();
19957
+ if (tag === error)
19958
+ break;
19959
+ switch (tag >>> 3) {
19960
+ case 1: {
19961
+ message.fs = $root.fs.FS.decode(reader, reader.uint32());
19646
19962
  break;
19647
19963
  }
19648
- case 11: {
19649
- message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
19964
+ case 2: {
19965
+ message.file = $root.file.File.decode(reader, reader.uint32());
19650
19966
  break;
19651
19967
  }
19652
19968
  default:
@@ -19658,228 +19974,121 @@ $root.fs = (function() {
19658
19974
  };
19659
19975
 
19660
19976
  /**
19661
- * Decodes a FSEventMsg message from the specified reader or buffer, length delimited.
19977
+ * Decodes a SymLinkTargetReplyBody message from the specified reader or buffer, length delimited.
19662
19978
  * @function decodeDelimited
19663
- * @memberof fs.FSEventMsg
19979
+ * @memberof fs.SymLinkTargetReplyBody
19664
19980
  * @static
19665
19981
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19666
- * @returns {fs.FSEventMsg} FSEventMsg
19982
+ * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19667
19983
  * @throws {Error} If the payload is not a reader or valid buffer
19668
19984
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
19669
19985
  */
19670
- FSEventMsg.decodeDelimited = function decodeDelimited(reader) {
19986
+ SymLinkTargetReplyBody.decodeDelimited = function decodeDelimited(reader) {
19671
19987
  if (!(reader instanceof $Reader))
19672
19988
  reader = new $Reader(reader);
19673
19989
  return this.decode(reader, reader.uint32());
19674
19990
  };
19675
19991
 
19676
19992
  /**
19677
- * Verifies a FSEventMsg message.
19993
+ * Verifies a SymLinkTargetReplyBody message.
19678
19994
  * @function verify
19679
- * @memberof fs.FSEventMsg
19995
+ * @memberof fs.SymLinkTargetReplyBody
19680
19996
  * @static
19681
19997
  * @param {Object.<string,*>} message Plain object to verify
19682
19998
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
19683
19999
  */
19684
- FSEventMsg.verify = function verify(message) {
20000
+ SymLinkTargetReplyBody.verify = function verify(message) {
19685
20001
  if (typeof message !== "object" || message === null)
19686
20002
  return "object expected";
19687
- if (message.type != null && message.hasOwnProperty("type"))
19688
- if (!$util.isString(message.type))
19689
- return "type: string expected";
19690
- if (message.path != null && message.hasOwnProperty("path"))
19691
- if (!$util.isString(message.path))
19692
- return "path: string expected";
19693
- if (message.src != null && message.hasOwnProperty("src")) {
19694
- var error = $root.common.StringValue.verify(message.src);
19695
- if (error)
19696
- return "src." + error;
19697
- }
19698
- if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
19699
- var error = $root.common.UInt64Value.verify(message.newVersion);
19700
- if (error)
19701
- return "newVersion." + error;
19702
- }
19703
- if (message.name != null && message.hasOwnProperty("name")) {
19704
- var error = $root.common.StringValue.verify(message.name);
19705
- if (error)
19706
- return "name." + error;
19707
- }
19708
- if (message.oldName != null && message.hasOwnProperty("oldName")) {
19709
- var error = $root.common.StringValue.verify(message.oldName);
19710
- if (error)
19711
- return "oldName." + error;
19712
- }
19713
- if (message.newName != null && message.hasOwnProperty("newName")) {
19714
- var error = $root.common.StringValue.verify(message.newName);
19715
- if (error)
19716
- return "newName." + error;
19717
- }
19718
- if (message.entry != null && message.hasOwnProperty("entry")) {
19719
- var error = $root.fs.ListingEntryMsg.verify(message.entry);
19720
- if (error)
19721
- return "entry." + error;
19722
- }
19723
- if (message.moveLabel != null && message.hasOwnProperty("moveLabel")) {
19724
- var error = $root.common.UInt64Value.verify(message.moveLabel);
19725
- if (error)
19726
- return "moveLabel." + error;
19727
- }
19728
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
19729
- var error = $root.common.UInt64Value.verify(message.removedArchVer);
20003
+ if (message.fs != null && message.hasOwnProperty("fs")) {
20004
+ var error = $root.fs.FS.verify(message.fs);
19730
20005
  if (error)
19731
- return "removedArchVer." + error;
20006
+ return "fs." + error;
19732
20007
  }
19733
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
19734
- var error = $root.common.UInt64Value.verify(message.archivedVersion);
20008
+ if (message.file != null && message.hasOwnProperty("file")) {
20009
+ var error = $root.file.File.verify(message.file);
19735
20010
  if (error)
19736
- return "archivedVersion." + error;
20011
+ return "file." + error;
19737
20012
  }
19738
20013
  return null;
19739
20014
  };
19740
20015
 
19741
20016
  /**
19742
- * Creates a FSEventMsg message from a plain object. Also converts values to their respective internal types.
20017
+ * Creates a SymLinkTargetReplyBody message from a plain object. Also converts values to their respective internal types.
19743
20018
  * @function fromObject
19744
- * @memberof fs.FSEventMsg
20019
+ * @memberof fs.SymLinkTargetReplyBody
19745
20020
  * @static
19746
20021
  * @param {Object.<string,*>} object Plain object
19747
- * @returns {fs.FSEventMsg} FSEventMsg
20022
+ * @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
19748
20023
  */
19749
- FSEventMsg.fromObject = function fromObject(object) {
19750
- if (object instanceof $root.fs.FSEventMsg)
20024
+ SymLinkTargetReplyBody.fromObject = function fromObject(object) {
20025
+ if (object instanceof $root.fs.SymLinkTargetReplyBody)
19751
20026
  return object;
19752
- var message = new $root.fs.FSEventMsg();
19753
- if (object.type != null)
19754
- message.type = String(object.type);
19755
- if (object.path != null)
19756
- message.path = String(object.path);
19757
- if (object.src != null) {
19758
- if (typeof object.src !== "object")
19759
- throw TypeError(".fs.FSEventMsg.src: object expected");
19760
- message.src = $root.common.StringValue.fromObject(object.src);
19761
- }
19762
- if (object.newVersion != null) {
19763
- if (typeof object.newVersion !== "object")
19764
- throw TypeError(".fs.FSEventMsg.newVersion: object expected");
19765
- message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
19766
- }
19767
- if (object.name != null) {
19768
- if (typeof object.name !== "object")
19769
- throw TypeError(".fs.FSEventMsg.name: object expected");
19770
- message.name = $root.common.StringValue.fromObject(object.name);
19771
- }
19772
- if (object.oldName != null) {
19773
- if (typeof object.oldName !== "object")
19774
- throw TypeError(".fs.FSEventMsg.oldName: object expected");
19775
- message.oldName = $root.common.StringValue.fromObject(object.oldName);
19776
- }
19777
- if (object.newName != null) {
19778
- if (typeof object.newName !== "object")
19779
- throw TypeError(".fs.FSEventMsg.newName: object expected");
19780
- message.newName = $root.common.StringValue.fromObject(object.newName);
19781
- }
19782
- if (object.entry != null) {
19783
- if (typeof object.entry !== "object")
19784
- throw TypeError(".fs.FSEventMsg.entry: object expected");
19785
- message.entry = $root.fs.ListingEntryMsg.fromObject(object.entry);
19786
- }
19787
- if (object.moveLabel != null) {
19788
- if (typeof object.moveLabel !== "object")
19789
- throw TypeError(".fs.FSEventMsg.moveLabel: object expected");
19790
- message.moveLabel = $root.common.UInt64Value.fromObject(object.moveLabel);
19791
- }
19792
- if (object.removedArchVer != null) {
19793
- if (typeof object.removedArchVer !== "object")
19794
- throw TypeError(".fs.FSEventMsg.removedArchVer: object expected");
19795
- message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
20027
+ var message = new $root.fs.SymLinkTargetReplyBody();
20028
+ if (object.fs != null) {
20029
+ if (typeof object.fs !== "object")
20030
+ throw TypeError(".fs.SymLinkTargetReplyBody.fs: object expected");
20031
+ message.fs = $root.fs.FS.fromObject(object.fs);
19796
20032
  }
19797
- if (object.archivedVersion != null) {
19798
- if (typeof object.archivedVersion !== "object")
19799
- throw TypeError(".fs.FSEventMsg.archivedVersion: object expected");
19800
- message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
20033
+ if (object.file != null) {
20034
+ if (typeof object.file !== "object")
20035
+ throw TypeError(".fs.SymLinkTargetReplyBody.file: object expected");
20036
+ message.file = $root.file.File.fromObject(object.file);
19801
20037
  }
19802
20038
  return message;
19803
20039
  };
19804
20040
 
19805
20041
  /**
19806
- * Creates a plain object from a FSEventMsg message. Also converts values to other types if specified.
20042
+ * Creates a plain object from a SymLinkTargetReplyBody message. Also converts values to other types if specified.
19807
20043
  * @function toObject
19808
- * @memberof fs.FSEventMsg
20044
+ * @memberof fs.SymLinkTargetReplyBody
19809
20045
  * @static
19810
- * @param {fs.FSEventMsg} message FSEventMsg
20046
+ * @param {fs.SymLinkTargetReplyBody} message SymLinkTargetReplyBody
19811
20047
  * @param {$protobuf.IConversionOptions} [options] Conversion options
19812
20048
  * @returns {Object.<string,*>} Plain object
19813
20049
  */
19814
- FSEventMsg.toObject = function toObject(message, options) {
20050
+ SymLinkTargetReplyBody.toObject = function toObject(message, options) {
19815
20051
  if (!options)
19816
20052
  options = {};
19817
20053
  var object = {};
19818
20054
  if (options.defaults) {
19819
- object.type = "";
19820
- object.path = "";
19821
- object.src = null;
19822
- object.newVersion = null;
19823
- object.name = null;
19824
- object.oldName = null;
19825
- object.newName = null;
19826
- object.entry = null;
19827
- object.moveLabel = null;
19828
- object.removedArchVer = null;
19829
- object.archivedVersion = null;
20055
+ object.fs = null;
20056
+ object.file = null;
19830
20057
  }
19831
- if (message.type != null && message.hasOwnProperty("type"))
19832
- object.type = message.type;
19833
- if (message.path != null && message.hasOwnProperty("path"))
19834
- object.path = message.path;
19835
- if (message.src != null && message.hasOwnProperty("src"))
19836
- object.src = $root.common.StringValue.toObject(message.src, options);
19837
- if (message.newVersion != null && message.hasOwnProperty("newVersion"))
19838
- object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
19839
- if (message.name != null && message.hasOwnProperty("name"))
19840
- object.name = $root.common.StringValue.toObject(message.name, options);
19841
- if (message.oldName != null && message.hasOwnProperty("oldName"))
19842
- object.oldName = $root.common.StringValue.toObject(message.oldName, options);
19843
- if (message.newName != null && message.hasOwnProperty("newName"))
19844
- object.newName = $root.common.StringValue.toObject(message.newName, options);
19845
- if (message.entry != null && message.hasOwnProperty("entry"))
19846
- object.entry = $root.fs.ListingEntryMsg.toObject(message.entry, options);
19847
- if (message.moveLabel != null && message.hasOwnProperty("moveLabel"))
19848
- object.moveLabel = $root.common.UInt64Value.toObject(message.moveLabel, options);
19849
- if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
19850
- object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
19851
- if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
19852
- object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
20058
+ if (message.fs != null && message.hasOwnProperty("fs"))
20059
+ object.fs = $root.fs.FS.toObject(message.fs, options);
20060
+ if (message.file != null && message.hasOwnProperty("file"))
20061
+ object.file = $root.file.File.toObject(message.file, options);
19853
20062
  return object;
19854
20063
  };
19855
20064
 
19856
20065
  /**
19857
- * Converts this FSEventMsg to JSON.
20066
+ * Converts this SymLinkTargetReplyBody to JSON.
19858
20067
  * @function toJSON
19859
- * @memberof fs.FSEventMsg
20068
+ * @memberof fs.SymLinkTargetReplyBody
19860
20069
  * @instance
19861
20070
  * @returns {Object.<string,*>} JSON object
19862
20071
  */
19863
- FSEventMsg.prototype.toJSON = function toJSON() {
20072
+ SymLinkTargetReplyBody.prototype.toJSON = function toJSON() {
19864
20073
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19865
20074
  };
19866
20075
 
19867
20076
  /**
19868
- * Gets the default type url for FSEventMsg
20077
+ * Gets the default type url for SymLinkTargetReplyBody
19869
20078
  * @function getTypeUrl
19870
- * @memberof fs.FSEventMsg
20079
+ * @memberof fs.SymLinkTargetReplyBody
19871
20080
  * @static
19872
20081
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19873
20082
  * @returns {string} The default type url
19874
20083
  */
19875
- FSEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20084
+ SymLinkTargetReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19876
20085
  if (typeUrlPrefix === undefined) {
19877
20086
  typeUrlPrefix = "type.googleapis.com";
19878
20087
  }
19879
- return typeUrlPrefix + "/fs.FSEventMsg";
20088
+ return typeUrlPrefix + "/fs.SymLinkTargetReplyBody";
19880
20089
  };
19881
20090
 
19882
- return FSEventMsg;
20091
+ return SymLinkTargetReplyBody;
19883
20092
  })();
19884
20093
 
19885
20094
  fs.WatchTreeRequestBody = (function() {
@@ -32683,216 +32892,6 @@ $root.fs = (function() {
32683
32892
  return FSSyncUploadRequestBody;
32684
32893
  })();
32685
32894
 
32686
- fs.FSSyncUploadReplyBody = (function() {
32687
-
32688
- /**
32689
- * Properties of a FSSyncUploadReplyBody.
32690
- * @memberof fs
32691
- * @interface IFSSyncUploadReplyBody
32692
- * @property {common.IUInt64Value|null} [uploadedVersion] FSSyncUploadReplyBody uploadedVersion
32693
- */
32694
-
32695
- /**
32696
- * Constructs a new FSSyncUploadReplyBody.
32697
- * @memberof fs
32698
- * @classdesc Represents a FSSyncUploadReplyBody.
32699
- * @implements IFSSyncUploadReplyBody
32700
- * @constructor
32701
- * @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
32702
- */
32703
- function FSSyncUploadReplyBody(properties) {
32704
- if (properties)
32705
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
32706
- if (properties[keys[i]] != null)
32707
- this[keys[i]] = properties[keys[i]];
32708
- }
32709
-
32710
- /**
32711
- * FSSyncUploadReplyBody uploadedVersion.
32712
- * @member {common.IUInt64Value|null|undefined} uploadedVersion
32713
- * @memberof fs.FSSyncUploadReplyBody
32714
- * @instance
32715
- */
32716
- FSSyncUploadReplyBody.prototype.uploadedVersion = null;
32717
-
32718
- /**
32719
- * Creates a new FSSyncUploadReplyBody instance using the specified properties.
32720
- * @function create
32721
- * @memberof fs.FSSyncUploadReplyBody
32722
- * @static
32723
- * @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
32724
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody instance
32725
- */
32726
- FSSyncUploadReplyBody.create = function create(properties) {
32727
- return new FSSyncUploadReplyBody(properties);
32728
- };
32729
-
32730
- /**
32731
- * Encodes the specified FSSyncUploadReplyBody message. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
32732
- * @function encode
32733
- * @memberof fs.FSSyncUploadReplyBody
32734
- * @static
32735
- * @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
32736
- * @param {$protobuf.Writer} [writer] Writer to encode to
32737
- * @returns {$protobuf.Writer} Writer
32738
- */
32739
- FSSyncUploadReplyBody.encode = function encode(message, writer) {
32740
- if (!writer)
32741
- writer = $Writer.create();
32742
- if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
32743
- $root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
32744
- return writer;
32745
- };
32746
-
32747
- /**
32748
- * Encodes the specified FSSyncUploadReplyBody message, length delimited. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
32749
- * @function encodeDelimited
32750
- * @memberof fs.FSSyncUploadReplyBody
32751
- * @static
32752
- * @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
32753
- * @param {$protobuf.Writer} [writer] Writer to encode to
32754
- * @returns {$protobuf.Writer} Writer
32755
- */
32756
- FSSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
32757
- return this.encode(message, writer).ldelim();
32758
- };
32759
-
32760
- /**
32761
- * Decodes a FSSyncUploadReplyBody message from the specified reader or buffer.
32762
- * @function decode
32763
- * @memberof fs.FSSyncUploadReplyBody
32764
- * @static
32765
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
32766
- * @param {number} [length] Message length if known beforehand
32767
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
32768
- * @throws {Error} If the payload is not a reader or valid buffer
32769
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
32770
- */
32771
- FSSyncUploadReplyBody.decode = function decode(reader, length, error) {
32772
- if (!(reader instanceof $Reader))
32773
- reader = $Reader.create(reader);
32774
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncUploadReplyBody();
32775
- while (reader.pos < end) {
32776
- var tag = reader.uint32();
32777
- if (tag === error)
32778
- break;
32779
- switch (tag >>> 3) {
32780
- case 1: {
32781
- message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
32782
- break;
32783
- }
32784
- default:
32785
- reader.skipType(tag & 7);
32786
- break;
32787
- }
32788
- }
32789
- return message;
32790
- };
32791
-
32792
- /**
32793
- * Decodes a FSSyncUploadReplyBody message from the specified reader or buffer, length delimited.
32794
- * @function decodeDelimited
32795
- * @memberof fs.FSSyncUploadReplyBody
32796
- * @static
32797
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
32798
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
32799
- * @throws {Error} If the payload is not a reader or valid buffer
32800
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
32801
- */
32802
- FSSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
32803
- if (!(reader instanceof $Reader))
32804
- reader = new $Reader(reader);
32805
- return this.decode(reader, reader.uint32());
32806
- };
32807
-
32808
- /**
32809
- * Verifies a FSSyncUploadReplyBody message.
32810
- * @function verify
32811
- * @memberof fs.FSSyncUploadReplyBody
32812
- * @static
32813
- * @param {Object.<string,*>} message Plain object to verify
32814
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
32815
- */
32816
- FSSyncUploadReplyBody.verify = function verify(message) {
32817
- if (typeof message !== "object" || message === null)
32818
- return "object expected";
32819
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
32820
- var error = $root.common.UInt64Value.verify(message.uploadedVersion);
32821
- if (error)
32822
- return "uploadedVersion." + error;
32823
- }
32824
- return null;
32825
- };
32826
-
32827
- /**
32828
- * Creates a FSSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
32829
- * @function fromObject
32830
- * @memberof fs.FSSyncUploadReplyBody
32831
- * @static
32832
- * @param {Object.<string,*>} object Plain object
32833
- * @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
32834
- */
32835
- FSSyncUploadReplyBody.fromObject = function fromObject(object) {
32836
- if (object instanceof $root.fs.FSSyncUploadReplyBody)
32837
- return object;
32838
- var message = new $root.fs.FSSyncUploadReplyBody();
32839
- if (object.uploadedVersion != null) {
32840
- if (typeof object.uploadedVersion !== "object")
32841
- throw TypeError(".fs.FSSyncUploadReplyBody.uploadedVersion: object expected");
32842
- message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
32843
- }
32844
- return message;
32845
- };
32846
-
32847
- /**
32848
- * Creates a plain object from a FSSyncUploadReplyBody message. Also converts values to other types if specified.
32849
- * @function toObject
32850
- * @memberof fs.FSSyncUploadReplyBody
32851
- * @static
32852
- * @param {fs.FSSyncUploadReplyBody} message FSSyncUploadReplyBody
32853
- * @param {$protobuf.IConversionOptions} [options] Conversion options
32854
- * @returns {Object.<string,*>} Plain object
32855
- */
32856
- FSSyncUploadReplyBody.toObject = function toObject(message, options) {
32857
- if (!options)
32858
- options = {};
32859
- var object = {};
32860
- if (options.defaults)
32861
- object.uploadedVersion = null;
32862
- if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
32863
- object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
32864
- return object;
32865
- };
32866
-
32867
- /**
32868
- * Converts this FSSyncUploadReplyBody to JSON.
32869
- * @function toJSON
32870
- * @memberof fs.FSSyncUploadReplyBody
32871
- * @instance
32872
- * @returns {Object.<string,*>} JSON object
32873
- */
32874
- FSSyncUploadReplyBody.prototype.toJSON = function toJSON() {
32875
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
32876
- };
32877
-
32878
- /**
32879
- * Gets the default type url for FSSyncUploadReplyBody
32880
- * @function getTypeUrl
32881
- * @memberof fs.FSSyncUploadReplyBody
32882
- * @static
32883
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32884
- * @returns {string} The default type url
32885
- */
32886
- FSSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
32887
- if (typeUrlPrefix === undefined) {
32888
- typeUrlPrefix = "type.googleapis.com";
32889
- }
32890
- return typeUrlPrefix + "/fs.FSSyncUploadReplyBody";
32891
- };
32892
-
32893
- return FSSyncUploadReplyBody;
32894
- })();
32895
-
32896
32895
  fs.AdoptRemoteFolderItemRequestBody = (function() {
32897
32896
 
32898
32897
  /**