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