core-3nweb-client-lib 0.43.9 → 0.43.12

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 (58) hide show
  1. package/build/api-defs/files.d.ts +32 -8
  2. package/build/api-defs/web3n.d.ts +2 -0
  3. package/build/core/asmail/inbox/index.js +1 -1
  4. package/build/core/asmail/inbox/msg-downloader.d.ts +2 -12
  5. package/build/core/asmail/inbox/msg-downloader.js +13 -46
  6. package/build/core/storage/synced/downloader.d.ts +6 -15
  7. package/build/core/storage/synced/downloader.js +25 -48
  8. package/build/core/storage/synced/obj-files.d.ts +4 -2
  9. package/build/core/storage/synced/obj-files.js +7 -7
  10. package/build/core/storage/synced/storage.d.ts +4 -2
  11. package/build/core/storage/synced/storage.js +2 -2
  12. package/build/core/storage/synced/upsyncer.d.ts +2 -4
  13. package/build/core/storage/synced/upsyncer.js +19 -13
  14. package/build/core-ipc/file.d.ts +10 -0
  15. package/build/core-ipc/file.js +23 -13
  16. package/build/core-ipc/fs.js +15 -8
  17. package/build/lib-client/3nstorage/storage-owner.js +36 -29
  18. package/build/lib-client/3nweb-signup.js +7 -7
  19. package/build/lib-client/asmail/recipient.js +14 -11
  20. package/build/lib-client/asmail/sender.js +24 -25
  21. package/build/lib-client/asmail/service-config.js +3 -6
  22. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  23. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  24. package/build/lib-client/fs-utils/files.js +4 -4
  25. package/build/lib-client/mailer-id/login.js +7 -7
  26. package/build/lib-client/mailer-id/provisioner.js +9 -7
  27. package/build/lib-client/objs-on-disk/file-writing-proc.d.ts +1 -1
  28. package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +51 -3
  29. package/build/lib-client/objs-on-disk/obj-on-disk.js +414 -34
  30. package/build/lib-client/request-utils.d.ts +0 -7
  31. package/build/lib-client/request-utils.js +16 -11
  32. package/build/lib-client/service-locator.js +11 -8
  33. package/build/lib-client/user-with-mid-session.js +2 -6
  34. package/build/lib-client/user-with-pkl-session.js +25 -24
  35. package/build/lib-client/xsp-fs/common.d.ts +8 -3
  36. package/build/lib-client/xsp-fs/common.js +1 -1
  37. package/build/lib-client/xsp-fs/file.d.ts +3 -1
  38. package/build/lib-client/xsp-fs/file.js +4 -4
  39. package/build/lib-client/xsp-fs/folder-node.d.ts +1 -1
  40. package/build/lib-client/xsp-fs/folder-node.js +4 -4
  41. package/build/lib-client/xsp-fs/fs.d.ts +3 -1
  42. package/build/lib-client/xsp-fs/fs.js +4 -4
  43. package/build/lib-client/xsp-fs/node-in-fs.d.ts +6 -4
  44. package/build/lib-client/xsp-fs/node-in-fs.js +14 -9
  45. package/build/lib-common/buffer-utils.js +4 -1
  46. package/build/lib-common/exceptions/http.d.ts +11 -1
  47. package/build/lib-common/exceptions/http.js +10 -2
  48. package/build/lib-common/objs-on-disk/utils.d.ts +1 -1
  49. package/build/lib-common/processes/labelled-exec-pools.d.ts +1 -1
  50. package/build/lib-common/processes/labelled-exec-pools.js +8 -2
  51. package/build/protos/asmail.proto.js +545 -116
  52. package/build/protos/file.proto.js +485 -56
  53. package/build/protos/fs.proto.js +545 -116
  54. package/package.json +1 -1
  55. package/protos/file.proto +8 -2
  56. package/protos/fs.proto +3 -3
  57. /package/build/lib-common/objs-on-disk/{obj-file.d.ts → obj-version-file.d.ts} +0 -0
  58. /package/build/lib-common/objs-on-disk/{obj-file.js → obj-version-file.js} +0 -0
@@ -16226,24 +16226,24 @@ $root.file = (function() {
16226
16226
  return FileSyncIsOnDiskReplyBody;
16227
16227
  })();
16228
16228
 
16229
- file.FileSyncDownloadRequestBody = (function() {
16229
+ file.FileSyncStartDownloadRequestBody = (function() {
16230
16230
 
16231
16231
  /**
16232
- * Properties of a FileSyncDownloadRequestBody.
16232
+ * Properties of a FileSyncStartDownloadRequestBody.
16233
16233
  * @memberof file
16234
- * @interface IFileSyncDownloadRequestBody
16235
- * @property {number|Long|null} [version] FileSyncDownloadRequestBody version
16234
+ * @interface IFileSyncStartDownloadRequestBody
16235
+ * @property {number|Long|null} [version] FileSyncStartDownloadRequestBody version
16236
16236
  */
16237
16237
 
16238
16238
  /**
16239
- * Constructs a new FileSyncDownloadRequestBody.
16239
+ * Constructs a new FileSyncStartDownloadRequestBody.
16240
16240
  * @memberof file
16241
- * @classdesc Represents a FileSyncDownloadRequestBody.
16242
- * @implements IFileSyncDownloadRequestBody
16241
+ * @classdesc Represents a FileSyncStartDownloadRequestBody.
16242
+ * @implements IFileSyncStartDownloadRequestBody
16243
16243
  * @constructor
16244
- * @param {file.IFileSyncDownloadRequestBody=} [properties] Properties to set
16244
+ * @param {file.IFileSyncStartDownloadRequestBody=} [properties] Properties to set
16245
16245
  */
16246
- function FileSyncDownloadRequestBody(properties) {
16246
+ function FileSyncStartDownloadRequestBody(properties) {
16247
16247
  if (properties)
16248
16248
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16249
16249
  if (properties[keys[i]] != null)
@@ -16251,35 +16251,35 @@ $root.file = (function() {
16251
16251
  }
16252
16252
 
16253
16253
  /**
16254
- * FileSyncDownloadRequestBody version.
16254
+ * FileSyncStartDownloadRequestBody version.
16255
16255
  * @member {number|Long} version
16256
- * @memberof file.FileSyncDownloadRequestBody
16256
+ * @memberof file.FileSyncStartDownloadRequestBody
16257
16257
  * @instance
16258
16258
  */
16259
- FileSyncDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16259
+ FileSyncStartDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16260
16260
 
16261
16261
  /**
16262
- * Creates a new FileSyncDownloadRequestBody instance using the specified properties.
16262
+ * Creates a new FileSyncStartDownloadRequestBody instance using the specified properties.
16263
16263
  * @function create
16264
- * @memberof file.FileSyncDownloadRequestBody
16264
+ * @memberof file.FileSyncStartDownloadRequestBody
16265
16265
  * @static
16266
- * @param {file.IFileSyncDownloadRequestBody=} [properties] Properties to set
16267
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody instance
16266
+ * @param {file.IFileSyncStartDownloadRequestBody=} [properties] Properties to set
16267
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody instance
16268
16268
  */
16269
- FileSyncDownloadRequestBody.create = function create(properties) {
16270
- return new FileSyncDownloadRequestBody(properties);
16269
+ FileSyncStartDownloadRequestBody.create = function create(properties) {
16270
+ return new FileSyncStartDownloadRequestBody(properties);
16271
16271
  };
16272
16272
 
16273
16273
  /**
16274
- * Encodes the specified FileSyncDownloadRequestBody message. Does not implicitly {@link file.FileSyncDownloadRequestBody.verify|verify} messages.
16274
+ * Encodes the specified FileSyncStartDownloadRequestBody message. Does not implicitly {@link file.FileSyncStartDownloadRequestBody.verify|verify} messages.
16275
16275
  * @function encode
16276
- * @memberof file.FileSyncDownloadRequestBody
16276
+ * @memberof file.FileSyncStartDownloadRequestBody
16277
16277
  * @static
16278
- * @param {file.IFileSyncDownloadRequestBody} message FileSyncDownloadRequestBody message or plain object to encode
16278
+ * @param {file.IFileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody message or plain object to encode
16279
16279
  * @param {$protobuf.Writer} [writer] Writer to encode to
16280
16280
  * @returns {$protobuf.Writer} Writer
16281
16281
  */
16282
- FileSyncDownloadRequestBody.encode = function encode(message, writer) {
16282
+ FileSyncStartDownloadRequestBody.encode = function encode(message, writer) {
16283
16283
  if (!writer)
16284
16284
  writer = $Writer.create();
16285
16285
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
@@ -16288,33 +16288,33 @@ $root.file = (function() {
16288
16288
  };
16289
16289
 
16290
16290
  /**
16291
- * Encodes the specified FileSyncDownloadRequestBody message, length delimited. Does not implicitly {@link file.FileSyncDownloadRequestBody.verify|verify} messages.
16291
+ * Encodes the specified FileSyncStartDownloadRequestBody message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadRequestBody.verify|verify} messages.
16292
16292
  * @function encodeDelimited
16293
- * @memberof file.FileSyncDownloadRequestBody
16293
+ * @memberof file.FileSyncStartDownloadRequestBody
16294
16294
  * @static
16295
- * @param {file.IFileSyncDownloadRequestBody} message FileSyncDownloadRequestBody message or plain object to encode
16295
+ * @param {file.IFileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody message or plain object to encode
16296
16296
  * @param {$protobuf.Writer} [writer] Writer to encode to
16297
16297
  * @returns {$protobuf.Writer} Writer
16298
16298
  */
16299
- FileSyncDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
16299
+ FileSyncStartDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
16300
16300
  return this.encode(message, writer).ldelim();
16301
16301
  };
16302
16302
 
16303
16303
  /**
16304
- * Decodes a FileSyncDownloadRequestBody message from the specified reader or buffer.
16304
+ * Decodes a FileSyncStartDownloadRequestBody message from the specified reader or buffer.
16305
16305
  * @function decode
16306
- * @memberof file.FileSyncDownloadRequestBody
16306
+ * @memberof file.FileSyncStartDownloadRequestBody
16307
16307
  * @static
16308
16308
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16309
16309
  * @param {number} [length] Message length if known beforehand
16310
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
16310
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
16311
16311
  * @throws {Error} If the payload is not a reader or valid buffer
16312
16312
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16313
16313
  */
16314
- FileSyncDownloadRequestBody.decode = function decode(reader, length, error) {
16314
+ FileSyncStartDownloadRequestBody.decode = function decode(reader, length, error) {
16315
16315
  if (!(reader instanceof $Reader))
16316
16316
  reader = $Reader.create(reader);
16317
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncDownloadRequestBody();
16317
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadRequestBody();
16318
16318
  while (reader.pos < end) {
16319
16319
  var tag = reader.uint32();
16320
16320
  if (tag === error)
@@ -16333,30 +16333,30 @@ $root.file = (function() {
16333
16333
  };
16334
16334
 
16335
16335
  /**
16336
- * Decodes a FileSyncDownloadRequestBody message from the specified reader or buffer, length delimited.
16336
+ * Decodes a FileSyncStartDownloadRequestBody message from the specified reader or buffer, length delimited.
16337
16337
  * @function decodeDelimited
16338
- * @memberof file.FileSyncDownloadRequestBody
16338
+ * @memberof file.FileSyncStartDownloadRequestBody
16339
16339
  * @static
16340
16340
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16341
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
16341
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
16342
16342
  * @throws {Error} If the payload is not a reader or valid buffer
16343
16343
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
16344
16344
  */
16345
- FileSyncDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
16345
+ FileSyncStartDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
16346
16346
  if (!(reader instanceof $Reader))
16347
16347
  reader = new $Reader(reader);
16348
16348
  return this.decode(reader, reader.uint32());
16349
16349
  };
16350
16350
 
16351
16351
  /**
16352
- * Verifies a FileSyncDownloadRequestBody message.
16352
+ * Verifies a FileSyncStartDownloadRequestBody message.
16353
16353
  * @function verify
16354
- * @memberof file.FileSyncDownloadRequestBody
16354
+ * @memberof file.FileSyncStartDownloadRequestBody
16355
16355
  * @static
16356
16356
  * @param {Object.<string,*>} message Plain object to verify
16357
16357
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
16358
16358
  */
16359
- FileSyncDownloadRequestBody.verify = function verify(message) {
16359
+ FileSyncStartDownloadRequestBody.verify = function verify(message) {
16360
16360
  if (typeof message !== "object" || message === null)
16361
16361
  return "object expected";
16362
16362
  if (message.version != null && message.hasOwnProperty("version"))
@@ -16366,17 +16366,17 @@ $root.file = (function() {
16366
16366
  };
16367
16367
 
16368
16368
  /**
16369
- * Creates a FileSyncDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
16369
+ * Creates a FileSyncStartDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
16370
16370
  * @function fromObject
16371
- * @memberof file.FileSyncDownloadRequestBody
16371
+ * @memberof file.FileSyncStartDownloadRequestBody
16372
16372
  * @static
16373
16373
  * @param {Object.<string,*>} object Plain object
16374
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
16374
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
16375
16375
  */
16376
- FileSyncDownloadRequestBody.fromObject = function fromObject(object) {
16377
- if (object instanceof $root.file.FileSyncDownloadRequestBody)
16376
+ FileSyncStartDownloadRequestBody.fromObject = function fromObject(object) {
16377
+ if (object instanceof $root.file.FileSyncStartDownloadRequestBody)
16378
16378
  return object;
16379
- var message = new $root.file.FileSyncDownloadRequestBody();
16379
+ var message = new $root.file.FileSyncStartDownloadRequestBody();
16380
16380
  if (object.version != null)
16381
16381
  if ($util.Long)
16382
16382
  (message.version = $util.Long.fromValue(object.version)).unsigned = true;
@@ -16390,15 +16390,15 @@ $root.file = (function() {
16390
16390
  };
16391
16391
 
16392
16392
  /**
16393
- * Creates a plain object from a FileSyncDownloadRequestBody message. Also converts values to other types if specified.
16393
+ * Creates a plain object from a FileSyncStartDownloadRequestBody message. Also converts values to other types if specified.
16394
16394
  * @function toObject
16395
- * @memberof file.FileSyncDownloadRequestBody
16395
+ * @memberof file.FileSyncStartDownloadRequestBody
16396
16396
  * @static
16397
- * @param {file.FileSyncDownloadRequestBody} message FileSyncDownloadRequestBody
16397
+ * @param {file.FileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody
16398
16398
  * @param {$protobuf.IConversionOptions} [options] Conversion options
16399
16399
  * @returns {Object.<string,*>} Plain object
16400
16400
  */
16401
- FileSyncDownloadRequestBody.toObject = function toObject(message, options) {
16401
+ FileSyncStartDownloadRequestBody.toObject = function toObject(message, options) {
16402
16402
  if (!options)
16403
16403
  options = {};
16404
16404
  var object = {};
@@ -16417,32 +16417,461 @@ $root.file = (function() {
16417
16417
  };
16418
16418
 
16419
16419
  /**
16420
- * Converts this FileSyncDownloadRequestBody to JSON.
16420
+ * Converts this FileSyncStartDownloadRequestBody to JSON.
16421
16421
  * @function toJSON
16422
- * @memberof file.FileSyncDownloadRequestBody
16422
+ * @memberof file.FileSyncStartDownloadRequestBody
16423
16423
  * @instance
16424
16424
  * @returns {Object.<string,*>} JSON object
16425
16425
  */
16426
- FileSyncDownloadRequestBody.prototype.toJSON = function toJSON() {
16426
+ FileSyncStartDownloadRequestBody.prototype.toJSON = function toJSON() {
16427
16427
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16428
16428
  };
16429
16429
 
16430
16430
  /**
16431
- * Gets the default type url for FileSyncDownloadRequestBody
16431
+ * Gets the default type url for FileSyncStartDownloadRequestBody
16432
16432
  * @function getTypeUrl
16433
- * @memberof file.FileSyncDownloadRequestBody
16433
+ * @memberof file.FileSyncStartDownloadRequestBody
16434
16434
  * @static
16435
16435
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16436
16436
  * @returns {string} The default type url
16437
16437
  */
16438
- FileSyncDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16438
+ FileSyncStartDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16439
16439
  if (typeUrlPrefix === undefined) {
16440
16440
  typeUrlPrefix = "type.googleapis.com";
16441
16441
  }
16442
- return typeUrlPrefix + "/file.FileSyncDownloadRequestBody";
16442
+ return typeUrlPrefix + "/file.FileSyncStartDownloadRequestBody";
16443
16443
  };
16444
16444
 
16445
- return FileSyncDownloadRequestBody;
16445
+ return FileSyncStartDownloadRequestBody;
16446
+ })();
16447
+
16448
+ file.FileSyncStartDownloadReplyBody = (function() {
16449
+
16450
+ /**
16451
+ * Properties of a FileSyncStartDownloadReplyBody.
16452
+ * @memberof file
16453
+ * @interface IFileSyncStartDownloadReplyBody
16454
+ * @property {file.FileSyncStartDownloadReplyBody.IDownloadInfo|null} [startedDownload] FileSyncStartDownloadReplyBody startedDownload
16455
+ */
16456
+
16457
+ /**
16458
+ * Constructs a new FileSyncStartDownloadReplyBody.
16459
+ * @memberof file
16460
+ * @classdesc Represents a FileSyncStartDownloadReplyBody.
16461
+ * @implements IFileSyncStartDownloadReplyBody
16462
+ * @constructor
16463
+ * @param {file.IFileSyncStartDownloadReplyBody=} [properties] Properties to set
16464
+ */
16465
+ function FileSyncStartDownloadReplyBody(properties) {
16466
+ if (properties)
16467
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16468
+ if (properties[keys[i]] != null)
16469
+ this[keys[i]] = properties[keys[i]];
16470
+ }
16471
+
16472
+ /**
16473
+ * FileSyncStartDownloadReplyBody startedDownload.
16474
+ * @member {file.FileSyncStartDownloadReplyBody.IDownloadInfo|null|undefined} startedDownload
16475
+ * @memberof file.FileSyncStartDownloadReplyBody
16476
+ * @instance
16477
+ */
16478
+ FileSyncStartDownloadReplyBody.prototype.startedDownload = null;
16479
+
16480
+ /**
16481
+ * Creates a new FileSyncStartDownloadReplyBody instance using the specified properties.
16482
+ * @function create
16483
+ * @memberof file.FileSyncStartDownloadReplyBody
16484
+ * @static
16485
+ * @param {file.IFileSyncStartDownloadReplyBody=} [properties] Properties to set
16486
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody instance
16487
+ */
16488
+ FileSyncStartDownloadReplyBody.create = function create(properties) {
16489
+ return new FileSyncStartDownloadReplyBody(properties);
16490
+ };
16491
+
16492
+ /**
16493
+ * Encodes the specified FileSyncStartDownloadReplyBody message. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.verify|verify} messages.
16494
+ * @function encode
16495
+ * @memberof file.FileSyncStartDownloadReplyBody
16496
+ * @static
16497
+ * @param {file.IFileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody message or plain object to encode
16498
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16499
+ * @returns {$protobuf.Writer} Writer
16500
+ */
16501
+ FileSyncStartDownloadReplyBody.encode = function encode(message, writer) {
16502
+ if (!writer)
16503
+ writer = $Writer.create();
16504
+ if (message.startedDownload != null && Object.hasOwnProperty.call(message, "startedDownload"))
16505
+ $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.encode(message.startedDownload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
16506
+ return writer;
16507
+ };
16508
+
16509
+ /**
16510
+ * Encodes the specified FileSyncStartDownloadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.verify|verify} messages.
16511
+ * @function encodeDelimited
16512
+ * @memberof file.FileSyncStartDownloadReplyBody
16513
+ * @static
16514
+ * @param {file.IFileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody message or plain object to encode
16515
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16516
+ * @returns {$protobuf.Writer} Writer
16517
+ */
16518
+ FileSyncStartDownloadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
16519
+ return this.encode(message, writer).ldelim();
16520
+ };
16521
+
16522
+ /**
16523
+ * Decodes a FileSyncStartDownloadReplyBody message from the specified reader or buffer.
16524
+ * @function decode
16525
+ * @memberof file.FileSyncStartDownloadReplyBody
16526
+ * @static
16527
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16528
+ * @param {number} [length] Message length if known beforehand
16529
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
16530
+ * @throws {Error} If the payload is not a reader or valid buffer
16531
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16532
+ */
16533
+ FileSyncStartDownloadReplyBody.decode = function decode(reader, length, error) {
16534
+ if (!(reader instanceof $Reader))
16535
+ reader = $Reader.create(reader);
16536
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadReplyBody();
16537
+ while (reader.pos < end) {
16538
+ var tag = reader.uint32();
16539
+ if (tag === error)
16540
+ break;
16541
+ switch (tag >>> 3) {
16542
+ case 1: {
16543
+ message.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.decode(reader, reader.uint32());
16544
+ break;
16545
+ }
16546
+ default:
16547
+ reader.skipType(tag & 7);
16548
+ break;
16549
+ }
16550
+ }
16551
+ return message;
16552
+ };
16553
+
16554
+ /**
16555
+ * Decodes a FileSyncStartDownloadReplyBody message from the specified reader or buffer, length delimited.
16556
+ * @function decodeDelimited
16557
+ * @memberof file.FileSyncStartDownloadReplyBody
16558
+ * @static
16559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16560
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
16561
+ * @throws {Error} If the payload is not a reader or valid buffer
16562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16563
+ */
16564
+ FileSyncStartDownloadReplyBody.decodeDelimited = function decodeDelimited(reader) {
16565
+ if (!(reader instanceof $Reader))
16566
+ reader = new $Reader(reader);
16567
+ return this.decode(reader, reader.uint32());
16568
+ };
16569
+
16570
+ /**
16571
+ * Verifies a FileSyncStartDownloadReplyBody message.
16572
+ * @function verify
16573
+ * @memberof file.FileSyncStartDownloadReplyBody
16574
+ * @static
16575
+ * @param {Object.<string,*>} message Plain object to verify
16576
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16577
+ */
16578
+ FileSyncStartDownloadReplyBody.verify = function verify(message) {
16579
+ if (typeof message !== "object" || message === null)
16580
+ return "object expected";
16581
+ if (message.startedDownload != null && message.hasOwnProperty("startedDownload")) {
16582
+ var error = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.verify(message.startedDownload);
16583
+ if (error)
16584
+ return "startedDownload." + error;
16585
+ }
16586
+ return null;
16587
+ };
16588
+
16589
+ /**
16590
+ * Creates a FileSyncStartDownloadReplyBody message from a plain object. Also converts values to their respective internal types.
16591
+ * @function fromObject
16592
+ * @memberof file.FileSyncStartDownloadReplyBody
16593
+ * @static
16594
+ * @param {Object.<string,*>} object Plain object
16595
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
16596
+ */
16597
+ FileSyncStartDownloadReplyBody.fromObject = function fromObject(object) {
16598
+ if (object instanceof $root.file.FileSyncStartDownloadReplyBody)
16599
+ return object;
16600
+ var message = new $root.file.FileSyncStartDownloadReplyBody();
16601
+ if (object.startedDownload != null) {
16602
+ if (typeof object.startedDownload !== "object")
16603
+ throw TypeError(".file.FileSyncStartDownloadReplyBody.startedDownload: object expected");
16604
+ message.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.fromObject(object.startedDownload);
16605
+ }
16606
+ return message;
16607
+ };
16608
+
16609
+ /**
16610
+ * Creates a plain object from a FileSyncStartDownloadReplyBody message. Also converts values to other types if specified.
16611
+ * @function toObject
16612
+ * @memberof file.FileSyncStartDownloadReplyBody
16613
+ * @static
16614
+ * @param {file.FileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody
16615
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16616
+ * @returns {Object.<string,*>} Plain object
16617
+ */
16618
+ FileSyncStartDownloadReplyBody.toObject = function toObject(message, options) {
16619
+ if (!options)
16620
+ options = {};
16621
+ var object = {};
16622
+ if (options.defaults)
16623
+ object.startedDownload = null;
16624
+ if (message.startedDownload != null && message.hasOwnProperty("startedDownload"))
16625
+ object.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.toObject(message.startedDownload, options);
16626
+ return object;
16627
+ };
16628
+
16629
+ /**
16630
+ * Converts this FileSyncStartDownloadReplyBody to JSON.
16631
+ * @function toJSON
16632
+ * @memberof file.FileSyncStartDownloadReplyBody
16633
+ * @instance
16634
+ * @returns {Object.<string,*>} JSON object
16635
+ */
16636
+ FileSyncStartDownloadReplyBody.prototype.toJSON = function toJSON() {
16637
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16638
+ };
16639
+
16640
+ /**
16641
+ * Gets the default type url for FileSyncStartDownloadReplyBody
16642
+ * @function getTypeUrl
16643
+ * @memberof file.FileSyncStartDownloadReplyBody
16644
+ * @static
16645
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16646
+ * @returns {string} The default type url
16647
+ */
16648
+ FileSyncStartDownloadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16649
+ if (typeUrlPrefix === undefined) {
16650
+ typeUrlPrefix = "type.googleapis.com";
16651
+ }
16652
+ return typeUrlPrefix + "/file.FileSyncStartDownloadReplyBody";
16653
+ };
16654
+
16655
+ FileSyncStartDownloadReplyBody.DownloadInfo = (function() {
16656
+
16657
+ /**
16658
+ * Properties of a DownloadInfo.
16659
+ * @memberof file.FileSyncStartDownloadReplyBody
16660
+ * @interface IDownloadInfo
16661
+ * @property {number|Long|null} [downloadTaskId] DownloadInfo downloadTaskId
16662
+ */
16663
+
16664
+ /**
16665
+ * Constructs a new DownloadInfo.
16666
+ * @memberof file.FileSyncStartDownloadReplyBody
16667
+ * @classdesc Represents a DownloadInfo.
16668
+ * @implements IDownloadInfo
16669
+ * @constructor
16670
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo=} [properties] Properties to set
16671
+ */
16672
+ function DownloadInfo(properties) {
16673
+ if (properties)
16674
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16675
+ if (properties[keys[i]] != null)
16676
+ this[keys[i]] = properties[keys[i]];
16677
+ }
16678
+
16679
+ /**
16680
+ * DownloadInfo downloadTaskId.
16681
+ * @member {number|Long} downloadTaskId
16682
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16683
+ * @instance
16684
+ */
16685
+ DownloadInfo.prototype.downloadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16686
+
16687
+ /**
16688
+ * Creates a new DownloadInfo instance using the specified properties.
16689
+ * @function create
16690
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16691
+ * @static
16692
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo=} [properties] Properties to set
16693
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo instance
16694
+ */
16695
+ DownloadInfo.create = function create(properties) {
16696
+ return new DownloadInfo(properties);
16697
+ };
16698
+
16699
+ /**
16700
+ * Encodes the specified DownloadInfo message. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.DownloadInfo.verify|verify} messages.
16701
+ * @function encode
16702
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16703
+ * @static
16704
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo} message DownloadInfo message or plain object to encode
16705
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16706
+ * @returns {$protobuf.Writer} Writer
16707
+ */
16708
+ DownloadInfo.encode = function encode(message, writer) {
16709
+ if (!writer)
16710
+ writer = $Writer.create();
16711
+ if (message.downloadTaskId != null && Object.hasOwnProperty.call(message, "downloadTaskId"))
16712
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.downloadTaskId);
16713
+ return writer;
16714
+ };
16715
+
16716
+ /**
16717
+ * Encodes the specified DownloadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.DownloadInfo.verify|verify} messages.
16718
+ * @function encodeDelimited
16719
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16720
+ * @static
16721
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo} message DownloadInfo message or plain object to encode
16722
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16723
+ * @returns {$protobuf.Writer} Writer
16724
+ */
16725
+ DownloadInfo.encodeDelimited = function encodeDelimited(message, writer) {
16726
+ return this.encode(message, writer).ldelim();
16727
+ };
16728
+
16729
+ /**
16730
+ * Decodes a DownloadInfo message from the specified reader or buffer.
16731
+ * @function decode
16732
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16733
+ * @static
16734
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16735
+ * @param {number} [length] Message length if known beforehand
16736
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
16737
+ * @throws {Error} If the payload is not a reader or valid buffer
16738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16739
+ */
16740
+ DownloadInfo.decode = function decode(reader, length, error) {
16741
+ if (!(reader instanceof $Reader))
16742
+ reader = $Reader.create(reader);
16743
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadReplyBody.DownloadInfo();
16744
+ while (reader.pos < end) {
16745
+ var tag = reader.uint32();
16746
+ if (tag === error)
16747
+ break;
16748
+ switch (tag >>> 3) {
16749
+ case 2: {
16750
+ message.downloadTaskId = reader.uint64();
16751
+ break;
16752
+ }
16753
+ default:
16754
+ reader.skipType(tag & 7);
16755
+ break;
16756
+ }
16757
+ }
16758
+ return message;
16759
+ };
16760
+
16761
+ /**
16762
+ * Decodes a DownloadInfo message from the specified reader or buffer, length delimited.
16763
+ * @function decodeDelimited
16764
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16765
+ * @static
16766
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16767
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
16768
+ * @throws {Error} If the payload is not a reader or valid buffer
16769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16770
+ */
16771
+ DownloadInfo.decodeDelimited = function decodeDelimited(reader) {
16772
+ if (!(reader instanceof $Reader))
16773
+ reader = new $Reader(reader);
16774
+ return this.decode(reader, reader.uint32());
16775
+ };
16776
+
16777
+ /**
16778
+ * Verifies a DownloadInfo message.
16779
+ * @function verify
16780
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16781
+ * @static
16782
+ * @param {Object.<string,*>} message Plain object to verify
16783
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16784
+ */
16785
+ DownloadInfo.verify = function verify(message) {
16786
+ if (typeof message !== "object" || message === null)
16787
+ return "object expected";
16788
+ if (message.downloadTaskId != null && message.hasOwnProperty("downloadTaskId"))
16789
+ if (!$util.isInteger(message.downloadTaskId) && !(message.downloadTaskId && $util.isInteger(message.downloadTaskId.low) && $util.isInteger(message.downloadTaskId.high)))
16790
+ return "downloadTaskId: integer|Long expected";
16791
+ return null;
16792
+ };
16793
+
16794
+ /**
16795
+ * Creates a DownloadInfo message from a plain object. Also converts values to their respective internal types.
16796
+ * @function fromObject
16797
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16798
+ * @static
16799
+ * @param {Object.<string,*>} object Plain object
16800
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
16801
+ */
16802
+ DownloadInfo.fromObject = function fromObject(object) {
16803
+ if (object instanceof $root.file.FileSyncStartDownloadReplyBody.DownloadInfo)
16804
+ return object;
16805
+ var message = new $root.file.FileSyncStartDownloadReplyBody.DownloadInfo();
16806
+ if (object.downloadTaskId != null)
16807
+ if ($util.Long)
16808
+ (message.downloadTaskId = $util.Long.fromValue(object.downloadTaskId)).unsigned = true;
16809
+ else if (typeof object.downloadTaskId === "string")
16810
+ message.downloadTaskId = parseInt(object.downloadTaskId, 10);
16811
+ else if (typeof object.downloadTaskId === "number")
16812
+ message.downloadTaskId = object.downloadTaskId;
16813
+ else if (typeof object.downloadTaskId === "object")
16814
+ message.downloadTaskId = new $util.LongBits(object.downloadTaskId.low >>> 0, object.downloadTaskId.high >>> 0).toNumber(true);
16815
+ return message;
16816
+ };
16817
+
16818
+ /**
16819
+ * Creates a plain object from a DownloadInfo message. Also converts values to other types if specified.
16820
+ * @function toObject
16821
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16822
+ * @static
16823
+ * @param {file.FileSyncStartDownloadReplyBody.DownloadInfo} message DownloadInfo
16824
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16825
+ * @returns {Object.<string,*>} Plain object
16826
+ */
16827
+ DownloadInfo.toObject = function toObject(message, options) {
16828
+ if (!options)
16829
+ options = {};
16830
+ var object = {};
16831
+ if (options.defaults)
16832
+ if ($util.Long) {
16833
+ var long = new $util.Long(0, 0, true);
16834
+ object.downloadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16835
+ } else
16836
+ object.downloadTaskId = options.longs === String ? "0" : 0;
16837
+ if (message.downloadTaskId != null && message.hasOwnProperty("downloadTaskId"))
16838
+ if (typeof message.downloadTaskId === "number")
16839
+ object.downloadTaskId = options.longs === String ? String(message.downloadTaskId) : message.downloadTaskId;
16840
+ else
16841
+ object.downloadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.downloadTaskId) : options.longs === Number ? new $util.LongBits(message.downloadTaskId.low >>> 0, message.downloadTaskId.high >>> 0).toNumber(true) : message.downloadTaskId;
16842
+ return object;
16843
+ };
16844
+
16845
+ /**
16846
+ * Converts this DownloadInfo to JSON.
16847
+ * @function toJSON
16848
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16849
+ * @instance
16850
+ * @returns {Object.<string,*>} JSON object
16851
+ */
16852
+ DownloadInfo.prototype.toJSON = function toJSON() {
16853
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16854
+ };
16855
+
16856
+ /**
16857
+ * Gets the default type url for DownloadInfo
16858
+ * @function getTypeUrl
16859
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
16860
+ * @static
16861
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16862
+ * @returns {string} The default type url
16863
+ */
16864
+ DownloadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16865
+ if (typeUrlPrefix === undefined) {
16866
+ typeUrlPrefix = "type.googleapis.com";
16867
+ }
16868
+ return typeUrlPrefix + "/file.FileSyncStartDownloadReplyBody.DownloadInfo";
16869
+ };
16870
+
16871
+ return DownloadInfo;
16872
+ })();
16873
+
16874
+ return FileSyncStartDownloadReplyBody;
16446
16875
  })();
16447
16876
 
16448
16877
  file.AdoptRemoteRequestBody = (function() {
@@ -30718,25 +31147,25 @@ $root.fs = (function() {
30718
31147
  return FSSyncIsOnDiskReplyBody;
30719
31148
  })();
30720
31149
 
30721
- fs.FSSyncDownloadRequestBody = (function() {
31150
+ fs.FSSyncStartDownloadRequestBody = (function() {
30722
31151
 
30723
31152
  /**
30724
- * Properties of a FSSyncDownloadRequestBody.
31153
+ * Properties of a FSSyncStartDownloadRequestBody.
30725
31154
  * @memberof fs
30726
- * @interface IFSSyncDownloadRequestBody
30727
- * @property {string|null} [path] FSSyncDownloadRequestBody path
30728
- * @property {number|Long|null} [version] FSSyncDownloadRequestBody version
31155
+ * @interface IFSSyncStartDownloadRequestBody
31156
+ * @property {string|null} [path] FSSyncStartDownloadRequestBody path
31157
+ * @property {number|Long|null} [version] FSSyncStartDownloadRequestBody version
30729
31158
  */
30730
31159
 
30731
31160
  /**
30732
- * Constructs a new FSSyncDownloadRequestBody.
31161
+ * Constructs a new FSSyncStartDownloadRequestBody.
30733
31162
  * @memberof fs
30734
- * @classdesc Represents a FSSyncDownloadRequestBody.
30735
- * @implements IFSSyncDownloadRequestBody
31163
+ * @classdesc Represents a FSSyncStartDownloadRequestBody.
31164
+ * @implements IFSSyncStartDownloadRequestBody
30736
31165
  * @constructor
30737
- * @param {fs.IFSSyncDownloadRequestBody=} [properties] Properties to set
31166
+ * @param {fs.IFSSyncStartDownloadRequestBody=} [properties] Properties to set
30738
31167
  */
30739
- function FSSyncDownloadRequestBody(properties) {
31168
+ function FSSyncStartDownloadRequestBody(properties) {
30740
31169
  if (properties)
30741
31170
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30742
31171
  if (properties[keys[i]] != null)
@@ -30744,43 +31173,43 @@ $root.fs = (function() {
30744
31173
  }
30745
31174
 
30746
31175
  /**
30747
- * FSSyncDownloadRequestBody path.
31176
+ * FSSyncStartDownloadRequestBody path.
30748
31177
  * @member {string} path
30749
- * @memberof fs.FSSyncDownloadRequestBody
31178
+ * @memberof fs.FSSyncStartDownloadRequestBody
30750
31179
  * @instance
30751
31180
  */
30752
- FSSyncDownloadRequestBody.prototype.path = "";
31181
+ FSSyncStartDownloadRequestBody.prototype.path = "";
30753
31182
 
30754
31183
  /**
30755
- * FSSyncDownloadRequestBody version.
31184
+ * FSSyncStartDownloadRequestBody version.
30756
31185
  * @member {number|Long} version
30757
- * @memberof fs.FSSyncDownloadRequestBody
31186
+ * @memberof fs.FSSyncStartDownloadRequestBody
30758
31187
  * @instance
30759
31188
  */
30760
- FSSyncDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
31189
+ FSSyncStartDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
30761
31190
 
30762
31191
  /**
30763
- * Creates a new FSSyncDownloadRequestBody instance using the specified properties.
31192
+ * Creates a new FSSyncStartDownloadRequestBody instance using the specified properties.
30764
31193
  * @function create
30765
- * @memberof fs.FSSyncDownloadRequestBody
31194
+ * @memberof fs.FSSyncStartDownloadRequestBody
30766
31195
  * @static
30767
- * @param {fs.IFSSyncDownloadRequestBody=} [properties] Properties to set
30768
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody instance
31196
+ * @param {fs.IFSSyncStartDownloadRequestBody=} [properties] Properties to set
31197
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody instance
30769
31198
  */
30770
- FSSyncDownloadRequestBody.create = function create(properties) {
30771
- return new FSSyncDownloadRequestBody(properties);
31199
+ FSSyncStartDownloadRequestBody.create = function create(properties) {
31200
+ return new FSSyncStartDownloadRequestBody(properties);
30772
31201
  };
30773
31202
 
30774
31203
  /**
30775
- * Encodes the specified FSSyncDownloadRequestBody message. Does not implicitly {@link fs.FSSyncDownloadRequestBody.verify|verify} messages.
31204
+ * Encodes the specified FSSyncStartDownloadRequestBody message. Does not implicitly {@link fs.FSSyncStartDownloadRequestBody.verify|verify} messages.
30776
31205
  * @function encode
30777
- * @memberof fs.FSSyncDownloadRequestBody
31206
+ * @memberof fs.FSSyncStartDownloadRequestBody
30778
31207
  * @static
30779
- * @param {fs.IFSSyncDownloadRequestBody} message FSSyncDownloadRequestBody message or plain object to encode
31208
+ * @param {fs.IFSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody message or plain object to encode
30780
31209
  * @param {$protobuf.Writer} [writer] Writer to encode to
30781
31210
  * @returns {$protobuf.Writer} Writer
30782
31211
  */
30783
- FSSyncDownloadRequestBody.encode = function encode(message, writer) {
31212
+ FSSyncStartDownloadRequestBody.encode = function encode(message, writer) {
30784
31213
  if (!writer)
30785
31214
  writer = $Writer.create();
30786
31215
  if (message.path != null && Object.hasOwnProperty.call(message, "path"))
@@ -30791,33 +31220,33 @@ $root.fs = (function() {
30791
31220
  };
30792
31221
 
30793
31222
  /**
30794
- * Encodes the specified FSSyncDownloadRequestBody message, length delimited. Does not implicitly {@link fs.FSSyncDownloadRequestBody.verify|verify} messages.
31223
+ * Encodes the specified FSSyncStartDownloadRequestBody message, length delimited. Does not implicitly {@link fs.FSSyncStartDownloadRequestBody.verify|verify} messages.
30795
31224
  * @function encodeDelimited
30796
- * @memberof fs.FSSyncDownloadRequestBody
31225
+ * @memberof fs.FSSyncStartDownloadRequestBody
30797
31226
  * @static
30798
- * @param {fs.IFSSyncDownloadRequestBody} message FSSyncDownloadRequestBody message or plain object to encode
31227
+ * @param {fs.IFSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody message or plain object to encode
30799
31228
  * @param {$protobuf.Writer} [writer] Writer to encode to
30800
31229
  * @returns {$protobuf.Writer} Writer
30801
31230
  */
30802
- FSSyncDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
31231
+ FSSyncStartDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
30803
31232
  return this.encode(message, writer).ldelim();
30804
31233
  };
30805
31234
 
30806
31235
  /**
30807
- * Decodes a FSSyncDownloadRequestBody message from the specified reader or buffer.
31236
+ * Decodes a FSSyncStartDownloadRequestBody message from the specified reader or buffer.
30808
31237
  * @function decode
30809
- * @memberof fs.FSSyncDownloadRequestBody
31238
+ * @memberof fs.FSSyncStartDownloadRequestBody
30810
31239
  * @static
30811
31240
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30812
31241
  * @param {number} [length] Message length if known beforehand
30813
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
31242
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
30814
31243
  * @throws {Error} If the payload is not a reader or valid buffer
30815
31244
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
30816
31245
  */
30817
- FSSyncDownloadRequestBody.decode = function decode(reader, length, error) {
31246
+ FSSyncStartDownloadRequestBody.decode = function decode(reader, length, error) {
30818
31247
  if (!(reader instanceof $Reader))
30819
31248
  reader = $Reader.create(reader);
30820
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncDownloadRequestBody();
31249
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncStartDownloadRequestBody();
30821
31250
  while (reader.pos < end) {
30822
31251
  var tag = reader.uint32();
30823
31252
  if (tag === error)
@@ -30840,30 +31269,30 @@ $root.fs = (function() {
30840
31269
  };
30841
31270
 
30842
31271
  /**
30843
- * Decodes a FSSyncDownloadRequestBody message from the specified reader or buffer, length delimited.
31272
+ * Decodes a FSSyncStartDownloadRequestBody message from the specified reader or buffer, length delimited.
30844
31273
  * @function decodeDelimited
30845
- * @memberof fs.FSSyncDownloadRequestBody
31274
+ * @memberof fs.FSSyncStartDownloadRequestBody
30846
31275
  * @static
30847
31276
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30848
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
31277
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
30849
31278
  * @throws {Error} If the payload is not a reader or valid buffer
30850
31279
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
30851
31280
  */
30852
- FSSyncDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
31281
+ FSSyncStartDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
30853
31282
  if (!(reader instanceof $Reader))
30854
31283
  reader = new $Reader(reader);
30855
31284
  return this.decode(reader, reader.uint32());
30856
31285
  };
30857
31286
 
30858
31287
  /**
30859
- * Verifies a FSSyncDownloadRequestBody message.
31288
+ * Verifies a FSSyncStartDownloadRequestBody message.
30860
31289
  * @function verify
30861
- * @memberof fs.FSSyncDownloadRequestBody
31290
+ * @memberof fs.FSSyncStartDownloadRequestBody
30862
31291
  * @static
30863
31292
  * @param {Object.<string,*>} message Plain object to verify
30864
31293
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
30865
31294
  */
30866
- FSSyncDownloadRequestBody.verify = function verify(message) {
31295
+ FSSyncStartDownloadRequestBody.verify = function verify(message) {
30867
31296
  if (typeof message !== "object" || message === null)
30868
31297
  return "object expected";
30869
31298
  if (message.path != null && message.hasOwnProperty("path"))
@@ -30876,17 +31305,17 @@ $root.fs = (function() {
30876
31305
  };
30877
31306
 
30878
31307
  /**
30879
- * Creates a FSSyncDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
31308
+ * Creates a FSSyncStartDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
30880
31309
  * @function fromObject
30881
- * @memberof fs.FSSyncDownloadRequestBody
31310
+ * @memberof fs.FSSyncStartDownloadRequestBody
30882
31311
  * @static
30883
31312
  * @param {Object.<string,*>} object Plain object
30884
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
31313
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
30885
31314
  */
30886
- FSSyncDownloadRequestBody.fromObject = function fromObject(object) {
30887
- if (object instanceof $root.fs.FSSyncDownloadRequestBody)
31315
+ FSSyncStartDownloadRequestBody.fromObject = function fromObject(object) {
31316
+ if (object instanceof $root.fs.FSSyncStartDownloadRequestBody)
30888
31317
  return object;
30889
- var message = new $root.fs.FSSyncDownloadRequestBody();
31318
+ var message = new $root.fs.FSSyncStartDownloadRequestBody();
30890
31319
  if (object.path != null)
30891
31320
  message.path = String(object.path);
30892
31321
  if (object.version != null)
@@ -30902,15 +31331,15 @@ $root.fs = (function() {
30902
31331
  };
30903
31332
 
30904
31333
  /**
30905
- * Creates a plain object from a FSSyncDownloadRequestBody message. Also converts values to other types if specified.
31334
+ * Creates a plain object from a FSSyncStartDownloadRequestBody message. Also converts values to other types if specified.
30906
31335
  * @function toObject
30907
- * @memberof fs.FSSyncDownloadRequestBody
31336
+ * @memberof fs.FSSyncStartDownloadRequestBody
30908
31337
  * @static
30909
- * @param {fs.FSSyncDownloadRequestBody} message FSSyncDownloadRequestBody
31338
+ * @param {fs.FSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody
30910
31339
  * @param {$protobuf.IConversionOptions} [options] Conversion options
30911
31340
  * @returns {Object.<string,*>} Plain object
30912
31341
  */
30913
- FSSyncDownloadRequestBody.toObject = function toObject(message, options) {
31342
+ FSSyncStartDownloadRequestBody.toObject = function toObject(message, options) {
30914
31343
  if (!options)
30915
31344
  options = {};
30916
31345
  var object = {};
@@ -30933,32 +31362,32 @@ $root.fs = (function() {
30933
31362
  };
30934
31363
 
30935
31364
  /**
30936
- * Converts this FSSyncDownloadRequestBody to JSON.
31365
+ * Converts this FSSyncStartDownloadRequestBody to JSON.
30937
31366
  * @function toJSON
30938
- * @memberof fs.FSSyncDownloadRequestBody
31367
+ * @memberof fs.FSSyncStartDownloadRequestBody
30939
31368
  * @instance
30940
31369
  * @returns {Object.<string,*>} JSON object
30941
31370
  */
30942
- FSSyncDownloadRequestBody.prototype.toJSON = function toJSON() {
31371
+ FSSyncStartDownloadRequestBody.prototype.toJSON = function toJSON() {
30943
31372
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30944
31373
  };
30945
31374
 
30946
31375
  /**
30947
- * Gets the default type url for FSSyncDownloadRequestBody
31376
+ * Gets the default type url for FSSyncStartDownloadRequestBody
30948
31377
  * @function getTypeUrl
30949
- * @memberof fs.FSSyncDownloadRequestBody
31378
+ * @memberof fs.FSSyncStartDownloadRequestBody
30950
31379
  * @static
30951
31380
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
30952
31381
  * @returns {string} The default type url
30953
31382
  */
30954
- FSSyncDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
31383
+ FSSyncStartDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
30955
31384
  if (typeUrlPrefix === undefined) {
30956
31385
  typeUrlPrefix = "type.googleapis.com";
30957
31386
  }
30958
- return typeUrlPrefix + "/fs.FSSyncDownloadRequestBody";
31387
+ return typeUrlPrefix + "/fs.FSSyncStartDownloadRequestBody";
30959
31388
  };
30960
31389
 
30961
- return FSSyncDownloadRequestBody;
31390
+ return FSSyncStartDownloadRequestBody;
30962
31391
  })();
30963
31392
 
30964
31393
  fs.AdoptRemoteRequestBody = (function() {