@milaboratories/pl-drivers 1.5.9 → 1.5.11

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 +63 -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 +2310 -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 +11 -6
  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 +222 -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
@@ -252,31 +252,34 @@ class StreamingAPI$Type extends MessageType<StreamingAPI> {
252
252
  constructor() {
253
253
  super('MiLaboratories.Controller.Shared.StreamingAPI', []);
254
254
  }
255
+
255
256
  create(value?: PartialMessage<StreamingAPI>): StreamingAPI {
256
257
  const message = globalThis.Object.create(this.messagePrototype!);
257
258
  if (value !== undefined)
258
259
  reflectionMergePartial<StreamingAPI>(this, message, value);
259
260
  return message;
260
261
  }
262
+
261
263
  internalBinaryRead(
262
264
  reader: IBinaryReader,
263
265
  length: number,
264
266
  options: BinaryReadOptions,
265
- target?: StreamingAPI
267
+ target?: StreamingAPI,
266
268
  ): StreamingAPI {
267
269
  return target ?? this.create();
268
270
  }
271
+
269
272
  internalBinaryWrite(
270
273
  message: StreamingAPI,
271
274
  writer: IBinaryWriter,
272
- options: BinaryWriteOptions
275
+ options: BinaryWriteOptions,
273
276
  ): IBinaryWriter {
274
- let u = options.writeUnknownFields;
277
+ const u = options.writeUnknownFields;
275
278
  if (u !== false)
276
279
  (u == true ? UnknownFieldHandler.onWrite : u)(
277
280
  this.typeName,
278
281
  message,
279
- writer
282
+ writer,
280
283
  );
281
284
  return writer;
282
285
  }
@@ -293,35 +296,36 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
293
296
  no: 1,
294
297
  name: 'resource_id',
295
298
  kind: 'scalar',
296
- T: 4 /*ScalarType.UINT64*/,
297
- L: 0 /*LongType.BIGINT*/
299
+ T: 4 /* ScalarType.UINT64 */,
300
+ L: 0, /* LongType.BIGINT */
298
301
  },
299
302
  {
300
303
  no: 2,
301
304
  name: 'offset',
302
305
  kind: 'scalar',
303
- T: 3 /*ScalarType.INT64*/,
304
- L: 0 /*LongType.BIGINT*/
306
+ T: 3 /* ScalarType.INT64 */,
307
+ L: 0, /* LongType.BIGINT */
305
308
  },
306
309
  {
307
310
  no: 11,
308
311
  name: 'chunk_size',
309
312
  kind: 'scalar',
310
313
  opt: true,
311
- T: 13 /*ScalarType.UINT32*/
314
+ T: 13, /* ScalarType.UINT32 */
312
315
  },
313
316
  {
314
317
  no: 20,
315
318
  name: 'read_limit',
316
319
  kind: 'scalar',
317
320
  opt: true,
318
- T: 3 /*ScalarType.INT64*/,
319
- L: 0 /*LongType.BIGINT*/
320
- }
321
+ T: 3 /* ScalarType.INT64 */,
322
+ L: 0, /* LongType.BIGINT */
323
+ },
321
324
  ]);
322
325
  }
326
+
323
327
  create(
324
- value?: PartialMessage<StreamingAPI_StreamBinary>
328
+ value?: PartialMessage<StreamingAPI_StreamBinary>,
325
329
  ): StreamingAPI_StreamBinary {
326
330
  const message = globalThis.Object.create(this.messagePrototype!);
327
331
  message.resourceId = 0n;
@@ -330,16 +334,17 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
330
334
  reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
331
335
  return message;
332
336
  }
337
+
333
338
  internalBinaryRead(
334
339
  reader: IBinaryReader,
335
340
  length: number,
336
341
  options: BinaryReadOptions,
337
- target?: StreamingAPI_StreamBinary
342
+ target?: StreamingAPI_StreamBinary,
338
343
  ): StreamingAPI_StreamBinary {
339
- let message = target ?? this.create(),
344
+ const message = target ?? this.create(),
340
345
  end = reader.pos + length;
341
346
  while (reader.pos < end) {
342
- let [fieldNo, wireType] = reader.tag();
347
+ const [fieldNo, wireType] = reader.tag();
343
348
  switch (fieldNo) {
344
349
  case /* uint64 resource_id */ 1:
345
350
  message.resourceId = reader.uint64().toBigInt();
@@ -354,28 +359,29 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
354
359
  message.readLimit = reader.int64().toBigInt();
355
360
  break;
356
361
  default:
357
- let u = options.readUnknownField;
362
+ const u = options.readUnknownField;
358
363
  if (u === 'throw')
359
364
  throw new globalThis.Error(
360
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
365
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
361
366
  );
362
- let d = reader.skip(wireType);
367
+ const d = reader.skip(wireType);
363
368
  if (u !== false)
364
369
  (u === true ? UnknownFieldHandler.onRead : u)(
365
370
  this.typeName,
366
371
  message,
367
372
  fieldNo,
368
373
  wireType,
369
- d
374
+ d,
370
375
  );
371
376
  }
372
377
  }
373
378
  return message;
374
379
  }
380
+
375
381
  internalBinaryWrite(
376
382
  message: StreamingAPI_StreamBinary,
377
383
  writer: IBinaryWriter,
378
- options: BinaryWriteOptions
384
+ options: BinaryWriteOptions,
379
385
  ): IBinaryWriter {
380
386
  /* uint64 resource_id = 1; */
381
387
  if (message.resourceId !== 0n)
@@ -389,12 +395,12 @@ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBina
389
395
  /* optional int64 read_limit = 20; */
390
396
  if (message.readLimit !== undefined)
391
397
  writer.tag(20, WireType.Varint).int64(message.readLimit);
392
- let u = options.writeUnknownFields;
398
+ const u = options.writeUnknownFields;
393
399
  if (u !== false)
394
400
  (u == true ? UnknownFieldHandler.onWrite : u)(
395
401
  this.typeName,
396
402
  message,
397
- writer
403
+ writer,
398
404
  );
399
405
  return writer;
400
406
  }
@@ -411,27 +417,28 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
411
417
  no: 1,
412
418
  name: 'resource_id',
413
419
  kind: 'scalar',
414
- T: 4 /*ScalarType.UINT64*/,
415
- L: 0 /*LongType.BIGINT*/
420
+ T: 4 /* ScalarType.UINT64 */,
421
+ L: 0, /* LongType.BIGINT */
416
422
  },
417
423
  {
418
424
  no: 2,
419
425
  name: 'offset',
420
426
  kind: 'scalar',
421
- T: 3 /*ScalarType.INT64*/,
422
- L: 0 /*LongType.BIGINT*/
427
+ T: 3 /* ScalarType.INT64 */,
428
+ L: 0, /* LongType.BIGINT */
423
429
  },
424
430
  {
425
431
  no: 11,
426
432
  name: 'chunk_size',
427
433
  kind: 'scalar',
428
434
  opt: true,
429
- T: 13 /*ScalarType.UINT32*/
430
- }
435
+ T: 13, /* ScalarType.UINT32 */
436
+ },
431
437
  ]);
432
438
  }
439
+
433
440
  create(
434
- value?: PartialMessage<StreamingAPI_ReadBinary>
441
+ value?: PartialMessage<StreamingAPI_ReadBinary>,
435
442
  ): StreamingAPI_ReadBinary {
436
443
  const message = globalThis.Object.create(this.messagePrototype!);
437
444
  message.resourceId = 0n;
@@ -440,16 +447,17 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
440
447
  reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
441
448
  return message;
442
449
  }
450
+
443
451
  internalBinaryRead(
444
452
  reader: IBinaryReader,
445
453
  length: number,
446
454
  options: BinaryReadOptions,
447
- target?: StreamingAPI_ReadBinary
455
+ target?: StreamingAPI_ReadBinary,
448
456
  ): StreamingAPI_ReadBinary {
449
- let message = target ?? this.create(),
457
+ const message = target ?? this.create(),
450
458
  end = reader.pos + length;
451
459
  while (reader.pos < end) {
452
- let [fieldNo, wireType] = reader.tag();
460
+ const [fieldNo, wireType] = reader.tag();
453
461
  switch (fieldNo) {
454
462
  case /* uint64 resource_id */ 1:
455
463
  message.resourceId = reader.uint64().toBigInt();
@@ -461,28 +469,29 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
461
469
  message.chunkSize = reader.uint32();
462
470
  break;
463
471
  default:
464
- let u = options.readUnknownField;
472
+ const u = options.readUnknownField;
465
473
  if (u === 'throw')
466
474
  throw new globalThis.Error(
467
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
475
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
468
476
  );
469
- let d = reader.skip(wireType);
477
+ const d = reader.skip(wireType);
470
478
  if (u !== false)
471
479
  (u === true ? UnknownFieldHandler.onRead : u)(
472
480
  this.typeName,
473
481
  message,
474
482
  fieldNo,
475
483
  wireType,
476
- d
484
+ d,
477
485
  );
478
486
  }
479
487
  }
480
488
  return message;
481
489
  }
490
+
482
491
  internalBinaryWrite(
483
492
  message: StreamingAPI_ReadBinary,
484
493
  writer: IBinaryWriter,
485
- options: BinaryWriteOptions
494
+ options: BinaryWriteOptions,
486
495
  ): IBinaryWriter {
487
496
  /* uint64 resource_id = 1; */
488
497
  if (message.resourceId !== 0n)
@@ -493,12 +502,12 @@ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary>
493
502
  /* optional uint32 chunk_size = 11; */
494
503
  if (message.chunkSize !== undefined)
495
504
  writer.tag(11, WireType.Varint).uint32(message.chunkSize);
496
- let u = options.writeUnknownFields;
505
+ const u = options.writeUnknownFields;
497
506
  if (u !== false)
498
507
  (u == true ? UnknownFieldHandler.onWrite : u)(
499
508
  this.typeName,
500
509
  message,
501
- writer
510
+ writer,
502
511
  );
503
512
  return writer;
504
513
  }
@@ -515,42 +524,43 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
515
524
  no: 1,
516
525
  name: 'resource_id',
517
526
  kind: 'scalar',
518
- T: 4 /*ScalarType.UINT64*/,
519
- L: 0 /*LongType.BIGINT*/
527
+ T: 4 /* ScalarType.UINT64 */,
528
+ L: 0, /* LongType.BIGINT */
520
529
  },
521
530
  {
522
531
  no: 2,
523
532
  name: 'offset',
524
533
  kind: 'scalar',
525
- T: 3 /*ScalarType.INT64*/,
526
- L: 0 /*LongType.BIGINT*/
534
+ T: 3 /* ScalarType.INT64 */,
535
+ L: 0, /* LongType.BIGINT */
527
536
  },
528
537
  {
529
538
  no: 20,
530
539
  name: 'read_limit',
531
540
  kind: 'scalar',
532
541
  opt: true,
533
- T: 3 /*ScalarType.INT64*/,
534
- L: 0 /*LongType.BIGINT*/
542
+ T: 3 /* ScalarType.INT64 */,
543
+ L: 0, /* LongType.BIGINT */
535
544
  },
536
545
  {
537
546
  no: 21,
538
547
  name: 'search',
539
548
  kind: 'scalar',
540
549
  opt: true,
541
- T: 9 /*ScalarType.STRING*/
550
+ T: 9, /* ScalarType.STRING */
542
551
  },
543
552
  {
544
553
  no: 22,
545
554
  name: 'search_re',
546
555
  kind: 'scalar',
547
556
  opt: true,
548
- T: 9 /*ScalarType.STRING*/
549
- }
557
+ T: 9, /* ScalarType.STRING */
558
+ },
550
559
  ]);
551
560
  }
561
+
552
562
  create(
553
- value?: PartialMessage<StreamingAPI_StreamText>
563
+ value?: PartialMessage<StreamingAPI_StreamText>,
554
564
  ): StreamingAPI_StreamText {
555
565
  const message = globalThis.Object.create(this.messagePrototype!);
556
566
  message.resourceId = 0n;
@@ -559,16 +569,17 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
559
569
  reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
560
570
  return message;
561
571
  }
572
+
562
573
  internalBinaryRead(
563
574
  reader: IBinaryReader,
564
575
  length: number,
565
576
  options: BinaryReadOptions,
566
- target?: StreamingAPI_StreamText
577
+ target?: StreamingAPI_StreamText,
567
578
  ): StreamingAPI_StreamText {
568
- let message = target ?? this.create(),
579
+ const message = target ?? this.create(),
569
580
  end = reader.pos + length;
570
581
  while (reader.pos < end) {
571
- let [fieldNo, wireType] = reader.tag();
582
+ const [fieldNo, wireType] = reader.tag();
572
583
  switch (fieldNo) {
573
584
  case /* uint64 resource_id */ 1:
574
585
  message.resourceId = reader.uint64().toBigInt();
@@ -586,28 +597,29 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
586
597
  message.searchRe = reader.string();
587
598
  break;
588
599
  default:
589
- let u = options.readUnknownField;
600
+ const u = options.readUnknownField;
590
601
  if (u === 'throw')
591
602
  throw new globalThis.Error(
592
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
603
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
593
604
  );
594
- let d = reader.skip(wireType);
605
+ const d = reader.skip(wireType);
595
606
  if (u !== false)
596
607
  (u === true ? UnknownFieldHandler.onRead : u)(
597
608
  this.typeName,
598
609
  message,
599
610
  fieldNo,
600
611
  wireType,
601
- d
612
+ d,
602
613
  );
603
614
  }
604
615
  }
605
616
  return message;
606
617
  }
618
+
607
619
  internalBinaryWrite(
608
620
  message: StreamingAPI_StreamText,
609
621
  writer: IBinaryWriter,
610
- options: BinaryWriteOptions
622
+ options: BinaryWriteOptions,
611
623
  ): IBinaryWriter {
612
624
  /* uint64 resource_id = 1; */
613
625
  if (message.resourceId !== 0n)
@@ -624,12 +636,12 @@ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText>
624
636
  /* optional string search_re = 22; */
625
637
  if (message.searchRe !== undefined)
626
638
  writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
627
- let u = options.writeUnknownFields;
639
+ const u = options.writeUnknownFields;
628
640
  if (u !== false)
629
641
  (u == true ? UnknownFieldHandler.onWrite : u)(
630
642
  this.typeName,
631
643
  message,
632
- writer
644
+ writer,
633
645
  );
634
646
  return writer;
635
647
  }
@@ -646,40 +658,41 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
646
658
  no: 1,
647
659
  name: 'resource_id',
648
660
  kind: 'scalar',
649
- T: 4 /*ScalarType.UINT64*/,
650
- L: 0 /*LongType.BIGINT*/
661
+ T: 4 /* ScalarType.UINT64 */,
662
+ L: 0, /* LongType.BIGINT */
651
663
  },
652
664
  {
653
665
  no: 2,
654
666
  name: 'offset',
655
667
  kind: 'scalar',
656
- T: 3 /*ScalarType.INT64*/,
657
- L: 0 /*LongType.BIGINT*/
668
+ T: 3 /* ScalarType.INT64 */,
669
+ L: 0, /* LongType.BIGINT */
658
670
  },
659
671
  {
660
672
  no: 20,
661
673
  name: 'read_limit',
662
674
  kind: 'scalar',
663
675
  opt: true,
664
- T: 3 /*ScalarType.INT64*/,
665
- L: 0 /*LongType.BIGINT*/
676
+ T: 3 /* ScalarType.INT64 */,
677
+ L: 0, /* LongType.BIGINT */
666
678
  },
667
679
  {
668
680
  no: 21,
669
681
  name: 'search',
670
682
  kind: 'scalar',
671
683
  opt: true,
672
- T: 9 /*ScalarType.STRING*/
684
+ T: 9, /* ScalarType.STRING */
673
685
  },
674
686
  {
675
687
  no: 22,
676
688
  name: 'search_re',
677
689
  kind: 'scalar',
678
690
  opt: true,
679
- T: 9 /*ScalarType.STRING*/
680
- }
691
+ T: 9, /* ScalarType.STRING */
692
+ },
681
693
  ]);
682
694
  }
695
+
683
696
  create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
684
697
  const message = globalThis.Object.create(this.messagePrototype!);
685
698
  message.resourceId = 0n;
@@ -688,16 +701,17 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
688
701
  reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
689
702
  return message;
690
703
  }
704
+
691
705
  internalBinaryRead(
692
706
  reader: IBinaryReader,
693
707
  length: number,
694
708
  options: BinaryReadOptions,
695
- target?: StreamingAPI_ReadText
709
+ target?: StreamingAPI_ReadText,
696
710
  ): StreamingAPI_ReadText {
697
- let message = target ?? this.create(),
711
+ const message = target ?? this.create(),
698
712
  end = reader.pos + length;
699
713
  while (reader.pos < end) {
700
- let [fieldNo, wireType] = reader.tag();
714
+ const [fieldNo, wireType] = reader.tag();
701
715
  switch (fieldNo) {
702
716
  case /* uint64 resource_id */ 1:
703
717
  message.resourceId = reader.uint64().toBigInt();
@@ -715,28 +729,29 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
715
729
  message.searchRe = reader.string();
716
730
  break;
717
731
  default:
718
- let u = options.readUnknownField;
732
+ const u = options.readUnknownField;
719
733
  if (u === 'throw')
720
734
  throw new globalThis.Error(
721
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
735
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
722
736
  );
723
- let d = reader.skip(wireType);
737
+ const d = reader.skip(wireType);
724
738
  if (u !== false)
725
739
  (u === true ? UnknownFieldHandler.onRead : u)(
726
740
  this.typeName,
727
741
  message,
728
742
  fieldNo,
729
743
  wireType,
730
- d
744
+ d,
731
745
  );
732
746
  }
733
747
  }
734
748
  return message;
735
749
  }
750
+
736
751
  internalBinaryWrite(
737
752
  message: StreamingAPI_ReadText,
738
753
  writer: IBinaryWriter,
739
- options: BinaryWriteOptions
754
+ options: BinaryWriteOptions,
740
755
  ): IBinaryWriter {
741
756
  /* uint64 resource_id = 1; */
742
757
  if (message.resourceId !== 0n)
@@ -753,12 +768,12 @@ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
753
768
  /* optional string search_re = 22; */
754
769
  if (message.searchRe !== undefined)
755
770
  writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
756
- let u = options.writeUnknownFields;
771
+ const u = options.writeUnknownFields;
757
772
  if (u !== false)
758
773
  (u == true ? UnknownFieldHandler.onWrite : u)(
759
774
  this.typeName,
760
775
  message,
761
- writer
776
+ writer,
762
777
  );
763
778
  return writer;
764
779
  }
@@ -775,42 +790,43 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
775
790
  no: 1,
776
791
  name: 'resource_id',
777
792
  kind: 'scalar',
778
- T: 4 /*ScalarType.UINT64*/,
779
- L: 0 /*LongType.BIGINT*/
793
+ T: 4 /* ScalarType.UINT64 */,
794
+ L: 0, /* LongType.BIGINT */
780
795
  },
781
796
  {
782
797
  no: 2,
783
798
  name: 'offset',
784
799
  kind: 'scalar',
785
800
  opt: true,
786
- T: 3 /*ScalarType.INT64*/,
787
- L: 0 /*LongType.BIGINT*/
801
+ T: 3 /* ScalarType.INT64 */,
802
+ L: 0, /* LongType.BIGINT */
788
803
  },
789
804
  {
790
805
  no: 3,
791
806
  name: 'line_count',
792
807
  kind: 'scalar',
793
808
  opt: true,
794
- T: 5 /*ScalarType.INT32*/
809
+ T: 5, /* ScalarType.INT32 */
795
810
  },
796
811
  {
797
812
  no: 21,
798
813
  name: 'search',
799
814
  kind: 'scalar',
800
815
  opt: true,
801
- T: 9 /*ScalarType.STRING*/
816
+ T: 9, /* ScalarType.STRING */
802
817
  },
803
818
  {
804
819
  no: 22,
805
820
  name: 'search_re',
806
821
  kind: 'scalar',
807
822
  opt: true,
808
- T: 9 /*ScalarType.STRING*/
809
- }
823
+ T: 9, /* ScalarType.STRING */
824
+ },
810
825
  ]);
811
826
  }
827
+
812
828
  create(
813
- value?: PartialMessage<StreamingAPI_LastLines>
829
+ value?: PartialMessage<StreamingAPI_LastLines>,
814
830
  ): StreamingAPI_LastLines {
815
831
  const message = globalThis.Object.create(this.messagePrototype!);
816
832
  message.resourceId = 0n;
@@ -818,16 +834,17 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
818
834
  reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
819
835
  return message;
820
836
  }
837
+
821
838
  internalBinaryRead(
822
839
  reader: IBinaryReader,
823
840
  length: number,
824
841
  options: BinaryReadOptions,
825
- target?: StreamingAPI_LastLines
842
+ target?: StreamingAPI_LastLines,
826
843
  ): StreamingAPI_LastLines {
827
- let message = target ?? this.create(),
844
+ const message = target ?? this.create(),
828
845
  end = reader.pos + length;
829
846
  while (reader.pos < end) {
830
- let [fieldNo, wireType] = reader.tag();
847
+ const [fieldNo, wireType] = reader.tag();
831
848
  switch (fieldNo) {
832
849
  case /* uint64 resource_id */ 1:
833
850
  message.resourceId = reader.uint64().toBigInt();
@@ -845,28 +862,29 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
845
862
  message.searchRe = reader.string();
846
863
  break;
847
864
  default:
848
- let u = options.readUnknownField;
865
+ const u = options.readUnknownField;
849
866
  if (u === 'throw')
850
867
  throw new globalThis.Error(
851
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
868
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
852
869
  );
853
- let d = reader.skip(wireType);
870
+ const d = reader.skip(wireType);
854
871
  if (u !== false)
855
872
  (u === true ? UnknownFieldHandler.onRead : u)(
856
873
  this.typeName,
857
874
  message,
858
875
  fieldNo,
859
876
  wireType,
860
- d
877
+ d,
861
878
  );
862
879
  }
863
880
  }
864
881
  return message;
865
882
  }
883
+
866
884
  internalBinaryWrite(
867
885
  message: StreamingAPI_LastLines,
868
886
  writer: IBinaryWriter,
869
- options: BinaryWriteOptions
887
+ options: BinaryWriteOptions,
870
888
  ): IBinaryWriter {
871
889
  /* uint64 resource_id = 1; */
872
890
  if (message.resourceId !== 0n)
@@ -883,12 +901,12 @@ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
883
901
  /* optional string search_re = 22; */
884
902
  if (message.searchRe !== undefined)
885
903
  writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
886
- let u = options.writeUnknownFields;
904
+ const u = options.writeUnknownFields;
887
905
  if (u !== false)
888
906
  (u == true ? UnknownFieldHandler.onWrite : u)(
889
907
  this.typeName,
890
908
  message,
891
- writer
909
+ writer,
892
910
  );
893
911
  return writer;
894
912
  }
@@ -901,23 +919,24 @@ export const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();
901
919
  class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
902
920
  constructor() {
903
921
  super('MiLaboratories.Controller.Shared.StreamingAPI.Response', [
904
- { no: 1, name: 'data', kind: 'scalar', T: 12 /*ScalarType.BYTES*/ },
922
+ { no: 1, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
905
923
  {
906
924
  no: 2,
907
925
  name: 'size',
908
926
  kind: 'scalar',
909
- T: 4 /*ScalarType.UINT64*/,
910
- L: 0 /*LongType.BIGINT*/
927
+ T: 4 /* ScalarType.UINT64 */,
928
+ L: 0, /* LongType.BIGINT */
911
929
  },
912
930
  {
913
931
  no: 3,
914
932
  name: 'new_offset',
915
933
  kind: 'scalar',
916
- T: 4 /*ScalarType.UINT64*/,
917
- L: 0 /*LongType.BIGINT*/
918
- }
934
+ T: 4 /* ScalarType.UINT64 */,
935
+ L: 0, /* LongType.BIGINT */
936
+ },
919
937
  ]);
920
938
  }
939
+
921
940
  create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
922
941
  const message = globalThis.Object.create(this.messagePrototype!);
923
942
  message.data = new Uint8Array(0);
@@ -927,16 +946,17 @@ class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
927
946
  reflectionMergePartial<StreamingAPI_Response>(this, message, value);
928
947
  return message;
929
948
  }
949
+
930
950
  internalBinaryRead(
931
951
  reader: IBinaryReader,
932
952
  length: number,
933
953
  options: BinaryReadOptions,
934
- target?: StreamingAPI_Response
954
+ target?: StreamingAPI_Response,
935
955
  ): StreamingAPI_Response {
936
- let message = target ?? this.create(),
956
+ const message = target ?? this.create(),
937
957
  end = reader.pos + length;
938
958
  while (reader.pos < end) {
939
- let [fieldNo, wireType] = reader.tag();
959
+ const [fieldNo, wireType] = reader.tag();
940
960
  switch (fieldNo) {
941
961
  case /* bytes data */ 1:
942
962
  message.data = reader.bytes();
@@ -948,28 +968,29 @@ class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
948
968
  message.newOffset = reader.uint64().toBigInt();
949
969
  break;
950
970
  default:
951
- let u = options.readUnknownField;
971
+ const u = options.readUnknownField;
952
972
  if (u === 'throw')
953
973
  throw new globalThis.Error(
954
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
974
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
955
975
  );
956
- let d = reader.skip(wireType);
976
+ const d = reader.skip(wireType);
957
977
  if (u !== false)
958
978
  (u === true ? UnknownFieldHandler.onRead : u)(
959
979
  this.typeName,
960
980
  message,
961
981
  fieldNo,
962
982
  wireType,
963
- d
983
+ d,
964
984
  );
965
985
  }
966
986
  }
967
987
  return message;
968
988
  }
989
+
969
990
  internalBinaryWrite(
970
991
  message: StreamingAPI_Response,
971
992
  writer: IBinaryWriter,
972
- options: BinaryWriteOptions
993
+ options: BinaryWriteOptions,
973
994
  ): IBinaryWriter {
974
995
  /* bytes data = 1; */
975
996
  if (message.data.length)
@@ -980,12 +1001,12 @@ class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
980
1001
  /* uint64 new_offset = 3; */
981
1002
  if (message.newOffset !== 0n)
982
1003
  writer.tag(3, WireType.Varint).uint64(message.newOffset);
983
- let u = options.writeUnknownFields;
1004
+ const u = options.writeUnknownFields;
984
1005
  if (u !== false)
985
1006
  (u == true ? UnknownFieldHandler.onWrite : u)(
986
1007
  this.typeName,
987
1008
  message,
988
- writer
1009
+ writer,
989
1010
  );
990
1011
  return writer;
991
1012
  }
@@ -1005,32 +1026,32 @@ export const Streaming = new ServiceType(
1005
1026
  serverStreaming: true,
1006
1027
  options: {},
1007
1028
  I: StreamingAPI_StreamBinary,
1008
- O: StreamingAPI_Response
1029
+ O: StreamingAPI_Response,
1009
1030
  },
1010
1031
  {
1011
1032
  name: 'ReadBinary',
1012
1033
  options: {},
1013
1034
  I: StreamingAPI_ReadBinary,
1014
- O: StreamingAPI_Response
1035
+ O: StreamingAPI_Response,
1015
1036
  },
1016
1037
  {
1017
1038
  name: 'StreamText',
1018
1039
  serverStreaming: true,
1019
1040
  options: {},
1020
1041
  I: StreamingAPI_StreamText,
1021
- O: StreamingAPI_Response
1042
+ O: StreamingAPI_Response,
1022
1043
  },
1023
1044
  {
1024
1045
  name: 'ReadText',
1025
1046
  options: {},
1026
1047
  I: StreamingAPI_ReadText,
1027
- O: StreamingAPI_Response
1048
+ O: StreamingAPI_Response,
1028
1049
  },
1029
1050
  {
1030
1051
  name: 'LastLines',
1031
1052
  options: {},
1032
1053
  I: StreamingAPI_LastLines,
1033
- O: StreamingAPI_Response
1034
- }
1035
- ]
1054
+ O: StreamingAPI_Response,
1055
+ },
1056
+ ],
1036
1057
  );