aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/porto/proto/rpc.proto
blob: abb8c639050ca1624cfb849fea34bedb1a815cf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
syntax = "proto2";

option go_package = "github.com/ydb-platform/ydb/library/cpp/porto/proto;myapi";

/*
   Portod daemon listens on /run/portod.socket unix socket.

   Request:    Varint32 length, TPortoRequest  request
   Response:   Varint32 length, TPortoResponse response

   Command is defined by optional nested message field.
   Result will be in nested message with the same name.

   Push notification is send as out of order response.

   Access level depends on client container and uid.

   See defails in porto.md or manpage porto

   TContainer, TVolume and related methods are Porto v5 API.
*/

package Porto;

// List of error codes
enum EError {
    // No errors occured.
    Success = 0;

    // Unclassified error, usually unexpected syscall fail.
    Unknown = 1;

    // Unknown method or bad request.
    InvalidMethod = 2;

    // Container with specified name already exists.
    ContainerAlreadyExists = 3;

    // Container with specified name doesn't exist.
    ContainerDoesNotExist = 4;

    // Unknown property specified.
    InvalidProperty = 5;

    // Unknown data specified.
    InvalidData = 6;

    // Invalid value of property or data.
    InvalidValue = 7;

    // Can't perform specified operation in current container state.
    InvalidState = 8;

    // Permanent faulure: old kernel version, missing feature, configuration, etc.
    NotSupported = 9;

    // Temporary failure: too much objects, not enough memory, etc.
    ResourceNotAvailable = 10;

    // Insufficient rights for performing requested operation.
    Permission = 11;

    // Can't create new volume with specified name, because there is already one.
    VolumeAlreadyExists = 12;

    // Volume with specified name doesn't exist.
    VolumeNotFound = 13;

    // Not enough disk space.
    NoSpace = 14;

    // Object in use.
    Busy = 15;

    // Volume already linked with container.
    VolumeAlreadyLinked = 16;

    // Volume not linked with container.
    VolumeNotLinked = 17;

    // Layer with this name already exists.
    LayerAlreadyExists = 18;

    // Layer with this name not found.
    LayerNotFound = 19;

    // Property has no value, data source permanently not available.
    NoValue = 20;

    // Volume under construction or destruction.
    VolumeNotReady = 21;

    // Cannot parse or execute command.
    InvalidCommand = 22;

    // Error code is lost or came from future.
    LostError = 23;

    // Device node not found.
    DeviceNotFound = 24;

    // Path does not match restricitons or does not exist.
    InvalidPath = 25;

    // Wrong or unuseable ip address.
    InvalidNetworkAddress = 26;

    // Porto in system maintenance state.
    PortoFrozen = 27;

    // Label with this name is not set.
    LabelNotFound = 28;

    // Label name does not meet restrictions.
    InvalidLabel = 29;

    // Errors in tar, on archive extraction
    HelperError = 30;
    HelperFatalError = 31;

    // Generic object not found.
    NotFound = 404;

    // Reserved error code for client library.
    SocketError = 502;

    // Reserved error code for client library.
    SocketUnavailable = 503;

    // Reserved error code for client library.
    SocketTimeout = 504;

    // Portod close client connections on reload
    PortodReloaded = 505;

    // Reserved error code for taints.
    Taint = 666;

    // Reserved error codes 700-800 to docker
    Docker = 700;
    DockerImageNotFound = 701;

    // Internal error code, not for users.
    Queued = 1000;
}


message TPortoRequest {

    /* System methods */

    // Get portod version
    optional TVersionRequest Version = 14;

    // Get portod statistics
    optional TGetSystemRequest GetSystem = 300;

    // Change portod state (for host root user only)
    optional TSetSystemRequest SetSystem = 301;

    /* Container methods */

    // Create new container
    optional TCreateRequest Create = 1;

    // Create new contaienr and auto destroy when client disconnects
    optional TCreateRequest CreateWeak = 17;

    // Force kill all and destroy container and nested containers
    optional TDestroyRequest Destroy = 2;

    // List container names in current namespace
    optional TListRequest List = 3;

    // Start contianer and parents if needed
    optional TStartRequest Start = 7;

    // Kill all and stop container
    optional TStopRequest Stop = 8;

    // Freeze execution
    optional TPauseRequest Pause = 9;

    // Resume execution
    optional TResumeRequest Resume = 10;

    // Send signal to main process
    optional TKillRequest Kill = 13;

    // Restart dead container
    optional TRespawnRequest Respawn = 18;

    // Wait for process finish or change of labels
    optional TWaitRequest Wait = 16;

    // Subscribe to push notifictaions
    optional TWaitRequest AsyncWait = 19;
    optional TWaitRequest StopAsyncWait = 128;

    /* Container properties */

    // List supported container properties
    optional TListPropertiesRequest ListProperties = 11;

    // Get one property
    optional TGetPropertyRequest GetProperty = 4;

    // Set one property
    optional TSetPropertyRequest SetProperty = 5;

    // Deprecated, now data properties are also read-only properties
    optional TListDataPropertiesRequest ListDataProperties = 12;
    optional TGetDataPropertyRequest GetDataProperty = 6;

    // Get multiple properties for multiple containers
    optional TGetRequest Get = 15;

    /* Container API based on TContainer (Porto v5 API) */

    // Create, configure and start container with volumes
    optional TCreateFromSpecRequest CreateFromSpec = 230;

    // Set multiple container properties
    optional TUpdateFromSpecRequest UpdateFromSpec = 231;

    // Get multiple properties for multiple containers
    optional TListContainersRequest ListContainersBy = 232;

    // Modify symlink in container
    optional TSetSymlinkRequest SetSymlink = 125;

    /* Container labels - user defined key-value */

    // Find containers with labels
    optional TFindLabelRequest FindLabel = 20;

    // Atomic compare and set for label
    optional TSetLabelRequest SetLabel = 21;

    // Atomic add and return for counter in label
    optional TIncLabelRequest IncLabel = 22;

    /* Volume methods */

    optional TListVolumePropertiesRequest ListVolumeProperties = 103;

    // List layers and their properties
    optional TListVolumesRequest ListVolumes = 107;

    // Create, configure and build volume
    optional TCreateVolumeRequest CreateVolume = 104;

    // Change volume properties - for now only resize
    optional TTuneVolumeRequest TuneVolume = 108;

    // Volume API based on TVolume (Porto v5 API)
    optional TNewVolumeRequest NewVolume = 126;
    optional TGetVolumeRequest GetVolume = 127;

    // Add link between container and volume
    optional TLinkVolumeRequest LinkVolume = 105;

    // Same as LinkVolume but fails if target is not supported
    optional TLinkVolumeRequest LinkVolumeTarget = 120;

    // Del link between container and volume
    optional TUnlinkVolumeRequest UnlinkVolume = 106;

    // Same as UnlinkVolume but fails if target is not supported
    optional TUnlinkVolumeRequest UnlinkVolumeTarget = 121;

    /* Layer methods */

    // Import layer from tarball
    optional TImportLayerRequest ImportLayer = 110;

    // Remove layer
    optional TRemoveLayerRequest RemoveLayer = 111;

    // List layers
    optional TListLayersRequest ListLayers = 112;

    // Export volume or layer into tarball
    optional TExportLayerRequest ExportLayer = 113;

    // Get/set layer private (user defined string)
    optional TGetLayerPrivateRequest GetLayerPrivate = 114;
    optional TSetLayerPrivateRequest SetLayerPrivate = 115;

    /* Storage methods */

    // Volume creation creates required storage if missing

    // List storages and meta storages
    optional TListStoragesRequest ListStorages = 116;

    optional TRemoveStorageRequest RemoveStorage = 117;

    // Import storage from tarball
    optional TImportStorageRequest ImportStorage = 118;

    // Export storage into tarball
    optional TExportStorageRequest ExportStorage = 119;

    // Meta storage (bundle for storages and layers)

    optional TMetaStorage CreateMetaStorage = 122;
    optional TMetaStorage ResizeMetaStorage = 123;
    optional TMetaStorage RemoveMetaStorage = 124;

    // Convert path between containers
    optional TConvertPathRequest ConvertPath = 200;

    /* Process methods */

    // Attach process to nested container
    optional TAttachProcessRequest AttachProcess = 201;

    // Find container for process
    optional TLocateProcessRequest LocateProcess = 202;

    // Attach one thread to nexted container
    optional TAttachProcessRequest AttachThread = 203;

    /* Docker images API */

    optional TDockerImageStatusRequest dockerImageStatus = 303;
    optional TDockerImageListRequest listDockerImages = 304;
    optional TDockerImagePullRequest pullDockerImage = 305;
    optional TDockerImageRemoveRequest removeDockerImage = 306;
}


message TPortoResponse {
    // Actually always set, hack for adding new error codes
    optional EError error = 1 [ default = LostError ];

    // Human readable comment - must be shown to user as is
    optional string errorMsg = 2;

    optional uint64 timestamp = 1000;       // for next changed_since

    /* System methods */

    optional TVersionResponse Version = 8;

    optional TGetSystemResponse GetSystem = 300;
    optional TSetSystemResponse SetSystem = 301;

    /* Container methods */

    optional TListResponse List = 3;

    optional TWaitResponse Wait = 11;

    optional TWaitResponse AsyncWait = 19;

    /* Container properties */

    optional TListPropertiesResponse ListProperties = 6;

    optional TGetPropertyResponse GetProperty = 4;


    // Deprecated
    optional TListDataPropertiesResponse ListDataProperties = 7;
    optional TGetDataPropertyResponse GetDataProperty = 5;

    optional TGetResponse Get = 10;

    /* Container API based on TContainer (Porto v5 API) */

    optional TListContainersResponse ListContainersBy = 232;

    /* Container Labels */

    optional TFindLabelResponse FindLabel = 20;
    optional TSetLabelResponse SetLabel = 21;
    optional TIncLabelResponse IncLabel = 22;

    /* Volume methods */

    optional TListVolumePropertiesResponse ListVolumeProperties = 12;

    optional TListVolumesResponse ListVolumes = 9;

    optional TVolumeDescription CreateVolume = 13;

    optional TNewVolumeResponse NewVolume = 126;

    optional TGetVolumeResponse GetVolume = 127;

    optional TListLayersResponse ListLayers = 14;

    optional TGetLayerPrivateResponse GetLayerPrivate = 16;

    // List storages and meta storages
    optional TListStoragesResponse ListStorages = 17;

    optional TConvertPathResponse ConvertPath = 15;

    // Process
    optional TLocateProcessResponse LocateProcess = 18;

    /* Docker images API */

    optional TDockerImageStatusResponse dockerImageStatus = 302;
	optional TDockerImageListResponse listDockerImages = 303;
    optional TDockerImagePullResponse pullDockerImage = 304;
}


// Common objects


message TStringMap {
    message TStringMapEntry {
        optional string key = 1;
        optional string val = 2;
    }
    // TODO replace with map
    // map<string, string> map = 1;
    repeated TStringMapEntry map = 1;
    optional bool merge = 2;        // in, default: replace
}


message TUintMap {
    message TUintMapEntry {
        optional string key = 1;
        optional uint64 val = 2;
    }
    // TODO replace with map
    // map<string, uint64> map = 1;
    repeated TUintMapEntry map = 1;
    optional bool merge = 2;        // in, default: replace
}


message TError {
    optional EError error = 1 [ default = LostError ];
    optional string msg = 2;
}


message TCred {
    optional string user = 1;       // requires user or uid or both
    optional fixed32 uid = 2;
    optional string group = 3;
    optional fixed32 gid = 4;
    repeated fixed32 grp = 5;       // out, supplementary groups
}


message TCapabilities {
    repeated string cap = 1;
    optional string hex = 2;        // out
}


message TContainerCommandArgv {
        repeated string argv = 1;
}


// Container


message TContainerEnvVar {
    optional string name = 1;    //required
    optional string value = 2;
    optional bool unset = 3;        // out
    optional string salt = 4;
    optional string hash = 5;
}

message TContainerEnv {
    repeated TContainerEnvVar var = 1;
    optional bool merge = 2;        // in, default: replace
}


message TContainerUlimit {
    optional string type = 1;    //required
    optional bool unlimited = 2;
    optional uint64 soft = 3;
    optional uint64 hard = 4;
    optional bool inherited = 5;    // out
}

message TContainerUlimits {
    repeated TContainerUlimit ulimit = 1;
    optional bool merge = 2;        // in, default: replace
}


message TContainerControllers {
    repeated string controller = 1;
}


message TContainerCgroup {
    optional string controller = 1; //required
    optional string path = 2;    //required
    optional bool inherited = 3;
}

message TContainerCgroups {
    repeated TContainerCgroup cgroup = 1;
}


message TContainerCpuSet {
    optional string policy = 1;     // inherit|set|node|reserve|threads|cores
    optional uint32 arg = 2;        // for node|reserve|threads|cores
    optional string list = 3;       // for set
    repeated uint32 cpu = 4;        // for set (used if list isn't set)
    optional uint32 count = 5;      // out
    optional string mems = 6;
}


message TContainerBindMount {
    optional string source = 1;    //required
    optional string target = 2;    //required
    repeated string flag = 3;
}

message TContainerBindMounts {
    repeated TContainerBindMount bind = 1;
}


message TContainerVolumeLink {
    optional string volume = 1;    //required
    optional string target = 2;
    optional bool required = 3;
    optional bool read_only = 4;
}

message TContainerVolumeLinks {
    repeated TContainerVolumeLink link = 1;
}


message TContainerVolumes {
    repeated string volume = 1;
}


message TContainerPlace {
    optional string place = 1;    //required
    optional string alias = 2;
}

message TContainerPlaceConfig {
    repeated TContainerPlace cfg = 1;
}


message TContainerDevice {
    optional string device = 1;    //required
    optional string access = 2;    //required
    optional string path = 3;
    optional string mode = 4;
    optional string user = 5;
    optional string group = 6;
}

message TContainerDevices {
    repeated TContainerDevice device = 1;
    optional bool merge = 2;        // in, default: replace
}


message TContainerNetOption {
    optional string opt = 1;    //required
    repeated string arg = 2;
}

message TContainerNetConfig {
    repeated TContainerNetOption cfg = 1;
    optional bool inherited = 2;    // out
}


message TContainerIpLimit {
    optional string policy = 1;     //required any|none|some
    repeated string ip = 2;
}


message TContainerIpConfig {
    message TContainerIp {
        optional string dev = 1;    //required
        optional string ip = 2;    //required
    }
    repeated TContainerIp cfg = 1;
}


message TVmStat {
    optional uint64 count = 1;
    optional uint64 size = 2;
    optional uint64 max_size = 3;
    optional uint64 used = 4;
    optional uint64 max_used = 5;
    optional uint64 anon = 6;
    optional uint64 file = 7;
    optional uint64 shmem = 8;
    optional uint64 huge = 9;
    optional uint64 swap = 10;
    optional uint64 data = 11;
    optional uint64 stack = 12;
    optional uint64 code = 13;
    optional uint64 locked = 14;
    optional uint64 table = 15;
}

message TContainerStatus {
    optional string absolute_name = 1;  // out, "/porto/..."
    optional string state = 2;          // out
    optional uint64 id = 3;             // out
    optional uint32 level = 4;          // out
    optional string parent = 5;         // out, "/porto/..."

    optional string absolute_namespace = 6;    // out

    optional int32 root_pid = 7;       // out
    optional int32 exit_status = 8;    // out
    optional int32 exit_code = 9;      // out
    optional bool core_dumped = 10;     // out
    optional TError start_error = 11;   // out
    optional uint64 time = 12;          // out
    optional uint64 dead_time = 13;     // out

    optional TCapabilities capabilities_allowed = 14;           // out
    optional TCapabilities capabilities_ambient_allowed = 15;   // out
    optional string root_path = 16;     // out, in client namespace
    optional uint64 stdout_offset = 17; // out
    optional uint64 stderr_offset = 18; // out
    optional string std_err = 69; // out
    optional string std_out = 70; // out

    optional uint64 creation_time = 19; // out
    optional uint64 start_time = 20;    // out
    optional uint64 death_time = 21;    // out
    optional uint64 change_time = 22;   // out
    optional bool no_changes = 23;      // out, change_time < changed_since
    optional string extra_properties = 73;

    optional TContainerCgroups cgroups = 24;     // out
    optional TContainerCpuSet cpu_set_affinity = 25;     // out

    optional uint64 cpu_usage = 26;            // out
    optional uint64 cpu_usage_system = 27;     // out
    optional uint64 cpu_wait = 28;             // out
    optional uint64 cpu_throttled = 29;        // out

    optional uint64 process_count = 30;        // out
    optional uint64 thread_count = 31;         // out

    optional TUintMap io_read = 32;        // out, bytes
    optional TUintMap io_write = 33;       // out, bytes
    optional TUintMap io_ops = 34;         // out, ops
    optional TUintMap io_read_ops = 341;   // out, ops
    optional TUintMap io_write_ops = 342;  // out, ops
    optional TUintMap io_time = 35;        // out, ns
    optional TUintMap io_pressure = 351;   // out

    optional TUintMap place_usage = 36;
    optional uint64 memory_usage = 37;         // out, bytes

    optional uint64 memory_guarantee_total = 38;   // out

    optional uint64 memory_limit_total = 39;   // out

    optional uint64 anon_limit_total = 40;
    optional uint64 anon_usage = 41;           // out, bytes
    optional double cpu_guarantee_total = 42;
    optional double cpu_guarantee_bound = 421;
    optional double cpu_limit_total = 422;
    optional double cpu_limit_bound = 423;

    optional uint64 cache_usage = 43;          // out, bytes

    optional uint64 hugetlb_usage = 44;        // out, bytes
    optional uint64 hugetlb_limit = 45;

    optional uint64 minor_faults = 46;         // out
    optional uint64 major_faults = 47;         // out
    optional uint64 memory_reclaimed = 48;     // out
    optional TVmStat virtual_memory = 49;      // out

    optional uint64 shmem_usage = 71;          // out, bytes
    optional uint64 mlock_usage = 72;          // out, bytes

    optional uint64 oom_kills = 50;            // out
    optional uint64 oom_kills_total = 51;      // out
    optional bool oom_killed = 52;             // out

    optional TUintMap net_bytes = 54;          // out
    optional TUintMap net_packets = 55;        // out
    optional TUintMap net_drops = 56;          // out
    optional TUintMap net_overlimits = 57;     // out
    optional TUintMap net_rx_bytes = 58;       // out
    optional TUintMap net_rx_packets = 59;     // out
    optional TUintMap net_rx_drops = 60;       // out
    optional TUintMap net_tx_bytes = 61;       // out
    optional TUintMap net_tx_packets = 62;     // out
    optional TUintMap net_tx_drops = 63;       // out

    optional TContainerVolumeLinks volumes_linked = 64; // out
    optional TContainerVolumes volumes_owned = 65;

    repeated TError error = 66;   // out
    repeated TError warning = 67; // out
    repeated TError taint = 68;   // out
}

message TContainerSpec {
    optional string name = 1;           // required / in client namespace
    optional bool weak = 2;
    optional string private = 3;
    optional TStringMap labels = 4;

    optional string command = 5;
    optional TContainerCommandArgv command_argv = 76;
    optional TContainerEnv env = 6;
    optional TContainerEnv env_secret = 90;  // in, out hides values
    optional TContainerUlimits ulimit = 7;
    optional string core_command = 8;

    optional bool isolate = 9;
    optional string virt_mode = 10;
    optional string enable_porto = 11;
    optional string porto_namespace = 12;
    optional string cgroupfs = 78;
    optional bool userns = 79;

    optional uint64 aging_time = 13;

    optional TCred task_cred = 14;
    optional string user = 15;
    optional string group = 16;

    optional TCred owner_cred = 17;
    optional string owner_user = 18;
    optional string owner_group = 19;
    optional string owner_containers = 77;

    optional TCapabilities capabilities = 20;
    optional TCapabilities capabilities_ambient = 21;

    optional string root = 22;          // in parent namespace
    optional bool root_readonly = 23;
    optional TContainerBindMounts bind = 24;
    optional TStringMap symlink = 25;
    optional TContainerDevices devices = 26;
    optional TContainerPlaceConfig place = 27;
    optional TUintMap place_limit = 28;

    optional string cwd = 29;
    optional string stdin_path = 30;
    optional string stdout_path = 31;
    optional string stderr_path = 32;
    optional uint64 stdout_limit = 33;
    optional uint32 umask = 34;

    optional bool respawn = 35;
    optional uint64 respawn_count = 36;
    optional int64 max_respawns = 37;
    optional uint64 respawn_delay = 38;

    optional TContainerControllers controllers = 39;

    optional string cpu_policy = 40;   // normal|idle|batch|high|rt
    optional double cpu_weight = 41;   // 0.01 .. 100

    optional double cpu_guarantee = 42;        // in cores
    optional double cpu_limit = 43;            // in cores
    optional double cpu_limit_total = 44;      // deprecated (value moved to TContainerStatus)
    optional uint64 cpu_period = 45;           // ns

    optional TContainerCpuSet cpu_set = 46;

    optional uint64 thread_limit = 47;

    optional string io_policy = 48;    // none|rt|high|normal|batch|idle
    optional double io_weight = 49;    // 0.01 .. 100

    optional TUintMap io_limit = 50;         // bps
    optional TUintMap io_guarantee = 84;     // bps
    optional TUintMap io_ops_limit = 51;     // iops
    optional TUintMap io_ops_guarantee = 85; // iops

    optional uint64 memory_guarantee = 52;     // bytes

    optional uint64 memory_limit = 53;         // bytes

    optional uint64 anon_limit = 54;
    optional uint64 anon_max_usage = 55;

    optional uint64 dirty_limit = 56;

    optional uint64 hugetlb_limit = 57;

    optional bool recharge_on_pgfault = 58;
    optional bool pressurize_on_death = 59;
    optional bool anon_only = 60;

    optional int32 oom_score_adj = 61;         // -1000 .. +1000
    optional bool oom_is_fatal = 62;

    optional TContainerNetConfig net = 63;
    optional TContainerIpLimit ip_limit = 64;
    optional TContainerIpConfig ip = 65;
    optional TContainerIpConfig default_gw = 66;
    optional string hostname = 67;
    optional string resolv_conf = 68;
    optional string etc_hosts = 69;
    optional TStringMap sysctl = 70;
    optional TUintMap net_guarantee = 71;      // bytes per second
    optional TUintMap net_limit = 72;          // bytes per second
    optional TUintMap net_rx_limit = 73;       // bytes per second

    optional TContainerVolumes volumes_required = 75;
}

message TContainer {
    optional TContainerSpec spec = 1;    //required
    optional TContainerStatus status = 2;
    optional TError error = 3;
}


// Volumes

message TVolumeDescription {
    required string path = 1;           // path in client namespace
    map<string, string> properties = 2;
    repeated string containers = 3;     // linked containers (legacy)
    repeated TVolumeLink links = 4;     // linked containers with details

    optional uint64 change_time = 5;    // sec since epoch
    optional bool no_changes = 6;       // change_time < changed_since
}


message TVolumeLink {
    optional string container = 1;
    optional string target = 2;         // absolute path in container, default: anon
    optional bool required = 3;         // container cannot work without it
    optional bool read_only = 4;
    optional string host_target = 5;    // out, absolute path in host
    optional bool container_root = 6;   // in, set container root
    optional bool container_cwd = 7;    // in, set container cwd
}

message TVolumeResource {
    optional uint64 limit = 1;          // bytes or inodes
    optional uint64 guarantee = 2;      // bytes or inodes
    optional uint64 usage = 3;          // out, bytes or inodes
    optional uint64 available = 4;      // out, bytes or inodes
}

message TVolumeDirectory {
    optional string path = 1;           // relative path in volume
    optional TCred cred = 2;            // default: volume cred
    optional fixed32 permissions = 3;   // default: volume permissions
}

message TVolumeSymlink {
    optional string path = 1;           // relative path in volume
    optional string target_path = 2;
}

message TVolumeShare {
    optional string path = 1;           // relative path in volume
    optional string origin_path = 2;    // absolute path to origin
    optional bool cow = 3;              // default: mutable share
}

// Structured Volume description (Porto V5 API)

message TVolumeSpec {
    optional string path = 1;               // path in container, default: auto
    optional string container = 2;          // defines root for paths, default: self (client container)
    repeated TVolumeLink links = 3;         // initial links, default: anon link to self

    optional string id = 4;                 // out
    optional string state = 5;              // out

    optional string private_value = 6;      // at most 4096 bytes

    optional string device_name = 7;        // out

    optional string backend = 10;           // default: auto
    optional string place = 11;             // path in host or alias, default from client container
    optional string storage = 12;           // persistent storage, path or name, default: non-persistent
    optional string image = 52;
    repeated string layers = 13;            // name or path
    optional bool read_only = 14;

    // defines root directory user, group and permissions
    optional TCred cred = 20;               // default: self task cred
    optional fixed32 permissions = 21;      // default: 0775

    optional TVolumeResource space = 22;
    optional TVolumeResource inodes = 23;

    optional TCred owner = 30;              // default: self owner
    optional string owner_container = 31;   // default: self
    optional string place_key = 32;         // out, key for place_limit
    optional string creator = 33;           // out
    optional bool auto_path = 34;           // out
    optional uint32 device_index = 35;      // out
    optional uint64 build_time = 37;        // out, sec since epoch

    // customization at creation
    repeated TVolumeDirectory directories = 40; // in
    repeated TVolumeSymlink symlinks = 41;      // in
    repeated TVolumeShare shares = 42;          // in

    optional uint64 change_time = 50;       // out, sec since epoch
    optional bool no_changes = 51;          // out, change_time < changed_since
}


message TLayer {
    optional string name = 1;           // name or meta/name
    optional string owner_user = 2;
    optional string owner_group = 3;
    optional uint64 last_usage = 4;     // out, sec since last usage
    optional string private_value = 5;
}


message TStorage {
    optional string name = 1;           // name or meta/name
    optional string owner_user = 2;
    optional string owner_group = 3;
    optional uint64 last_usage = 4;     // out, sec since last usage
    optional string private_value = 5;
}


message TMetaStorage {
    optional string name = 1;
    optional string place = 2;
    optional string private_value = 3;
    optional uint64 space_limit = 4;        // bytes
    optional uint64 inode_limit = 5;        // inodes

    optional uint64 space_used = 6;         // out, bytes
    optional uint64 space_available = 7;    // out, bytes
    optional uint64 inode_used = 8;         // out, inodes
    optional uint64 inode_available = 9;    // out, inodes
    optional string owner_user = 10;        // out
    optional string owner_group = 11;       // out
    optional uint64 last_usage = 12;        // out, sec since last usage
}


// COMMANDS

// System

// Get porto version
message TVersionRequest {
}

message TVersionResponse {
    optional string tag = 1;
    optional string revision = 2;
}


// Get porto statistics
message TGetSystemRequest {
}

message TGetSystemResponse {
    optional string porto_version = 1;
    optional string porto_revision = 2;
    optional string kernel_version = 3;

    optional fixed64 errors = 4;
    optional fixed64 warnings = 5;
    optional fixed64 porto_starts = 6;
    optional fixed64 porto_uptime = 7;
    optional fixed64 master_uptime = 8;
    optional fixed64 taints = 9;

    optional bool frozen = 10;
    optional bool verbose = 100;
    optional bool debug = 101;
    optional fixed64 log_lines = 102;
    optional fixed64 log_bytes = 103;

    optional fixed64 stream_rotate_bytes = 104;
    optional fixed64 stream_rotate_errors = 105;

    optional fixed64 log_lines_lost = 106;
    optional fixed64 log_bytes_lost = 107;
    optional fixed64 log_open = 108;

    optional fixed64 container_count = 200;
    optional fixed64 container_limit = 201;
    optional fixed64 container_running = 202;
    optional fixed64 container_created = 203;
    optional fixed64 container_started = 204;
    optional fixed64 container_start_failed = 205;
    optional fixed64 container_oom = 206;
    optional fixed64 container_buried = 207;
    optional fixed64 container_lost = 208;
    optional fixed64 container_tainted = 209;

    optional fixed64 volume_count = 300;
    optional fixed64 volume_limit = 301;
    optional fixed64 volume_created = 303;
    optional fixed64 volume_failed = 304;
    optional fixed64 volume_links = 305;
    optional fixed64 volume_links_mounted = 306;
    optional fixed64 volume_lost = 307;

    optional fixed64 layer_import = 390;
    optional fixed64 layer_export = 391;
    optional fixed64 layer_remove = 392;

    optional fixed64 client_count = 400;
    optional fixed64 client_max = 401;
    optional fixed64 client_connected = 402;

    optional fixed64 request_queued = 500;
    optional fixed64 request_completed = 501;
    optional fixed64 request_failed = 502;
    optional fixed64 request_threads = 503;
    optional fixed64 request_longer_1s = 504;
    optional fixed64 request_longer_3s = 505;
    optional fixed64 request_longer_30s = 506;
    optional fixed64 request_longer_5m = 507;

    optional fixed64 fail_system = 600;
    optional fixed64 fail_invalid_value = 601;
    optional fixed64 fail_invalid_command = 602;
    optional fixed64 fail_memory_guarantee = 603;
    optional fixed64 fail_invalid_netaddr = 604;

    optional fixed64 porto_crash = 666;

    optional fixed64 network_count = 700;
    optional fixed64 network_created = 701;
    optional fixed64 network_problems = 702;
    optional fixed64 network_repairs = 703;
}


// Change porto state
message TSetSystemRequest {
    optional bool frozen = 10;
    optional bool verbose = 100;
    optional bool debug = 101;
}

message TSetSystemResponse {
}

message TCreateFromSpecRequest {
    optional TContainerSpec container = 1;    //required
    repeated TVolumeSpec volumes = 2;
    optional bool start = 3;
}

message TUpdateFromSpecRequest {
    optional TContainerSpec container = 1;    //required
    optional bool start = 2;
}

message TListContainersFilter {
    optional string name = 1;    // name or wildcards, default: all
    optional TStringMap labels = 2;
    optional uint64 changed_since = 3;  // change_time >= changed_since
}

message TStreamDumpOptions {
    optional uint64 stdstream_offset = 2; // default: 0
    optional uint64 stdstream_limit = 3;  // default: 8Mb
}

message TListContainersFieldOptions {
    repeated string properties = 1;       // property names, default: all
    optional TStreamDumpOptions stdout_options = 2;    // for GetIndexed stdout
    optional TStreamDumpOptions stderr_options = 3;    // for GetIndexed stderr
}

message TListContainersRequest {
    repeated TListContainersFilter filters = 1;
    optional TListContainersFieldOptions field_options = 2;
}

message TListContainersResponse {
    repeated TContainer containers = 1;
}

// List available properties
message TListPropertiesRequest {
}

message TListPropertiesResponse {
    message TContainerPropertyListEntry {
        optional string name = 1;
        optional string desc = 2;
        optional bool read_only = 3;
        optional bool dynamic = 4;
    }
    repeated TContainerPropertyListEntry list = 1;
}


// deprecated, use ListProperties
message TListDataPropertiesRequest {
}

message TListDataPropertiesResponse {
    message TContainerDataListEntry {
        optional string name = 1;
        optional string desc = 2;
    }
    repeated TContainerDataListEntry list = 1;
}


// Create stopped container
message TCreateRequest {
    optional string name = 1;
}


// Stop and destroy container
message TDestroyRequest {
    optional string name = 1;
}


// List container names
message TListRequest {
    optional string mask = 1;
    optional uint64 changed_since = 2;  // change_time >= changed_since
}

message TListResponse {
    repeated string name = 1;
    optional string absolute_namespace = 2;
}


// Read one property
message TGetPropertyRequest {
    optional string name = 1;
    optional string property = 2;
    // update cached counters
    optional bool sync = 3;
    optional bool real = 4;
}

message TGetPropertyResponse {
    optional string value = 1;
}


// Alias for GetProperty, deprecated
message TGetDataPropertyRequest {
    optional string name = 1;
    optional string data = 2;
    // update cached counters
    optional bool sync = 3;
    optional bool real = 4;
}

message TGetDataPropertyResponse {
    optional string value = 1;
}


// Change one property
message TSetPropertyRequest {
    optional string name = 1;
    optional string property = 2;
    optional string value = 3;
}


// Get multiple properties/data of many containers with one request
message TGetRequest {
    // list of containers or wildcards, "***" - all
    repeated string name = 1;

    // list of properties/data
    repeated string variable = 2;

    // do not wait busy containers
    optional bool nonblock = 3;

    // update cached counters
    optional bool sync = 4;
    optional bool real = 5;

    // change_time >= changed_since
    optional uint64 changed_since = 6;
}

message TGetResponse {
    message TContainerGetValueResponse {
        optional string variable = 1;
        optional EError error = 2;
        optional string errorMsg = 3;
        optional string value = 4;
    }

    message TContainerGetListResponse {
        optional string name = 1;
        repeated TContainerGetValueResponse keyval = 2;

        optional uint64 change_time = 3;
        optional bool no_changes = 4;   // change_time < changed_since
    }

    repeated TContainerGetListResponse list = 1;
}


// Start stopped container
message TStartRequest {
    optional string name = 1;
}


// Restart dead container
message TRespawnRequest {
    optional string name = 1;
}


// Stop dead or running container
message TStopRequest {
    optional string name = 1;
    // Timeout in 1/1000 seconds between SIGTERM and SIGKILL, default 30s
    optional uint32 timeout_ms = 2;
}


// Freeze running container
message TPauseRequest {
    optional string name = 1;
}


// Unfreeze paused container
message TResumeRequest {
    optional string name = 1;
}


// Translate filesystem path between containers
message TConvertPathRequest {
    optional string path = 1;
    optional string source = 2;
    optional string destination = 3;
}

message TConvertPathResponse {
    optional string path = 1;
}


// Wait while container(s) is/are in running state
message TWaitRequest {
    // list of containers or wildcards, "***" - all
    repeated string name = 1;

    // timeout in 1/1000 seconds, 0 - nonblock
    optional uint32 timeout_ms = 2;

    // list of label names or wildcards
    repeated string label = 3;

    // async wait with target_state works only once
    optional string target_state = 4;
}

message TWaitResponse {
    optional string name = 1;           // container name
    optional string state = 2;          // container state or "timeout"
    optional uint64 when = 3;           // unix time stamp in seconds
    optional string label = 4;
    optional string value = 5;
}


// Send signal main process in container
message TKillRequest {
    optional string name = 1;
    optional int32 sig = 2;
}


// Move process into container
message TAttachProcessRequest {
    optional string name = 1;
    optional uint32 pid = 2;
    optional string comm = 3; // ignored if empty
}


// Determine container by pid
message TLocateProcessRequest {
    optional uint32 pid = 1;
    optional string comm = 2; // ignored if empty
}

message TLocateProcessResponse {
    optional string name = 1;
}


// Labels


message TFindLabelRequest {
    optional string mask = 1;           // containers name or wildcard
    optional string state = 2;          // filter by container state
    optional string label = 3;          // label name or wildcard
    optional string value = 4;          // filter by label value
}

message TFindLabelResponse {
    message TFindLabelEntry {
        optional string name = 1;
        optional string state = 2;
        optional string label = 3;
        optional string value = 4;
    }
    repeated TFindLabelEntry list = 1;
}


message TSetLabelRequest {
    optional string name = 1;
    optional string label = 2;
    optional string value = 3;
    optional string prev_value = 4;     // fail with Busy if does not match
    optional string state = 5;          // fail with InvalidState if not match
}

message TSetLabelResponse {
    optional string prev_value = 1;
    optional string state = 2;
}


message TIncLabelRequest {
    optional string name = 1;
    optional string label = 2;          // missing label starts from 0
    optional int64 add = 3 [ default = 1];
}

message TIncLabelResponse {
    optional int64 result = 1;
}


message TSetSymlinkRequest {
    optional string container = 1;
    optional string symlink = 2;
    optional string target = 3;
}


// Volumes


message TNewVolumeRequest {
    optional TVolumeSpec volume = 1;
}

message TNewVolumeResponse {
    optional TVolumeSpec volume = 1;
}


message TGetVolumeRequest {
    optional string container = 1;  // get paths in container, default: self (client container)
    repeated string path = 2;       // volume path in container, default: all
    optional uint64 changed_since = 3;  // change_time >= changed_since
    repeated string label = 4;      // labels or wildcards
}

message TGetVolumeResponse {
    repeated TVolumeSpec volume = 1;
}


// List available volume properties
message TListVolumePropertiesRequest {
}

message TListVolumePropertiesResponse {
    message TVolumePropertyDescription {
        optional string name = 1;
        optional string desc = 2;
    }
    repeated TVolumePropertyDescription list = 1;
}


// Create new volume
// "createVolume" returns TVolumeDescription in "volume"
message TCreateVolumeRequest {
    optional string path = 1;
    map<string, string> properties = 2;
}


message TLinkVolumeRequest {
    optional string path = 1;
    optional string container = 2;      // default - self (client container)
    optional string target = 3;         // path in container, "" - anon
    optional bool required = 4;         // stop container at fail
    optional bool read_only = 5;
}


message TUnlinkVolumeRequest {
    optional string path = 1;
    optional string container = 2;      // default - self, "***" - all
    optional bool strict = 3;           // non-lazy umount
    optional string target = 4;         // path in container, "" - anon, default - "***" - all
}


message TListVolumesRequest {
    optional string path = 1;           // volume path or wildcard
    optional string container = 2;
    optional uint64 changed_since = 3;  // change_time >= changed_since
}

message TListVolumesResponse {
    repeated TVolumeDescription volumes = 1;
}


message TTuneVolumeRequest {
    optional string path = 1;
    map<string, string> properties = 2;
}

// Layers


message TListLayersRequest {
    optional string place = 1;  // default from client container
    optional string mask = 2;
}

message TListLayersResponse {
    repeated string layer = 1;  // layer names (legacy)
    repeated TLayer layers = 2; // layer with description
}


message TImportLayerRequest {
    optional string layer = 1;
    optional string tarball = 2;
    optional bool merge = 3;
    optional string place = 4;
    optional string private_value = 5;
    optional string compress = 6;
    optional bool verbose_error = 7;
}


message TExportLayerRequest {
    optional string volume = 1;
    optional string tarball = 2;
    optional string layer = 3;
    optional string place = 4;
    optional string compress = 5;
}


message TRemoveLayerRequest {
    optional string layer = 1;
    optional string place = 2;
    optional bool async = 3;
}


message TGetLayerPrivateRequest {
    optional string layer = 1;
    optional string place = 2;
}

message TGetLayerPrivateResponse {
    optional string private_value = 1;
}


message TSetLayerPrivateRequest {
    optional string layer = 1;
    optional string place = 2;
    optional string private_value = 3;
}


// Storages


message TListStoragesRequest {
    optional string place = 1;
    optional string mask = 2; // "name" - storage, "name/" - meta-storage
}

message TListStoragesResponse {
    repeated TStorage storages = 1;
    repeated TMetaStorage meta_storages = 2;
}


message TRemoveStorageRequest {
    optional string name = 1;
    optional string place = 2;
}


message TImportStorageRequest {
    optional string name = 1;
    optional string tarball = 2;
    optional string place = 3;
    optional string private_value = 5;
    optional string compress = 6;
}


message TExportStorageRequest {
    optional string name = 1;
    optional string tarball = 2;
    optional string place = 3;
    optional string compress = 4;
}


// Docker images API


message TDockerImageConfig {
    repeated string cmd = 1;
    repeated string env = 2;
}

message TDockerImage {
    required string id = 1;
    repeated string tags = 2;
    repeated string digests = 3;
    repeated string layers = 4;
    optional uint64 size = 5;
    optional TDockerImageConfig config = 6;
}


message TDockerImageStatusRequest {
    required string name = 1;
    optional string place = 2;
}

message TDockerImageStatusResponse {
    optional TDockerImage image = 1;
}


message TDockerImageListRequest {
    optional string place = 1;
    optional string mask = 2;
}

message TDockerImageListResponse {
    repeated TDockerImage images = 1;
}


message TDockerImagePullRequest {
    required string name = 1;
    optional string place = 2;
    optional string auth_token = 3;
    optional string auth_path = 4;
    optional string auth_service = 5;
}

message TDockerImagePullResponse {
    optional TDockerImage image = 1;
}


message TDockerImageRemoveRequest {
    required string name = 1;
    optional string place = 2;
}