@norskvideo/norsk-api 0.0.322

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.
@@ -0,0 +1,2256 @@
1
+ // @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
2
+ // @generated from file manager.proto (package norsk.api.manager, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
+ import { Log, Version } from "./shared/common_pb.js";
9
+
10
+ /**
11
+ * `Hello` is sent to the client at the start of a status channel, and gives
12
+ * information about the current Norsk runtime
13
+ *
14
+ * @generated from message norsk.api.manager.Hello
15
+ */
16
+ export class Hello extends Message<Hello> {
17
+ /**
18
+ * The Norsk version information
19
+ *
20
+ * @generated from field: norsk.api.common.Version version = 1;
21
+ */
22
+ version?: Version;
23
+
24
+ constructor(data?: PartialMessage<Hello>) {
25
+ super();
26
+ proto3.util.initPartial(data, this);
27
+ }
28
+
29
+ static readonly runtime = proto3;
30
+ static readonly typeName = "norsk.api.manager.Hello";
31
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
32
+ { no: 1, name: "version", kind: "message", T: Version },
33
+ ]);
34
+
35
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Hello {
36
+ return new Hello().fromBinary(bytes, options);
37
+ }
38
+
39
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Hello {
40
+ return new Hello().fromJson(jsonValue, options);
41
+ }
42
+
43
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Hello {
44
+ return new Hello().fromJsonString(jsonString, options);
45
+ }
46
+
47
+ static equals(a: Hello | PlainMessage<Hello> | undefined, b: Hello | PlainMessage<Hello> | undefined): boolean {
48
+ return proto3.util.equals(Hello, a, b);
49
+ }
50
+ }
51
+
52
+ /**
53
+ * @generated from message norsk.api.manager.AwsS3Location
54
+ */
55
+ export class AwsS3Location extends Message<AwsS3Location> {
56
+ /**
57
+ * @generated from field: string url = 1;
58
+ */
59
+ url = "";
60
+
61
+ constructor(data?: PartialMessage<AwsS3Location>) {
62
+ super();
63
+ proto3.util.initPartial(data, this);
64
+ }
65
+
66
+ static readonly runtime = proto3;
67
+ static readonly typeName = "norsk.api.manager.AwsS3Location";
68
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
69
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
70
+ ]);
71
+
72
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsS3Location {
73
+ return new AwsS3Location().fromBinary(bytes, options);
74
+ }
75
+
76
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsS3Location {
77
+ return new AwsS3Location().fromJson(jsonValue, options);
78
+ }
79
+
80
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsS3Location {
81
+ return new AwsS3Location().fromJsonString(jsonString, options);
82
+ }
83
+
84
+ static equals(a: AwsS3Location | PlainMessage<AwsS3Location> | undefined, b: AwsS3Location | PlainMessage<AwsS3Location> | undefined): boolean {
85
+ return proto3.util.equals(AwsS3Location, a, b);
86
+ }
87
+ }
88
+
89
+ /**
90
+ * @generated from message norsk.api.manager.PublicHttpLocation
91
+ */
92
+ export class PublicHttpLocation extends Message<PublicHttpLocation> {
93
+ /**
94
+ * @generated from field: string url = 1;
95
+ */
96
+ url = "";
97
+
98
+ constructor(data?: PartialMessage<PublicHttpLocation>) {
99
+ super();
100
+ proto3.util.initPartial(data, this);
101
+ }
102
+
103
+ static readonly runtime = proto3;
104
+ static readonly typeName = "norsk.api.manager.PublicHttpLocation";
105
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
106
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
107
+ ]);
108
+
109
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublicHttpLocation {
110
+ return new PublicHttpLocation().fromBinary(bytes, options);
111
+ }
112
+
113
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublicHttpLocation {
114
+ return new PublicHttpLocation().fromJson(jsonValue, options);
115
+ }
116
+
117
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublicHttpLocation {
118
+ return new PublicHttpLocation().fromJsonString(jsonString, options);
119
+ }
120
+
121
+ static equals(a: PublicHttpLocation | PlainMessage<PublicHttpLocation> | undefined, b: PublicHttpLocation | PlainMessage<PublicHttpLocation> | undefined): boolean {
122
+ return proto3.util.equals(PublicHttpLocation, a, b);
123
+ }
124
+ }
125
+
126
+ /**
127
+ * @generated from message norsk.api.manager.CustomLocation
128
+ */
129
+ export class CustomLocation extends Message<CustomLocation> {
130
+ /**
131
+ * @generated from oneof norsk.api.manager.CustomLocation.script
132
+ */
133
+ script: {
134
+ /**
135
+ * @generated from field: norsk.api.manager.AwsS3Location aws_s3_location = 1;
136
+ */
137
+ value: AwsS3Location;
138
+ case: "awsS3Location";
139
+ } | {
140
+ /**
141
+ * @generated from field: norsk.api.manager.PublicHttpLocation http_location = 2;
142
+ */
143
+ value: PublicHttpLocation;
144
+ case: "httpLocation";
145
+ } | { case: undefined; value?: undefined } = { case: undefined };
146
+
147
+ constructor(data?: PartialMessage<CustomLocation>) {
148
+ super();
149
+ proto3.util.initPartial(data, this);
150
+ }
151
+
152
+ static readonly runtime = proto3;
153
+ static readonly typeName = "norsk.api.manager.CustomLocation";
154
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
155
+ { no: 1, name: "aws_s3_location", kind: "message", T: AwsS3Location, oneof: "script" },
156
+ { no: 2, name: "http_location", kind: "message", T: PublicHttpLocation, oneof: "script" },
157
+ ]);
158
+
159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomLocation {
160
+ return new CustomLocation().fromBinary(bytes, options);
161
+ }
162
+
163
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomLocation {
164
+ return new CustomLocation().fromJson(jsonValue, options);
165
+ }
166
+
167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomLocation {
168
+ return new CustomLocation().fromJsonString(jsonString, options);
169
+ }
170
+
171
+ static equals(a: CustomLocation | PlainMessage<CustomLocation> | undefined, b: CustomLocation | PlainMessage<CustomLocation> | undefined): boolean {
172
+ return proto3.util.equals(CustomLocation, a, b);
173
+ }
174
+ }
175
+
176
+ /**
177
+ * @generated from message norsk.api.manager.Location
178
+ */
179
+ export class Location extends Message<Location> {
180
+ /**
181
+ * @generated from oneof norsk.api.manager.Location.location
182
+ */
183
+ location: {
184
+ /**
185
+ * @generated from field: norsk.api.manager.AwsS3Location aws_s3_location = 1;
186
+ */
187
+ value: AwsS3Location;
188
+ case: "awsS3Location";
189
+ } | {
190
+ /**
191
+ * @generated from field: norsk.api.manager.PublicHttpLocation http_location = 2;
192
+ */
193
+ value: PublicHttpLocation;
194
+ case: "httpLocation";
195
+ } | {
196
+ /**
197
+ * @generated from field: norsk.api.manager.CustomLocation custom_location = 3;
198
+ */
199
+ value: CustomLocation;
200
+ case: "customLocation";
201
+ } | { case: undefined; value?: undefined } = { case: undefined };
202
+
203
+ constructor(data?: PartialMessage<Location>) {
204
+ super();
205
+ proto3.util.initPartial(data, this);
206
+ }
207
+
208
+ static readonly runtime = proto3;
209
+ static readonly typeName = "norsk.api.manager.Location";
210
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
211
+ { no: 1, name: "aws_s3_location", kind: "message", T: AwsS3Location, oneof: "location" },
212
+ { no: 2, name: "http_location", kind: "message", T: PublicHttpLocation, oneof: "location" },
213
+ { no: 3, name: "custom_location", kind: "message", T: CustomLocation, oneof: "location" },
214
+ ]);
215
+
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Location {
217
+ return new Location().fromBinary(bytes, options);
218
+ }
219
+
220
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Location {
221
+ return new Location().fromJson(jsonValue, options);
222
+ }
223
+
224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Location {
225
+ return new Location().fromJsonString(jsonString, options);
226
+ }
227
+
228
+ static equals(a: Location | PlainMessage<Location> | undefined, b: Location | PlainMessage<Location> | undefined): boolean {
229
+ return proto3.util.equals(Location, a, b);
230
+ }
231
+ }
232
+
233
+ /**
234
+ * @generated from message norsk.api.manager.DockerContainer
235
+ */
236
+ export class DockerContainer extends Message<DockerContainer> {
237
+ /**
238
+ * @generated from field: norsk.api.manager.Location location = 1;
239
+ */
240
+ location?: Location;
241
+
242
+ constructor(data?: PartialMessage<DockerContainer>) {
243
+ super();
244
+ proto3.util.initPartial(data, this);
245
+ }
246
+
247
+ static readonly runtime = proto3;
248
+ static readonly typeName = "norsk.api.manager.DockerContainer";
249
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
250
+ { no: 1, name: "location", kind: "message", T: Location },
251
+ ]);
252
+
253
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DockerContainer {
254
+ return new DockerContainer().fromBinary(bytes, options);
255
+ }
256
+
257
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DockerContainer {
258
+ return new DockerContainer().fromJson(jsonValue, options);
259
+ }
260
+
261
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DockerContainer {
262
+ return new DockerContainer().fromJsonString(jsonString, options);
263
+ }
264
+
265
+ static equals(a: DockerContainer | PlainMessage<DockerContainer> | undefined, b: DockerContainer | PlainMessage<DockerContainer> | undefined): boolean {
266
+ return proto3.util.equals(DockerContainer, a, b);
267
+ }
268
+ }
269
+
270
+ /**
271
+ * @generated from message norsk.api.manager.NpmPackage
272
+ */
273
+ export class NpmPackage extends Message<NpmPackage> {
274
+ /**
275
+ * @generated from field: norsk.api.manager.Location location = 1;
276
+ */
277
+ location?: Location;
278
+
279
+ constructor(data?: PartialMessage<NpmPackage>) {
280
+ super();
281
+ proto3.util.initPartial(data, this);
282
+ }
283
+
284
+ static readonly runtime = proto3;
285
+ static readonly typeName = "norsk.api.manager.NpmPackage";
286
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
287
+ { no: 1, name: "location", kind: "message", T: Location },
288
+ ]);
289
+
290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NpmPackage {
291
+ return new NpmPackage().fromBinary(bytes, options);
292
+ }
293
+
294
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NpmPackage {
295
+ return new NpmPackage().fromJson(jsonValue, options);
296
+ }
297
+
298
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NpmPackage {
299
+ return new NpmPackage().fromJsonString(jsonString, options);
300
+ }
301
+
302
+ static equals(a: NpmPackage | PlainMessage<NpmPackage> | undefined, b: NpmPackage | PlainMessage<NpmPackage> | undefined): boolean {
303
+ return proto3.util.equals(NpmPackage, a, b);
304
+ }
305
+ }
306
+
307
+ /**
308
+ * @generated from message norsk.api.manager.Job
309
+ */
310
+ export class Job extends Message<Job> {
311
+ /**
312
+ * @generated from field: string id = 1;
313
+ */
314
+ id = "";
315
+
316
+ /**
317
+ * @generated from field: string description = 2;
318
+ */
319
+ description = "";
320
+
321
+ /**
322
+ * @generated from field: map<string, string> tags = 3;
323
+ */
324
+ tags: { [key: string]: string } = {};
325
+
326
+ /**
327
+ * @generated from field: google.protobuf.Timestamp start_date_time = 4;
328
+ */
329
+ startDateTime?: Timestamp;
330
+
331
+ /**
332
+ * @generated from field: google.protobuf.Timestamp end_date_time = 5;
333
+ */
334
+ endDateTime?: Timestamp;
335
+
336
+ /**
337
+ * @generated from field: int64 current_hash = 6;
338
+ */
339
+ currentHash = protoInt64.zero;
340
+
341
+ /**
342
+ * @generated from field: string media_configuration = 7;
343
+ */
344
+ mediaConfiguration = "";
345
+
346
+ /**
347
+ * @generated from field: string manager_configuration = 8;
348
+ */
349
+ managerConfiguration = "";
350
+
351
+ /**
352
+ * @generated from field: string norsk_media_version = 9;
353
+ */
354
+ norskMediaVersion = "";
355
+
356
+ /**
357
+ * @generated from oneof norsk.api.manager.Job.client_code
358
+ */
359
+ clientCode: {
360
+ /**
361
+ * @generated from field: norsk.api.manager.DockerContainer docker = 10;
362
+ */
363
+ value: DockerContainer;
364
+ case: "docker";
365
+ } | {
366
+ /**
367
+ * @generated from field: norsk.api.manager.NpmPackage npm = 11;
368
+ */
369
+ value: NpmPackage;
370
+ case: "npm";
371
+ } | { case: undefined; value?: undefined } = { case: undefined };
372
+
373
+ constructor(data?: PartialMessage<Job>) {
374
+ super();
375
+ proto3.util.initPartial(data, this);
376
+ }
377
+
378
+ static readonly runtime = proto3;
379
+ static readonly typeName = "norsk.api.manager.Job";
380
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
381
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
382
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
383
+ { no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
384
+ { no: 4, name: "start_date_time", kind: "message", T: Timestamp },
385
+ { no: 5, name: "end_date_time", kind: "message", T: Timestamp },
386
+ { no: 6, name: "current_hash", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
387
+ { no: 7, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
388
+ { no: 8, name: "manager_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
389
+ { no: 9, name: "norsk_media_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
390
+ { no: 10, name: "docker", kind: "message", T: DockerContainer, oneof: "client_code" },
391
+ { no: 11, name: "npm", kind: "message", T: NpmPackage, oneof: "client_code" },
392
+ ]);
393
+
394
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Job {
395
+ return new Job().fromBinary(bytes, options);
396
+ }
397
+
398
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Job {
399
+ return new Job().fromJson(jsonValue, options);
400
+ }
401
+
402
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Job {
403
+ return new Job().fromJsonString(jsonString, options);
404
+ }
405
+
406
+ static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean {
407
+ return proto3.util.equals(Job, a, b);
408
+ }
409
+ }
410
+
411
+ /**
412
+ * @generated from message norsk.api.manager.AwsNode
413
+ */
414
+ export class AwsNode extends Message<AwsNode> {
415
+ /**
416
+ * @generated from field: string id = 1;
417
+ */
418
+ id = "";
419
+
420
+ /**
421
+ * @generated from field: map<string, string> tags = 2;
422
+ */
423
+ tags: { [key: string]: string } = {};
424
+
425
+ /**
426
+ * @generated from field: string instance_type = 3;
427
+ */
428
+ instanceType = "";
429
+
430
+ /**
431
+ * @generated from field: string region = 4;
432
+ */
433
+ region = "";
434
+
435
+ /**
436
+ * @generated from field: string az = 5;
437
+ */
438
+ az = "";
439
+
440
+ /**
441
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
442
+ */
443
+ createdAt?: Timestamp;
444
+
445
+ /**
446
+ * @generated from field: string daemon_version = 7;
447
+ */
448
+ daemonVersion = "";
449
+
450
+ constructor(data?: PartialMessage<AwsNode>) {
451
+ super();
452
+ proto3.util.initPartial(data, this);
453
+ }
454
+
455
+ static readonly runtime = proto3;
456
+ static readonly typeName = "norsk.api.manager.AwsNode";
457
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
458
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
459
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
460
+ { no: 3, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
461
+ { no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
+ { no: 5, name: "az", kind: "scalar", T: 9 /* ScalarType.STRING */ },
463
+ { no: 6, name: "created_at", kind: "message", T: Timestamp },
464
+ { no: 7, name: "daemon_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
465
+ ]);
466
+
467
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsNode {
468
+ return new AwsNode().fromBinary(bytes, options);
469
+ }
470
+
471
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsNode {
472
+ return new AwsNode().fromJson(jsonValue, options);
473
+ }
474
+
475
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsNode {
476
+ return new AwsNode().fromJsonString(jsonString, options);
477
+ }
478
+
479
+ static equals(a: AwsNode | PlainMessage<AwsNode> | undefined, b: AwsNode | PlainMessage<AwsNode> | undefined): boolean {
480
+ return proto3.util.equals(AwsNode, a, b);
481
+ }
482
+ }
483
+
484
+ /**
485
+ * @generated from message norsk.api.manager.AwsNodeAddress
486
+ */
487
+ export class AwsNodeAddress extends Message<AwsNodeAddress> {
488
+ /**
489
+ * @generated from field: string public_dns_name = 1;
490
+ */
491
+ publicDnsName = "";
492
+
493
+ /**
494
+ * @generated from field: string private_dns_name = 2;
495
+ */
496
+ privateDnsName = "";
497
+
498
+ /**
499
+ * @generated from field: string private_ip_address = 3;
500
+ */
501
+ privateIpAddress = "";
502
+
503
+ constructor(data?: PartialMessage<AwsNodeAddress>) {
504
+ super();
505
+ proto3.util.initPartial(data, this);
506
+ }
507
+
508
+ static readonly runtime = proto3;
509
+ static readonly typeName = "norsk.api.manager.AwsNodeAddress";
510
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
511
+ { no: 1, name: "public_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
512
+ { no: 2, name: "private_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
513
+ { no: 3, name: "private_ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
514
+ ]);
515
+
516
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsNodeAddress {
517
+ return new AwsNodeAddress().fromBinary(bytes, options);
518
+ }
519
+
520
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsNodeAddress {
521
+ return new AwsNodeAddress().fromJson(jsonValue, options);
522
+ }
523
+
524
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsNodeAddress {
525
+ return new AwsNodeAddress().fromJsonString(jsonString, options);
526
+ }
527
+
528
+ static equals(a: AwsNodeAddress | PlainMessage<AwsNodeAddress> | undefined, b: AwsNodeAddress | PlainMessage<AwsNodeAddress> | undefined): boolean {
529
+ return proto3.util.equals(AwsNodeAddress, a, b);
530
+ }
531
+ }
532
+
533
+ /**
534
+ * @generated from message norsk.api.manager.AwsRunningNode
535
+ */
536
+ export class AwsRunningNode extends Message<AwsRunningNode> {
537
+ /**
538
+ * @generated from field: norsk.api.manager.AwsNode node = 1;
539
+ */
540
+ node?: AwsNode;
541
+
542
+ /**
543
+ * @generated from field: norsk.api.manager.AwsNodeAddress address = 2;
544
+ */
545
+ address?: AwsNodeAddress;
546
+
547
+ constructor(data?: PartialMessage<AwsRunningNode>) {
548
+ super();
549
+ proto3.util.initPartial(data, this);
550
+ }
551
+
552
+ static readonly runtime = proto3;
553
+ static readonly typeName = "norsk.api.manager.AwsRunningNode";
554
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
555
+ { no: 1, name: "node", kind: "message", T: AwsNode },
556
+ { no: 2, name: "address", kind: "message", T: AwsNodeAddress },
557
+ ]);
558
+
559
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsRunningNode {
560
+ return new AwsRunningNode().fromBinary(bytes, options);
561
+ }
562
+
563
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsRunningNode {
564
+ return new AwsRunningNode().fromJson(jsonValue, options);
565
+ }
566
+
567
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsRunningNode {
568
+ return new AwsRunningNode().fromJsonString(jsonString, options);
569
+ }
570
+
571
+ static equals(a: AwsRunningNode | PlainMessage<AwsRunningNode> | undefined, b: AwsRunningNode | PlainMessage<AwsRunningNode> | undefined): boolean {
572
+ return proto3.util.equals(AwsRunningNode, a, b);
573
+ }
574
+ }
575
+
576
+ /**
577
+ * @generated from message norsk.api.manager.PhysicalNode
578
+ */
579
+ export class PhysicalNode extends Message<PhysicalNode> {
580
+ /**
581
+ * @generated from field: string id = 1;
582
+ */
583
+ id = "";
584
+
585
+ /**
586
+ * @generated from field: map<string, string> tags = 2;
587
+ */
588
+ tags: { [key: string]: string } = {};
589
+
590
+ /**
591
+ * @generated from field: string ip_address = 3;
592
+ */
593
+ ipAddress = "";
594
+
595
+ constructor(data?: PartialMessage<PhysicalNode>) {
596
+ super();
597
+ proto3.util.initPartial(data, this);
598
+ }
599
+
600
+ static readonly runtime = proto3;
601
+ static readonly typeName = "norsk.api.manager.PhysicalNode";
602
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
603
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
604
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
605
+ { no: 3, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
606
+ ]);
607
+
608
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhysicalNode {
609
+ return new PhysicalNode().fromBinary(bytes, options);
610
+ }
611
+
612
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhysicalNode {
613
+ return new PhysicalNode().fromJson(jsonValue, options);
614
+ }
615
+
616
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhysicalNode {
617
+ return new PhysicalNode().fromJsonString(jsonString, options);
618
+ }
619
+
620
+ static equals(a: PhysicalNode | PlainMessage<PhysicalNode> | undefined, b: PhysicalNode | PlainMessage<PhysicalNode> | undefined): boolean {
621
+ return proto3.util.equals(PhysicalNode, a, b);
622
+ }
623
+ }
624
+
625
+ /**
626
+ * @generated from message norsk.api.manager.RunningJob
627
+ */
628
+ export class RunningJob extends Message<RunningJob> {
629
+ /**
630
+ * @generated from field: norsk.api.manager.JobId job_id = 1;
631
+ */
632
+ jobId?: JobId;
633
+
634
+ /**
635
+ * @generated from field: string role = 2;
636
+ */
637
+ role = "";
638
+
639
+ /**
640
+ * @generated from field: norsk.api.manager.NodeId node_id = 3;
641
+ */
642
+ nodeId?: NodeId;
643
+
644
+ constructor(data?: PartialMessage<RunningJob>) {
645
+ super();
646
+ proto3.util.initPartial(data, this);
647
+ }
648
+
649
+ static readonly runtime = proto3;
650
+ static readonly typeName = "norsk.api.manager.RunningJob";
651
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
652
+ { no: 1, name: "job_id", kind: "message", T: JobId },
653
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
654
+ { no: 3, name: "node_id", kind: "message", T: NodeId },
655
+ ]);
656
+
657
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningJob {
658
+ return new RunningJob().fromBinary(bytes, options);
659
+ }
660
+
661
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningJob {
662
+ return new RunningJob().fromJson(jsonValue, options);
663
+ }
664
+
665
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningJob {
666
+ return new RunningJob().fromJsonString(jsonString, options);
667
+ }
668
+
669
+ static equals(a: RunningJob | PlainMessage<RunningJob> | undefined, b: RunningJob | PlainMessage<RunningJob> | undefined): boolean {
670
+ return proto3.util.equals(RunningJob, a, b);
671
+ }
672
+ }
673
+
674
+ /**
675
+ * @generated from message norsk.api.manager.JobPending
676
+ */
677
+ export class JobPending extends Message<JobPending> {
678
+ /**
679
+ * @generated from field: norsk.api.manager.Job job = 1;
680
+ */
681
+ job?: Job;
682
+
683
+ constructor(data?: PartialMessage<JobPending>) {
684
+ super();
685
+ proto3.util.initPartial(data, this);
686
+ }
687
+
688
+ static readonly runtime = proto3;
689
+ static readonly typeName = "norsk.api.manager.JobPending";
690
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
691
+ { no: 1, name: "job", kind: "message", T: Job },
692
+ ]);
693
+
694
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobPending {
695
+ return new JobPending().fromBinary(bytes, options);
696
+ }
697
+
698
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobPending {
699
+ return new JobPending().fromJson(jsonValue, options);
700
+ }
701
+
702
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobPending {
703
+ return new JobPending().fromJsonString(jsonString, options);
704
+ }
705
+
706
+ static equals(a: JobPending | PlainMessage<JobPending> | undefined, b: JobPending | PlainMessage<JobPending> | undefined): boolean {
707
+ return proto3.util.equals(JobPending, a, b);
708
+ }
709
+ }
710
+
711
+ /**
712
+ * @generated from message norsk.api.manager.JobUpdated
713
+ */
714
+ export class JobUpdated extends Message<JobUpdated> {
715
+ /**
716
+ * @generated from field: norsk.api.manager.Job job = 1;
717
+ */
718
+ job?: Job;
719
+
720
+ constructor(data?: PartialMessage<JobUpdated>) {
721
+ super();
722
+ proto3.util.initPartial(data, this);
723
+ }
724
+
725
+ static readonly runtime = proto3;
726
+ static readonly typeName = "norsk.api.manager.JobUpdated";
727
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
728
+ { no: 1, name: "job", kind: "message", T: Job },
729
+ ]);
730
+
731
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobUpdated {
732
+ return new JobUpdated().fromBinary(bytes, options);
733
+ }
734
+
735
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobUpdated {
736
+ return new JobUpdated().fromJson(jsonValue, options);
737
+ }
738
+
739
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobUpdated {
740
+ return new JobUpdated().fromJsonString(jsonString, options);
741
+ }
742
+
743
+ static equals(a: JobUpdated | PlainMessage<JobUpdated> | undefined, b: JobUpdated | PlainMessage<JobUpdated> | undefined): boolean {
744
+ return proto3.util.equals(JobUpdated, a, b);
745
+ }
746
+ }
747
+
748
+ /**
749
+ * @generated from message norsk.api.manager.JobDueToStart
750
+ */
751
+ export class JobDueToStart extends Message<JobDueToStart> {
752
+ /**
753
+ * @generated from field: norsk.api.manager.Job job = 1;
754
+ */
755
+ job?: Job;
756
+
757
+ constructor(data?: PartialMessage<JobDueToStart>) {
758
+ super();
759
+ proto3.util.initPartial(data, this);
760
+ }
761
+
762
+ static readonly runtime = proto3;
763
+ static readonly typeName = "norsk.api.manager.JobDueToStart";
764
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
765
+ { no: 1, name: "job", kind: "message", T: Job },
766
+ ]);
767
+
768
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDueToStart {
769
+ return new JobDueToStart().fromBinary(bytes, options);
770
+ }
771
+
772
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDueToStart {
773
+ return new JobDueToStart().fromJson(jsonValue, options);
774
+ }
775
+
776
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDueToStart {
777
+ return new JobDueToStart().fromJsonString(jsonString, options);
778
+ }
779
+
780
+ static equals(a: JobDueToStart | PlainMessage<JobDueToStart> | undefined, b: JobDueToStart | PlainMessage<JobDueToStart> | undefined): boolean {
781
+ return proto3.util.equals(JobDueToStart, a, b);
782
+ }
783
+ }
784
+
785
+ /**
786
+ * @generated from message norsk.api.manager.JobInstanceStarting
787
+ */
788
+ export class JobInstanceStarting extends Message<JobInstanceStarting> {
789
+ /**
790
+ * @generated from field: norsk.api.manager.RunningJob running_job = 1;
791
+ */
792
+ runningJob?: RunningJob;
793
+
794
+ constructor(data?: PartialMessage<JobInstanceStarting>) {
795
+ super();
796
+ proto3.util.initPartial(data, this);
797
+ }
798
+
799
+ static readonly runtime = proto3;
800
+ static readonly typeName = "norsk.api.manager.JobInstanceStarting";
801
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
802
+ { no: 1, name: "running_job", kind: "message", T: RunningJob },
803
+ ]);
804
+
805
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStarting {
806
+ return new JobInstanceStarting().fromBinary(bytes, options);
807
+ }
808
+
809
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStarting {
810
+ return new JobInstanceStarting().fromJson(jsonValue, options);
811
+ }
812
+
813
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStarting {
814
+ return new JobInstanceStarting().fromJsonString(jsonString, options);
815
+ }
816
+
817
+ static equals(a: JobInstanceStarting | PlainMessage<JobInstanceStarting> | undefined, b: JobInstanceStarting | PlainMessage<JobInstanceStarting> | undefined): boolean {
818
+ return proto3.util.equals(JobInstanceStarting, a, b);
819
+ }
820
+ }
821
+
822
+ /**
823
+ * @generated from message norsk.api.manager.JobInstanceStarted
824
+ */
825
+ export class JobInstanceStarted extends Message<JobInstanceStarted> {
826
+ /**
827
+ * @generated from field: norsk.api.manager.RunningJob running_job = 1;
828
+ */
829
+ runningJob?: RunningJob;
830
+
831
+ constructor(data?: PartialMessage<JobInstanceStarted>) {
832
+ super();
833
+ proto3.util.initPartial(data, this);
834
+ }
835
+
836
+ static readonly runtime = proto3;
837
+ static readonly typeName = "norsk.api.manager.JobInstanceStarted";
838
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
839
+ { no: 1, name: "running_job", kind: "message", T: RunningJob },
840
+ ]);
841
+
842
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStarted {
843
+ return new JobInstanceStarted().fromBinary(bytes, options);
844
+ }
845
+
846
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStarted {
847
+ return new JobInstanceStarted().fromJson(jsonValue, options);
848
+ }
849
+
850
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStarted {
851
+ return new JobInstanceStarted().fromJsonString(jsonString, options);
852
+ }
853
+
854
+ static equals(a: JobInstanceStarted | PlainMessage<JobInstanceStarted> | undefined, b: JobInstanceStarted | PlainMessage<JobInstanceStarted> | undefined): boolean {
855
+ return proto3.util.equals(JobInstanceStarted, a, b);
856
+ }
857
+ }
858
+
859
+ /**
860
+ * @generated from message norsk.api.manager.JobDueToStop
861
+ */
862
+ export class JobDueToStop extends Message<JobDueToStop> {
863
+ /**
864
+ * @generated from field: norsk.api.manager.Job job = 1;
865
+ */
866
+ job?: Job;
867
+
868
+ /**
869
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
870
+ */
871
+ instances: RunningJob[] = [];
872
+
873
+ constructor(data?: PartialMessage<JobDueToStop>) {
874
+ super();
875
+ proto3.util.initPartial(data, this);
876
+ }
877
+
878
+ static readonly runtime = proto3;
879
+ static readonly typeName = "norsk.api.manager.JobDueToStop";
880
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
881
+ { no: 1, name: "job", kind: "message", T: Job },
882
+ { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
883
+ ]);
884
+
885
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDueToStop {
886
+ return new JobDueToStop().fromBinary(bytes, options);
887
+ }
888
+
889
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDueToStop {
890
+ return new JobDueToStop().fromJson(jsonValue, options);
891
+ }
892
+
893
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDueToStop {
894
+ return new JobDueToStop().fromJsonString(jsonString, options);
895
+ }
896
+
897
+ static equals(a: JobDueToStop | PlainMessage<JobDueToStop> | undefined, b: JobDueToStop | PlainMessage<JobDueToStop> | undefined): boolean {
898
+ return proto3.util.equals(JobDueToStop, a, b);
899
+ }
900
+ }
901
+
902
+ /**
903
+ * @generated from message norsk.api.manager.JobInstanceStopping
904
+ */
905
+ export class JobInstanceStopping extends Message<JobInstanceStopping> {
906
+ /**
907
+ * @generated from field: norsk.api.manager.RunningJob running_job = 1;
908
+ */
909
+ runningJob?: RunningJob;
910
+
911
+ constructor(data?: PartialMessage<JobInstanceStopping>) {
912
+ super();
913
+ proto3.util.initPartial(data, this);
914
+ }
915
+
916
+ static readonly runtime = proto3;
917
+ static readonly typeName = "norsk.api.manager.JobInstanceStopping";
918
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
919
+ { no: 1, name: "running_job", kind: "message", T: RunningJob },
920
+ ]);
921
+
922
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStopping {
923
+ return new JobInstanceStopping().fromBinary(bytes, options);
924
+ }
925
+
926
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStopping {
927
+ return new JobInstanceStopping().fromJson(jsonValue, options);
928
+ }
929
+
930
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStopping {
931
+ return new JobInstanceStopping().fromJsonString(jsonString, options);
932
+ }
933
+
934
+ static equals(a: JobInstanceStopping | PlainMessage<JobInstanceStopping> | undefined, b: JobInstanceStopping | PlainMessage<JobInstanceStopping> | undefined): boolean {
935
+ return proto3.util.equals(JobInstanceStopping, a, b);
936
+ }
937
+ }
938
+
939
+ /**
940
+ * @generated from message norsk.api.manager.JobInstanceStopped
941
+ */
942
+ export class JobInstanceStopped extends Message<JobInstanceStopped> {
943
+ /**
944
+ * @generated from field: norsk.api.manager.RunningJob running_job = 1;
945
+ */
946
+ runningJob?: RunningJob;
947
+
948
+ constructor(data?: PartialMessage<JobInstanceStopped>) {
949
+ super();
950
+ proto3.util.initPartial(data, this);
951
+ }
952
+
953
+ static readonly runtime = proto3;
954
+ static readonly typeName = "norsk.api.manager.JobInstanceStopped";
955
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
956
+ { no: 1, name: "running_job", kind: "message", T: RunningJob },
957
+ ]);
958
+
959
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStopped {
960
+ return new JobInstanceStopped().fromBinary(bytes, options);
961
+ }
962
+
963
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStopped {
964
+ return new JobInstanceStopped().fromJson(jsonValue, options);
965
+ }
966
+
967
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStopped {
968
+ return new JobInstanceStopped().fromJsonString(jsonString, options);
969
+ }
970
+
971
+ static equals(a: JobInstanceStopped | PlainMessage<JobInstanceStopped> | undefined, b: JobInstanceStopped | PlainMessage<JobInstanceStopped> | undefined): boolean {
972
+ return proto3.util.equals(JobInstanceStopped, a, b);
973
+ }
974
+ }
975
+
976
+ /**
977
+ * @generated from message norsk.api.manager.JobInstanceFailed
978
+ */
979
+ export class JobInstanceFailed extends Message<JobInstanceFailed> {
980
+ /**
981
+ * @generated from field: norsk.api.manager.RunningJob running_job = 1;
982
+ */
983
+ runningJob?: RunningJob;
984
+
985
+ constructor(data?: PartialMessage<JobInstanceFailed>) {
986
+ super();
987
+ proto3.util.initPartial(data, this);
988
+ }
989
+
990
+ static readonly runtime = proto3;
991
+ static readonly typeName = "norsk.api.manager.JobInstanceFailed";
992
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
993
+ { no: 1, name: "running_job", kind: "message", T: RunningJob },
994
+ ]);
995
+
996
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceFailed {
997
+ return new JobInstanceFailed().fromBinary(bytes, options);
998
+ }
999
+
1000
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceFailed {
1001
+ return new JobInstanceFailed().fromJson(jsonValue, options);
1002
+ }
1003
+
1004
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceFailed {
1005
+ return new JobInstanceFailed().fromJsonString(jsonString, options);
1006
+ }
1007
+
1008
+ static equals(a: JobInstanceFailed | PlainMessage<JobInstanceFailed> | undefined, b: JobInstanceFailed | PlainMessage<JobInstanceFailed> | undefined): boolean {
1009
+ return proto3.util.equals(JobInstanceFailed, a, b);
1010
+ }
1011
+ }
1012
+
1013
+ /**
1014
+ * @generated from message norsk.api.manager.CurrentJob
1015
+ */
1016
+ export class CurrentJob extends Message<CurrentJob> {
1017
+ /**
1018
+ * @generated from field: norsk.api.manager.Job job = 1;
1019
+ */
1020
+ job?: Job;
1021
+
1022
+ /**
1023
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1024
+ */
1025
+ instances: RunningJob[] = [];
1026
+
1027
+ constructor(data?: PartialMessage<CurrentJob>) {
1028
+ super();
1029
+ proto3.util.initPartial(data, this);
1030
+ }
1031
+
1032
+ static readonly runtime = proto3;
1033
+ static readonly typeName = "norsk.api.manager.CurrentJob";
1034
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1035
+ { no: 1, name: "job", kind: "message", T: Job },
1036
+ { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1037
+ ]);
1038
+
1039
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurrentJob {
1040
+ return new CurrentJob().fromBinary(bytes, options);
1041
+ }
1042
+
1043
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurrentJob {
1044
+ return new CurrentJob().fromJson(jsonValue, options);
1045
+ }
1046
+
1047
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurrentJob {
1048
+ return new CurrentJob().fromJsonString(jsonString, options);
1049
+ }
1050
+
1051
+ static equals(a: CurrentJob | PlainMessage<CurrentJob> | undefined, b: CurrentJob | PlainMessage<CurrentJob> | undefined): boolean {
1052
+ return proto3.util.equals(CurrentJob, a, b);
1053
+ }
1054
+ }
1055
+
1056
+ /**
1057
+ * @generated from message norsk.api.manager.NodeStarting
1058
+ */
1059
+ export class NodeStarting extends Message<NodeStarting> {
1060
+ /**
1061
+ * @generated from field: norsk.api.manager.NodeId node_id = 1;
1062
+ */
1063
+ nodeId?: NodeId;
1064
+
1065
+ constructor(data?: PartialMessage<NodeStarting>) {
1066
+ super();
1067
+ proto3.util.initPartial(data, this);
1068
+ }
1069
+
1070
+ static readonly runtime = proto3;
1071
+ static readonly typeName = "norsk.api.manager.NodeStarting";
1072
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1073
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1074
+ ]);
1075
+
1076
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStarting {
1077
+ return new NodeStarting().fromBinary(bytes, options);
1078
+ }
1079
+
1080
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeStarting {
1081
+ return new NodeStarting().fromJson(jsonValue, options);
1082
+ }
1083
+
1084
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeStarting {
1085
+ return new NodeStarting().fromJsonString(jsonString, options);
1086
+ }
1087
+
1088
+ static equals(a: NodeStarting | PlainMessage<NodeStarting> | undefined, b: NodeStarting | PlainMessage<NodeStarting> | undefined): boolean {
1089
+ return proto3.util.equals(NodeStarting, a, b);
1090
+ }
1091
+ }
1092
+
1093
+ /**
1094
+ * @generated from message norsk.api.manager.NodeStarted
1095
+ */
1096
+ export class NodeStarted extends Message<NodeStarted> {
1097
+ /**
1098
+ * @generated from oneof norsk.api.manager.NodeStarted.node
1099
+ */
1100
+ node: {
1101
+ /**
1102
+ * @generated from field: norsk.api.manager.AwsRunningNode aws_node = 1;
1103
+ */
1104
+ value: AwsRunningNode;
1105
+ case: "awsNode";
1106
+ } | { case: undefined; value?: undefined } = { case: undefined };
1107
+
1108
+ constructor(data?: PartialMessage<NodeStarted>) {
1109
+ super();
1110
+ proto3.util.initPartial(data, this);
1111
+ }
1112
+
1113
+ static readonly runtime = proto3;
1114
+ static readonly typeName = "norsk.api.manager.NodeStarted";
1115
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1116
+ { no: 1, name: "aws_node", kind: "message", T: AwsRunningNode, oneof: "node" },
1117
+ ]);
1118
+
1119
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStarted {
1120
+ return new NodeStarted().fromBinary(bytes, options);
1121
+ }
1122
+
1123
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeStarted {
1124
+ return new NodeStarted().fromJson(jsonValue, options);
1125
+ }
1126
+
1127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeStarted {
1128
+ return new NodeStarted().fromJsonString(jsonString, options);
1129
+ }
1130
+
1131
+ static equals(a: NodeStarted | PlainMessage<NodeStarted> | undefined, b: NodeStarted | PlainMessage<NodeStarted> | undefined): boolean {
1132
+ return proto3.util.equals(NodeStarted, a, b);
1133
+ }
1134
+ }
1135
+
1136
+ /**
1137
+ * @generated from message norsk.api.manager.NodeStopping
1138
+ */
1139
+ export class NodeStopping extends Message<NodeStopping> {
1140
+ /**
1141
+ * @generated from field: norsk.api.manager.NodeId node_id = 1;
1142
+ */
1143
+ nodeId?: NodeId;
1144
+
1145
+ /**
1146
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1147
+ */
1148
+ instances: RunningJob[] = [];
1149
+
1150
+ constructor(data?: PartialMessage<NodeStopping>) {
1151
+ super();
1152
+ proto3.util.initPartial(data, this);
1153
+ }
1154
+
1155
+ static readonly runtime = proto3;
1156
+ static readonly typeName = "norsk.api.manager.NodeStopping";
1157
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1158
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1159
+ { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1160
+ ]);
1161
+
1162
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStopping {
1163
+ return new NodeStopping().fromBinary(bytes, options);
1164
+ }
1165
+
1166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeStopping {
1167
+ return new NodeStopping().fromJson(jsonValue, options);
1168
+ }
1169
+
1170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeStopping {
1171
+ return new NodeStopping().fromJsonString(jsonString, options);
1172
+ }
1173
+
1174
+ static equals(a: NodeStopping | PlainMessage<NodeStopping> | undefined, b: NodeStopping | PlainMessage<NodeStopping> | undefined): boolean {
1175
+ return proto3.util.equals(NodeStopping, a, b);
1176
+ }
1177
+ }
1178
+
1179
+ /**
1180
+ * @generated from message norsk.api.manager.NodeStopped
1181
+ */
1182
+ export class NodeStopped extends Message<NodeStopped> {
1183
+ /**
1184
+ * @generated from field: norsk.api.manager.NodeId node_id = 1;
1185
+ */
1186
+ nodeId?: NodeId;
1187
+
1188
+ constructor(data?: PartialMessage<NodeStopped>) {
1189
+ super();
1190
+ proto3.util.initPartial(data, this);
1191
+ }
1192
+
1193
+ static readonly runtime = proto3;
1194
+ static readonly typeName = "norsk.api.manager.NodeStopped";
1195
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1196
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1197
+ ]);
1198
+
1199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStopped {
1200
+ return new NodeStopped().fromBinary(bytes, options);
1201
+ }
1202
+
1203
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeStopped {
1204
+ return new NodeStopped().fromJson(jsonValue, options);
1205
+ }
1206
+
1207
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeStopped {
1208
+ return new NodeStopped().fromJsonString(jsonString, options);
1209
+ }
1210
+
1211
+ static equals(a: NodeStopped | PlainMessage<NodeStopped> | undefined, b: NodeStopped | PlainMessage<NodeStopped> | undefined): boolean {
1212
+ return proto3.util.equals(NodeStopped, a, b);
1213
+ }
1214
+ }
1215
+
1216
+ /**
1217
+ * @generated from message norsk.api.manager.NodeFailed
1218
+ */
1219
+ export class NodeFailed extends Message<NodeFailed> {
1220
+ /**
1221
+ * @generated from field: norsk.api.manager.NodeId node_id = 1;
1222
+ */
1223
+ nodeId?: NodeId;
1224
+
1225
+ /**
1226
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1227
+ */
1228
+ instances: RunningJob[] = [];
1229
+
1230
+ constructor(data?: PartialMessage<NodeFailed>) {
1231
+ super();
1232
+ proto3.util.initPartial(data, this);
1233
+ }
1234
+
1235
+ static readonly runtime = proto3;
1236
+ static readonly typeName = "norsk.api.manager.NodeFailed";
1237
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1238
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1239
+ { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1240
+ ]);
1241
+
1242
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeFailed {
1243
+ return new NodeFailed().fromBinary(bytes, options);
1244
+ }
1245
+
1246
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeFailed {
1247
+ return new NodeFailed().fromJson(jsonValue, options);
1248
+ }
1249
+
1250
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeFailed {
1251
+ return new NodeFailed().fromJsonString(jsonString, options);
1252
+ }
1253
+
1254
+ static equals(a: NodeFailed | PlainMessage<NodeFailed> | undefined, b: NodeFailed | PlainMessage<NodeFailed> | undefined): boolean {
1255
+ return proto3.util.equals(NodeFailed, a, b);
1256
+ }
1257
+ }
1258
+
1259
+ /**
1260
+ * @generated from message norsk.api.manager.NodeRunning
1261
+ */
1262
+ export class NodeRunning extends Message<NodeRunning> {
1263
+ /**
1264
+ * @generated from oneof norsk.api.manager.NodeRunning.node
1265
+ */
1266
+ node: {
1267
+ /**
1268
+ * @generated from field: norsk.api.manager.AwsRunningNode aws_node = 1;
1269
+ */
1270
+ value: AwsRunningNode;
1271
+ case: "awsNode";
1272
+ } | {
1273
+ /**
1274
+ * @generated from field: norsk.api.manager.PhysicalNode physical_node = 2;
1275
+ */
1276
+ value: PhysicalNode;
1277
+ case: "physicalNode";
1278
+ } | { case: undefined; value?: undefined } = { case: undefined };
1279
+
1280
+ /**
1281
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 3;
1282
+ */
1283
+ instances: RunningJob[] = [];
1284
+
1285
+ constructor(data?: PartialMessage<NodeRunning>) {
1286
+ super();
1287
+ proto3.util.initPartial(data, this);
1288
+ }
1289
+
1290
+ static readonly runtime = proto3;
1291
+ static readonly typeName = "norsk.api.manager.NodeRunning";
1292
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1293
+ { no: 1, name: "aws_node", kind: "message", T: AwsRunningNode, oneof: "node" },
1294
+ { no: 2, name: "physical_node", kind: "message", T: PhysicalNode, oneof: "node" },
1295
+ { no: 3, name: "instances", kind: "message", T: RunningJob, repeated: true },
1296
+ ]);
1297
+
1298
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeRunning {
1299
+ return new NodeRunning().fromBinary(bytes, options);
1300
+ }
1301
+
1302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeRunning {
1303
+ return new NodeRunning().fromJson(jsonValue, options);
1304
+ }
1305
+
1306
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeRunning {
1307
+ return new NodeRunning().fromJsonString(jsonString, options);
1308
+ }
1309
+
1310
+ static equals(a: NodeRunning | PlainMessage<NodeRunning> | undefined, b: NodeRunning | PlainMessage<NodeRunning> | undefined): boolean {
1311
+ return proto3.util.equals(NodeRunning, a, b);
1312
+ }
1313
+ }
1314
+
1315
+ /**
1316
+ * @generated from message norsk.api.manager.PhysicalNodeConnected
1317
+ */
1318
+ export class PhysicalNodeConnected extends Message<PhysicalNodeConnected> {
1319
+ /**
1320
+ * @generated from field: norsk.api.manager.PhysicalNode node = 1;
1321
+ */
1322
+ node?: PhysicalNode;
1323
+
1324
+ /**
1325
+ * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1326
+ */
1327
+ instances: RunningJob[] = [];
1328
+
1329
+ constructor(data?: PartialMessage<PhysicalNodeConnected>) {
1330
+ super();
1331
+ proto3.util.initPartial(data, this);
1332
+ }
1333
+
1334
+ static readonly runtime = proto3;
1335
+ static readonly typeName = "norsk.api.manager.PhysicalNodeConnected";
1336
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1337
+ { no: 1, name: "node", kind: "message", T: PhysicalNode },
1338
+ { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1339
+ ]);
1340
+
1341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhysicalNodeConnected {
1342
+ return new PhysicalNodeConnected().fromBinary(bytes, options);
1343
+ }
1344
+
1345
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhysicalNodeConnected {
1346
+ return new PhysicalNodeConnected().fromJson(jsonValue, options);
1347
+ }
1348
+
1349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhysicalNodeConnected {
1350
+ return new PhysicalNodeConnected().fromJsonString(jsonString, options);
1351
+ }
1352
+
1353
+ static equals(a: PhysicalNodeConnected | PlainMessage<PhysicalNodeConnected> | undefined, b: PhysicalNodeConnected | PlainMessage<PhysicalNodeConnected> | undefined): boolean {
1354
+ return proto3.util.equals(PhysicalNodeConnected, a, b);
1355
+ }
1356
+ }
1357
+
1358
+ /**
1359
+ * @generated from message norsk.api.manager.JobId
1360
+ */
1361
+ export class JobId extends Message<JobId> {
1362
+ /**
1363
+ * @generated from field: string job_id = 1;
1364
+ */
1365
+ jobId = "";
1366
+
1367
+ constructor(data?: PartialMessage<JobId>) {
1368
+ super();
1369
+ proto3.util.initPartial(data, this);
1370
+ }
1371
+
1372
+ static readonly runtime = proto3;
1373
+ static readonly typeName = "norsk.api.manager.JobId";
1374
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1375
+ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1376
+ ]);
1377
+
1378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobId {
1379
+ return new JobId().fromBinary(bytes, options);
1380
+ }
1381
+
1382
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobId {
1383
+ return new JobId().fromJson(jsonValue, options);
1384
+ }
1385
+
1386
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobId {
1387
+ return new JobId().fromJsonString(jsonString, options);
1388
+ }
1389
+
1390
+ static equals(a: JobId | PlainMessage<JobId> | undefined, b: JobId | PlainMessage<JobId> | undefined): boolean {
1391
+ return proto3.util.equals(JobId, a, b);
1392
+ }
1393
+ }
1394
+
1395
+ /**
1396
+ * @generated from message norsk.api.manager.NodeId
1397
+ */
1398
+ export class NodeId extends Message<NodeId> {
1399
+ /**
1400
+ * @generated from field: string node_id = 1;
1401
+ */
1402
+ nodeId = "";
1403
+
1404
+ constructor(data?: PartialMessage<NodeId>) {
1405
+ super();
1406
+ proto3.util.initPartial(data, this);
1407
+ }
1408
+
1409
+ static readonly runtime = proto3;
1410
+ static readonly typeName = "norsk.api.manager.NodeId";
1411
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1412
+ { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1413
+ ]);
1414
+
1415
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeId {
1416
+ return new NodeId().fromBinary(bytes, options);
1417
+ }
1418
+
1419
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeId {
1420
+ return new NodeId().fromJson(jsonValue, options);
1421
+ }
1422
+
1423
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeId {
1424
+ return new NodeId().fromJsonString(jsonString, options);
1425
+ }
1426
+
1427
+ static equals(a: NodeId | PlainMessage<NodeId> | undefined, b: NodeId | PlainMessage<NodeId> | undefined): boolean {
1428
+ return proto3.util.equals(NodeId, a, b);
1429
+ }
1430
+ }
1431
+
1432
+ /**
1433
+ * @generated from message norsk.api.manager.CreateAwsNodeRequest
1434
+ */
1435
+ export class CreateAwsNodeRequest extends Message<CreateAwsNodeRequest> {
1436
+ /**
1437
+ * @generated from field: map<string, string> tags = 1;
1438
+ */
1439
+ tags: { [key: string]: string } = {};
1440
+
1441
+ /**
1442
+ * @generated from field: string instance_type = 2;
1443
+ */
1444
+ instanceType = "";
1445
+
1446
+ /**
1447
+ * @generated from field: string region = 3;
1448
+ */
1449
+ region = "";
1450
+
1451
+ /**
1452
+ * @generated from field: string az = 4;
1453
+ */
1454
+ az = "";
1455
+
1456
+ /**
1457
+ * @generated from field: string norsk_bootstrap_version = 5;
1458
+ */
1459
+ norskBootstrapVersion = "";
1460
+
1461
+ constructor(data?: PartialMessage<CreateAwsNodeRequest>) {
1462
+ super();
1463
+ proto3.util.initPartial(data, this);
1464
+ }
1465
+
1466
+ static readonly runtime = proto3;
1467
+ static readonly typeName = "norsk.api.manager.CreateAwsNodeRequest";
1468
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1469
+ { no: 1, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1470
+ { no: 2, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1471
+ { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1472
+ { no: 4, name: "az", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1473
+ { no: 5, name: "norsk_bootstrap_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1474
+ ]);
1475
+
1476
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAwsNodeRequest {
1477
+ return new CreateAwsNodeRequest().fromBinary(bytes, options);
1478
+ }
1479
+
1480
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAwsNodeRequest {
1481
+ return new CreateAwsNodeRequest().fromJson(jsonValue, options);
1482
+ }
1483
+
1484
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAwsNodeRequest {
1485
+ return new CreateAwsNodeRequest().fromJsonString(jsonString, options);
1486
+ }
1487
+
1488
+ static equals(a: CreateAwsNodeRequest | PlainMessage<CreateAwsNodeRequest> | undefined, b: CreateAwsNodeRequest | PlainMessage<CreateAwsNodeRequest> | undefined): boolean {
1489
+ return proto3.util.equals(CreateAwsNodeRequest, a, b);
1490
+ }
1491
+ }
1492
+
1493
+ /**
1494
+ * @generated from message norsk.api.manager.UpdatePhysicalNodeRequest
1495
+ */
1496
+ export class UpdatePhysicalNodeRequest extends Message<UpdatePhysicalNodeRequest> {
1497
+ /**
1498
+ * @generated from field: string id = 1;
1499
+ */
1500
+ id = "";
1501
+
1502
+ /**
1503
+ * @generated from field: string norsk_bootstrap_version = 2;
1504
+ */
1505
+ norskBootstrapVersion = "";
1506
+
1507
+ constructor(data?: PartialMessage<UpdatePhysicalNodeRequest>) {
1508
+ super();
1509
+ proto3.util.initPartial(data, this);
1510
+ }
1511
+
1512
+ static readonly runtime = proto3;
1513
+ static readonly typeName = "norsk.api.manager.UpdatePhysicalNodeRequest";
1514
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1515
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1516
+ { no: 2, name: "norsk_bootstrap_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1517
+ ]);
1518
+
1519
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePhysicalNodeRequest {
1520
+ return new UpdatePhysicalNodeRequest().fromBinary(bytes, options);
1521
+ }
1522
+
1523
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePhysicalNodeRequest {
1524
+ return new UpdatePhysicalNodeRequest().fromJson(jsonValue, options);
1525
+ }
1526
+
1527
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePhysicalNodeRequest {
1528
+ return new UpdatePhysicalNodeRequest().fromJsonString(jsonString, options);
1529
+ }
1530
+
1531
+ static equals(a: UpdatePhysicalNodeRequest | PlainMessage<UpdatePhysicalNodeRequest> | undefined, b: UpdatePhysicalNodeRequest | PlainMessage<UpdatePhysicalNodeRequest> | undefined): boolean {
1532
+ return proto3.util.equals(UpdatePhysicalNodeRequest, a, b);
1533
+ }
1534
+ }
1535
+
1536
+ /**
1537
+ * @generated from message norsk.api.manager.StartJobRequest
1538
+ */
1539
+ export class StartJobRequest extends Message<StartJobRequest> {
1540
+ /**
1541
+ * @generated from field: norsk.api.manager.JobId job_id = 1;
1542
+ */
1543
+ jobId?: JobId;
1544
+
1545
+ /**
1546
+ * @generated from field: string role = 2;
1547
+ */
1548
+ role = "";
1549
+
1550
+ /**
1551
+ * @generated from field: norsk.api.manager.NodeId node_id = 3;
1552
+ */
1553
+ nodeId?: NodeId;
1554
+
1555
+ constructor(data?: PartialMessage<StartJobRequest>) {
1556
+ super();
1557
+ proto3.util.initPartial(data, this);
1558
+ }
1559
+
1560
+ static readonly runtime = proto3;
1561
+ static readonly typeName = "norsk.api.manager.StartJobRequest";
1562
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1563
+ { no: 1, name: "job_id", kind: "message", T: JobId },
1564
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1565
+ { no: 3, name: "node_id", kind: "message", T: NodeId },
1566
+ ]);
1567
+
1568
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartJobRequest {
1569
+ return new StartJobRequest().fromBinary(bytes, options);
1570
+ }
1571
+
1572
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartJobRequest {
1573
+ return new StartJobRequest().fromJson(jsonValue, options);
1574
+ }
1575
+
1576
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartJobRequest {
1577
+ return new StartJobRequest().fromJsonString(jsonString, options);
1578
+ }
1579
+
1580
+ static equals(a: StartJobRequest | PlainMessage<StartJobRequest> | undefined, b: StartJobRequest | PlainMessage<StartJobRequest> | undefined): boolean {
1581
+ return proto3.util.equals(StartJobRequest, a, b);
1582
+ }
1583
+ }
1584
+
1585
+ /**
1586
+ * @generated from message norsk.api.manager.StopJobRequest
1587
+ */
1588
+ export class StopJobRequest extends Message<StopJobRequest> {
1589
+ /**
1590
+ * @generated from field: norsk.api.manager.JobId job_id = 1;
1591
+ */
1592
+ jobId?: JobId;
1593
+
1594
+ /**
1595
+ * @generated from field: string role = 2;
1596
+ */
1597
+ role = "";
1598
+
1599
+ /**
1600
+ * @generated from field: norsk.api.manager.NodeId node_id = 3;
1601
+ */
1602
+ nodeId?: NodeId;
1603
+
1604
+ constructor(data?: PartialMessage<StopJobRequest>) {
1605
+ super();
1606
+ proto3.util.initPartial(data, this);
1607
+ }
1608
+
1609
+ static readonly runtime = proto3;
1610
+ static readonly typeName = "norsk.api.manager.StopJobRequest";
1611
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1612
+ { no: 1, name: "job_id", kind: "message", T: JobId },
1613
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1614
+ { no: 3, name: "node_id", kind: "message", T: NodeId },
1615
+ ]);
1616
+
1617
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StopJobRequest {
1618
+ return new StopJobRequest().fromBinary(bytes, options);
1619
+ }
1620
+
1621
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StopJobRequest {
1622
+ return new StopJobRequest().fromJson(jsonValue, options);
1623
+ }
1624
+
1625
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StopJobRequest {
1626
+ return new StopJobRequest().fromJsonString(jsonString, options);
1627
+ }
1628
+
1629
+ static equals(a: StopJobRequest | PlainMessage<StopJobRequest> | undefined, b: StopJobRequest | PlainMessage<StopJobRequest> | undefined): boolean {
1630
+ return proto3.util.equals(StopJobRequest, a, b);
1631
+ }
1632
+ }
1633
+
1634
+ /**
1635
+ * @generated from message norsk.api.manager.TagFilter
1636
+ */
1637
+ export class TagFilter extends Message<TagFilter> {
1638
+ /**
1639
+ * @generated from field: string tagName = 1;
1640
+ */
1641
+ tagName = "";
1642
+
1643
+ /**
1644
+ * @generated from oneof norsk.api.manager.TagFilter.comparison
1645
+ */
1646
+ comparison: {
1647
+ /**
1648
+ * @generated from field: string eq = 2;
1649
+ */
1650
+ value: string;
1651
+ case: "eq";
1652
+ } | {
1653
+ /**
1654
+ * @generated from field: string neq = 3;
1655
+ */
1656
+ value: string;
1657
+ case: "neq";
1658
+ } | {
1659
+ /**
1660
+ * @generated from field: string re = 4;
1661
+ */
1662
+ value: string;
1663
+ case: "re";
1664
+ } | {
1665
+ /**
1666
+ * @generated from field: bool exists = 5;
1667
+ */
1668
+ value: boolean;
1669
+ case: "exists";
1670
+ } | { case: undefined; value?: undefined } = { case: undefined };
1671
+
1672
+ constructor(data?: PartialMessage<TagFilter>) {
1673
+ super();
1674
+ proto3.util.initPartial(data, this);
1675
+ }
1676
+
1677
+ static readonly runtime = proto3;
1678
+ static readonly typeName = "norsk.api.manager.TagFilter";
1679
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1680
+ { no: 1, name: "tagName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1681
+ { no: 2, name: "eq", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1682
+ { no: 3, name: "neq", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1683
+ { no: 4, name: "re", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1684
+ { no: 5, name: "exists", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "comparison" },
1685
+ ]);
1686
+
1687
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TagFilter {
1688
+ return new TagFilter().fromBinary(bytes, options);
1689
+ }
1690
+
1691
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TagFilter {
1692
+ return new TagFilter().fromJson(jsonValue, options);
1693
+ }
1694
+
1695
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TagFilter {
1696
+ return new TagFilter().fromJsonString(jsonString, options);
1697
+ }
1698
+
1699
+ static equals(a: TagFilter | PlainMessage<TagFilter> | undefined, b: TagFilter | PlainMessage<TagFilter> | undefined): boolean {
1700
+ return proto3.util.equals(TagFilter, a, b);
1701
+ }
1702
+ }
1703
+
1704
+ /**
1705
+ * @generated from message norsk.api.manager.IdFilter
1706
+ */
1707
+ export class IdFilter extends Message<IdFilter> {
1708
+ /**
1709
+ * @generated from oneof norsk.api.manager.IdFilter.comparison
1710
+ */
1711
+ comparison: {
1712
+ /**
1713
+ * @generated from field: string eq = 1;
1714
+ */
1715
+ value: string;
1716
+ case: "eq";
1717
+ } | {
1718
+ /**
1719
+ * @generated from field: string neq = 2;
1720
+ */
1721
+ value: string;
1722
+ case: "neq";
1723
+ } | {
1724
+ /**
1725
+ * @generated from field: string re = 3;
1726
+ */
1727
+ value: string;
1728
+ case: "re";
1729
+ } | { case: undefined; value?: undefined } = { case: undefined };
1730
+
1731
+ constructor(data?: PartialMessage<IdFilter>) {
1732
+ super();
1733
+ proto3.util.initPartial(data, this);
1734
+ }
1735
+
1736
+ static readonly runtime = proto3;
1737
+ static readonly typeName = "norsk.api.manager.IdFilter";
1738
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1739
+ { no: 1, name: "eq", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1740
+ { no: 2, name: "neq", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1741
+ { no: 3, name: "re", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "comparison" },
1742
+ ]);
1743
+
1744
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IdFilter {
1745
+ return new IdFilter().fromBinary(bytes, options);
1746
+ }
1747
+
1748
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IdFilter {
1749
+ return new IdFilter().fromJson(jsonValue, options);
1750
+ }
1751
+
1752
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IdFilter {
1753
+ return new IdFilter().fromJsonString(jsonString, options);
1754
+ }
1755
+
1756
+ static equals(a: IdFilter | PlainMessage<IdFilter> | undefined, b: IdFilter | PlainMessage<IdFilter> | undefined): boolean {
1757
+ return proto3.util.equals(IdFilter, a, b);
1758
+ }
1759
+ }
1760
+
1761
+ /**
1762
+ * @generated from message norsk.api.manager.DateFilter
1763
+ */
1764
+ export class DateFilter extends Message<DateFilter> {
1765
+ /**
1766
+ * @generated from oneof norsk.api.manager.DateFilter.comparison
1767
+ */
1768
+ comparison: {
1769
+ /**
1770
+ * @generated from field: google.protobuf.Timestamp eq = 1;
1771
+ */
1772
+ value: Timestamp;
1773
+ case: "eq";
1774
+ } | {
1775
+ /**
1776
+ * @generated from field: google.protobuf.Timestamp lt = 2;
1777
+ */
1778
+ value: Timestamp;
1779
+ case: "lt";
1780
+ } | {
1781
+ /**
1782
+ * @generated from field: google.protobuf.Timestamp lte = 3;
1783
+ */
1784
+ value: Timestamp;
1785
+ case: "lte";
1786
+ } | {
1787
+ /**
1788
+ * @generated from field: google.protobuf.Timestamp gt = 4;
1789
+ */
1790
+ value: Timestamp;
1791
+ case: "gt";
1792
+ } | {
1793
+ /**
1794
+ * @generated from field: google.protobuf.Timestamp gte = 5;
1795
+ */
1796
+ value: Timestamp;
1797
+ case: "gte";
1798
+ } | {
1799
+ /**
1800
+ * @generated from field: norsk.api.manager.DateFilter.Within within = 6;
1801
+ */
1802
+ value: DateFilter_Within;
1803
+ case: "within";
1804
+ } | { case: undefined; value?: undefined } = { case: undefined };
1805
+
1806
+ constructor(data?: PartialMessage<DateFilter>) {
1807
+ super();
1808
+ proto3.util.initPartial(data, this);
1809
+ }
1810
+
1811
+ static readonly runtime = proto3;
1812
+ static readonly typeName = "norsk.api.manager.DateFilter";
1813
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1814
+ { no: 1, name: "eq", kind: "message", T: Timestamp, oneof: "comparison" },
1815
+ { no: 2, name: "lt", kind: "message", T: Timestamp, oneof: "comparison" },
1816
+ { no: 3, name: "lte", kind: "message", T: Timestamp, oneof: "comparison" },
1817
+ { no: 4, name: "gt", kind: "message", T: Timestamp, oneof: "comparison" },
1818
+ { no: 5, name: "gte", kind: "message", T: Timestamp, oneof: "comparison" },
1819
+ { no: 6, name: "within", kind: "message", T: DateFilter_Within, oneof: "comparison" },
1820
+ ]);
1821
+
1822
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DateFilter {
1823
+ return new DateFilter().fromBinary(bytes, options);
1824
+ }
1825
+
1826
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DateFilter {
1827
+ return new DateFilter().fromJson(jsonValue, options);
1828
+ }
1829
+
1830
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DateFilter {
1831
+ return new DateFilter().fromJsonString(jsonString, options);
1832
+ }
1833
+
1834
+ static equals(a: DateFilter | PlainMessage<DateFilter> | undefined, b: DateFilter | PlainMessage<DateFilter> | undefined): boolean {
1835
+ return proto3.util.equals(DateFilter, a, b);
1836
+ }
1837
+ }
1838
+
1839
+ /**
1840
+ * @generated from message norsk.api.manager.DateFilter.Within
1841
+ */
1842
+ export class DateFilter_Within extends Message<DateFilter_Within> {
1843
+ /**
1844
+ * @generated from field: google.protobuf.Timestamp start_date = 6;
1845
+ */
1846
+ startDate?: Timestamp;
1847
+
1848
+ /**
1849
+ * @generated from field: google.protobuf.Timestamp end_date = 7;
1850
+ */
1851
+ endDate?: Timestamp;
1852
+
1853
+ constructor(data?: PartialMessage<DateFilter_Within>) {
1854
+ super();
1855
+ proto3.util.initPartial(data, this);
1856
+ }
1857
+
1858
+ static readonly runtime = proto3;
1859
+ static readonly typeName = "norsk.api.manager.DateFilter.Within";
1860
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1861
+ { no: 6, name: "start_date", kind: "message", T: Timestamp },
1862
+ { no: 7, name: "end_date", kind: "message", T: Timestamp },
1863
+ ]);
1864
+
1865
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DateFilter_Within {
1866
+ return new DateFilter_Within().fromBinary(bytes, options);
1867
+ }
1868
+
1869
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DateFilter_Within {
1870
+ return new DateFilter_Within().fromJson(jsonValue, options);
1871
+ }
1872
+
1873
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DateFilter_Within {
1874
+ return new DateFilter_Within().fromJsonString(jsonString, options);
1875
+ }
1876
+
1877
+ static equals(a: DateFilter_Within | PlainMessage<DateFilter_Within> | undefined, b: DateFilter_Within | PlainMessage<DateFilter_Within> | undefined): boolean {
1878
+ return proto3.util.equals(DateFilter_Within, a, b);
1879
+ }
1880
+ }
1881
+
1882
+ /**
1883
+ * @generated from message norsk.api.manager.JobFilter
1884
+ */
1885
+ export class JobFilter extends Message<JobFilter> {
1886
+ /**
1887
+ * @generated from oneof norsk.api.manager.JobFilter.job_filter
1888
+ */
1889
+ jobFilter: {
1890
+ /**
1891
+ * @generated from field: norsk.api.manager.TagFilter tag_filter = 1;
1892
+ */
1893
+ value: TagFilter;
1894
+ case: "tagFilter";
1895
+ } | {
1896
+ /**
1897
+ * @generated from field: norsk.api.manager.IdFilter id_filter = 2;
1898
+ */
1899
+ value: IdFilter;
1900
+ case: "idFilter";
1901
+ } | {
1902
+ /**
1903
+ * @generated from field: norsk.api.manager.DateFilter date_filter = 3;
1904
+ */
1905
+ value: DateFilter;
1906
+ case: "dateFilter";
1907
+ } | { case: undefined; value?: undefined } = { case: undefined };
1908
+
1909
+ constructor(data?: PartialMessage<JobFilter>) {
1910
+ super();
1911
+ proto3.util.initPartial(data, this);
1912
+ }
1913
+
1914
+ static readonly runtime = proto3;
1915
+ static readonly typeName = "norsk.api.manager.JobFilter";
1916
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1917
+ { no: 1, name: "tag_filter", kind: "message", T: TagFilter, oneof: "job_filter" },
1918
+ { no: 2, name: "id_filter", kind: "message", T: IdFilter, oneof: "job_filter" },
1919
+ { no: 3, name: "date_filter", kind: "message", T: DateFilter, oneof: "job_filter" },
1920
+ ]);
1921
+
1922
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobFilter {
1923
+ return new JobFilter().fromBinary(bytes, options);
1924
+ }
1925
+
1926
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobFilter {
1927
+ return new JobFilter().fromJson(jsonValue, options);
1928
+ }
1929
+
1930
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobFilter {
1931
+ return new JobFilter().fromJsonString(jsonString, options);
1932
+ }
1933
+
1934
+ static equals(a: JobFilter | PlainMessage<JobFilter> | undefined, b: JobFilter | PlainMessage<JobFilter> | undefined): boolean {
1935
+ return proto3.util.equals(JobFilter, a, b);
1936
+ }
1937
+ }
1938
+
1939
+ /**
1940
+ * @generated from message norsk.api.manager.ManagerActivityStreamRequest
1941
+ */
1942
+ export class ManagerActivityStreamRequest extends Message<ManagerActivityStreamRequest> {
1943
+ /**
1944
+ * @generated from field: int32 pending_window_s = 1;
1945
+ */
1946
+ pendingWindowS = 0;
1947
+
1948
+ /**
1949
+ * @generated from field: repeated norsk.api.manager.JobFilter job_filter = 2;
1950
+ */
1951
+ jobFilter: JobFilter[] = [];
1952
+
1953
+ constructor(data?: PartialMessage<ManagerActivityStreamRequest>) {
1954
+ super();
1955
+ proto3.util.initPartial(data, this);
1956
+ }
1957
+
1958
+ static readonly runtime = proto3;
1959
+ static readonly typeName = "norsk.api.manager.ManagerActivityStreamRequest";
1960
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1961
+ { no: 1, name: "pending_window_s", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1962
+ { no: 2, name: "job_filter", kind: "message", T: JobFilter, repeated: true },
1963
+ ]);
1964
+
1965
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ManagerActivityStreamRequest {
1966
+ return new ManagerActivityStreamRequest().fromBinary(bytes, options);
1967
+ }
1968
+
1969
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ManagerActivityStreamRequest {
1970
+ return new ManagerActivityStreamRequest().fromJson(jsonValue, options);
1971
+ }
1972
+
1973
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ManagerActivityStreamRequest {
1974
+ return new ManagerActivityStreamRequest().fromJsonString(jsonString, options);
1975
+ }
1976
+
1977
+ static equals(a: ManagerActivityStreamRequest | PlainMessage<ManagerActivityStreamRequest> | undefined, b: ManagerActivityStreamRequest | PlainMessage<ManagerActivityStreamRequest> | undefined): boolean {
1978
+ return proto3.util.equals(ManagerActivityStreamRequest, a, b);
1979
+ }
1980
+ }
1981
+
1982
+ /**
1983
+ * @generated from message norsk.api.manager.InitialDataComplete
1984
+ */
1985
+ export class InitialDataComplete extends Message<InitialDataComplete> {
1986
+ constructor(data?: PartialMessage<InitialDataComplete>) {
1987
+ super();
1988
+ proto3.util.initPartial(data, this);
1989
+ }
1990
+
1991
+ static readonly runtime = proto3;
1992
+ static readonly typeName = "norsk.api.manager.InitialDataComplete";
1993
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1994
+ ]);
1995
+
1996
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitialDataComplete {
1997
+ return new InitialDataComplete().fromBinary(bytes, options);
1998
+ }
1999
+
2000
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitialDataComplete {
2001
+ return new InitialDataComplete().fromJson(jsonValue, options);
2002
+ }
2003
+
2004
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitialDataComplete {
2005
+ return new InitialDataComplete().fromJsonString(jsonString, options);
2006
+ }
2007
+
2008
+ static equals(a: InitialDataComplete | PlainMessage<InitialDataComplete> | undefined, b: InitialDataComplete | PlainMessage<InitialDataComplete> | undefined): boolean {
2009
+ return proto3.util.equals(InitialDataComplete, a, b);
2010
+ }
2011
+ }
2012
+
2013
+ /**
2014
+ * @generated from message norsk.api.manager.ManagerActivityStreamEvent
2015
+ */
2016
+ export class ManagerActivityStreamEvent extends Message<ManagerActivityStreamEvent> {
2017
+ /**
2018
+ * @generated from oneof norsk.api.manager.ManagerActivityStreamEvent.event
2019
+ */
2020
+ event: {
2021
+ /**
2022
+ * @generated from field: norsk.api.manager.InitialDataComplete initial_data_complete = 1;
2023
+ */
2024
+ value: InitialDataComplete;
2025
+ case: "initialDataComplete";
2026
+ } | {
2027
+ /**
2028
+ * @generated from field: norsk.api.manager.JobUpdated job_updated = 2;
2029
+ */
2030
+ value: JobUpdated;
2031
+ case: "jobUpdated";
2032
+ } | {
2033
+ /**
2034
+ * @generated from field: norsk.api.manager.JobPending job_pending = 3;
2035
+ */
2036
+ value: JobPending;
2037
+ case: "jobPending";
2038
+ } | {
2039
+ /**
2040
+ * @generated from field: norsk.api.manager.JobDueToStart job_due_to_start = 4;
2041
+ */
2042
+ value: JobDueToStart;
2043
+ case: "jobDueToStart";
2044
+ } | {
2045
+ /**
2046
+ * @generated from field: norsk.api.manager.JobInstanceStarting job_instance_starting = 5;
2047
+ */
2048
+ value: JobInstanceStarting;
2049
+ case: "jobInstanceStarting";
2050
+ } | {
2051
+ /**
2052
+ * @generated from field: norsk.api.manager.JobInstanceStarted job_instance_started = 6;
2053
+ */
2054
+ value: JobInstanceStarted;
2055
+ case: "jobInstanceStarted";
2056
+ } | {
2057
+ /**
2058
+ * @generated from field: norsk.api.manager.JobDueToStop job_due_to_stop = 7;
2059
+ */
2060
+ value: JobDueToStop;
2061
+ case: "jobDueToStop";
2062
+ } | {
2063
+ /**
2064
+ * @generated from field: norsk.api.manager.JobInstanceStopping job_instance_stopping = 8;
2065
+ */
2066
+ value: JobInstanceStopping;
2067
+ case: "jobInstanceStopping";
2068
+ } | {
2069
+ /**
2070
+ * @generated from field: norsk.api.manager.JobInstanceStopped job_instance_stopped = 9;
2071
+ */
2072
+ value: JobInstanceStopped;
2073
+ case: "jobInstanceStopped";
2074
+ } | {
2075
+ /**
2076
+ * @generated from field: norsk.api.manager.JobInstanceFailed job_instance_failed = 10;
2077
+ */
2078
+ value: JobInstanceFailed;
2079
+ case: "jobInstanceFailed";
2080
+ } | {
2081
+ /**
2082
+ * Only sent before initial_data_complete
2083
+ *
2084
+ * @generated from field: norsk.api.manager.NodeRunning node_running = 11;
2085
+ */
2086
+ value: NodeRunning;
2087
+ case: "nodeRunning";
2088
+ } | {
2089
+ /**
2090
+ * @generated from field: norsk.api.manager.NodeStarting node_starting = 12;
2091
+ */
2092
+ value: NodeStarting;
2093
+ case: "nodeStarting";
2094
+ } | {
2095
+ /**
2096
+ * @generated from field: norsk.api.manager.NodeStarted node_started = 13;
2097
+ */
2098
+ value: NodeStarted;
2099
+ case: "nodeStarted";
2100
+ } | {
2101
+ /**
2102
+ * @generated from field: norsk.api.manager.NodeStopping node_stopping = 14;
2103
+ */
2104
+ value: NodeStopping;
2105
+ case: "nodeStopping";
2106
+ } | {
2107
+ /**
2108
+ * @generated from field: norsk.api.manager.NodeStopped node_stopped = 15;
2109
+ */
2110
+ value: NodeStopped;
2111
+ case: "nodeStopped";
2112
+ } | {
2113
+ /**
2114
+ * @generated from field: norsk.api.manager.NodeFailed node_failed = 16;
2115
+ */
2116
+ value: NodeFailed;
2117
+ case: "nodeFailed";
2118
+ } | {
2119
+ /**
2120
+ * @generated from field: norsk.api.manager.PhysicalNodeConnected physical_node_connected = 17;
2121
+ */
2122
+ value: PhysicalNodeConnected;
2123
+ case: "physicalNodeConnected";
2124
+ } | { case: undefined; value?: undefined } = { case: undefined };
2125
+
2126
+ constructor(data?: PartialMessage<ManagerActivityStreamEvent>) {
2127
+ super();
2128
+ proto3.util.initPartial(data, this);
2129
+ }
2130
+
2131
+ static readonly runtime = proto3;
2132
+ static readonly typeName = "norsk.api.manager.ManagerActivityStreamEvent";
2133
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2134
+ { no: 1, name: "initial_data_complete", kind: "message", T: InitialDataComplete, oneof: "event" },
2135
+ { no: 2, name: "job_updated", kind: "message", T: JobUpdated, oneof: "event" },
2136
+ { no: 3, name: "job_pending", kind: "message", T: JobPending, oneof: "event" },
2137
+ { no: 4, name: "job_due_to_start", kind: "message", T: JobDueToStart, oneof: "event" },
2138
+ { no: 5, name: "job_instance_starting", kind: "message", T: JobInstanceStarting, oneof: "event" },
2139
+ { no: 6, name: "job_instance_started", kind: "message", T: JobInstanceStarted, oneof: "event" },
2140
+ { no: 7, name: "job_due_to_stop", kind: "message", T: JobDueToStop, oneof: "event" },
2141
+ { no: 8, name: "job_instance_stopping", kind: "message", T: JobInstanceStopping, oneof: "event" },
2142
+ { no: 9, name: "job_instance_stopped", kind: "message", T: JobInstanceStopped, oneof: "event" },
2143
+ { no: 10, name: "job_instance_failed", kind: "message", T: JobInstanceFailed, oneof: "event" },
2144
+ { no: 11, name: "node_running", kind: "message", T: NodeRunning, oneof: "event" },
2145
+ { no: 12, name: "node_starting", kind: "message", T: NodeStarting, oneof: "event" },
2146
+ { no: 13, name: "node_started", kind: "message", T: NodeStarted, oneof: "event" },
2147
+ { no: 14, name: "node_stopping", kind: "message", T: NodeStopping, oneof: "event" },
2148
+ { no: 15, name: "node_stopped", kind: "message", T: NodeStopped, oneof: "event" },
2149
+ { no: 16, name: "node_failed", kind: "message", T: NodeFailed, oneof: "event" },
2150
+ { no: 17, name: "physical_node_connected", kind: "message", T: PhysicalNodeConnected, oneof: "event" },
2151
+ ]);
2152
+
2153
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ManagerActivityStreamEvent {
2154
+ return new ManagerActivityStreamEvent().fromBinary(bytes, options);
2155
+ }
2156
+
2157
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ManagerActivityStreamEvent {
2158
+ return new ManagerActivityStreamEvent().fromJson(jsonValue, options);
2159
+ }
2160
+
2161
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ManagerActivityStreamEvent {
2162
+ return new ManagerActivityStreamEvent().fromJsonString(jsonString, options);
2163
+ }
2164
+
2165
+ static equals(a: ManagerActivityStreamEvent | PlainMessage<ManagerActivityStreamEvent> | undefined, b: ManagerActivityStreamEvent | PlainMessage<ManagerActivityStreamEvent> | undefined): boolean {
2166
+ return proto3.util.equals(ManagerActivityStreamEvent, a, b);
2167
+ }
2168
+ }
2169
+
2170
+ /**
2171
+ * @generated from message norsk.api.manager.JobSearchRequest
2172
+ */
2173
+ export class JobSearchRequest extends Message<JobSearchRequest> {
2174
+ /**
2175
+ * @generated from field: repeated norsk.api.manager.JobFilter job_filter = 2;
2176
+ */
2177
+ jobFilter: JobFilter[] = [];
2178
+
2179
+ constructor(data?: PartialMessage<JobSearchRequest>) {
2180
+ super();
2181
+ proto3.util.initPartial(data, this);
2182
+ }
2183
+
2184
+ static readonly runtime = proto3;
2185
+ static readonly typeName = "norsk.api.manager.JobSearchRequest";
2186
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2187
+ { no: 2, name: "job_filter", kind: "message", T: JobFilter, repeated: true },
2188
+ ]);
2189
+
2190
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobSearchRequest {
2191
+ return new JobSearchRequest().fromBinary(bytes, options);
2192
+ }
2193
+
2194
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobSearchRequest {
2195
+ return new JobSearchRequest().fromJson(jsonValue, options);
2196
+ }
2197
+
2198
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobSearchRequest {
2199
+ return new JobSearchRequest().fromJsonString(jsonString, options);
2200
+ }
2201
+
2202
+ static equals(a: JobSearchRequest | PlainMessage<JobSearchRequest> | undefined, b: JobSearchRequest | PlainMessage<JobSearchRequest> | undefined): boolean {
2203
+ return proto3.util.equals(JobSearchRequest, a, b);
2204
+ }
2205
+ }
2206
+
2207
+ /**
2208
+ * @generated from message norsk.api.manager.NorskStatusEvent
2209
+ */
2210
+ export class NorskStatusEvent extends Message<NorskStatusEvent> {
2211
+ /**
2212
+ * @generated from oneof norsk.api.manager.NorskStatusEvent.message
2213
+ */
2214
+ message: {
2215
+ /**
2216
+ * @generated from field: norsk.api.manager.Hello hello = 1;
2217
+ */
2218
+ value: Hello;
2219
+ case: "hello";
2220
+ } | {
2221
+ /**
2222
+ * @generated from field: norsk.api.common.Log log_event = 2;
2223
+ */
2224
+ value: Log;
2225
+ case: "logEvent";
2226
+ } | { case: undefined; value?: undefined } = { case: undefined };
2227
+
2228
+ constructor(data?: PartialMessage<NorskStatusEvent>) {
2229
+ super();
2230
+ proto3.util.initPartial(data, this);
2231
+ }
2232
+
2233
+ static readonly runtime = proto3;
2234
+ static readonly typeName = "norsk.api.manager.NorskStatusEvent";
2235
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2236
+ { no: 1, name: "hello", kind: "message", T: Hello, oneof: "message" },
2237
+ { no: 2, name: "log_event", kind: "message", T: Log, oneof: "message" },
2238
+ ]);
2239
+
2240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NorskStatusEvent {
2241
+ return new NorskStatusEvent().fromBinary(bytes, options);
2242
+ }
2243
+
2244
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NorskStatusEvent {
2245
+ return new NorskStatusEvent().fromJson(jsonValue, options);
2246
+ }
2247
+
2248
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NorskStatusEvent {
2249
+ return new NorskStatusEvent().fromJsonString(jsonString, options);
2250
+ }
2251
+
2252
+ static equals(a: NorskStatusEvent | PlainMessage<NorskStatusEvent> | undefined, b: NorskStatusEvent | PlainMessage<NorskStatusEvent> | undefined): boolean {
2253
+ return proto3.util.equals(NorskStatusEvent, a, b);
2254
+ }
2255
+ }
2256
+