@milaboratories/pl-drivers 1.6.3 → 1.6.5

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