@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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2026 -2480
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +13 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -10
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
- package/dist/proto/google/api/http.d.ts +46 -42
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +172 -0
- package/dist/proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +2 -3
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts +27 -0
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/proto/google/protobuf/struct.d.ts +179 -0
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/clients/download.ts +1 -1
- package/src/clients/upload.ts +1 -1
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
- package/src/proto/google/api/http.ts +336 -492
- package/src/proto/google/protobuf/any.ts +326 -0
- package/src/proto/google/protobuf/descriptor.ts +4383 -4772
- package/src/proto/google/protobuf/duration.ts +122 -169
- package/src/proto/google/protobuf/empty.ts +94 -0
- package/src/proto/google/protobuf/struct.ts +484 -0
- package/src/proto/google/protobuf/timestamp.ts +150 -225
- package/src/proto/google/protobuf/wrappers.ts +785 -0
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
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
|
|
5
|
-
import { WireType } from
|
|
6
|
-
import type { BinaryWriteOptions } from
|
|
7
|
-
import type { IBinaryWriter } from
|
|
8
|
-
import {
|
|
9
|
-
import type {
|
|
10
|
-
import
|
|
11
|
-
import type { PartialMessage } from
|
|
12
|
-
import { reflectionMergePartial } from
|
|
13
|
-
import { MessageType } from
|
|
14
|
-
import { Duration } from
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
this,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
options: BinaryWriteOptions
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
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
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
)
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
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
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
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
|
-
|
|
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
|
+
]);
|