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
@@ -12168,25 +12168,25 @@ $root.fs = (function() {
12168
12168
  return FSSyncIsOnDiskReplyBody;
12169
12169
  })();
12170
12170
 
12171
- fs.FSSyncDownloadRequestBody = (function() {
12171
+ fs.FSSyncStartDownloadRequestBody = (function() {
12172
12172
 
12173
12173
  /**
12174
- * Properties of a FSSyncDownloadRequestBody.
12174
+ * Properties of a FSSyncStartDownloadRequestBody.
12175
12175
  * @memberof fs
12176
- * @interface IFSSyncDownloadRequestBody
12177
- * @property {string|null} [path] FSSyncDownloadRequestBody path
12178
- * @property {number|Long|null} [version] FSSyncDownloadRequestBody version
12176
+ * @interface IFSSyncStartDownloadRequestBody
12177
+ * @property {string|null} [path] FSSyncStartDownloadRequestBody path
12178
+ * @property {number|Long|null} [version] FSSyncStartDownloadRequestBody version
12179
12179
  */
12180
12180
 
12181
12181
  /**
12182
- * Constructs a new FSSyncDownloadRequestBody.
12182
+ * Constructs a new FSSyncStartDownloadRequestBody.
12183
12183
  * @memberof fs
12184
- * @classdesc Represents a FSSyncDownloadRequestBody.
12185
- * @implements IFSSyncDownloadRequestBody
12184
+ * @classdesc Represents a FSSyncStartDownloadRequestBody.
12185
+ * @implements IFSSyncStartDownloadRequestBody
12186
12186
  * @constructor
12187
- * @param {fs.IFSSyncDownloadRequestBody=} [properties] Properties to set
12187
+ * @param {fs.IFSSyncStartDownloadRequestBody=} [properties] Properties to set
12188
12188
  */
12189
- function FSSyncDownloadRequestBody(properties) {
12189
+ function FSSyncStartDownloadRequestBody(properties) {
12190
12190
  if (properties)
12191
12191
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12192
12192
  if (properties[keys[i]] != null)
@@ -12194,43 +12194,43 @@ $root.fs = (function() {
12194
12194
  }
12195
12195
 
12196
12196
  /**
12197
- * FSSyncDownloadRequestBody path.
12197
+ * FSSyncStartDownloadRequestBody path.
12198
12198
  * @member {string} path
12199
- * @memberof fs.FSSyncDownloadRequestBody
12199
+ * @memberof fs.FSSyncStartDownloadRequestBody
12200
12200
  * @instance
12201
12201
  */
12202
- FSSyncDownloadRequestBody.prototype.path = "";
12202
+ FSSyncStartDownloadRequestBody.prototype.path = "";
12203
12203
 
12204
12204
  /**
12205
- * FSSyncDownloadRequestBody version.
12205
+ * FSSyncStartDownloadRequestBody version.
12206
12206
  * @member {number|Long} version
12207
- * @memberof fs.FSSyncDownloadRequestBody
12207
+ * @memberof fs.FSSyncStartDownloadRequestBody
12208
12208
  * @instance
12209
12209
  */
12210
- FSSyncDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12210
+ FSSyncStartDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12211
12211
 
12212
12212
  /**
12213
- * Creates a new FSSyncDownloadRequestBody instance using the specified properties.
12213
+ * Creates a new FSSyncStartDownloadRequestBody instance using the specified properties.
12214
12214
  * @function create
12215
- * @memberof fs.FSSyncDownloadRequestBody
12215
+ * @memberof fs.FSSyncStartDownloadRequestBody
12216
12216
  * @static
12217
- * @param {fs.IFSSyncDownloadRequestBody=} [properties] Properties to set
12218
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody instance
12217
+ * @param {fs.IFSSyncStartDownloadRequestBody=} [properties] Properties to set
12218
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody instance
12219
12219
  */
12220
- FSSyncDownloadRequestBody.create = function create(properties) {
12221
- return new FSSyncDownloadRequestBody(properties);
12220
+ FSSyncStartDownloadRequestBody.create = function create(properties) {
12221
+ return new FSSyncStartDownloadRequestBody(properties);
12222
12222
  };
12223
12223
 
12224
12224
  /**
12225
- * Encodes the specified FSSyncDownloadRequestBody message. Does not implicitly {@link fs.FSSyncDownloadRequestBody.verify|verify} messages.
12225
+ * Encodes the specified FSSyncStartDownloadRequestBody message. Does not implicitly {@link fs.FSSyncStartDownloadRequestBody.verify|verify} messages.
12226
12226
  * @function encode
12227
- * @memberof fs.FSSyncDownloadRequestBody
12227
+ * @memberof fs.FSSyncStartDownloadRequestBody
12228
12228
  * @static
12229
- * @param {fs.IFSSyncDownloadRequestBody} message FSSyncDownloadRequestBody message or plain object to encode
12229
+ * @param {fs.IFSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody message or plain object to encode
12230
12230
  * @param {$protobuf.Writer} [writer] Writer to encode to
12231
12231
  * @returns {$protobuf.Writer} Writer
12232
12232
  */
12233
- FSSyncDownloadRequestBody.encode = function encode(message, writer) {
12233
+ FSSyncStartDownloadRequestBody.encode = function encode(message, writer) {
12234
12234
  if (!writer)
12235
12235
  writer = $Writer.create();
12236
12236
  if (message.path != null && Object.hasOwnProperty.call(message, "path"))
@@ -12241,33 +12241,33 @@ $root.fs = (function() {
12241
12241
  };
12242
12242
 
12243
12243
  /**
12244
- * Encodes the specified FSSyncDownloadRequestBody message, length delimited. Does not implicitly {@link fs.FSSyncDownloadRequestBody.verify|verify} messages.
12244
+ * Encodes the specified FSSyncStartDownloadRequestBody message, length delimited. Does not implicitly {@link fs.FSSyncStartDownloadRequestBody.verify|verify} messages.
12245
12245
  * @function encodeDelimited
12246
- * @memberof fs.FSSyncDownloadRequestBody
12246
+ * @memberof fs.FSSyncStartDownloadRequestBody
12247
12247
  * @static
12248
- * @param {fs.IFSSyncDownloadRequestBody} message FSSyncDownloadRequestBody message or plain object to encode
12248
+ * @param {fs.IFSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody message or plain object to encode
12249
12249
  * @param {$protobuf.Writer} [writer] Writer to encode to
12250
12250
  * @returns {$protobuf.Writer} Writer
12251
12251
  */
12252
- FSSyncDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
12252
+ FSSyncStartDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
12253
12253
  return this.encode(message, writer).ldelim();
12254
12254
  };
12255
12255
 
12256
12256
  /**
12257
- * Decodes a FSSyncDownloadRequestBody message from the specified reader or buffer.
12257
+ * Decodes a FSSyncStartDownloadRequestBody message from the specified reader or buffer.
12258
12258
  * @function decode
12259
- * @memberof fs.FSSyncDownloadRequestBody
12259
+ * @memberof fs.FSSyncStartDownloadRequestBody
12260
12260
  * @static
12261
12261
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12262
12262
  * @param {number} [length] Message length if known beforehand
12263
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
12263
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
12264
12264
  * @throws {Error} If the payload is not a reader or valid buffer
12265
12265
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12266
12266
  */
12267
- FSSyncDownloadRequestBody.decode = function decode(reader, length, error) {
12267
+ FSSyncStartDownloadRequestBody.decode = function decode(reader, length, error) {
12268
12268
  if (!(reader instanceof $Reader))
12269
12269
  reader = $Reader.create(reader);
12270
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncDownloadRequestBody();
12270
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncStartDownloadRequestBody();
12271
12271
  while (reader.pos < end) {
12272
12272
  var tag = reader.uint32();
12273
12273
  if (tag === error)
@@ -12290,30 +12290,30 @@ $root.fs = (function() {
12290
12290
  };
12291
12291
 
12292
12292
  /**
12293
- * Decodes a FSSyncDownloadRequestBody message from the specified reader or buffer, length delimited.
12293
+ * Decodes a FSSyncStartDownloadRequestBody message from the specified reader or buffer, length delimited.
12294
12294
  * @function decodeDelimited
12295
- * @memberof fs.FSSyncDownloadRequestBody
12295
+ * @memberof fs.FSSyncStartDownloadRequestBody
12296
12296
  * @static
12297
12297
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12298
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
12298
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
12299
12299
  * @throws {Error} If the payload is not a reader or valid buffer
12300
12300
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12301
12301
  */
12302
- FSSyncDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
12302
+ FSSyncStartDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
12303
12303
  if (!(reader instanceof $Reader))
12304
12304
  reader = new $Reader(reader);
12305
12305
  return this.decode(reader, reader.uint32());
12306
12306
  };
12307
12307
 
12308
12308
  /**
12309
- * Verifies a FSSyncDownloadRequestBody message.
12309
+ * Verifies a FSSyncStartDownloadRequestBody message.
12310
12310
  * @function verify
12311
- * @memberof fs.FSSyncDownloadRequestBody
12311
+ * @memberof fs.FSSyncStartDownloadRequestBody
12312
12312
  * @static
12313
12313
  * @param {Object.<string,*>} message Plain object to verify
12314
12314
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
12315
12315
  */
12316
- FSSyncDownloadRequestBody.verify = function verify(message) {
12316
+ FSSyncStartDownloadRequestBody.verify = function verify(message) {
12317
12317
  if (typeof message !== "object" || message === null)
12318
12318
  return "object expected";
12319
12319
  if (message.path != null && message.hasOwnProperty("path"))
@@ -12326,17 +12326,17 @@ $root.fs = (function() {
12326
12326
  };
12327
12327
 
12328
12328
  /**
12329
- * Creates a FSSyncDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
12329
+ * Creates a FSSyncStartDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
12330
12330
  * @function fromObject
12331
- * @memberof fs.FSSyncDownloadRequestBody
12331
+ * @memberof fs.FSSyncStartDownloadRequestBody
12332
12332
  * @static
12333
12333
  * @param {Object.<string,*>} object Plain object
12334
- * @returns {fs.FSSyncDownloadRequestBody} FSSyncDownloadRequestBody
12334
+ * @returns {fs.FSSyncStartDownloadRequestBody} FSSyncStartDownloadRequestBody
12335
12335
  */
12336
- FSSyncDownloadRequestBody.fromObject = function fromObject(object) {
12337
- if (object instanceof $root.fs.FSSyncDownloadRequestBody)
12336
+ FSSyncStartDownloadRequestBody.fromObject = function fromObject(object) {
12337
+ if (object instanceof $root.fs.FSSyncStartDownloadRequestBody)
12338
12338
  return object;
12339
- var message = new $root.fs.FSSyncDownloadRequestBody();
12339
+ var message = new $root.fs.FSSyncStartDownloadRequestBody();
12340
12340
  if (object.path != null)
12341
12341
  message.path = String(object.path);
12342
12342
  if (object.version != null)
@@ -12352,15 +12352,15 @@ $root.fs = (function() {
12352
12352
  };
12353
12353
 
12354
12354
  /**
12355
- * Creates a plain object from a FSSyncDownloadRequestBody message. Also converts values to other types if specified.
12355
+ * Creates a plain object from a FSSyncStartDownloadRequestBody message. Also converts values to other types if specified.
12356
12356
  * @function toObject
12357
- * @memberof fs.FSSyncDownloadRequestBody
12357
+ * @memberof fs.FSSyncStartDownloadRequestBody
12358
12358
  * @static
12359
- * @param {fs.FSSyncDownloadRequestBody} message FSSyncDownloadRequestBody
12359
+ * @param {fs.FSSyncStartDownloadRequestBody} message FSSyncStartDownloadRequestBody
12360
12360
  * @param {$protobuf.IConversionOptions} [options] Conversion options
12361
12361
  * @returns {Object.<string,*>} Plain object
12362
12362
  */
12363
- FSSyncDownloadRequestBody.toObject = function toObject(message, options) {
12363
+ FSSyncStartDownloadRequestBody.toObject = function toObject(message, options) {
12364
12364
  if (!options)
12365
12365
  options = {};
12366
12366
  var object = {};
@@ -12383,32 +12383,32 @@ $root.fs = (function() {
12383
12383
  };
12384
12384
 
12385
12385
  /**
12386
- * Converts this FSSyncDownloadRequestBody to JSON.
12386
+ * Converts this FSSyncStartDownloadRequestBody to JSON.
12387
12387
  * @function toJSON
12388
- * @memberof fs.FSSyncDownloadRequestBody
12388
+ * @memberof fs.FSSyncStartDownloadRequestBody
12389
12389
  * @instance
12390
12390
  * @returns {Object.<string,*>} JSON object
12391
12391
  */
12392
- FSSyncDownloadRequestBody.prototype.toJSON = function toJSON() {
12392
+ FSSyncStartDownloadRequestBody.prototype.toJSON = function toJSON() {
12393
12393
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12394
12394
  };
12395
12395
 
12396
12396
  /**
12397
- * Gets the default type url for FSSyncDownloadRequestBody
12397
+ * Gets the default type url for FSSyncStartDownloadRequestBody
12398
12398
  * @function getTypeUrl
12399
- * @memberof fs.FSSyncDownloadRequestBody
12399
+ * @memberof fs.FSSyncStartDownloadRequestBody
12400
12400
  * @static
12401
12401
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12402
12402
  * @returns {string} The default type url
12403
12403
  */
12404
- FSSyncDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12404
+ FSSyncStartDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12405
12405
  if (typeUrlPrefix === undefined) {
12406
12406
  typeUrlPrefix = "type.googleapis.com";
12407
12407
  }
12408
- return typeUrlPrefix + "/fs.FSSyncDownloadRequestBody";
12408
+ return typeUrlPrefix + "/fs.FSSyncStartDownloadRequestBody";
12409
12409
  };
12410
12410
 
12411
- return FSSyncDownloadRequestBody;
12411
+ return FSSyncStartDownloadRequestBody;
12412
12412
  })();
12413
12413
 
12414
12414
  fs.AdoptRemoteRequestBody = (function() {
@@ -25226,24 +25226,24 @@ $root.file = (function() {
25226
25226
  return FileSyncIsOnDiskReplyBody;
25227
25227
  })();
25228
25228
 
25229
- file.FileSyncDownloadRequestBody = (function() {
25229
+ file.FileSyncStartDownloadRequestBody = (function() {
25230
25230
 
25231
25231
  /**
25232
- * Properties of a FileSyncDownloadRequestBody.
25232
+ * Properties of a FileSyncStartDownloadRequestBody.
25233
25233
  * @memberof file
25234
- * @interface IFileSyncDownloadRequestBody
25235
- * @property {number|Long|null} [version] FileSyncDownloadRequestBody version
25234
+ * @interface IFileSyncStartDownloadRequestBody
25235
+ * @property {number|Long|null} [version] FileSyncStartDownloadRequestBody version
25236
25236
  */
25237
25237
 
25238
25238
  /**
25239
- * Constructs a new FileSyncDownloadRequestBody.
25239
+ * Constructs a new FileSyncStartDownloadRequestBody.
25240
25240
  * @memberof file
25241
- * @classdesc Represents a FileSyncDownloadRequestBody.
25242
- * @implements IFileSyncDownloadRequestBody
25241
+ * @classdesc Represents a FileSyncStartDownloadRequestBody.
25242
+ * @implements IFileSyncStartDownloadRequestBody
25243
25243
  * @constructor
25244
- * @param {file.IFileSyncDownloadRequestBody=} [properties] Properties to set
25244
+ * @param {file.IFileSyncStartDownloadRequestBody=} [properties] Properties to set
25245
25245
  */
25246
- function FileSyncDownloadRequestBody(properties) {
25246
+ function FileSyncStartDownloadRequestBody(properties) {
25247
25247
  if (properties)
25248
25248
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25249
25249
  if (properties[keys[i]] != null)
@@ -25251,35 +25251,35 @@ $root.file = (function() {
25251
25251
  }
25252
25252
 
25253
25253
  /**
25254
- * FileSyncDownloadRequestBody version.
25254
+ * FileSyncStartDownloadRequestBody version.
25255
25255
  * @member {number|Long} version
25256
- * @memberof file.FileSyncDownloadRequestBody
25256
+ * @memberof file.FileSyncStartDownloadRequestBody
25257
25257
  * @instance
25258
25258
  */
25259
- FileSyncDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
25259
+ FileSyncStartDownloadRequestBody.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
25260
25260
 
25261
25261
  /**
25262
- * Creates a new FileSyncDownloadRequestBody instance using the specified properties.
25262
+ * Creates a new FileSyncStartDownloadRequestBody instance using the specified properties.
25263
25263
  * @function create
25264
- * @memberof file.FileSyncDownloadRequestBody
25264
+ * @memberof file.FileSyncStartDownloadRequestBody
25265
25265
  * @static
25266
- * @param {file.IFileSyncDownloadRequestBody=} [properties] Properties to set
25267
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody instance
25266
+ * @param {file.IFileSyncStartDownloadRequestBody=} [properties] Properties to set
25267
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody instance
25268
25268
  */
25269
- FileSyncDownloadRequestBody.create = function create(properties) {
25270
- return new FileSyncDownloadRequestBody(properties);
25269
+ FileSyncStartDownloadRequestBody.create = function create(properties) {
25270
+ return new FileSyncStartDownloadRequestBody(properties);
25271
25271
  };
25272
25272
 
25273
25273
  /**
25274
- * Encodes the specified FileSyncDownloadRequestBody message. Does not implicitly {@link file.FileSyncDownloadRequestBody.verify|verify} messages.
25274
+ * Encodes the specified FileSyncStartDownloadRequestBody message. Does not implicitly {@link file.FileSyncStartDownloadRequestBody.verify|verify} messages.
25275
25275
  * @function encode
25276
- * @memberof file.FileSyncDownloadRequestBody
25276
+ * @memberof file.FileSyncStartDownloadRequestBody
25277
25277
  * @static
25278
- * @param {file.IFileSyncDownloadRequestBody} message FileSyncDownloadRequestBody message or plain object to encode
25278
+ * @param {file.IFileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody message or plain object to encode
25279
25279
  * @param {$protobuf.Writer} [writer] Writer to encode to
25280
25280
  * @returns {$protobuf.Writer} Writer
25281
25281
  */
25282
- FileSyncDownloadRequestBody.encode = function encode(message, writer) {
25282
+ FileSyncStartDownloadRequestBody.encode = function encode(message, writer) {
25283
25283
  if (!writer)
25284
25284
  writer = $Writer.create();
25285
25285
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
@@ -25288,33 +25288,33 @@ $root.file = (function() {
25288
25288
  };
25289
25289
 
25290
25290
  /**
25291
- * Encodes the specified FileSyncDownloadRequestBody message, length delimited. Does not implicitly {@link file.FileSyncDownloadRequestBody.verify|verify} messages.
25291
+ * Encodes the specified FileSyncStartDownloadRequestBody message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadRequestBody.verify|verify} messages.
25292
25292
  * @function encodeDelimited
25293
- * @memberof file.FileSyncDownloadRequestBody
25293
+ * @memberof file.FileSyncStartDownloadRequestBody
25294
25294
  * @static
25295
- * @param {file.IFileSyncDownloadRequestBody} message FileSyncDownloadRequestBody message or plain object to encode
25295
+ * @param {file.IFileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody message or plain object to encode
25296
25296
  * @param {$protobuf.Writer} [writer] Writer to encode to
25297
25297
  * @returns {$protobuf.Writer} Writer
25298
25298
  */
25299
- FileSyncDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
25299
+ FileSyncStartDownloadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
25300
25300
  return this.encode(message, writer).ldelim();
25301
25301
  };
25302
25302
 
25303
25303
  /**
25304
- * Decodes a FileSyncDownloadRequestBody message from the specified reader or buffer.
25304
+ * Decodes a FileSyncStartDownloadRequestBody message from the specified reader or buffer.
25305
25305
  * @function decode
25306
- * @memberof file.FileSyncDownloadRequestBody
25306
+ * @memberof file.FileSyncStartDownloadRequestBody
25307
25307
  * @static
25308
25308
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25309
25309
  * @param {number} [length] Message length if known beforehand
25310
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
25310
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
25311
25311
  * @throws {Error} If the payload is not a reader or valid buffer
25312
25312
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
25313
25313
  */
25314
- FileSyncDownloadRequestBody.decode = function decode(reader, length, error) {
25314
+ FileSyncStartDownloadRequestBody.decode = function decode(reader, length, error) {
25315
25315
  if (!(reader instanceof $Reader))
25316
25316
  reader = $Reader.create(reader);
25317
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncDownloadRequestBody();
25317
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadRequestBody();
25318
25318
  while (reader.pos < end) {
25319
25319
  var tag = reader.uint32();
25320
25320
  if (tag === error)
@@ -25333,30 +25333,30 @@ $root.file = (function() {
25333
25333
  };
25334
25334
 
25335
25335
  /**
25336
- * Decodes a FileSyncDownloadRequestBody message from the specified reader or buffer, length delimited.
25336
+ * Decodes a FileSyncStartDownloadRequestBody message from the specified reader or buffer, length delimited.
25337
25337
  * @function decodeDelimited
25338
- * @memberof file.FileSyncDownloadRequestBody
25338
+ * @memberof file.FileSyncStartDownloadRequestBody
25339
25339
  * @static
25340
25340
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25341
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
25341
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
25342
25342
  * @throws {Error} If the payload is not a reader or valid buffer
25343
25343
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
25344
25344
  */
25345
- FileSyncDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
25345
+ FileSyncStartDownloadRequestBody.decodeDelimited = function decodeDelimited(reader) {
25346
25346
  if (!(reader instanceof $Reader))
25347
25347
  reader = new $Reader(reader);
25348
25348
  return this.decode(reader, reader.uint32());
25349
25349
  };
25350
25350
 
25351
25351
  /**
25352
- * Verifies a FileSyncDownloadRequestBody message.
25352
+ * Verifies a FileSyncStartDownloadRequestBody message.
25353
25353
  * @function verify
25354
- * @memberof file.FileSyncDownloadRequestBody
25354
+ * @memberof file.FileSyncStartDownloadRequestBody
25355
25355
  * @static
25356
25356
  * @param {Object.<string,*>} message Plain object to verify
25357
25357
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
25358
25358
  */
25359
- FileSyncDownloadRequestBody.verify = function verify(message) {
25359
+ FileSyncStartDownloadRequestBody.verify = function verify(message) {
25360
25360
  if (typeof message !== "object" || message === null)
25361
25361
  return "object expected";
25362
25362
  if (message.version != null && message.hasOwnProperty("version"))
@@ -25366,17 +25366,17 @@ $root.file = (function() {
25366
25366
  };
25367
25367
 
25368
25368
  /**
25369
- * Creates a FileSyncDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
25369
+ * Creates a FileSyncStartDownloadRequestBody message from a plain object. Also converts values to their respective internal types.
25370
25370
  * @function fromObject
25371
- * @memberof file.FileSyncDownloadRequestBody
25371
+ * @memberof file.FileSyncStartDownloadRequestBody
25372
25372
  * @static
25373
25373
  * @param {Object.<string,*>} object Plain object
25374
- * @returns {file.FileSyncDownloadRequestBody} FileSyncDownloadRequestBody
25374
+ * @returns {file.FileSyncStartDownloadRequestBody} FileSyncStartDownloadRequestBody
25375
25375
  */
25376
- FileSyncDownloadRequestBody.fromObject = function fromObject(object) {
25377
- if (object instanceof $root.file.FileSyncDownloadRequestBody)
25376
+ FileSyncStartDownloadRequestBody.fromObject = function fromObject(object) {
25377
+ if (object instanceof $root.file.FileSyncStartDownloadRequestBody)
25378
25378
  return object;
25379
- var message = new $root.file.FileSyncDownloadRequestBody();
25379
+ var message = new $root.file.FileSyncStartDownloadRequestBody();
25380
25380
  if (object.version != null)
25381
25381
  if ($util.Long)
25382
25382
  (message.version = $util.Long.fromValue(object.version)).unsigned = true;
@@ -25390,15 +25390,15 @@ $root.file = (function() {
25390
25390
  };
25391
25391
 
25392
25392
  /**
25393
- * Creates a plain object from a FileSyncDownloadRequestBody message. Also converts values to other types if specified.
25393
+ * Creates a plain object from a FileSyncStartDownloadRequestBody message. Also converts values to other types if specified.
25394
25394
  * @function toObject
25395
- * @memberof file.FileSyncDownloadRequestBody
25395
+ * @memberof file.FileSyncStartDownloadRequestBody
25396
25396
  * @static
25397
- * @param {file.FileSyncDownloadRequestBody} message FileSyncDownloadRequestBody
25397
+ * @param {file.FileSyncStartDownloadRequestBody} message FileSyncStartDownloadRequestBody
25398
25398
  * @param {$protobuf.IConversionOptions} [options] Conversion options
25399
25399
  * @returns {Object.<string,*>} Plain object
25400
25400
  */
25401
- FileSyncDownloadRequestBody.toObject = function toObject(message, options) {
25401
+ FileSyncStartDownloadRequestBody.toObject = function toObject(message, options) {
25402
25402
  if (!options)
25403
25403
  options = {};
25404
25404
  var object = {};
@@ -25417,32 +25417,461 @@ $root.file = (function() {
25417
25417
  };
25418
25418
 
25419
25419
  /**
25420
- * Converts this FileSyncDownloadRequestBody to JSON.
25420
+ * Converts this FileSyncStartDownloadRequestBody to JSON.
25421
25421
  * @function toJSON
25422
- * @memberof file.FileSyncDownloadRequestBody
25422
+ * @memberof file.FileSyncStartDownloadRequestBody
25423
25423
  * @instance
25424
25424
  * @returns {Object.<string,*>} JSON object
25425
25425
  */
25426
- FileSyncDownloadRequestBody.prototype.toJSON = function toJSON() {
25426
+ FileSyncStartDownloadRequestBody.prototype.toJSON = function toJSON() {
25427
25427
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25428
25428
  };
25429
25429
 
25430
25430
  /**
25431
- * Gets the default type url for FileSyncDownloadRequestBody
25431
+ * Gets the default type url for FileSyncStartDownloadRequestBody
25432
25432
  * @function getTypeUrl
25433
- * @memberof file.FileSyncDownloadRequestBody
25433
+ * @memberof file.FileSyncStartDownloadRequestBody
25434
25434
  * @static
25435
25435
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25436
25436
  * @returns {string} The default type url
25437
25437
  */
25438
- FileSyncDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25438
+ FileSyncStartDownloadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25439
25439
  if (typeUrlPrefix === undefined) {
25440
25440
  typeUrlPrefix = "type.googleapis.com";
25441
25441
  }
25442
- return typeUrlPrefix + "/file.FileSyncDownloadRequestBody";
25442
+ return typeUrlPrefix + "/file.FileSyncStartDownloadRequestBody";
25443
25443
  };
25444
25444
 
25445
- return FileSyncDownloadRequestBody;
25445
+ return FileSyncStartDownloadRequestBody;
25446
+ })();
25447
+
25448
+ file.FileSyncStartDownloadReplyBody = (function() {
25449
+
25450
+ /**
25451
+ * Properties of a FileSyncStartDownloadReplyBody.
25452
+ * @memberof file
25453
+ * @interface IFileSyncStartDownloadReplyBody
25454
+ * @property {file.FileSyncStartDownloadReplyBody.IDownloadInfo|null} [startedDownload] FileSyncStartDownloadReplyBody startedDownload
25455
+ */
25456
+
25457
+ /**
25458
+ * Constructs a new FileSyncStartDownloadReplyBody.
25459
+ * @memberof file
25460
+ * @classdesc Represents a FileSyncStartDownloadReplyBody.
25461
+ * @implements IFileSyncStartDownloadReplyBody
25462
+ * @constructor
25463
+ * @param {file.IFileSyncStartDownloadReplyBody=} [properties] Properties to set
25464
+ */
25465
+ function FileSyncStartDownloadReplyBody(properties) {
25466
+ if (properties)
25467
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25468
+ if (properties[keys[i]] != null)
25469
+ this[keys[i]] = properties[keys[i]];
25470
+ }
25471
+
25472
+ /**
25473
+ * FileSyncStartDownloadReplyBody startedDownload.
25474
+ * @member {file.FileSyncStartDownloadReplyBody.IDownloadInfo|null|undefined} startedDownload
25475
+ * @memberof file.FileSyncStartDownloadReplyBody
25476
+ * @instance
25477
+ */
25478
+ FileSyncStartDownloadReplyBody.prototype.startedDownload = null;
25479
+
25480
+ /**
25481
+ * Creates a new FileSyncStartDownloadReplyBody instance using the specified properties.
25482
+ * @function create
25483
+ * @memberof file.FileSyncStartDownloadReplyBody
25484
+ * @static
25485
+ * @param {file.IFileSyncStartDownloadReplyBody=} [properties] Properties to set
25486
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody instance
25487
+ */
25488
+ FileSyncStartDownloadReplyBody.create = function create(properties) {
25489
+ return new FileSyncStartDownloadReplyBody(properties);
25490
+ };
25491
+
25492
+ /**
25493
+ * Encodes the specified FileSyncStartDownloadReplyBody message. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.verify|verify} messages.
25494
+ * @function encode
25495
+ * @memberof file.FileSyncStartDownloadReplyBody
25496
+ * @static
25497
+ * @param {file.IFileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody message or plain object to encode
25498
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25499
+ * @returns {$protobuf.Writer} Writer
25500
+ */
25501
+ FileSyncStartDownloadReplyBody.encode = function encode(message, writer) {
25502
+ if (!writer)
25503
+ writer = $Writer.create();
25504
+ if (message.startedDownload != null && Object.hasOwnProperty.call(message, "startedDownload"))
25505
+ $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.encode(message.startedDownload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
25506
+ return writer;
25507
+ };
25508
+
25509
+ /**
25510
+ * Encodes the specified FileSyncStartDownloadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.verify|verify} messages.
25511
+ * @function encodeDelimited
25512
+ * @memberof file.FileSyncStartDownloadReplyBody
25513
+ * @static
25514
+ * @param {file.IFileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody message or plain object to encode
25515
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25516
+ * @returns {$protobuf.Writer} Writer
25517
+ */
25518
+ FileSyncStartDownloadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
25519
+ return this.encode(message, writer).ldelim();
25520
+ };
25521
+
25522
+ /**
25523
+ * Decodes a FileSyncStartDownloadReplyBody message from the specified reader or buffer.
25524
+ * @function decode
25525
+ * @memberof file.FileSyncStartDownloadReplyBody
25526
+ * @static
25527
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25528
+ * @param {number} [length] Message length if known beforehand
25529
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
25530
+ * @throws {Error} If the payload is not a reader or valid buffer
25531
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25532
+ */
25533
+ FileSyncStartDownloadReplyBody.decode = function decode(reader, length, error) {
25534
+ if (!(reader instanceof $Reader))
25535
+ reader = $Reader.create(reader);
25536
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadReplyBody();
25537
+ while (reader.pos < end) {
25538
+ var tag = reader.uint32();
25539
+ if (tag === error)
25540
+ break;
25541
+ switch (tag >>> 3) {
25542
+ case 1: {
25543
+ message.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.decode(reader, reader.uint32());
25544
+ break;
25545
+ }
25546
+ default:
25547
+ reader.skipType(tag & 7);
25548
+ break;
25549
+ }
25550
+ }
25551
+ return message;
25552
+ };
25553
+
25554
+ /**
25555
+ * Decodes a FileSyncStartDownloadReplyBody message from the specified reader or buffer, length delimited.
25556
+ * @function decodeDelimited
25557
+ * @memberof file.FileSyncStartDownloadReplyBody
25558
+ * @static
25559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25560
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
25561
+ * @throws {Error} If the payload is not a reader or valid buffer
25562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25563
+ */
25564
+ FileSyncStartDownloadReplyBody.decodeDelimited = function decodeDelimited(reader) {
25565
+ if (!(reader instanceof $Reader))
25566
+ reader = new $Reader(reader);
25567
+ return this.decode(reader, reader.uint32());
25568
+ };
25569
+
25570
+ /**
25571
+ * Verifies a FileSyncStartDownloadReplyBody message.
25572
+ * @function verify
25573
+ * @memberof file.FileSyncStartDownloadReplyBody
25574
+ * @static
25575
+ * @param {Object.<string,*>} message Plain object to verify
25576
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25577
+ */
25578
+ FileSyncStartDownloadReplyBody.verify = function verify(message) {
25579
+ if (typeof message !== "object" || message === null)
25580
+ return "object expected";
25581
+ if (message.startedDownload != null && message.hasOwnProperty("startedDownload")) {
25582
+ var error = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.verify(message.startedDownload);
25583
+ if (error)
25584
+ return "startedDownload." + error;
25585
+ }
25586
+ return null;
25587
+ };
25588
+
25589
+ /**
25590
+ * Creates a FileSyncStartDownloadReplyBody message from a plain object. Also converts values to their respective internal types.
25591
+ * @function fromObject
25592
+ * @memberof file.FileSyncStartDownloadReplyBody
25593
+ * @static
25594
+ * @param {Object.<string,*>} object Plain object
25595
+ * @returns {file.FileSyncStartDownloadReplyBody} FileSyncStartDownloadReplyBody
25596
+ */
25597
+ FileSyncStartDownloadReplyBody.fromObject = function fromObject(object) {
25598
+ if (object instanceof $root.file.FileSyncStartDownloadReplyBody)
25599
+ return object;
25600
+ var message = new $root.file.FileSyncStartDownloadReplyBody();
25601
+ if (object.startedDownload != null) {
25602
+ if (typeof object.startedDownload !== "object")
25603
+ throw TypeError(".file.FileSyncStartDownloadReplyBody.startedDownload: object expected");
25604
+ message.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.fromObject(object.startedDownload);
25605
+ }
25606
+ return message;
25607
+ };
25608
+
25609
+ /**
25610
+ * Creates a plain object from a FileSyncStartDownloadReplyBody message. Also converts values to other types if specified.
25611
+ * @function toObject
25612
+ * @memberof file.FileSyncStartDownloadReplyBody
25613
+ * @static
25614
+ * @param {file.FileSyncStartDownloadReplyBody} message FileSyncStartDownloadReplyBody
25615
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25616
+ * @returns {Object.<string,*>} Plain object
25617
+ */
25618
+ FileSyncStartDownloadReplyBody.toObject = function toObject(message, options) {
25619
+ if (!options)
25620
+ options = {};
25621
+ var object = {};
25622
+ if (options.defaults)
25623
+ object.startedDownload = null;
25624
+ if (message.startedDownload != null && message.hasOwnProperty("startedDownload"))
25625
+ object.startedDownload = $root.file.FileSyncStartDownloadReplyBody.DownloadInfo.toObject(message.startedDownload, options);
25626
+ return object;
25627
+ };
25628
+
25629
+ /**
25630
+ * Converts this FileSyncStartDownloadReplyBody to JSON.
25631
+ * @function toJSON
25632
+ * @memberof file.FileSyncStartDownloadReplyBody
25633
+ * @instance
25634
+ * @returns {Object.<string,*>} JSON object
25635
+ */
25636
+ FileSyncStartDownloadReplyBody.prototype.toJSON = function toJSON() {
25637
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25638
+ };
25639
+
25640
+ /**
25641
+ * Gets the default type url for FileSyncStartDownloadReplyBody
25642
+ * @function getTypeUrl
25643
+ * @memberof file.FileSyncStartDownloadReplyBody
25644
+ * @static
25645
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25646
+ * @returns {string} The default type url
25647
+ */
25648
+ FileSyncStartDownloadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25649
+ if (typeUrlPrefix === undefined) {
25650
+ typeUrlPrefix = "type.googleapis.com";
25651
+ }
25652
+ return typeUrlPrefix + "/file.FileSyncStartDownloadReplyBody";
25653
+ };
25654
+
25655
+ FileSyncStartDownloadReplyBody.DownloadInfo = (function() {
25656
+
25657
+ /**
25658
+ * Properties of a DownloadInfo.
25659
+ * @memberof file.FileSyncStartDownloadReplyBody
25660
+ * @interface IDownloadInfo
25661
+ * @property {number|Long|null} [downloadTaskId] DownloadInfo downloadTaskId
25662
+ */
25663
+
25664
+ /**
25665
+ * Constructs a new DownloadInfo.
25666
+ * @memberof file.FileSyncStartDownloadReplyBody
25667
+ * @classdesc Represents a DownloadInfo.
25668
+ * @implements IDownloadInfo
25669
+ * @constructor
25670
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo=} [properties] Properties to set
25671
+ */
25672
+ function DownloadInfo(properties) {
25673
+ if (properties)
25674
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25675
+ if (properties[keys[i]] != null)
25676
+ this[keys[i]] = properties[keys[i]];
25677
+ }
25678
+
25679
+ /**
25680
+ * DownloadInfo downloadTaskId.
25681
+ * @member {number|Long} downloadTaskId
25682
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25683
+ * @instance
25684
+ */
25685
+ DownloadInfo.prototype.downloadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
25686
+
25687
+ /**
25688
+ * Creates a new DownloadInfo instance using the specified properties.
25689
+ * @function create
25690
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25691
+ * @static
25692
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo=} [properties] Properties to set
25693
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo instance
25694
+ */
25695
+ DownloadInfo.create = function create(properties) {
25696
+ return new DownloadInfo(properties);
25697
+ };
25698
+
25699
+ /**
25700
+ * Encodes the specified DownloadInfo message. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.DownloadInfo.verify|verify} messages.
25701
+ * @function encode
25702
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25703
+ * @static
25704
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo} message DownloadInfo message or plain object to encode
25705
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25706
+ * @returns {$protobuf.Writer} Writer
25707
+ */
25708
+ DownloadInfo.encode = function encode(message, writer) {
25709
+ if (!writer)
25710
+ writer = $Writer.create();
25711
+ if (message.downloadTaskId != null && Object.hasOwnProperty.call(message, "downloadTaskId"))
25712
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.downloadTaskId);
25713
+ return writer;
25714
+ };
25715
+
25716
+ /**
25717
+ * Encodes the specified DownloadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartDownloadReplyBody.DownloadInfo.verify|verify} messages.
25718
+ * @function encodeDelimited
25719
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25720
+ * @static
25721
+ * @param {file.FileSyncStartDownloadReplyBody.IDownloadInfo} message DownloadInfo message or plain object to encode
25722
+ * @param {$protobuf.Writer} [writer] Writer to encode to
25723
+ * @returns {$protobuf.Writer} Writer
25724
+ */
25725
+ DownloadInfo.encodeDelimited = function encodeDelimited(message, writer) {
25726
+ return this.encode(message, writer).ldelim();
25727
+ };
25728
+
25729
+ /**
25730
+ * Decodes a DownloadInfo message from the specified reader or buffer.
25731
+ * @function decode
25732
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25733
+ * @static
25734
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25735
+ * @param {number} [length] Message length if known beforehand
25736
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
25737
+ * @throws {Error} If the payload is not a reader or valid buffer
25738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25739
+ */
25740
+ DownloadInfo.decode = function decode(reader, length, error) {
25741
+ if (!(reader instanceof $Reader))
25742
+ reader = $Reader.create(reader);
25743
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartDownloadReplyBody.DownloadInfo();
25744
+ while (reader.pos < end) {
25745
+ var tag = reader.uint32();
25746
+ if (tag === error)
25747
+ break;
25748
+ switch (tag >>> 3) {
25749
+ case 2: {
25750
+ message.downloadTaskId = reader.uint64();
25751
+ break;
25752
+ }
25753
+ default:
25754
+ reader.skipType(tag & 7);
25755
+ break;
25756
+ }
25757
+ }
25758
+ return message;
25759
+ };
25760
+
25761
+ /**
25762
+ * Decodes a DownloadInfo message from the specified reader or buffer, length delimited.
25763
+ * @function decodeDelimited
25764
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25765
+ * @static
25766
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
25767
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
25768
+ * @throws {Error} If the payload is not a reader or valid buffer
25769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25770
+ */
25771
+ DownloadInfo.decodeDelimited = function decodeDelimited(reader) {
25772
+ if (!(reader instanceof $Reader))
25773
+ reader = new $Reader(reader);
25774
+ return this.decode(reader, reader.uint32());
25775
+ };
25776
+
25777
+ /**
25778
+ * Verifies a DownloadInfo message.
25779
+ * @function verify
25780
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25781
+ * @static
25782
+ * @param {Object.<string,*>} message Plain object to verify
25783
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25784
+ */
25785
+ DownloadInfo.verify = function verify(message) {
25786
+ if (typeof message !== "object" || message === null)
25787
+ return "object expected";
25788
+ if (message.downloadTaskId != null && message.hasOwnProperty("downloadTaskId"))
25789
+ if (!$util.isInteger(message.downloadTaskId) && !(message.downloadTaskId && $util.isInteger(message.downloadTaskId.low) && $util.isInteger(message.downloadTaskId.high)))
25790
+ return "downloadTaskId: integer|Long expected";
25791
+ return null;
25792
+ };
25793
+
25794
+ /**
25795
+ * Creates a DownloadInfo message from a plain object. Also converts values to their respective internal types.
25796
+ * @function fromObject
25797
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25798
+ * @static
25799
+ * @param {Object.<string,*>} object Plain object
25800
+ * @returns {file.FileSyncStartDownloadReplyBody.DownloadInfo} DownloadInfo
25801
+ */
25802
+ DownloadInfo.fromObject = function fromObject(object) {
25803
+ if (object instanceof $root.file.FileSyncStartDownloadReplyBody.DownloadInfo)
25804
+ return object;
25805
+ var message = new $root.file.FileSyncStartDownloadReplyBody.DownloadInfo();
25806
+ if (object.downloadTaskId != null)
25807
+ if ($util.Long)
25808
+ (message.downloadTaskId = $util.Long.fromValue(object.downloadTaskId)).unsigned = true;
25809
+ else if (typeof object.downloadTaskId === "string")
25810
+ message.downloadTaskId = parseInt(object.downloadTaskId, 10);
25811
+ else if (typeof object.downloadTaskId === "number")
25812
+ message.downloadTaskId = object.downloadTaskId;
25813
+ else if (typeof object.downloadTaskId === "object")
25814
+ message.downloadTaskId = new $util.LongBits(object.downloadTaskId.low >>> 0, object.downloadTaskId.high >>> 0).toNumber(true);
25815
+ return message;
25816
+ };
25817
+
25818
+ /**
25819
+ * Creates a plain object from a DownloadInfo message. Also converts values to other types if specified.
25820
+ * @function toObject
25821
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25822
+ * @static
25823
+ * @param {file.FileSyncStartDownloadReplyBody.DownloadInfo} message DownloadInfo
25824
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25825
+ * @returns {Object.<string,*>} Plain object
25826
+ */
25827
+ DownloadInfo.toObject = function toObject(message, options) {
25828
+ if (!options)
25829
+ options = {};
25830
+ var object = {};
25831
+ if (options.defaults)
25832
+ if ($util.Long) {
25833
+ var long = new $util.Long(0, 0, true);
25834
+ object.downloadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
25835
+ } else
25836
+ object.downloadTaskId = options.longs === String ? "0" : 0;
25837
+ if (message.downloadTaskId != null && message.hasOwnProperty("downloadTaskId"))
25838
+ if (typeof message.downloadTaskId === "number")
25839
+ object.downloadTaskId = options.longs === String ? String(message.downloadTaskId) : message.downloadTaskId;
25840
+ else
25841
+ 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;
25842
+ return object;
25843
+ };
25844
+
25845
+ /**
25846
+ * Converts this DownloadInfo to JSON.
25847
+ * @function toJSON
25848
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25849
+ * @instance
25850
+ * @returns {Object.<string,*>} JSON object
25851
+ */
25852
+ DownloadInfo.prototype.toJSON = function toJSON() {
25853
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25854
+ };
25855
+
25856
+ /**
25857
+ * Gets the default type url for DownloadInfo
25858
+ * @function getTypeUrl
25859
+ * @memberof file.FileSyncStartDownloadReplyBody.DownloadInfo
25860
+ * @static
25861
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
25862
+ * @returns {string} The default type url
25863
+ */
25864
+ DownloadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25865
+ if (typeUrlPrefix === undefined) {
25866
+ typeUrlPrefix = "type.googleapis.com";
25867
+ }
25868
+ return typeUrlPrefix + "/file.FileSyncStartDownloadReplyBody.DownloadInfo";
25869
+ };
25870
+
25871
+ return DownloadInfo;
25872
+ })();
25873
+
25874
+ return FileSyncStartDownloadReplyBody;
25446
25875
  })();
25447
25876
 
25448
25877
  file.AdoptRemoteRequestBody = (function() {