@norskvideo/norsk-api 1.0.345 → 1.0.346

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.
@@ -4,7 +4,201 @@
4
4
  // @ts-nocheck
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from enum norsk.api.common.Architecture
11
+ */
12
+ export enum Architecture {
13
+ /**
14
+ * @generated from enum value: X86_64 = 0;
15
+ */
16
+ X86_64 = 0,
17
+
18
+ /**
19
+ * @generated from enum value: AARCH_64 = 1;
20
+ */
21
+ AARCH_64 = 1,
22
+ }
23
+ // Retrieve enum metadata with: proto3.getEnumType(Architecture)
24
+ proto3.util.setEnumType(Architecture, "norsk.api.common.Architecture", [
25
+ { no: 0, name: "X86_64" },
26
+ { no: 1, name: "AARCH_64" },
27
+ ]);
28
+
29
+ /**
30
+ * @generated from enum norsk.api.common.ProtocolFamily
31
+ */
32
+ export enum ProtocolFamily {
33
+ /**
34
+ * @generated from enum value: ANY = 0;
35
+ */
36
+ ANY = 0,
37
+
38
+ /**
39
+ * @generated from enum value: UDP = 1;
40
+ */
41
+ UDP = 1,
42
+
43
+ /**
44
+ * @generated from enum value: TCP = 2;
45
+ */
46
+ TCP = 2,
47
+ }
48
+ // Retrieve enum metadata with: proto3.getEnumType(ProtocolFamily)
49
+ proto3.util.setEnumType(ProtocolFamily, "norsk.api.common.ProtocolFamily", [
50
+ { no: 0, name: "ANY" },
51
+ { no: 1, name: "UDP" },
52
+ { no: 2, name: "TCP" },
53
+ ]);
54
+
55
+ /**
56
+ * @generated from message norsk.api.common.OptionalInt
57
+ */
58
+ export class OptionalInt extends Message<OptionalInt> {
59
+ /**
60
+ * @generated from field: uint32 value = 1;
61
+ */
62
+ value = 0;
63
+
64
+ constructor(data?: PartialMessage<OptionalInt>) {
65
+ super();
66
+ proto3.util.initPartial(data, this);
67
+ }
68
+
69
+ static readonly runtime = proto3;
70
+ static readonly typeName = "norsk.api.common.OptionalInt";
71
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
72
+ { no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
73
+ ]);
74
+
75
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OptionalInt {
76
+ return new OptionalInt().fromBinary(bytes, options);
77
+ }
78
+
79
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OptionalInt {
80
+ return new OptionalInt().fromJson(jsonValue, options);
81
+ }
82
+
83
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OptionalInt {
84
+ return new OptionalInt().fromJsonString(jsonString, options);
85
+ }
86
+
87
+ static equals(a: OptionalInt | PlainMessage<OptionalInt> | undefined, b: OptionalInt | PlainMessage<OptionalInt> | undefined): boolean {
88
+ return proto3.util.equals(OptionalInt, a, b);
89
+ }
90
+ }
91
+
92
+ /**
93
+ * @generated from message norsk.api.common.OptionalInt64
94
+ */
95
+ export class OptionalInt64 extends Message<OptionalInt64> {
96
+ /**
97
+ * @generated from field: uint64 value = 1;
98
+ */
99
+ value = protoInt64.zero;
100
+
101
+ constructor(data?: PartialMessage<OptionalInt64>) {
102
+ super();
103
+ proto3.util.initPartial(data, this);
104
+ }
105
+
106
+ static readonly runtime = proto3;
107
+ static readonly typeName = "norsk.api.common.OptionalInt64";
108
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
109
+ { no: 1, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
110
+ ]);
111
+
112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OptionalInt64 {
113
+ return new OptionalInt64().fromBinary(bytes, options);
114
+ }
115
+
116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OptionalInt64 {
117
+ return new OptionalInt64().fromJson(jsonValue, options);
118
+ }
119
+
120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OptionalInt64 {
121
+ return new OptionalInt64().fromJsonString(jsonString, options);
122
+ }
123
+
124
+ static equals(a: OptionalInt64 | PlainMessage<OptionalInt64> | undefined, b: OptionalInt64 | PlainMessage<OptionalInt64> | undefined): boolean {
125
+ return proto3.util.equals(OptionalInt64, a, b);
126
+ }
127
+ }
128
+
129
+ /**
130
+ * @generated from message norsk.api.common.OptionalBool
131
+ */
132
+ export class OptionalBool extends Message<OptionalBool> {
133
+ /**
134
+ * @generated from field: bool value = 1;
135
+ */
136
+ value = false;
137
+
138
+ constructor(data?: PartialMessage<OptionalBool>) {
139
+ super();
140
+ proto3.util.initPartial(data, this);
141
+ }
142
+
143
+ static readonly runtime = proto3;
144
+ static readonly typeName = "norsk.api.common.OptionalBool";
145
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
146
+ { no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
147
+ ]);
148
+
149
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OptionalBool {
150
+ return new OptionalBool().fromBinary(bytes, options);
151
+ }
152
+
153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OptionalBool {
154
+ return new OptionalBool().fromJson(jsonValue, options);
155
+ }
156
+
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OptionalBool {
158
+ return new OptionalBool().fromJsonString(jsonString, options);
159
+ }
160
+
161
+ static equals(a: OptionalBool | PlainMessage<OptionalBool> | undefined, b: OptionalBool | PlainMessage<OptionalBool> | undefined): boolean {
162
+ return proto3.util.equals(OptionalBool, a, b);
163
+ }
164
+ }
165
+
166
+ /**
167
+ * @generated from message norsk.api.common.OptionalString
168
+ */
169
+ export class OptionalString extends Message<OptionalString> {
170
+ /**
171
+ * @generated from field: string value = 1;
172
+ */
173
+ value = "";
174
+
175
+ constructor(data?: PartialMessage<OptionalString>) {
176
+ super();
177
+ proto3.util.initPartial(data, this);
178
+ }
179
+
180
+ static readonly runtime = proto3;
181
+ static readonly typeName = "norsk.api.common.OptionalString";
182
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
183
+ { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
184
+ ]);
185
+
186
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OptionalString {
187
+ return new OptionalString().fromBinary(bytes, options);
188
+ }
189
+
190
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OptionalString {
191
+ return new OptionalString().fromJson(jsonValue, options);
192
+ }
193
+
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OptionalString {
195
+ return new OptionalString().fromJsonString(jsonString, options);
196
+ }
197
+
198
+ static equals(a: OptionalString | PlainMessage<OptionalString> | undefined, b: OptionalString | PlainMessage<OptionalString> | undefined): boolean {
199
+ return proto3.util.equals(OptionalString, a, b);
200
+ }
201
+ }
8
202
 
9
203
  /**
10
204
  * `Version` gives version information about the currently running Norsk release
@@ -228,113 +422,1560 @@ export class CurrentLoad extends Message<CurrentLoad> {
228
422
  }
229
423
 
230
424
  /**
231
- * @generated from message norsk.api.common.Log
425
+ * @generated from message norsk.api.common.AwsMetadata
232
426
  */
233
- export class Log extends Message<Log> {
427
+ export class AwsMetadata extends Message<AwsMetadata> {
234
428
  /**
235
- * @generated from field: norsk.api.common.Log.Level level = 1;
429
+ * @generated from field: string instance_type = 1;
236
430
  */
237
- level = Log_Level.EMERGENCY;
431
+ instanceType = "";
238
432
 
239
433
  /**
240
- * @generated from field: uint64 timestamp = 2;
434
+ * @generated from field: string region = 2;
241
435
  */
242
- timestamp = protoInt64.zero;
436
+ region = "";
243
437
 
244
438
  /**
245
- * @generated from field: string msg = 3;
439
+ * @generated from field: norsk.api.common.Architecture architecture = 3;
246
440
  */
247
- msg = "";
441
+ architecture = Architecture.X86_64;
248
442
 
249
- /**
250
- * @generated from field: string metadata = 4;
251
- */
252
- metadata = "";
443
+ constructor(data?: PartialMessage<AwsMetadata>) {
444
+ super();
445
+ proto3.util.initPartial(data, this);
446
+ }
253
447
 
254
- constructor(data?: PartialMessage<Log>) {
448
+ static readonly runtime = proto3;
449
+ static readonly typeName = "norsk.api.common.AwsMetadata";
450
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
451
+ { no: 1, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
452
+ { no: 2, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
453
+ { no: 3, name: "architecture", kind: "enum", T: proto3.getEnumType(Architecture) },
454
+ ]);
455
+
456
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsMetadata {
457
+ return new AwsMetadata().fromBinary(bytes, options);
458
+ }
459
+
460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsMetadata {
461
+ return new AwsMetadata().fromJson(jsonValue, options);
462
+ }
463
+
464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsMetadata {
465
+ return new AwsMetadata().fromJsonString(jsonString, options);
466
+ }
467
+
468
+ static equals(a: AwsMetadata | PlainMessage<AwsMetadata> | undefined, b: AwsMetadata | PlainMessage<AwsMetadata> | undefined): boolean {
469
+ return proto3.util.equals(AwsMetadata, a, b);
470
+ }
471
+ }
472
+
473
+ /**
474
+ * @generated from message norsk.api.common.OciMetadata
475
+ */
476
+ export class OciMetadata extends Message<OciMetadata> {
477
+ constructor(data?: PartialMessage<OciMetadata>) {
255
478
  super();
256
479
  proto3.util.initPartial(data, this);
257
480
  }
258
481
 
259
482
  static readonly runtime = proto3;
260
- static readonly typeName = "norsk.api.common.Log";
483
+ static readonly typeName = "norsk.api.common.OciMetadata";
261
484
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
262
- { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Log_Level) },
263
- { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
264
- { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
265
- { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
266
485
  ]);
267
486
 
268
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Log {
269
- return new Log().fromBinary(bytes, options);
487
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OciMetadata {
488
+ return new OciMetadata().fromBinary(bytes, options);
270
489
  }
271
490
 
272
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Log {
273
- return new Log().fromJson(jsonValue, options);
491
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OciMetadata {
492
+ return new OciMetadata().fromJson(jsonValue, options);
274
493
  }
275
494
 
276
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Log {
277
- return new Log().fromJsonString(jsonString, options);
495
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OciMetadata {
496
+ return new OciMetadata().fromJsonString(jsonString, options);
278
497
  }
279
498
 
280
- static equals(a: Log | PlainMessage<Log> | undefined, b: Log | PlainMessage<Log> | undefined): boolean {
281
- return proto3.util.equals(Log, a, b);
499
+ static equals(a: OciMetadata | PlainMessage<OciMetadata> | undefined, b: OciMetadata | PlainMessage<OciMetadata> | undefined): boolean {
500
+ return proto3.util.equals(OciMetadata, a, b);
282
501
  }
283
502
  }
284
503
 
285
504
  /**
286
- * @generated from enum norsk.api.common.Log.Level
505
+ * @generated from message norsk.api.common.TestMetadata
287
506
  */
288
- export enum Log_Level {
289
- /**
290
- * @generated from enum value: EMERGENCY = 0;
291
- */
292
- EMERGENCY = 0,
507
+ export class TestMetadata extends Message<TestMetadata> {
508
+ constructor(data?: PartialMessage<TestMetadata>) {
509
+ super();
510
+ proto3.util.initPartial(data, this);
511
+ }
293
512
 
294
- /**
295
- * @generated from enum value: ALERT = 1;
296
- */
297
- ALERT = 1,
513
+ static readonly runtime = proto3;
514
+ static readonly typeName = "norsk.api.common.TestMetadata";
515
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
516
+ ]);
517
+
518
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TestMetadata {
519
+ return new TestMetadata().fromBinary(bytes, options);
520
+ }
521
+
522
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TestMetadata {
523
+ return new TestMetadata().fromJson(jsonValue, options);
524
+ }
525
+
526
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TestMetadata {
527
+ return new TestMetadata().fromJsonString(jsonString, options);
528
+ }
529
+
530
+ static equals(a: TestMetadata | PlainMessage<TestMetadata> | undefined, b: TestMetadata | PlainMessage<TestMetadata> | undefined): boolean {
531
+ return proto3.util.equals(TestMetadata, a, b);
532
+ }
533
+ }
298
534
 
535
+ /**
536
+ * @generated from message norsk.api.common.ProviderMetadata
537
+ */
538
+ export class ProviderMetadata extends Message<ProviderMetadata> {
299
539
  /**
300
- * @generated from enum value: CRITICAL = 2;
540
+ * @generated from oneof norsk.api.common.ProviderMetadata.metadata
301
541
  */
302
- CRITICAL = 2,
542
+ metadata: {
543
+ /**
544
+ * @generated from field: norsk.api.common.AwsMetadata aws = 1;
545
+ */
546
+ value: AwsMetadata;
547
+ case: "aws";
548
+ } | {
549
+ /**
550
+ * @generated from field: norsk.api.common.OciMetadata oci = 2;
551
+ */
552
+ value: OciMetadata;
553
+ case: "oci";
554
+ } | {
555
+ /**
556
+ * @generated from field: norsk.api.common.TestMetadata test = 3;
557
+ */
558
+ value: TestMetadata;
559
+ case: "test";
560
+ } | { case: undefined; value?: undefined } = { case: undefined };
561
+
562
+ constructor(data?: PartialMessage<ProviderMetadata>) {
563
+ super();
564
+ proto3.util.initPartial(data, this);
565
+ }
566
+
567
+ static readonly runtime = proto3;
568
+ static readonly typeName = "norsk.api.common.ProviderMetadata";
569
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
570
+ { no: 1, name: "aws", kind: "message", T: AwsMetadata, oneof: "metadata" },
571
+ { no: 2, name: "oci", kind: "message", T: OciMetadata, oneof: "metadata" },
572
+ { no: 3, name: "test", kind: "message", T: TestMetadata, oneof: "metadata" },
573
+ ]);
303
574
 
575
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProviderMetadata {
576
+ return new ProviderMetadata().fromBinary(bytes, options);
577
+ }
578
+
579
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProviderMetadata {
580
+ return new ProviderMetadata().fromJson(jsonValue, options);
581
+ }
582
+
583
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProviderMetadata {
584
+ return new ProviderMetadata().fromJsonString(jsonString, options);
585
+ }
586
+
587
+ static equals(a: ProviderMetadata | PlainMessage<ProviderMetadata> | undefined, b: ProviderMetadata | PlainMessage<ProviderMetadata> | undefined): boolean {
588
+ return proto3.util.equals(ProviderMetadata, a, b);
589
+ }
590
+ }
591
+
592
+ /**
593
+ * @generated from message norsk.api.common.NodeMetadata
594
+ */
595
+ export class NodeMetadata extends Message<NodeMetadata> {
304
596
  /**
305
- * @generated from enum value: ERROR = 3;
597
+ * @generated from field: norsk.api.common.NodeId node_id = 1;
306
598
  */
307
- ERROR = 3,
599
+ nodeId?: NodeId;
308
600
 
309
601
  /**
310
- * @generated from enum value: WARNING = 4;
602
+ * @generated from field: map<string, string> tags = 2;
311
603
  */
312
- WARNING = 4,
604
+ tags: { [key: string]: string } = {};
313
605
 
314
606
  /**
315
- * @generated from enum value: NOTICE = 5;
607
+ * @generated from field: google.protobuf.Timestamp created_at = 3;
316
608
  */
317
- NOTICE = 5,
609
+ createdAt?: Timestamp;
318
610
 
319
611
  /**
320
- * @generated from enum value: INFO = 6;
612
+ * @generated from field: norsk.api.common.ProviderMetadata provider_metadata = 4;
321
613
  */
322
- INFO = 6,
614
+ providerMetadata?: ProviderMetadata;
615
+
616
+ constructor(data?: PartialMessage<NodeMetadata>) {
617
+ super();
618
+ proto3.util.initPartial(data, this);
619
+ }
620
+
621
+ static readonly runtime = proto3;
622
+ static readonly typeName = "norsk.api.common.NodeMetadata";
623
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
624
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
625
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
626
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
627
+ { no: 4, name: "provider_metadata", kind: "message", T: ProviderMetadata },
628
+ ]);
629
+
630
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeMetadata {
631
+ return new NodeMetadata().fromBinary(bytes, options);
632
+ }
633
+
634
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeMetadata {
635
+ return new NodeMetadata().fromJson(jsonValue, options);
636
+ }
637
+
638
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeMetadata {
639
+ return new NodeMetadata().fromJsonString(jsonString, options);
640
+ }
641
+
642
+ static equals(a: NodeMetadata | PlainMessage<NodeMetadata> | undefined, b: NodeMetadata | PlainMessage<NodeMetadata> | undefined): boolean {
643
+ return proto3.util.equals(NodeMetadata, a, b);
644
+ }
645
+ }
323
646
 
647
+ /**
648
+ * @generated from message norsk.api.common.RunningAwsMetadata
649
+ */
650
+ export class RunningAwsMetadata extends Message<RunningAwsMetadata> {
324
651
  /**
325
- * @generated from enum value: DEBUG = 7;
652
+ * @generated from field: string instance_id = 1;
326
653
  */
327
- DEBUG = 7,
654
+ instanceId = "";
655
+
656
+ constructor(data?: PartialMessage<RunningAwsMetadata>) {
657
+ super();
658
+ proto3.util.initPartial(data, this);
659
+ }
660
+
661
+ static readonly runtime = proto3;
662
+ static readonly typeName = "norsk.api.common.RunningAwsMetadata";
663
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
664
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
665
+ ]);
666
+
667
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningAwsMetadata {
668
+ return new RunningAwsMetadata().fromBinary(bytes, options);
669
+ }
670
+
671
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningAwsMetadata {
672
+ return new RunningAwsMetadata().fromJson(jsonValue, options);
673
+ }
674
+
675
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningAwsMetadata {
676
+ return new RunningAwsMetadata().fromJsonString(jsonString, options);
677
+ }
678
+
679
+ static equals(a: RunningAwsMetadata | PlainMessage<RunningAwsMetadata> | undefined, b: RunningAwsMetadata | PlainMessage<RunningAwsMetadata> | undefined): boolean {
680
+ return proto3.util.equals(RunningAwsMetadata, a, b);
681
+ }
328
682
  }
329
- // Retrieve enum metadata with: proto3.getEnumType(Log_Level)
330
- proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
331
- { no: 0, name: "EMERGENCY" },
332
- { no: 1, name: "ALERT" },
333
- { no: 2, name: "CRITICAL" },
334
- { no: 3, name: "ERROR" },
335
- { no: 4, name: "WARNING" },
336
- { no: 5, name: "NOTICE" },
683
+
684
+ /**
685
+ * @generated from message norsk.api.common.RunningOciMetadata
686
+ */
687
+ export class RunningOciMetadata extends Message<RunningOciMetadata> {
688
+ constructor(data?: PartialMessage<RunningOciMetadata>) {
689
+ super();
690
+ proto3.util.initPartial(data, this);
691
+ }
692
+
693
+ static readonly runtime = proto3;
694
+ static readonly typeName = "norsk.api.common.RunningOciMetadata";
695
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
696
+ ]);
697
+
698
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningOciMetadata {
699
+ return new RunningOciMetadata().fromBinary(bytes, options);
700
+ }
701
+
702
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningOciMetadata {
703
+ return new RunningOciMetadata().fromJson(jsonValue, options);
704
+ }
705
+
706
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningOciMetadata {
707
+ return new RunningOciMetadata().fromJsonString(jsonString, options);
708
+ }
709
+
710
+ static equals(a: RunningOciMetadata | PlainMessage<RunningOciMetadata> | undefined, b: RunningOciMetadata | PlainMessage<RunningOciMetadata> | undefined): boolean {
711
+ return proto3.util.equals(RunningOciMetadata, a, b);
712
+ }
713
+ }
714
+
715
+ /**
716
+ * @generated from message norsk.api.common.RunningTestMetadata
717
+ */
718
+ export class RunningTestMetadata extends Message<RunningTestMetadata> {
719
+ constructor(data?: PartialMessage<RunningTestMetadata>) {
720
+ super();
721
+ proto3.util.initPartial(data, this);
722
+ }
723
+
724
+ static readonly runtime = proto3;
725
+ static readonly typeName = "norsk.api.common.RunningTestMetadata";
726
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
727
+ ]);
728
+
729
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningTestMetadata {
730
+ return new RunningTestMetadata().fromBinary(bytes, options);
731
+ }
732
+
733
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningTestMetadata {
734
+ return new RunningTestMetadata().fromJson(jsonValue, options);
735
+ }
736
+
737
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningTestMetadata {
738
+ return new RunningTestMetadata().fromJsonString(jsonString, options);
739
+ }
740
+
741
+ static equals(a: RunningTestMetadata | PlainMessage<RunningTestMetadata> | undefined, b: RunningTestMetadata | PlainMessage<RunningTestMetadata> | undefined): boolean {
742
+ return proto3.util.equals(RunningTestMetadata, a, b);
743
+ }
744
+ }
745
+
746
+ /**
747
+ * @generated from message norsk.api.common.RunningNodeProviderMetadata
748
+ */
749
+ export class RunningNodeProviderMetadata extends Message<RunningNodeProviderMetadata> {
750
+ /**
751
+ * @generated from oneof norsk.api.common.RunningNodeProviderMetadata.instance
752
+ */
753
+ instance: {
754
+ /**
755
+ * @generated from field: norsk.api.common.RunningAwsMetadata aws = 1;
756
+ */
757
+ value: RunningAwsMetadata;
758
+ case: "aws";
759
+ } | {
760
+ /**
761
+ * @generated from field: norsk.api.common.RunningOciMetadata oci = 2;
762
+ */
763
+ value: RunningOciMetadata;
764
+ case: "oci";
765
+ } | {
766
+ /**
767
+ * @generated from field: norsk.api.common.RunningTestMetadata test = 3;
768
+ */
769
+ value: RunningTestMetadata;
770
+ case: "test";
771
+ } | { case: undefined; value?: undefined } = { case: undefined };
772
+
773
+ constructor(data?: PartialMessage<RunningNodeProviderMetadata>) {
774
+ super();
775
+ proto3.util.initPartial(data, this);
776
+ }
777
+
778
+ static readonly runtime = proto3;
779
+ static readonly typeName = "norsk.api.common.RunningNodeProviderMetadata";
780
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
781
+ { no: 1, name: "aws", kind: "message", T: RunningAwsMetadata, oneof: "instance" },
782
+ { no: 2, name: "oci", kind: "message", T: RunningOciMetadata, oneof: "instance" },
783
+ { no: 3, name: "test", kind: "message", T: RunningTestMetadata, oneof: "instance" },
784
+ ]);
785
+
786
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningNodeProviderMetadata {
787
+ return new RunningNodeProviderMetadata().fromBinary(bytes, options);
788
+ }
789
+
790
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningNodeProviderMetadata {
791
+ return new RunningNodeProviderMetadata().fromJson(jsonValue, options);
792
+ }
793
+
794
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningNodeProviderMetadata {
795
+ return new RunningNodeProviderMetadata().fromJsonString(jsonString, options);
796
+ }
797
+
798
+ static equals(a: RunningNodeProviderMetadata | PlainMessage<RunningNodeProviderMetadata> | undefined, b: RunningNodeProviderMetadata | PlainMessage<RunningNodeProviderMetadata> | undefined): boolean {
799
+ return proto3.util.equals(RunningNodeProviderMetadata, a, b);
800
+ }
801
+ }
802
+
803
+ /**
804
+ * @generated from message norsk.api.common.RunningNodeMetadata
805
+ */
806
+ export class RunningNodeMetadata extends Message<RunningNodeMetadata> {
807
+ /**
808
+ * @generated from field: string public_dns_name = 1;
809
+ */
810
+ publicDnsName = "";
811
+
812
+ /**
813
+ * @generated from field: string private_dns_name = 2;
814
+ */
815
+ privateDnsName = "";
816
+
817
+ /**
818
+ * @generated from field: string private_ip_address = 3;
819
+ */
820
+ privateIpAddress = "";
821
+
822
+ /**
823
+ * @generated from field: norsk.api.common.RunningNodeProviderMetadata provider_metadata = 4;
824
+ */
825
+ providerMetadata?: RunningNodeProviderMetadata;
826
+
827
+ constructor(data?: PartialMessage<RunningNodeMetadata>) {
828
+ super();
829
+ proto3.util.initPartial(data, this);
830
+ }
831
+
832
+ static readonly runtime = proto3;
833
+ static readonly typeName = "norsk.api.common.RunningNodeMetadata";
834
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
835
+ { no: 1, name: "public_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
836
+ { no: 2, name: "private_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
837
+ { no: 3, name: "private_ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
838
+ { no: 4, name: "provider_metadata", kind: "message", T: RunningNodeProviderMetadata },
839
+ ]);
840
+
841
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningNodeMetadata {
842
+ return new RunningNodeMetadata().fromBinary(bytes, options);
843
+ }
844
+
845
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningNodeMetadata {
846
+ return new RunningNodeMetadata().fromJson(jsonValue, options);
847
+ }
848
+
849
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningNodeMetadata {
850
+ return new RunningNodeMetadata().fromJsonString(jsonString, options);
851
+ }
852
+
853
+ static equals(a: RunningNodeMetadata | PlainMessage<RunningNodeMetadata> | undefined, b: RunningNodeMetadata | PlainMessage<RunningNodeMetadata> | undefined): boolean {
854
+ return proto3.util.equals(RunningNodeMetadata, a, b);
855
+ }
856
+ }
857
+
858
+ /**
859
+ * @generated from message norsk.api.common.NodeId
860
+ */
861
+ export class NodeId extends Message<NodeId> {
862
+ /**
863
+ * @generated from field: string node_id = 1;
864
+ */
865
+ nodeId = "";
866
+
867
+ constructor(data?: PartialMessage<NodeId>) {
868
+ super();
869
+ proto3.util.initPartial(data, this);
870
+ }
871
+
872
+ static readonly runtime = proto3;
873
+ static readonly typeName = "norsk.api.common.NodeId";
874
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
875
+ { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
876
+ ]);
877
+
878
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeId {
879
+ return new NodeId().fromBinary(bytes, options);
880
+ }
881
+
882
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeId {
883
+ return new NodeId().fromJson(jsonValue, options);
884
+ }
885
+
886
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeId {
887
+ return new NodeId().fromJsonString(jsonString, options);
888
+ }
889
+
890
+ static equals(a: NodeId | PlainMessage<NodeId> | undefined, b: NodeId | PlainMessage<NodeId> | undefined): boolean {
891
+ return proto3.util.equals(NodeId, a, b);
892
+ }
893
+ }
894
+
895
+ /**
896
+ * @generated from message norsk.api.common.JobId
897
+ */
898
+ export class JobId extends Message<JobId> {
899
+ /**
900
+ * @generated from field: string job_id = 1;
901
+ */
902
+ jobId = "";
903
+
904
+ constructor(data?: PartialMessage<JobId>) {
905
+ super();
906
+ proto3.util.initPartial(data, this);
907
+ }
908
+
909
+ static readonly runtime = proto3;
910
+ static readonly typeName = "norsk.api.common.JobId";
911
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
912
+ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
913
+ ]);
914
+
915
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobId {
916
+ return new JobId().fromBinary(bytes, options);
917
+ }
918
+
919
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobId {
920
+ return new JobId().fromJson(jsonValue, options);
921
+ }
922
+
923
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobId {
924
+ return new JobId().fromJsonString(jsonString, options);
925
+ }
926
+
927
+ static equals(a: JobId | PlainMessage<JobId> | undefined, b: JobId | PlainMessage<JobId> | undefined): boolean {
928
+ return proto3.util.equals(JobId, a, b);
929
+ }
930
+ }
931
+
932
+ /**
933
+ * @generated from message norsk.api.common.ActiveJobKey
934
+ */
935
+ export class ActiveJobKey extends Message<ActiveJobKey> {
936
+ /**
937
+ * @generated from field: norsk.api.common.JobId jobId = 1;
938
+ */
939
+ jobId?: JobId;
940
+
941
+ /**
942
+ * @generated from field: string role = 2;
943
+ */
944
+ role = "";
945
+
946
+ constructor(data?: PartialMessage<ActiveJobKey>) {
947
+ super();
948
+ proto3.util.initPartial(data, this);
949
+ }
950
+
951
+ static readonly runtime = proto3;
952
+ static readonly typeName = "norsk.api.common.ActiveJobKey";
953
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
954
+ { no: 1, name: "jobId", kind: "message", T: JobId },
955
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
956
+ ]);
957
+
958
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveJobKey {
959
+ return new ActiveJobKey().fromBinary(bytes, options);
960
+ }
961
+
962
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveJobKey {
963
+ return new ActiveJobKey().fromJson(jsonValue, options);
964
+ }
965
+
966
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveJobKey {
967
+ return new ActiveJobKey().fromJsonString(jsonString, options);
968
+ }
969
+
970
+ static equals(a: ActiveJobKey | PlainMessage<ActiveJobKey> | undefined, b: ActiveJobKey | PlainMessage<ActiveJobKey> | undefined): boolean {
971
+ return proto3.util.equals(ActiveJobKey, a, b);
972
+ }
973
+ }
974
+
975
+ /**
976
+ * @generated from message norsk.api.common.ContainerUrl
977
+ */
978
+ export class ContainerUrl extends Message<ContainerUrl> {
979
+ /**
980
+ * @generated from field: string url = 1;
981
+ */
982
+ url = "";
983
+
984
+ constructor(data?: PartialMessage<ContainerUrl>) {
985
+ super();
986
+ proto3.util.initPartial(data, this);
987
+ }
988
+
989
+ static readonly runtime = proto3;
990
+ static readonly typeName = "norsk.api.common.ContainerUrl";
991
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
992
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
993
+ ]);
994
+
995
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContainerUrl {
996
+ return new ContainerUrl().fromBinary(bytes, options);
997
+ }
998
+
999
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContainerUrl {
1000
+ return new ContainerUrl().fromJson(jsonValue, options);
1001
+ }
1002
+
1003
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContainerUrl {
1004
+ return new ContainerUrl().fromJsonString(jsonString, options);
1005
+ }
1006
+
1007
+ static equals(a: ContainerUrl | PlainMessage<ContainerUrl> | undefined, b: ContainerUrl | PlainMessage<ContainerUrl> | undefined): boolean {
1008
+ return proto3.util.equals(ContainerUrl, a, b);
1009
+ }
1010
+ }
1011
+
1012
+ /**
1013
+ * @generated from message norsk.api.common.DockerContainer
1014
+ */
1015
+ export class DockerContainer extends Message<DockerContainer> {
1016
+ /**
1017
+ * @generated from field: norsk.api.common.ContainerUrl container_url = 1;
1018
+ */
1019
+ containerUrl?: ContainerUrl;
1020
+
1021
+ constructor(data?: PartialMessage<DockerContainer>) {
1022
+ super();
1023
+ proto3.util.initPartial(data, this);
1024
+ }
1025
+
1026
+ static readonly runtime = proto3;
1027
+ static readonly typeName = "norsk.api.common.DockerContainer";
1028
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1029
+ { no: 1, name: "container_url", kind: "message", T: ContainerUrl },
1030
+ ]);
1031
+
1032
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DockerContainer {
1033
+ return new DockerContainer().fromBinary(bytes, options);
1034
+ }
1035
+
1036
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DockerContainer {
1037
+ return new DockerContainer().fromJson(jsonValue, options);
1038
+ }
1039
+
1040
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DockerContainer {
1041
+ return new DockerContainer().fromJsonString(jsonString, options);
1042
+ }
1043
+
1044
+ static equals(a: DockerContainer | PlainMessage<DockerContainer> | undefined, b: DockerContainer | PlainMessage<DockerContainer> | undefined): boolean {
1045
+ return proto3.util.equals(DockerContainer, a, b);
1046
+ }
1047
+ }
1048
+
1049
+ /**
1050
+ * @generated from message norsk.api.common.Log
1051
+ */
1052
+ export class Log extends Message<Log> {
1053
+ /**
1054
+ * @generated from field: norsk.api.common.Log.Level level = 1;
1055
+ */
1056
+ level = Log_Level.EMERGENCY;
1057
+
1058
+ /**
1059
+ * @generated from field: uint64 timestamp = 2;
1060
+ */
1061
+ timestamp = protoInt64.zero;
1062
+
1063
+ /**
1064
+ * @generated from field: string msg = 3;
1065
+ */
1066
+ msg = "";
1067
+
1068
+ /**
1069
+ * @generated from field: string metadata = 4;
1070
+ */
1071
+ metadata = "";
1072
+
1073
+ constructor(data?: PartialMessage<Log>) {
1074
+ super();
1075
+ proto3.util.initPartial(data, this);
1076
+ }
1077
+
1078
+ static readonly runtime = proto3;
1079
+ static readonly typeName = "norsk.api.common.Log";
1080
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1081
+ { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Log_Level) },
1082
+ { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1083
+ { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1084
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1085
+ ]);
1086
+
1087
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Log {
1088
+ return new Log().fromBinary(bytes, options);
1089
+ }
1090
+
1091
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Log {
1092
+ return new Log().fromJson(jsonValue, options);
1093
+ }
1094
+
1095
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Log {
1096
+ return new Log().fromJsonString(jsonString, options);
1097
+ }
1098
+
1099
+ static equals(a: Log | PlainMessage<Log> | undefined, b: Log | PlainMessage<Log> | undefined): boolean {
1100
+ return proto3.util.equals(Log, a, b);
1101
+ }
1102
+ }
1103
+
1104
+ /**
1105
+ * @generated from enum norsk.api.common.Log.Level
1106
+ */
1107
+ export enum Log_Level {
1108
+ /**
1109
+ * @generated from enum value: EMERGENCY = 0;
1110
+ */
1111
+ EMERGENCY = 0,
1112
+
1113
+ /**
1114
+ * @generated from enum value: ALERT = 1;
1115
+ */
1116
+ ALERT = 1,
1117
+
1118
+ /**
1119
+ * @generated from enum value: CRITICAL = 2;
1120
+ */
1121
+ CRITICAL = 2,
1122
+
1123
+ /**
1124
+ * @generated from enum value: ERROR = 3;
1125
+ */
1126
+ ERROR = 3,
1127
+
1128
+ /**
1129
+ * @generated from enum value: WARNING = 4;
1130
+ */
1131
+ WARNING = 4,
1132
+
1133
+ /**
1134
+ * @generated from enum value: NOTICE = 5;
1135
+ */
1136
+ NOTICE = 5,
1137
+
1138
+ /**
1139
+ * @generated from enum value: INFO = 6;
1140
+ */
1141
+ INFO = 6,
1142
+
1143
+ /**
1144
+ * @generated from enum value: DEBUG = 7;
1145
+ */
1146
+ DEBUG = 7,
1147
+ }
1148
+ // Retrieve enum metadata with: proto3.getEnumType(Log_Level)
1149
+ proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
1150
+ { no: 0, name: "EMERGENCY" },
1151
+ { no: 1, name: "ALERT" },
1152
+ { no: 2, name: "CRITICAL" },
1153
+ { no: 3, name: "ERROR" },
1154
+ { no: 4, name: "WARNING" },
1155
+ { no: 5, name: "NOTICE" },
337
1156
  { no: 6, name: "INFO" },
338
1157
  { no: 7, name: "DEBUG" },
339
1158
  ]);
340
1159
 
1160
+ /**
1161
+ * @generated from message norsk.api.common.HostPortEphemeral
1162
+ */
1163
+ export class HostPortEphemeral extends Message<HostPortEphemeral> {
1164
+ constructor(data?: PartialMessage<HostPortEphemeral>) {
1165
+ super();
1166
+ proto3.util.initPartial(data, this);
1167
+ }
1168
+
1169
+ static readonly runtime = proto3;
1170
+ static readonly typeName = "norsk.api.common.HostPortEphemeral";
1171
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1172
+ ]);
1173
+
1174
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HostPortEphemeral {
1175
+ return new HostPortEphemeral().fromBinary(bytes, options);
1176
+ }
1177
+
1178
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HostPortEphemeral {
1179
+ return new HostPortEphemeral().fromJson(jsonValue, options);
1180
+ }
1181
+
1182
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HostPortEphemeral {
1183
+ return new HostPortEphemeral().fromJsonString(jsonString, options);
1184
+ }
1185
+
1186
+ static equals(a: HostPortEphemeral | PlainMessage<HostPortEphemeral> | undefined, b: HostPortEphemeral | PlainMessage<HostPortEphemeral> | undefined): boolean {
1187
+ return proto3.util.equals(HostPortEphemeral, a, b);
1188
+ }
1189
+ }
1190
+
1191
+ /**
1192
+ * @generated from message norsk.api.common.HostPortRange
1193
+ */
1194
+ export class HostPortRange extends Message<HostPortRange> {
1195
+ /**
1196
+ * @generated from field: uint32 min_port = 1;
1197
+ */
1198
+ minPort = 0;
1199
+
1200
+ /**
1201
+ * @generated from field: uint32 max_port = 2;
1202
+ */
1203
+ maxPort = 0;
1204
+
1205
+ constructor(data?: PartialMessage<HostPortRange>) {
1206
+ super();
1207
+ proto3.util.initPartial(data, this);
1208
+ }
1209
+
1210
+ static readonly runtime = proto3;
1211
+ static readonly typeName = "norsk.api.common.HostPortRange";
1212
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1213
+ { no: 1, name: "min_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1214
+ { no: 2, name: "max_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1215
+ ]);
1216
+
1217
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HostPortRange {
1218
+ return new HostPortRange().fromBinary(bytes, options);
1219
+ }
1220
+
1221
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HostPortRange {
1222
+ return new HostPortRange().fromJson(jsonValue, options);
1223
+ }
1224
+
1225
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HostPortRange {
1226
+ return new HostPortRange().fromJsonString(jsonString, options);
1227
+ }
1228
+
1229
+ static equals(a: HostPortRange | PlainMessage<HostPortRange> | undefined, b: HostPortRange | PlainMessage<HostPortRange> | undefined): boolean {
1230
+ return proto3.util.equals(HostPortRange, a, b);
1231
+ }
1232
+ }
1233
+
1234
+ /**
1235
+ * @generated from message norsk.api.common.HostPortSpecific
1236
+ */
1237
+ export class HostPortSpecific extends Message<HostPortSpecific> {
1238
+ /**
1239
+ * @generated from field: uint32 port = 1;
1240
+ */
1241
+ port = 0;
1242
+
1243
+ constructor(data?: PartialMessage<HostPortSpecific>) {
1244
+ super();
1245
+ proto3.util.initPartial(data, this);
1246
+ }
1247
+
1248
+ static readonly runtime = proto3;
1249
+ static readonly typeName = "norsk.api.common.HostPortSpecific";
1250
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1251
+ { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1252
+ ]);
1253
+
1254
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HostPortSpecific {
1255
+ return new HostPortSpecific().fromBinary(bytes, options);
1256
+ }
1257
+
1258
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HostPortSpecific {
1259
+ return new HostPortSpecific().fromJson(jsonValue, options);
1260
+ }
1261
+
1262
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HostPortSpecific {
1263
+ return new HostPortSpecific().fromJsonString(jsonString, options);
1264
+ }
1265
+
1266
+ static equals(a: HostPortSpecific | PlainMessage<HostPortSpecific> | undefined, b: HostPortSpecific | PlainMessage<HostPortSpecific> | undefined): boolean {
1267
+ return proto3.util.equals(HostPortSpecific, a, b);
1268
+ }
1269
+ }
1270
+
1271
+ /**
1272
+ * @generated from message norsk.api.common.PortMapping
1273
+ */
1274
+ export class PortMapping extends Message<PortMapping> {
1275
+ /**
1276
+ * @generated from field: uint32 container_port = 1;
1277
+ */
1278
+ containerPort = 0;
1279
+
1280
+ /**
1281
+ * @generated from field: norsk.api.common.ProtocolFamily protocol = 2;
1282
+ */
1283
+ protocol = ProtocolFamily.ANY;
1284
+
1285
+ /**
1286
+ * @generated from oneof norsk.api.common.PortMapping.host_port
1287
+ */
1288
+ hostPort: {
1289
+ /**
1290
+ * @generated from field: norsk.api.common.HostPortEphemeral ephemeral = 3;
1291
+ */
1292
+ value: HostPortEphemeral;
1293
+ case: "ephemeral";
1294
+ } | {
1295
+ /**
1296
+ * @generated from field: norsk.api.common.HostPortRange range = 4;
1297
+ */
1298
+ value: HostPortRange;
1299
+ case: "range";
1300
+ } | {
1301
+ /**
1302
+ * @generated from field: norsk.api.common.HostPortSpecific specific = 5;
1303
+ */
1304
+ value: HostPortSpecific;
1305
+ case: "specific";
1306
+ } | { case: undefined; value?: undefined } = { case: undefined };
1307
+
1308
+ /**
1309
+ * @generated from field: string host_address = 6;
1310
+ */
1311
+ hostAddress = "";
1312
+
1313
+ constructor(data?: PartialMessage<PortMapping>) {
1314
+ super();
1315
+ proto3.util.initPartial(data, this);
1316
+ }
1317
+
1318
+ static readonly runtime = proto3;
1319
+ static readonly typeName = "norsk.api.common.PortMapping";
1320
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1321
+ { no: 1, name: "container_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1322
+ { no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(ProtocolFamily) },
1323
+ { no: 3, name: "ephemeral", kind: "message", T: HostPortEphemeral, oneof: "host_port" },
1324
+ { no: 4, name: "range", kind: "message", T: HostPortRange, oneof: "host_port" },
1325
+ { no: 5, name: "specific", kind: "message", T: HostPortSpecific, oneof: "host_port" },
1326
+ { no: 6, name: "host_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1327
+ ]);
1328
+
1329
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PortMapping {
1330
+ return new PortMapping().fromBinary(bytes, options);
1331
+ }
1332
+
1333
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PortMapping {
1334
+ return new PortMapping().fromJson(jsonValue, options);
1335
+ }
1336
+
1337
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PortMapping {
1338
+ return new PortMapping().fromJsonString(jsonString, options);
1339
+ }
1340
+
1341
+ static equals(a: PortMapping | PlainMessage<PortMapping> | undefined, b: PortMapping | PlainMessage<PortMapping> | undefined): boolean {
1342
+ return proto3.util.equals(PortMapping, a, b);
1343
+ }
1344
+ }
1345
+
1346
+ /**
1347
+ * @generated from message norsk.api.common.ResolvedPortMapping
1348
+ */
1349
+ export class ResolvedPortMapping extends Message<ResolvedPortMapping> {
1350
+ /**
1351
+ * @generated from field: string url = 1;
1352
+ */
1353
+ url = "";
1354
+
1355
+ /**
1356
+ * @generated from field: uint32 target = 2;
1357
+ */
1358
+ target = 0;
1359
+
1360
+ /**
1361
+ * @generated from field: uint32 published = 3;
1362
+ */
1363
+ published = 0;
1364
+
1365
+ /**
1366
+ * @generated from field: norsk.api.common.ProtocolFamily protocol = 4;
1367
+ */
1368
+ protocol = ProtocolFamily.ANY;
1369
+
1370
+ constructor(data?: PartialMessage<ResolvedPortMapping>) {
1371
+ super();
1372
+ proto3.util.initPartial(data, this);
1373
+ }
1374
+
1375
+ static readonly runtime = proto3;
1376
+ static readonly typeName = "norsk.api.common.ResolvedPortMapping";
1377
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1378
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1379
+ { no: 2, name: "target", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1380
+ { no: 3, name: "published", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1381
+ { no: 4, name: "protocol", kind: "enum", T: proto3.getEnumType(ProtocolFamily) },
1382
+ ]);
1383
+
1384
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolvedPortMapping {
1385
+ return new ResolvedPortMapping().fromBinary(bytes, options);
1386
+ }
1387
+
1388
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolvedPortMapping {
1389
+ return new ResolvedPortMapping().fromJson(jsonValue, options);
1390
+ }
1391
+
1392
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolvedPortMapping {
1393
+ return new ResolvedPortMapping().fromJsonString(jsonString, options);
1394
+ }
1395
+
1396
+ static equals(a: ResolvedPortMapping | PlainMessage<ResolvedPortMapping> | undefined, b: ResolvedPortMapping | PlainMessage<ResolvedPortMapping> | undefined): boolean {
1397
+ return proto3.util.equals(ResolvedPortMapping, a, b);
1398
+ }
1399
+ }
1400
+
1401
+ /**
1402
+ * @generated from message norsk.api.common.ResolvedPortMappings
1403
+ */
1404
+ export class ResolvedPortMappings extends Message<ResolvedPortMappings> {
1405
+ /**
1406
+ * @generated from field: repeated norsk.api.common.ResolvedPortMapping mappings = 1;
1407
+ */
1408
+ mappings: ResolvedPortMapping[] = [];
1409
+
1410
+ constructor(data?: PartialMessage<ResolvedPortMappings>) {
1411
+ super();
1412
+ proto3.util.initPartial(data, this);
1413
+ }
1414
+
1415
+ static readonly runtime = proto3;
1416
+ static readonly typeName = "norsk.api.common.ResolvedPortMappings";
1417
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1418
+ { no: 1, name: "mappings", kind: "message", T: ResolvedPortMapping, repeated: true },
1419
+ ]);
1420
+
1421
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolvedPortMappings {
1422
+ return new ResolvedPortMappings().fromBinary(bytes, options);
1423
+ }
1424
+
1425
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolvedPortMappings {
1426
+ return new ResolvedPortMappings().fromJson(jsonValue, options);
1427
+ }
1428
+
1429
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolvedPortMappings {
1430
+ return new ResolvedPortMappings().fromJsonString(jsonString, options);
1431
+ }
1432
+
1433
+ static equals(a: ResolvedPortMappings | PlainMessage<ResolvedPortMappings> | undefined, b: ResolvedPortMappings | PlainMessage<ResolvedPortMappings> | undefined): boolean {
1434
+ return proto3.util.equals(ResolvedPortMappings, a, b);
1435
+ }
1436
+ }
1437
+
1438
+ /**
1439
+ * @generated from message norsk.api.common.EnvironmentVariable
1440
+ */
1441
+ export class EnvironmentVariable extends Message<EnvironmentVariable> {
1442
+ /**
1443
+ * @generated from field: string name = 1;
1444
+ */
1445
+ name = "";
1446
+
1447
+ /**
1448
+ * @generated from field: string value = 2;
1449
+ */
1450
+ value = "";
1451
+
1452
+ constructor(data?: PartialMessage<EnvironmentVariable>) {
1453
+ super();
1454
+ proto3.util.initPartial(data, this);
1455
+ }
1456
+
1457
+ static readonly runtime = proto3;
1458
+ static readonly typeName = "norsk.api.common.EnvironmentVariable";
1459
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1460
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1461
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1462
+ ]);
1463
+
1464
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnvironmentVariable {
1465
+ return new EnvironmentVariable().fromBinary(bytes, options);
1466
+ }
1467
+
1468
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnvironmentVariable {
1469
+ return new EnvironmentVariable().fromJson(jsonValue, options);
1470
+ }
1471
+
1472
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnvironmentVariable {
1473
+ return new EnvironmentVariable().fromJsonString(jsonString, options);
1474
+ }
1475
+
1476
+ static equals(a: EnvironmentVariable | PlainMessage<EnvironmentVariable> | undefined, b: EnvironmentVariable | PlainMessage<EnvironmentVariable> | undefined): boolean {
1477
+ return proto3.util.equals(EnvironmentVariable, a, b);
1478
+ }
1479
+ }
1480
+
1481
+ /**
1482
+ * @generated from message norsk.api.common.VolumeMount
1483
+ */
1484
+ export class VolumeMount extends Message<VolumeMount> {
1485
+ /**
1486
+ * @generated from field: string volume_name = 1;
1487
+ */
1488
+ volumeName = "";
1489
+
1490
+ /**
1491
+ * @generated from field: string container_path = 2;
1492
+ */
1493
+ containerPath = "";
1494
+
1495
+ /**
1496
+ * @generated from field: bool read_only = 3;
1497
+ */
1498
+ readOnly = false;
1499
+
1500
+ constructor(data?: PartialMessage<VolumeMount>) {
1501
+ super();
1502
+ proto3.util.initPartial(data, this);
1503
+ }
1504
+
1505
+ static readonly runtime = proto3;
1506
+ static readonly typeName = "norsk.api.common.VolumeMount";
1507
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1508
+ { no: 1, name: "volume_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1509
+ { no: 2, name: "container_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1510
+ { no: 3, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1511
+ ]);
1512
+
1513
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VolumeMount {
1514
+ return new VolumeMount().fromBinary(bytes, options);
1515
+ }
1516
+
1517
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VolumeMount {
1518
+ return new VolumeMount().fromJson(jsonValue, options);
1519
+ }
1520
+
1521
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VolumeMount {
1522
+ return new VolumeMount().fromJsonString(jsonString, options);
1523
+ }
1524
+
1525
+ static equals(a: VolumeMount | PlainMessage<VolumeMount> | undefined, b: VolumeMount | PlainMessage<VolumeMount> | undefined): boolean {
1526
+ return proto3.util.equals(VolumeMount, a, b);
1527
+ }
1528
+ }
1529
+
1530
+ /**
1531
+ * @generated from message norsk.api.common.ServiceParameters
1532
+ */
1533
+ export class ServiceParameters extends Message<ServiceParameters> {
1534
+ /**
1535
+ * @generated from field: repeated norsk.api.common.PortMapping port_mappings = 1;
1536
+ */
1537
+ portMappings: PortMapping[] = [];
1538
+
1539
+ /**
1540
+ * @generated from field: repeated norsk.api.common.EnvironmentVariable environment_variables = 2;
1541
+ */
1542
+ environmentVariables: EnvironmentVariable[] = [];
1543
+
1544
+ /**
1545
+ * @generated from field: norsk.api.common.OptionalInt64 shared_memory_size = 3;
1546
+ */
1547
+ sharedMemorySize?: OptionalInt64;
1548
+
1549
+ /**
1550
+ * @generated from field: repeated uint32 cpu_set = 4;
1551
+ */
1552
+ cpuSet: number[] = [];
1553
+
1554
+ /**
1555
+ * @generated from field: repeated norsk.api.common.VolumeMount volume_mounts = 5;
1556
+ */
1557
+ volumeMounts: VolumeMount[] = [];
1558
+
1559
+ constructor(data?: PartialMessage<ServiceParameters>) {
1560
+ super();
1561
+ proto3.util.initPartial(data, this);
1562
+ }
1563
+
1564
+ static readonly runtime = proto3;
1565
+ static readonly typeName = "norsk.api.common.ServiceParameters";
1566
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1567
+ { no: 1, name: "port_mappings", kind: "message", T: PortMapping, repeated: true },
1568
+ { no: 2, name: "environment_variables", kind: "message", T: EnvironmentVariable, repeated: true },
1569
+ { no: 3, name: "shared_memory_size", kind: "message", T: OptionalInt64 },
1570
+ { no: 4, name: "cpu_set", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1571
+ { no: 5, name: "volume_mounts", kind: "message", T: VolumeMount, repeated: true },
1572
+ ]);
1573
+
1574
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceParameters {
1575
+ return new ServiceParameters().fromBinary(bytes, options);
1576
+ }
1577
+
1578
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceParameters {
1579
+ return new ServiceParameters().fromJson(jsonValue, options);
1580
+ }
1581
+
1582
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceParameters {
1583
+ return new ServiceParameters().fromJsonString(jsonString, options);
1584
+ }
1585
+
1586
+ static equals(a: ServiceParameters | PlainMessage<ServiceParameters> | undefined, b: ServiceParameters | PlainMessage<ServiceParameters> | undefined): boolean {
1587
+ return proto3.util.equals(ServiceParameters, a, b);
1588
+ }
1589
+ }
1590
+
1591
+ /**
1592
+ * @generated from message norsk.api.common.Service
1593
+ */
1594
+ export class Service extends Message<Service> {
1595
+ /**
1596
+ * @generated from field: string name = 1;
1597
+ */
1598
+ name = "";
1599
+
1600
+ /**
1601
+ * @generated from oneof norsk.api.common.Service.container
1602
+ */
1603
+ container: {
1604
+ /**
1605
+ * @generated from field: norsk.api.common.DockerContainer docker = 2;
1606
+ */
1607
+ value: DockerContainer;
1608
+ case: "docker";
1609
+ } | { case: undefined; value?: undefined } = { case: undefined };
1610
+
1611
+ /**
1612
+ * @generated from field: norsk.api.common.Service.ServiceRestart restart = 3;
1613
+ */
1614
+ restart = Service_ServiceRestart.NEVER;
1615
+
1616
+ /**
1617
+ * @generated from field: repeated string dependsOn = 4;
1618
+ */
1619
+ dependsOn: string[] = [];
1620
+
1621
+ /**
1622
+ * @generated from field: string configuration = 5;
1623
+ */
1624
+ configuration = "";
1625
+
1626
+ /**
1627
+ * @generated from field: uint32 restart_count = 6;
1628
+ */
1629
+ restartCount = 0;
1630
+
1631
+ /**
1632
+ * @generated from field: uint32 restart_period = 7;
1633
+ */
1634
+ restartPeriod = 0;
1635
+
1636
+ /**
1637
+ * @generated from field: string command = 8;
1638
+ */
1639
+ command = "";
1640
+
1641
+ /**
1642
+ * @generated from field: norsk.api.common.ServiceParameters parameters = 9;
1643
+ */
1644
+ parameters?: ServiceParameters;
1645
+
1646
+ constructor(data?: PartialMessage<Service>) {
1647
+ super();
1648
+ proto3.util.initPartial(data, this);
1649
+ }
1650
+
1651
+ static readonly runtime = proto3;
1652
+ static readonly typeName = "norsk.api.common.Service";
1653
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1654
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1655
+ { no: 2, name: "docker", kind: "message", T: DockerContainer, oneof: "container" },
1656
+ { no: 3, name: "restart", kind: "enum", T: proto3.getEnumType(Service_ServiceRestart) },
1657
+ { no: 4, name: "dependsOn", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1658
+ { no: 5, name: "configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1659
+ { no: 6, name: "restart_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1660
+ { no: 7, name: "restart_period", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1661
+ { no: 8, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1662
+ { no: 9, name: "parameters", kind: "message", T: ServiceParameters },
1663
+ ]);
1664
+
1665
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Service {
1666
+ return new Service().fromBinary(bytes, options);
1667
+ }
1668
+
1669
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Service {
1670
+ return new Service().fromJson(jsonValue, options);
1671
+ }
1672
+
1673
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Service {
1674
+ return new Service().fromJsonString(jsonString, options);
1675
+ }
1676
+
1677
+ static equals(a: Service | PlainMessage<Service> | undefined, b: Service | PlainMessage<Service> | undefined): boolean {
1678
+ return proto3.util.equals(Service, a, b);
1679
+ }
1680
+ }
1681
+
1682
+ /**
1683
+ * @generated from enum norsk.api.common.Service.ServiceRestart
1684
+ */
1685
+ export enum Service_ServiceRestart {
1686
+ /**
1687
+ * @generated from enum value: NEVER = 0;
1688
+ */
1689
+ NEVER = 0,
1690
+
1691
+ /**
1692
+ * @generated from enum value: ON_FAILURE = 1;
1693
+ */
1694
+ ON_FAILURE = 1,
1695
+
1696
+ /**
1697
+ * @generated from enum value: ALWAYS = 2;
1698
+ */
1699
+ ALWAYS = 2,
1700
+ }
1701
+ // Retrieve enum metadata with: proto3.getEnumType(Service_ServiceRestart)
1702
+ proto3.util.setEnumType(Service_ServiceRestart, "norsk.api.common.Service.ServiceRestart", [
1703
+ { no: 0, name: "NEVER" },
1704
+ { no: 1, name: "ON_FAILURE" },
1705
+ { no: 2, name: "ALWAYS" },
1706
+ ]);
1707
+
1708
+ /**
1709
+ * @generated from message norsk.api.common.JobInfoServiceStarted
1710
+ */
1711
+ export class JobInfoServiceStarted extends Message<JobInfoServiceStarted> {
1712
+ /**
1713
+ * @generated from field: string service_name = 2;
1714
+ */
1715
+ serviceName = "";
1716
+
1717
+ constructor(data?: PartialMessage<JobInfoServiceStarted>) {
1718
+ super();
1719
+ proto3.util.initPartial(data, this);
1720
+ }
1721
+
1722
+ static readonly runtime = proto3;
1723
+ static readonly typeName = "norsk.api.common.JobInfoServiceStarted";
1724
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1725
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1726
+ ]);
1727
+
1728
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInfoServiceStarted {
1729
+ return new JobInfoServiceStarted().fromBinary(bytes, options);
1730
+ }
1731
+
1732
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInfoServiceStarted {
1733
+ return new JobInfoServiceStarted().fromJson(jsonValue, options);
1734
+ }
1735
+
1736
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInfoServiceStarted {
1737
+ return new JobInfoServiceStarted().fromJsonString(jsonString, options);
1738
+ }
1739
+
1740
+ static equals(a: JobInfoServiceStarted | PlainMessage<JobInfoServiceStarted> | undefined, b: JobInfoServiceStarted | PlainMessage<JobInfoServiceStarted> | undefined): boolean {
1741
+ return proto3.util.equals(JobInfoServiceStarted, a, b);
1742
+ }
1743
+ }
1744
+
1745
+ /**
1746
+ * @generated from message norsk.api.common.JobInfoServiceRestarting
1747
+ */
1748
+ export class JobInfoServiceRestarting extends Message<JobInfoServiceRestarting> {
1749
+ /**
1750
+ * @generated from field: string service_name = 2;
1751
+ */
1752
+ serviceName = "";
1753
+
1754
+ constructor(data?: PartialMessage<JobInfoServiceRestarting>) {
1755
+ super();
1756
+ proto3.util.initPartial(data, this);
1757
+ }
1758
+
1759
+ static readonly runtime = proto3;
1760
+ static readonly typeName = "norsk.api.common.JobInfoServiceRestarting";
1761
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1762
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1763
+ ]);
1764
+
1765
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInfoServiceRestarting {
1766
+ return new JobInfoServiceRestarting().fromBinary(bytes, options);
1767
+ }
1768
+
1769
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInfoServiceRestarting {
1770
+ return new JobInfoServiceRestarting().fromJson(jsonValue, options);
1771
+ }
1772
+
1773
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInfoServiceRestarting {
1774
+ return new JobInfoServiceRestarting().fromJsonString(jsonString, options);
1775
+ }
1776
+
1777
+ static equals(a: JobInfoServiceRestarting | PlainMessage<JobInfoServiceRestarting> | undefined, b: JobInfoServiceRestarting | PlainMessage<JobInfoServiceRestarting> | undefined): boolean {
1778
+ return proto3.util.equals(JobInfoServiceRestarting, a, b);
1779
+ }
1780
+ }
1781
+
1782
+ /**
1783
+ * @generated from message norsk.api.common.JobInfoContainerEvent
1784
+ */
1785
+ export class JobInfoContainerEvent extends Message<JobInfoContainerEvent> {
1786
+ /**
1787
+ * @generated from field: string service_name = 2;
1788
+ */
1789
+ serviceName = "";
1790
+
1791
+ /**
1792
+ * @generated from field: string text = 3;
1793
+ */
1794
+ text = "";
1795
+
1796
+ constructor(data?: PartialMessage<JobInfoContainerEvent>) {
1797
+ super();
1798
+ proto3.util.initPartial(data, this);
1799
+ }
1800
+
1801
+ static readonly runtime = proto3;
1802
+ static readonly typeName = "norsk.api.common.JobInfoContainerEvent";
1803
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1804
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1805
+ { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1806
+ ]);
1807
+
1808
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInfoContainerEvent {
1809
+ return new JobInfoContainerEvent().fromBinary(bytes, options);
1810
+ }
1811
+
1812
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInfoContainerEvent {
1813
+ return new JobInfoContainerEvent().fromJson(jsonValue, options);
1814
+ }
1815
+
1816
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInfoContainerEvent {
1817
+ return new JobInfoContainerEvent().fromJsonString(jsonString, options);
1818
+ }
1819
+
1820
+ static equals(a: JobInfoContainerEvent | PlainMessage<JobInfoContainerEvent> | undefined, b: JobInfoContainerEvent | PlainMessage<JobInfoContainerEvent> | undefined): boolean {
1821
+ return proto3.util.equals(JobInfoContainerEvent, a, b);
1822
+ }
1823
+ }
1824
+
1825
+ /**
1826
+ * @generated from message norsk.api.common.JobInfoComponseMessage
1827
+ */
1828
+ export class JobInfoComponseMessage extends Message<JobInfoComponseMessage> {
1829
+ /**
1830
+ * @generated from field: norsk.api.common.JobInfoComponseMessage.Stage stage = 2;
1831
+ */
1832
+ stage = JobInfoComponseMessage_Stage.BUILD;
1833
+
1834
+ /**
1835
+ * @generated from field: string text = 3;
1836
+ */
1837
+ text = "";
1838
+
1839
+ constructor(data?: PartialMessage<JobInfoComponseMessage>) {
1840
+ super();
1841
+ proto3.util.initPartial(data, this);
1842
+ }
1843
+
1844
+ static readonly runtime = proto3;
1845
+ static readonly typeName = "norsk.api.common.JobInfoComponseMessage";
1846
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1847
+ { no: 2, name: "stage", kind: "enum", T: proto3.getEnumType(JobInfoComponseMessage_Stage) },
1848
+ { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1849
+ ]);
1850
+
1851
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInfoComponseMessage {
1852
+ return new JobInfoComponseMessage().fromBinary(bytes, options);
1853
+ }
1854
+
1855
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInfoComponseMessage {
1856
+ return new JobInfoComponseMessage().fromJson(jsonValue, options);
1857
+ }
1858
+
1859
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInfoComponseMessage {
1860
+ return new JobInfoComponseMessage().fromJsonString(jsonString, options);
1861
+ }
1862
+
1863
+ static equals(a: JobInfoComponseMessage | PlainMessage<JobInfoComponseMessage> | undefined, b: JobInfoComponseMessage | PlainMessage<JobInfoComponseMessage> | undefined): boolean {
1864
+ return proto3.util.equals(JobInfoComponseMessage, a, b);
1865
+ }
1866
+ }
1867
+
1868
+ /**
1869
+ * @generated from enum norsk.api.common.JobInfoComponseMessage.Stage
1870
+ */
1871
+ export enum JobInfoComponseMessage_Stage {
1872
+ /**
1873
+ * @generated from enum value: BUILD = 0;
1874
+ */
1875
+ BUILD = 0,
1876
+
1877
+ /**
1878
+ * @generated from enum value: CREATE = 1;
1879
+ */
1880
+ CREATE = 1,
1881
+
1882
+ /**
1883
+ * @generated from enum value: START = 2;
1884
+ */
1885
+ START = 2,
1886
+
1887
+ /**
1888
+ * @generated from enum value: STOP = 3;
1889
+ */
1890
+ STOP = 3,
1891
+
1892
+ /**
1893
+ * @generated from enum value: DOWN = 4;
1894
+ */
1895
+ DOWN = 4,
1896
+ }
1897
+ // Retrieve enum metadata with: proto3.getEnumType(JobInfoComponseMessage_Stage)
1898
+ proto3.util.setEnumType(JobInfoComponseMessage_Stage, "norsk.api.common.JobInfoComponseMessage.Stage", [
1899
+ { no: 0, name: "BUILD" },
1900
+ { no: 1, name: "CREATE" },
1901
+ { no: 2, name: "START" },
1902
+ { no: 3, name: "STOP" },
1903
+ { no: 4, name: "DOWN" },
1904
+ ]);
1905
+
1906
+ /**
1907
+ * @generated from message norsk.api.common.JobInfoMessage
1908
+ */
1909
+ export class JobInfoMessage extends Message<JobInfoMessage> {
1910
+ /**
1911
+ * @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
1912
+ */
1913
+ jobKey?: ActiveJobKey;
1914
+
1915
+ /**
1916
+ * @generated from field: google.protobuf.Timestamp timestamp = 2;
1917
+ */
1918
+ timestamp?: Timestamp;
1919
+
1920
+ /**
1921
+ * @generated from oneof norsk.api.common.JobInfoMessage.message
1922
+ */
1923
+ message: {
1924
+ /**
1925
+ * @generated from field: norsk.api.common.JobInfoServiceStarted service_started = 3;
1926
+ */
1927
+ value: JobInfoServiceStarted;
1928
+ case: "serviceStarted";
1929
+ } | {
1930
+ /**
1931
+ * @generated from field: norsk.api.common.JobInfoServiceRestarting service_restarting = 4;
1932
+ */
1933
+ value: JobInfoServiceRestarting;
1934
+ case: "serviceRestarting";
1935
+ } | {
1936
+ /**
1937
+ * @generated from field: norsk.api.common.JobInfoContainerEvent container_event = 5;
1938
+ */
1939
+ value: JobInfoContainerEvent;
1940
+ case: "containerEvent";
1941
+ } | {
1942
+ /**
1943
+ * @generated from field: norsk.api.common.JobInfoComponseMessage compose_message = 6;
1944
+ */
1945
+ value: JobInfoComponseMessage;
1946
+ case: "composeMessage";
1947
+ } | { case: undefined; value?: undefined } = { case: undefined };
1948
+
1949
+ constructor(data?: PartialMessage<JobInfoMessage>) {
1950
+ super();
1951
+ proto3.util.initPartial(data, this);
1952
+ }
1953
+
1954
+ static readonly runtime = proto3;
1955
+ static readonly typeName = "norsk.api.common.JobInfoMessage";
1956
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1957
+ { no: 1, name: "job_key", kind: "message", T: ActiveJobKey },
1958
+ { no: 2, name: "timestamp", kind: "message", T: Timestamp },
1959
+ { no: 3, name: "service_started", kind: "message", T: JobInfoServiceStarted, oneof: "message" },
1960
+ { no: 4, name: "service_restarting", kind: "message", T: JobInfoServiceRestarting, oneof: "message" },
1961
+ { no: 5, name: "container_event", kind: "message", T: JobInfoContainerEvent, oneof: "message" },
1962
+ { no: 6, name: "compose_message", kind: "message", T: JobInfoComponseMessage, oneof: "message" },
1963
+ ]);
1964
+
1965
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInfoMessage {
1966
+ return new JobInfoMessage().fromBinary(bytes, options);
1967
+ }
1968
+
1969
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInfoMessage {
1970
+ return new JobInfoMessage().fromJson(jsonValue, options);
1971
+ }
1972
+
1973
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInfoMessage {
1974
+ return new JobInfoMessage().fromJsonString(jsonString, options);
1975
+ }
1976
+
1977
+ static equals(a: JobInfoMessage | PlainMessage<JobInfoMessage> | undefined, b: JobInfoMessage | PlainMessage<JobInfoMessage> | undefined): boolean {
1978
+ return proto3.util.equals(JobInfoMessage, a, b);
1979
+ }
1980
+ }
1981
+