@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.
- package/dist/clients/constructors.d.ts.map +1 -1
- package/dist/clients/download.d.ts.map +1 -1
- package/dist/clients/logs.d.ts.map +1 -1
- package/dist/clients/ls_api.d.ts.map +1 -1
- package/dist/clients/progress.d.ts.map +1 -1
- package/dist/clients/upload.d.ts.map +1 -1
- package/dist/drivers/download_blob.d.ts +2 -2
- package/dist/drivers/download_blob.d.ts.map +1 -1
- package/dist/drivers/download_blob_task.d.ts +2 -2
- package/dist/drivers/download_blob_task.d.ts.map +1 -1
- package/dist/drivers/download_blob_url/driver.d.ts +46 -0
- package/dist/drivers/download_blob_url/driver.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/driver_id.d.ts +6 -0
- package/dist/drivers/download_blob_url/driver_id.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/snapshot.d.ts +7 -0
- package/dist/drivers/download_blob_url/snapshot.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/task.d.ts +64 -0
- package/dist/drivers/download_blob_url/task.d.ts.map +1 -0
- package/dist/drivers/download_blob_url/url.d.ts +6 -0
- package/dist/drivers/download_blob_url/url.d.ts.map +1 -0
- package/dist/drivers/download_url.d.ts +2 -2
- package/dist/drivers/download_url.d.ts.map +1 -1
- package/dist/drivers/helpers/download_local_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/download_remote_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/files_cache.d.ts.map +1 -1
- package/dist/drivers/helpers/logs_handle.d.ts +1 -1
- package/dist/drivers/helpers/logs_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.d.ts +1 -1
- package/dist/drivers/helpers/ls_remote_import_handle.d.ts.map +1 -1
- package/dist/drivers/helpers/ls_storage_entry.d.ts +1 -1
- package/dist/drivers/helpers/ls_storage_entry.d.ts.map +1 -1
- package/dist/drivers/logs.d.ts +2 -2
- package/dist/drivers/logs.d.ts.map +1 -1
- package/dist/drivers/logs_stream.d.ts +2 -2
- package/dist/drivers/logs_stream.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +1 -1
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/upload.d.ts +1 -1
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/drivers/upload_task.d.ts +1 -1
- package/dist/drivers/upload_task.d.ts.map +1 -1
- package/dist/drivers/virtual_storages.d.ts.map +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2312 -2067
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +28 -28
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/package.json +9 -4
- package/src/clients/constructors.ts +11 -11
- package/src/clients/download.test.ts +11 -10
- package/src/clients/download.ts +15 -14
- package/src/clients/logs.ts +13 -12
- package/src/clients/ls_api.ts +7 -7
- package/src/clients/progress.ts +15 -13
- package/src/clients/upload.test.ts +6 -5
- package/src/clients/upload.ts +28 -26
- package/src/drivers/download_blob.test.ts +21 -20
- package/src/drivers/download_blob.ts +47 -42
- package/src/drivers/download_blob_task.ts +25 -21
- package/src/drivers/download_blob_url/driver.ts +225 -0
- package/src/drivers/download_blob_url/driver_id.ts +11 -0
- package/src/drivers/download_blob_url/snapshot.ts +20 -0
- package/src/drivers/download_blob_url/task.ts +230 -0
- package/src/drivers/download_blob_url/url.test.ts +39 -0
- package/src/drivers/download_blob_url/url.ts +43 -0
- package/src/drivers/download_url.test.ts +3 -3
- package/src/drivers/download_url.ts +21 -20
- package/src/drivers/helpers/download_local_handle.ts +2 -2
- package/src/drivers/helpers/download_remote_handle.ts +8 -8
- package/src/drivers/helpers/files_cache.test.ts +7 -6
- package/src/drivers/helpers/files_cache.ts +2 -1
- package/src/drivers/helpers/helpers.ts +1 -1
- package/src/drivers/helpers/logs_handle.ts +7 -7
- package/src/drivers/helpers/ls_remote_import_handle.ts +7 -7
- package/src/drivers/helpers/ls_storage_entry.ts +6 -5
- package/src/drivers/logs.test.ts +23 -22
- package/src/drivers/logs.ts +13 -12
- package/src/drivers/logs_stream.ts +42 -37
- package/src/drivers/ls.test.ts +2 -2
- package/src/drivers/ls.ts +38 -35
- package/src/drivers/types.ts +12 -11
- package/src/drivers/upload.test.ts +19 -17
- package/src/drivers/upload.ts +30 -25
- package/src/drivers/upload_task.ts +23 -19
- package/src/drivers/virtual_storages.ts +6 -6
- package/src/helpers/download.ts +8 -8
- package/src/index.ts +2 -0
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +4 -4
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +88 -73
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +2 -2
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +71 -56
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +6 -5
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +130 -106
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +14 -10
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +142 -121
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +11 -8
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +216 -174
- package/src/proto/google/api/http.ts +95 -86
- package/src/proto/google/protobuf/descriptor.ts +674 -593
- package/src/proto/google/protobuf/duration.ts +31 -26
- package/src/proto/google/protobuf/timestamp.ts +52 -44
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts
CHANGED
|
@@ -96,31 +96,34 @@ class ProgressAPI$Type extends MessageType<ProgressAPI> {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super('MiLaboratories.Controller.Shared.ProgressAPI', []);
|
|
98
98
|
}
|
|
99
|
+
|
|
99
100
|
create(value?: PartialMessage<ProgressAPI>): ProgressAPI {
|
|
100
101
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
101
102
|
if (value !== undefined)
|
|
102
103
|
reflectionMergePartial<ProgressAPI>(this, message, value);
|
|
103
104
|
return message;
|
|
104
105
|
}
|
|
106
|
+
|
|
105
107
|
internalBinaryRead(
|
|
106
108
|
reader: IBinaryReader,
|
|
107
109
|
length: number,
|
|
108
110
|
options: BinaryReadOptions,
|
|
109
|
-
target?: ProgressAPI
|
|
111
|
+
target?: ProgressAPI,
|
|
110
112
|
): ProgressAPI {
|
|
111
113
|
return target ?? this.create();
|
|
112
114
|
}
|
|
115
|
+
|
|
113
116
|
internalBinaryWrite(
|
|
114
117
|
message: ProgressAPI,
|
|
115
118
|
writer: IBinaryWriter,
|
|
116
|
-
options: BinaryWriteOptions
|
|
119
|
+
options: BinaryWriteOptions,
|
|
117
120
|
): IBinaryWriter {
|
|
118
|
-
|
|
121
|
+
const u = options.writeUnknownFields;
|
|
119
122
|
if (u !== false)
|
|
120
123
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
121
124
|
this.typeName,
|
|
122
125
|
message,
|
|
123
|
-
writer
|
|
126
|
+
writer,
|
|
124
127
|
);
|
|
125
128
|
return writer;
|
|
126
129
|
}
|
|
@@ -133,25 +136,26 @@ export const ProgressAPI = new ProgressAPI$Type();
|
|
|
133
136
|
class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
134
137
|
constructor() {
|
|
135
138
|
super('MiLaboratories.Controller.Shared.ProgressAPI.Report', [
|
|
136
|
-
{ no: 1, name: 'progress', kind: 'scalar', T: 2 /*ScalarType.FLOAT*/ },
|
|
139
|
+
{ no: 1, name: 'progress', kind: 'scalar', T: 2 /* ScalarType.FLOAT */ },
|
|
137
140
|
{
|
|
138
141
|
no: 2,
|
|
139
142
|
name: 'bytes_processed',
|
|
140
143
|
kind: 'scalar',
|
|
141
|
-
T: 4 /*ScalarType.UINT64*/,
|
|
142
|
-
L: 0 /*LongType.BIGINT*/
|
|
144
|
+
T: 4 /* ScalarType.UINT64 */,
|
|
145
|
+
L: 0, /* LongType.BIGINT */
|
|
143
146
|
},
|
|
144
147
|
{
|
|
145
148
|
no: 3,
|
|
146
149
|
name: 'bytes_total',
|
|
147
150
|
kind: 'scalar',
|
|
148
|
-
T: 4 /*ScalarType.UINT64*/,
|
|
149
|
-
L: 0 /*LongType.BIGINT*/
|
|
151
|
+
T: 4 /* ScalarType.UINT64 */,
|
|
152
|
+
L: 0, /* LongType.BIGINT */
|
|
150
153
|
},
|
|
151
|
-
{ no: 4, name: 'done', kind: 'scalar', T: 8 /*ScalarType.BOOL*/ },
|
|
152
|
-
{ no: 5, name: 'name', kind: 'scalar', T: 9 /*ScalarType.STRING*/ }
|
|
154
|
+
{ no: 4, name: 'done', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
155
|
+
{ no: 5, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
153
156
|
]);
|
|
154
157
|
}
|
|
158
|
+
|
|
155
159
|
create(value?: PartialMessage<ProgressAPI_Report>): ProgressAPI_Report {
|
|
156
160
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
157
161
|
message.progress = 0;
|
|
@@ -163,16 +167,17 @@ class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
|
163
167
|
reflectionMergePartial<ProgressAPI_Report>(this, message, value);
|
|
164
168
|
return message;
|
|
165
169
|
}
|
|
170
|
+
|
|
166
171
|
internalBinaryRead(
|
|
167
172
|
reader: IBinaryReader,
|
|
168
173
|
length: number,
|
|
169
174
|
options: BinaryReadOptions,
|
|
170
|
-
target?: ProgressAPI_Report
|
|
175
|
+
target?: ProgressAPI_Report,
|
|
171
176
|
): ProgressAPI_Report {
|
|
172
|
-
|
|
177
|
+
const message = target ?? this.create(),
|
|
173
178
|
end = reader.pos + length;
|
|
174
179
|
while (reader.pos < end) {
|
|
175
|
-
|
|
180
|
+
const [fieldNo, wireType] = reader.tag();
|
|
176
181
|
switch (fieldNo) {
|
|
177
182
|
case /* float progress */ 1:
|
|
178
183
|
message.progress = reader.float();
|
|
@@ -190,28 +195,29 @@ class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
|
190
195
|
message.name = reader.string();
|
|
191
196
|
break;
|
|
192
197
|
default:
|
|
193
|
-
|
|
198
|
+
const u = options.readUnknownField;
|
|
194
199
|
if (u === 'throw')
|
|
195
200
|
throw new globalThis.Error(
|
|
196
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
201
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
197
202
|
);
|
|
198
|
-
|
|
203
|
+
const d = reader.skip(wireType);
|
|
199
204
|
if (u !== false)
|
|
200
205
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
201
206
|
this.typeName,
|
|
202
207
|
message,
|
|
203
208
|
fieldNo,
|
|
204
209
|
wireType,
|
|
205
|
-
d
|
|
210
|
+
d,
|
|
206
211
|
);
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
return message;
|
|
210
215
|
}
|
|
216
|
+
|
|
211
217
|
internalBinaryWrite(
|
|
212
218
|
message: ProgressAPI_Report,
|
|
213
219
|
writer: IBinaryWriter,
|
|
214
|
-
options: BinaryWriteOptions
|
|
220
|
+
options: BinaryWriteOptions,
|
|
215
221
|
): IBinaryWriter {
|
|
216
222
|
/* float progress = 1; */
|
|
217
223
|
if (message.progress !== 0)
|
|
@@ -228,12 +234,12 @@ class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
|
228
234
|
/* string name = 5; */
|
|
229
235
|
if (message.name !== '')
|
|
230
236
|
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
231
|
-
|
|
237
|
+
const u = options.writeUnknownFields;
|
|
232
238
|
if (u !== false)
|
|
233
239
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
234
240
|
this.typeName,
|
|
235
241
|
message,
|
|
236
|
-
writer
|
|
242
|
+
writer,
|
|
237
243
|
);
|
|
238
244
|
return writer;
|
|
239
245
|
}
|
|
@@ -247,31 +253,34 @@ class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
|
|
|
247
253
|
constructor() {
|
|
248
254
|
super('MiLaboratories.Controller.Shared.ProgressAPI.GetStatus', []);
|
|
249
255
|
}
|
|
256
|
+
|
|
250
257
|
create(value?: PartialMessage<ProgressAPI_GetStatus>): ProgressAPI_GetStatus {
|
|
251
258
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
252
259
|
if (value !== undefined)
|
|
253
260
|
reflectionMergePartial<ProgressAPI_GetStatus>(this, message, value);
|
|
254
261
|
return message;
|
|
255
262
|
}
|
|
263
|
+
|
|
256
264
|
internalBinaryRead(
|
|
257
265
|
reader: IBinaryReader,
|
|
258
266
|
length: number,
|
|
259
267
|
options: BinaryReadOptions,
|
|
260
|
-
target?: ProgressAPI_GetStatus
|
|
268
|
+
target?: ProgressAPI_GetStatus,
|
|
261
269
|
): ProgressAPI_GetStatus {
|
|
262
270
|
return target ?? this.create();
|
|
263
271
|
}
|
|
272
|
+
|
|
264
273
|
internalBinaryWrite(
|
|
265
274
|
message: ProgressAPI_GetStatus,
|
|
266
275
|
writer: IBinaryWriter,
|
|
267
|
-
options: BinaryWriteOptions
|
|
276
|
+
options: BinaryWriteOptions,
|
|
268
277
|
): IBinaryWriter {
|
|
269
|
-
|
|
278
|
+
const u = options.writeUnknownFields;
|
|
270
279
|
if (u !== false)
|
|
271
280
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
272
281
|
this.typeName,
|
|
273
282
|
message,
|
|
274
|
-
writer
|
|
283
|
+
writer,
|
|
275
284
|
);
|
|
276
285
|
return writer;
|
|
277
286
|
}
|
|
@@ -288,13 +297,14 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
|
|
|
288
297
|
no: 1,
|
|
289
298
|
name: 'resource_id',
|
|
290
299
|
kind: 'scalar',
|
|
291
|
-
T: 4 /*ScalarType.UINT64*/,
|
|
292
|
-
L: 0 /*LongType.BIGINT*/
|
|
293
|
-
}
|
|
300
|
+
T: 4 /* ScalarType.UINT64 */,
|
|
301
|
+
L: 0, /* LongType.BIGINT */
|
|
302
|
+
},
|
|
294
303
|
]);
|
|
295
304
|
}
|
|
305
|
+
|
|
296
306
|
create(
|
|
297
|
-
value?: PartialMessage<ProgressAPI_GetStatus_Request
|
|
307
|
+
value?: PartialMessage<ProgressAPI_GetStatus_Request>,
|
|
298
308
|
): ProgressAPI_GetStatus_Request {
|
|
299
309
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
300
310
|
message.resourceId = 0n;
|
|
@@ -302,57 +312,59 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
|
|
|
302
312
|
reflectionMergePartial<ProgressAPI_GetStatus_Request>(
|
|
303
313
|
this,
|
|
304
314
|
message,
|
|
305
|
-
value
|
|
315
|
+
value,
|
|
306
316
|
);
|
|
307
317
|
return message;
|
|
308
318
|
}
|
|
319
|
+
|
|
309
320
|
internalBinaryRead(
|
|
310
321
|
reader: IBinaryReader,
|
|
311
322
|
length: number,
|
|
312
323
|
options: BinaryReadOptions,
|
|
313
|
-
target?: ProgressAPI_GetStatus_Request
|
|
324
|
+
target?: ProgressAPI_GetStatus_Request,
|
|
314
325
|
): ProgressAPI_GetStatus_Request {
|
|
315
|
-
|
|
326
|
+
const message = target ?? this.create(),
|
|
316
327
|
end = reader.pos + length;
|
|
317
328
|
while (reader.pos < end) {
|
|
318
|
-
|
|
329
|
+
const [fieldNo, wireType] = reader.tag();
|
|
319
330
|
switch (fieldNo) {
|
|
320
331
|
case /* uint64 resource_id */ 1:
|
|
321
332
|
message.resourceId = reader.uint64().toBigInt();
|
|
322
333
|
break;
|
|
323
334
|
default:
|
|
324
|
-
|
|
335
|
+
const u = options.readUnknownField;
|
|
325
336
|
if (u === 'throw')
|
|
326
337
|
throw new globalThis.Error(
|
|
327
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
338
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
328
339
|
);
|
|
329
|
-
|
|
340
|
+
const d = reader.skip(wireType);
|
|
330
341
|
if (u !== false)
|
|
331
342
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
332
343
|
this.typeName,
|
|
333
344
|
message,
|
|
334
345
|
fieldNo,
|
|
335
346
|
wireType,
|
|
336
|
-
d
|
|
347
|
+
d,
|
|
337
348
|
);
|
|
338
349
|
}
|
|
339
350
|
}
|
|
340
351
|
return message;
|
|
341
352
|
}
|
|
353
|
+
|
|
342
354
|
internalBinaryWrite(
|
|
343
355
|
message: ProgressAPI_GetStatus_Request,
|
|
344
356
|
writer: IBinaryWriter,
|
|
345
|
-
options: BinaryWriteOptions
|
|
357
|
+
options: BinaryWriteOptions,
|
|
346
358
|
): IBinaryWriter {
|
|
347
359
|
/* uint64 resource_id = 1; */
|
|
348
360
|
if (message.resourceId !== 0n)
|
|
349
361
|
writer.tag(1, WireType.Varint).uint64(message.resourceId);
|
|
350
|
-
|
|
362
|
+
const u = options.writeUnknownFields;
|
|
351
363
|
if (u !== false)
|
|
352
364
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
353
365
|
this.typeName,
|
|
354
366
|
message,
|
|
355
|
-
writer
|
|
367
|
+
writer,
|
|
356
368
|
);
|
|
357
369
|
return writer;
|
|
358
370
|
}
|
|
@@ -360,83 +372,86 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
|
|
|
360
372
|
/**
|
|
361
373
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
|
|
362
374
|
*/
|
|
363
|
-
export const ProgressAPI_GetStatus_Request
|
|
364
|
-
new ProgressAPI_GetStatus_Request$Type();
|
|
375
|
+
export const ProgressAPI_GetStatus_Request
|
|
376
|
+
= new ProgressAPI_GetStatus_Request$Type();
|
|
365
377
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
366
378
|
class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetStatus_Response> {
|
|
367
379
|
constructor() {
|
|
368
380
|
super('MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response', [
|
|
369
|
-
{ no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report }
|
|
381
|
+
{ no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report },
|
|
370
382
|
]);
|
|
371
383
|
}
|
|
384
|
+
|
|
372
385
|
create(
|
|
373
|
-
value?: PartialMessage<ProgressAPI_GetStatus_Response
|
|
386
|
+
value?: PartialMessage<ProgressAPI_GetStatus_Response>,
|
|
374
387
|
): ProgressAPI_GetStatus_Response {
|
|
375
388
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
376
389
|
if (value !== undefined)
|
|
377
390
|
reflectionMergePartial<ProgressAPI_GetStatus_Response>(
|
|
378
391
|
this,
|
|
379
392
|
message,
|
|
380
|
-
value
|
|
393
|
+
value,
|
|
381
394
|
);
|
|
382
395
|
return message;
|
|
383
396
|
}
|
|
397
|
+
|
|
384
398
|
internalBinaryRead(
|
|
385
399
|
reader: IBinaryReader,
|
|
386
400
|
length: number,
|
|
387
401
|
options: BinaryReadOptions,
|
|
388
|
-
target?: ProgressAPI_GetStatus_Response
|
|
402
|
+
target?: ProgressAPI_GetStatus_Response,
|
|
389
403
|
): ProgressAPI_GetStatus_Response {
|
|
390
|
-
|
|
404
|
+
const message = target ?? this.create(),
|
|
391
405
|
end = reader.pos + length;
|
|
392
406
|
while (reader.pos < end) {
|
|
393
|
-
|
|
407
|
+
const [fieldNo, wireType] = reader.tag();
|
|
394
408
|
switch (fieldNo) {
|
|
395
409
|
case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
|
|
396
410
|
message.report = ProgressAPI_Report.internalBinaryRead(
|
|
397
411
|
reader,
|
|
398
412
|
reader.uint32(),
|
|
399
413
|
options,
|
|
400
|
-
message.report
|
|
414
|
+
message.report,
|
|
401
415
|
);
|
|
402
416
|
break;
|
|
403
417
|
default:
|
|
404
|
-
|
|
418
|
+
const u = options.readUnknownField;
|
|
405
419
|
if (u === 'throw')
|
|
406
420
|
throw new globalThis.Error(
|
|
407
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
421
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
408
422
|
);
|
|
409
|
-
|
|
423
|
+
const d = reader.skip(wireType);
|
|
410
424
|
if (u !== false)
|
|
411
425
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
412
426
|
this.typeName,
|
|
413
427
|
message,
|
|
414
428
|
fieldNo,
|
|
415
429
|
wireType,
|
|
416
|
-
d
|
|
430
|
+
d,
|
|
417
431
|
);
|
|
418
432
|
}
|
|
419
433
|
}
|
|
420
434
|
return message;
|
|
421
435
|
}
|
|
436
|
+
|
|
422
437
|
internalBinaryWrite(
|
|
423
438
|
message: ProgressAPI_GetStatus_Response,
|
|
424
439
|
writer: IBinaryWriter,
|
|
425
|
-
options: BinaryWriteOptions
|
|
440
|
+
options: BinaryWriteOptions,
|
|
426
441
|
): IBinaryWriter {
|
|
427
442
|
/* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
|
|
428
443
|
if (message.report)
|
|
429
444
|
ProgressAPI_Report.internalBinaryWrite(
|
|
430
445
|
message.report,
|
|
431
446
|
writer.tag(1, WireType.LengthDelimited).fork(),
|
|
432
|
-
options
|
|
447
|
+
options,
|
|
433
448
|
).join();
|
|
434
|
-
|
|
449
|
+
const u = options.writeUnknownFields;
|
|
435
450
|
if (u !== false)
|
|
436
451
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
437
452
|
this.typeName,
|
|
438
453
|
message,
|
|
439
|
-
writer
|
|
454
|
+
writer,
|
|
440
455
|
);
|
|
441
456
|
return writer;
|
|
442
457
|
}
|
|
@@ -444,40 +459,43 @@ class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetSta
|
|
|
444
459
|
/**
|
|
445
460
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
|
|
446
461
|
*/
|
|
447
|
-
export const ProgressAPI_GetStatus_Response
|
|
448
|
-
new ProgressAPI_GetStatus_Response$Type();
|
|
462
|
+
export const ProgressAPI_GetStatus_Response
|
|
463
|
+
= new ProgressAPI_GetStatus_Response$Type();
|
|
449
464
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
450
465
|
class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeStatus> {
|
|
451
466
|
constructor() {
|
|
452
467
|
super('MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus', []);
|
|
453
468
|
}
|
|
469
|
+
|
|
454
470
|
create(
|
|
455
|
-
value?: PartialMessage<ProgressAPI_RealtimeStatus
|
|
471
|
+
value?: PartialMessage<ProgressAPI_RealtimeStatus>,
|
|
456
472
|
): ProgressAPI_RealtimeStatus {
|
|
457
473
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
458
474
|
if (value !== undefined)
|
|
459
475
|
reflectionMergePartial<ProgressAPI_RealtimeStatus>(this, message, value);
|
|
460
476
|
return message;
|
|
461
477
|
}
|
|
478
|
+
|
|
462
479
|
internalBinaryRead(
|
|
463
480
|
reader: IBinaryReader,
|
|
464
481
|
length: number,
|
|
465
482
|
options: BinaryReadOptions,
|
|
466
|
-
target?: ProgressAPI_RealtimeStatus
|
|
483
|
+
target?: ProgressAPI_RealtimeStatus,
|
|
467
484
|
): ProgressAPI_RealtimeStatus {
|
|
468
485
|
return target ?? this.create();
|
|
469
486
|
}
|
|
487
|
+
|
|
470
488
|
internalBinaryWrite(
|
|
471
489
|
message: ProgressAPI_RealtimeStatus,
|
|
472
490
|
writer: IBinaryWriter,
|
|
473
|
-
options: BinaryWriteOptions
|
|
491
|
+
options: BinaryWriteOptions,
|
|
474
492
|
): IBinaryWriter {
|
|
475
|
-
|
|
493
|
+
const u = options.writeUnknownFields;
|
|
476
494
|
if (u !== false)
|
|
477
495
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
478
496
|
this.typeName,
|
|
479
497
|
message,
|
|
480
|
-
writer
|
|
498
|
+
writer,
|
|
481
499
|
);
|
|
482
500
|
return writer;
|
|
483
501
|
}
|
|
@@ -496,15 +514,16 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
496
514
|
no: 1,
|
|
497
515
|
name: 'resource_id',
|
|
498
516
|
kind: 'scalar',
|
|
499
|
-
T: 4 /*ScalarType.UINT64*/,
|
|
500
|
-
L: 0 /*LongType.BIGINT*/
|
|
517
|
+
T: 4 /* ScalarType.UINT64 */,
|
|
518
|
+
L: 0, /* LongType.BIGINT */
|
|
501
519
|
},
|
|
502
|
-
{ no: 2, name: 'update_interval', kind: 'message', T: () => Duration }
|
|
503
|
-
]
|
|
520
|
+
{ no: 2, name: 'update_interval', kind: 'message', T: () => Duration },
|
|
521
|
+
],
|
|
504
522
|
);
|
|
505
523
|
}
|
|
524
|
+
|
|
506
525
|
create(
|
|
507
|
-
value?: PartialMessage<ProgressAPI_RealtimeStatus_Request
|
|
526
|
+
value?: PartialMessage<ProgressAPI_RealtimeStatus_Request>,
|
|
508
527
|
): ProgressAPI_RealtimeStatus_Request {
|
|
509
528
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
510
529
|
message.resourceId = 0n;
|
|
@@ -512,20 +531,21 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
512
531
|
reflectionMergePartial<ProgressAPI_RealtimeStatus_Request>(
|
|
513
532
|
this,
|
|
514
533
|
message,
|
|
515
|
-
value
|
|
534
|
+
value,
|
|
516
535
|
);
|
|
517
536
|
return message;
|
|
518
537
|
}
|
|
538
|
+
|
|
519
539
|
internalBinaryRead(
|
|
520
540
|
reader: IBinaryReader,
|
|
521
541
|
length: number,
|
|
522
542
|
options: BinaryReadOptions,
|
|
523
|
-
target?: ProgressAPI_RealtimeStatus_Request
|
|
543
|
+
target?: ProgressAPI_RealtimeStatus_Request,
|
|
524
544
|
): ProgressAPI_RealtimeStatus_Request {
|
|
525
|
-
|
|
545
|
+
const message = target ?? this.create(),
|
|
526
546
|
end = reader.pos + length;
|
|
527
547
|
while (reader.pos < end) {
|
|
528
|
-
|
|
548
|
+
const [fieldNo, wireType] = reader.tag();
|
|
529
549
|
switch (fieldNo) {
|
|
530
550
|
case /* uint64 resource_id */ 1:
|
|
531
551
|
message.resourceId = reader.uint64().toBigInt();
|
|
@@ -535,32 +555,33 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
535
555
|
reader,
|
|
536
556
|
reader.uint32(),
|
|
537
557
|
options,
|
|
538
|
-
message.updateInterval
|
|
558
|
+
message.updateInterval,
|
|
539
559
|
);
|
|
540
560
|
break;
|
|
541
561
|
default:
|
|
542
|
-
|
|
562
|
+
const u = options.readUnknownField;
|
|
543
563
|
if (u === 'throw')
|
|
544
564
|
throw new globalThis.Error(
|
|
545
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
565
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
546
566
|
);
|
|
547
|
-
|
|
567
|
+
const d = reader.skip(wireType);
|
|
548
568
|
if (u !== false)
|
|
549
569
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
550
570
|
this.typeName,
|
|
551
571
|
message,
|
|
552
572
|
fieldNo,
|
|
553
573
|
wireType,
|
|
554
|
-
d
|
|
574
|
+
d,
|
|
555
575
|
);
|
|
556
576
|
}
|
|
557
577
|
}
|
|
558
578
|
return message;
|
|
559
579
|
}
|
|
580
|
+
|
|
560
581
|
internalBinaryWrite(
|
|
561
582
|
message: ProgressAPI_RealtimeStatus_Request,
|
|
562
583
|
writer: IBinaryWriter,
|
|
563
|
-
options: BinaryWriteOptions
|
|
584
|
+
options: BinaryWriteOptions,
|
|
564
585
|
): IBinaryWriter {
|
|
565
586
|
/* uint64 resource_id = 1; */
|
|
566
587
|
if (message.resourceId !== 0n)
|
|
@@ -570,14 +591,14 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
570
591
|
Duration.internalBinaryWrite(
|
|
571
592
|
message.updateInterval,
|
|
572
593
|
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
573
|
-
options
|
|
594
|
+
options,
|
|
574
595
|
).join();
|
|
575
|
-
|
|
596
|
+
const u = options.writeUnknownFields;
|
|
576
597
|
if (u !== false)
|
|
577
598
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
578
599
|
this.typeName,
|
|
579
600
|
message,
|
|
580
|
-
writer
|
|
601
|
+
writer,
|
|
581
602
|
);
|
|
582
603
|
return writer;
|
|
583
604
|
}
|
|
@@ -585,84 +606,87 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
585
606
|
/**
|
|
586
607
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
|
|
587
608
|
*/
|
|
588
|
-
export const ProgressAPI_RealtimeStatus_Request
|
|
589
|
-
new ProgressAPI_RealtimeStatus_Request$Type();
|
|
609
|
+
export const ProgressAPI_RealtimeStatus_Request
|
|
610
|
+
= new ProgressAPI_RealtimeStatus_Request$Type();
|
|
590
611
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
591
612
|
class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_RealtimeStatus_Response> {
|
|
592
613
|
constructor() {
|
|
593
614
|
super(
|
|
594
615
|
'MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response',
|
|
595
|
-
[{ no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report }]
|
|
616
|
+
[{ no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report }],
|
|
596
617
|
);
|
|
597
618
|
}
|
|
619
|
+
|
|
598
620
|
create(
|
|
599
|
-
value?: PartialMessage<ProgressAPI_RealtimeStatus_Response
|
|
621
|
+
value?: PartialMessage<ProgressAPI_RealtimeStatus_Response>,
|
|
600
622
|
): ProgressAPI_RealtimeStatus_Response {
|
|
601
623
|
const message = globalThis.Object.create(this.messagePrototype!);
|
|
602
624
|
if (value !== undefined)
|
|
603
625
|
reflectionMergePartial<ProgressAPI_RealtimeStatus_Response>(
|
|
604
626
|
this,
|
|
605
627
|
message,
|
|
606
|
-
value
|
|
628
|
+
value,
|
|
607
629
|
);
|
|
608
630
|
return message;
|
|
609
631
|
}
|
|
632
|
+
|
|
610
633
|
internalBinaryRead(
|
|
611
634
|
reader: IBinaryReader,
|
|
612
635
|
length: number,
|
|
613
636
|
options: BinaryReadOptions,
|
|
614
|
-
target?: ProgressAPI_RealtimeStatus_Response
|
|
637
|
+
target?: ProgressAPI_RealtimeStatus_Response,
|
|
615
638
|
): ProgressAPI_RealtimeStatus_Response {
|
|
616
|
-
|
|
639
|
+
const message = target ?? this.create(),
|
|
617
640
|
end = reader.pos + length;
|
|
618
641
|
while (reader.pos < end) {
|
|
619
|
-
|
|
642
|
+
const [fieldNo, wireType] = reader.tag();
|
|
620
643
|
switch (fieldNo) {
|
|
621
644
|
case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
|
|
622
645
|
message.report = ProgressAPI_Report.internalBinaryRead(
|
|
623
646
|
reader,
|
|
624
647
|
reader.uint32(),
|
|
625
648
|
options,
|
|
626
|
-
message.report
|
|
649
|
+
message.report,
|
|
627
650
|
);
|
|
628
651
|
break;
|
|
629
652
|
default:
|
|
630
|
-
|
|
653
|
+
const u = options.readUnknownField;
|
|
631
654
|
if (u === 'throw')
|
|
632
655
|
throw new globalThis.Error(
|
|
633
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}
|
|
656
|
+
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
634
657
|
);
|
|
635
|
-
|
|
658
|
+
const d = reader.skip(wireType);
|
|
636
659
|
if (u !== false)
|
|
637
660
|
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
638
661
|
this.typeName,
|
|
639
662
|
message,
|
|
640
663
|
fieldNo,
|
|
641
664
|
wireType,
|
|
642
|
-
d
|
|
665
|
+
d,
|
|
643
666
|
);
|
|
644
667
|
}
|
|
645
668
|
}
|
|
646
669
|
return message;
|
|
647
670
|
}
|
|
671
|
+
|
|
648
672
|
internalBinaryWrite(
|
|
649
673
|
message: ProgressAPI_RealtimeStatus_Response,
|
|
650
674
|
writer: IBinaryWriter,
|
|
651
|
-
options: BinaryWriteOptions
|
|
675
|
+
options: BinaryWriteOptions,
|
|
652
676
|
): IBinaryWriter {
|
|
653
677
|
/* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
|
|
654
678
|
if (message.report)
|
|
655
679
|
ProgressAPI_Report.internalBinaryWrite(
|
|
656
680
|
message.report,
|
|
657
681
|
writer.tag(1, WireType.LengthDelimited).fork(),
|
|
658
|
-
options
|
|
682
|
+
options,
|
|
659
683
|
).join();
|
|
660
|
-
|
|
684
|
+
const u = options.writeUnknownFields;
|
|
661
685
|
if (u !== false)
|
|
662
686
|
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
663
687
|
this.typeName,
|
|
664
688
|
message,
|
|
665
|
-
writer
|
|
689
|
+
writer,
|
|
666
690
|
);
|
|
667
691
|
return writer;
|
|
668
692
|
}
|
|
@@ -670,8 +694,8 @@ class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_R
|
|
|
670
694
|
/**
|
|
671
695
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
|
|
672
696
|
*/
|
|
673
|
-
export const ProgressAPI_RealtimeStatus_Response
|
|
674
|
-
new ProgressAPI_RealtimeStatus_Response$Type();
|
|
697
|
+
export const ProgressAPI_RealtimeStatus_Response
|
|
698
|
+
= new ProgressAPI_RealtimeStatus_Response$Type();
|
|
675
699
|
/**
|
|
676
700
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Progress
|
|
677
701
|
*/
|
|
@@ -681,17 +705,17 @@ export const Progress = new ServiceType(
|
|
|
681
705
|
{
|
|
682
706
|
name: 'GetStatus',
|
|
683
707
|
options: {
|
|
684
|
-
'google.api.http': { get: '/resources/{resource_id}/get-progress' }
|
|
708
|
+
'google.api.http': { get: '/resources/{resource_id}/get-progress' },
|
|
685
709
|
},
|
|
686
710
|
I: ProgressAPI_GetStatus_Request,
|
|
687
|
-
O: ProgressAPI_GetStatus_Response
|
|
711
|
+
O: ProgressAPI_GetStatus_Response,
|
|
688
712
|
},
|
|
689
713
|
{
|
|
690
714
|
name: 'RealtimeStatus',
|
|
691
715
|
serverStreaming: true,
|
|
692
716
|
options: {},
|
|
693
717
|
I: ProgressAPI_RealtimeStatus_Request,
|
|
694
|
-
O: ProgressAPI_RealtimeStatus_Response
|
|
695
|
-
}
|
|
696
|
-
]
|
|
718
|
+
O: ProgressAPI_RealtimeStatus_Response,
|
|
719
|
+
},
|
|
720
|
+
],
|
|
697
721
|
);
|