@milaboratories/pl-drivers 1.2.16

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 (117) hide show
  1. package/README.md +18 -0
  2. package/dist/clients/download.d.ts +30 -0
  3. package/dist/clients/download.d.ts.map +1 -0
  4. package/dist/clients/helpers.d.ts +14 -0
  5. package/dist/clients/helpers.d.ts.map +1 -0
  6. package/dist/clients/logs.d.ts +26 -0
  7. package/dist/clients/logs.d.ts.map +1 -0
  8. package/dist/clients/ls_api.d.ts +13 -0
  9. package/dist/clients/ls_api.d.ts.map +1 -0
  10. package/dist/clients/progress.d.ts +25 -0
  11. package/dist/clients/progress.d.ts.map +1 -0
  12. package/dist/clients/upload.d.ts +38 -0
  13. package/dist/clients/upload.d.ts.map +1 -0
  14. package/dist/drivers/download_and_logs_blob.d.ts +106 -0
  15. package/dist/drivers/download_and_logs_blob.d.ts.map +1 -0
  16. package/dist/drivers/download_url.d.ts +70 -0
  17. package/dist/drivers/download_url.d.ts.map +1 -0
  18. package/dist/drivers/helpers/files_cache.d.ts +28 -0
  19. package/dist/drivers/helpers/files_cache.d.ts.map +1 -0
  20. package/dist/drivers/helpers/helpers.d.ts +34 -0
  21. package/dist/drivers/helpers/helpers.d.ts.map +1 -0
  22. package/dist/drivers/helpers/ls_list_entry.d.ts +49 -0
  23. package/dist/drivers/helpers/ls_list_entry.d.ts.map +1 -0
  24. package/dist/drivers/helpers/ls_storage_entry.d.ts +25 -0
  25. package/dist/drivers/helpers/ls_storage_entry.d.ts.map +1 -0
  26. package/dist/drivers/helpers/polling_ops.d.ts +8 -0
  27. package/dist/drivers/helpers/polling_ops.d.ts.map +1 -0
  28. package/dist/drivers/helpers/test_helpers.d.ts +2 -0
  29. package/dist/drivers/helpers/test_helpers.d.ts.map +1 -0
  30. package/dist/drivers/logs.d.ts +29 -0
  31. package/dist/drivers/logs.d.ts.map +1 -0
  32. package/dist/drivers/logs_stream.d.ts +50 -0
  33. package/dist/drivers/logs_stream.d.ts.map +1 -0
  34. package/dist/drivers/ls.d.ts +30 -0
  35. package/dist/drivers/ls.d.ts.map +1 -0
  36. package/dist/drivers/upload.d.ts +87 -0
  37. package/dist/drivers/upload.d.ts.map +1 -0
  38. package/dist/helpers/download.d.ts +15 -0
  39. package/dist/helpers/download.d.ts.map +1 -0
  40. package/dist/index.cjs +2 -0
  41. package/dist/index.cjs.map +1 -0
  42. package/dist/index.d.ts +15 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +4627 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +36 -0
  47. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -0
  48. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +103 -0
  49. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -0
  50. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +42 -0
  51. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -0
  52. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +165 -0
  53. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -0
  54. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +44 -0
  55. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -0
  56. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +171 -0
  57. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -0
  58. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +122 -0
  59. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -0
  60. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +315 -0
  61. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -0
  62. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +98 -0
  63. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -0
  64. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +337 -0
  65. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -0
  66. package/dist/proto/google/api/http.d.ts +451 -0
  67. package/dist/proto/google/api/http.d.ts.map +1 -0
  68. package/dist/proto/google/protobuf/descriptor.d.ts +1646 -0
  69. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -0
  70. package/dist/proto/google/protobuf/duration.d.ts +106 -0
  71. package/dist/proto/google/protobuf/duration.d.ts.map +1 -0
  72. package/dist/proto/google/protobuf/timestamp.d.ts +151 -0
  73. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -0
  74. package/package.json +47 -0
  75. package/src/clients/download.test.ts +45 -0
  76. package/src/clients/download.ts +106 -0
  77. package/src/clients/helpers.ts +84 -0
  78. package/src/clients/logs.ts +68 -0
  79. package/src/clients/ls_api.ts +34 -0
  80. package/src/clients/progress.ts +86 -0
  81. package/src/clients/upload.test.ts +30 -0
  82. package/src/clients/upload.ts +199 -0
  83. package/src/drivers/download_and_logs_blob.ts +801 -0
  84. package/src/drivers/download_blob.test.ts +223 -0
  85. package/src/drivers/download_url.test.ts +90 -0
  86. package/src/drivers/download_url.ts +314 -0
  87. package/src/drivers/helpers/files_cache.test.ts +79 -0
  88. package/src/drivers/helpers/files_cache.ts +74 -0
  89. package/src/drivers/helpers/helpers.ts +136 -0
  90. package/src/drivers/helpers/ls_list_entry.test.ts +57 -0
  91. package/src/drivers/helpers/ls_list_entry.ts +152 -0
  92. package/src/drivers/helpers/ls_storage_entry.ts +135 -0
  93. package/src/drivers/helpers/polling_ops.ts +7 -0
  94. package/src/drivers/helpers/test_helpers.ts +5 -0
  95. package/src/drivers/logs.test.ts +337 -0
  96. package/src/drivers/logs.ts +214 -0
  97. package/src/drivers/logs_stream.ts +399 -0
  98. package/src/drivers/ls.test.ts +90 -0
  99. package/src/drivers/ls.ts +147 -0
  100. package/src/drivers/upload.test.ts +454 -0
  101. package/src/drivers/upload.ts +499 -0
  102. package/src/helpers/download.ts +43 -0
  103. package/src/index.ts +15 -0
  104. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +60 -0
  105. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +442 -0
  106. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +63 -0
  107. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +503 -0
  108. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +84 -0
  109. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +697 -0
  110. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +212 -0
  111. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +1036 -0
  112. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +170 -0
  113. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +1201 -0
  114. package/src/proto/google/api/http.ts +838 -0
  115. package/src/proto/google/protobuf/descriptor.ts +5173 -0
  116. package/src/proto/google/protobuf/duration.ts +272 -0
  117. package/src/proto/google/protobuf/timestamp.ts +354 -0
@@ -0,0 +1,1036 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
+ // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
5
+ import { WireType } from '@protobuf-ts/runtime';
6
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
7
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
8
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
9
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
10
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
11
+ import type { PartialMessage } from '@protobuf-ts/runtime';
12
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
13
+ import { MessageType } from '@protobuf-ts/runtime';
14
+ /**
15
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI
16
+ */
17
+ export interface StreamingAPI {}
18
+ /**
19
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
20
+ */
21
+ export interface StreamingAPI_StreamBinary {
22
+ /**
23
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
24
+ *
25
+ * @generated from protobuf field: uint64 resource_id = 1;
26
+ */
27
+ resourceId: bigint;
28
+ /**
29
+ * <offset> makes streamer to perform seek operation to given offset before sending the data.
30
+ *
31
+ * @generated from protobuf field: int64 offset = 2;
32
+ */
33
+ offset: bigint;
34
+ /**
35
+ * <chunk_size> limits the maximum size of <data> for each response message in stream.
36
+ *
37
+ * Default value: 32 768 (32 KiB)
38
+ * Max value: 3900 * 1024 (3.9 MiB)
39
+ *
40
+ * @generated from protobuf field: optional uint32 chunk_size = 11;
41
+ */
42
+ chunkSize?: number;
43
+ /**
44
+ * <read_limit> allows client to limit total data sent from server.
45
+ * This limit is aggregation of all data, sent in all chunks.
46
+ * E.g. to read 2000 bytes of data in chunks of at most
47
+ * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
48
+ * For storage item of appropriate size this settings will result in
49
+ * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
50
+ *
51
+ * @generated from protobuf field: optional int64 read_limit = 20;
52
+ */
53
+ readLimit?: bigint;
54
+ }
55
+ /**
56
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
57
+ */
58
+ export interface StreamingAPI_ReadBinary {
59
+ /**
60
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
61
+ *
62
+ * @generated from protobuf field: uint64 resource_id = 1;
63
+ */
64
+ resourceId: bigint;
65
+ /**
66
+ * <offset> makes streamer to perform seek operation to given offset before sending the data.
67
+ *
68
+ * @generated from protobuf field: int64 offset = 2;
69
+ */
70
+ offset: bigint;
71
+ /**
72
+ * <chunk_size> limits the maximum size of <data> for response message in stream.
73
+ *
74
+ * Default value: 32 768 (32 KiB)
75
+ * Max value: 3900 * 1024 (3.9 MiB)
76
+ *
77
+ * @generated from protobuf field: optional uint32 chunk_size = 11;
78
+ */
79
+ chunkSize?: number;
80
+ }
81
+ /**
82
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
83
+ */
84
+ export interface StreamingAPI_StreamText {
85
+ /**
86
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
87
+ *
88
+ * @generated from protobuf field: uint64 resource_id = 1;
89
+ */
90
+ resourceId: bigint;
91
+ /**
92
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
93
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
94
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
95
+ *
96
+ * @generated from protobuf field: int64 offset = 2;
97
+ */
98
+ offset: bigint;
99
+ /**
100
+ * <read_limit> allows client to limit total data sent from server.
101
+ * This limit is aggregation of all data, sent in all chunks, measured
102
+ * in lines of text.
103
+ * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
104
+ * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
105
+ * this is equivalent to 'head -n <read_limit> | grep <search>'.
106
+ *
107
+ * @generated from protobuf field: optional int64 read_limit = 20;
108
+ */
109
+ readLimit?: bigint;
110
+ /**
111
+ * <search> is substring for line search pattern.
112
+ * This option makes controller to send to the client only lines, that
113
+ * have given substring.
114
+ *
115
+ * @generated from protobuf field: optional string search = 21;
116
+ */
117
+ search?: string;
118
+ /**
119
+ * <search_re> is regular expression for line search pattern.
120
+ * This option makes controller to send to the client only lines, that
121
+ * match given regular expression.
122
+ *
123
+ * @generated from protobuf field: optional string search_re = 22;
124
+ */
125
+ searchRe?: string;
126
+ }
127
+ /**
128
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
129
+ */
130
+ export interface StreamingAPI_ReadText {
131
+ /**
132
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
133
+ *
134
+ * @generated from protobuf field: uint64 resource_id = 1;
135
+ */
136
+ resourceId: bigint;
137
+ /**
138
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
139
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
140
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
141
+ *
142
+ * @generated from protobuf field: int64 offset = 2;
143
+ */
144
+ offset: bigint;
145
+ /**
146
+ * <read_limit> allows client to limit total data sent from server.
147
+ * Measured in lines of text.
148
+ * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
149
+ * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
150
+ * this is equivalent to 'head -n <read_limit> | grep <search>'.
151
+ * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
152
+ * Only full lines of text are returned except for the last line from the completed source
153
+ * (the one that is not expected to have new data, like blob in storage)
154
+ *
155
+ * @generated from protobuf field: optional int64 read_limit = 20;
156
+ */
157
+ readLimit?: bigint;
158
+ /**
159
+ * <search> is substring for line search pattern.
160
+ * This option makes controller to send to the client only lines, that
161
+ * have given substring.
162
+ *
163
+ * @generated from protobuf field: optional string search = 21;
164
+ */
165
+ search?: string;
166
+ /**
167
+ * <search_re> is regular expression for line search pattern.
168
+ * This option makes controller to send to the client only lines, that
169
+ * match given regular expression.
170
+ *
171
+ * @generated from protobuf field: optional string search_re = 22;
172
+ */
173
+ searchRe?: string;
174
+ }
175
+ /**
176
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
177
+ */
178
+ export interface StreamingAPI_LastLines {
179
+ /**
180
+ * <resource_id> of Stream resource, that keeps info on item to be streamed.
181
+ *
182
+ * @generated from protobuf field: uint64 resource_id = 1;
183
+ */
184
+ resourceId: bigint;
185
+ /**
186
+ * <offset> makes streamer to perform seek operation to given offset before sending the contents.
187
+ * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
188
+ * By default, LastLines starts to treat the data source from the very last byte available in data stream
189
+ * at the moment of call, but client can set the server to start from earlier position.
190
+ *
191
+ * @generated from protobuf field: optional int64 offset = 2;
192
+ */
193
+ offset?: bigint;
194
+ /**
195
+ * <line_count> makes streamer to return up to <line_count> lines to the client.
196
+ * Default value: 1
197
+ *
198
+ * @generated from protobuf field: optional int32 line_count = 3;
199
+ */
200
+ lineCount?: number;
201
+ /**
202
+ * <search> is substring for line search pattern.
203
+ * This option makes controller to send to the client only lines, that
204
+ * have given substring.
205
+ *
206
+ * @generated from protobuf field: optional string search = 21;
207
+ */
208
+ search?: string;
209
+ /**
210
+ * <search_re> is regular expression for line search pattern.
211
+ * This option makes controller to send to the client only lines, that
212
+ * match given regular expression.
213
+ *
214
+ * @generated from protobuf field: optional string search_re = 22;
215
+ */
216
+ searchRe?: string;
217
+ }
218
+ /**
219
+ * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
220
+ */
221
+ export interface StreamingAPI_Response {
222
+ /**
223
+ * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
224
+ *
225
+ * @generated from protobuf field: bytes data = 1;
226
+ */
227
+ data: Uint8Array;
228
+ /**
229
+ * <size> is the actual size of the streamed item at the moment of this message.
230
+ * This might be not a final amount of streamed data, as stream source can be updated
231
+ * by other independent process (e.g., data is written to log file).
232
+ * This field in combination with <new_offset> shows, how far the client is from the end
233
+ * of the data right now.
234
+ *
235
+ * @generated from protobuf field: uint64 size = 2;
236
+ */
237
+ size: bigint;
238
+ /**
239
+ * <new_offset> is the new offset in bytes from the start of the streamed item,
240
+ * including size of <data> in current response.
241
+ * Call to Stream rpc with <offset> = <new_offset> will continue
242
+ * streaming from the place of last received message
243
+ * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
244
+ * previously received <data>)
245
+ *
246
+ * @generated from protobuf field: uint64 new_offset = 3;
247
+ */
248
+ newOffset: bigint;
249
+ }
250
+ // @generated message type with reflection information, may provide speed optimized methods
251
+ class StreamingAPI$Type extends MessageType<StreamingAPI> {
252
+ constructor() {
253
+ super('MiLaboratories.Controller.Shared.StreamingAPI', []);
254
+ }
255
+ create(value?: PartialMessage<StreamingAPI>): StreamingAPI {
256
+ const message = globalThis.Object.create(this.messagePrototype!);
257
+ if (value !== undefined)
258
+ reflectionMergePartial<StreamingAPI>(this, message, value);
259
+ return message;
260
+ }
261
+ internalBinaryRead(
262
+ reader: IBinaryReader,
263
+ length: number,
264
+ options: BinaryReadOptions,
265
+ target?: StreamingAPI
266
+ ): StreamingAPI {
267
+ return target ?? this.create();
268
+ }
269
+ internalBinaryWrite(
270
+ message: StreamingAPI,
271
+ writer: IBinaryWriter,
272
+ options: BinaryWriteOptions
273
+ ): IBinaryWriter {
274
+ let u = options.writeUnknownFields;
275
+ if (u !== false)
276
+ (u == true ? UnknownFieldHandler.onWrite : u)(
277
+ this.typeName,
278
+ message,
279
+ writer
280
+ );
281
+ return writer;
282
+ }
283
+ }
284
+ /**
285
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
286
+ */
287
+ export const StreamingAPI = new StreamingAPI$Type();
288
+ // @generated message type with reflection information, may provide speed optimized methods
289
+ class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
290
+ constructor() {
291
+ super('MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary', [
292
+ {
293
+ no: 1,
294
+ name: 'resource_id',
295
+ kind: 'scalar',
296
+ T: 4 /*ScalarType.UINT64*/,
297
+ L: 0 /*LongType.BIGINT*/
298
+ },
299
+ {
300
+ no: 2,
301
+ name: 'offset',
302
+ kind: 'scalar',
303
+ T: 3 /*ScalarType.INT64*/,
304
+ L: 0 /*LongType.BIGINT*/
305
+ },
306
+ {
307
+ no: 11,
308
+ name: 'chunk_size',
309
+ kind: 'scalar',
310
+ opt: true,
311
+ T: 13 /*ScalarType.UINT32*/
312
+ },
313
+ {
314
+ no: 20,
315
+ name: 'read_limit',
316
+ kind: 'scalar',
317
+ opt: true,
318
+ T: 3 /*ScalarType.INT64*/,
319
+ L: 0 /*LongType.BIGINT*/
320
+ }
321
+ ]);
322
+ }
323
+ create(
324
+ value?: PartialMessage<StreamingAPI_StreamBinary>
325
+ ): StreamingAPI_StreamBinary {
326
+ const message = globalThis.Object.create(this.messagePrototype!);
327
+ message.resourceId = 0n;
328
+ message.offset = 0n;
329
+ if (value !== undefined)
330
+ reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
331
+ return message;
332
+ }
333
+ internalBinaryRead(
334
+ reader: IBinaryReader,
335
+ length: number,
336
+ options: BinaryReadOptions,
337
+ target?: StreamingAPI_StreamBinary
338
+ ): StreamingAPI_StreamBinary {
339
+ let message = target ?? this.create(),
340
+ end = reader.pos + length;
341
+ while (reader.pos < end) {
342
+ let [fieldNo, wireType] = reader.tag();
343
+ switch (fieldNo) {
344
+ case /* uint64 resource_id */ 1:
345
+ message.resourceId = reader.uint64().toBigInt();
346
+ break;
347
+ case /* int64 offset */ 2:
348
+ message.offset = reader.int64().toBigInt();
349
+ break;
350
+ case /* optional uint32 chunk_size */ 11:
351
+ message.chunkSize = reader.uint32();
352
+ break;
353
+ case /* optional int64 read_limit */ 20:
354
+ message.readLimit = reader.int64().toBigInt();
355
+ break;
356
+ default:
357
+ let u = options.readUnknownField;
358
+ if (u === 'throw')
359
+ throw new globalThis.Error(
360
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
361
+ );
362
+ let d = reader.skip(wireType);
363
+ if (u !== false)
364
+ (u === true ? UnknownFieldHandler.onRead : u)(
365
+ this.typeName,
366
+ message,
367
+ fieldNo,
368
+ wireType,
369
+ d
370
+ );
371
+ }
372
+ }
373
+ return message;
374
+ }
375
+ internalBinaryWrite(
376
+ message: StreamingAPI_StreamBinary,
377
+ writer: IBinaryWriter,
378
+ options: BinaryWriteOptions
379
+ ): IBinaryWriter {
380
+ /* uint64 resource_id = 1; */
381
+ if (message.resourceId !== 0n)
382
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
383
+ /* int64 offset = 2; */
384
+ if (message.offset !== 0n)
385
+ writer.tag(2, WireType.Varint).int64(message.offset);
386
+ /* optional uint32 chunk_size = 11; */
387
+ if (message.chunkSize !== undefined)
388
+ writer.tag(11, WireType.Varint).uint32(message.chunkSize);
389
+ /* optional int64 read_limit = 20; */
390
+ if (message.readLimit !== undefined)
391
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
392
+ let u = options.writeUnknownFields;
393
+ if (u !== false)
394
+ (u == true ? UnknownFieldHandler.onWrite : u)(
395
+ this.typeName,
396
+ message,
397
+ writer
398
+ );
399
+ return writer;
400
+ }
401
+ }
402
+ /**
403
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
404
+ */
405
+ export const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
406
+ // @generated message type with reflection information, may provide speed optimized methods
407
+ class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
408
+ constructor() {
409
+ super('MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary', [
410
+ {
411
+ no: 1,
412
+ name: 'resource_id',
413
+ kind: 'scalar',
414
+ T: 4 /*ScalarType.UINT64*/,
415
+ L: 0 /*LongType.BIGINT*/
416
+ },
417
+ {
418
+ no: 2,
419
+ name: 'offset',
420
+ kind: 'scalar',
421
+ T: 3 /*ScalarType.INT64*/,
422
+ L: 0 /*LongType.BIGINT*/
423
+ },
424
+ {
425
+ no: 11,
426
+ name: 'chunk_size',
427
+ kind: 'scalar',
428
+ opt: true,
429
+ T: 13 /*ScalarType.UINT32*/
430
+ }
431
+ ]);
432
+ }
433
+ create(
434
+ value?: PartialMessage<StreamingAPI_ReadBinary>
435
+ ): StreamingAPI_ReadBinary {
436
+ const message = globalThis.Object.create(this.messagePrototype!);
437
+ message.resourceId = 0n;
438
+ message.offset = 0n;
439
+ if (value !== undefined)
440
+ reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
441
+ return message;
442
+ }
443
+ internalBinaryRead(
444
+ reader: IBinaryReader,
445
+ length: number,
446
+ options: BinaryReadOptions,
447
+ target?: StreamingAPI_ReadBinary
448
+ ): StreamingAPI_ReadBinary {
449
+ let message = target ?? this.create(),
450
+ end = reader.pos + length;
451
+ while (reader.pos < end) {
452
+ let [fieldNo, wireType] = reader.tag();
453
+ switch (fieldNo) {
454
+ case /* uint64 resource_id */ 1:
455
+ message.resourceId = reader.uint64().toBigInt();
456
+ break;
457
+ case /* int64 offset */ 2:
458
+ message.offset = reader.int64().toBigInt();
459
+ break;
460
+ case /* optional uint32 chunk_size */ 11:
461
+ message.chunkSize = reader.uint32();
462
+ break;
463
+ default:
464
+ let u = options.readUnknownField;
465
+ if (u === 'throw')
466
+ throw new globalThis.Error(
467
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
468
+ );
469
+ let d = reader.skip(wireType);
470
+ if (u !== false)
471
+ (u === true ? UnknownFieldHandler.onRead : u)(
472
+ this.typeName,
473
+ message,
474
+ fieldNo,
475
+ wireType,
476
+ d
477
+ );
478
+ }
479
+ }
480
+ return message;
481
+ }
482
+ internalBinaryWrite(
483
+ message: StreamingAPI_ReadBinary,
484
+ writer: IBinaryWriter,
485
+ options: BinaryWriteOptions
486
+ ): IBinaryWriter {
487
+ /* uint64 resource_id = 1; */
488
+ if (message.resourceId !== 0n)
489
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
490
+ /* int64 offset = 2; */
491
+ if (message.offset !== 0n)
492
+ writer.tag(2, WireType.Varint).int64(message.offset);
493
+ /* optional uint32 chunk_size = 11; */
494
+ if (message.chunkSize !== undefined)
495
+ writer.tag(11, WireType.Varint).uint32(message.chunkSize);
496
+ let u = options.writeUnknownFields;
497
+ if (u !== false)
498
+ (u == true ? UnknownFieldHandler.onWrite : u)(
499
+ this.typeName,
500
+ message,
501
+ writer
502
+ );
503
+ return writer;
504
+ }
505
+ }
506
+ /**
507
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
508
+ */
509
+ export const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
510
+ // @generated message type with reflection information, may provide speed optimized methods
511
+ class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
512
+ constructor() {
513
+ super('MiLaboratories.Controller.Shared.StreamingAPI.StreamText', [
514
+ {
515
+ no: 1,
516
+ name: 'resource_id',
517
+ kind: 'scalar',
518
+ T: 4 /*ScalarType.UINT64*/,
519
+ L: 0 /*LongType.BIGINT*/
520
+ },
521
+ {
522
+ no: 2,
523
+ name: 'offset',
524
+ kind: 'scalar',
525
+ T: 3 /*ScalarType.INT64*/,
526
+ L: 0 /*LongType.BIGINT*/
527
+ },
528
+ {
529
+ no: 20,
530
+ name: 'read_limit',
531
+ kind: 'scalar',
532
+ opt: true,
533
+ T: 3 /*ScalarType.INT64*/,
534
+ L: 0 /*LongType.BIGINT*/
535
+ },
536
+ {
537
+ no: 21,
538
+ name: 'search',
539
+ kind: 'scalar',
540
+ opt: true,
541
+ T: 9 /*ScalarType.STRING*/
542
+ },
543
+ {
544
+ no: 22,
545
+ name: 'search_re',
546
+ kind: 'scalar',
547
+ opt: true,
548
+ T: 9 /*ScalarType.STRING*/
549
+ }
550
+ ]);
551
+ }
552
+ create(
553
+ value?: PartialMessage<StreamingAPI_StreamText>
554
+ ): StreamingAPI_StreamText {
555
+ const message = globalThis.Object.create(this.messagePrototype!);
556
+ message.resourceId = 0n;
557
+ message.offset = 0n;
558
+ if (value !== undefined)
559
+ reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
560
+ return message;
561
+ }
562
+ internalBinaryRead(
563
+ reader: IBinaryReader,
564
+ length: number,
565
+ options: BinaryReadOptions,
566
+ target?: StreamingAPI_StreamText
567
+ ): StreamingAPI_StreamText {
568
+ let message = target ?? this.create(),
569
+ end = reader.pos + length;
570
+ while (reader.pos < end) {
571
+ let [fieldNo, wireType] = reader.tag();
572
+ switch (fieldNo) {
573
+ case /* uint64 resource_id */ 1:
574
+ message.resourceId = reader.uint64().toBigInt();
575
+ break;
576
+ case /* int64 offset */ 2:
577
+ message.offset = reader.int64().toBigInt();
578
+ break;
579
+ case /* optional int64 read_limit */ 20:
580
+ message.readLimit = reader.int64().toBigInt();
581
+ break;
582
+ case /* optional string search */ 21:
583
+ message.search = reader.string();
584
+ break;
585
+ case /* optional string search_re */ 22:
586
+ message.searchRe = reader.string();
587
+ break;
588
+ default:
589
+ let u = options.readUnknownField;
590
+ if (u === 'throw')
591
+ throw new globalThis.Error(
592
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
593
+ );
594
+ let d = reader.skip(wireType);
595
+ if (u !== false)
596
+ (u === true ? UnknownFieldHandler.onRead : u)(
597
+ this.typeName,
598
+ message,
599
+ fieldNo,
600
+ wireType,
601
+ d
602
+ );
603
+ }
604
+ }
605
+ return message;
606
+ }
607
+ internalBinaryWrite(
608
+ message: StreamingAPI_StreamText,
609
+ writer: IBinaryWriter,
610
+ options: BinaryWriteOptions
611
+ ): IBinaryWriter {
612
+ /* uint64 resource_id = 1; */
613
+ if (message.resourceId !== 0n)
614
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
615
+ /* int64 offset = 2; */
616
+ if (message.offset !== 0n)
617
+ writer.tag(2, WireType.Varint).int64(message.offset);
618
+ /* optional int64 read_limit = 20; */
619
+ if (message.readLimit !== undefined)
620
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
621
+ /* optional string search = 21; */
622
+ if (message.search !== undefined)
623
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
624
+ /* optional string search_re = 22; */
625
+ if (message.searchRe !== undefined)
626
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
627
+ let u = options.writeUnknownFields;
628
+ if (u !== false)
629
+ (u == true ? UnknownFieldHandler.onWrite : u)(
630
+ this.typeName,
631
+ message,
632
+ writer
633
+ );
634
+ return writer;
635
+ }
636
+ }
637
+ /**
638
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
639
+ */
640
+ export const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
641
+ // @generated message type with reflection information, may provide speed optimized methods
642
+ class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
643
+ constructor() {
644
+ super('MiLaboratories.Controller.Shared.StreamingAPI.ReadText', [
645
+ {
646
+ no: 1,
647
+ name: 'resource_id',
648
+ kind: 'scalar',
649
+ T: 4 /*ScalarType.UINT64*/,
650
+ L: 0 /*LongType.BIGINT*/
651
+ },
652
+ {
653
+ no: 2,
654
+ name: 'offset',
655
+ kind: 'scalar',
656
+ T: 3 /*ScalarType.INT64*/,
657
+ L: 0 /*LongType.BIGINT*/
658
+ },
659
+ {
660
+ no: 20,
661
+ name: 'read_limit',
662
+ kind: 'scalar',
663
+ opt: true,
664
+ T: 3 /*ScalarType.INT64*/,
665
+ L: 0 /*LongType.BIGINT*/
666
+ },
667
+ {
668
+ no: 21,
669
+ name: 'search',
670
+ kind: 'scalar',
671
+ opt: true,
672
+ T: 9 /*ScalarType.STRING*/
673
+ },
674
+ {
675
+ no: 22,
676
+ name: 'search_re',
677
+ kind: 'scalar',
678
+ opt: true,
679
+ T: 9 /*ScalarType.STRING*/
680
+ }
681
+ ]);
682
+ }
683
+ create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
684
+ const message = globalThis.Object.create(this.messagePrototype!);
685
+ message.resourceId = 0n;
686
+ message.offset = 0n;
687
+ if (value !== undefined)
688
+ reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
689
+ return message;
690
+ }
691
+ internalBinaryRead(
692
+ reader: IBinaryReader,
693
+ length: number,
694
+ options: BinaryReadOptions,
695
+ target?: StreamingAPI_ReadText
696
+ ): StreamingAPI_ReadText {
697
+ let message = target ?? this.create(),
698
+ end = reader.pos + length;
699
+ while (reader.pos < end) {
700
+ let [fieldNo, wireType] = reader.tag();
701
+ switch (fieldNo) {
702
+ case /* uint64 resource_id */ 1:
703
+ message.resourceId = reader.uint64().toBigInt();
704
+ break;
705
+ case /* int64 offset */ 2:
706
+ message.offset = reader.int64().toBigInt();
707
+ break;
708
+ case /* optional int64 read_limit */ 20:
709
+ message.readLimit = reader.int64().toBigInt();
710
+ break;
711
+ case /* optional string search */ 21:
712
+ message.search = reader.string();
713
+ break;
714
+ case /* optional string search_re */ 22:
715
+ message.searchRe = reader.string();
716
+ break;
717
+ default:
718
+ let u = options.readUnknownField;
719
+ if (u === 'throw')
720
+ throw new globalThis.Error(
721
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
722
+ );
723
+ let d = reader.skip(wireType);
724
+ if (u !== false)
725
+ (u === true ? UnknownFieldHandler.onRead : u)(
726
+ this.typeName,
727
+ message,
728
+ fieldNo,
729
+ wireType,
730
+ d
731
+ );
732
+ }
733
+ }
734
+ return message;
735
+ }
736
+ internalBinaryWrite(
737
+ message: StreamingAPI_ReadText,
738
+ writer: IBinaryWriter,
739
+ options: BinaryWriteOptions
740
+ ): IBinaryWriter {
741
+ /* uint64 resource_id = 1; */
742
+ if (message.resourceId !== 0n)
743
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
744
+ /* int64 offset = 2; */
745
+ if (message.offset !== 0n)
746
+ writer.tag(2, WireType.Varint).int64(message.offset);
747
+ /* optional int64 read_limit = 20; */
748
+ if (message.readLimit !== undefined)
749
+ writer.tag(20, WireType.Varint).int64(message.readLimit);
750
+ /* optional string search = 21; */
751
+ if (message.search !== undefined)
752
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
753
+ /* optional string search_re = 22; */
754
+ if (message.searchRe !== undefined)
755
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
756
+ let u = options.writeUnknownFields;
757
+ if (u !== false)
758
+ (u == true ? UnknownFieldHandler.onWrite : u)(
759
+ this.typeName,
760
+ message,
761
+ writer
762
+ );
763
+ return writer;
764
+ }
765
+ }
766
+ /**
767
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
768
+ */
769
+ export const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();
770
+ // @generated message type with reflection information, may provide speed optimized methods
771
+ class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
772
+ constructor() {
773
+ super('MiLaboratories.Controller.Shared.StreamingAPI.LastLines', [
774
+ {
775
+ no: 1,
776
+ name: 'resource_id',
777
+ kind: 'scalar',
778
+ T: 4 /*ScalarType.UINT64*/,
779
+ L: 0 /*LongType.BIGINT*/
780
+ },
781
+ {
782
+ no: 2,
783
+ name: 'offset',
784
+ kind: 'scalar',
785
+ opt: true,
786
+ T: 3 /*ScalarType.INT64*/,
787
+ L: 0 /*LongType.BIGINT*/
788
+ },
789
+ {
790
+ no: 3,
791
+ name: 'line_count',
792
+ kind: 'scalar',
793
+ opt: true,
794
+ T: 5 /*ScalarType.INT32*/
795
+ },
796
+ {
797
+ no: 21,
798
+ name: 'search',
799
+ kind: 'scalar',
800
+ opt: true,
801
+ T: 9 /*ScalarType.STRING*/
802
+ },
803
+ {
804
+ no: 22,
805
+ name: 'search_re',
806
+ kind: 'scalar',
807
+ opt: true,
808
+ T: 9 /*ScalarType.STRING*/
809
+ }
810
+ ]);
811
+ }
812
+ create(
813
+ value?: PartialMessage<StreamingAPI_LastLines>
814
+ ): StreamingAPI_LastLines {
815
+ const message = globalThis.Object.create(this.messagePrototype!);
816
+ message.resourceId = 0n;
817
+ if (value !== undefined)
818
+ reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
819
+ return message;
820
+ }
821
+ internalBinaryRead(
822
+ reader: IBinaryReader,
823
+ length: number,
824
+ options: BinaryReadOptions,
825
+ target?: StreamingAPI_LastLines
826
+ ): StreamingAPI_LastLines {
827
+ let message = target ?? this.create(),
828
+ end = reader.pos + length;
829
+ while (reader.pos < end) {
830
+ let [fieldNo, wireType] = reader.tag();
831
+ switch (fieldNo) {
832
+ case /* uint64 resource_id */ 1:
833
+ message.resourceId = reader.uint64().toBigInt();
834
+ break;
835
+ case /* optional int64 offset */ 2:
836
+ message.offset = reader.int64().toBigInt();
837
+ break;
838
+ case /* optional int32 line_count */ 3:
839
+ message.lineCount = reader.int32();
840
+ break;
841
+ case /* optional string search */ 21:
842
+ message.search = reader.string();
843
+ break;
844
+ case /* optional string search_re */ 22:
845
+ message.searchRe = reader.string();
846
+ break;
847
+ default:
848
+ let u = options.readUnknownField;
849
+ if (u === 'throw')
850
+ throw new globalThis.Error(
851
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
852
+ );
853
+ let d = reader.skip(wireType);
854
+ if (u !== false)
855
+ (u === true ? UnknownFieldHandler.onRead : u)(
856
+ this.typeName,
857
+ message,
858
+ fieldNo,
859
+ wireType,
860
+ d
861
+ );
862
+ }
863
+ }
864
+ return message;
865
+ }
866
+ internalBinaryWrite(
867
+ message: StreamingAPI_LastLines,
868
+ writer: IBinaryWriter,
869
+ options: BinaryWriteOptions
870
+ ): IBinaryWriter {
871
+ /* uint64 resource_id = 1; */
872
+ if (message.resourceId !== 0n)
873
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
874
+ /* optional int64 offset = 2; */
875
+ if (message.offset !== undefined)
876
+ writer.tag(2, WireType.Varint).int64(message.offset);
877
+ /* optional int32 line_count = 3; */
878
+ if (message.lineCount !== undefined)
879
+ writer.tag(3, WireType.Varint).int32(message.lineCount);
880
+ /* optional string search = 21; */
881
+ if (message.search !== undefined)
882
+ writer.tag(21, WireType.LengthDelimited).string(message.search);
883
+ /* optional string search_re = 22; */
884
+ if (message.searchRe !== undefined)
885
+ writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
886
+ let u = options.writeUnknownFields;
887
+ if (u !== false)
888
+ (u == true ? UnknownFieldHandler.onWrite : u)(
889
+ this.typeName,
890
+ message,
891
+ writer
892
+ );
893
+ return writer;
894
+ }
895
+ }
896
+ /**
897
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
898
+ */
899
+ export const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();
900
+ // @generated message type with reflection information, may provide speed optimized methods
901
+ class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
902
+ constructor() {
903
+ super('MiLaboratories.Controller.Shared.StreamingAPI.Response', [
904
+ { no: 1, name: 'data', kind: 'scalar', T: 12 /*ScalarType.BYTES*/ },
905
+ {
906
+ no: 2,
907
+ name: 'size',
908
+ kind: 'scalar',
909
+ T: 4 /*ScalarType.UINT64*/,
910
+ L: 0 /*LongType.BIGINT*/
911
+ },
912
+ {
913
+ no: 3,
914
+ name: 'new_offset',
915
+ kind: 'scalar',
916
+ T: 4 /*ScalarType.UINT64*/,
917
+ L: 0 /*LongType.BIGINT*/
918
+ }
919
+ ]);
920
+ }
921
+ create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
922
+ const message = globalThis.Object.create(this.messagePrototype!);
923
+ message.data = new Uint8Array(0);
924
+ message.size = 0n;
925
+ message.newOffset = 0n;
926
+ if (value !== undefined)
927
+ reflectionMergePartial<StreamingAPI_Response>(this, message, value);
928
+ return message;
929
+ }
930
+ internalBinaryRead(
931
+ reader: IBinaryReader,
932
+ length: number,
933
+ options: BinaryReadOptions,
934
+ target?: StreamingAPI_Response
935
+ ): StreamingAPI_Response {
936
+ let message = target ?? this.create(),
937
+ end = reader.pos + length;
938
+ while (reader.pos < end) {
939
+ let [fieldNo, wireType] = reader.tag();
940
+ switch (fieldNo) {
941
+ case /* bytes data */ 1:
942
+ message.data = reader.bytes();
943
+ break;
944
+ case /* uint64 size */ 2:
945
+ message.size = reader.uint64().toBigInt();
946
+ break;
947
+ case /* uint64 new_offset */ 3:
948
+ message.newOffset = reader.uint64().toBigInt();
949
+ break;
950
+ default:
951
+ let u = options.readUnknownField;
952
+ if (u === 'throw')
953
+ throw new globalThis.Error(
954
+ `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`
955
+ );
956
+ let d = reader.skip(wireType);
957
+ if (u !== false)
958
+ (u === true ? UnknownFieldHandler.onRead : u)(
959
+ this.typeName,
960
+ message,
961
+ fieldNo,
962
+ wireType,
963
+ d
964
+ );
965
+ }
966
+ }
967
+ return message;
968
+ }
969
+ internalBinaryWrite(
970
+ message: StreamingAPI_Response,
971
+ writer: IBinaryWriter,
972
+ options: BinaryWriteOptions
973
+ ): IBinaryWriter {
974
+ /* bytes data = 1; */
975
+ if (message.data.length)
976
+ writer.tag(1, WireType.LengthDelimited).bytes(message.data);
977
+ /* uint64 size = 2; */
978
+ if (message.size !== 0n)
979
+ writer.tag(2, WireType.Varint).uint64(message.size);
980
+ /* uint64 new_offset = 3; */
981
+ if (message.newOffset !== 0n)
982
+ writer.tag(3, WireType.Varint).uint64(message.newOffset);
983
+ let u = options.writeUnknownFields;
984
+ if (u !== false)
985
+ (u == true ? UnknownFieldHandler.onWrite : u)(
986
+ this.typeName,
987
+ message,
988
+ writer
989
+ );
990
+ return writer;
991
+ }
992
+ }
993
+ /**
994
+ * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
995
+ */
996
+ export const StreamingAPI_Response = new StreamingAPI_Response$Type();
997
+ /**
998
+ * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
999
+ */
1000
+ export const Streaming = new ServiceType(
1001
+ 'MiLaboratories.Controller.Shared.Streaming',
1002
+ [
1003
+ {
1004
+ name: 'StreamBinary',
1005
+ serverStreaming: true,
1006
+ options: {},
1007
+ I: StreamingAPI_StreamBinary,
1008
+ O: StreamingAPI_Response
1009
+ },
1010
+ {
1011
+ name: 'ReadBinary',
1012
+ options: {},
1013
+ I: StreamingAPI_ReadBinary,
1014
+ O: StreamingAPI_Response
1015
+ },
1016
+ {
1017
+ name: 'StreamText',
1018
+ serverStreaming: true,
1019
+ options: {},
1020
+ I: StreamingAPI_StreamText,
1021
+ O: StreamingAPI_Response
1022
+ },
1023
+ {
1024
+ name: 'ReadText',
1025
+ options: {},
1026
+ I: StreamingAPI_ReadText,
1027
+ O: StreamingAPI_Response
1028
+ },
1029
+ {
1030
+ name: 'LastLines',
1031
+ options: {},
1032
+ I: StreamingAPI_LastLines,
1033
+ O: StreamingAPI_Response
1034
+ }
1035
+ ]
1036
+ );