@milaboratories/pl-client 2.11.3 → 2.11.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/core/transaction.d.ts +2 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1377 -1173
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +3 -3
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- 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 +16 -16
- 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.d.ts +11 -11
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
- 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 +22 -22
- 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.d.ts +25 -25
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +50 -50
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +415 -304
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +70 -66
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +30 -30
- package/dist/proto/google/api/http.d.ts +93 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +2 -2
- package/dist/proto/google/protobuf/descriptor.d.ts +1298 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +2 -2
- package/dist/proto/google/protobuf/struct.d.ts +10 -8
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +2 -2
- package/dist/proto/google/protobuf/wrappers.d.ts +36 -9
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/core/ll_client.test.ts +3 -3
- package/src/core/ll_transaction.test.ts +4 -4
- package/src/core/transaction.ts +2 -0
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +5 -5
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +23 -24
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +232 -247
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +3 -3
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +13 -13
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +35 -37
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +375 -399
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +11 -11
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +26 -26
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +51 -51
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +687 -418
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +113 -101
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +5 -5
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +17 -17
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +50 -50
- package/src/proto/google/api/http.ts +290 -295
- package/src/proto/google/protobuf/any.ts +3 -3
- package/src/proto/google/protobuf/descriptor.ts +3235 -3123
- package/src/proto/google/protobuf/duration.ts +3 -3
- package/src/proto/google/protobuf/empty.ts +1 -1
- package/src/proto/google/protobuf/struct.ts +13 -11
- package/src/proto/google/protobuf/timestamp.ts +3 -3
- package/src/proto/google/protobuf/wrappers.ts +48 -14
package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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 type { BinaryReadOptions } from
|
|
9
|
-
import type { IBinaryReader } from
|
|
10
|
-
import { UnknownFieldHandler } from
|
|
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
|
*/
|
|
@@ -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
|
-
|
|
25
|
-
* @generated from protobuf field: float progress = 1
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf field: float progress = 1
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* @generated from protobuf field: uint64 bytes_processed = 2
|
|
27
|
+
progress: number;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf field: uint64 bytes_processed = 2
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @generated from protobuf field: uint64 bytes_total = 3
|
|
31
|
+
bytesProcessed: bigint;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf field: uint64 bytes_total = 3
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* @generated from protobuf field: bool done = 4
|
|
35
|
+
bytesTotal: bigint;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: bool done = 4
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
done: boolean;
|
|
40
|
+
/**
|
|
41
41
|
* Name of current progress stage (if any)
|
|
42
42
|
*
|
|
43
|
-
* @generated from protobuf field: string name = 5
|
|
43
|
+
* @generated from protobuf field: string name = 5
|
|
44
44
|
*/
|
|
45
|
-
|
|
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
|
-
|
|
57
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
58
58
|
*/
|
|
59
|
-
|
|
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
|
-
|
|
66
|
-
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
report?: ProgressAPI_Report;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @generated from protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
|
|
@@ -76,60 +76,57 @@ 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
|
-
|
|
80
|
-
* @generated from protobuf field: uint64 resource_id = 1
|
|
79
|
+
/**
|
|
80
|
+
* @generated from protobuf field: uint64 resource_id = 1
|
|
81
81
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* @generated from protobuf field: google.protobuf.Duration update_interval = 2
|
|
82
|
+
resourceId: bigint;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf field: google.protobuf.Duration update_interval = 2
|
|
85
85
|
*/
|
|
86
|
-
|
|
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
|
-
|
|
93
|
-
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf field: MiLaboratories.Controller.Shared.ProgressAPI.Report report = 1
|
|
94
94
|
*/
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
131
|
-
return writer;
|
|
132
|
-
}
|
|
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
|
+
}
|
|
133
130
|
}
|
|
134
131
|
/**
|
|
135
132
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI
|
|
@@ -137,81 +134,78 @@ class ProgressAPI$Type extends MessageType<ProgressAPI> {
|
|
|
137
134
|
export const ProgressAPI = new ProgressAPI$Type();
|
|
138
135
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
139
136
|
class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
213
|
-
return writer;
|
|
214
|
-
}
|
|
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
|
+
}
|
|
215
209
|
}
|
|
216
210
|
/**
|
|
217
211
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.Report
|
|
@@ -219,40 +213,37 @@ class ProgressAPI_Report$Type extends MessageType<ProgressAPI_Report> {
|
|
|
219
213
|
export const ProgressAPI_Report = new ProgressAPI_Report$Type();
|
|
220
214
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
221
215
|
class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
254
|
-
return writer;
|
|
255
|
-
}
|
|
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
|
+
}
|
|
256
247
|
}
|
|
257
248
|
/**
|
|
258
249
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus
|
|
@@ -260,49 +251,46 @@ class ProgressAPI_GetStatus$Type extends MessageType<ProgressAPI_GetStatus> {
|
|
|
260
251
|
export const ProgressAPI_GetStatus = new ProgressAPI_GetStatus$Type();
|
|
261
252
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
262
253
|
class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStatus_Request> {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
304
|
-
return writer;
|
|
305
|
-
}
|
|
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
|
+
}
|
|
306
294
|
}
|
|
307
295
|
/**
|
|
308
296
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Request
|
|
@@ -310,48 +298,45 @@ class ProgressAPI_GetStatus_Request$Type extends MessageType<ProgressAPI_GetStat
|
|
|
310
298
|
export const ProgressAPI_GetStatus_Request = new ProgressAPI_GetStatus_Request$Type();
|
|
311
299
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
312
300
|
class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetStatus_Response> {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
353
|
-
return writer;
|
|
354
|
-
}
|
|
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
|
+
}
|
|
355
340
|
}
|
|
356
341
|
/**
|
|
357
342
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.GetStatus.Response
|
|
@@ -359,40 +344,37 @@ class ProgressAPI_GetStatus_Response$Type extends MessageType<ProgressAPI_GetSta
|
|
|
359
344
|
export const ProgressAPI_GetStatus_Response = new ProgressAPI_GetStatus_Response$Type();
|
|
360
345
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
361
346
|
class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeStatus> {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
394
|
-
return writer;
|
|
395
|
-
}
|
|
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
|
+
}
|
|
396
378
|
}
|
|
397
379
|
/**
|
|
398
380
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus
|
|
@@ -400,56 +382,53 @@ class ProgressAPI_RealtimeStatus$Type extends MessageType<ProgressAPI_RealtimeSt
|
|
|
400
382
|
export const ProgressAPI_RealtimeStatus = new ProgressAPI_RealtimeStatus$Type();
|
|
401
383
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
402
384
|
class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_RealtimeStatus_Request> {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
451
|
-
return writer;
|
|
452
|
-
}
|
|
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
|
+
}
|
|
453
432
|
}
|
|
454
433
|
/**
|
|
455
434
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Request
|
|
@@ -457,48 +436,45 @@ class ProgressAPI_RealtimeStatus_Request$Type extends MessageType<ProgressAPI_Re
|
|
|
457
436
|
export const ProgressAPI_RealtimeStatus_Request = new ProgressAPI_RealtimeStatus_Request$Type();
|
|
458
437
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
459
438
|
class ProgressAPI_RealtimeStatus_Response$Type extends MessageType<ProgressAPI_RealtimeStatus_Response> {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
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
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
500
|
-
return writer;
|
|
501
|
-
}
|
|
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
|
+
}
|
|
502
478
|
}
|
|
503
479
|
/**
|
|
504
480
|
* @generated MessageType for protobuf message MiLaboratories.Controller.Shared.ProgressAPI.RealtimeStatus.Response
|
|
@@ -507,7 +483,7 @@ export const ProgressAPI_RealtimeStatus_Response = new ProgressAPI_RealtimeStatu
|
|
|
507
483
|
/**
|
|
508
484
|
* @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Progress
|
|
509
485
|
*/
|
|
510
|
-
export const Progress = new ServiceType(
|
|
511
|
-
|
|
512
|
-
|
|
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 }
|
|
513
489
|
]);
|