@milaboratories/pl-client 2.7.12 → 2.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +17 -13
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. package/src/util/util.ts +1 -0
@@ -1,301 +1,304 @@
1
1
  // @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/resource_types.proto" (package "MiLaboratories.PL.RTypes", syntax proto3)
3
3
  // tslint:disable
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";
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
- value: {
22
- oneofKind: "int32";
23
- /**
21
+ value: {
22
+ oneofKind: 'int32';
23
+ /**
24
24
  * @generated from protobuf field: int32 int32 = 1;
25
25
  */
26
- int32: number;
27
- } | {
28
- oneofKind: "uint32";
29
- /**
26
+ int32: number;
27
+ } | {
28
+ oneofKind: 'uint32';
29
+ /**
30
30
  * @generated from protobuf field: uint32 uint32 = 2;
31
31
  */
32
- uint32: number;
33
- } | {
34
- oneofKind: "int64";
35
- /**
32
+ uint32: number;
33
+ } | {
34
+ oneofKind: 'int64';
35
+ /**
36
36
  * @generated from protobuf field: int64 int64 = 3;
37
37
  */
38
- int64: bigint;
39
- } | {
40
- oneofKind: "uint64";
41
- /**
38
+ int64: bigint;
39
+ } | {
40
+ oneofKind: 'uint64';
41
+ /**
42
42
  * @generated from protobuf field: uint64 uint64 = 4;
43
43
  */
44
- uint64: bigint;
45
- } | {
46
- oneofKind: "float";
47
- /**
44
+ uint64: bigint;
45
+ } | {
46
+ oneofKind: 'float';
47
+ /**
48
48
  * @generated from protobuf field: float float = 5;
49
49
  */
50
- float: number;
51
- } | {
52
- oneofKind: "double";
53
- /**
50
+ float: number;
51
+ } | {
52
+ oneofKind: 'double';
53
+ /**
54
54
  * @generated from protobuf field: double double = 6;
55
55
  */
56
- double: number;
57
- } | {
58
- oneofKind: undefined;
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
- type: string;
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
- blocking: boolean;
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
- randomizer: bigint; // dirty hack that makes subscription settings resources unique
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
- resourceFilter: {
93
- oneofKind: "resourceType";
94
- /**
92
+ resourceFilter: {
93
+ oneofKind: 'resourceType';
94
+ /**
95
95
  * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 1;
96
96
  */
97
- resourceType: ResourceType;
98
- } | {
99
- oneofKind: "resourceId";
100
- /**
97
+ resourceType: ResourceType;
98
+ } | {
99
+ oneofKind: 'resourceId';
100
+ /**
101
101
  * @generated from protobuf field: uint64 resource_id = 7;
102
102
  */
103
- resourceId: bigint;
104
- } | {
105
- oneofKind: undefined;
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
- eventFilter?: NotificationFilter_EventFilter;
111
- /**
110
+ eventFilter?: NotificationFilter_EventFilter;
111
+ /**
112
112
  * @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 9;
113
113
  */
114
- payload?: NotificationFilter_Payload;
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
- all?: boolean;
124
- //
125
- // Resource events
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
- resourceCreated?: boolean;
132
- /**
131
+ resourceCreated?: boolean;
132
+ /**
133
133
  * @generated from protobuf field: optional bool resource_deleted = 3;
134
134
  */
135
- resourceDeleted?: boolean;
136
- /**
135
+ resourceDeleted?: boolean;
136
+ /**
137
137
  * @generated from protobuf field: optional bool resource_ready = 5;
138
138
  */
139
- resourceReady?: boolean;
140
- /**
139
+ resourceReady?: boolean;
140
+ /**
141
141
  * @generated from protobuf field: optional bool resource_duplicate = 6;
142
142
  */
143
- resourceDuplicate?: boolean;
144
- /**
143
+ resourceDuplicate?: boolean;
144
+ /**
145
145
  * @generated from protobuf field: optional bool resource_error = 16;
146
146
  */
147
- resourceError?: boolean;
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
- inputsLocked?: boolean;
156
- /**
155
+ inputsLocked?: boolean;
156
+ /**
157
157
  * @generated from protobuf field: optional bool outputs_locked = 14;
158
158
  */
159
- outputsLocked?: boolean;
160
- /**
159
+ outputsLocked?: boolean;
160
+ /**
161
161
  * @generated from protobuf field: optional bool field_created = 12;
162
162
  */
163
- fieldCreated?: boolean;
164
- /**
163
+ fieldCreated?: boolean;
164
+ /**
165
165
  * @generated from protobuf field: optional bool field_got_error = 17;
166
166
  */
167
- fieldGotError?: boolean;
168
- /**
167
+ fieldGotError?: boolean;
168
+ /**
169
169
  * @generated from protobuf field: optional bool input_set = 7;
170
170
  */
171
- inputSet?: boolean;
172
- /**
171
+ inputSet?: boolean;
172
+ /**
173
173
  * @generated from protobuf field: optional bool all_inputs_set = 8;
174
174
  */
175
- allInputsSet?: boolean;
176
- /**
175
+ allInputsSet?: boolean;
176
+ /**
177
177
  * @generated from protobuf field: optional bool output_set = 9;
178
178
  */
179
- outputSet?: boolean;
180
- /**
179
+ outputSet?: boolean;
180
+ /**
181
181
  * @generated from protobuf field: optional bool all_outputs_set = 10;
182
182
  */
183
- allOutputsSet?: boolean;
184
- /**
183
+ allOutputsSet?: boolean;
184
+ /**
185
185
  * @generated from protobuf field: optional bool generic_otw_set = 15;
186
186
  */
187
- genericOtwSet?: boolean;
188
- /**
187
+ genericOtwSet?: boolean;
188
+ /**
189
189
  * @generated from protobuf field: optional bool dynamic_changed = 11;
190
190
  */
191
- dynamicChanged?: boolean;
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
- values: {
201
- [key: string]: Uint8Array;
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
- 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;
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
+
217
+ create(value?: PartialMessage<Number$>): Number$ {
218
+ const message = globalThis.Object.create((this.messagePrototype!));
219
+ message.value = { oneofKind: undefined };
220
+ if (value !== undefined)
221
+ reflectionMergePartial<Number$>(this, message, value);
222
+ return message;
223
+ }
224
+
225
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Number$): Number$ {
226
+ const message = target ?? this.create(), end = reader.pos + length;
227
+ while (reader.pos < end) {
228
+ const [fieldNo, wireType] = reader.tag();
229
+ switch (fieldNo) {
230
+ case /* int32 int32 */ 1:
231
+ message.value = {
232
+ oneofKind: 'int32',
233
+ int32: reader.int32(),
234
+ };
235
+ break;
236
+ case /* uint32 uint32 */ 2:
237
+ message.value = {
238
+ oneofKind: 'uint32',
239
+ uint32: reader.uint32(),
240
+ };
241
+ break;
242
+ case /* int64 int64 */ 3:
243
+ message.value = {
244
+ oneofKind: 'int64',
245
+ int64: reader.int64().toBigInt(),
246
+ };
247
+ break;
248
+ case /* uint64 uint64 */ 4:
249
+ message.value = {
250
+ oneofKind: 'uint64',
251
+ uint64: reader.uint64().toBigInt(),
252
+ };
253
+ break;
254
+ case /* float float */ 5:
255
+ message.value = {
256
+ oneofKind: 'float',
257
+ float: reader.float(),
258
+ };
259
+ break;
260
+ case /* double double */ 6:
261
+ message.value = {
262
+ oneofKind: 'double',
263
+ double: reader.double(),
264
+ };
265
+ break;
266
+ default:
267
+ const u = options.readUnknownField;
268
+ if (u === 'throw')
269
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
270
+ const d = reader.skip(wireType);
271
+ if (u !== false)
272
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
273
+ }
298
274
  }
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
+ }
299
302
  }
300
303
  /**
301
304
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.Number
@@ -303,46 +306,49 @@ class Number$$Type extends MessageType<Number$> {
303
306
  export const Number$ = new Number$$Type();
304
307
  // @generated message type with reflection information, may provide speed optimized methods
305
308
  class ControllerSettings$Type extends MessageType<ControllerSettings> {
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;
309
+ constructor() {
310
+ super('MiLaboratories.PL.RTypes.ControllerSettings', [
311
+ { no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
312
+ ]);
313
+ }
314
+
315
+ create(value?: PartialMessage<ControllerSettings>): ControllerSettings {
316
+ const message = globalThis.Object.create((this.messagePrototype!));
317
+ message.type = '';
318
+ if (value !== undefined)
319
+ reflectionMergePartial<ControllerSettings>(this, message, value);
320
+ return message;
321
+ }
322
+
323
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ControllerSettings): ControllerSettings {
324
+ const message = target ?? this.create(), end = reader.pos + length;
325
+ while (reader.pos < end) {
326
+ const [fieldNo, wireType] = reader.tag();
327
+ switch (fieldNo) {
328
+ case /* string type */ 1:
329
+ message.type = reader.string();
330
+ break;
331
+ default:
332
+ const u = options.readUnknownField;
333
+ if (u === 'throw')
334
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
335
+ const d = reader.skip(wireType);
336
+ if (u !== false)
337
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
338
+ }
345
339
  }
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
+ }
346
352
  }
347
353
  /**
348
354
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.ControllerSettings
@@ -350,54 +356,57 @@ class ControllerSettings$Type extends MessageType<ControllerSettings> {
350
356
  export const ControllerSettings = new ControllerSettings$Type();
351
357
  // @generated message type with reflection information, may provide speed optimized methods
352
358
  class SubscriptionSettings$Type extends MessageType<SubscriptionSettings> {
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;
359
+ constructor() {
360
+ super('MiLaboratories.PL.RTypes.SubscriptionSettings', [
361
+ { no: 1, name: 'blocking', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
362
+ { no: 2, name: 'randomizer', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
363
+ ]);
364
+ }
365
+
366
+ create(value?: PartialMessage<SubscriptionSettings>): SubscriptionSettings {
367
+ const message = globalThis.Object.create((this.messagePrototype!));
368
+ message.blocking = false;
369
+ message.randomizer = 0n;
370
+ if (value !== undefined)
371
+ reflectionMergePartial<SubscriptionSettings>(this, message, value);
372
+ return message;
373
+ }
374
+
375
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubscriptionSettings): SubscriptionSettings {
376
+ const message = target ?? this.create(), end = reader.pos + length;
377
+ while (reader.pos < end) {
378
+ const [fieldNo, wireType] = reader.tag();
379
+ switch (fieldNo) {
380
+ case /* bool blocking */ 1:
381
+ message.blocking = reader.bool();
382
+ break;
383
+ case /* uint64 randomizer */ 2:
384
+ message.randomizer = reader.uint64().toBigInt();
385
+ break;
386
+ default:
387
+ const u = options.readUnknownField;
388
+ if (u === 'throw')
389
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
390
+ const d = reader.skip(wireType);
391
+ if (u !== false)
392
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
393
+ }
400
394
  }
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
+ }
401
410
  }
402
411
  /**
403
412
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.SubscriptionSettings
@@ -405,73 +414,76 @@ class SubscriptionSettings$Type extends MessageType<SubscriptionSettings> {
405
414
  export const SubscriptionSettings = new SubscriptionSettings$Type();
406
415
  // @generated message type with reflection information, may provide speed optimized methods
407
416
  class NotificationFilter$Type extends MessageType<NotificationFilter> {
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;
417
+ constructor() {
418
+ super('MiLaboratories.PL.RTypes.NotificationFilter', [
419
+ { no: 1, name: 'resource_type', kind: 'message', oneof: 'resourceFilter', T: () => ResourceType },
420
+ { no: 7, name: 'resource_id', kind: 'scalar', oneof: 'resourceFilter', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
421
+ { no: 8, name: 'event_filter', kind: 'message', T: () => NotificationFilter_EventFilter },
422
+ { no: 9, name: 'payload', kind: 'message', T: () => NotificationFilter_Payload },
423
+ ]);
424
+ }
425
+
426
+ create(value?: PartialMessage<NotificationFilter>): NotificationFilter {
427
+ const message = globalThis.Object.create((this.messagePrototype!));
428
+ message.resourceFilter = { oneofKind: undefined };
429
+ if (value !== undefined)
430
+ reflectionMergePartial<NotificationFilter>(this, message, value);
431
+ return message;
432
+ }
433
+
434
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotificationFilter): NotificationFilter {
435
+ const message = target ?? this.create(), end = reader.pos + length;
436
+ while (reader.pos < end) {
437
+ const [fieldNo, wireType] = reader.tag();
438
+ switch (fieldNo) {
439
+ case /* MiLaboratories.PL.Base.ResourceType resource_type */ 1:
440
+ message.resourceFilter = {
441
+ oneofKind: 'resourceType',
442
+ resourceType: ResourceType.internalBinaryRead(reader, reader.uint32(), options, (message.resourceFilter as any).resourceType),
443
+ };
444
+ break;
445
+ case /* uint64 resource_id */ 7:
446
+ message.resourceFilter = {
447
+ oneofKind: 'resourceId',
448
+ resourceId: reader.uint64().toBigInt(),
449
+ };
450
+ break;
451
+ case /* MiLaboratories.PL.RTypes.NotificationFilter.EventFilter event_filter */ 8:
452
+ message.eventFilter = NotificationFilter_EventFilter.internalBinaryRead(reader, reader.uint32(), options, message.eventFilter);
453
+ break;
454
+ case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 9:
455
+ message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
456
+ break;
457
+ default:
458
+ const u = options.readUnknownField;
459
+ if (u === 'throw')
460
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
461
+ const d = reader.skip(wireType);
462
+ if (u !== false)
463
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
464
+ }
474
465
  }
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
+ }
475
487
  }
476
488
  /**
477
489
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.NotificationFilter
@@ -479,150 +491,153 @@ class NotificationFilter$Type extends MessageType<NotificationFilter> {
479
491
  export const NotificationFilter = new NotificationFilter$Type();
480
492
  // @generated message type with reflection information, may provide speed optimized methods
481
493
  class NotificationFilter_EventFilter$Type extends MessageType<NotificationFilter_EventFilter> {
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;
494
+ constructor() {
495
+ super('MiLaboratories.PL.RTypes.NotificationFilter.EventFilter', [
496
+ { no: 1, name: 'all', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
497
+ { no: 2, name: 'resource_created', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
498
+ { no: 3, name: 'resource_deleted', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
499
+ { no: 5, name: 'resource_ready', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
500
+ { no: 6, name: 'resource_duplicate', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
501
+ { no: 16, name: 'resource_error', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
502
+ { no: 13, name: 'inputs_locked', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
503
+ { no: 14, name: 'outputs_locked', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
504
+ { no: 12, name: 'field_created', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
505
+ { no: 17, name: 'field_got_error', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
506
+ { no: 7, name: 'input_set', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
507
+ { no: 8, name: 'all_inputs_set', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
508
+ { no: 9, name: 'output_set', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
509
+ { no: 10, name: 'all_outputs_set', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
510
+ { no: 15, name: 'generic_otw_set', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
511
+ { no: 11, name: 'dynamic_changed', kind: 'scalar', opt: true, T: 8 /* ScalarType.BOOL */ },
512
+ ]);
513
+ }
514
+
515
+ create(value?: PartialMessage<NotificationFilter_EventFilter>): NotificationFilter_EventFilter {
516
+ const message = globalThis.Object.create((this.messagePrototype!));
517
+ if (value !== undefined)
518
+ reflectionMergePartial<NotificationFilter_EventFilter>(this, message, value);
519
+ return message;
520
+ }
521
+
522
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotificationFilter_EventFilter): NotificationFilter_EventFilter {
523
+ const message = target ?? this.create(), end = reader.pos + length;
524
+ while (reader.pos < end) {
525
+ const [fieldNo, wireType] = reader.tag();
526
+ switch (fieldNo) {
527
+ case /* optional bool all */ 1:
528
+ message.all = reader.bool();
529
+ break;
530
+ case /* optional bool resource_created */ 2:
531
+ message.resourceCreated = reader.bool();
532
+ break;
533
+ case /* optional bool resource_deleted */ 3:
534
+ message.resourceDeleted = reader.bool();
535
+ break;
536
+ case /* optional bool resource_ready */ 5:
537
+ message.resourceReady = reader.bool();
538
+ break;
539
+ case /* optional bool resource_duplicate */ 6:
540
+ message.resourceDuplicate = reader.bool();
541
+ break;
542
+ case /* optional bool resource_error */ 16:
543
+ message.resourceError = reader.bool();
544
+ break;
545
+ case /* optional bool inputs_locked */ 13:
546
+ message.inputsLocked = reader.bool();
547
+ break;
548
+ case /* optional bool outputs_locked */ 14:
549
+ message.outputsLocked = reader.bool();
550
+ break;
551
+ case /* optional bool field_created */ 12:
552
+ message.fieldCreated = reader.bool();
553
+ break;
554
+ case /* optional bool field_got_error */ 17:
555
+ message.fieldGotError = reader.bool();
556
+ break;
557
+ case /* optional bool input_set */ 7:
558
+ message.inputSet = reader.bool();
559
+ break;
560
+ case /* optional bool all_inputs_set */ 8:
561
+ message.allInputsSet = reader.bool();
562
+ break;
563
+ case /* optional bool output_set */ 9:
564
+ message.outputSet = reader.bool();
565
+ break;
566
+ case /* optional bool all_outputs_set */ 10:
567
+ message.allOutputsSet = reader.bool();
568
+ break;
569
+ case /* optional bool generic_otw_set */ 15:
570
+ message.genericOtwSet = reader.bool();
571
+ break;
572
+ case /* optional bool dynamic_changed */ 11:
573
+ message.dynamicChanged = reader.bool();
574
+ break;
575
+ default:
576
+ const u = options.readUnknownField;
577
+ if (u === 'throw')
578
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
579
+ const d = reader.skip(wireType);
580
+ if (u !== false)
581
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
582
+ }
625
583
  }
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
+ }
626
641
  }
627
642
  /**
628
643
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.NotificationFilter.EventFilter
@@ -630,62 +645,66 @@ class NotificationFilter_EventFilter$Type extends MessageType<NotificationFilter
630
645
  export const NotificationFilter_EventFilter = new NotificationFilter_EventFilter$Type();
631
646
  // @generated message type with reflection information, may provide speed optimized methods
632
647
  class NotificationFilter_Payload$Type extends MessageType<NotificationFilter_Payload> {
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
- ]);
637
- }
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);
648
+ constructor() {
649
+ super('MiLaboratories.PL.RTypes.NotificationFilter.Payload', [
650
+ { no: 1, name: 'values', kind: 'map', K: 9 /* ScalarType.STRING */, V: { kind: 'scalar', T: 12 /* ScalarType.BYTES */ } },
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
+ }
679
678
  }
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;
679
+ return message;
680
+ }
681
+
682
+ private binaryReadMap1(map: NotificationFilter_Payload['values'], reader: IBinaryReader, options: BinaryReadOptions): void {
683
+ let len = reader.uint32(), end = reader.pos + len, key: keyof NotificationFilter_Payload['values'] | undefined, val: NotificationFilter_Payload['values'][any] | undefined;
684
+ while (reader.pos < end) {
685
+ const [fieldNo, wireType] = reader.tag();
686
+ switch (fieldNo) {
687
+ case 1:
688
+ key = reader.string();
689
+ break;
690
+ case 2:
691
+ val = reader.bytes();
692
+ break;
693
+ default: throw new globalThis.Error('unknown map entry field for field MiLaboratories.PL.RTypes.NotificationFilter.Payload.values');
694
+ }
688
695
  }
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
+ }
689
708
  }
690
709
  /**
691
710
  * @generated MessageType for protobuf message MiLaboratories.PL.RTypes.NotificationFilter.Payload