@norskvideo/norsk-api 1.0.345 → 1.0.347

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,8 +4,175 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.Log_Level = exports.Log = exports.CurrentLoad = exports.SchedulerUtilization = exports.QuorumDefinition = exports.Version = void 0;
7
+ exports.JobInfoMessage = exports.JobInfoComponseMessage_Stage = exports.JobInfoComponseMessage = exports.JobInfoContainerEvent = exports.JobInfoServiceRestarting = exports.JobInfoServiceStarted = exports.Service_ServiceRestart = exports.Service = exports.ServiceParameters = exports.VolumeMount = exports.EnvironmentVariable = exports.ResolvedPortMappings = exports.ResolvedPortMapping = exports.PortMapping = exports.HostPortSpecific = exports.HostPortRange = exports.HostPortEphemeral = exports.Log_Level = exports.Log = exports.DockerContainer = exports.ContainerUrl = exports.ActiveJobKey = exports.JobId = exports.NodeId = exports.RunningNodeMetadata = exports.RunningNodeProviderMetadata = exports.RunningTestMetadata = exports.RunningOciMetadata = exports.RunningAwsMetadata = exports.NodeMetadata = exports.ProviderMetadata = exports.TestMetadata = exports.OciMetadata = exports.AwsMetadata = exports.CurrentLoad = exports.SchedulerUtilization = exports.QuorumDefinition = exports.Version = exports.OptionalString = exports.OptionalBool = exports.OptionalInt64 = exports.OptionalInt = exports.ProtocolFamily = exports.Architecture = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
+ /**
10
+ * @generated from enum norsk.api.common.Architecture
11
+ */
12
+ var Architecture;
13
+ (function (Architecture) {
14
+ /**
15
+ * @generated from enum value: X86_64 = 0;
16
+ */
17
+ Architecture[Architecture["X86_64"] = 0] = "X86_64";
18
+ /**
19
+ * @generated from enum value: AARCH_64 = 1;
20
+ */
21
+ Architecture[Architecture["AARCH_64"] = 1] = "AARCH_64";
22
+ })(Architecture = exports.Architecture || (exports.Architecture = {}));
23
+ // Retrieve enum metadata with: proto3.getEnumType(Architecture)
24
+ protobuf_1.proto3.util.setEnumType(Architecture, "norsk.api.common.Architecture", [
25
+ { no: 0, name: "X86_64" },
26
+ { no: 1, name: "AARCH_64" },
27
+ ]);
28
+ /**
29
+ * @generated from enum norsk.api.common.ProtocolFamily
30
+ */
31
+ var ProtocolFamily;
32
+ (function (ProtocolFamily) {
33
+ /**
34
+ * @generated from enum value: ANY = 0;
35
+ */
36
+ ProtocolFamily[ProtocolFamily["ANY"] = 0] = "ANY";
37
+ /**
38
+ * @generated from enum value: UDP = 1;
39
+ */
40
+ ProtocolFamily[ProtocolFamily["UDP"] = 1] = "UDP";
41
+ /**
42
+ * @generated from enum value: TCP = 2;
43
+ */
44
+ ProtocolFamily[ProtocolFamily["TCP"] = 2] = "TCP";
45
+ })(ProtocolFamily = exports.ProtocolFamily || (exports.ProtocolFamily = {}));
46
+ // Retrieve enum metadata with: proto3.getEnumType(ProtocolFamily)
47
+ protobuf_1.proto3.util.setEnumType(ProtocolFamily, "norsk.api.common.ProtocolFamily", [
48
+ { no: 0, name: "ANY" },
49
+ { no: 1, name: "UDP" },
50
+ { no: 2, name: "TCP" },
51
+ ]);
52
+ /**
53
+ * @generated from message norsk.api.common.OptionalInt
54
+ */
55
+ class OptionalInt extends protobuf_1.Message {
56
+ constructor(data) {
57
+ super();
58
+ /**
59
+ * @generated from field: uint32 value = 1;
60
+ */
61
+ this.value = 0;
62
+ protobuf_1.proto3.util.initPartial(data, this);
63
+ }
64
+ static fromBinary(bytes, options) {
65
+ return new OptionalInt().fromBinary(bytes, options);
66
+ }
67
+ static fromJson(jsonValue, options) {
68
+ return new OptionalInt().fromJson(jsonValue, options);
69
+ }
70
+ static fromJsonString(jsonString, options) {
71
+ return new OptionalInt().fromJsonString(jsonString, options);
72
+ }
73
+ static equals(a, b) {
74
+ return protobuf_1.proto3.util.equals(OptionalInt, a, b);
75
+ }
76
+ }
77
+ exports.OptionalInt = OptionalInt;
78
+ OptionalInt.runtime = protobuf_1.proto3;
79
+ OptionalInt.typeName = "norsk.api.common.OptionalInt";
80
+ OptionalInt.fields = protobuf_1.proto3.util.newFieldList(() => [
81
+ { no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
82
+ ]);
83
+ /**
84
+ * @generated from message norsk.api.common.OptionalInt64
85
+ */
86
+ class OptionalInt64 extends protobuf_1.Message {
87
+ constructor(data) {
88
+ super();
89
+ /**
90
+ * @generated from field: uint64 value = 1;
91
+ */
92
+ this.value = protobuf_1.protoInt64.zero;
93
+ protobuf_1.proto3.util.initPartial(data, this);
94
+ }
95
+ static fromBinary(bytes, options) {
96
+ return new OptionalInt64().fromBinary(bytes, options);
97
+ }
98
+ static fromJson(jsonValue, options) {
99
+ return new OptionalInt64().fromJson(jsonValue, options);
100
+ }
101
+ static fromJsonString(jsonString, options) {
102
+ return new OptionalInt64().fromJsonString(jsonString, options);
103
+ }
104
+ static equals(a, b) {
105
+ return protobuf_1.proto3.util.equals(OptionalInt64, a, b);
106
+ }
107
+ }
108
+ exports.OptionalInt64 = OptionalInt64;
109
+ OptionalInt64.runtime = protobuf_1.proto3;
110
+ OptionalInt64.typeName = "norsk.api.common.OptionalInt64";
111
+ OptionalInt64.fields = protobuf_1.proto3.util.newFieldList(() => [
112
+ { no: 1, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
113
+ ]);
114
+ /**
115
+ * @generated from message norsk.api.common.OptionalBool
116
+ */
117
+ class OptionalBool extends protobuf_1.Message {
118
+ constructor(data) {
119
+ super();
120
+ /**
121
+ * @generated from field: bool value = 1;
122
+ */
123
+ this.value = false;
124
+ protobuf_1.proto3.util.initPartial(data, this);
125
+ }
126
+ static fromBinary(bytes, options) {
127
+ return new OptionalBool().fromBinary(bytes, options);
128
+ }
129
+ static fromJson(jsonValue, options) {
130
+ return new OptionalBool().fromJson(jsonValue, options);
131
+ }
132
+ static fromJsonString(jsonString, options) {
133
+ return new OptionalBool().fromJsonString(jsonString, options);
134
+ }
135
+ static equals(a, b) {
136
+ return protobuf_1.proto3.util.equals(OptionalBool, a, b);
137
+ }
138
+ }
139
+ exports.OptionalBool = OptionalBool;
140
+ OptionalBool.runtime = protobuf_1.proto3;
141
+ OptionalBool.typeName = "norsk.api.common.OptionalBool";
142
+ OptionalBool.fields = protobuf_1.proto3.util.newFieldList(() => [
143
+ { no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
144
+ ]);
145
+ /**
146
+ * @generated from message norsk.api.common.OptionalString
147
+ */
148
+ class OptionalString extends protobuf_1.Message {
149
+ constructor(data) {
150
+ super();
151
+ /**
152
+ * @generated from field: string value = 1;
153
+ */
154
+ this.value = "";
155
+ protobuf_1.proto3.util.initPartial(data, this);
156
+ }
157
+ static fromBinary(bytes, options) {
158
+ return new OptionalString().fromBinary(bytes, options);
159
+ }
160
+ static fromJson(jsonValue, options) {
161
+ return new OptionalString().fromJson(jsonValue, options);
162
+ }
163
+ static fromJsonString(jsonString, options) {
164
+ return new OptionalString().fromJsonString(jsonString, options);
165
+ }
166
+ static equals(a, b) {
167
+ return protobuf_1.proto3.util.equals(OptionalString, a, b);
168
+ }
169
+ }
170
+ exports.OptionalString = OptionalString;
171
+ OptionalString.runtime = protobuf_1.proto3;
172
+ OptionalString.typeName = "norsk.api.common.OptionalString";
173
+ OptionalString.fields = protobuf_1.proto3.util.newFieldList(() => [
174
+ { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
175
+ ]);
9
176
  /**
10
177
  * `Version` gives version information about the currently running Norsk release
11
178
  *
@@ -191,98 +358,1200 @@ CurrentLoad.fields = protobuf_1.proto3.util.newFieldList(() => [
191
358
  { no: 3, name: "schedulerUtilization", kind: "message", T: SchedulerUtilization },
192
359
  ]);
193
360
  /**
194
- * @generated from message norsk.api.common.Log
361
+ * @generated from message norsk.api.common.AwsMetadata
195
362
  */
196
- class Log extends protobuf_1.Message {
363
+ class AwsMetadata extends protobuf_1.Message {
197
364
  constructor(data) {
198
365
  super();
199
366
  /**
200
- * @generated from field: norsk.api.common.Log.Level level = 1;
367
+ * @generated from field: string instance_type = 1;
201
368
  */
202
- this.level = Log_Level.EMERGENCY;
369
+ this.instanceType = "";
203
370
  /**
204
- * @generated from field: uint64 timestamp = 2;
371
+ * @generated from field: string region = 2;
205
372
  */
206
- this.timestamp = protobuf_1.protoInt64.zero;
373
+ this.region = "";
207
374
  /**
208
- * @generated from field: string msg = 3;
375
+ * @generated from field: norsk.api.common.Architecture architecture = 3;
209
376
  */
210
- this.msg = "";
377
+ this.architecture = Architecture.X86_64;
378
+ protobuf_1.proto3.util.initPartial(data, this);
379
+ }
380
+ static fromBinary(bytes, options) {
381
+ return new AwsMetadata().fromBinary(bytes, options);
382
+ }
383
+ static fromJson(jsonValue, options) {
384
+ return new AwsMetadata().fromJson(jsonValue, options);
385
+ }
386
+ static fromJsonString(jsonString, options) {
387
+ return new AwsMetadata().fromJsonString(jsonString, options);
388
+ }
389
+ static equals(a, b) {
390
+ return protobuf_1.proto3.util.equals(AwsMetadata, a, b);
391
+ }
392
+ }
393
+ exports.AwsMetadata = AwsMetadata;
394
+ AwsMetadata.runtime = protobuf_1.proto3;
395
+ AwsMetadata.typeName = "norsk.api.common.AwsMetadata";
396
+ AwsMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
397
+ { no: 1, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
398
+ { no: 2, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
399
+ { no: 3, name: "architecture", kind: "enum", T: protobuf_1.proto3.getEnumType(Architecture) },
400
+ ]);
401
+ /**
402
+ * @generated from message norsk.api.common.OciMetadata
403
+ */
404
+ class OciMetadata extends protobuf_1.Message {
405
+ constructor(data) {
406
+ super();
407
+ protobuf_1.proto3.util.initPartial(data, this);
408
+ }
409
+ static fromBinary(bytes, options) {
410
+ return new OciMetadata().fromBinary(bytes, options);
411
+ }
412
+ static fromJson(jsonValue, options) {
413
+ return new OciMetadata().fromJson(jsonValue, options);
414
+ }
415
+ static fromJsonString(jsonString, options) {
416
+ return new OciMetadata().fromJsonString(jsonString, options);
417
+ }
418
+ static equals(a, b) {
419
+ return protobuf_1.proto3.util.equals(OciMetadata, a, b);
420
+ }
421
+ }
422
+ exports.OciMetadata = OciMetadata;
423
+ OciMetadata.runtime = protobuf_1.proto3;
424
+ OciMetadata.typeName = "norsk.api.common.OciMetadata";
425
+ OciMetadata.fields = protobuf_1.proto3.util.newFieldList(() => []);
426
+ /**
427
+ * @generated from message norsk.api.common.TestMetadata
428
+ */
429
+ class TestMetadata extends protobuf_1.Message {
430
+ constructor(data) {
431
+ super();
432
+ protobuf_1.proto3.util.initPartial(data, this);
433
+ }
434
+ static fromBinary(bytes, options) {
435
+ return new TestMetadata().fromBinary(bytes, options);
436
+ }
437
+ static fromJson(jsonValue, options) {
438
+ return new TestMetadata().fromJson(jsonValue, options);
439
+ }
440
+ static fromJsonString(jsonString, options) {
441
+ return new TestMetadata().fromJsonString(jsonString, options);
442
+ }
443
+ static equals(a, b) {
444
+ return protobuf_1.proto3.util.equals(TestMetadata, a, b);
445
+ }
446
+ }
447
+ exports.TestMetadata = TestMetadata;
448
+ TestMetadata.runtime = protobuf_1.proto3;
449
+ TestMetadata.typeName = "norsk.api.common.TestMetadata";
450
+ TestMetadata.fields = protobuf_1.proto3.util.newFieldList(() => []);
451
+ /**
452
+ * @generated from message norsk.api.common.ProviderMetadata
453
+ */
454
+ class ProviderMetadata extends protobuf_1.Message {
455
+ constructor(data) {
456
+ super();
211
457
  /**
212
- * @generated from field: string metadata = 4;
458
+ * @generated from oneof norsk.api.common.ProviderMetadata.metadata
213
459
  */
214
- this.metadata = "";
460
+ this.metadata = { case: undefined };
215
461
  protobuf_1.proto3.util.initPartial(data, this);
216
462
  }
217
463
  static fromBinary(bytes, options) {
218
- return new Log().fromBinary(bytes, options);
464
+ return new ProviderMetadata().fromBinary(bytes, options);
219
465
  }
220
466
  static fromJson(jsonValue, options) {
221
- return new Log().fromJson(jsonValue, options);
467
+ return new ProviderMetadata().fromJson(jsonValue, options);
222
468
  }
223
469
  static fromJsonString(jsonString, options) {
224
- return new Log().fromJsonString(jsonString, options);
470
+ return new ProviderMetadata().fromJsonString(jsonString, options);
225
471
  }
226
472
  static equals(a, b) {
227
- return protobuf_1.proto3.util.equals(Log, a, b);
473
+ return protobuf_1.proto3.util.equals(ProviderMetadata, a, b);
228
474
  }
229
475
  }
230
- exports.Log = Log;
231
- Log.runtime = protobuf_1.proto3;
232
- Log.typeName = "norsk.api.common.Log";
233
- Log.fields = protobuf_1.proto3.util.newFieldList(() => [
234
- { no: 1, name: "level", kind: "enum", T: protobuf_1.proto3.getEnumType(Log_Level) },
235
- { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
236
- { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
237
- { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
476
+ exports.ProviderMetadata = ProviderMetadata;
477
+ ProviderMetadata.runtime = protobuf_1.proto3;
478
+ ProviderMetadata.typeName = "norsk.api.common.ProviderMetadata";
479
+ ProviderMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
480
+ { no: 1, name: "aws", kind: "message", T: AwsMetadata, oneof: "metadata" },
481
+ { no: 2, name: "oci", kind: "message", T: OciMetadata, oneof: "metadata" },
482
+ { no: 3, name: "test", kind: "message", T: TestMetadata, oneof: "metadata" },
238
483
  ]);
239
484
  /**
240
- * @generated from enum norsk.api.common.Log.Level
485
+ * @generated from message norsk.api.common.NodeMetadata
241
486
  */
242
- var Log_Level;
243
- (function (Log_Level) {
244
- /**
245
- * @generated from enum value: EMERGENCY = 0;
246
- */
247
- Log_Level[Log_Level["EMERGENCY"] = 0] = "EMERGENCY";
248
- /**
249
- * @generated from enum value: ALERT = 1;
250
- */
251
- Log_Level[Log_Level["ALERT"] = 1] = "ALERT";
252
- /**
253
- * @generated from enum value: CRITICAL = 2;
254
- */
255
- Log_Level[Log_Level["CRITICAL"] = 2] = "CRITICAL";
256
- /**
257
- * @generated from enum value: ERROR = 3;
258
- */
259
- Log_Level[Log_Level["ERROR"] = 3] = "ERROR";
260
- /**
261
- * @generated from enum value: WARNING = 4;
262
- */
263
- Log_Level[Log_Level["WARNING"] = 4] = "WARNING";
264
- /**
265
- * @generated from enum value: NOTICE = 5;
266
- */
267
- Log_Level[Log_Level["NOTICE"] = 5] = "NOTICE";
268
- /**
269
- * @generated from enum value: INFO = 6;
270
- */
271
- Log_Level[Log_Level["INFO"] = 6] = "INFO";
272
- /**
273
- * @generated from enum value: DEBUG = 7;
274
- */
275
- Log_Level[Log_Level["DEBUG"] = 7] = "DEBUG";
276
- })(Log_Level = exports.Log_Level || (exports.Log_Level = {}));
277
- // Retrieve enum metadata with: proto3.getEnumType(Log_Level)
278
- protobuf_1.proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
279
- { no: 0, name: "EMERGENCY" },
280
- { no: 1, name: "ALERT" },
281
- { no: 2, name: "CRITICAL" },
282
- { no: 3, name: "ERROR" },
283
- { no: 4, name: "WARNING" },
284
- { no: 5, name: "NOTICE" },
285
- { no: 6, name: "INFO" },
286
- { no: 7, name: "DEBUG" },
487
+ class NodeMetadata extends protobuf_1.Message {
488
+ constructor(data) {
489
+ super();
490
+ /**
491
+ * @generated from field: map<string, string> tags = 2;
492
+ */
493
+ this.tags = {};
494
+ protobuf_1.proto3.util.initPartial(data, this);
495
+ }
496
+ static fromBinary(bytes, options) {
497
+ return new NodeMetadata().fromBinary(bytes, options);
498
+ }
499
+ static fromJson(jsonValue, options) {
500
+ return new NodeMetadata().fromJson(jsonValue, options);
501
+ }
502
+ static fromJsonString(jsonString, options) {
503
+ return new NodeMetadata().fromJsonString(jsonString, options);
504
+ }
505
+ static equals(a, b) {
506
+ return protobuf_1.proto3.util.equals(NodeMetadata, a, b);
507
+ }
508
+ }
509
+ exports.NodeMetadata = NodeMetadata;
510
+ NodeMetadata.runtime = protobuf_1.proto3;
511
+ NodeMetadata.typeName = "norsk.api.common.NodeMetadata";
512
+ NodeMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
513
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
514
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
515
+ { no: 3, name: "created_at", kind: "message", T: protobuf_1.Timestamp },
516
+ { no: 4, name: "provider_metadata", kind: "message", T: ProviderMetadata },
517
+ ]);
518
+ /**
519
+ * @generated from message norsk.api.common.RunningAwsMetadata
520
+ */
521
+ class RunningAwsMetadata extends protobuf_1.Message {
522
+ constructor(data) {
523
+ super();
524
+ /**
525
+ * @generated from field: string instance_id = 1;
526
+ */
527
+ this.instanceId = "";
528
+ protobuf_1.proto3.util.initPartial(data, this);
529
+ }
530
+ static fromBinary(bytes, options) {
531
+ return new RunningAwsMetadata().fromBinary(bytes, options);
532
+ }
533
+ static fromJson(jsonValue, options) {
534
+ return new RunningAwsMetadata().fromJson(jsonValue, options);
535
+ }
536
+ static fromJsonString(jsonString, options) {
537
+ return new RunningAwsMetadata().fromJsonString(jsonString, options);
538
+ }
539
+ static equals(a, b) {
540
+ return protobuf_1.proto3.util.equals(RunningAwsMetadata, a, b);
541
+ }
542
+ }
543
+ exports.RunningAwsMetadata = RunningAwsMetadata;
544
+ RunningAwsMetadata.runtime = protobuf_1.proto3;
545
+ RunningAwsMetadata.typeName = "norsk.api.common.RunningAwsMetadata";
546
+ RunningAwsMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
547
+ { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
548
+ ]);
549
+ /**
550
+ * @generated from message norsk.api.common.RunningOciMetadata
551
+ */
552
+ class RunningOciMetadata extends protobuf_1.Message {
553
+ constructor(data) {
554
+ super();
555
+ protobuf_1.proto3.util.initPartial(data, this);
556
+ }
557
+ static fromBinary(bytes, options) {
558
+ return new RunningOciMetadata().fromBinary(bytes, options);
559
+ }
560
+ static fromJson(jsonValue, options) {
561
+ return new RunningOciMetadata().fromJson(jsonValue, options);
562
+ }
563
+ static fromJsonString(jsonString, options) {
564
+ return new RunningOciMetadata().fromJsonString(jsonString, options);
565
+ }
566
+ static equals(a, b) {
567
+ return protobuf_1.proto3.util.equals(RunningOciMetadata, a, b);
568
+ }
569
+ }
570
+ exports.RunningOciMetadata = RunningOciMetadata;
571
+ RunningOciMetadata.runtime = protobuf_1.proto3;
572
+ RunningOciMetadata.typeName = "norsk.api.common.RunningOciMetadata";
573
+ RunningOciMetadata.fields = protobuf_1.proto3.util.newFieldList(() => []);
574
+ /**
575
+ * @generated from message norsk.api.common.RunningTestMetadata
576
+ */
577
+ class RunningTestMetadata extends protobuf_1.Message {
578
+ constructor(data) {
579
+ super();
580
+ protobuf_1.proto3.util.initPartial(data, this);
581
+ }
582
+ static fromBinary(bytes, options) {
583
+ return new RunningTestMetadata().fromBinary(bytes, options);
584
+ }
585
+ static fromJson(jsonValue, options) {
586
+ return new RunningTestMetadata().fromJson(jsonValue, options);
587
+ }
588
+ static fromJsonString(jsonString, options) {
589
+ return new RunningTestMetadata().fromJsonString(jsonString, options);
590
+ }
591
+ static equals(a, b) {
592
+ return protobuf_1.proto3.util.equals(RunningTestMetadata, a, b);
593
+ }
594
+ }
595
+ exports.RunningTestMetadata = RunningTestMetadata;
596
+ RunningTestMetadata.runtime = protobuf_1.proto3;
597
+ RunningTestMetadata.typeName = "norsk.api.common.RunningTestMetadata";
598
+ RunningTestMetadata.fields = protobuf_1.proto3.util.newFieldList(() => []);
599
+ /**
600
+ * @generated from message norsk.api.common.RunningNodeProviderMetadata
601
+ */
602
+ class RunningNodeProviderMetadata extends protobuf_1.Message {
603
+ constructor(data) {
604
+ super();
605
+ /**
606
+ * @generated from oneof norsk.api.common.RunningNodeProviderMetadata.instance
607
+ */
608
+ this.instance = { case: undefined };
609
+ protobuf_1.proto3.util.initPartial(data, this);
610
+ }
611
+ static fromBinary(bytes, options) {
612
+ return new RunningNodeProviderMetadata().fromBinary(bytes, options);
613
+ }
614
+ static fromJson(jsonValue, options) {
615
+ return new RunningNodeProviderMetadata().fromJson(jsonValue, options);
616
+ }
617
+ static fromJsonString(jsonString, options) {
618
+ return new RunningNodeProviderMetadata().fromJsonString(jsonString, options);
619
+ }
620
+ static equals(a, b) {
621
+ return protobuf_1.proto3.util.equals(RunningNodeProviderMetadata, a, b);
622
+ }
623
+ }
624
+ exports.RunningNodeProviderMetadata = RunningNodeProviderMetadata;
625
+ RunningNodeProviderMetadata.runtime = protobuf_1.proto3;
626
+ RunningNodeProviderMetadata.typeName = "norsk.api.common.RunningNodeProviderMetadata";
627
+ RunningNodeProviderMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
628
+ { no: 1, name: "aws", kind: "message", T: RunningAwsMetadata, oneof: "instance" },
629
+ { no: 2, name: "oci", kind: "message", T: RunningOciMetadata, oneof: "instance" },
630
+ { no: 3, name: "test", kind: "message", T: RunningTestMetadata, oneof: "instance" },
631
+ ]);
632
+ /**
633
+ * @generated from message norsk.api.common.RunningNodeMetadata
634
+ */
635
+ class RunningNodeMetadata extends protobuf_1.Message {
636
+ constructor(data) {
637
+ super();
638
+ /**
639
+ * @generated from field: string public_dns_name = 1;
640
+ */
641
+ this.publicDnsName = "";
642
+ /**
643
+ * @generated from field: string private_dns_name = 2;
644
+ */
645
+ this.privateDnsName = "";
646
+ /**
647
+ * @generated from field: string private_ip_address = 3;
648
+ */
649
+ this.privateIpAddress = "";
650
+ protobuf_1.proto3.util.initPartial(data, this);
651
+ }
652
+ static fromBinary(bytes, options) {
653
+ return new RunningNodeMetadata().fromBinary(bytes, options);
654
+ }
655
+ static fromJson(jsonValue, options) {
656
+ return new RunningNodeMetadata().fromJson(jsonValue, options);
657
+ }
658
+ static fromJsonString(jsonString, options) {
659
+ return new RunningNodeMetadata().fromJsonString(jsonString, options);
660
+ }
661
+ static equals(a, b) {
662
+ return protobuf_1.proto3.util.equals(RunningNodeMetadata, a, b);
663
+ }
664
+ }
665
+ exports.RunningNodeMetadata = RunningNodeMetadata;
666
+ RunningNodeMetadata.runtime = protobuf_1.proto3;
667
+ RunningNodeMetadata.typeName = "norsk.api.common.RunningNodeMetadata";
668
+ RunningNodeMetadata.fields = protobuf_1.proto3.util.newFieldList(() => [
669
+ { no: 1, name: "public_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
670
+ { no: 2, name: "private_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
671
+ { no: 3, name: "private_ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
672
+ { no: 4, name: "provider_metadata", kind: "message", T: RunningNodeProviderMetadata },
673
+ ]);
674
+ /**
675
+ * @generated from message norsk.api.common.NodeId
676
+ */
677
+ class NodeId extends protobuf_1.Message {
678
+ constructor(data) {
679
+ super();
680
+ /**
681
+ * @generated from field: string node_id = 1;
682
+ */
683
+ this.nodeId = "";
684
+ protobuf_1.proto3.util.initPartial(data, this);
685
+ }
686
+ static fromBinary(bytes, options) {
687
+ return new NodeId().fromBinary(bytes, options);
688
+ }
689
+ static fromJson(jsonValue, options) {
690
+ return new NodeId().fromJson(jsonValue, options);
691
+ }
692
+ static fromJsonString(jsonString, options) {
693
+ return new NodeId().fromJsonString(jsonString, options);
694
+ }
695
+ static equals(a, b) {
696
+ return protobuf_1.proto3.util.equals(NodeId, a, b);
697
+ }
698
+ }
699
+ exports.NodeId = NodeId;
700
+ NodeId.runtime = protobuf_1.proto3;
701
+ NodeId.typeName = "norsk.api.common.NodeId";
702
+ NodeId.fields = protobuf_1.proto3.util.newFieldList(() => [
703
+ { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
704
+ ]);
705
+ /**
706
+ * @generated from message norsk.api.common.JobId
707
+ */
708
+ class JobId extends protobuf_1.Message {
709
+ constructor(data) {
710
+ super();
711
+ /**
712
+ * @generated from field: string job_id = 1;
713
+ */
714
+ this.jobId = "";
715
+ protobuf_1.proto3.util.initPartial(data, this);
716
+ }
717
+ static fromBinary(bytes, options) {
718
+ return new JobId().fromBinary(bytes, options);
719
+ }
720
+ static fromJson(jsonValue, options) {
721
+ return new JobId().fromJson(jsonValue, options);
722
+ }
723
+ static fromJsonString(jsonString, options) {
724
+ return new JobId().fromJsonString(jsonString, options);
725
+ }
726
+ static equals(a, b) {
727
+ return protobuf_1.proto3.util.equals(JobId, a, b);
728
+ }
729
+ }
730
+ exports.JobId = JobId;
731
+ JobId.runtime = protobuf_1.proto3;
732
+ JobId.typeName = "norsk.api.common.JobId";
733
+ JobId.fields = protobuf_1.proto3.util.newFieldList(() => [
734
+ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
735
+ ]);
736
+ /**
737
+ * @generated from message norsk.api.common.ActiveJobKey
738
+ */
739
+ class ActiveJobKey extends protobuf_1.Message {
740
+ constructor(data) {
741
+ super();
742
+ /**
743
+ * @generated from field: string role = 2;
744
+ */
745
+ this.role = "";
746
+ protobuf_1.proto3.util.initPartial(data, this);
747
+ }
748
+ static fromBinary(bytes, options) {
749
+ return new ActiveJobKey().fromBinary(bytes, options);
750
+ }
751
+ static fromJson(jsonValue, options) {
752
+ return new ActiveJobKey().fromJson(jsonValue, options);
753
+ }
754
+ static fromJsonString(jsonString, options) {
755
+ return new ActiveJobKey().fromJsonString(jsonString, options);
756
+ }
757
+ static equals(a, b) {
758
+ return protobuf_1.proto3.util.equals(ActiveJobKey, a, b);
759
+ }
760
+ }
761
+ exports.ActiveJobKey = ActiveJobKey;
762
+ ActiveJobKey.runtime = protobuf_1.proto3;
763
+ ActiveJobKey.typeName = "norsk.api.common.ActiveJobKey";
764
+ ActiveJobKey.fields = protobuf_1.proto3.util.newFieldList(() => [
765
+ { no: 1, name: "jobId", kind: "message", T: JobId },
766
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
767
+ ]);
768
+ /**
769
+ * @generated from message norsk.api.common.ContainerUrl
770
+ */
771
+ class ContainerUrl extends protobuf_1.Message {
772
+ constructor(data) {
773
+ super();
774
+ /**
775
+ * @generated from field: string url = 1;
776
+ */
777
+ this.url = "";
778
+ protobuf_1.proto3.util.initPartial(data, this);
779
+ }
780
+ static fromBinary(bytes, options) {
781
+ return new ContainerUrl().fromBinary(bytes, options);
782
+ }
783
+ static fromJson(jsonValue, options) {
784
+ return new ContainerUrl().fromJson(jsonValue, options);
785
+ }
786
+ static fromJsonString(jsonString, options) {
787
+ return new ContainerUrl().fromJsonString(jsonString, options);
788
+ }
789
+ static equals(a, b) {
790
+ return protobuf_1.proto3.util.equals(ContainerUrl, a, b);
791
+ }
792
+ }
793
+ exports.ContainerUrl = ContainerUrl;
794
+ ContainerUrl.runtime = protobuf_1.proto3;
795
+ ContainerUrl.typeName = "norsk.api.common.ContainerUrl";
796
+ ContainerUrl.fields = protobuf_1.proto3.util.newFieldList(() => [
797
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
798
+ ]);
799
+ /**
800
+ * @generated from message norsk.api.common.DockerContainer
801
+ */
802
+ class DockerContainer extends protobuf_1.Message {
803
+ constructor(data) {
804
+ super();
805
+ protobuf_1.proto3.util.initPartial(data, this);
806
+ }
807
+ static fromBinary(bytes, options) {
808
+ return new DockerContainer().fromBinary(bytes, options);
809
+ }
810
+ static fromJson(jsonValue, options) {
811
+ return new DockerContainer().fromJson(jsonValue, options);
812
+ }
813
+ static fromJsonString(jsonString, options) {
814
+ return new DockerContainer().fromJsonString(jsonString, options);
815
+ }
816
+ static equals(a, b) {
817
+ return protobuf_1.proto3.util.equals(DockerContainer, a, b);
818
+ }
819
+ }
820
+ exports.DockerContainer = DockerContainer;
821
+ DockerContainer.runtime = protobuf_1.proto3;
822
+ DockerContainer.typeName = "norsk.api.common.DockerContainer";
823
+ DockerContainer.fields = protobuf_1.proto3.util.newFieldList(() => [
824
+ { no: 1, name: "container_url", kind: "message", T: ContainerUrl },
825
+ ]);
826
+ /**
827
+ * @generated from message norsk.api.common.Log
828
+ */
829
+ class Log extends protobuf_1.Message {
830
+ constructor(data) {
831
+ super();
832
+ /**
833
+ * @generated from field: norsk.api.common.Log.Level level = 1;
834
+ */
835
+ this.level = Log_Level.EMERGENCY;
836
+ /**
837
+ * @generated from field: uint64 timestamp = 2;
838
+ */
839
+ this.timestamp = protobuf_1.protoInt64.zero;
840
+ /**
841
+ * @generated from field: string msg = 3;
842
+ */
843
+ this.msg = "";
844
+ /**
845
+ * @generated from field: string metadata = 4;
846
+ */
847
+ this.metadata = "";
848
+ protobuf_1.proto3.util.initPartial(data, this);
849
+ }
850
+ static fromBinary(bytes, options) {
851
+ return new Log().fromBinary(bytes, options);
852
+ }
853
+ static fromJson(jsonValue, options) {
854
+ return new Log().fromJson(jsonValue, options);
855
+ }
856
+ static fromJsonString(jsonString, options) {
857
+ return new Log().fromJsonString(jsonString, options);
858
+ }
859
+ static equals(a, b) {
860
+ return protobuf_1.proto3.util.equals(Log, a, b);
861
+ }
862
+ }
863
+ exports.Log = Log;
864
+ Log.runtime = protobuf_1.proto3;
865
+ Log.typeName = "norsk.api.common.Log";
866
+ Log.fields = protobuf_1.proto3.util.newFieldList(() => [
867
+ { no: 1, name: "level", kind: "enum", T: protobuf_1.proto3.getEnumType(Log_Level) },
868
+ { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
869
+ { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
870
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
871
+ ]);
872
+ /**
873
+ * @generated from enum norsk.api.common.Log.Level
874
+ */
875
+ var Log_Level;
876
+ (function (Log_Level) {
877
+ /**
878
+ * @generated from enum value: EMERGENCY = 0;
879
+ */
880
+ Log_Level[Log_Level["EMERGENCY"] = 0] = "EMERGENCY";
881
+ /**
882
+ * @generated from enum value: ALERT = 1;
883
+ */
884
+ Log_Level[Log_Level["ALERT"] = 1] = "ALERT";
885
+ /**
886
+ * @generated from enum value: CRITICAL = 2;
887
+ */
888
+ Log_Level[Log_Level["CRITICAL"] = 2] = "CRITICAL";
889
+ /**
890
+ * @generated from enum value: ERROR = 3;
891
+ */
892
+ Log_Level[Log_Level["ERROR"] = 3] = "ERROR";
893
+ /**
894
+ * @generated from enum value: WARNING = 4;
895
+ */
896
+ Log_Level[Log_Level["WARNING"] = 4] = "WARNING";
897
+ /**
898
+ * @generated from enum value: NOTICE = 5;
899
+ */
900
+ Log_Level[Log_Level["NOTICE"] = 5] = "NOTICE";
901
+ /**
902
+ * @generated from enum value: INFO = 6;
903
+ */
904
+ Log_Level[Log_Level["INFO"] = 6] = "INFO";
905
+ /**
906
+ * @generated from enum value: DEBUG = 7;
907
+ */
908
+ Log_Level[Log_Level["DEBUG"] = 7] = "DEBUG";
909
+ })(Log_Level = exports.Log_Level || (exports.Log_Level = {}));
910
+ // Retrieve enum metadata with: proto3.getEnumType(Log_Level)
911
+ protobuf_1.proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
912
+ { no: 0, name: "EMERGENCY" },
913
+ { no: 1, name: "ALERT" },
914
+ { no: 2, name: "CRITICAL" },
915
+ { no: 3, name: "ERROR" },
916
+ { no: 4, name: "WARNING" },
917
+ { no: 5, name: "NOTICE" },
918
+ { no: 6, name: "INFO" },
919
+ { no: 7, name: "DEBUG" },
920
+ ]);
921
+ /**
922
+ * @generated from message norsk.api.common.HostPortEphemeral
923
+ */
924
+ class HostPortEphemeral extends protobuf_1.Message {
925
+ constructor(data) {
926
+ super();
927
+ protobuf_1.proto3.util.initPartial(data, this);
928
+ }
929
+ static fromBinary(bytes, options) {
930
+ return new HostPortEphemeral().fromBinary(bytes, options);
931
+ }
932
+ static fromJson(jsonValue, options) {
933
+ return new HostPortEphemeral().fromJson(jsonValue, options);
934
+ }
935
+ static fromJsonString(jsonString, options) {
936
+ return new HostPortEphemeral().fromJsonString(jsonString, options);
937
+ }
938
+ static equals(a, b) {
939
+ return protobuf_1.proto3.util.equals(HostPortEphemeral, a, b);
940
+ }
941
+ }
942
+ exports.HostPortEphemeral = HostPortEphemeral;
943
+ HostPortEphemeral.runtime = protobuf_1.proto3;
944
+ HostPortEphemeral.typeName = "norsk.api.common.HostPortEphemeral";
945
+ HostPortEphemeral.fields = protobuf_1.proto3.util.newFieldList(() => []);
946
+ /**
947
+ * @generated from message norsk.api.common.HostPortRange
948
+ */
949
+ class HostPortRange extends protobuf_1.Message {
950
+ constructor(data) {
951
+ super();
952
+ /**
953
+ * @generated from field: uint32 min_port = 1;
954
+ */
955
+ this.minPort = 0;
956
+ /**
957
+ * @generated from field: uint32 max_port = 2;
958
+ */
959
+ this.maxPort = 0;
960
+ protobuf_1.proto3.util.initPartial(data, this);
961
+ }
962
+ static fromBinary(bytes, options) {
963
+ return new HostPortRange().fromBinary(bytes, options);
964
+ }
965
+ static fromJson(jsonValue, options) {
966
+ return new HostPortRange().fromJson(jsonValue, options);
967
+ }
968
+ static fromJsonString(jsonString, options) {
969
+ return new HostPortRange().fromJsonString(jsonString, options);
970
+ }
971
+ static equals(a, b) {
972
+ return protobuf_1.proto3.util.equals(HostPortRange, a, b);
973
+ }
974
+ }
975
+ exports.HostPortRange = HostPortRange;
976
+ HostPortRange.runtime = protobuf_1.proto3;
977
+ HostPortRange.typeName = "norsk.api.common.HostPortRange";
978
+ HostPortRange.fields = protobuf_1.proto3.util.newFieldList(() => [
979
+ { no: 1, name: "min_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
980
+ { no: 2, name: "max_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
981
+ ]);
982
+ /**
983
+ * @generated from message norsk.api.common.HostPortSpecific
984
+ */
985
+ class HostPortSpecific extends protobuf_1.Message {
986
+ constructor(data) {
987
+ super();
988
+ /**
989
+ * @generated from field: uint32 port = 1;
990
+ */
991
+ this.port = 0;
992
+ protobuf_1.proto3.util.initPartial(data, this);
993
+ }
994
+ static fromBinary(bytes, options) {
995
+ return new HostPortSpecific().fromBinary(bytes, options);
996
+ }
997
+ static fromJson(jsonValue, options) {
998
+ return new HostPortSpecific().fromJson(jsonValue, options);
999
+ }
1000
+ static fromJsonString(jsonString, options) {
1001
+ return new HostPortSpecific().fromJsonString(jsonString, options);
1002
+ }
1003
+ static equals(a, b) {
1004
+ return protobuf_1.proto3.util.equals(HostPortSpecific, a, b);
1005
+ }
1006
+ }
1007
+ exports.HostPortSpecific = HostPortSpecific;
1008
+ HostPortSpecific.runtime = protobuf_1.proto3;
1009
+ HostPortSpecific.typeName = "norsk.api.common.HostPortSpecific";
1010
+ HostPortSpecific.fields = protobuf_1.proto3.util.newFieldList(() => [
1011
+ { no: 1, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1012
+ ]);
1013
+ /**
1014
+ * @generated from message norsk.api.common.PortMapping
1015
+ */
1016
+ class PortMapping extends protobuf_1.Message {
1017
+ constructor(data) {
1018
+ super();
1019
+ /**
1020
+ * @generated from field: uint32 container_port = 1;
1021
+ */
1022
+ this.containerPort = 0;
1023
+ /**
1024
+ * @generated from field: norsk.api.common.ProtocolFamily protocol = 2;
1025
+ */
1026
+ this.protocol = ProtocolFamily.ANY;
1027
+ /**
1028
+ * @generated from oneof norsk.api.common.PortMapping.host_port
1029
+ */
1030
+ this.hostPort = { case: undefined };
1031
+ /**
1032
+ * @generated from field: string host_address = 6;
1033
+ */
1034
+ this.hostAddress = "";
1035
+ protobuf_1.proto3.util.initPartial(data, this);
1036
+ }
1037
+ static fromBinary(bytes, options) {
1038
+ return new PortMapping().fromBinary(bytes, options);
1039
+ }
1040
+ static fromJson(jsonValue, options) {
1041
+ return new PortMapping().fromJson(jsonValue, options);
1042
+ }
1043
+ static fromJsonString(jsonString, options) {
1044
+ return new PortMapping().fromJsonString(jsonString, options);
1045
+ }
1046
+ static equals(a, b) {
1047
+ return protobuf_1.proto3.util.equals(PortMapping, a, b);
1048
+ }
1049
+ }
1050
+ exports.PortMapping = PortMapping;
1051
+ PortMapping.runtime = protobuf_1.proto3;
1052
+ PortMapping.typeName = "norsk.api.common.PortMapping";
1053
+ PortMapping.fields = protobuf_1.proto3.util.newFieldList(() => [
1054
+ { no: 1, name: "container_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1055
+ { no: 2, name: "protocol", kind: "enum", T: protobuf_1.proto3.getEnumType(ProtocolFamily) },
1056
+ { no: 3, name: "ephemeral", kind: "message", T: HostPortEphemeral, oneof: "host_port" },
1057
+ { no: 4, name: "range", kind: "message", T: HostPortRange, oneof: "host_port" },
1058
+ { no: 5, name: "specific", kind: "message", T: HostPortSpecific, oneof: "host_port" },
1059
+ { no: 6, name: "host_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1060
+ ]);
1061
+ /**
1062
+ * @generated from message norsk.api.common.ResolvedPortMapping
1063
+ */
1064
+ class ResolvedPortMapping extends protobuf_1.Message {
1065
+ constructor(data) {
1066
+ super();
1067
+ /**
1068
+ * @generated from field: string url = 1;
1069
+ */
1070
+ this.url = "";
1071
+ /**
1072
+ * @generated from field: uint32 target = 2;
1073
+ */
1074
+ this.target = 0;
1075
+ /**
1076
+ * @generated from field: uint32 published = 3;
1077
+ */
1078
+ this.published = 0;
1079
+ /**
1080
+ * @generated from field: norsk.api.common.ProtocolFamily protocol = 4;
1081
+ */
1082
+ this.protocol = ProtocolFamily.ANY;
1083
+ protobuf_1.proto3.util.initPartial(data, this);
1084
+ }
1085
+ static fromBinary(bytes, options) {
1086
+ return new ResolvedPortMapping().fromBinary(bytes, options);
1087
+ }
1088
+ static fromJson(jsonValue, options) {
1089
+ return new ResolvedPortMapping().fromJson(jsonValue, options);
1090
+ }
1091
+ static fromJsonString(jsonString, options) {
1092
+ return new ResolvedPortMapping().fromJsonString(jsonString, options);
1093
+ }
1094
+ static equals(a, b) {
1095
+ return protobuf_1.proto3.util.equals(ResolvedPortMapping, a, b);
1096
+ }
1097
+ }
1098
+ exports.ResolvedPortMapping = ResolvedPortMapping;
1099
+ ResolvedPortMapping.runtime = protobuf_1.proto3;
1100
+ ResolvedPortMapping.typeName = "norsk.api.common.ResolvedPortMapping";
1101
+ ResolvedPortMapping.fields = protobuf_1.proto3.util.newFieldList(() => [
1102
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1103
+ { no: 2, name: "target", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1104
+ { no: 3, name: "published", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1105
+ { no: 4, name: "protocol", kind: "enum", T: protobuf_1.proto3.getEnumType(ProtocolFamily) },
1106
+ ]);
1107
+ /**
1108
+ * @generated from message norsk.api.common.ResolvedPortMappings
1109
+ */
1110
+ class ResolvedPortMappings extends protobuf_1.Message {
1111
+ constructor(data) {
1112
+ super();
1113
+ /**
1114
+ * @generated from field: repeated norsk.api.common.ResolvedPortMapping mappings = 1;
1115
+ */
1116
+ this.mappings = [];
1117
+ protobuf_1.proto3.util.initPartial(data, this);
1118
+ }
1119
+ static fromBinary(bytes, options) {
1120
+ return new ResolvedPortMappings().fromBinary(bytes, options);
1121
+ }
1122
+ static fromJson(jsonValue, options) {
1123
+ return new ResolvedPortMappings().fromJson(jsonValue, options);
1124
+ }
1125
+ static fromJsonString(jsonString, options) {
1126
+ return new ResolvedPortMappings().fromJsonString(jsonString, options);
1127
+ }
1128
+ static equals(a, b) {
1129
+ return protobuf_1.proto3.util.equals(ResolvedPortMappings, a, b);
1130
+ }
1131
+ }
1132
+ exports.ResolvedPortMappings = ResolvedPortMappings;
1133
+ ResolvedPortMappings.runtime = protobuf_1.proto3;
1134
+ ResolvedPortMappings.typeName = "norsk.api.common.ResolvedPortMappings";
1135
+ ResolvedPortMappings.fields = protobuf_1.proto3.util.newFieldList(() => [
1136
+ { no: 1, name: "mappings", kind: "message", T: ResolvedPortMapping, repeated: true },
1137
+ ]);
1138
+ /**
1139
+ * @generated from message norsk.api.common.EnvironmentVariable
1140
+ */
1141
+ class EnvironmentVariable extends protobuf_1.Message {
1142
+ constructor(data) {
1143
+ super();
1144
+ /**
1145
+ * @generated from field: string name = 1;
1146
+ */
1147
+ this.name = "";
1148
+ /**
1149
+ * @generated from field: string value = 2;
1150
+ */
1151
+ this.value = "";
1152
+ protobuf_1.proto3.util.initPartial(data, this);
1153
+ }
1154
+ static fromBinary(bytes, options) {
1155
+ return new EnvironmentVariable().fromBinary(bytes, options);
1156
+ }
1157
+ static fromJson(jsonValue, options) {
1158
+ return new EnvironmentVariable().fromJson(jsonValue, options);
1159
+ }
1160
+ static fromJsonString(jsonString, options) {
1161
+ return new EnvironmentVariable().fromJsonString(jsonString, options);
1162
+ }
1163
+ static equals(a, b) {
1164
+ return protobuf_1.proto3.util.equals(EnvironmentVariable, a, b);
1165
+ }
1166
+ }
1167
+ exports.EnvironmentVariable = EnvironmentVariable;
1168
+ EnvironmentVariable.runtime = protobuf_1.proto3;
1169
+ EnvironmentVariable.typeName = "norsk.api.common.EnvironmentVariable";
1170
+ EnvironmentVariable.fields = protobuf_1.proto3.util.newFieldList(() => [
1171
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1172
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1173
+ ]);
1174
+ /**
1175
+ * @generated from message norsk.api.common.VolumeMount
1176
+ */
1177
+ class VolumeMount extends protobuf_1.Message {
1178
+ constructor(data) {
1179
+ super();
1180
+ /**
1181
+ * @generated from field: string volume_name = 1;
1182
+ */
1183
+ this.volumeName = "";
1184
+ /**
1185
+ * @generated from field: string container_path = 2;
1186
+ */
1187
+ this.containerPath = "";
1188
+ /**
1189
+ * @generated from field: bool read_only = 3;
1190
+ */
1191
+ this.readOnly = false;
1192
+ protobuf_1.proto3.util.initPartial(data, this);
1193
+ }
1194
+ static fromBinary(bytes, options) {
1195
+ return new VolumeMount().fromBinary(bytes, options);
1196
+ }
1197
+ static fromJson(jsonValue, options) {
1198
+ return new VolumeMount().fromJson(jsonValue, options);
1199
+ }
1200
+ static fromJsonString(jsonString, options) {
1201
+ return new VolumeMount().fromJsonString(jsonString, options);
1202
+ }
1203
+ static equals(a, b) {
1204
+ return protobuf_1.proto3.util.equals(VolumeMount, a, b);
1205
+ }
1206
+ }
1207
+ exports.VolumeMount = VolumeMount;
1208
+ VolumeMount.runtime = protobuf_1.proto3;
1209
+ VolumeMount.typeName = "norsk.api.common.VolumeMount";
1210
+ VolumeMount.fields = protobuf_1.proto3.util.newFieldList(() => [
1211
+ { no: 1, name: "volume_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1212
+ { no: 2, name: "container_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1213
+ { no: 3, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1214
+ ]);
1215
+ /**
1216
+ * @generated from message norsk.api.common.ServiceParameters
1217
+ */
1218
+ class ServiceParameters extends protobuf_1.Message {
1219
+ constructor(data) {
1220
+ super();
1221
+ /**
1222
+ * @generated from field: repeated norsk.api.common.PortMapping port_mappings = 1;
1223
+ */
1224
+ this.portMappings = [];
1225
+ /**
1226
+ * @generated from field: repeated norsk.api.common.EnvironmentVariable environment_variables = 2;
1227
+ */
1228
+ this.environmentVariables = [];
1229
+ /**
1230
+ * @generated from field: repeated uint32 cpu_set = 4;
1231
+ */
1232
+ this.cpuSet = [];
1233
+ /**
1234
+ * @generated from field: repeated norsk.api.common.VolumeMount volume_mounts = 5;
1235
+ */
1236
+ this.volumeMounts = [];
1237
+ protobuf_1.proto3.util.initPartial(data, this);
1238
+ }
1239
+ static fromBinary(bytes, options) {
1240
+ return new ServiceParameters().fromBinary(bytes, options);
1241
+ }
1242
+ static fromJson(jsonValue, options) {
1243
+ return new ServiceParameters().fromJson(jsonValue, options);
1244
+ }
1245
+ static fromJsonString(jsonString, options) {
1246
+ return new ServiceParameters().fromJsonString(jsonString, options);
1247
+ }
1248
+ static equals(a, b) {
1249
+ return protobuf_1.proto3.util.equals(ServiceParameters, a, b);
1250
+ }
1251
+ }
1252
+ exports.ServiceParameters = ServiceParameters;
1253
+ ServiceParameters.runtime = protobuf_1.proto3;
1254
+ ServiceParameters.typeName = "norsk.api.common.ServiceParameters";
1255
+ ServiceParameters.fields = protobuf_1.proto3.util.newFieldList(() => [
1256
+ { no: 1, name: "port_mappings", kind: "message", T: PortMapping, repeated: true },
1257
+ { no: 2, name: "environment_variables", kind: "message", T: EnvironmentVariable, repeated: true },
1258
+ { no: 3, name: "shared_memory_size", kind: "message", T: OptionalInt64 },
1259
+ { no: 4, name: "cpu_set", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1260
+ { no: 5, name: "volume_mounts", kind: "message", T: VolumeMount, repeated: true },
1261
+ ]);
1262
+ /**
1263
+ * @generated from message norsk.api.common.Service
1264
+ */
1265
+ class Service extends protobuf_1.Message {
1266
+ constructor(data) {
1267
+ super();
1268
+ /**
1269
+ * @generated from field: string name = 1;
1270
+ */
1271
+ this.name = "";
1272
+ /**
1273
+ * @generated from oneof norsk.api.common.Service.container
1274
+ */
1275
+ this.container = { case: undefined };
1276
+ /**
1277
+ * @generated from field: norsk.api.common.Service.ServiceRestart restart = 3;
1278
+ */
1279
+ this.restart = Service_ServiceRestart.NEVER;
1280
+ /**
1281
+ * @generated from field: repeated string dependsOn = 4;
1282
+ */
1283
+ this.dependsOn = [];
1284
+ /**
1285
+ * @generated from field: string configuration = 5;
1286
+ */
1287
+ this.configuration = "";
1288
+ /**
1289
+ * @generated from field: uint32 restart_count = 6;
1290
+ */
1291
+ this.restartCount = 0;
1292
+ /**
1293
+ * @generated from field: uint32 restart_period = 7;
1294
+ */
1295
+ this.restartPeriod = 0;
1296
+ /**
1297
+ * @generated from field: string command = 8;
1298
+ */
1299
+ this.command = "";
1300
+ protobuf_1.proto3.util.initPartial(data, this);
1301
+ }
1302
+ static fromBinary(bytes, options) {
1303
+ return new Service().fromBinary(bytes, options);
1304
+ }
1305
+ static fromJson(jsonValue, options) {
1306
+ return new Service().fromJson(jsonValue, options);
1307
+ }
1308
+ static fromJsonString(jsonString, options) {
1309
+ return new Service().fromJsonString(jsonString, options);
1310
+ }
1311
+ static equals(a, b) {
1312
+ return protobuf_1.proto3.util.equals(Service, a, b);
1313
+ }
1314
+ }
1315
+ exports.Service = Service;
1316
+ Service.runtime = protobuf_1.proto3;
1317
+ Service.typeName = "norsk.api.common.Service";
1318
+ Service.fields = protobuf_1.proto3.util.newFieldList(() => [
1319
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1320
+ { no: 2, name: "docker", kind: "message", T: DockerContainer, oneof: "container" },
1321
+ { no: 3, name: "restart", kind: "enum", T: protobuf_1.proto3.getEnumType(Service_ServiceRestart) },
1322
+ { no: 4, name: "dependsOn", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1323
+ { no: 5, name: "configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1324
+ { no: 6, name: "restart_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1325
+ { no: 7, name: "restart_period", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1326
+ { no: 8, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1327
+ { no: 9, name: "parameters", kind: "message", T: ServiceParameters },
1328
+ ]);
1329
+ /**
1330
+ * @generated from enum norsk.api.common.Service.ServiceRestart
1331
+ */
1332
+ var Service_ServiceRestart;
1333
+ (function (Service_ServiceRestart) {
1334
+ /**
1335
+ * @generated from enum value: NEVER = 0;
1336
+ */
1337
+ Service_ServiceRestart[Service_ServiceRestart["NEVER"] = 0] = "NEVER";
1338
+ /**
1339
+ * @generated from enum value: ON_FAILURE = 1;
1340
+ */
1341
+ Service_ServiceRestart[Service_ServiceRestart["ON_FAILURE"] = 1] = "ON_FAILURE";
1342
+ /**
1343
+ * @generated from enum value: ALWAYS = 2;
1344
+ */
1345
+ Service_ServiceRestart[Service_ServiceRestart["ALWAYS"] = 2] = "ALWAYS";
1346
+ })(Service_ServiceRestart = exports.Service_ServiceRestart || (exports.Service_ServiceRestart = {}));
1347
+ // Retrieve enum metadata with: proto3.getEnumType(Service_ServiceRestart)
1348
+ protobuf_1.proto3.util.setEnumType(Service_ServiceRestart, "norsk.api.common.Service.ServiceRestart", [
1349
+ { no: 0, name: "NEVER" },
1350
+ { no: 1, name: "ON_FAILURE" },
1351
+ { no: 2, name: "ALWAYS" },
1352
+ ]);
1353
+ /**
1354
+ * @generated from message norsk.api.common.JobInfoServiceStarted
1355
+ */
1356
+ class JobInfoServiceStarted extends protobuf_1.Message {
1357
+ constructor(data) {
1358
+ super();
1359
+ /**
1360
+ * @generated from field: string service_name = 2;
1361
+ */
1362
+ this.serviceName = "";
1363
+ protobuf_1.proto3.util.initPartial(data, this);
1364
+ }
1365
+ static fromBinary(bytes, options) {
1366
+ return new JobInfoServiceStarted().fromBinary(bytes, options);
1367
+ }
1368
+ static fromJson(jsonValue, options) {
1369
+ return new JobInfoServiceStarted().fromJson(jsonValue, options);
1370
+ }
1371
+ static fromJsonString(jsonString, options) {
1372
+ return new JobInfoServiceStarted().fromJsonString(jsonString, options);
1373
+ }
1374
+ static equals(a, b) {
1375
+ return protobuf_1.proto3.util.equals(JobInfoServiceStarted, a, b);
1376
+ }
1377
+ }
1378
+ exports.JobInfoServiceStarted = JobInfoServiceStarted;
1379
+ JobInfoServiceStarted.runtime = protobuf_1.proto3;
1380
+ JobInfoServiceStarted.typeName = "norsk.api.common.JobInfoServiceStarted";
1381
+ JobInfoServiceStarted.fields = protobuf_1.proto3.util.newFieldList(() => [
1382
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1383
+ ]);
1384
+ /**
1385
+ * @generated from message norsk.api.common.JobInfoServiceRestarting
1386
+ */
1387
+ class JobInfoServiceRestarting extends protobuf_1.Message {
1388
+ constructor(data) {
1389
+ super();
1390
+ /**
1391
+ * @generated from field: string service_name = 2;
1392
+ */
1393
+ this.serviceName = "";
1394
+ protobuf_1.proto3.util.initPartial(data, this);
1395
+ }
1396
+ static fromBinary(bytes, options) {
1397
+ return new JobInfoServiceRestarting().fromBinary(bytes, options);
1398
+ }
1399
+ static fromJson(jsonValue, options) {
1400
+ return new JobInfoServiceRestarting().fromJson(jsonValue, options);
1401
+ }
1402
+ static fromJsonString(jsonString, options) {
1403
+ return new JobInfoServiceRestarting().fromJsonString(jsonString, options);
1404
+ }
1405
+ static equals(a, b) {
1406
+ return protobuf_1.proto3.util.equals(JobInfoServiceRestarting, a, b);
1407
+ }
1408
+ }
1409
+ exports.JobInfoServiceRestarting = JobInfoServiceRestarting;
1410
+ JobInfoServiceRestarting.runtime = protobuf_1.proto3;
1411
+ JobInfoServiceRestarting.typeName = "norsk.api.common.JobInfoServiceRestarting";
1412
+ JobInfoServiceRestarting.fields = protobuf_1.proto3.util.newFieldList(() => [
1413
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1414
+ ]);
1415
+ /**
1416
+ * @generated from message norsk.api.common.JobInfoContainerEvent
1417
+ */
1418
+ class JobInfoContainerEvent extends protobuf_1.Message {
1419
+ constructor(data) {
1420
+ super();
1421
+ /**
1422
+ * @generated from field: string service_name = 2;
1423
+ */
1424
+ this.serviceName = "";
1425
+ /**
1426
+ * @generated from field: string text = 3;
1427
+ */
1428
+ this.text = "";
1429
+ protobuf_1.proto3.util.initPartial(data, this);
1430
+ }
1431
+ static fromBinary(bytes, options) {
1432
+ return new JobInfoContainerEvent().fromBinary(bytes, options);
1433
+ }
1434
+ static fromJson(jsonValue, options) {
1435
+ return new JobInfoContainerEvent().fromJson(jsonValue, options);
1436
+ }
1437
+ static fromJsonString(jsonString, options) {
1438
+ return new JobInfoContainerEvent().fromJsonString(jsonString, options);
1439
+ }
1440
+ static equals(a, b) {
1441
+ return protobuf_1.proto3.util.equals(JobInfoContainerEvent, a, b);
1442
+ }
1443
+ }
1444
+ exports.JobInfoContainerEvent = JobInfoContainerEvent;
1445
+ JobInfoContainerEvent.runtime = protobuf_1.proto3;
1446
+ JobInfoContainerEvent.typeName = "norsk.api.common.JobInfoContainerEvent";
1447
+ JobInfoContainerEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
1448
+ { no: 2, name: "service_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1449
+ { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1450
+ ]);
1451
+ /**
1452
+ * @generated from message norsk.api.common.JobInfoComponseMessage
1453
+ */
1454
+ class JobInfoComponseMessage extends protobuf_1.Message {
1455
+ constructor(data) {
1456
+ super();
1457
+ /**
1458
+ * @generated from field: norsk.api.common.JobInfoComponseMessage.Stage stage = 2;
1459
+ */
1460
+ this.stage = JobInfoComponseMessage_Stage.BUILD;
1461
+ /**
1462
+ * @generated from field: string text = 3;
1463
+ */
1464
+ this.text = "";
1465
+ protobuf_1.proto3.util.initPartial(data, this);
1466
+ }
1467
+ static fromBinary(bytes, options) {
1468
+ return new JobInfoComponseMessage().fromBinary(bytes, options);
1469
+ }
1470
+ static fromJson(jsonValue, options) {
1471
+ return new JobInfoComponseMessage().fromJson(jsonValue, options);
1472
+ }
1473
+ static fromJsonString(jsonString, options) {
1474
+ return new JobInfoComponseMessage().fromJsonString(jsonString, options);
1475
+ }
1476
+ static equals(a, b) {
1477
+ return protobuf_1.proto3.util.equals(JobInfoComponseMessage, a, b);
1478
+ }
1479
+ }
1480
+ exports.JobInfoComponseMessage = JobInfoComponseMessage;
1481
+ JobInfoComponseMessage.runtime = protobuf_1.proto3;
1482
+ JobInfoComponseMessage.typeName = "norsk.api.common.JobInfoComponseMessage";
1483
+ JobInfoComponseMessage.fields = protobuf_1.proto3.util.newFieldList(() => [
1484
+ { no: 2, name: "stage", kind: "enum", T: protobuf_1.proto3.getEnumType(JobInfoComponseMessage_Stage) },
1485
+ { no: 3, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1486
+ ]);
1487
+ /**
1488
+ * @generated from enum norsk.api.common.JobInfoComponseMessage.Stage
1489
+ */
1490
+ var JobInfoComponseMessage_Stage;
1491
+ (function (JobInfoComponseMessage_Stage) {
1492
+ /**
1493
+ * @generated from enum value: BUILD = 0;
1494
+ */
1495
+ JobInfoComponseMessage_Stage[JobInfoComponseMessage_Stage["BUILD"] = 0] = "BUILD";
1496
+ /**
1497
+ * @generated from enum value: CREATE = 1;
1498
+ */
1499
+ JobInfoComponseMessage_Stage[JobInfoComponseMessage_Stage["CREATE"] = 1] = "CREATE";
1500
+ /**
1501
+ * @generated from enum value: START = 2;
1502
+ */
1503
+ JobInfoComponseMessage_Stage[JobInfoComponseMessage_Stage["START"] = 2] = "START";
1504
+ /**
1505
+ * @generated from enum value: STOP = 3;
1506
+ */
1507
+ JobInfoComponseMessage_Stage[JobInfoComponseMessage_Stage["STOP"] = 3] = "STOP";
1508
+ /**
1509
+ * @generated from enum value: DOWN = 4;
1510
+ */
1511
+ JobInfoComponseMessage_Stage[JobInfoComponseMessage_Stage["DOWN"] = 4] = "DOWN";
1512
+ })(JobInfoComponseMessage_Stage = exports.JobInfoComponseMessage_Stage || (exports.JobInfoComponseMessage_Stage = {}));
1513
+ // Retrieve enum metadata with: proto3.getEnumType(JobInfoComponseMessage_Stage)
1514
+ protobuf_1.proto3.util.setEnumType(JobInfoComponseMessage_Stage, "norsk.api.common.JobInfoComponseMessage.Stage", [
1515
+ { no: 0, name: "BUILD" },
1516
+ { no: 1, name: "CREATE" },
1517
+ { no: 2, name: "START" },
1518
+ { no: 3, name: "STOP" },
1519
+ { no: 4, name: "DOWN" },
1520
+ ]);
1521
+ /**
1522
+ * @generated from message norsk.api.common.JobInfoMessage
1523
+ */
1524
+ class JobInfoMessage extends protobuf_1.Message {
1525
+ constructor(data) {
1526
+ super();
1527
+ /**
1528
+ * @generated from oneof norsk.api.common.JobInfoMessage.message
1529
+ */
1530
+ this.message = { case: undefined };
1531
+ protobuf_1.proto3.util.initPartial(data, this);
1532
+ }
1533
+ static fromBinary(bytes, options) {
1534
+ return new JobInfoMessage().fromBinary(bytes, options);
1535
+ }
1536
+ static fromJson(jsonValue, options) {
1537
+ return new JobInfoMessage().fromJson(jsonValue, options);
1538
+ }
1539
+ static fromJsonString(jsonString, options) {
1540
+ return new JobInfoMessage().fromJsonString(jsonString, options);
1541
+ }
1542
+ static equals(a, b) {
1543
+ return protobuf_1.proto3.util.equals(JobInfoMessage, a, b);
1544
+ }
1545
+ }
1546
+ exports.JobInfoMessage = JobInfoMessage;
1547
+ JobInfoMessage.runtime = protobuf_1.proto3;
1548
+ JobInfoMessage.typeName = "norsk.api.common.JobInfoMessage";
1549
+ JobInfoMessage.fields = protobuf_1.proto3.util.newFieldList(() => [
1550
+ { no: 1, name: "job_key", kind: "message", T: ActiveJobKey },
1551
+ { no: 2, name: "timestamp", kind: "message", T: protobuf_1.Timestamp },
1552
+ { no: 3, name: "service_started", kind: "message", T: JobInfoServiceStarted, oneof: "message" },
1553
+ { no: 4, name: "service_restarting", kind: "message", T: JobInfoServiceRestarting, oneof: "message" },
1554
+ { no: 5, name: "container_event", kind: "message", T: JobInfoContainerEvent, oneof: "message" },
1555
+ { no: 6, name: "compose_message", kind: "message", T: JobInfoComponseMessage, oneof: "message" },
287
1556
  ]);
288
1557
  //# sourceMappingURL=common_pb.js.map