@milaboratories/pl-client 2.7.13 → 2.8.0

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 (86) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +5 -2
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts +12 -2
  10. package/dist/core/ll_client.d.ts.map +1 -1
  11. package/dist/core/ll_transaction.d.ts.map +1 -1
  12. package/dist/core/transaction.d.ts +1 -1
  13. package/dist/core/transaction.d.ts.map +1 -1
  14. package/dist/core/type_conversion.d.ts.map +1 -1
  15. package/dist/core/types.d.ts +1 -1
  16. package/dist/core/types.d.ts.map +1 -1
  17. package/dist/core/unauth_client.d.ts.map +1 -1
  18. package/dist/helpers/pl.d.ts.map +1 -1
  19. package/dist/helpers/poll.d.ts.map +1 -1
  20. package/dist/helpers/state_helpers.d.ts.map +1 -1
  21. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +2361 -2342
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  34. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +17 -0
  35. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  36. package/dist/proto/google/api/http.d.ts +89 -89
  37. package/dist/proto/google/api/http.d.ts.map +1 -1
  38. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  39. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  40. package/dist/test/test_config.d.ts.map +1 -1
  41. package/dist/util/util.d.ts.map +1 -1
  42. package/package.json +7 -3
  43. package/src/core/auth.ts +3 -3
  44. package/src/core/cache.ts +1 -1
  45. package/src/core/client.ts +63 -59
  46. package/src/core/config.ts +21 -21
  47. package/src/core/default_client.ts +15 -14
  48. package/src/core/driver.ts +4 -4
  49. package/src/core/errors.ts +3 -3
  50. package/src/core/final.ts +7 -4
  51. package/src/core/ll_client.ts +72 -43
  52. package/src/core/ll_transaction.ts +17 -17
  53. package/src/core/stat.ts +2 -2
  54. package/src/core/transaction.ts +93 -95
  55. package/src/core/type_conversion.ts +11 -8
  56. package/src/core/types.ts +25 -26
  57. package/src/core/unauth_client.ts +6 -6
  58. package/src/helpers/pl.ts +8 -7
  59. package/src/helpers/poll.ts +25 -21
  60. package/src/helpers/state_helpers.ts +2 -1
  61. package/src/helpers/tx_helpers.ts +4 -3
  62. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +1 -1
  63. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  64. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  65. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +1 -1
  66. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +1 -1
  67. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  68. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  69. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +1 -1
  70. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +1 -1
  71. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +1 -1
  72. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +27 -2
  73. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1 -1
  74. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +1 -1
  75. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +1 -1
  76. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +1 -1
  77. package/src/proto/google/api/http.ts +280 -271
  78. package/src/proto/google/protobuf/any.ts +1 -1
  79. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  80. package/src/proto/google/protobuf/duration.ts +1 -1
  81. package/src/proto/google/protobuf/empty.ts +1 -1
  82. package/src/proto/google/protobuf/struct.ts +1 -1
  83. package/src/proto/google/protobuf/timestamp.ts +2 -2
  84. package/src/proto/google/protobuf/wrappers.ts +1 -1
  85. package/src/test/test_config.ts +21 -19
  86. package/src/util/util.ts +1 -0
@@ -1,17 +1,17 @@
1
1
  // @generated by protobuf-ts 2.9.5 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 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";
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
  */
@@ -21,28 +21,28 @@ export interface ProgressAPI {
21
21
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
22
22
  */
23
23
  export interface ProgressAPI_Report {
24
- /**
24
+ /**
25
25
  * @generated from protobuf field: float progress = 1;
26
26
  */
27
- progress: number;
28
- /**
27
+ progress: number;
28
+ /**
29
29
  * @generated from protobuf field: uint64 bytes_processed = 2;
30
30
  */
31
- bytesProcessed: bigint;
32
- /**
31
+ bytesProcessed: bigint;
32
+ /**
33
33
  * @generated from protobuf field: uint64 bytes_total = 3;
34
34
  */
35
- bytesTotal: bigint;
36
- /**
35
+ bytesTotal: bigint;
36
+ /**
37
37
  * @generated from protobuf field: bool done = 4;
38
38
  */
39
- done: boolean;
40
- /**
39
+ done: boolean;
40
+ /**
41
41
  * Name of current progress stage (if any)
42
42
  *
43
43
  * @generated from protobuf field: string name = 5;
44
44
  */
45
- name: string;
45
+ name: string;
46
46
  }
47
47
  /**
48
48
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
@@ -53,19 +53,19 @@ export interface ProgressAPI_GetStatus {
53
53
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
54
54
  */
55
55
  export interface ProgressAPI_GetStatus_Request {
56
- /**
56
+ /**
57
57
  * @generated from protobuf field: uint64 resource_id = 1;
58
58
  */
59
- resourceId: bigint;
59
+ resourceId: bigint;
60
60
  }
61
61
  /**
62
62
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
63
63
  */
64
64
  export interface ProgressAPI_GetStatus_Response {
65
- /**
65
+ /**
66
66
  * @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1;
67
67
  */
68
- report?: ProgressAPI_Report;
68
+ report?: ProgressAPI_Report;
69
69
  }
70
70
  /**
71
71
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
@@ -76,57 +76,60 @@ export interface ProgressAPI_RealtimeStatus {
76
76
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
77
77
  */
78
78
  export interface ProgressAPI_RealtimeStatus_Request {
79
- /**
79
+ /**
80
80
  * @generated from protobuf field: uint64 resource_id = 1;
81
81
  */
82
- resourceId: bigint;
83
- /**
82
+ resourceId: bigint;
83
+ /**
84
84
  * @generated from protobuf field: google.protobuf.Duration update_interval = 2;
85
85
  */
86
- updateInterval?: Duration;
86
+ updateInterval?: Duration;
87
87
  }
88
88
  /**
89
89
  * @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
90
90
  */
91
91
  export interface ProgressAPI_RealtimeStatus_Response {
92
- /**
92
+ /**
93
93
  * @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1;
94
94
  */
95
- report?: ProgressAPI_Report;
95
+ report?: ProgressAPI_Report;
96
96
  }
97
97
  // @generated message type with reflection information, may provide speed optimized methods
98
98
  class ProgressAPI$Type extends MessageType<ProgressAPI> {
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
- }
99
+ constructor() {
100
+ super('MiLaboratories.Controller.Shared.ProgressAPI', []);
101
+ }
102
+
103
+ create(value?: PartialMessage<ProgressAPI>): ProgressAPI {
104
+ const message = globalThis.Object.create((this.messagePrototype!));
105
+ if (value !== undefined)
106
+ reflectionMergePartial<ProgressAPI>(this, message, value);
107
+ return message;
108
+ }
109
+
110
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI): ProgressAPI {
111
+ const message = target ?? this.create(), end = reader.pos + length;
112
+ while (reader.pos < end) {
113
+ const [fieldNo, wireType] = reader.tag();
114
+ switch (fieldNo) {
115
+ default:
116
+ const u = options.readUnknownField;
117
+ if (u === 'throw')
118
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
119
+ const d = reader.skip(wireType);
120
+ if (u !== false)
121
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
122
+ }
123
+ }
124
+ return message;
125
+ }
126
+
127
+ internalBinaryWrite(message: ProgressAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
128
+ const u = options.writeUnknownFields;
129
+ if (u !== false)
130
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
131
+ return writer;
132
+ }
130
133
  }
131
134
  /**
132
135
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI
@@ -134,78 +137,81 @@ class ProgressAPI$Type extends MessageType<ProgressAPI> {
134
137
  export const ProgressAPI = new ProgressAPI$Type();
135
138
  // @generated message type with reflection information, may provide speed optimized methods
136
139
  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
- { 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
- }
140
+ constructor() {
141
+ super('MiLaboratories.Controller.Shared.ProgressAPI.Report', [
142
+ { no: 1, name: 'progress', kind: 'scalar', T: 2 /* ScalarType.FLOAT */ },
143
+ { no: 2, name: 'bytes_processed', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
144
+ { no: 3, name: 'bytes_total', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
145
+ { no: 4, name: 'done', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
146
+ { no: 5, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
147
+ ]);
148
+ }
149
+
150
+ create(value?: PartialMessage<ProgressAPI_Report>): ProgressAPI_Report {
151
+ const message = globalThis.Object.create((this.messagePrototype!));
152
+ message.progress = 0;
153
+ message.bytesProcessed = 0n;
154
+ message.bytesTotal = 0n;
155
+ message.done = false;
156
+ message.name = '';
157
+ if (value !== undefined)
158
+ reflectionMergePartial<ProgressAPI_Report>(this, message, value);
159
+ return message;
160
+ }
161
+
162
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_Report): ProgressAPI_Report {
163
+ const message = target ?? this.create(), end = reader.pos + length;
164
+ while (reader.pos < end) {
165
+ const [fieldNo, wireType] = reader.tag();
166
+ switch (fieldNo) {
167
+ case /* float progress */ 1:
168
+ message.progress = reader.float();
169
+ break;
170
+ case /* uint64 bytes_processed */ 2:
171
+ message.bytesProcessed = reader.uint64().toBigInt();
172
+ break;
173
+ case /* uint64 bytes_total */ 3:
174
+ message.bytesTotal = reader.uint64().toBigInt();
175
+ break;
176
+ case /* bool done */ 4:
177
+ message.done = reader.bool();
178
+ break;
179
+ case /* string name */ 5:
180
+ message.name = reader.string();
181
+ break;
182
+ default:
183
+ const u = options.readUnknownField;
184
+ if (u === 'throw')
185
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
186
+ const d = reader.skip(wireType);
187
+ if (u !== false)
188
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
189
+ }
190
+ }
191
+ return message;
192
+ }
193
+
194
+ internalBinaryWrite(message: ProgressAPI_Report, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
195
+ /* float progress = 1; */
196
+ if (message.progress !== 0)
197
+ writer.tag(1, WireType.Bit32).float(message.progress);
198
+ /* uint64 bytes_processed = 2; */
199
+ if (message.bytesProcessed !== 0n)
200
+ writer.tag(2, WireType.Varint).uint64(message.bytesProcessed);
201
+ /* uint64 bytes_total = 3; */
202
+ if (message.bytesTotal !== 0n)
203
+ writer.tag(3, WireType.Varint).uint64(message.bytesTotal);
204
+ /* bool done = 4; */
205
+ if (message.done !== false)
206
+ writer.tag(4, WireType.Varint).bool(message.done);
207
+ /* string name = 5; */
208
+ if (message.name !== '')
209
+ writer.tag(5, WireType.LengthDelimited).string(message.name);
210
+ const u = options.writeUnknownFields;
211
+ if (u !== false)
212
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
213
+ return writer;
214
+ }
209
215
  }
210
216
  /**
211
217
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
@@ -213,37 +219,40 @@ class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
213
219
  export const ProgressAPI_Report = new ProgressAPI_Report$Type();
214
220
  // @generated message type with reflection information, may provide speed optimized methods
215
221
  class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
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
- }
222
+ constructor() {
223
+ super('MiLaboratories.Controller.Shared.ProgressAPI.GetStatus', []);
224
+ }
225
+
226
+ create(value?: PartialMessage<ProgressAPI_GetStatus>): ProgressAPI_GetStatus {
227
+ const message = globalThis.Object.create((this.messagePrototype!));
228
+ if (value !== undefined)
229
+ reflectionMergePartial<ProgressAPI_GetStatus>(this, message, value);
230
+ return message;
231
+ }
232
+
233
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus): ProgressAPI_GetStatus {
234
+ const message = target ?? this.create(), end = reader.pos + length;
235
+ while (reader.pos < end) {
236
+ const [fieldNo, wireType] = reader.tag();
237
+ switch (fieldNo) {
238
+ default:
239
+ const u = options.readUnknownField;
240
+ if (u === 'throw')
241
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
242
+ const d = reader.skip(wireType);
243
+ if (u !== false)
244
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
245
+ }
246
+ }
247
+ return message;
248
+ }
249
+
250
+ internalBinaryWrite(message: ProgressAPI_GetStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
251
+ const u = options.writeUnknownFields;
252
+ if (u !== false)
253
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
254
+ return writer;
255
+ }
247
256
  }
248
257
  /**
249
258
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
@@ -251,46 +260,49 @@ class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
251
260
  export const ProgressAPI_GetStatus = new ProgressAPI_GetStatus$Type();
252
261
  // @generated message type with reflection information, may provide speed optimized methods
253
262
  class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStatus_Request> {
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
- }
263
+ constructor() {
264
+ super('MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request', [
265
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
266
+ ]);
267
+ }
268
+
269
+ create(value?: PartialMessage<ProgressAPI_GetStatus_Request>): ProgressAPI_GetStatus_Request {
270
+ const message = globalThis.Object.create((this.messagePrototype!));
271
+ message.resourceId = 0n;
272
+ if (value !== undefined)
273
+ reflectionMergePartial<ProgressAPI_GetStatus_Request>(this, message, value);
274
+ return message;
275
+ }
276
+
277
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Request): ProgressAPI_GetStatus_Request {
278
+ const message = target ?? this.create(), end = reader.pos + length;
279
+ while (reader.pos < end) {
280
+ const [fieldNo, wireType] = reader.tag();
281
+ switch (fieldNo) {
282
+ case /* uint64 resource_id */ 1:
283
+ message.resourceId = reader.uint64().toBigInt();
284
+ break;
285
+ default:
286
+ const u = options.readUnknownField;
287
+ if (u === 'throw')
288
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
289
+ const d = reader.skip(wireType);
290
+ if (u !== false)
291
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
292
+ }
293
+ }
294
+ return message;
295
+ }
296
+
297
+ internalBinaryWrite(message: ProgressAPI_GetStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
298
+ /* uint64 resource_id = 1; */
299
+ if (message.resourceId !== 0n)
300
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
301
+ const u = options.writeUnknownFields;
302
+ if (u !== false)
303
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
304
+ return writer;
305
+ }
294
306
  }
295
307
  /**
296
308
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
@@ -298,45 +310,48 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
298
310
  export const ProgressAPI_GetStatus_Request = new ProgressAPI_GetStatus_Request$Type();
299
311
  // @generated message type with reflection information, may provide speed optimized methods
300
312
  class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetStatus_Response> {
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
- }
313
+ constructor() {
314
+ super('MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response', [
315
+ { no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report },
316
+ ]);
317
+ }
318
+
319
+ create(value?: PartialMessage<ProgressAPI_GetStatus_Response>): ProgressAPI_GetStatus_Response {
320
+ const message = globalThis.Object.create((this.messagePrototype!));
321
+ if (value !== undefined)
322
+ reflectionMergePartial<ProgressAPI_GetStatus_Response>(this, message, value);
323
+ return message;
324
+ }
325
+
326
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_GetStatus_Response): ProgressAPI_GetStatus_Response {
327
+ const message = target ?? this.create(), end = reader.pos + length;
328
+ while (reader.pos < end) {
329
+ const [fieldNo, wireType] = reader.tag();
330
+ switch (fieldNo) {
331
+ case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
332
+ message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
333
+ break;
334
+ default:
335
+ const u = options.readUnknownField;
336
+ if (u === 'throw')
337
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
338
+ const d = reader.skip(wireType);
339
+ if (u !== false)
340
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
341
+ }
342
+ }
343
+ return message;
344
+ }
345
+
346
+ internalBinaryWrite(message: ProgressAPI_GetStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
347
+ /* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
348
+ if (message.report)
349
+ ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
350
+ const u = options.writeUnknownFields;
351
+ if (u !== false)
352
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
353
+ return writer;
354
+ }
340
355
  }
341
356
  /**
342
357
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
@@ -344,37 +359,40 @@ class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetSta
344
359
  export const ProgressAPI_GetStatus_Response = new ProgressAPI_GetStatus_Response$Type();
345
360
  // @generated message type with reflection information, may provide speed optimized methods
346
361
  class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeStatus> {
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
- }
362
+ constructor() {
363
+ super('MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus', []);
364
+ }
365
+
366
+ create(value?: PartialMessage<ProgressAPI_RealtimeStatus>): ProgressAPI_RealtimeStatus {
367
+ const message = globalThis.Object.create((this.messagePrototype!));
368
+ if (value !== undefined)
369
+ reflectionMergePartial<ProgressAPI_RealtimeStatus>(this, message, value);
370
+ return message;
371
+ }
372
+
373
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus): ProgressAPI_RealtimeStatus {
374
+ const message = target ?? this.create(), end = reader.pos + length;
375
+ while (reader.pos < end) {
376
+ const [fieldNo, wireType] = reader.tag();
377
+ switch (fieldNo) {
378
+ default:
379
+ const u = options.readUnknownField;
380
+ if (u === 'throw')
381
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
382
+ const d = reader.skip(wireType);
383
+ if (u !== false)
384
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
385
+ }
386
+ }
387
+ return message;
388
+ }
389
+
390
+ internalBinaryWrite(message: ProgressAPI_RealtimeStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
391
+ const u = options.writeUnknownFields;
392
+ if (u !== false)
393
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
394
+ return writer;
395
+ }
378
396
  }
379
397
  /**
380
398
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
@@ -382,53 +400,56 @@ class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeSt
382
400
  export const ProgressAPI_RealtimeStatus = new ProgressAPI_RealtimeStatus$Type();
383
401
  // @generated message type with reflection information, may provide speed optimized methods
384
402
  class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_RealtimeStatus_Request> {
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
- }
403
+ constructor() {
404
+ super('MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request', [
405
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
406
+ { no: 2, name: 'update_interval', kind: 'message', T: () => Duration },
407
+ ]);
408
+ }
409
+
410
+ create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Request>): ProgressAPI_RealtimeStatus_Request {
411
+ const message = globalThis.Object.create((this.messagePrototype!));
412
+ message.resourceId = 0n;
413
+ if (value !== undefined)
414
+ reflectionMergePartial<ProgressAPI_RealtimeStatus_Request>(this, message, value);
415
+ return message;
416
+ }
417
+
418
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Request): ProgressAPI_RealtimeStatus_Request {
419
+ const message = target ?? this.create(), end = reader.pos + length;
420
+ while (reader.pos < end) {
421
+ const [fieldNo, wireType] = reader.tag();
422
+ switch (fieldNo) {
423
+ case /* uint64 resource_id */ 1:
424
+ message.resourceId = reader.uint64().toBigInt();
425
+ break;
426
+ case /* google.protobuf.Duration update_interval */ 2:
427
+ message.updateInterval = Duration.internalBinaryRead(reader, reader.uint32(), options, message.updateInterval);
428
+ break;
429
+ default:
430
+ const u = options.readUnknownField;
431
+ if (u === 'throw')
432
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
433
+ const d = reader.skip(wireType);
434
+ if (u !== false)
435
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
436
+ }
437
+ }
438
+ return message;
439
+ }
440
+
441
+ internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
442
+ /* uint64 resource_id = 1; */
443
+ if (message.resourceId !== 0n)
444
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
445
+ /* google.protobuf.Duration update_interval = 2; */
446
+ if (message.updateInterval)
447
+ Duration.internalBinaryWrite(message.updateInterval, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
448
+ const u = options.writeUnknownFields;
449
+ if (u !== false)
450
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
451
+ return writer;
452
+ }
432
453
  }
433
454
  /**
434
455
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
@@ -436,45 +457,48 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
436
457
  export const ProgressAPI_RealtimeStatus_Request = new ProgressAPI_RealtimeStatus_Request$Type();
437
458
  // @generated message type with reflection information, may provide speed optimized methods
438
459
  class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_RealtimeStatus_Response> {
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
- }
460
+ constructor() {
461
+ super('MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response', [
462
+ { no: 1, name: 'report', kind: 'message', T: () => ProgressAPI_Report },
463
+ ]);
464
+ }
465
+
466
+ create(value?: PartialMessage<ProgressAPI_RealtimeStatus_Response>): ProgressAPI_RealtimeStatus_Response {
467
+ const message = globalThis.Object.create((this.messagePrototype!));
468
+ if (value !== undefined)
469
+ reflectionMergePartial<ProgressAPI_RealtimeStatus_Response>(this, message, value);
470
+ return message;
471
+ }
472
+
473
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProgressAPI_RealtimeStatus_Response): ProgressAPI_RealtimeStatus_Response {
474
+ const message = target ?? this.create(), end = reader.pos + length;
475
+ while (reader.pos < end) {
476
+ const [fieldNo, wireType] = reader.tag();
477
+ switch (fieldNo) {
478
+ case /* MiLaboratories.Controller.Shared.ProgressAPI.Report report */ 1:
479
+ message.report = ProgressAPI_Report.internalBinaryRead(reader, reader.uint32(), options, message.report);
480
+ break;
481
+ default:
482
+ const u = options.readUnknownField;
483
+ if (u === 'throw')
484
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
485
+ const d = reader.skip(wireType);
486
+ if (u !== false)
487
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
488
+ }
489
+ }
490
+ return message;
491
+ }
492
+
493
+ internalBinaryWrite(message: ProgressAPI_RealtimeStatus_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
494
+ /* MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1; */
495
+ if (message.report)
496
+ ProgressAPI_Report.internalBinaryWrite(message.report, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
497
+ const u = options.writeUnknownFields;
498
+ if (u !== false)
499
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
500
+ return writer;
501
+ }
478
502
  }
479
503
  /**
480
504
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
@@ -483,7 +507,7 @@ export const ProgressAPI_RealtimeStatus_Response = new ProgressAPI_RealtimeStatu
483
507
  /**
484
508
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Progress
485
509
  */
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 }
510
+ export const Progress = new ServiceType('MiLaboratories.Controller.Shared.Progress', [
511
+ { name: 'GetStatus', options: { 'google.api.http': { get: '/resources/{resource_id}/get-progress' } }, I: ProgressAPI_GetStatus_Request, O: ProgressAPI_GetStatus_Response },
512
+ { name: 'RealtimeStatus', serverStreaming: true, options: {}, I: ProgressAPI_RealtimeStatus_Request, O: ProgressAPI_RealtimeStatus_Response },
489
513
  ]);