@milaboratories/pl-drivers 1.5.10 → 1.5.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 (118) hide show
  1. package/dist/clients/constructors.d.ts.map +1 -1
  2. package/dist/clients/download.d.ts.map +1 -1
  3. package/dist/clients/logs.d.ts.map +1 -1
  4. package/dist/clients/ls_api.d.ts.map +1 -1
  5. package/dist/clients/progress.d.ts.map +1 -1
  6. package/dist/clients/upload.d.ts.map +1 -1
  7. package/dist/drivers/download_blob.d.ts +2 -2
  8. package/dist/drivers/download_blob.d.ts.map +1 -1
  9. package/dist/drivers/download_blob_task.d.ts +2 -2
  10. package/dist/drivers/download_blob_task.d.ts.map +1 -1
  11. package/dist/drivers/download_blob_url/driver.d.ts +46 -0
  12. package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
  13. package/dist/drivers/download_blob_url/driver_id.d.ts +6 -0
  14. package/dist/drivers/download_blob_url/driver_id.d.ts.map +1 -0
  15. package/dist/drivers/download_blob_url/snapshot.d.ts +7 -0
  16. package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
  17. package/dist/drivers/download_blob_url/task.d.ts +64 -0
  18. package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
  19. package/dist/drivers/download_blob_url/url.d.ts +6 -0
  20. package/dist/drivers/download_blob_url/url.d.ts.map +1 -0
  21. package/dist/drivers/download_url.d.ts +2 -2
  22. package/dist/drivers/download_url.d.ts.map +1 -1
  23. package/dist/drivers/helpers/download_local_handle.d.ts.map +1 -1
  24. package/dist/drivers/helpers/download_remote_handle.d.ts.map +1 -1
  25. package/dist/drivers/helpers/files_cache.d.ts.map +1 -1
  26. package/dist/drivers/helpers/logs_handle.d.ts +1 -1
  27. package/dist/drivers/helpers/logs_handle.d.ts.map +1 -1
  28. package/dist/drivers/helpers/ls_remote_import_handle.d.ts +1 -1
  29. package/dist/drivers/helpers/ls_remote_import_handle.d.ts.map +1 -1
  30. package/dist/drivers/helpers/ls_storage_entry.d.ts +1 -1
  31. package/dist/drivers/helpers/ls_storage_entry.d.ts.map +1 -1
  32. package/dist/drivers/logs.d.ts +2 -2
  33. package/dist/drivers/logs.d.ts.map +1 -1
  34. package/dist/drivers/logs_stream.d.ts +2 -2
  35. package/dist/drivers/logs_stream.d.ts.map +1 -1
  36. package/dist/drivers/ls.d.ts +1 -1
  37. package/dist/drivers/ls.d.ts.map +1 -1
  38. package/dist/drivers/types.d.ts.map +1 -1
  39. package/dist/drivers/upload.d.ts +1 -1
  40. package/dist/drivers/upload.d.ts.map +1 -1
  41. package/dist/drivers/upload_task.d.ts +1 -1
  42. package/dist/drivers/upload_task.d.ts.map +1 -1
  43. package/dist/drivers/virtual_storages.d.ts.map +1 -1
  44. package/dist/helpers/download.d.ts.map +1 -1
  45. package/dist/index.d.ts +2 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2 -2
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +2312 -2067
  50. package/dist/index.mjs.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  52. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  54. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  55. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  56. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  57. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  58. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
  59. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
  60. package/dist/proto/google/api/http.d.ts +28 -28
  61. package/dist/proto/google/api/http.d.ts.map +1 -1
  62. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  65. package/package.json +9 -4
  66. package/src/clients/constructors.ts +11 -11
  67. package/src/clients/download.test.ts +11 -10
  68. package/src/clients/download.ts +15 -14
  69. package/src/clients/logs.ts +13 -12
  70. package/src/clients/ls_api.ts +7 -7
  71. package/src/clients/progress.ts +15 -13
  72. package/src/clients/upload.test.ts +6 -5
  73. package/src/clients/upload.ts +28 -26
  74. package/src/drivers/download_blob.test.ts +21 -20
  75. package/src/drivers/download_blob.ts +47 -42
  76. package/src/drivers/download_blob_task.ts +25 -21
  77. package/src/drivers/download_blob_url/driver.ts +225 -0
  78. package/src/drivers/download_blob_url/driver_id.ts +11 -0
  79. package/src/drivers/download_blob_url/snapshot.ts +20 -0
  80. package/src/drivers/download_blob_url/task.ts +230 -0
  81. package/src/drivers/download_blob_url/url.test.ts +39 -0
  82. package/src/drivers/download_blob_url/url.ts +43 -0
  83. package/src/drivers/download_url.test.ts +3 -3
  84. package/src/drivers/download_url.ts +21 -20
  85. package/src/drivers/helpers/download_local_handle.ts +2 -2
  86. package/src/drivers/helpers/download_remote_handle.ts +8 -8
  87. package/src/drivers/helpers/files_cache.test.ts +7 -6
  88. package/src/drivers/helpers/files_cache.ts +2 -1
  89. package/src/drivers/helpers/helpers.ts +1 -1
  90. package/src/drivers/helpers/logs_handle.ts +7 -7
  91. package/src/drivers/helpers/ls_remote_import_handle.ts +7 -7
  92. package/src/drivers/helpers/ls_storage_entry.ts +6 -5
  93. package/src/drivers/logs.test.ts +23 -22
  94. package/src/drivers/logs.ts +13 -12
  95. package/src/drivers/logs_stream.ts +42 -37
  96. package/src/drivers/ls.test.ts +2 -2
  97. package/src/drivers/ls.ts +38 -35
  98. package/src/drivers/types.ts +12 -11
  99. package/src/drivers/upload.test.ts +19 -17
  100. package/src/drivers/upload.ts +30 -25
  101. package/src/drivers/upload_task.ts +23 -19
  102. package/src/drivers/virtual_storages.ts +6 -6
  103. package/src/helpers/download.ts +8 -8
  104. package/src/index.ts +2 -0
  105. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +4 -4
  106. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +88 -73
  107. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +2 -2
  108. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +71 -56
  109. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +6 -5
  110. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +130 -106
  111. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +14 -10
  112. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +142 -121
  113. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +11 -8
  114. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +216 -174
  115. package/src/proto/google/api/http.ts +95 -86
  116. package/src/proto/google/protobuf/descriptor.ts +674 -593
  117. package/src/proto/google/protobuf/duration.ts +31 -26
  118. package/src/proto/google/protobuf/timestamp.ts +52 -44
@@ -198,31 +198,34 @@ class uploadapi$Type extends MessageType<uploadapi> {
198
198
  constructor() {
199
199
  super('MiLaboratories.Controller.Shared.uploadapi', []);
200
200
  }
201
+
201
202
  create(value?: PartialMessage<uploadapi>): uploadapi {
202
203
  const message = globalThis.Object.create(this.messagePrototype!);
203
204
  if (value !== undefined)
204
205
  reflectionMergePartial<uploadapi>(this, message, value);
205
206
  return message;
206
207
  }
208
+
207
209
  internalBinaryRead(
208
210
  reader: IBinaryReader,
209
211
  length: number,
210
212
  options: BinaryReadOptions,
211
- target?: uploadapi
213
+ target?: uploadapi,
212
214
  ): uploadapi {
213
215
  return target ?? this.create();
214
216
  }
217
+
215
218
  internalBinaryWrite(
216
219
  message: uploadapi,
217
220
  writer: IBinaryWriter,
218
- options: BinaryWriteOptions
221
+ options: BinaryWriteOptions,
219
222
  ): IBinaryWriter {
220
- let u = options.writeUnknownFields;
223
+ const u = options.writeUnknownFields;
221
224
  if (u !== false)
222
225
  (u == true ? UnknownFieldHandler.onWrite : u)(
223
226
  this.typeName,
224
227
  message,
225
- writer
228
+ writer,
226
229
  );
227
230
  return writer;
228
231
  }
@@ -236,31 +239,34 @@ class uploadapi_Init$Type extends MessageType<uploadapi_Init> {
236
239
  constructor() {
237
240
  super('MiLaboratories.Controller.Shared.uploadapi.Init', []);
238
241
  }
242
+
239
243
  create(value?: PartialMessage<uploadapi_Init>): uploadapi_Init {
240
244
  const message = globalThis.Object.create(this.messagePrototype!);
241
245
  if (value !== undefined)
242
246
  reflectionMergePartial<uploadapi_Init>(this, message, value);
243
247
  return message;
244
248
  }
249
+
245
250
  internalBinaryRead(
246
251
  reader: IBinaryReader,
247
252
  length: number,
248
253
  options: BinaryReadOptions,
249
- target?: uploadapi_Init
254
+ target?: uploadapi_Init,
250
255
  ): uploadapi_Init {
251
256
  return target ?? this.create();
252
257
  }
258
+
253
259
  internalBinaryWrite(
254
260
  message: uploadapi_Init,
255
261
  writer: IBinaryWriter,
256
- options: BinaryWriteOptions
262
+ options: BinaryWriteOptions,
257
263
  ): IBinaryWriter {
258
- let u = options.writeUnknownFields;
264
+ const u = options.writeUnknownFields;
259
265
  if (u !== false)
260
266
  (u == true ? UnknownFieldHandler.onWrite : u)(
261
267
  this.typeName,
262
268
  message,
263
- writer
269
+ writer,
264
270
  );
265
271
  return writer;
266
272
  }
@@ -277,13 +283,14 @@ class uploadapi_Init_Request$Type extends MessageType<uploadapi_Init_Request> {
277
283
  no: 1,
278
284
  name: 'resource_id',
279
285
  kind: 'scalar',
280
- T: 4 /*ScalarType.UINT64*/,
281
- L: 0 /*LongType.BIGINT*/
282
- }
286
+ T: 4 /* ScalarType.UINT64 */,
287
+ L: 0, /* LongType.BIGINT */
288
+ },
283
289
  ]);
284
290
  }
291
+
285
292
  create(
286
- value?: PartialMessage<uploadapi_Init_Request>
293
+ value?: PartialMessage<uploadapi_Init_Request>,
287
294
  ): uploadapi_Init_Request {
288
295
  const message = globalThis.Object.create(this.messagePrototype!);
289
296
  message.resourceId = 0n;
@@ -291,53 +298,55 @@ class uploadapi_Init_Request$Type extends MessageType<uploadapi_Init_Request> {
291
298
  reflectionMergePartial<uploadapi_Init_Request>(this, message, value);
292
299
  return message;
293
300
  }
301
+
294
302
  internalBinaryRead(
295
303
  reader: IBinaryReader,
296
304
  length: number,
297
305
  options: BinaryReadOptions,
298
- target?: uploadapi_Init_Request
306
+ target?: uploadapi_Init_Request,
299
307
  ): uploadapi_Init_Request {
300
- let message = target ?? this.create(),
308
+ const message = target ?? this.create(),
301
309
  end = reader.pos + length;
302
310
  while (reader.pos < end) {
303
- let [fieldNo, wireType] = reader.tag();
311
+ const [fieldNo, wireType] = reader.tag();
304
312
  switch (fieldNo) {
305
313
  case /* uint64 resource_id */ 1:
306
314
  message.resourceId = reader.uint64().toBigInt();
307
315
  break;
308
316
  default:
309
- let u = options.readUnknownField;
317
+ const u = options.readUnknownField;
310
318
  if (u === 'throw')
311
319
  throw new globalThis.Error(
312
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
320
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
313
321
  );
314
- let d = reader.skip(wireType);
322
+ const d = reader.skip(wireType);
315
323
  if (u !== false)
316
324
  (u === true ? UnknownFieldHandler.onRead : u)(
317
325
  this.typeName,
318
326
  message,
319
327
  fieldNo,
320
328
  wireType,
321
- d
329
+ d,
322
330
  );
323
331
  }
324
332
  }
325
333
  return message;
326
334
  }
335
+
327
336
  internalBinaryWrite(
328
337
  message: uploadapi_Init_Request,
329
338
  writer: IBinaryWriter,
330
- options: BinaryWriteOptions
339
+ options: BinaryWriteOptions,
331
340
  ): IBinaryWriter {
332
341
  /* uint64 resource_id = 1; */
333
342
  if (message.resourceId !== 0n)
334
343
  writer.tag(1, WireType.Varint).uint64(message.resourceId);
335
- let u = options.writeUnknownFields;
344
+ const u = options.writeUnknownFields;
336
345
  if (u !== false)
337
346
  (u == true ? UnknownFieldHandler.onWrite : u)(
338
347
  this.typeName,
339
348
  message,
340
- writer
349
+ writer,
341
350
  );
342
351
  return writer;
343
352
  }
@@ -354,21 +363,22 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
354
363
  no: 1,
355
364
  name: 'parts_count',
356
365
  kind: 'scalar',
357
- T: 4 /*ScalarType.UINT64*/,
358
- L: 0 /*LongType.BIGINT*/
366
+ T: 4 /* ScalarType.UINT64 */,
367
+ L: 0, /* LongType.BIGINT */
359
368
  },
360
369
  {
361
370
  no: 2,
362
371
  name: 'uploaded_parts',
363
372
  kind: 'scalar',
364
- repeat: 1 /*RepeatType.PACKED*/,
365
- T: 4 /*ScalarType.UINT64*/,
366
- L: 0 /*LongType.BIGINT*/
367
- }
373
+ repeat: 1 /* RepeatType.PACKED */,
374
+ T: 4 /* ScalarType.UINT64 */,
375
+ L: 0, /* LongType.BIGINT */
376
+ },
368
377
  ]);
369
378
  }
379
+
370
380
  create(
371
- value?: PartialMessage<uploadapi_Init_Response>
381
+ value?: PartialMessage<uploadapi_Init_Response>,
372
382
  ): uploadapi_Init_Response {
373
383
  const message = globalThis.Object.create(this.messagePrototype!);
374
384
  message.partsCount = 0n;
@@ -377,49 +387,51 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
377
387
  reflectionMergePartial<uploadapi_Init_Response>(this, message, value);
378
388
  return message;
379
389
  }
390
+
380
391
  internalBinaryRead(
381
392
  reader: IBinaryReader,
382
393
  length: number,
383
394
  options: BinaryReadOptions,
384
- target?: uploadapi_Init_Response
395
+ target?: uploadapi_Init_Response,
385
396
  ): uploadapi_Init_Response {
386
- let message = target ?? this.create(),
397
+ const message = target ?? this.create(),
387
398
  end = reader.pos + length;
388
399
  while (reader.pos < end) {
389
- let [fieldNo, wireType] = reader.tag();
400
+ const [fieldNo, wireType] = reader.tag();
390
401
  switch (fieldNo) {
391
402
  case /* uint64 parts_count */ 1:
392
403
  message.partsCount = reader.uint64().toBigInt();
393
404
  break;
394
405
  case /* repeated uint64 uploaded_parts */ 2:
395
406
  if (wireType === WireType.LengthDelimited)
396
- for (let e = reader.int32() + reader.pos; reader.pos < e; )
407
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
397
408
  message.uploadedParts.push(reader.uint64().toBigInt());
398
409
  else message.uploadedParts.push(reader.uint64().toBigInt());
399
410
  break;
400
411
  default:
401
- let u = options.readUnknownField;
412
+ const u = options.readUnknownField;
402
413
  if (u === 'throw')
403
414
  throw new globalThis.Error(
404
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
415
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
405
416
  );
406
- let d = reader.skip(wireType);
417
+ const d = reader.skip(wireType);
407
418
  if (u !== false)
408
419
  (u === true ? UnknownFieldHandler.onRead : u)(
409
420
  this.typeName,
410
421
  message,
411
422
  fieldNo,
412
423
  wireType,
413
- d
424
+ d,
414
425
  );
415
426
  }
416
427
  }
417
428
  return message;
418
429
  }
430
+
419
431
  internalBinaryWrite(
420
432
  message: uploadapi_Init_Response,
421
433
  writer: IBinaryWriter,
422
- options: BinaryWriteOptions
434
+ options: BinaryWriteOptions,
423
435
  ): IBinaryWriter {
424
436
  /* uint64 parts_count = 1; */
425
437
  if (message.partsCount !== 0n)
@@ -431,12 +443,12 @@ class uploadapi_Init_Response$Type extends MessageType<uploadapi_Init_Response>
431
443
  writer.uint64(message.uploadedParts[i]);
432
444
  writer.join();
433
445
  }
434
- let u = options.writeUnknownFields;
446
+ const u = options.writeUnknownFields;
435
447
  if (u !== false)
436
448
  (u == true ? UnknownFieldHandler.onWrite : u)(
437
449
  this.typeName,
438
450
  message,
439
- writer
451
+ writer,
440
452
  );
441
453
  return writer;
442
454
  }
@@ -450,33 +462,36 @@ class uploadapi_UpdateProgress$Type extends MessageType<uploadapi_UpdateProgress
450
462
  constructor() {
451
463
  super('MiLaboratories.Controller.Shared.uploadapi.UpdateProgress', []);
452
464
  }
465
+
453
466
  create(
454
- value?: PartialMessage<uploadapi_UpdateProgress>
467
+ value?: PartialMessage<uploadapi_UpdateProgress>,
455
468
  ): uploadapi_UpdateProgress {
456
469
  const message = globalThis.Object.create(this.messagePrototype!);
457
470
  if (value !== undefined)
458
471
  reflectionMergePartial<uploadapi_UpdateProgress>(this, message, value);
459
472
  return message;
460
473
  }
474
+
461
475
  internalBinaryRead(
462
476
  reader: IBinaryReader,
463
477
  length: number,
464
478
  options: BinaryReadOptions,
465
- target?: uploadapi_UpdateProgress
479
+ target?: uploadapi_UpdateProgress,
466
480
  ): uploadapi_UpdateProgress {
467
481
  return target ?? this.create();
468
482
  }
483
+
469
484
  internalBinaryWrite(
470
485
  message: uploadapi_UpdateProgress,
471
486
  writer: IBinaryWriter,
472
- options: BinaryWriteOptions
487
+ options: BinaryWriteOptions,
473
488
  ): IBinaryWriter {
474
- let u = options.writeUnknownFields;
489
+ const u = options.writeUnknownFields;
475
490
  if (u !== false)
476
491
  (u == true ? UnknownFieldHandler.onWrite : u)(
477
492
  this.typeName,
478
493
  message,
479
- writer
494
+ writer,
480
495
  );
481
496
  return writer;
482
497
  }
@@ -493,20 +508,21 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
493
508
  no: 1,
494
509
  name: 'resource_id',
495
510
  kind: 'scalar',
496
- T: 4 /*ScalarType.UINT64*/,
497
- L: 0 /*LongType.BIGINT*/
511
+ T: 4 /* ScalarType.UINT64 */,
512
+ L: 0, /* LongType.BIGINT */
498
513
  },
499
514
  {
500
515
  no: 2,
501
516
  name: 'bytes_processed',
502
517
  kind: 'scalar',
503
- T: 3 /*ScalarType.INT64*/,
504
- L: 0 /*LongType.BIGINT*/
505
- }
518
+ T: 3 /* ScalarType.INT64 */,
519
+ L: 0, /* LongType.BIGINT */
520
+ },
506
521
  ]);
507
522
  }
523
+
508
524
  create(
509
- value?: PartialMessage<uploadapi_UpdateProgress_Request>
525
+ value?: PartialMessage<uploadapi_UpdateProgress_Request>,
510
526
  ): uploadapi_UpdateProgress_Request {
511
527
  const message = globalThis.Object.create(this.messagePrototype!);
512
528
  message.resourceId = 0n;
@@ -515,20 +531,21 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
515
531
  reflectionMergePartial<uploadapi_UpdateProgress_Request>(
516
532
  this,
517
533
  message,
518
- value
534
+ value,
519
535
  );
520
536
  return message;
521
537
  }
538
+
522
539
  internalBinaryRead(
523
540
  reader: IBinaryReader,
524
541
  length: number,
525
542
  options: BinaryReadOptions,
526
- target?: uploadapi_UpdateProgress_Request
543
+ target?: uploadapi_UpdateProgress_Request,
527
544
  ): uploadapi_UpdateProgress_Request {
528
- let message = target ?? this.create(),
545
+ const message = target ?? this.create(),
529
546
  end = reader.pos + length;
530
547
  while (reader.pos < end) {
531
- let [fieldNo, wireType] = reader.tag();
548
+ const [fieldNo, wireType] = reader.tag();
532
549
  switch (fieldNo) {
533
550
  case /* uint64 resource_id */ 1:
534
551
  message.resourceId = reader.uint64().toBigInt();
@@ -537,28 +554,29 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
537
554
  message.bytesProcessed = reader.int64().toBigInt();
538
555
  break;
539
556
  default:
540
- let u = options.readUnknownField;
557
+ const u = options.readUnknownField;
541
558
  if (u === 'throw')
542
559
  throw new globalThis.Error(
543
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
560
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
544
561
  );
545
- let d = reader.skip(wireType);
562
+ const d = reader.skip(wireType);
546
563
  if (u !== false)
547
564
  (u === true ? UnknownFieldHandler.onRead : u)(
548
565
  this.typeName,
549
566
  message,
550
567
  fieldNo,
551
568
  wireType,
552
- d
569
+ d,
553
570
  );
554
571
  }
555
572
  }
556
573
  return message;
557
574
  }
575
+
558
576
  internalBinaryWrite(
559
577
  message: uploadapi_UpdateProgress_Request,
560
578
  writer: IBinaryWriter,
561
- options: BinaryWriteOptions
579
+ options: BinaryWriteOptions,
562
580
  ): IBinaryWriter {
563
581
  /* uint64 resource_id = 1; */
564
582
  if (message.resourceId !== 0n)
@@ -566,12 +584,12 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
566
584
  /* int64 bytes_processed = 2; */
567
585
  if (message.bytesProcessed !== 0n)
568
586
  writer.tag(2, WireType.Varint).int64(message.bytesProcessed);
569
- let u = options.writeUnknownFields;
587
+ const u = options.writeUnknownFields;
570
588
  if (u !== false)
571
589
  (u == true ? UnknownFieldHandler.onWrite : u)(
572
590
  this.typeName,
573
591
  message,
574
- writer
592
+ writer,
575
593
  );
576
594
  return writer;
577
595
  }
@@ -579,47 +597,50 @@ class uploadapi_UpdateProgress_Request$Type extends MessageType<uploadapi_Update
579
597
  /**
580
598
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.UpdateProgress.Request
581
599
  */
582
- export const uploadapi_UpdateProgress_Request =
583
- new uploadapi_UpdateProgress_Request$Type();
600
+ export const uploadapi_UpdateProgress_Request
601
+ = new uploadapi_UpdateProgress_Request$Type();
584
602
  // @generated message type with reflection information, may provide speed optimized methods
585
603
  class uploadapi_UpdateProgress_Response$Type extends MessageType<uploadapi_UpdateProgress_Response> {
586
604
  constructor() {
587
605
  super(
588
606
  'MiLaboratories.Controller.Shared.uploadapi.UpdateProgress.Response',
589
- []
607
+ [],
590
608
  );
591
609
  }
610
+
592
611
  create(
593
- value?: PartialMessage<uploadapi_UpdateProgress_Response>
612
+ value?: PartialMessage<uploadapi_UpdateProgress_Response>,
594
613
  ): uploadapi_UpdateProgress_Response {
595
614
  const message = globalThis.Object.create(this.messagePrototype!);
596
615
  if (value !== undefined)
597
616
  reflectionMergePartial<uploadapi_UpdateProgress_Response>(
598
617
  this,
599
618
  message,
600
- value
619
+ value,
601
620
  );
602
621
  return message;
603
622
  }
623
+
604
624
  internalBinaryRead(
605
625
  reader: IBinaryReader,
606
626
  length: number,
607
627
  options: BinaryReadOptions,
608
- target?: uploadapi_UpdateProgress_Response
628
+ target?: uploadapi_UpdateProgress_Response,
609
629
  ): uploadapi_UpdateProgress_Response {
610
630
  return target ?? this.create();
611
631
  }
632
+
612
633
  internalBinaryWrite(
613
634
  message: uploadapi_UpdateProgress_Response,
614
635
  writer: IBinaryWriter,
615
- options: BinaryWriteOptions
636
+ options: BinaryWriteOptions,
616
637
  ): IBinaryWriter {
617
- let u = options.writeUnknownFields;
638
+ const u = options.writeUnknownFields;
618
639
  if (u !== false)
619
640
  (u == true ? UnknownFieldHandler.onWrite : u)(
620
641
  this.typeName,
621
642
  message,
622
- writer
643
+ writer,
623
644
  );
624
645
  return writer;
625
646
  }
@@ -627,38 +648,41 @@ class uploadapi_UpdateProgress_Response$Type extends MessageType<uploadapi_Updat
627
648
  /**
628
649
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.UpdateProgress.Response
629
650
  */
630
- export const uploadapi_UpdateProgress_Response =
631
- new uploadapi_UpdateProgress_Response$Type();
651
+ export const uploadapi_UpdateProgress_Response
652
+ = new uploadapi_UpdateProgress_Response$Type();
632
653
  // @generated message type with reflection information, may provide speed optimized methods
633
654
  class uploadapi_GetPartURL$Type extends MessageType<uploadapi_GetPartURL> {
634
655
  constructor() {
635
656
  super('MiLaboratories.Controller.Shared.uploadapi.GetPartURL', []);
636
657
  }
658
+
637
659
  create(value?: PartialMessage<uploadapi_GetPartURL>): uploadapi_GetPartURL {
638
660
  const message = globalThis.Object.create(this.messagePrototype!);
639
661
  if (value !== undefined)
640
662
  reflectionMergePartial<uploadapi_GetPartURL>(this, message, value);
641
663
  return message;
642
664
  }
665
+
643
666
  internalBinaryRead(
644
667
  reader: IBinaryReader,
645
668
  length: number,
646
669
  options: BinaryReadOptions,
647
- target?: uploadapi_GetPartURL
670
+ target?: uploadapi_GetPartURL,
648
671
  ): uploadapi_GetPartURL {
649
672
  return target ?? this.create();
650
673
  }
674
+
651
675
  internalBinaryWrite(
652
676
  message: uploadapi_GetPartURL,
653
677
  writer: IBinaryWriter,
654
- options: BinaryWriteOptions
678
+ options: BinaryWriteOptions,
655
679
  ): IBinaryWriter {
656
- let u = options.writeUnknownFields;
680
+ const u = options.writeUnknownFields;
657
681
  if (u !== false)
658
682
  (u == true ? UnknownFieldHandler.onWrite : u)(
659
683
  this.typeName,
660
684
  message,
661
- writer
685
+ writer,
662
686
  );
663
687
  return writer;
664
688
  }
@@ -675,27 +699,28 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
675
699
  no: 1,
676
700
  name: 'resource_id',
677
701
  kind: 'scalar',
678
- T: 4 /*ScalarType.UINT64*/,
679
- L: 0 /*LongType.BIGINT*/
702
+ T: 4 /* ScalarType.UINT64 */,
703
+ L: 0, /* LongType.BIGINT */
680
704
  },
681
705
  {
682
706
  no: 2,
683
707
  name: 'part_number',
684
708
  kind: 'scalar',
685
- T: 4 /*ScalarType.UINT64*/,
686
- L: 0 /*LongType.BIGINT*/
709
+ T: 4 /* ScalarType.UINT64 */,
710
+ L: 0, /* LongType.BIGINT */
687
711
  },
688
712
  {
689
713
  no: 3,
690
714
  name: 'uploaded_part_size',
691
715
  kind: 'scalar',
692
- T: 4 /*ScalarType.UINT64*/,
693
- L: 0 /*LongType.BIGINT*/
694
- }
716
+ T: 4 /* ScalarType.UINT64 */,
717
+ L: 0, /* LongType.BIGINT */
718
+ },
695
719
  ]);
696
720
  }
721
+
697
722
  create(
698
- value?: PartialMessage<uploadapi_GetPartURL_Request>
723
+ value?: PartialMessage<uploadapi_GetPartURL_Request>,
699
724
  ): uploadapi_GetPartURL_Request {
700
725
  const message = globalThis.Object.create(this.messagePrototype!);
701
726
  message.resourceId = 0n;
@@ -705,20 +730,21 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
705
730
  reflectionMergePartial<uploadapi_GetPartURL_Request>(
706
731
  this,
707
732
  message,
708
- value
733
+ value,
709
734
  );
710
735
  return message;
711
736
  }
737
+
712
738
  internalBinaryRead(
713
739
  reader: IBinaryReader,
714
740
  length: number,
715
741
  options: BinaryReadOptions,
716
- target?: uploadapi_GetPartURL_Request
742
+ target?: uploadapi_GetPartURL_Request,
717
743
  ): uploadapi_GetPartURL_Request {
718
- let message = target ?? this.create(),
744
+ const message = target ?? this.create(),
719
745
  end = reader.pos + length;
720
746
  while (reader.pos < end) {
721
- let [fieldNo, wireType] = reader.tag();
747
+ const [fieldNo, wireType] = reader.tag();
722
748
  switch (fieldNo) {
723
749
  case /* uint64 resource_id */ 1:
724
750
  message.resourceId = reader.uint64().toBigInt();
@@ -730,28 +756,29 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
730
756
  message.uploadedPartSize = reader.uint64().toBigInt();
731
757
  break;
732
758
  default:
733
- let u = options.readUnknownField;
759
+ const u = options.readUnknownField;
734
760
  if (u === 'throw')
735
761
  throw new globalThis.Error(
736
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
762
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
737
763
  );
738
- let d = reader.skip(wireType);
764
+ const d = reader.skip(wireType);
739
765
  if (u !== false)
740
766
  (u === true ? UnknownFieldHandler.onRead : u)(
741
767
  this.typeName,
742
768
  message,
743
769
  fieldNo,
744
770
  wireType,
745
- d
771
+ d,
746
772
  );
747
773
  }
748
774
  }
749
775
  return message;
750
776
  }
777
+
751
778
  internalBinaryWrite(
752
779
  message: uploadapi_GetPartURL_Request,
753
780
  writer: IBinaryWriter,
754
- options: BinaryWriteOptions
781
+ options: BinaryWriteOptions,
755
782
  ): IBinaryWriter {
756
783
  /* uint64 resource_id = 1; */
757
784
  if (message.resourceId !== 0n)
@@ -762,12 +789,12 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
762
789
  /* uint64 uploaded_part_size = 3; */
763
790
  if (message.uploadedPartSize !== 0n)
764
791
  writer.tag(3, WireType.Varint).uint64(message.uploadedPartSize);
765
- let u = options.writeUnknownFields;
792
+ const u = options.writeUnknownFields;
766
793
  if (u !== false)
767
794
  (u == true ? UnknownFieldHandler.onWrite : u)(
768
795
  this.typeName,
769
796
  message,
770
- writer
797
+ writer,
771
798
  );
772
799
  return writer;
773
800
  }
@@ -775,8 +802,8 @@ class uploadapi_GetPartURL_Request$Type extends MessageType<uploadapi_GetPartURL
775
802
  /**
776
803
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.GetPartURL.Request
777
804
  */
778
- export const uploadapi_GetPartURL_Request =
779
- new uploadapi_GetPartURL_Request$Type();
805
+ export const uploadapi_GetPartURL_Request
806
+ = new uploadapi_GetPartURL_Request$Type();
780
807
  // @generated message type with reflection information, may provide speed optimized methods
781
808
  class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPartURL_HTTPHeader> {
782
809
  constructor() {
@@ -786,19 +813,20 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
786
813
  name: 'Name',
787
814
  kind: 'scalar',
788
815
  jsonName: 'Name',
789
- T: 9 /*ScalarType.STRING*/
816
+ T: 9, /* ScalarType.STRING */
790
817
  },
791
818
  {
792
819
  no: 2,
793
820
  name: 'Value',
794
821
  kind: 'scalar',
795
822
  jsonName: 'Value',
796
- T: 9 /*ScalarType.STRING*/
797
- }
823
+ T: 9, /* ScalarType.STRING */
824
+ },
798
825
  ]);
799
826
  }
827
+
800
828
  create(
801
- value?: PartialMessage<uploadapi_GetPartURL_HTTPHeader>
829
+ value?: PartialMessage<uploadapi_GetPartURL_HTTPHeader>,
802
830
  ): uploadapi_GetPartURL_HTTPHeader {
803
831
  const message = globalThis.Object.create(this.messagePrototype!);
804
832
  message.name = '';
@@ -807,50 +835,52 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
807
835
  reflectionMergePartial<uploadapi_GetPartURL_HTTPHeader>(
808
836
  this,
809
837
  message,
810
- value
838
+ value,
811
839
  );
812
840
  return message;
813
841
  }
842
+
814
843
  internalBinaryRead(
815
844
  reader: IBinaryReader,
816
845
  length: number,
817
846
  options: BinaryReadOptions,
818
- target?: uploadapi_GetPartURL_HTTPHeader
847
+ target?: uploadapi_GetPartURL_HTTPHeader,
819
848
  ): uploadapi_GetPartURL_HTTPHeader {
820
- let message = target ?? this.create(),
849
+ const message = target ?? this.create(),
821
850
  end = reader.pos + length;
822
851
  while (reader.pos < end) {
823
- let [fieldNo, wireType] = reader.tag();
852
+ const [fieldNo, wireType] = reader.tag();
824
853
  switch (fieldNo) {
825
- case /* string Name = 1 [json_name = "Name"];*/ 1:
854
+ case /* string Name = 1 [json_name = "Name"]; */ 1:
826
855
  message.name = reader.string();
827
856
  break;
828
- case /* string Value = 2 [json_name = "Value"];*/ 2:
857
+ case /* string Value = 2 [json_name = "Value"]; */ 2:
829
858
  message.value = reader.string();
830
859
  break;
831
860
  default:
832
- let u = options.readUnknownField;
861
+ const u = options.readUnknownField;
833
862
  if (u === 'throw')
834
863
  throw new globalThis.Error(
835
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
864
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
836
865
  );
837
- let d = reader.skip(wireType);
866
+ const d = reader.skip(wireType);
838
867
  if (u !== false)
839
868
  (u === true ? UnknownFieldHandler.onRead : u)(
840
869
  this.typeName,
841
870
  message,
842
871
  fieldNo,
843
872
  wireType,
844
- d
873
+ d,
845
874
  );
846
875
  }
847
876
  }
848
877
  return message;
849
878
  }
879
+
850
880
  internalBinaryWrite(
851
881
  message: uploadapi_GetPartURL_HTTPHeader,
852
882
  writer: IBinaryWriter,
853
- options: BinaryWriteOptions
883
+ options: BinaryWriteOptions,
854
884
  ): IBinaryWriter {
855
885
  /* string Name = 1 [json_name = "Name"]; */
856
886
  if (message.name !== '')
@@ -858,12 +888,12 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
858
888
  /* string Value = 2 [json_name = "Value"]; */
859
889
  if (message.value !== '')
860
890
  writer.tag(2, WireType.LengthDelimited).string(message.value);
861
- let u = options.writeUnknownFields;
891
+ const u = options.writeUnknownFields;
862
892
  if (u !== false)
863
893
  (u == true ? UnknownFieldHandler.onWrite : u)(
864
894
  this.typeName,
865
895
  message,
866
- writer
896
+ writer,
867
897
  );
868
898
  return writer;
869
899
  }
@@ -871,39 +901,40 @@ class uploadapi_GetPartURL_HTTPHeader$Type extends MessageType<uploadapi_GetPart
871
901
  /**
872
902
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.GetPartURL.HTTPHeader
873
903
  */
874
- export const uploadapi_GetPartURL_HTTPHeader =
875
- new uploadapi_GetPartURL_HTTPHeader$Type();
904
+ export const uploadapi_GetPartURL_HTTPHeader
905
+ = new uploadapi_GetPartURL_HTTPHeader$Type();
876
906
  // @generated message type with reflection information, may provide speed optimized methods
877
907
  class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartURL_Response> {
878
908
  constructor() {
879
909
  super('MiLaboratories.Controller.Shared.uploadapi.GetPartURL.Response', [
880
- { no: 1, name: 'upload_url', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
881
- { no: 2, name: 'method', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
910
+ { no: 1, name: 'upload_url', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
911
+ { no: 2, name: 'method', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
882
912
  {
883
913
  no: 3,
884
914
  name: 'headers',
885
915
  kind: 'message',
886
- repeat: 1 /*RepeatType.PACKED*/,
887
- T: () => uploadapi_GetPartURL_HTTPHeader
916
+ repeat: 1 /* RepeatType.PACKED */,
917
+ T: () => uploadapi_GetPartURL_HTTPHeader,
888
918
  },
889
919
  {
890
920
  no: 4,
891
921
  name: 'chunk_start',
892
922
  kind: 'scalar',
893
- T: 4 /*ScalarType.UINT64*/,
894
- L: 0 /*LongType.BIGINT*/
923
+ T: 4 /* ScalarType.UINT64 */,
924
+ L: 0, /* LongType.BIGINT */
895
925
  },
896
926
  {
897
927
  no: 5,
898
928
  name: 'chunk_end',
899
929
  kind: 'scalar',
900
- T: 4 /*ScalarType.UINT64*/,
901
- L: 0 /*LongType.BIGINT*/
902
- }
930
+ T: 4 /* ScalarType.UINT64 */,
931
+ L: 0, /* LongType.BIGINT */
932
+ },
903
933
  ]);
904
934
  }
935
+
905
936
  create(
906
- value?: PartialMessage<uploadapi_GetPartURL_Response>
937
+ value?: PartialMessage<uploadapi_GetPartURL_Response>,
907
938
  ): uploadapi_GetPartURL_Response {
908
939
  const message = globalThis.Object.create(this.messagePrototype!);
909
940
  message.uploadUrl = '';
@@ -915,20 +946,21 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
915
946
  reflectionMergePartial<uploadapi_GetPartURL_Response>(
916
947
  this,
917
948
  message,
918
- value
949
+ value,
919
950
  );
920
951
  return message;
921
952
  }
953
+
922
954
  internalBinaryRead(
923
955
  reader: IBinaryReader,
924
956
  length: number,
925
957
  options: BinaryReadOptions,
926
- target?: uploadapi_GetPartURL_Response
958
+ target?: uploadapi_GetPartURL_Response,
927
959
  ): uploadapi_GetPartURL_Response {
928
- let message = target ?? this.create(),
960
+ const message = target ?? this.create(),
929
961
  end = reader.pos + length;
930
962
  while (reader.pos < end) {
931
- let [fieldNo, wireType] = reader.tag();
963
+ const [fieldNo, wireType] = reader.tag();
932
964
  switch (fieldNo) {
933
965
  case /* string upload_url */ 1:
934
966
  message.uploadUrl = reader.string();
@@ -941,8 +973,8 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
941
973
  uploadapi_GetPartURL_HTTPHeader.internalBinaryRead(
942
974
  reader,
943
975
  reader.uint32(),
944
- options
945
- )
976
+ options,
977
+ ),
946
978
  );
947
979
  break;
948
980
  case /* uint64 chunk_start */ 4:
@@ -952,28 +984,29 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
952
984
  message.chunkEnd = reader.uint64().toBigInt();
953
985
  break;
954
986
  default:
955
- let u = options.readUnknownField;
987
+ const u = options.readUnknownField;
956
988
  if (u === 'throw')
957
989
  throw new globalThis.Error(
958
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
990
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
959
991
  );
960
- let d = reader.skip(wireType);
992
+ const d = reader.skip(wireType);
961
993
  if (u !== false)
962
994
  (u === true ? UnknownFieldHandler.onRead : u)(
963
995
  this.typeName,
964
996
  message,
965
997
  fieldNo,
966
998
  wireType,
967
- d
999
+ d,
968
1000
  );
969
1001
  }
970
1002
  }
971
1003
  return message;
972
1004
  }
1005
+
973
1006
  internalBinaryWrite(
974
1007
  message: uploadapi_GetPartURL_Response,
975
1008
  writer: IBinaryWriter,
976
- options: BinaryWriteOptions
1009
+ options: BinaryWriteOptions,
977
1010
  ): IBinaryWriter {
978
1011
  /* string upload_url = 1; */
979
1012
  if (message.uploadUrl !== '')
@@ -987,7 +1020,7 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
987
1020
  .internalBinaryWrite(
988
1021
  message.headers[i],
989
1022
  writer.tag(3, WireType.LengthDelimited).fork(),
990
- options
1023
+ options,
991
1024
  )
992
1025
  .join();
993
1026
  /* uint64 chunk_start = 4; */
@@ -996,12 +1029,12 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
996
1029
  /* uint64 chunk_end = 5; */
997
1030
  if (message.chunkEnd !== 0n)
998
1031
  writer.tag(5, WireType.Varint).uint64(message.chunkEnd);
999
- let u = options.writeUnknownFields;
1032
+ const u = options.writeUnknownFields;
1000
1033
  if (u !== false)
1001
1034
  (u == true ? UnknownFieldHandler.onWrite : u)(
1002
1035
  this.typeName,
1003
1036
  message,
1004
- writer
1037
+ writer,
1005
1038
  );
1006
1039
  return writer;
1007
1040
  }
@@ -1009,38 +1042,41 @@ class uploadapi_GetPartURL_Response$Type extends MessageType<uploadapi_GetPartUR
1009
1042
  /**
1010
1043
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.GetPartURL.Response
1011
1044
  */
1012
- export const uploadapi_GetPartURL_Response =
1013
- new uploadapi_GetPartURL_Response$Type();
1045
+ export const uploadapi_GetPartURL_Response
1046
+ = new uploadapi_GetPartURL_Response$Type();
1014
1047
  // @generated message type with reflection information, may provide speed optimized methods
1015
1048
  class uploadapi_Finalize$Type extends MessageType<uploadapi_Finalize> {
1016
1049
  constructor() {
1017
1050
  super('MiLaboratories.Controller.Shared.uploadapi.Finalize', []);
1018
1051
  }
1052
+
1019
1053
  create(value?: PartialMessage<uploadapi_Finalize>): uploadapi_Finalize {
1020
1054
  const message = globalThis.Object.create(this.messagePrototype!);
1021
1055
  if (value !== undefined)
1022
1056
  reflectionMergePartial<uploadapi_Finalize>(this, message, value);
1023
1057
  return message;
1024
1058
  }
1059
+
1025
1060
  internalBinaryRead(
1026
1061
  reader: IBinaryReader,
1027
1062
  length: number,
1028
1063
  options: BinaryReadOptions,
1029
- target?: uploadapi_Finalize
1064
+ target?: uploadapi_Finalize,
1030
1065
  ): uploadapi_Finalize {
1031
1066
  return target ?? this.create();
1032
1067
  }
1068
+
1033
1069
  internalBinaryWrite(
1034
1070
  message: uploadapi_Finalize,
1035
1071
  writer: IBinaryWriter,
1036
- options: BinaryWriteOptions
1072
+ options: BinaryWriteOptions,
1037
1073
  ): IBinaryWriter {
1038
- let u = options.writeUnknownFields;
1074
+ const u = options.writeUnknownFields;
1039
1075
  if (u !== false)
1040
1076
  (u == true ? UnknownFieldHandler.onWrite : u)(
1041
1077
  this.typeName,
1042
1078
  message,
1043
- writer
1079
+ writer,
1044
1080
  );
1045
1081
  return writer;
1046
1082
  }
@@ -1057,13 +1093,14 @@ class uploadapi_Finalize_Request$Type extends MessageType<uploadapi_Finalize_Req
1057
1093
  no: 1,
1058
1094
  name: 'resource_id',
1059
1095
  kind: 'scalar',
1060
- T: 4 /*ScalarType.UINT64*/,
1061
- L: 0 /*LongType.BIGINT*/
1062
- }
1096
+ T: 4 /* ScalarType.UINT64 */,
1097
+ L: 0, /* LongType.BIGINT */
1098
+ },
1063
1099
  ]);
1064
1100
  }
1101
+
1065
1102
  create(
1066
- value?: PartialMessage<uploadapi_Finalize_Request>
1103
+ value?: PartialMessage<uploadapi_Finalize_Request>,
1067
1104
  ): uploadapi_Finalize_Request {
1068
1105
  const message = globalThis.Object.create(this.messagePrototype!);
1069
1106
  message.resourceId = 0n;
@@ -1071,53 +1108,55 @@ class uploadapi_Finalize_Request$Type extends MessageType<uploadapi_Finalize_Req
1071
1108
  reflectionMergePartial<uploadapi_Finalize_Request>(this, message, value);
1072
1109
  return message;
1073
1110
  }
1111
+
1074
1112
  internalBinaryRead(
1075
1113
  reader: IBinaryReader,
1076
1114
  length: number,
1077
1115
  options: BinaryReadOptions,
1078
- target?: uploadapi_Finalize_Request
1116
+ target?: uploadapi_Finalize_Request,
1079
1117
  ): uploadapi_Finalize_Request {
1080
- let message = target ?? this.create(),
1118
+ const message = target ?? this.create(),
1081
1119
  end = reader.pos + length;
1082
1120
  while (reader.pos < end) {
1083
- let [fieldNo, wireType] = reader.tag();
1121
+ const [fieldNo, wireType] = reader.tag();
1084
1122
  switch (fieldNo) {
1085
1123
  case /* uint64 resource_id */ 1:
1086
1124
  message.resourceId = reader.uint64().toBigInt();
1087
1125
  break;
1088
1126
  default:
1089
- let u = options.readUnknownField;
1127
+ const u = options.readUnknownField;
1090
1128
  if (u === 'throw')
1091
1129
  throw new globalThis.Error(
1092
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
1130
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
1093
1131
  );
1094
- let d = reader.skip(wireType);
1132
+ const d = reader.skip(wireType);
1095
1133
  if (u !== false)
1096
1134
  (u === true ? UnknownFieldHandler.onRead : u)(
1097
1135
  this.typeName,
1098
1136
  message,
1099
1137
  fieldNo,
1100
1138
  wireType,
1101
- d
1139
+ d,
1102
1140
  );
1103
1141
  }
1104
1142
  }
1105
1143
  return message;
1106
1144
  }
1145
+
1107
1146
  internalBinaryWrite(
1108
1147
  message: uploadapi_Finalize_Request,
1109
1148
  writer: IBinaryWriter,
1110
- options: BinaryWriteOptions
1149
+ options: BinaryWriteOptions,
1111
1150
  ): IBinaryWriter {
1112
1151
  /* uint64 resource_id = 1; */
1113
1152
  if (message.resourceId !== 0n)
1114
1153
  writer.tag(1, WireType.Varint).uint64(message.resourceId);
1115
- let u = options.writeUnknownFields;
1154
+ const u = options.writeUnknownFields;
1116
1155
  if (u !== false)
1117
1156
  (u == true ? UnknownFieldHandler.onWrite : u)(
1118
1157
  this.typeName,
1119
1158
  message,
1120
- writer
1159
+ writer,
1121
1160
  );
1122
1161
  return writer;
1123
1162
  }
@@ -1131,33 +1170,36 @@ class uploadapi_Finalize_Response$Type extends MessageType<uploadapi_Finalize_Re
1131
1170
  constructor() {
1132
1171
  super('MiLaboratories.Controller.Shared.uploadapi.Finalize.Response', []);
1133
1172
  }
1173
+
1134
1174
  create(
1135
- value?: PartialMessage<uploadapi_Finalize_Response>
1175
+ value?: PartialMessage<uploadapi_Finalize_Response>,
1136
1176
  ): uploadapi_Finalize_Response {
1137
1177
  const message = globalThis.Object.create(this.messagePrototype!);
1138
1178
  if (value !== undefined)
1139
1179
  reflectionMergePartial<uploadapi_Finalize_Response>(this, message, value);
1140
1180
  return message;
1141
1181
  }
1182
+
1142
1183
  internalBinaryRead(
1143
1184
  reader: IBinaryReader,
1144
1185
  length: number,
1145
1186
  options: BinaryReadOptions,
1146
- target?: uploadapi_Finalize_Response
1187
+ target?: uploadapi_Finalize_Response,
1147
1188
  ): uploadapi_Finalize_Response {
1148
1189
  return target ?? this.create();
1149
1190
  }
1191
+
1150
1192
  internalBinaryWrite(
1151
1193
  message: uploadapi_Finalize_Response,
1152
1194
  writer: IBinaryWriter,
1153
- options: BinaryWriteOptions
1195
+ options: BinaryWriteOptions,
1154
1196
  ): IBinaryWriter {
1155
- let u = options.writeUnknownFields;
1197
+ const u = options.writeUnknownFields;
1156
1198
  if (u !== false)
1157
1199
  (u == true ? UnknownFieldHandler.onWrite : u)(
1158
1200
  this.typeName,
1159
1201
  message,
1160
- writer
1202
+ writer,
1161
1203
  );
1162
1204
  return writer;
1163
1205
  }
@@ -1165,8 +1207,8 @@ class uploadapi_Finalize_Response$Type extends MessageType<uploadapi_Finalize_Re
1165
1207
  /**
1166
1208
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.uploadapi.Finalize.Response
1167
1209
  */
1168
- export const uploadapi_Finalize_Response =
1169
- new uploadapi_Finalize_Response$Type();
1210
+ export const uploadapi_Finalize_Response
1211
+ = new uploadapi_Finalize_Response$Type();
1170
1212
  /**
1171
1213
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Upload
1172
1214
  */
@@ -1177,25 +1219,25 @@ export const Upload = new ServiceType(
1177
1219
  name: 'Init',
1178
1220
  options: {},
1179
1221
  I: uploadapi_Init_Request,
1180
- O: uploadapi_Init_Response
1222
+ O: uploadapi_Init_Response,
1181
1223
  },
1182
1224
  {
1183
1225
  name: 'GetPartURL',
1184
1226
  options: {},
1185
1227
  I: uploadapi_GetPartURL_Request,
1186
- O: uploadapi_GetPartURL_Response
1228
+ O: uploadapi_GetPartURL_Response,
1187
1229
  },
1188
1230
  {
1189
1231
  name: 'UpdateProgress',
1190
1232
  options: {},
1191
1233
  I: uploadapi_UpdateProgress_Request,
1192
- O: uploadapi_UpdateProgress_Response
1234
+ O: uploadapi_UpdateProgress_Response,
1193
1235
  },
1194
1236
  {
1195
1237
  name: 'Finalize',
1196
1238
  options: {},
1197
1239
  I: uploadapi_Finalize_Request,
1198
- O: uploadapi_Finalize_Response
1199
- }
1200
- ]
1240
+ O: uploadapi_Finalize_Response,
1241
+ },
1242
+ ],
1201
1243
  );