@milaboratories/pl-client 2.7.13 → 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 +7 -3
  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,145 +1,145 @@
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/api_types.proto" (package "MiLaboratories.PL.API", 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 { NotificationFilter_Payload } from "./resource_types";
14
- import { FieldType } from "./base_types";
15
- import { FieldRef } from "./base_types";
16
- import { Timestamp } from "../../../../../google/protobuf/timestamp";
17
- 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 { NotificationFilter_Payload } from './resource_types';
14
+ import { FieldType } from './base_types';
15
+ import { FieldRef } from './base_types';
16
+ import { Timestamp } from '../../../../../google/protobuf/timestamp';
17
+ import { ResourceType } from './base_types';
18
18
  /**
19
19
  * @generated from protobuf message MiLaboratories.PL.API.Tx
20
20
  */
21
21
  export interface Tx {
22
- /**
22
+ /**
23
23
  * @generated from protobuf field: bool is_valid = 1;
24
24
  */
25
- isValid: boolean;
26
- /**
25
+ isValid: boolean;
26
+ /**
27
27
  * @generated from protobuf field: uint64 id = 2;
28
28
  */
29
- id: bigint;
29
+ id: bigint;
30
30
  }
31
31
  /**
32
32
  * @generated from protobuf message MiLaboratories.PL.API.Resource
33
33
  */
34
34
  export interface Resource {
35
- /**
35
+ /**
36
36
  * @generated from protobuf field: uint64 id = 2;
37
37
  */
38
- id: bigint;
39
- /**
38
+ id: bigint;
39
+ /**
40
40
  * @generated from protobuf field: MiLaboratories.PL.API.Resource.Kind kind = 3;
41
41
  */
42
- kind: Resource_Kind;
43
- /**
42
+ kind: Resource_Kind;
43
+ /**
44
44
  * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 4;
45
45
  */
46
- type?: ResourceType;
47
- /**
46
+ type?: ResourceType;
47
+ /**
48
48
  * @generated from protobuf field: bytes data = 5;
49
49
  */
50
- data: Uint8Array;
51
- /**
50
+ data: Uint8Array;
51
+ /**
52
52
  * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 16;
53
53
  */
54
- features?: Resource_Features;
55
- /**
54
+ features?: Resource_Features;
55
+ /**
56
56
  * @generated from protobuf field: repeated MiLaboratories.PL.API.Field fields = 6;
57
57
  */
58
- fields: Field[];
59
- /**
58
+ fields: Field[];
59
+ /**
60
60
  * Resource has at least one field with error
61
61
  *
62
62
  * @generated from protobuf field: bool has_errors = 7;
63
63
  */
64
- hasErrors: boolean;
65
- /**
64
+ hasErrors: boolean;
65
+ /**
66
66
  * @generated from protobuf field: bool inputs_locked = 8;
67
67
  */
68
- inputsLocked: boolean;
69
- /**
68
+ inputsLocked: boolean;
69
+ /**
70
70
  * @generated from protobuf field: bool outputs_locked = 9;
71
71
  */
72
- outputsLocked: boolean;
73
- /**
72
+ outputsLocked: boolean;
73
+ /**
74
74
  * @generated from protobuf field: bool resource_ready = 14;
75
75
  */
76
- resourceReady: boolean;
77
- /**
76
+ resourceReady: boolean;
77
+ /**
78
78
  * @generated from protobuf field: bool is_final = 15;
79
79
  */
80
- isFinal: boolean;
81
- /**
80
+ isFinal: boolean;
81
+ /**
82
82
  * @generated from protobuf field: uint64 original_resource_id = 10;
83
83
  */
84
- originalResourceId: bigint;
85
- /**
84
+ originalResourceId: bigint;
85
+ /**
86
86
  * @generated from protobuf field: uint64 parent_resource_id = 11;
87
87
  */
88
- parentResourceId: bigint;
89
- /**
88
+ parentResourceId: bigint;
89
+ /**
90
90
  * @generated from protobuf field: google.protobuf.Timestamp created_time = 12;
91
91
  */
92
- createdTime?: Timestamp;
93
- /**
92
+ createdTime?: Timestamp;
93
+ /**
94
94
  * @generated from protobuf field: google.protobuf.Timestamp deleted_time = 13;
95
95
  */
96
- deletedTime?: Timestamp;
96
+ deletedTime?: Timestamp;
97
97
  }
98
98
  /**
99
99
  * @generated from protobuf message MiLaboratories.PL.API.Resource.Features
100
100
  */
101
101
  export interface Resource_Features {
102
- /**
102
+ /**
103
103
  * @generated from protobuf field: bool ephemeral = 1;
104
104
  */
105
- ephemeral: boolean; // false = 'supports deduplication'
105
+ ephemeral: boolean; // false = 'supports deduplication'
106
106
  }
107
107
  /**
108
108
  * @generated from protobuf enum MiLaboratories.PL.API.Resource.Kind
109
109
  */
110
110
  export enum Resource_Kind {
111
- /**
111
+ /**
112
112
  * @generated from protobuf enum value: KIND_INVALID = 0;
113
113
  */
114
- INVALID = 0,
115
- /**
114
+ INVALID = 0,
115
+ /**
116
116
  * @generated from protobuf enum value: KIND_STRUCTURAL = 1;
117
117
  */
118
- STRUCTURAL = 1,
119
- /**
118
+ STRUCTURAL = 1,
119
+ /**
120
120
  * @generated from protobuf enum value: KIND_VALUE = 2;
121
121
  */
122
- VALUE = 2
122
+ VALUE = 2,
123
123
  }
124
124
  /**
125
125
  * @generated from protobuf message MiLaboratories.PL.API.Field
126
126
  */
127
127
  export interface Field {
128
- /**
128
+ /**
129
129
  * field ID is always combination of parent resource ID and field name
130
130
  *
131
131
  * @generated from protobuf field: MiLaboratories.PL.Base.FieldRef id = 1;
132
132
  */
133
- id?: FieldRef;
134
- /**
133
+ id?: FieldRef;
134
+ /**
135
135
  * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 2;
136
136
  */
137
- type: FieldType;
138
- /**
137
+ type: FieldType;
138
+ /**
139
139
  * @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 3;
140
140
  */
141
- features?: Resource_Features;
142
- /**
141
+ features?: Resource_Features;
142
+ /**
143
143
  * _resolved_ value of field or _assigned_ if the field was assigned to a resource.
144
144
  * If field refers to another field, it will get
145
145
  * value only when this chain of references ends up with direct resource
@@ -148,311 +148,314 @@ export interface Field {
148
148
  *
149
149
  * @generated from protobuf field: uint64 value = 5;
150
150
  */
151
- value: bigint;
152
- /**
151
+ value: bigint;
152
+ /**
153
153
  * If the value was empty, assigned or finally resolved.
154
154
  *
155
155
  * @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7;
156
156
  */
157
- valueStatus: Field_ValueStatus;
158
- /**
157
+ valueStatus: Field_ValueStatus;
158
+ /**
159
159
  * If the value is in its final state (ready, duplicate or error)
160
160
  *
161
161
  * @generated from protobuf field: bool value_is_final = 8;
162
162
  */
163
- valueIsFinal: boolean;
164
- /**
163
+ valueIsFinal: boolean;
164
+ /**
165
165
  * Resource error resource id if any.
166
166
  * Is intended to report problems _from_ platform to client.
167
167
  *
168
168
  * @generated from protobuf field: uint64 error = 6;
169
169
  */
170
- error: bigint;
170
+ error: bigint;
171
171
  }
172
172
  /**
173
173
  * @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
174
174
  */
175
175
  export enum Field_ValueStatus {
176
- /**
176
+ /**
177
177
  * @generated from protobuf enum value: INVALID = 0;
178
178
  */
179
- INVALID = 0,
180
- /**
179
+ INVALID = 0,
180
+ /**
181
181
  * @generated from protobuf enum value: EMPTY = 1;
182
182
  */
183
- EMPTY = 1,
184
- /**
183
+ EMPTY = 1,
184
+ /**
185
185
  * @generated from protobuf enum value: ASSIGNED = 2;
186
186
  */
187
- ASSIGNED = 2,
188
- /**
187
+ ASSIGNED = 2,
188
+ /**
189
189
  * @generated from protobuf enum value: RESOLVED = 3;
190
190
  */
191
- RESOLVED = 3
191
+ RESOLVED = 3,
192
192
  }
193
193
  /**
194
194
  * @generated from protobuf message MiLaboratories.PL.API.Notification
195
195
  */
196
196
  export interface Notification {
197
- /**
197
+ /**
198
198
  * @generated from protobuf field: uint64 subscription_id = 1;
199
199
  */
200
- subscriptionId: bigint;
201
- /**
200
+ subscriptionId: bigint;
201
+ /**
202
202
  * @generated from protobuf field: uint64 event_id = 2;
203
203
  */
204
- eventId: bigint;
205
- /**
204
+ eventId: bigint;
205
+ /**
206
206
  * @generated from protobuf field: uint64 resource_id = 3;
207
207
  */
208
- resourceId: bigint;
209
- /**
208
+ resourceId: bigint;
209
+ /**
210
210
  * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 4;
211
211
  */
212
- resourceType?: ResourceType;
213
- /**
212
+ resourceType?: ResourceType;
213
+ /**
214
214
  * @generated from protobuf field: MiLaboratories.PL.API.Notification.Events events = 5;
215
215
  */
216
- events?: Notification_Events;
217
- /**
216
+ events?: Notification_Events;
217
+ /**
218
218
  * @generated from protobuf field: map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6;
219
219
  */
220
- fieldChanges: {
221
- [key: string]: Notification_FieldChange;
222
- };
223
- /**
220
+ fieldChanges: {
221
+ [key: string]: Notification_FieldChange;
222
+ };
223
+ /**
224
224
  * @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7;
225
225
  */
226
- payload?: NotificationFilter_Payload;
227
- /**
226
+ payload?: NotificationFilter_Payload;
227
+ /**
228
228
  * @generated from protobuf field: string filter_name = 8;
229
229
  */
230
- filterName: string;
231
- /**
230
+ filterName: string;
231
+ /**
232
232
  * @generated from protobuf field: MiLaboratories.PL.API.SpanInfo tx_span = 9;
233
233
  */
234
- txSpan?: SpanInfo;
234
+ txSpan?: SpanInfo;
235
235
  }
236
236
  /**
237
237
  * @generated from protobuf message MiLaboratories.PL.API.Notification.Events
238
238
  */
239
239
  export interface Notification_Events {
240
- /**
240
+ /**
241
241
  * @generated from protobuf field: bool resource_created = 1;
242
242
  */
243
- resourceCreated: boolean;
244
- /**
243
+ resourceCreated: boolean;
244
+ /**
245
245
  * @generated from protobuf field: bool resource_deleted = 2;
246
246
  */
247
- resourceDeleted: boolean;
248
- /**
247
+ resourceDeleted: boolean;
248
+ /**
249
249
  * @generated from protobuf field: bool resource_ready = 4;
250
250
  */
251
- resourceReady: boolean;
252
- /**
251
+ resourceReady: boolean;
252
+ /**
253
253
  * @generated from protobuf field: bool resource_duplicate = 5;
254
254
  */
255
- resourceDuplicate: boolean;
256
- /**
255
+ resourceDuplicate: boolean;
256
+ /**
257
257
  * @generated from protobuf field: bool resource_error = 15;
258
258
  */
259
- resourceError: boolean;
260
- /**
259
+ resourceError: boolean;
260
+ /**
261
261
  * @generated from protobuf field: bool inputs_locked = 12;
262
262
  */
263
- inputsLocked: boolean;
264
- /**
263
+ inputsLocked: boolean;
264
+ /**
265
265
  * @generated from protobuf field: bool outputs_locked = 13;
266
266
  */
267
- outputsLocked: boolean;
268
- /**
267
+ outputsLocked: boolean;
268
+ /**
269
269
  * @generated from protobuf field: bool field_created = 11;
270
270
  */
271
- fieldCreated: boolean;
272
- /**
271
+ fieldCreated: boolean;
272
+ /**
273
273
  * @generated from protobuf field: bool field_got_error = 16;
274
274
  */
275
- fieldGotError: boolean;
276
- /**
275
+ fieldGotError: boolean;
276
+ /**
277
277
  * @generated from protobuf field: bool input_set = 6;
278
278
  */
279
- inputSet: boolean;
280
- /**
279
+ inputSet: boolean;
280
+ /**
281
281
  * @generated from protobuf field: bool all_inputs_set = 7;
282
282
  */
283
- allInputsSet: boolean;
284
- /**
283
+ allInputsSet: boolean;
284
+ /**
285
285
  * @generated from protobuf field: bool output_set = 8;
286
286
  */
287
- outputSet: boolean;
288
- /**
287
+ outputSet: boolean;
288
+ /**
289
289
  * @generated from protobuf field: bool all_outputs_set = 9;
290
290
  */
291
- allOutputsSet: boolean;
292
- /**
291
+ allOutputsSet: boolean;
292
+ /**
293
293
  * @generated from protobuf field: bool generic_otw_set = 14;
294
294
  */
295
- genericOtwSet: boolean;
296
- /**
295
+ genericOtwSet: boolean;
296
+ /**
297
297
  * @generated from protobuf field: bool dynamic_changed = 10;
298
298
  */
299
- dynamicChanged: boolean;
299
+ dynamicChanged: boolean;
300
300
  }
301
301
  /**
302
302
  * @generated from protobuf message MiLaboratories.PL.API.Notification.FieldChange
303
303
  */
304
304
  export interface Notification_FieldChange {
305
- /**
305
+ /**
306
306
  * @generated from protobuf field: MiLaboratories.PL.API.Field old = 1;
307
307
  */
308
- old?: Field;
309
- /**
308
+ old?: Field;
309
+ /**
310
310
  * @generated from protobuf field: MiLaboratories.PL.API.Field new = 2;
311
311
  */
312
- new?: Field;
312
+ new?: Field;
313
313
  }
314
314
  /**
315
315
  * @generated from protobuf message MiLaboratories.PL.API.SpanInfo
316
316
  */
317
317
  export interface SpanInfo {
318
- /**
318
+ /**
319
319
  * @generated from protobuf field: string path = 1;
320
320
  */
321
- path: string;
322
- /**
321
+ path: string;
322
+ /**
323
323
  * @generated from protobuf field: map<string, string> carrier = 2;
324
324
  */
325
- carrier: {
326
- [key: string]: string;
327
- };
325
+ carrier: {
326
+ [key: string]: string;
327
+ };
328
328
  }
329
329
  /**
330
330
  * @generated from protobuf message MiLaboratories.PL.API.Subscription
331
331
  */
332
332
  export interface Subscription {
333
- /**
333
+ /**
334
334
  * @generated from protobuf field: uint64 id = 1;
335
335
  */
336
- id: bigint;
337
- /**
336
+ id: bigint;
337
+ /**
338
338
  * @generated from protobuf field: bool blocking = 3;
339
339
  */
340
- blocking: boolean;
340
+ blocking: boolean;
341
341
  }
342
342
  /**
343
343
  * @generated from protobuf message MiLaboratories.PL.API.Controller
344
344
  */
345
345
  export interface Controller {
346
- /**
346
+ /**
347
347
  * @generated from protobuf field: string type = 1;
348
348
  */
349
- type: string;
350
- /**
349
+ type: string;
350
+ /**
351
351
  * @generated from protobuf field: uint64 id = 2;
352
352
  */
353
- id: bigint;
354
- /**
353
+ id: bigint;
354
+ /**
355
355
  * @generated from protobuf field: uint64 subscriptionID = 3;
356
356
  */
357
- subscriptionID: bigint;
357
+ subscriptionID: bigint;
358
358
  }
359
359
  /**
360
360
  * @generated from protobuf message MiLaboratories.PL.API.ResourceSchema
361
361
  */
362
362
  export interface ResourceSchema {
363
- /**
363
+ /**
364
364
  * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 1;
365
365
  */
366
- type?: ResourceType;
367
- /**
366
+ type?: ResourceType;
367
+ /**
368
368
  * @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2;
369
369
  */
370
- fields: FieldSchema[];
370
+ fields: FieldSchema[];
371
371
  }
372
372
  /**
373
373
  * @generated from protobuf message MiLaboratories.PL.API.FieldSchema
374
374
  */
375
375
  export interface FieldSchema {
376
- /**
376
+ /**
377
377
  * @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 1;
378
378
  */
379
- type: FieldType;
380
- /**
379
+ type: FieldType;
380
+ /**
381
381
  * @generated from protobuf field: string name = 2;
382
382
  */
383
- name: string;
383
+ name: string;
384
384
  }
385
385
  /**
386
386
  * @generated from protobuf message MiLaboratories.PL.API.ResourceAPIFeature
387
387
  */
388
388
  export interface ResourceAPIFeature {
389
- /**
389
+ /**
390
390
  * @generated from protobuf field: string controller_type = 1;
391
391
  */
392
- controllerType: string;
393
- /**
392
+ controllerType: string;
393
+ /**
394
394
  * @generated from protobuf field: string feature_name = 2;
395
395
  */
396
- featureName: string;
397
- /**
396
+ featureName: string;
397
+ /**
398
398
  * @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3;
399
399
  */
400
- resourceType?: ResourceType;
401
- /**
400
+ resourceType?: ResourceType;
401
+ /**
402
402
  * @generated from protobuf field: string endpoint = 4;
403
403
  */
404
- endpoint: string;
404
+ endpoint: string;
405
405
  }
406
406
  // @generated message type with reflection information, may provide speed optimized methods
407
407
  class Tx$Type extends MessageType<Tx> {
408
- constructor() {
409
- super("MiLaboratories.PL.API.Tx", [
410
- { no: 1, name: "is_valid", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
411
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
412
- ]);
413
- }
414
- create(value?: PartialMessage<Tx>): Tx {
415
- const message = globalThis.Object.create((this.messagePrototype!));
416
- message.isValid = false;
417
- message.id = 0n;
418
- if (value !== undefined)
419
- reflectionMergePartial<Tx>(this, message, value);
420
- return message;
421
- }
422
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tx): Tx {
423
- let message = target ?? this.create(), end = reader.pos + length;
424
- while (reader.pos < end) {
425
- let [fieldNo, wireType] = reader.tag();
426
- switch (fieldNo) {
427
- case /* bool is_valid */ 1:
428
- message.isValid = reader.bool();
429
- break;
430
- case /* uint64 id */ 2:
431
- message.id = reader.uint64().toBigInt();
432
- break;
433
- default:
434
- let u = options.readUnknownField;
435
- if (u === "throw")
436
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
437
- let d = reader.skip(wireType);
438
- if (u !== false)
439
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
440
- }
441
- }
442
- return message;
443
- }
444
- internalBinaryWrite(message: Tx, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
445
- /* bool is_valid = 1; */
446
- if (message.isValid !== false)
447
- writer.tag(1, WireType.Varint).bool(message.isValid);
448
- /* uint64 id = 2; */
449
- if (message.id !== 0n)
450
- writer.tag(2, WireType.Varint).uint64(message.id);
451
- let u = options.writeUnknownFields;
452
- if (u !== false)
453
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
454
- return writer;
408
+ constructor() {
409
+ super('MiLaboratories.PL.API.Tx', [
410
+ { no: 1, name: 'is_valid', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
411
+ { no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
412
+ ]);
413
+ }
414
+
415
+ create(value?: PartialMessage<Tx>): Tx {
416
+ const message = globalThis.Object.create((this.messagePrototype!));
417
+ message.isValid = false;
418
+ message.id = 0n;
419
+ if (value !== undefined)
420
+ reflectionMergePartial<Tx>(this, message, value);
421
+ return message;
422
+ }
423
+
424
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tx): Tx {
425
+ const message = target ?? this.create(), end = reader.pos + length;
426
+ while (reader.pos < end) {
427
+ const [fieldNo, wireType] = reader.tag();
428
+ switch (fieldNo) {
429
+ case /* bool is_valid */ 1:
430
+ message.isValid = reader.bool();
431
+ break;
432
+ case /* uint64 id */ 2:
433
+ message.id = reader.uint64().toBigInt();
434
+ break;
435
+ default:
436
+ const u = options.readUnknownField;
437
+ if (u === 'throw')
438
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
439
+ const d = reader.skip(wireType);
440
+ if (u !== false)
441
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
442
+ }
455
443
  }
444
+ return message;
445
+ }
446
+
447
+ internalBinaryWrite(message: Tx, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
448
+ /* bool is_valid = 1; */
449
+ if (message.isValid !== false)
450
+ writer.tag(1, WireType.Varint).bool(message.isValid);
451
+ /* uint64 id = 2; */
452
+ if (message.id !== 0n)
453
+ writer.tag(2, WireType.Varint).uint64(message.id);
454
+ const u = options.writeUnknownFields;
455
+ if (u !== false)
456
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
457
+ return writer;
458
+ }
456
459
  }
457
460
  /**
458
461
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Tx
@@ -460,154 +463,157 @@ class Tx$Type extends MessageType<Tx> {
460
463
  export const Tx = new Tx$Type();
461
464
  // @generated message type with reflection information, may provide speed optimized methods
462
465
  class Resource$Type extends MessageType<Resource> {
463
- constructor() {
464
- super("MiLaboratories.PL.API.Resource", [
465
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
466
- { no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", Resource_Kind, "KIND_"] },
467
- { no: 4, name: "type", kind: "message", T: () => ResourceType },
468
- { no: 5, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
469
- { no: 16, name: "features", kind: "message", T: () => Resource_Features },
470
- { no: 6, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Field },
471
- { no: 7, name: "has_errors", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
472
- { no: 8, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
473
- { no: 9, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
474
- { no: 14, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
475
- { no: 15, name: "is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
476
- { no: 10, name: "original_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
477
- { no: 11, name: "parent_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
478
- { no: 12, name: "created_time", kind: "message", T: () => Timestamp },
479
- { no: 13, name: "deleted_time", kind: "message", T: () => Timestamp }
480
- ]);
481
- }
482
- create(value?: PartialMessage<Resource>): Resource {
483
- const message = globalThis.Object.create((this.messagePrototype!));
484
- message.id = 0n;
485
- message.kind = 0;
486
- message.data = new Uint8Array(0);
487
- message.fields = [];
488
- message.hasErrors = false;
489
- message.inputsLocked = false;
490
- message.outputsLocked = false;
491
- message.resourceReady = false;
492
- message.isFinal = false;
493
- message.originalResourceId = 0n;
494
- message.parentResourceId = 0n;
495
- if (value !== undefined)
496
- reflectionMergePartial<Resource>(this, message, value);
497
- return message;
498
- }
499
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
500
- let message = target ?? this.create(), end = reader.pos + length;
501
- while (reader.pos < end) {
502
- let [fieldNo, wireType] = reader.tag();
503
- switch (fieldNo) {
504
- case /* uint64 id */ 2:
505
- message.id = reader.uint64().toBigInt();
506
- break;
507
- case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
508
- message.kind = reader.int32();
509
- break;
510
- case /* MiLaboratories.PL.Base.ResourceType type */ 4:
511
- message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
512
- break;
513
- case /* bytes data */ 5:
514
- message.data = reader.bytes();
515
- break;
516
- case /* MiLaboratories.PL.API.Resource.Features features */ 16:
517
- message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
518
- break;
519
- case /* repeated MiLaboratories.PL.API.Field fields */ 6:
520
- message.fields.push(Field.internalBinaryRead(reader, reader.uint32(), options));
521
- break;
522
- case /* bool has_errors */ 7:
523
- message.hasErrors = reader.bool();
524
- break;
525
- case /* bool inputs_locked */ 8:
526
- message.inputsLocked = reader.bool();
527
- break;
528
- case /* bool outputs_locked */ 9:
529
- message.outputsLocked = reader.bool();
530
- break;
531
- case /* bool resource_ready */ 14:
532
- message.resourceReady = reader.bool();
533
- break;
534
- case /* bool is_final */ 15:
535
- message.isFinal = reader.bool();
536
- break;
537
- case /* uint64 original_resource_id */ 10:
538
- message.originalResourceId = reader.uint64().toBigInt();
539
- break;
540
- case /* uint64 parent_resource_id */ 11:
541
- message.parentResourceId = reader.uint64().toBigInt();
542
- break;
543
- case /* google.protobuf.Timestamp created_time */ 12:
544
- message.createdTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdTime);
545
- break;
546
- case /* google.protobuf.Timestamp deleted_time */ 13:
547
- message.deletedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedTime);
548
- break;
549
- default:
550
- let u = options.readUnknownField;
551
- if (u === "throw")
552
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
553
- let d = reader.skip(wireType);
554
- if (u !== false)
555
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
556
- }
557
- }
558
- return message;
559
- }
560
- internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
561
- /* uint64 id = 2; */
562
- if (message.id !== 0n)
563
- writer.tag(2, WireType.Varint).uint64(message.id);
564
- /* MiLaboratories.PL.API.Resource.Kind kind = 3; */
565
- if (message.kind !== 0)
566
- writer.tag(3, WireType.Varint).int32(message.kind);
567
- /* MiLaboratories.PL.Base.ResourceType type = 4; */
568
- if (message.type)
569
- ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
570
- /* bytes data = 5; */
571
- if (message.data.length)
572
- writer.tag(5, WireType.LengthDelimited).bytes(message.data);
573
- /* MiLaboratories.PL.API.Resource.Features features = 16; */
574
- if (message.features)
575
- Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
576
- /* repeated MiLaboratories.PL.API.Field fields = 6; */
577
- for (let i = 0; i < message.fields.length; i++)
578
- Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
579
- /* bool has_errors = 7; */
580
- if (message.hasErrors !== false)
581
- writer.tag(7, WireType.Varint).bool(message.hasErrors);
582
- /* bool inputs_locked = 8; */
583
- if (message.inputsLocked !== false)
584
- writer.tag(8, WireType.Varint).bool(message.inputsLocked);
585
- /* bool outputs_locked = 9; */
586
- if (message.outputsLocked !== false)
587
- writer.tag(9, WireType.Varint).bool(message.outputsLocked);
588
- /* bool resource_ready = 14; */
589
- if (message.resourceReady !== false)
590
- writer.tag(14, WireType.Varint).bool(message.resourceReady);
591
- /* bool is_final = 15; */
592
- if (message.isFinal !== false)
593
- writer.tag(15, WireType.Varint).bool(message.isFinal);
594
- /* uint64 original_resource_id = 10; */
595
- if (message.originalResourceId !== 0n)
596
- writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
597
- /* uint64 parent_resource_id = 11; */
598
- if (message.parentResourceId !== 0n)
599
- writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
600
- /* google.protobuf.Timestamp created_time = 12; */
601
- if (message.createdTime)
602
- Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
603
- /* google.protobuf.Timestamp deleted_time = 13; */
604
- if (message.deletedTime)
605
- Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
606
- let u = options.writeUnknownFields;
607
- if (u !== false)
608
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
609
- return writer;
466
+ constructor() {
467
+ super('MiLaboratories.PL.API.Resource', [
468
+ { no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
469
+ { no: 3, name: 'kind', kind: 'enum', T: () => ['MiLaboratories.PL.API.Resource.Kind', Resource_Kind, 'KIND_'] },
470
+ { no: 4, name: 'type', kind: 'message', T: () => ResourceType },
471
+ { no: 5, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
472
+ { no: 16, name: 'features', kind: 'message', T: () => Resource_Features },
473
+ { no: 6, name: 'fields', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => Field },
474
+ { no: 7, name: 'has_errors', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
475
+ { no: 8, name: 'inputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
476
+ { no: 9, name: 'outputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
477
+ { no: 14, name: 'resource_ready', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
478
+ { no: 15, name: 'is_final', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
479
+ { no: 10, name: 'original_resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
480
+ { no: 11, name: 'parent_resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
481
+ { no: 12, name: 'created_time', kind: 'message', T: () => Timestamp },
482
+ { no: 13, name: 'deleted_time', kind: 'message', T: () => Timestamp },
483
+ ]);
484
+ }
485
+
486
+ create(value?: PartialMessage<Resource>): Resource {
487
+ const message = globalThis.Object.create((this.messagePrototype!));
488
+ message.id = 0n;
489
+ message.kind = 0;
490
+ message.data = new Uint8Array(0);
491
+ message.fields = [];
492
+ message.hasErrors = false;
493
+ message.inputsLocked = false;
494
+ message.outputsLocked = false;
495
+ message.resourceReady = false;
496
+ message.isFinal = false;
497
+ message.originalResourceId = 0n;
498
+ message.parentResourceId = 0n;
499
+ if (value !== undefined)
500
+ reflectionMergePartial<Resource>(this, message, value);
501
+ return message;
502
+ }
503
+
504
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
505
+ const message = target ?? this.create(), end = reader.pos + length;
506
+ while (reader.pos < end) {
507
+ const [fieldNo, wireType] = reader.tag();
508
+ switch (fieldNo) {
509
+ case /* uint64 id */ 2:
510
+ message.id = reader.uint64().toBigInt();
511
+ break;
512
+ case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
513
+ message.kind = reader.int32();
514
+ break;
515
+ case /* MiLaboratories.PL.Base.ResourceType type */ 4:
516
+ message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
517
+ break;
518
+ case /* bytes data */ 5:
519
+ message.data = reader.bytes();
520
+ break;
521
+ case /* MiLaboratories.PL.API.Resource.Features features */ 16:
522
+ message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
523
+ break;
524
+ case /* repeated MiLaboratories.PL.API.Field fields */ 6:
525
+ message.fields.push(Field.internalBinaryRead(reader, reader.uint32(), options));
526
+ break;
527
+ case /* bool has_errors */ 7:
528
+ message.hasErrors = reader.bool();
529
+ break;
530
+ case /* bool inputs_locked */ 8:
531
+ message.inputsLocked = reader.bool();
532
+ break;
533
+ case /* bool outputs_locked */ 9:
534
+ message.outputsLocked = reader.bool();
535
+ break;
536
+ case /* bool resource_ready */ 14:
537
+ message.resourceReady = reader.bool();
538
+ break;
539
+ case /* bool is_final */ 15:
540
+ message.isFinal = reader.bool();
541
+ break;
542
+ case /* uint64 original_resource_id */ 10:
543
+ message.originalResourceId = reader.uint64().toBigInt();
544
+ break;
545
+ case /* uint64 parent_resource_id */ 11:
546
+ message.parentResourceId = reader.uint64().toBigInt();
547
+ break;
548
+ case /* google.protobuf.Timestamp created_time */ 12:
549
+ message.createdTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdTime);
550
+ break;
551
+ case /* google.protobuf.Timestamp deleted_time */ 13:
552
+ message.deletedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedTime);
553
+ break;
554
+ default:
555
+ const u = options.readUnknownField;
556
+ if (u === 'throw')
557
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
558
+ const d = reader.skip(wireType);
559
+ if (u !== false)
560
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
561
+ }
610
562
  }
563
+ return message;
564
+ }
565
+
566
+ internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
567
+ /* uint64 id = 2; */
568
+ if (message.id !== 0n)
569
+ writer.tag(2, WireType.Varint).uint64(message.id);
570
+ /* MiLaboratories.PL.API.Resource.Kind kind = 3; */
571
+ if (message.kind !== 0)
572
+ writer.tag(3, WireType.Varint).int32(message.kind);
573
+ /* MiLaboratories.PL.Base.ResourceType type = 4; */
574
+ if (message.type)
575
+ ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
576
+ /* bytes data = 5; */
577
+ if (message.data.length)
578
+ writer.tag(5, WireType.LengthDelimited).bytes(message.data);
579
+ /* MiLaboratories.PL.API.Resource.Features features = 16; */
580
+ if (message.features)
581
+ Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
582
+ /* repeated MiLaboratories.PL.API.Field fields = 6; */
583
+ for (let i = 0; i < message.fields.length; i++)
584
+ Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
585
+ /* bool has_errors = 7; */
586
+ if (message.hasErrors !== false)
587
+ writer.tag(7, WireType.Varint).bool(message.hasErrors);
588
+ /* bool inputs_locked = 8; */
589
+ if (message.inputsLocked !== false)
590
+ writer.tag(8, WireType.Varint).bool(message.inputsLocked);
591
+ /* bool outputs_locked = 9; */
592
+ if (message.outputsLocked !== false)
593
+ writer.tag(9, WireType.Varint).bool(message.outputsLocked);
594
+ /* bool resource_ready = 14; */
595
+ if (message.resourceReady !== false)
596
+ writer.tag(14, WireType.Varint).bool(message.resourceReady);
597
+ /* bool is_final = 15; */
598
+ if (message.isFinal !== false)
599
+ writer.tag(15, WireType.Varint).bool(message.isFinal);
600
+ /* uint64 original_resource_id = 10; */
601
+ if (message.originalResourceId !== 0n)
602
+ writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
603
+ /* uint64 parent_resource_id = 11; */
604
+ if (message.parentResourceId !== 0n)
605
+ writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
606
+ /* google.protobuf.Timestamp created_time = 12; */
607
+ if (message.createdTime)
608
+ Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
609
+ /* google.protobuf.Timestamp deleted_time = 13; */
610
+ if (message.deletedTime)
611
+ Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
612
+ const u = options.writeUnknownFields;
613
+ if (u !== false)
614
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
615
+ return writer;
616
+ }
611
617
  }
612
618
  /**
613
619
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Resource
@@ -615,46 +621,49 @@ class Resource$Type extends MessageType<Resource> {
615
621
  export const Resource = new Resource$Type();
616
622
  // @generated message type with reflection information, may provide speed optimized methods
617
623
  class Resource_Features$Type extends MessageType<Resource_Features> {
618
- constructor() {
619
- super("MiLaboratories.PL.API.Resource.Features", [
620
- { no: 1, name: "ephemeral", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
621
- ]);
622
- }
623
- create(value?: PartialMessage<Resource_Features>): Resource_Features {
624
- const message = globalThis.Object.create((this.messagePrototype!));
625
- message.ephemeral = false;
626
- if (value !== undefined)
627
- reflectionMergePartial<Resource_Features>(this, message, value);
628
- return message;
629
- }
630
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource_Features): Resource_Features {
631
- let message = target ?? this.create(), end = reader.pos + length;
632
- while (reader.pos < end) {
633
- let [fieldNo, wireType] = reader.tag();
634
- switch (fieldNo) {
635
- case /* bool ephemeral */ 1:
636
- message.ephemeral = reader.bool();
637
- break;
638
- default:
639
- let u = options.readUnknownField;
640
- if (u === "throw")
641
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
642
- let d = reader.skip(wireType);
643
- if (u !== false)
644
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
645
- }
646
- }
647
- return message;
648
- }
649
- internalBinaryWrite(message: Resource_Features, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
650
- /* bool ephemeral = 1; */
651
- if (message.ephemeral !== false)
652
- writer.tag(1, WireType.Varint).bool(message.ephemeral);
653
- let u = options.writeUnknownFields;
654
- if (u !== false)
655
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
656
- return writer;
624
+ constructor() {
625
+ super('MiLaboratories.PL.API.Resource.Features', [
626
+ { no: 1, name: 'ephemeral', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
627
+ ]);
628
+ }
629
+
630
+ create(value?: PartialMessage<Resource_Features>): Resource_Features {
631
+ const message = globalThis.Object.create((this.messagePrototype!));
632
+ message.ephemeral = false;
633
+ if (value !== undefined)
634
+ reflectionMergePartial<Resource_Features>(this, message, value);
635
+ return message;
636
+ }
637
+
638
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource_Features): Resource_Features {
639
+ const message = target ?? this.create(), end = reader.pos + length;
640
+ while (reader.pos < end) {
641
+ const [fieldNo, wireType] = reader.tag();
642
+ switch (fieldNo) {
643
+ case /* bool ephemeral */ 1:
644
+ message.ephemeral = reader.bool();
645
+ break;
646
+ default:
647
+ const u = options.readUnknownField;
648
+ if (u === 'throw')
649
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
650
+ const d = reader.skip(wireType);
651
+ if (u !== false)
652
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
653
+ }
657
654
  }
655
+ return message;
656
+ }
657
+
658
+ internalBinaryWrite(message: Resource_Features, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
659
+ /* bool ephemeral = 1; */
660
+ if (message.ephemeral !== false)
661
+ writer.tag(1, WireType.Varint).bool(message.ephemeral);
662
+ const u = options.writeUnknownFields;
663
+ if (u !== false)
664
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
665
+ return writer;
666
+ }
658
667
  }
659
668
  /**
660
669
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Resource.Features
@@ -662,92 +671,95 @@ class Resource_Features$Type extends MessageType<Resource_Features> {
662
671
  export const Resource_Features = new Resource_Features$Type();
663
672
  // @generated message type with reflection information, may provide speed optimized methods
664
673
  class Field$Type extends MessageType<Field> {
665
- constructor() {
666
- super("MiLaboratories.PL.API.Field", [
667
- { no: 1, name: "id", kind: "message", T: () => FieldRef },
668
- { no: 2, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
669
- { no: 3, name: "features", kind: "message", T: () => Resource_Features },
670
- { no: 5, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
671
- { no: 7, name: "value_status", kind: "enum", T: () => ["MiLaboratories.PL.API.Field.ValueStatus", Field_ValueStatus] },
672
- { no: 8, name: "value_is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
673
- { no: 6, name: "error", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
674
- ]);
675
- }
676
- create(value?: PartialMessage<Field>): Field {
677
- const message = globalThis.Object.create((this.messagePrototype!));
678
- message.type = 0;
679
- message.value = 0n;
680
- message.valueStatus = 0;
681
- message.valueIsFinal = false;
682
- message.error = 0n;
683
- if (value !== undefined)
684
- reflectionMergePartial<Field>(this, message, value);
685
- return message;
686
- }
687
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Field): Field {
688
- let message = target ?? this.create(), end = reader.pos + length;
689
- while (reader.pos < end) {
690
- let [fieldNo, wireType] = reader.tag();
691
- switch (fieldNo) {
692
- case /* MiLaboratories.PL.Base.FieldRef id */ 1:
693
- message.id = FieldRef.internalBinaryRead(reader, reader.uint32(), options, message.id);
694
- break;
695
- case /* MiLaboratories.PL.Base.FieldType type */ 2:
696
- message.type = reader.int32();
697
- break;
698
- case /* MiLaboratories.PL.API.Resource.Features features */ 3:
699
- message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
700
- break;
701
- case /* uint64 value */ 5:
702
- message.value = reader.uint64().toBigInt();
703
- break;
704
- case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
705
- message.valueStatus = reader.int32();
706
- break;
707
- case /* bool value_is_final */ 8:
708
- message.valueIsFinal = reader.bool();
709
- break;
710
- case /* uint64 error */ 6:
711
- message.error = reader.uint64().toBigInt();
712
- break;
713
- default:
714
- let u = options.readUnknownField;
715
- if (u === "throw")
716
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
717
- let d = reader.skip(wireType);
718
- if (u !== false)
719
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
720
- }
721
- }
722
- return message;
723
- }
724
- internalBinaryWrite(message: Field, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
725
- /* MiLaboratories.PL.Base.FieldRef id = 1; */
726
- if (message.id)
727
- FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
728
- /* MiLaboratories.PL.Base.FieldType type = 2; */
729
- if (message.type !== 0)
730
- writer.tag(2, WireType.Varint).int32(message.type);
731
- /* MiLaboratories.PL.API.Resource.Features features = 3; */
732
- if (message.features)
733
- Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
734
- /* uint64 value = 5; */
735
- if (message.value !== 0n)
736
- writer.tag(5, WireType.Varint).uint64(message.value);
737
- /* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
738
- if (message.valueStatus !== 0)
739
- writer.tag(7, WireType.Varint).int32(message.valueStatus);
740
- /* bool value_is_final = 8; */
741
- if (message.valueIsFinal !== false)
742
- writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
743
- /* uint64 error = 6; */
744
- if (message.error !== 0n)
745
- writer.tag(6, WireType.Varint).uint64(message.error);
746
- let u = options.writeUnknownFields;
747
- if (u !== false)
748
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
749
- return writer;
674
+ constructor() {
675
+ super('MiLaboratories.PL.API.Field', [
676
+ { no: 1, name: 'id', kind: 'message', T: () => FieldRef },
677
+ { no: 2, name: 'type', kind: 'enum', T: () => ['MiLaboratories.PL.Base.FieldType', FieldType] },
678
+ { no: 3, name: 'features', kind: 'message', T: () => Resource_Features },
679
+ { no: 5, name: 'value', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
680
+ { no: 7, name: 'value_status', kind: 'enum', T: () => ['MiLaboratories.PL.API.Field.ValueStatus', Field_ValueStatus] },
681
+ { no: 8, name: 'value_is_final', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
682
+ { no: 6, name: 'error', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
683
+ ]);
684
+ }
685
+
686
+ create(value?: PartialMessage<Field>): Field {
687
+ const message = globalThis.Object.create((this.messagePrototype!));
688
+ message.type = 0;
689
+ message.value = 0n;
690
+ message.valueStatus = 0;
691
+ message.valueIsFinal = false;
692
+ message.error = 0n;
693
+ if (value !== undefined)
694
+ reflectionMergePartial<Field>(this, message, value);
695
+ return message;
696
+ }
697
+
698
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Field): Field {
699
+ const message = target ?? this.create(), end = reader.pos + length;
700
+ while (reader.pos < end) {
701
+ const [fieldNo, wireType] = reader.tag();
702
+ switch (fieldNo) {
703
+ case /* MiLaboratories.PL.Base.FieldRef id */ 1:
704
+ message.id = FieldRef.internalBinaryRead(reader, reader.uint32(), options, message.id);
705
+ break;
706
+ case /* MiLaboratories.PL.Base.FieldType type */ 2:
707
+ message.type = reader.int32();
708
+ break;
709
+ case /* MiLaboratories.PL.API.Resource.Features features */ 3:
710
+ message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
711
+ break;
712
+ case /* uint64 value */ 5:
713
+ message.value = reader.uint64().toBigInt();
714
+ break;
715
+ case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
716
+ message.valueStatus = reader.int32();
717
+ break;
718
+ case /* bool value_is_final */ 8:
719
+ message.valueIsFinal = reader.bool();
720
+ break;
721
+ case /* uint64 error */ 6:
722
+ message.error = reader.uint64().toBigInt();
723
+ break;
724
+ default:
725
+ const u = options.readUnknownField;
726
+ if (u === 'throw')
727
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
728
+ const d = reader.skip(wireType);
729
+ if (u !== false)
730
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
731
+ }
750
732
  }
733
+ return message;
734
+ }
735
+
736
+ internalBinaryWrite(message: Field, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
737
+ /* MiLaboratories.PL.Base.FieldRef id = 1; */
738
+ if (message.id)
739
+ FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
740
+ /* MiLaboratories.PL.Base.FieldType type = 2; */
741
+ if (message.type !== 0)
742
+ writer.tag(2, WireType.Varint).int32(message.type);
743
+ /* MiLaboratories.PL.API.Resource.Features features = 3; */
744
+ if (message.features)
745
+ Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
746
+ /* uint64 value = 5; */
747
+ if (message.value !== 0n)
748
+ writer.tag(5, WireType.Varint).uint64(message.value);
749
+ /* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
750
+ if (message.valueStatus !== 0)
751
+ writer.tag(7, WireType.Varint).int32(message.valueStatus);
752
+ /* bool value_is_final = 8; */
753
+ if (message.valueIsFinal !== false)
754
+ writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
755
+ /* uint64 error = 6; */
756
+ if (message.error !== 0n)
757
+ writer.tag(6, WireType.Varint).uint64(message.error);
758
+ const u = options.writeUnknownFields;
759
+ if (u !== false)
760
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
761
+ return writer;
762
+ }
751
763
  }
752
764
  /**
753
765
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Field
@@ -755,126 +767,130 @@ class Field$Type extends MessageType<Field> {
755
767
  export const Field = new Field$Type();
756
768
  // @generated message type with reflection information, may provide speed optimized methods
757
769
  class Notification$Type extends MessageType<Notification> {
758
- constructor() {
759
- super("MiLaboratories.PL.API.Notification", [
760
- { no: 1, name: "subscription_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
761
- { no: 2, name: "event_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
762
- { no: 3, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
763
- { no: 4, name: "resource_type", kind: "message", T: () => ResourceType },
764
- { no: 5, name: "events", kind: "message", T: () => Notification_Events },
765
- { no: 6, name: "field_changes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Notification_FieldChange } },
766
- { no: 7, name: "payload", kind: "message", T: () => NotificationFilter_Payload },
767
- { no: 8, name: "filter_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
768
- { no: 9, name: "tx_span", kind: "message", T: () => SpanInfo }
769
- ]);
770
- }
771
- create(value?: PartialMessage<Notification>): Notification {
772
- const message = globalThis.Object.create((this.messagePrototype!));
773
- message.subscriptionId = 0n;
774
- message.eventId = 0n;
775
- message.resourceId = 0n;
776
- message.fieldChanges = {};
777
- message.filterName = "";
778
- if (value !== undefined)
779
- reflectionMergePartial<Notification>(this, message, value);
780
- return message;
770
+ constructor() {
771
+ super('MiLaboratories.PL.API.Notification', [
772
+ { no: 1, name: 'subscription_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
773
+ { no: 2, name: 'event_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
774
+ { no: 3, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
775
+ { no: 4, name: 'resource_type', kind: 'message', T: () => ResourceType },
776
+ { no: 5, name: 'events', kind: 'message', T: () => Notification_Events },
777
+ { no: 6, name: 'field_changes', kind: 'map', K: 9 /* ScalarType.STRING */, V: { kind: 'message', T: () => Notification_FieldChange } },
778
+ { no: 7, name: 'payload', kind: 'message', T: () => NotificationFilter_Payload },
779
+ { no: 8, name: 'filter_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
780
+ { no: 9, name: 'tx_span', kind: 'message', T: () => SpanInfo },
781
+ ]);
782
+ }
783
+
784
+ create(value?: PartialMessage<Notification>): Notification {
785
+ const message = globalThis.Object.create((this.messagePrototype!));
786
+ message.subscriptionId = 0n;
787
+ message.eventId = 0n;
788
+ message.resourceId = 0n;
789
+ message.fieldChanges = {};
790
+ message.filterName = '';
791
+ if (value !== undefined)
792
+ reflectionMergePartial<Notification>(this, message, value);
793
+ return message;
794
+ }
795
+
796
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification): Notification {
797
+ const message = target ?? this.create(), end = reader.pos + length;
798
+ while (reader.pos < end) {
799
+ const [fieldNo, wireType] = reader.tag();
800
+ switch (fieldNo) {
801
+ case /* uint64 subscription_id */ 1:
802
+ message.subscriptionId = reader.uint64().toBigInt();
803
+ break;
804
+ case /* uint64 event_id */ 2:
805
+ message.eventId = reader.uint64().toBigInt();
806
+ break;
807
+ case /* uint64 resource_id */ 3:
808
+ message.resourceId = reader.uint64().toBigInt();
809
+ break;
810
+ case /* MiLaboratories.PL.Base.ResourceType resource_type */ 4:
811
+ message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
812
+ break;
813
+ case /* MiLaboratories.PL.API.Notification.Events events */ 5:
814
+ message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
815
+ break;
816
+ case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
817
+ this.binaryReadMap6(message.fieldChanges, reader, options);
818
+ break;
819
+ case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
820
+ message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
821
+ break;
822
+ case /* string filter_name */ 8:
823
+ message.filterName = reader.string();
824
+ break;
825
+ case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
826
+ message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
827
+ break;
828
+ default:
829
+ const u = options.readUnknownField;
830
+ if (u === 'throw')
831
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
832
+ const d = reader.skip(wireType);
833
+ if (u !== false)
834
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
835
+ }
781
836
  }
782
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification): Notification {
783
- let message = target ?? this.create(), end = reader.pos + length;
784
- while (reader.pos < end) {
785
- let [fieldNo, wireType] = reader.tag();
786
- switch (fieldNo) {
787
- case /* uint64 subscription_id */ 1:
788
- message.subscriptionId = reader.uint64().toBigInt();
789
- break;
790
- case /* uint64 event_id */ 2:
791
- message.eventId = reader.uint64().toBigInt();
792
- break;
793
- case /* uint64 resource_id */ 3:
794
- message.resourceId = reader.uint64().toBigInt();
795
- break;
796
- case /* MiLaboratories.PL.Base.ResourceType resource_type */ 4:
797
- message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
798
- break;
799
- case /* MiLaboratories.PL.API.Notification.Events events */ 5:
800
- message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
801
- break;
802
- case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
803
- this.binaryReadMap6(message.fieldChanges, reader, options);
804
- break;
805
- case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
806
- message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
807
- break;
808
- case /* string filter_name */ 8:
809
- message.filterName = reader.string();
810
- break;
811
- case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
812
- message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
813
- break;
814
- default:
815
- let u = options.readUnknownField;
816
- if (u === "throw")
817
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
818
- let d = reader.skip(wireType);
819
- if (u !== false)
820
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
821
- }
822
- }
823
- return message;
837
+ return message;
838
+ }
839
+
840
+ private binaryReadMap6(map: Notification['fieldChanges'], reader: IBinaryReader, options: BinaryReadOptions): void {
841
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Notification['fieldChanges'] | undefined, val: Notification['fieldChanges'][any] | undefined;
842
+ while (reader.pos < end) {
843
+ const [fieldNo, wireType] = reader.tag();
844
+ switch (fieldNo) {
845
+ case 1:
846
+ key = reader.string();
847
+ break;
848
+ case 2:
849
+ val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
850
+ break;
851
+ default: throw new globalThis.Error('unknown map entry field for field MiLaboratories.PL.API.Notification.field_changes');
852
+ }
824
853
  }
825
- private binaryReadMap6(map: Notification["fieldChanges"], reader: IBinaryReader, options: BinaryReadOptions): void {
826
- let len = reader.uint32(), end = reader.pos + len, key: keyof Notification["fieldChanges"] | undefined, val: Notification["fieldChanges"][any] | undefined;
827
- while (reader.pos < end) {
828
- let [fieldNo, wireType] = reader.tag();
829
- switch (fieldNo) {
830
- case 1:
831
- key = reader.string();
832
- break;
833
- case 2:
834
- val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
835
- break;
836
- default: throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.Notification.field_changes");
837
- }
838
- }
839
- map[key ?? ""] = val ?? Notification_FieldChange.create();
840
- }
841
- internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
842
- /* uint64 subscription_id = 1; */
843
- if (message.subscriptionId !== 0n)
844
- writer.tag(1, WireType.Varint).uint64(message.subscriptionId);
845
- /* uint64 event_id = 2; */
846
- if (message.eventId !== 0n)
847
- writer.tag(2, WireType.Varint).uint64(message.eventId);
848
- /* uint64 resource_id = 3; */
849
- if (message.resourceId !== 0n)
850
- writer.tag(3, WireType.Varint).uint64(message.resourceId);
851
- /* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
852
- if (message.resourceType)
853
- ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
854
- /* MiLaboratories.PL.API.Notification.Events events = 5; */
855
- if (message.events)
856
- Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
857
- /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
858
- for (let k of globalThis.Object.keys(message.fieldChanges)) {
859
- writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
860
- writer.tag(2, WireType.LengthDelimited).fork();
861
- Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
862
- writer.join().join();
863
- }
864
- /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
865
- if (message.payload)
866
- NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
867
- /* string filter_name = 8; */
868
- if (message.filterName !== "")
869
- writer.tag(8, WireType.LengthDelimited).string(message.filterName);
870
- /* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
871
- if (message.txSpan)
872
- SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
873
- let u = options.writeUnknownFields;
874
- if (u !== false)
875
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
876
- return writer;
854
+ map[key ?? ''] = val ?? Notification_FieldChange.create();
855
+ }
856
+
857
+ internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
858
+ /* uint64 subscription_id = 1; */
859
+ if (message.subscriptionId !== 0n)
860
+ writer.tag(1, WireType.Varint).uint64(message.subscriptionId);
861
+ /* uint64 event_id = 2; */
862
+ if (message.eventId !== 0n)
863
+ writer.tag(2, WireType.Varint).uint64(message.eventId);
864
+ /* uint64 resource_id = 3; */
865
+ if (message.resourceId !== 0n)
866
+ writer.tag(3, WireType.Varint).uint64(message.resourceId);
867
+ /* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
868
+ if (message.resourceType)
869
+ ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
870
+ /* MiLaboratories.PL.API.Notification.Events events = 5; */
871
+ if (message.events)
872
+ Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
873
+ /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
874
+ for (const k of globalThis.Object.keys(message.fieldChanges)) {
875
+ writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
876
+ writer.tag(2, WireType.LengthDelimited).fork();
877
+ Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
878
+ writer.join().join();
877
879
  }
880
+ /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
881
+ if (message.payload)
882
+ NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
883
+ /* string filter_name = 8; */
884
+ if (message.filterName !== '')
885
+ writer.tag(8, WireType.LengthDelimited).string(message.filterName);
886
+ /* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
887
+ if (message.txSpan)
888
+ SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
889
+ const u = options.writeUnknownFields;
890
+ if (u !== false)
891
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
892
+ return writer;
893
+ }
878
894
  }
879
895
  /**
880
896
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification
@@ -882,158 +898,161 @@ class Notification$Type extends MessageType<Notification> {
882
898
  export const Notification = new Notification$Type();
883
899
  // @generated message type with reflection information, may provide speed optimized methods
884
900
  class Notification_Events$Type extends MessageType<Notification_Events> {
885
- constructor() {
886
- super("MiLaboratories.PL.API.Notification.Events", [
887
- { no: 1, name: "resource_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
888
- { no: 2, name: "resource_deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
889
- { no: 4, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
890
- { no: 5, name: "resource_duplicate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
891
- { no: 15, name: "resource_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
892
- { no: 12, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
893
- { no: 13, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
894
- { no: 11, name: "field_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
895
- { no: 16, name: "field_got_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
896
- { no: 6, name: "input_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
897
- { no: 7, name: "all_inputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
898
- { no: 8, name: "output_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
899
- { no: 9, name: "all_outputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
900
- { no: 14, name: "generic_otw_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
901
- { no: 10, name: "dynamic_changed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
902
- ]);
903
- }
904
- create(value?: PartialMessage<Notification_Events>): Notification_Events {
905
- const message = globalThis.Object.create((this.messagePrototype!));
906
- message.resourceCreated = false;
907
- message.resourceDeleted = false;
908
- message.resourceReady = false;
909
- message.resourceDuplicate = false;
910
- message.resourceError = false;
911
- message.inputsLocked = false;
912
- message.outputsLocked = false;
913
- message.fieldCreated = false;
914
- message.fieldGotError = false;
915
- message.inputSet = false;
916
- message.allInputsSet = false;
917
- message.outputSet = false;
918
- message.allOutputsSet = false;
919
- message.genericOtwSet = false;
920
- message.dynamicChanged = false;
921
- if (value !== undefined)
922
- reflectionMergePartial<Notification_Events>(this, message, value);
923
- return message;
924
- }
925
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_Events): Notification_Events {
926
- let message = target ?? this.create(), end = reader.pos + length;
927
- while (reader.pos < end) {
928
- let [fieldNo, wireType] = reader.tag();
929
- switch (fieldNo) {
930
- case /* bool resource_created */ 1:
931
- message.resourceCreated = reader.bool();
932
- break;
933
- case /* bool resource_deleted */ 2:
934
- message.resourceDeleted = reader.bool();
935
- break;
936
- case /* bool resource_ready */ 4:
937
- message.resourceReady = reader.bool();
938
- break;
939
- case /* bool resource_duplicate */ 5:
940
- message.resourceDuplicate = reader.bool();
941
- break;
942
- case /* bool resource_error */ 15:
943
- message.resourceError = reader.bool();
944
- break;
945
- case /* bool inputs_locked */ 12:
946
- message.inputsLocked = reader.bool();
947
- break;
948
- case /* bool outputs_locked */ 13:
949
- message.outputsLocked = reader.bool();
950
- break;
951
- case /* bool field_created */ 11:
952
- message.fieldCreated = reader.bool();
953
- break;
954
- case /* bool field_got_error */ 16:
955
- message.fieldGotError = reader.bool();
956
- break;
957
- case /* bool input_set */ 6:
958
- message.inputSet = reader.bool();
959
- break;
960
- case /* bool all_inputs_set */ 7:
961
- message.allInputsSet = reader.bool();
962
- break;
963
- case /* bool output_set */ 8:
964
- message.outputSet = reader.bool();
965
- break;
966
- case /* bool all_outputs_set */ 9:
967
- message.allOutputsSet = reader.bool();
968
- break;
969
- case /* bool generic_otw_set */ 14:
970
- message.genericOtwSet = reader.bool();
971
- break;
972
- case /* bool dynamic_changed */ 10:
973
- message.dynamicChanged = reader.bool();
974
- break;
975
- default:
976
- let u = options.readUnknownField;
977
- if (u === "throw")
978
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
979
- let d = reader.skip(wireType);
980
- if (u !== false)
981
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
982
- }
983
- }
984
- return message;
985
- }
986
- internalBinaryWrite(message: Notification_Events, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
987
- /* bool resource_created = 1; */
988
- if (message.resourceCreated !== false)
989
- writer.tag(1, WireType.Varint).bool(message.resourceCreated);
990
- /* bool resource_deleted = 2; */
991
- if (message.resourceDeleted !== false)
992
- writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
993
- /* bool resource_ready = 4; */
994
- if (message.resourceReady !== false)
995
- writer.tag(4, WireType.Varint).bool(message.resourceReady);
996
- /* bool resource_duplicate = 5; */
997
- if (message.resourceDuplicate !== false)
998
- writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
999
- /* bool resource_error = 15; */
1000
- if (message.resourceError !== false)
1001
- writer.tag(15, WireType.Varint).bool(message.resourceError);
1002
- /* bool inputs_locked = 12; */
1003
- if (message.inputsLocked !== false)
1004
- writer.tag(12, WireType.Varint).bool(message.inputsLocked);
1005
- /* bool outputs_locked = 13; */
1006
- if (message.outputsLocked !== false)
1007
- writer.tag(13, WireType.Varint).bool(message.outputsLocked);
1008
- /* bool field_created = 11; */
1009
- if (message.fieldCreated !== false)
1010
- writer.tag(11, WireType.Varint).bool(message.fieldCreated);
1011
- /* bool field_got_error = 16; */
1012
- if (message.fieldGotError !== false)
1013
- writer.tag(16, WireType.Varint).bool(message.fieldGotError);
1014
- /* bool input_set = 6; */
1015
- if (message.inputSet !== false)
1016
- writer.tag(6, WireType.Varint).bool(message.inputSet);
1017
- /* bool all_inputs_set = 7; */
1018
- if (message.allInputsSet !== false)
1019
- writer.tag(7, WireType.Varint).bool(message.allInputsSet);
1020
- /* bool output_set = 8; */
1021
- if (message.outputSet !== false)
1022
- writer.tag(8, WireType.Varint).bool(message.outputSet);
1023
- /* bool all_outputs_set = 9; */
1024
- if (message.allOutputsSet !== false)
1025
- writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
1026
- /* bool generic_otw_set = 14; */
1027
- if (message.genericOtwSet !== false)
1028
- writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
1029
- /* bool dynamic_changed = 10; */
1030
- if (message.dynamicChanged !== false)
1031
- writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
1032
- let u = options.writeUnknownFields;
1033
- if (u !== false)
1034
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1035
- return writer;
901
+ constructor() {
902
+ super('MiLaboratories.PL.API.Notification.Events', [
903
+ { no: 1, name: 'resource_created', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
904
+ { no: 2, name: 'resource_deleted', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
905
+ { no: 4, name: 'resource_ready', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
906
+ { no: 5, name: 'resource_duplicate', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
907
+ { no: 15, name: 'resource_error', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
908
+ { no: 12, name: 'inputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
909
+ { no: 13, name: 'outputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
910
+ { no: 11, name: 'field_created', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
911
+ { no: 16, name: 'field_got_error', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
912
+ { no: 6, name: 'input_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
913
+ { no: 7, name: 'all_inputs_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
914
+ { no: 8, name: 'output_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
915
+ { no: 9, name: 'all_outputs_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
916
+ { no: 14, name: 'generic_otw_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
917
+ { no: 10, name: 'dynamic_changed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
918
+ ]);
919
+ }
920
+
921
+ create(value?: PartialMessage<Notification_Events>): Notification_Events {
922
+ const message = globalThis.Object.create((this.messagePrototype!));
923
+ message.resourceCreated = false;
924
+ message.resourceDeleted = false;
925
+ message.resourceReady = false;
926
+ message.resourceDuplicate = false;
927
+ message.resourceError = false;
928
+ message.inputsLocked = false;
929
+ message.outputsLocked = false;
930
+ message.fieldCreated = false;
931
+ message.fieldGotError = false;
932
+ message.inputSet = false;
933
+ message.allInputsSet = false;
934
+ message.outputSet = false;
935
+ message.allOutputsSet = false;
936
+ message.genericOtwSet = false;
937
+ message.dynamicChanged = false;
938
+ if (value !== undefined)
939
+ reflectionMergePartial<Notification_Events>(this, message, value);
940
+ return message;
941
+ }
942
+
943
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_Events): Notification_Events {
944
+ const message = target ?? this.create(), end = reader.pos + length;
945
+ while (reader.pos < end) {
946
+ const [fieldNo, wireType] = reader.tag();
947
+ switch (fieldNo) {
948
+ case /* bool resource_created */ 1:
949
+ message.resourceCreated = reader.bool();
950
+ break;
951
+ case /* bool resource_deleted */ 2:
952
+ message.resourceDeleted = reader.bool();
953
+ break;
954
+ case /* bool resource_ready */ 4:
955
+ message.resourceReady = reader.bool();
956
+ break;
957
+ case /* bool resource_duplicate */ 5:
958
+ message.resourceDuplicate = reader.bool();
959
+ break;
960
+ case /* bool resource_error */ 15:
961
+ message.resourceError = reader.bool();
962
+ break;
963
+ case /* bool inputs_locked */ 12:
964
+ message.inputsLocked = reader.bool();
965
+ break;
966
+ case /* bool outputs_locked */ 13:
967
+ message.outputsLocked = reader.bool();
968
+ break;
969
+ case /* bool field_created */ 11:
970
+ message.fieldCreated = reader.bool();
971
+ break;
972
+ case /* bool field_got_error */ 16:
973
+ message.fieldGotError = reader.bool();
974
+ break;
975
+ case /* bool input_set */ 6:
976
+ message.inputSet = reader.bool();
977
+ break;
978
+ case /* bool all_inputs_set */ 7:
979
+ message.allInputsSet = reader.bool();
980
+ break;
981
+ case /* bool output_set */ 8:
982
+ message.outputSet = reader.bool();
983
+ break;
984
+ case /* bool all_outputs_set */ 9:
985
+ message.allOutputsSet = reader.bool();
986
+ break;
987
+ case /* bool generic_otw_set */ 14:
988
+ message.genericOtwSet = reader.bool();
989
+ break;
990
+ case /* bool dynamic_changed */ 10:
991
+ message.dynamicChanged = reader.bool();
992
+ break;
993
+ default:
994
+ const u = options.readUnknownField;
995
+ if (u === 'throw')
996
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
997
+ const d = reader.skip(wireType);
998
+ if (u !== false)
999
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1000
+ }
1036
1001
  }
1002
+ return message;
1003
+ }
1004
+
1005
+ internalBinaryWrite(message: Notification_Events, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1006
+ /* bool resource_created = 1; */
1007
+ if (message.resourceCreated !== false)
1008
+ writer.tag(1, WireType.Varint).bool(message.resourceCreated);
1009
+ /* bool resource_deleted = 2; */
1010
+ if (message.resourceDeleted !== false)
1011
+ writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
1012
+ /* bool resource_ready = 4; */
1013
+ if (message.resourceReady !== false)
1014
+ writer.tag(4, WireType.Varint).bool(message.resourceReady);
1015
+ /* bool resource_duplicate = 5; */
1016
+ if (message.resourceDuplicate !== false)
1017
+ writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
1018
+ /* bool resource_error = 15; */
1019
+ if (message.resourceError !== false)
1020
+ writer.tag(15, WireType.Varint).bool(message.resourceError);
1021
+ /* bool inputs_locked = 12; */
1022
+ if (message.inputsLocked !== false)
1023
+ writer.tag(12, WireType.Varint).bool(message.inputsLocked);
1024
+ /* bool outputs_locked = 13; */
1025
+ if (message.outputsLocked !== false)
1026
+ writer.tag(13, WireType.Varint).bool(message.outputsLocked);
1027
+ /* bool field_created = 11; */
1028
+ if (message.fieldCreated !== false)
1029
+ writer.tag(11, WireType.Varint).bool(message.fieldCreated);
1030
+ /* bool field_got_error = 16; */
1031
+ if (message.fieldGotError !== false)
1032
+ writer.tag(16, WireType.Varint).bool(message.fieldGotError);
1033
+ /* bool input_set = 6; */
1034
+ if (message.inputSet !== false)
1035
+ writer.tag(6, WireType.Varint).bool(message.inputSet);
1036
+ /* bool all_inputs_set = 7; */
1037
+ if (message.allInputsSet !== false)
1038
+ writer.tag(7, WireType.Varint).bool(message.allInputsSet);
1039
+ /* bool output_set = 8; */
1040
+ if (message.outputSet !== false)
1041
+ writer.tag(8, WireType.Varint).bool(message.outputSet);
1042
+ /* bool all_outputs_set = 9; */
1043
+ if (message.allOutputsSet !== false)
1044
+ writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
1045
+ /* bool generic_otw_set = 14; */
1046
+ if (message.genericOtwSet !== false)
1047
+ writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
1048
+ /* bool dynamic_changed = 10; */
1049
+ if (message.dynamicChanged !== false)
1050
+ writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
1051
+ const u = options.writeUnknownFields;
1052
+ if (u !== false)
1053
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1054
+ return writer;
1055
+ }
1037
1056
  }
1038
1057
  /**
1039
1058
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.Events
@@ -1041,52 +1060,55 @@ class Notification_Events$Type extends MessageType<Notification_Events> {
1041
1060
  export const Notification_Events = new Notification_Events$Type();
1042
1061
  // @generated message type with reflection information, may provide speed optimized methods
1043
1062
  class Notification_FieldChange$Type extends MessageType<Notification_FieldChange> {
1044
- constructor() {
1045
- super("MiLaboratories.PL.API.Notification.FieldChange", [
1046
- { no: 1, name: "old", kind: "message", T: () => Field },
1047
- { no: 2, name: "new", kind: "message", T: () => Field }
1048
- ]);
1049
- }
1050
- create(value?: PartialMessage<Notification_FieldChange>): Notification_FieldChange {
1051
- const message = globalThis.Object.create((this.messagePrototype!));
1052
- if (value !== undefined)
1053
- reflectionMergePartial<Notification_FieldChange>(this, message, value);
1054
- return message;
1055
- }
1056
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_FieldChange): Notification_FieldChange {
1057
- let message = target ?? this.create(), end = reader.pos + length;
1058
- while (reader.pos < end) {
1059
- let [fieldNo, wireType] = reader.tag();
1060
- switch (fieldNo) {
1061
- case /* MiLaboratories.PL.API.Field old */ 1:
1062
- message.old = Field.internalBinaryRead(reader, reader.uint32(), options, message.old);
1063
- break;
1064
- case /* MiLaboratories.PL.API.Field new */ 2:
1065
- message.new = Field.internalBinaryRead(reader, reader.uint32(), options, message.new);
1066
- break;
1067
- default:
1068
- let u = options.readUnknownField;
1069
- if (u === "throw")
1070
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1071
- let d = reader.skip(wireType);
1072
- if (u !== false)
1073
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1074
- }
1075
- }
1076
- return message;
1077
- }
1078
- internalBinaryWrite(message: Notification_FieldChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1079
- /* MiLaboratories.PL.API.Field old = 1; */
1080
- if (message.old)
1081
- Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1082
- /* MiLaboratories.PL.API.Field new = 2; */
1083
- if (message.new)
1084
- Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1085
- let u = options.writeUnknownFields;
1086
- if (u !== false)
1087
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1088
- return writer;
1063
+ constructor() {
1064
+ super('MiLaboratories.PL.API.Notification.FieldChange', [
1065
+ { no: 1, name: 'old', kind: 'message', T: () => Field },
1066
+ { no: 2, name: 'new', kind: 'message', T: () => Field },
1067
+ ]);
1068
+ }
1069
+
1070
+ create(value?: PartialMessage<Notification_FieldChange>): Notification_FieldChange {
1071
+ const message = globalThis.Object.create((this.messagePrototype!));
1072
+ if (value !== undefined)
1073
+ reflectionMergePartial<Notification_FieldChange>(this, message, value);
1074
+ return message;
1075
+ }
1076
+
1077
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_FieldChange): Notification_FieldChange {
1078
+ const message = target ?? this.create(), end = reader.pos + length;
1079
+ while (reader.pos < end) {
1080
+ const [fieldNo, wireType] = reader.tag();
1081
+ switch (fieldNo) {
1082
+ case /* MiLaboratories.PL.API.Field old */ 1:
1083
+ message.old = Field.internalBinaryRead(reader, reader.uint32(), options, message.old);
1084
+ break;
1085
+ case /* MiLaboratories.PL.API.Field new */ 2:
1086
+ message.new = Field.internalBinaryRead(reader, reader.uint32(), options, message.new);
1087
+ break;
1088
+ default:
1089
+ const u = options.readUnknownField;
1090
+ if (u === 'throw')
1091
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1092
+ const d = reader.skip(wireType);
1093
+ if (u !== false)
1094
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1095
+ }
1089
1096
  }
1097
+ return message;
1098
+ }
1099
+
1100
+ internalBinaryWrite(message: Notification_FieldChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1101
+ /* MiLaboratories.PL.API.Field old = 1; */
1102
+ if (message.old)
1103
+ Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1104
+ /* MiLaboratories.PL.API.Field new = 2; */
1105
+ if (message.new)
1106
+ Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1107
+ const u = options.writeUnknownFields;
1108
+ if (u !== false)
1109
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1110
+ return writer;
1111
+ }
1090
1112
  }
1091
1113
  /**
1092
1114
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.FieldChange
@@ -1094,70 +1116,74 @@ class Notification_FieldChange$Type extends MessageType<Notification_FieldChange
1094
1116
  export const Notification_FieldChange = new Notification_FieldChange$Type();
1095
1117
  // @generated message type with reflection information, may provide speed optimized methods
1096
1118
  class SpanInfo$Type extends MessageType<SpanInfo> {
1097
- constructor() {
1098
- super("MiLaboratories.PL.API.SpanInfo", [
1099
- { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1100
- { no: 2, name: "carrier", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
1101
- ]);
1102
- }
1103
- create(value?: PartialMessage<SpanInfo>): SpanInfo {
1104
- const message = globalThis.Object.create((this.messagePrototype!));
1105
- message.path = "";
1106
- message.carrier = {};
1107
- if (value !== undefined)
1108
- reflectionMergePartial<SpanInfo>(this, message, value);
1109
- return message;
1110
- }
1111
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanInfo): SpanInfo {
1112
- let message = target ?? this.create(), end = reader.pos + length;
1113
- while (reader.pos < end) {
1114
- let [fieldNo, wireType] = reader.tag();
1115
- switch (fieldNo) {
1116
- case /* string path */ 1:
1117
- message.path = reader.string();
1118
- break;
1119
- case /* map<string, string> carrier */ 2:
1120
- this.binaryReadMap2(message.carrier, reader, options);
1121
- break;
1122
- default:
1123
- let u = options.readUnknownField;
1124
- if (u === "throw")
1125
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1126
- let d = reader.skip(wireType);
1127
- if (u !== false)
1128
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1129
- }
1130
- }
1131
- return message;
1119
+ constructor() {
1120
+ super('MiLaboratories.PL.API.SpanInfo', [
1121
+ { no: 1, name: 'path', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1122
+ { no: 2, name: 'carrier', kind: 'map', K: 9 /* ScalarType.STRING */, V: { kind: 'scalar', T: 9 /* ScalarType.STRING */ } },
1123
+ ]);
1124
+ }
1125
+
1126
+ create(value?: PartialMessage<SpanInfo>): SpanInfo {
1127
+ const message = globalThis.Object.create((this.messagePrototype!));
1128
+ message.path = '';
1129
+ message.carrier = {};
1130
+ if (value !== undefined)
1131
+ reflectionMergePartial<SpanInfo>(this, message, value);
1132
+ return message;
1133
+ }
1134
+
1135
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanInfo): SpanInfo {
1136
+ const message = target ?? this.create(), end = reader.pos + length;
1137
+ while (reader.pos < end) {
1138
+ const [fieldNo, wireType] = reader.tag();
1139
+ switch (fieldNo) {
1140
+ case /* string path */ 1:
1141
+ message.path = reader.string();
1142
+ break;
1143
+ case /* map<string, string> carrier */ 2:
1144
+ this.binaryReadMap2(message.carrier, reader, options);
1145
+ break;
1146
+ default:
1147
+ const u = options.readUnknownField;
1148
+ if (u === 'throw')
1149
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1150
+ const d = reader.skip(wireType);
1151
+ if (u !== false)
1152
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1153
+ }
1132
1154
  }
1133
- private binaryReadMap2(map: SpanInfo["carrier"], reader: IBinaryReader, options: BinaryReadOptions): void {
1134
- let len = reader.uint32(), end = reader.pos + len, key: keyof SpanInfo["carrier"] | undefined, val: SpanInfo["carrier"][any] | undefined;
1135
- while (reader.pos < end) {
1136
- let [fieldNo, wireType] = reader.tag();
1137
- switch (fieldNo) {
1138
- case 1:
1139
- key = reader.string();
1140
- break;
1141
- case 2:
1142
- val = reader.string();
1143
- break;
1144
- default: throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.SpanInfo.carrier");
1145
- }
1146
- }
1147
- map[key ?? ""] = val ?? "";
1148
- }
1149
- internalBinaryWrite(message: SpanInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1150
- /* string path = 1; */
1151
- if (message.path !== "")
1152
- writer.tag(1, WireType.LengthDelimited).string(message.path);
1153
- /* map<string, string> carrier = 2; */
1154
- for (let k of globalThis.Object.keys(message.carrier))
1155
- writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
1156
- let u = options.writeUnknownFields;
1157
- if (u !== false)
1158
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1159
- return writer;
1155
+ return message;
1156
+ }
1157
+
1158
+ private binaryReadMap2(map: SpanInfo['carrier'], reader: IBinaryReader, options: BinaryReadOptions): void {
1159
+ let len = reader.uint32(), end = reader.pos + len, key: keyof SpanInfo['carrier'] | undefined, val: SpanInfo['carrier'][any] | undefined;
1160
+ while (reader.pos < end) {
1161
+ const [fieldNo, wireType] = reader.tag();
1162
+ switch (fieldNo) {
1163
+ case 1:
1164
+ key = reader.string();
1165
+ break;
1166
+ case 2:
1167
+ val = reader.string();
1168
+ break;
1169
+ default: throw new globalThis.Error('unknown map entry field for field MiLaboratories.PL.API.SpanInfo.carrier');
1170
+ }
1160
1171
  }
1172
+ map[key ?? ''] = val ?? '';
1173
+ }
1174
+
1175
+ internalBinaryWrite(message: SpanInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1176
+ /* string path = 1; */
1177
+ if (message.path !== '')
1178
+ writer.tag(1, WireType.LengthDelimited).string(message.path);
1179
+ /* map<string, string> carrier = 2; */
1180
+ for (const k of globalThis.Object.keys(message.carrier))
1181
+ writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
1182
+ const u = options.writeUnknownFields;
1183
+ if (u !== false)
1184
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1185
+ return writer;
1186
+ }
1161
1187
  }
1162
1188
  /**
1163
1189
  * @generated MessageType for protobuf message MiLaboratories.PL.API.SpanInfo
@@ -1165,54 +1191,57 @@ class SpanInfo$Type extends MessageType<SpanInfo> {
1165
1191
  export const SpanInfo = new SpanInfo$Type();
1166
1192
  // @generated message type with reflection information, may provide speed optimized methods
1167
1193
  class Subscription$Type extends MessageType<Subscription> {
1168
- constructor() {
1169
- super("MiLaboratories.PL.API.Subscription", [
1170
- { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1171
- { no: 3, name: "blocking", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1172
- ]);
1173
- }
1174
- create(value?: PartialMessage<Subscription>): Subscription {
1175
- const message = globalThis.Object.create((this.messagePrototype!));
1176
- message.id = 0n;
1177
- message.blocking = false;
1178
- if (value !== undefined)
1179
- reflectionMergePartial<Subscription>(this, message, value);
1180
- return message;
1181
- }
1182
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Subscription): Subscription {
1183
- let message = target ?? this.create(), end = reader.pos + length;
1184
- while (reader.pos < end) {
1185
- let [fieldNo, wireType] = reader.tag();
1186
- switch (fieldNo) {
1187
- case /* uint64 id */ 1:
1188
- message.id = reader.uint64().toBigInt();
1189
- break;
1190
- case /* bool blocking */ 3:
1191
- message.blocking = reader.bool();
1192
- break;
1193
- default:
1194
- let u = options.readUnknownField;
1195
- if (u === "throw")
1196
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1197
- let d = reader.skip(wireType);
1198
- if (u !== false)
1199
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1200
- }
1201
- }
1202
- return message;
1203
- }
1204
- internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1205
- /* uint64 id = 1; */
1206
- if (message.id !== 0n)
1207
- writer.tag(1, WireType.Varint).uint64(message.id);
1208
- /* bool blocking = 3; */
1209
- if (message.blocking !== false)
1210
- writer.tag(3, WireType.Varint).bool(message.blocking);
1211
- let u = options.writeUnknownFields;
1212
- if (u !== false)
1213
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1214
- return writer;
1194
+ constructor() {
1195
+ super('MiLaboratories.PL.API.Subscription', [
1196
+ { no: 1, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
1197
+ { no: 3, name: 'blocking', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
1198
+ ]);
1199
+ }
1200
+
1201
+ create(value?: PartialMessage<Subscription>): Subscription {
1202
+ const message = globalThis.Object.create((this.messagePrototype!));
1203
+ message.id = 0n;
1204
+ message.blocking = false;
1205
+ if (value !== undefined)
1206
+ reflectionMergePartial<Subscription>(this, message, value);
1207
+ return message;
1208
+ }
1209
+
1210
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Subscription): Subscription {
1211
+ const message = target ?? this.create(), end = reader.pos + length;
1212
+ while (reader.pos < end) {
1213
+ const [fieldNo, wireType] = reader.tag();
1214
+ switch (fieldNo) {
1215
+ case /* uint64 id */ 1:
1216
+ message.id = reader.uint64().toBigInt();
1217
+ break;
1218
+ case /* bool blocking */ 3:
1219
+ message.blocking = reader.bool();
1220
+ break;
1221
+ default:
1222
+ const u = options.readUnknownField;
1223
+ if (u === 'throw')
1224
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1225
+ const d = reader.skip(wireType);
1226
+ if (u !== false)
1227
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1228
+ }
1215
1229
  }
1230
+ return message;
1231
+ }
1232
+
1233
+ internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1234
+ /* uint64 id = 1; */
1235
+ if (message.id !== 0n)
1236
+ writer.tag(1, WireType.Varint).uint64(message.id);
1237
+ /* bool blocking = 3; */
1238
+ if (message.blocking !== false)
1239
+ writer.tag(3, WireType.Varint).bool(message.blocking);
1240
+ const u = options.writeUnknownFields;
1241
+ if (u !== false)
1242
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1243
+ return writer;
1244
+ }
1216
1245
  }
1217
1246
  /**
1218
1247
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Subscription
@@ -1220,62 +1249,65 @@ class Subscription$Type extends MessageType<Subscription> {
1220
1249
  export const Subscription = new Subscription$Type();
1221
1250
  // @generated message type with reflection information, may provide speed optimized methods
1222
1251
  class Controller$Type extends MessageType<Controller> {
1223
- constructor() {
1224
- super("MiLaboratories.PL.API.Controller", [
1225
- { no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1226
- { no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1227
- { no: 3, name: "subscriptionID", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1228
- ]);
1229
- }
1230
- create(value?: PartialMessage<Controller>): Controller {
1231
- const message = globalThis.Object.create((this.messagePrototype!));
1232
- message.type = "";
1233
- message.id = 0n;
1234
- message.subscriptionID = 0n;
1235
- if (value !== undefined)
1236
- reflectionMergePartial<Controller>(this, message, value);
1237
- return message;
1238
- }
1239
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Controller): Controller {
1240
- let message = target ?? this.create(), end = reader.pos + length;
1241
- while (reader.pos < end) {
1242
- let [fieldNo, wireType] = reader.tag();
1243
- switch (fieldNo) {
1244
- case /* string type */ 1:
1245
- message.type = reader.string();
1246
- break;
1247
- case /* uint64 id */ 2:
1248
- message.id = reader.uint64().toBigInt();
1249
- break;
1250
- case /* uint64 subscriptionID */ 3:
1251
- message.subscriptionID = reader.uint64().toBigInt();
1252
- break;
1253
- default:
1254
- let u = options.readUnknownField;
1255
- if (u === "throw")
1256
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1257
- let d = reader.skip(wireType);
1258
- if (u !== false)
1259
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1260
- }
1261
- }
1262
- return message;
1263
- }
1264
- internalBinaryWrite(message: Controller, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1265
- /* string type = 1; */
1266
- if (message.type !== "")
1267
- writer.tag(1, WireType.LengthDelimited).string(message.type);
1268
- /* uint64 id = 2; */
1269
- if (message.id !== 0n)
1270
- writer.tag(2, WireType.Varint).uint64(message.id);
1271
- /* uint64 subscriptionID = 3; */
1272
- if (message.subscriptionID !== 0n)
1273
- writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
1274
- let u = options.writeUnknownFields;
1275
- if (u !== false)
1276
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1277
- return writer;
1252
+ constructor() {
1253
+ super('MiLaboratories.PL.API.Controller', [
1254
+ { no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1255
+ { no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
1256
+ { no: 3, name: 'subscriptionID', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
1257
+ ]);
1258
+ }
1259
+
1260
+ create(value?: PartialMessage<Controller>): Controller {
1261
+ const message = globalThis.Object.create((this.messagePrototype!));
1262
+ message.type = '';
1263
+ message.id = 0n;
1264
+ message.subscriptionID = 0n;
1265
+ if (value !== undefined)
1266
+ reflectionMergePartial<Controller>(this, message, value);
1267
+ return message;
1268
+ }
1269
+
1270
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Controller): Controller {
1271
+ const message = target ?? this.create(), end = reader.pos + length;
1272
+ while (reader.pos < end) {
1273
+ const [fieldNo, wireType] = reader.tag();
1274
+ switch (fieldNo) {
1275
+ case /* string type */ 1:
1276
+ message.type = reader.string();
1277
+ break;
1278
+ case /* uint64 id */ 2:
1279
+ message.id = reader.uint64().toBigInt();
1280
+ break;
1281
+ case /* uint64 subscriptionID */ 3:
1282
+ message.subscriptionID = reader.uint64().toBigInt();
1283
+ break;
1284
+ default:
1285
+ const u = options.readUnknownField;
1286
+ if (u === 'throw')
1287
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1288
+ const d = reader.skip(wireType);
1289
+ if (u !== false)
1290
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1291
+ }
1278
1292
  }
1293
+ return message;
1294
+ }
1295
+
1296
+ internalBinaryWrite(message: Controller, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1297
+ /* string type = 1; */
1298
+ if (message.type !== '')
1299
+ writer.tag(1, WireType.LengthDelimited).string(message.type);
1300
+ /* uint64 id = 2; */
1301
+ if (message.id !== 0n)
1302
+ writer.tag(2, WireType.Varint).uint64(message.id);
1303
+ /* uint64 subscriptionID = 3; */
1304
+ if (message.subscriptionID !== 0n)
1305
+ writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
1306
+ const u = options.writeUnknownFields;
1307
+ if (u !== false)
1308
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1309
+ return writer;
1310
+ }
1279
1311
  }
1280
1312
  /**
1281
1313
  * @generated MessageType for protobuf message MiLaboratories.PL.API.Controller
@@ -1283,53 +1315,56 @@ class Controller$Type extends MessageType<Controller> {
1283
1315
  export const Controller = new Controller$Type();
1284
1316
  // @generated message type with reflection information, may provide speed optimized methods
1285
1317
  class ResourceSchema$Type extends MessageType<ResourceSchema> {
1286
- constructor() {
1287
- super("MiLaboratories.PL.API.ResourceSchema", [
1288
- { no: 1, name: "type", kind: "message", T: () => ResourceType },
1289
- { no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => FieldSchema }
1290
- ]);
1291
- }
1292
- create(value?: PartialMessage<ResourceSchema>): ResourceSchema {
1293
- const message = globalThis.Object.create((this.messagePrototype!));
1294
- message.fields = [];
1295
- if (value !== undefined)
1296
- reflectionMergePartial<ResourceSchema>(this, message, value);
1297
- return message;
1298
- }
1299
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceSchema): ResourceSchema {
1300
- let message = target ?? this.create(), end = reader.pos + length;
1301
- while (reader.pos < end) {
1302
- let [fieldNo, wireType] = reader.tag();
1303
- switch (fieldNo) {
1304
- case /* MiLaboratories.PL.Base.ResourceType type */ 1:
1305
- message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
1306
- break;
1307
- case /* repeated MiLaboratories.PL.API.FieldSchema fields */ 2:
1308
- message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
1309
- break;
1310
- default:
1311
- let u = options.readUnknownField;
1312
- if (u === "throw")
1313
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1314
- let d = reader.skip(wireType);
1315
- if (u !== false)
1316
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1317
- }
1318
- }
1319
- return message;
1320
- }
1321
- internalBinaryWrite(message: ResourceSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1322
- /* MiLaboratories.PL.Base.ResourceType type = 1; */
1323
- if (message.type)
1324
- ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1325
- /* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
1326
- for (let i = 0; i < message.fields.length; i++)
1327
- FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1328
- let u = options.writeUnknownFields;
1329
- if (u !== false)
1330
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1331
- return writer;
1318
+ constructor() {
1319
+ super('MiLaboratories.PL.API.ResourceSchema', [
1320
+ { no: 1, name: 'type', kind: 'message', T: () => ResourceType },
1321
+ { no: 2, name: 'fields', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => FieldSchema },
1322
+ ]);
1323
+ }
1324
+
1325
+ create(value?: PartialMessage<ResourceSchema>): ResourceSchema {
1326
+ const message = globalThis.Object.create((this.messagePrototype!));
1327
+ message.fields = [];
1328
+ if (value !== undefined)
1329
+ reflectionMergePartial<ResourceSchema>(this, message, value);
1330
+ return message;
1331
+ }
1332
+
1333
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceSchema): ResourceSchema {
1334
+ const message = target ?? this.create(), end = reader.pos + length;
1335
+ while (reader.pos < end) {
1336
+ const [fieldNo, wireType] = reader.tag();
1337
+ switch (fieldNo) {
1338
+ case /* MiLaboratories.PL.Base.ResourceType type */ 1:
1339
+ message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
1340
+ break;
1341
+ case /* repeated MiLaboratories.PL.API.FieldSchema fields */ 2:
1342
+ message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
1343
+ break;
1344
+ default:
1345
+ const u = options.readUnknownField;
1346
+ if (u === 'throw')
1347
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1348
+ const d = reader.skip(wireType);
1349
+ if (u !== false)
1350
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1351
+ }
1332
1352
  }
1353
+ return message;
1354
+ }
1355
+
1356
+ internalBinaryWrite(message: ResourceSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1357
+ /* MiLaboratories.PL.Base.ResourceType type = 1; */
1358
+ if (message.type)
1359
+ ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1360
+ /* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
1361
+ for (let i = 0; i < message.fields.length; i++)
1362
+ FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1363
+ const u = options.writeUnknownFields;
1364
+ if (u !== false)
1365
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1366
+ return writer;
1367
+ }
1333
1368
  }
1334
1369
  /**
1335
1370
  * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
@@ -1337,54 +1372,57 @@ class ResourceSchema$Type extends MessageType<ResourceSchema> {
1337
1372
  export const ResourceSchema = new ResourceSchema$Type();
1338
1373
  // @generated message type with reflection information, may provide speed optimized methods
1339
1374
  class FieldSchema$Type extends MessageType<FieldSchema> {
1340
- constructor() {
1341
- super("MiLaboratories.PL.API.FieldSchema", [
1342
- { no: 1, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
1343
- { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1344
- ]);
1345
- }
1346
- create(value?: PartialMessage<FieldSchema>): FieldSchema {
1347
- const message = globalThis.Object.create((this.messagePrototype!));
1348
- message.type = 0;
1349
- message.name = "";
1350
- if (value !== undefined)
1351
- reflectionMergePartial<FieldSchema>(this, message, value);
1352
- return message;
1353
- }
1354
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldSchema): FieldSchema {
1355
- let message = target ?? this.create(), end = reader.pos + length;
1356
- while (reader.pos < end) {
1357
- let [fieldNo, wireType] = reader.tag();
1358
- switch (fieldNo) {
1359
- case /* MiLaboratories.PL.Base.FieldType type */ 1:
1360
- message.type = reader.int32();
1361
- break;
1362
- case /* string name */ 2:
1363
- message.name = reader.string();
1364
- break;
1365
- default:
1366
- let u = options.readUnknownField;
1367
- if (u === "throw")
1368
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1369
- let d = reader.skip(wireType);
1370
- if (u !== false)
1371
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1372
- }
1373
- }
1374
- return message;
1375
- }
1376
- internalBinaryWrite(message: FieldSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1377
- /* MiLaboratories.PL.Base.FieldType type = 1; */
1378
- if (message.type !== 0)
1379
- writer.tag(1, WireType.Varint).int32(message.type);
1380
- /* string name = 2; */
1381
- if (message.name !== "")
1382
- writer.tag(2, WireType.LengthDelimited).string(message.name);
1383
- let u = options.writeUnknownFields;
1384
- if (u !== false)
1385
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1386
- return writer;
1375
+ constructor() {
1376
+ super('MiLaboratories.PL.API.FieldSchema', [
1377
+ { no: 1, name: 'type', kind: 'enum', T: () => ['MiLaboratories.PL.Base.FieldType', FieldType] },
1378
+ { no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1379
+ ]);
1380
+ }
1381
+
1382
+ create(value?: PartialMessage<FieldSchema>): FieldSchema {
1383
+ const message = globalThis.Object.create((this.messagePrototype!));
1384
+ message.type = 0;
1385
+ message.name = '';
1386
+ if (value !== undefined)
1387
+ reflectionMergePartial<FieldSchema>(this, message, value);
1388
+ return message;
1389
+ }
1390
+
1391
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldSchema): FieldSchema {
1392
+ const message = target ?? this.create(), end = reader.pos + length;
1393
+ while (reader.pos < end) {
1394
+ const [fieldNo, wireType] = reader.tag();
1395
+ switch (fieldNo) {
1396
+ case /* MiLaboratories.PL.Base.FieldType type */ 1:
1397
+ message.type = reader.int32();
1398
+ break;
1399
+ case /* string name */ 2:
1400
+ message.name = reader.string();
1401
+ break;
1402
+ default:
1403
+ const u = options.readUnknownField;
1404
+ if (u === 'throw')
1405
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1406
+ const d = reader.skip(wireType);
1407
+ if (u !== false)
1408
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1409
+ }
1387
1410
  }
1411
+ return message;
1412
+ }
1413
+
1414
+ internalBinaryWrite(message: FieldSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1415
+ /* MiLaboratories.PL.Base.FieldType type = 1; */
1416
+ if (message.type !== 0)
1417
+ writer.tag(1, WireType.Varint).int32(message.type);
1418
+ /* string name = 2; */
1419
+ if (message.name !== '')
1420
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1421
+ const u = options.writeUnknownFields;
1422
+ if (u !== false)
1423
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1424
+ return writer;
1425
+ }
1388
1426
  }
1389
1427
  /**
1390
1428
  * @generated MessageType for protobuf message MiLaboratories.PL.API.FieldSchema
@@ -1392,69 +1430,72 @@ class FieldSchema$Type extends MessageType<FieldSchema> {
1392
1430
  export const FieldSchema = new FieldSchema$Type();
1393
1431
  // @generated message type with reflection information, may provide speed optimized methods
1394
1432
  class ResourceAPIFeature$Type extends MessageType<ResourceAPIFeature> {
1395
- constructor() {
1396
- super("MiLaboratories.PL.API.ResourceAPIFeature", [
1397
- { no: 1, name: "controller_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1398
- { no: 2, name: "feature_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1399
- { no: 3, name: "resource_type", kind: "message", T: () => ResourceType },
1400
- { no: 4, name: "endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1401
- ]);
1402
- }
1403
- create(value?: PartialMessage<ResourceAPIFeature>): ResourceAPIFeature {
1404
- const message = globalThis.Object.create((this.messagePrototype!));
1405
- message.controllerType = "";
1406
- message.featureName = "";
1407
- message.endpoint = "";
1408
- if (value !== undefined)
1409
- reflectionMergePartial<ResourceAPIFeature>(this, message, value);
1410
- return message;
1411
- }
1412
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceAPIFeature): ResourceAPIFeature {
1413
- let message = target ?? this.create(), end = reader.pos + length;
1414
- while (reader.pos < end) {
1415
- let [fieldNo, wireType] = reader.tag();
1416
- switch (fieldNo) {
1417
- case /* string controller_type */ 1:
1418
- message.controllerType = reader.string();
1419
- break;
1420
- case /* string feature_name */ 2:
1421
- message.featureName = reader.string();
1422
- break;
1423
- case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
1424
- message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
1425
- break;
1426
- case /* string endpoint */ 4:
1427
- message.endpoint = reader.string();
1428
- break;
1429
- default:
1430
- let u = options.readUnknownField;
1431
- if (u === "throw")
1432
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1433
- let d = reader.skip(wireType);
1434
- if (u !== false)
1435
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1436
- }
1437
- }
1438
- return message;
1439
- }
1440
- internalBinaryWrite(message: ResourceAPIFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1441
- /* string controller_type = 1; */
1442
- if (message.controllerType !== "")
1443
- writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
1444
- /* string feature_name = 2; */
1445
- if (message.featureName !== "")
1446
- writer.tag(2, WireType.LengthDelimited).string(message.featureName);
1447
- /* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
1448
- if (message.resourceType)
1449
- ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1450
- /* string endpoint = 4; */
1451
- if (message.endpoint !== "")
1452
- writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
1453
- let u = options.writeUnknownFields;
1454
- if (u !== false)
1455
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1456
- return writer;
1433
+ constructor() {
1434
+ super('MiLaboratories.PL.API.ResourceAPIFeature', [
1435
+ { no: 1, name: 'controller_type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1436
+ { no: 2, name: 'feature_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1437
+ { no: 3, name: 'resource_type', kind: 'message', T: () => ResourceType },
1438
+ { no: 4, name: 'endpoint', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
1439
+ ]);
1440
+ }
1441
+
1442
+ create(value?: PartialMessage<ResourceAPIFeature>): ResourceAPIFeature {
1443
+ const message = globalThis.Object.create((this.messagePrototype!));
1444
+ message.controllerType = '';
1445
+ message.featureName = '';
1446
+ message.endpoint = '';
1447
+ if (value !== undefined)
1448
+ reflectionMergePartial<ResourceAPIFeature>(this, message, value);
1449
+ return message;
1450
+ }
1451
+
1452
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceAPIFeature): ResourceAPIFeature {
1453
+ const message = target ?? this.create(), end = reader.pos + length;
1454
+ while (reader.pos < end) {
1455
+ const [fieldNo, wireType] = reader.tag();
1456
+ switch (fieldNo) {
1457
+ case /* string controller_type */ 1:
1458
+ message.controllerType = reader.string();
1459
+ break;
1460
+ case /* string feature_name */ 2:
1461
+ message.featureName = reader.string();
1462
+ break;
1463
+ case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
1464
+ message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
1465
+ break;
1466
+ case /* string endpoint */ 4:
1467
+ message.endpoint = reader.string();
1468
+ break;
1469
+ default:
1470
+ const u = options.readUnknownField;
1471
+ if (u === 'throw')
1472
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1473
+ const d = reader.skip(wireType);
1474
+ if (u !== false)
1475
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1476
+ }
1457
1477
  }
1478
+ return message;
1479
+ }
1480
+
1481
+ internalBinaryWrite(message: ResourceAPIFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1482
+ /* string controller_type = 1; */
1483
+ if (message.controllerType !== '')
1484
+ writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
1485
+ /* string feature_name = 2; */
1486
+ if (message.featureName !== '')
1487
+ writer.tag(2, WireType.LengthDelimited).string(message.featureName);
1488
+ /* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
1489
+ if (message.resourceType)
1490
+ ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1491
+ /* string endpoint = 4; */
1492
+ if (message.endpoint !== '')
1493
+ writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
1494
+ const u = options.writeUnknownFields;
1495
+ if (u !== false)
1496
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1497
+ return writer;
1498
+ }
1458
1499
  }
1459
1500
  /**
1460
1501
  * @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceAPIFeature