hdfs-native 0.13.5

Native HDFS client implementation in Rust
Documentation
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
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
// This file is @generated by prost-build.
/// *
/// File or Directory permision - same spec as posix
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FsPermissionProto {
    /// Actually a short - only 16bits used
    #[prost(uint32, required, tag = "1")]
    pub perm: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AclEntryProto {
    #[prost(
        enumeration = "acl_entry_proto::AclEntryTypeProto",
        required,
        tag = "1"
    )]
    pub r#type: i32,
    #[prost(
        enumeration = "acl_entry_proto::AclEntryScopeProto",
        required,
        tag = "2"
    )]
    pub scope: i32,
    #[prost(enumeration = "acl_entry_proto::FsActionProto", required, tag = "3")]
    pub permissions: i32,
    #[prost(string, optional, tag = "4")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `AclEntryProto`.
pub mod acl_entry_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum AclEntryScopeProto {
        Access = 0,
        Default = 1,
    }
    impl AclEntryScopeProto {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Access => "ACCESS",
                Self::Default => "DEFAULT",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ACCESS" => Some(Self::Access),
                "DEFAULT" => Some(Self::Default),
                _ => None,
            }
        }
    }
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum AclEntryTypeProto {
        User = 0,
        Group = 1,
        Mask = 2,
        Other = 3,
    }
    impl AclEntryTypeProto {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::User => "USER",
                Self::Group => "GROUP",
                Self::Mask => "MASK",
                Self::Other => "OTHER",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "USER" => Some(Self::User),
                "GROUP" => Some(Self::Group),
                "MASK" => Some(Self::Mask),
                "OTHER" => Some(Self::Other),
                _ => None,
            }
        }
    }
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum FsActionProto {
        None = 0,
        Execute = 1,
        Write = 2,
        WriteExecute = 3,
        Read = 4,
        ReadExecute = 5,
        ReadWrite = 6,
        PermAll = 7,
    }
    impl FsActionProto {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::None => "NONE",
                Self::Execute => "EXECUTE",
                Self::Write => "WRITE",
                Self::WriteExecute => "WRITE_EXECUTE",
                Self::Read => "READ",
                Self::ReadExecute => "READ_EXECUTE",
                Self::ReadWrite => "READ_WRITE",
                Self::PermAll => "PERM_ALL",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "NONE" => Some(Self::None),
                "EXECUTE" => Some(Self::Execute),
                "WRITE" => Some(Self::Write),
                "WRITE_EXECUTE" => Some(Self::WriteExecute),
                "READ" => Some(Self::Read),
                "READ_EXECUTE" => Some(Self::ReadExecute),
                "READ_WRITE" => Some(Self::ReadWrite),
                "PERM_ALL" => Some(Self::PermAll),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AclStatusProto {
    #[prost(string, required, tag = "1")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub group: ::prost::alloc::string::String,
    #[prost(bool, required, tag = "3")]
    pub sticky: bool,
    #[prost(message, repeated, tag = "4")]
    pub entries: ::prost::alloc::vec::Vec<AclEntryProto>,
    #[prost(message, optional, tag = "5")]
    pub permission: ::core::option::Option<FsPermissionProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModifyAclEntriesRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub acl_spec: ::prost::alloc::vec::Vec<AclEntryProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ModifyAclEntriesResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveAclRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveAclResponseProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveAclEntriesRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub acl_spec: ::prost::alloc::vec::Vec<AclEntryProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveAclEntriesResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveDefaultAclRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveDefaultAclResponseProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetAclRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub acl_spec: ::prost::alloc::vec::Vec<AclEntryProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetAclResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetAclStatusRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAclStatusResponseProto {
    #[prost(message, required, tag = "1")]
    pub result: AclStatusProto,
}
/// *
/// Extended block idenfies a block
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ExtendedBlockProto {
    /// Block pool id - globally unique across clusters
    #[prost(string, required, tag = "1")]
    pub pool_id: ::prost::alloc::string::String,
    /// the local id within a pool
    #[prost(uint64, required, tag = "2")]
    pub block_id: u64,
    #[prost(uint64, required, tag = "3")]
    pub generation_stamp: u64,
    /// len does not belong in ebid
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub num_bytes: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ProvidedStorageLocationProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "2")]
    pub offset: i64,
    #[prost(int64, required, tag = "3")]
    pub length: i64,
    #[prost(bytes = "vec", required, tag = "4")]
    pub nonce: ::prost::alloc::vec::Vec<u8>,
}
/// *
/// Identifies a Datanode
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DatanodeIdProto {
    /// IP address
    #[prost(string, required, tag = "1")]
    pub ip_addr: ::prost::alloc::string::String,
    /// hostname
    #[prost(string, required, tag = "2")]
    pub host_name: ::prost::alloc::string::String,
    /// UUID assigned to the Datanode. For
    #[prost(string, required, tag = "3")]
    pub datanode_uuid: ::prost::alloc::string::String,
    /// upgraded clusters this is the same
    /// as the original StorageID of the
    /// Datanode.
    ///
    /// data streaming port
    #[prost(uint32, required, tag = "4")]
    pub xfer_port: u32,
    /// datanode http port
    #[prost(uint32, required, tag = "5")]
    pub info_port: u32,
    /// ipc server port
    #[prost(uint32, required, tag = "6")]
    pub ipc_port: u32,
    /// datanode https port
    #[prost(uint32, optional, tag = "7", default = "0")]
    pub info_secure_port: ::core::option::Option<u32>,
}
/// *
/// Datanode local information
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DatanodeLocalInfoProto {
    #[prost(string, required, tag = "1")]
    pub software_version: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub config_version: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "3")]
    pub uptime: u64,
}
/// *
/// Datanode volume information
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DatanodeVolumeInfoProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(enumeration = "StorageTypeProto", required, tag = "2")]
    pub storage_type: i32,
    #[prost(uint64, required, tag = "3")]
    pub used_space: u64,
    #[prost(uint64, required, tag = "4")]
    pub free_space: u64,
    #[prost(uint64, required, tag = "5")]
    pub reserved_space: u64,
    #[prost(uint64, required, tag = "6")]
    pub reserved_space_for_replicas: u64,
    #[prost(uint64, required, tag = "7")]
    pub num_blocks: u64,
}
/// *
/// DatanodeInfo array
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatanodeInfosProto {
    #[prost(message, repeated, tag = "1")]
    pub datanodes: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
}
/// *
/// The status of a Datanode
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DatanodeInfoProto {
    #[prost(message, required, tag = "1")]
    pub id: DatanodeIdProto,
    #[prost(uint64, optional, tag = "2", default = "0")]
    pub capacity: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "3", default = "0")]
    pub dfs_used: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub remaining: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "5", default = "0")]
    pub block_pool_used: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "6", default = "0")]
    pub last_update: ::core::option::Option<u64>,
    #[prost(uint32, optional, tag = "7", default = "0")]
    pub xceiver_count: ::core::option::Option<u32>,
    #[prost(string, optional, tag = "8")]
    pub location: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint64, optional, tag = "9")]
    pub non_dfs_used: ::core::option::Option<u64>,
    #[prost(
        enumeration = "datanode_info_proto::AdminState",
        optional,
        tag = "10",
        default = "Normal"
    )]
    pub admin_state: ::core::option::Option<i32>,
    #[prost(uint64, optional, tag = "11", default = "0")]
    pub cache_capacity: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "12", default = "0")]
    pub cache_used: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "13", default = "0")]
    pub last_update_monotonic: ::core::option::Option<u64>,
    #[prost(string, optional, tag = "14")]
    pub upgrade_domain: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint64, optional, tag = "15", default = "0")]
    pub last_block_report_time: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "16", default = "0")]
    pub last_block_report_monotonic: ::core::option::Option<u64>,
    #[prost(uint32, optional, tag = "17", default = "0")]
    pub num_blocks: ::core::option::Option<u32>,
}
/// Nested message and enum types in `DatanodeInfoProto`.
pub mod datanode_info_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum AdminState {
        Normal = 0,
        DecommissionInprogress = 1,
        Decommissioned = 2,
        EnteringMaintenance = 3,
        InMaintenance = 4,
    }
    impl AdminState {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Normal => "NORMAL",
                Self::DecommissionInprogress => "DECOMMISSION_INPROGRESS",
                Self::Decommissioned => "DECOMMISSIONED",
                Self::EnteringMaintenance => "ENTERING_MAINTENANCE",
                Self::InMaintenance => "IN_MAINTENANCE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "NORMAL" => Some(Self::Normal),
                "DECOMMISSION_INPROGRESS" => Some(Self::DecommissionInprogress),
                "DECOMMISSIONED" => Some(Self::Decommissioned),
                "ENTERING_MAINTENANCE" => Some(Self::EnteringMaintenance),
                "IN_MAINTENANCE" => Some(Self::InMaintenance),
                _ => None,
            }
        }
    }
}
/// *
/// Represents a storage available on the datanode
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DatanodeStorageProto {
    #[prost(string, required, tag = "1")]
    pub storage_uuid: ::prost::alloc::string::String,
    #[prost(
        enumeration = "datanode_storage_proto::StorageState",
        optional,
        tag = "2",
        default = "Normal"
    )]
    pub state: ::core::option::Option<i32>,
    #[prost(
        enumeration = "StorageTypeProto",
        optional,
        tag = "3",
        default = "Disk"
    )]
    pub storage_type: ::core::option::Option<i32>,
}
/// Nested message and enum types in `DatanodeStorageProto`.
pub mod datanode_storage_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum StorageState {
        Normal = 0,
        ReadOnlyShared = 1,
    }
    impl StorageState {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Normal => "NORMAL",
                Self::ReadOnlyShared => "READ_ONLY_SHARED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "NORMAL" => Some(Self::Normal),
                "READ_ONLY_SHARED" => Some(Self::ReadOnlyShared),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StorageReportProto {
    #[deprecated]
    #[prost(string, required, tag = "1")]
    pub storage_uuid: ::prost::alloc::string::String,
    #[prost(bool, optional, tag = "2", default = "false")]
    pub failed: ::core::option::Option<bool>,
    #[prost(uint64, optional, tag = "3", default = "0")]
    pub capacity: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub dfs_used: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "5", default = "0")]
    pub remaining: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "6", default = "0")]
    pub block_pool_used: ::core::option::Option<u64>,
    /// supersedes StorageUuid
    #[prost(message, optional, tag = "7")]
    pub storage: ::core::option::Option<DatanodeStorageProto>,
    #[prost(uint64, optional, tag = "8")]
    pub non_dfs_used: ::core::option::Option<u64>,
    #[prost(string, optional, tag = "9")]
    pub mount: ::core::option::Option<::prost::alloc::string::String>,
}
/// *
/// Summary of a file or directory
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContentSummaryProto {
    #[prost(uint64, required, tag = "1")]
    pub length: u64,
    #[prost(uint64, required, tag = "2")]
    pub file_count: u64,
    #[prost(uint64, required, tag = "3")]
    pub directory_count: u64,
    #[prost(uint64, required, tag = "4")]
    pub quota: u64,
    #[prost(uint64, required, tag = "5")]
    pub space_consumed: u64,
    #[prost(uint64, required, tag = "6")]
    pub space_quota: u64,
    #[prost(message, optional, tag = "7")]
    pub type_quota_infos: ::core::option::Option<StorageTypeQuotaInfosProto>,
    #[prost(uint64, optional, tag = "8")]
    pub snapshot_length: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "9")]
    pub snapshot_file_count: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "10")]
    pub snapshot_directory_count: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "11")]
    pub snapshot_space_consumed: ::core::option::Option<u64>,
    #[prost(string, optional, tag = "12")]
    pub erasure_coding_policy: ::core::option::Option<::prost::alloc::string::String>,
}
/// *
/// Summary of quota usage of a directory
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuotaUsageProto {
    #[prost(uint64, required, tag = "1")]
    pub file_and_directory_count: u64,
    #[prost(uint64, required, tag = "2")]
    pub quota: u64,
    #[prost(uint64, required, tag = "3")]
    pub space_consumed: u64,
    #[prost(uint64, required, tag = "4")]
    pub space_quota: u64,
    #[prost(message, optional, tag = "5")]
    pub type_quota_infos: ::core::option::Option<StorageTypeQuotaInfosProto>,
}
/// *
/// Storage type quota and usage information of a file or directory
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StorageTypeQuotaInfosProto {
    #[prost(message, repeated, tag = "1")]
    pub type_quota_info: ::prost::alloc::vec::Vec<StorageTypeQuotaInfoProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StorageTypeQuotaInfoProto {
    #[prost(
        enumeration = "StorageTypeProto",
        optional,
        tag = "1",
        default = "Disk"
    )]
    pub r#type: ::core::option::Option<i32>,
    #[prost(uint64, required, tag = "2")]
    pub quota: u64,
    #[prost(uint64, required, tag = "3")]
    pub consumed: u64,
}
/// *
/// Contains a list of paths corresponding to corrupt files and a cookie
/// used for iterative calls to NameNode.listCorruptFileBlocks.
///
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CorruptFileBlocksProto {
    #[prost(string, repeated, tag = "1")]
    pub files: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, required, tag = "2")]
    pub cookie: ::prost::alloc::string::String,
}
/// *
/// A list of storage types.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StorageTypesProto {
    #[prost(
        enumeration = "StorageTypeProto",
        repeated,
        packed = "false",
        tag = "1"
    )]
    pub storage_types: ::prost::alloc::vec::Vec<i32>,
}
/// *
/// Block replica storage policy.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockStoragePolicyProto {
    #[prost(uint32, required, tag = "1")]
    pub policy_id: u32,
    #[prost(string, required, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// a list of storage types for storing the block replicas when creating a
    /// block.
    #[prost(message, required, tag = "3")]
    pub creation_policy: StorageTypesProto,
    /// A list of storage types for creation fallback storage.
    #[prost(message, optional, tag = "4")]
    pub creation_fallback_policy: ::core::option::Option<StorageTypesProto>,
    #[prost(message, optional, tag = "5")]
    pub replication_fallback_policy: ::core::option::Option<StorageTypesProto>,
}
/// *
/// A LocatedBlock gives information about a block and its location.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocatedBlockProto {
    #[prost(message, required, tag = "1")]
    pub b: ExtendedBlockProto,
    /// offset of first byte of block in the file
    #[prost(uint64, required, tag = "2")]
    pub offset: u64,
    /// Locations ordered by proximity to client ip
    #[prost(message, repeated, tag = "3")]
    pub locs: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    /// true if all replicas of a block are corrupt, else false
    #[prost(bool, required, tag = "4")]
    pub corrupt: bool,
    #[prost(message, required, tag = "5")]
    pub block_token: super::common::TokenProto,
    /// if a location in locs is cached
    #[prost(bool, repeated, tag = "6")]
    pub is_cached: ::prost::alloc::vec::Vec<bool>,
    #[prost(
        enumeration = "StorageTypeProto",
        repeated,
        packed = "false",
        tag = "7"
    )]
    pub storage_types: ::prost::alloc::vec::Vec<i32>,
    #[prost(string, repeated, tag = "8")]
    pub storage_i_ds: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// striped block related fields
    ///
    /// used for striped block to indicate block index for each storage
    #[prost(bytes = "vec", optional, tag = "9")]
    pub block_indices: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// each internal block has a block token
    #[prost(message, repeated, tag = "10")]
    pub block_tokens: ::prost::alloc::vec::Vec<super::common::TokenProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BatchedListingKeyProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub checksum: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint32, required, tag = "2")]
    pub path_index: u32,
    #[prost(bytes = "vec", required, tag = "3")]
    pub start_after: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DataEncryptionKeyProto {
    #[prost(uint32, required, tag = "1")]
    pub key_id: u32,
    #[prost(string, required, tag = "2")]
    pub block_pool_id: ::prost::alloc::string::String,
    #[prost(bytes = "vec", required, tag = "3")]
    pub nonce: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes = "vec", required, tag = "4")]
    pub encryption_key: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint64, required, tag = "5")]
    pub expiry_date: u64,
    #[prost(string, optional, tag = "6")]
    pub encryption_algorithm: ::core::option::Option<::prost::alloc::string::String>,
}
/// *
/// Encryption information for a file.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FileEncryptionInfoProto {
    #[prost(enumeration = "CipherSuiteProto", required, tag = "1")]
    pub suite: i32,
    #[prost(enumeration = "CryptoProtocolVersionProto", required, tag = "2")]
    pub crypto_protocol_version: i32,
    #[prost(bytes = "vec", required, tag = "3")]
    pub key: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes = "vec", required, tag = "4")]
    pub iv: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, required, tag = "5")]
    pub key_name: ::prost::alloc::string::String,
    #[prost(string, required, tag = "6")]
    pub ez_key_version_name: ::prost::alloc::string::String,
}
/// *
/// Encryption information for an individual
/// file within an encryption zone
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PerFileEncryptionInfoProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub key: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes = "vec", required, tag = "2")]
    pub iv: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, required, tag = "3")]
    pub ez_key_version_name: ::prost::alloc::string::String,
}
/// *
/// Encryption information for an encryption
/// zone
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ZoneEncryptionInfoProto {
    #[prost(enumeration = "CipherSuiteProto", required, tag = "1")]
    pub suite: i32,
    #[prost(enumeration = "CryptoProtocolVersionProto", required, tag = "2")]
    pub crypto_protocol_version: i32,
    #[prost(string, required, tag = "3")]
    pub key_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub reencryption_proto: ::core::option::Option<ReencryptionInfoProto>,
}
/// *
/// Re-encryption information for an encryption zone
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReencryptionInfoProto {
    #[prost(string, required, tag = "1")]
    pub ez_key_version_name: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "2")]
    pub submission_time: u64,
    #[prost(bool, required, tag = "3")]
    pub canceled: bool,
    #[prost(int64, required, tag = "4")]
    pub num_reencrypted: i64,
    #[prost(int64, required, tag = "5")]
    pub num_failures: i64,
    #[prost(uint64, optional, tag = "6")]
    pub completion_time: ::core::option::Option<u64>,
    #[prost(string, optional, tag = "7")]
    pub last_file: ::core::option::Option<::prost::alloc::string::String>,
}
/// *
/// Cipher option
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CipherOptionProto {
    #[prost(enumeration = "CipherSuiteProto", required, tag = "1")]
    pub suite: i32,
    #[prost(bytes = "vec", optional, tag = "2")]
    pub in_key: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    #[prost(bytes = "vec", optional, tag = "3")]
    pub in_iv: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    #[prost(bytes = "vec", optional, tag = "4")]
    pub out_key: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    #[prost(bytes = "vec", optional, tag = "5")]
    pub out_iv: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
/// *
/// A set of file blocks and their locations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocatedBlocksProto {
    #[prost(uint64, required, tag = "1")]
    pub file_length: u64,
    #[prost(message, repeated, tag = "2")]
    pub blocks: ::prost::alloc::vec::Vec<LocatedBlockProto>,
    #[prost(bool, required, tag = "3")]
    pub under_construction: bool,
    #[prost(message, optional, tag = "4")]
    pub last_block: ::core::option::Option<LocatedBlockProto>,
    #[prost(bool, required, tag = "5")]
    pub is_last_block_complete: bool,
    #[prost(message, optional, tag = "6")]
    pub file_encryption_info: ::core::option::Option<FileEncryptionInfoProto>,
    /// Optional field for erasure coding
    #[prost(message, optional, tag = "7")]
    pub ec_policy: ::core::option::Option<ErasureCodingPolicyProto>,
}
/// *
/// ECSchema options entry
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EcSchemaOptionEntryProto {
    #[prost(string, required, tag = "1")]
    pub key: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub value: ::prost::alloc::string::String,
}
/// *
/// ECSchema for erasurecoding
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcSchemaProto {
    #[prost(string, required, tag = "1")]
    pub codec_name: ::prost::alloc::string::String,
    #[prost(uint32, required, tag = "2")]
    pub data_units: u32,
    #[prost(uint32, required, tag = "3")]
    pub parity_units: u32,
    #[prost(message, repeated, tag = "4")]
    pub options: ::prost::alloc::vec::Vec<EcSchemaOptionEntryProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ErasureCodingPolicyProto {
    #[prost(string, optional, tag = "1")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub schema: ::core::option::Option<EcSchemaProto>,
    #[prost(uint32, optional, tag = "3")]
    pub cell_size: ::core::option::Option<u32>,
    /// Actually a byte - only 8 bits used
    #[prost(uint32, required, tag = "4")]
    pub id: u32,
    #[prost(
        enumeration = "ErasureCodingPolicyState",
        optional,
        tag = "5",
        default = "Enabled"
    )]
    pub state: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddErasureCodingPolicyResponseProto {
    #[prost(message, required, tag = "1")]
    pub policy: ErasureCodingPolicyProto,
    #[prost(bool, required, tag = "2")]
    pub succeed: bool,
    #[prost(string, optional, tag = "3")]
    pub error_msg: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EcTopologyVerifierResultProto {
    #[prost(string, required, tag = "1")]
    pub result_message: ::prost::alloc::string::String,
    #[prost(bool, required, tag = "2")]
    pub is_supported: bool,
}
/// *
/// Placeholder type for consistent HDFS operations.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HdfsPathHandleProto {
    #[prost(uint64, optional, tag = "1")]
    pub inode_id: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "2")]
    pub mtime: ::core::option::Option<u64>,
    #[prost(string, optional, tag = "3")]
    pub path: ::core::option::Option<::prost::alloc::string::String>,
}
/// *
/// Status of a file, directory or symlink
/// Optionally includes a file's block locations if requested by client on the rpc call.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HdfsFileStatusProto {
    #[prost(enumeration = "hdfs_file_status_proto::FileType", required, tag = "1")]
    pub file_type: i32,
    /// local name of inode encoded java UTF8
    #[prost(bytes = "vec", required, tag = "2")]
    pub path: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint64, required, tag = "3")]
    pub length: u64,
    #[prost(message, required, tag = "4")]
    pub permission: FsPermissionProto,
    #[prost(string, required, tag = "5")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, required, tag = "6")]
    pub group: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "7")]
    pub modification_time: u64,
    #[prost(uint64, required, tag = "8")]
    pub access_time: u64,
    /// Optional fields for symlink
    ///
    /// if symlink, target encoded java UTF8
    #[prost(bytes = "vec", optional, tag = "9")]
    pub symlink: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// Optional fields for file
    ///
    /// only 16bits used
    #[prost(uint32, optional, tag = "10", default = "0")]
    pub block_replication: ::core::option::Option<u32>,
    #[prost(uint64, optional, tag = "11", default = "0")]
    pub blocksize: ::core::option::Option<u64>,
    /// suppled only if asked by client
    #[prost(message, optional, tag = "12")]
    pub locations: ::core::option::Option<LocatedBlocksProto>,
    /// Optional field for fileId
    ///
    /// default as an invalid id
    #[prost(uint64, optional, tag = "13", default = "0")]
    pub file_id: ::core::option::Option<u64>,
    #[prost(int32, optional, tag = "14", default = "-1")]
    pub children_num: ::core::option::Option<i32>,
    /// Optional field for file encryption
    #[prost(message, optional, tag = "15")]
    pub file_encryption_info: ::core::option::Option<FileEncryptionInfoProto>,
    /// block storage policy id
    #[prost(uint32, optional, tag = "16", default = "0")]
    pub storage_policy: ::core::option::Option<u32>,
    /// Optional field for erasure coding
    #[prost(message, optional, tag = "17")]
    pub ec_policy: ::core::option::Option<ErasureCodingPolicyProto>,
    /// Set of flags
    #[prost(uint32, optional, tag = "18", default = "0")]
    pub flags: ::core::option::Option<u32>,
    #[prost(string, optional, tag = "19")]
    pub namespace: ::core::option::Option<::prost::alloc::string::String>,
}
/// Nested message and enum types in `HdfsFileStatusProto`.
pub mod hdfs_file_status_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum FileType {
        IsDir = 1,
        IsFile = 2,
        IsSymlink = 3,
    }
    impl FileType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::IsDir => "IS_DIR",
                Self::IsFile => "IS_FILE",
                Self::IsSymlink => "IS_SYMLINK",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "IS_DIR" => Some(Self::IsDir),
                "IS_FILE" => Some(Self::IsFile),
                "IS_SYMLINK" => Some(Self::IsSymlink),
                _ => None,
            }
        }
    }
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Flags {
        /// has ACLs
        HasAcl = 1,
        /// encrypted
        HasCrypt = 2,
        /// erasure coded
        HasEc = 4,
        /// SNAPSHOT ENABLED
        SnapshotEnabled = 8,
    }
    impl Flags {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::HasAcl => "HAS_ACL",
                Self::HasCrypt => "HAS_CRYPT",
                Self::HasEc => "HAS_EC",
                Self::SnapshotEnabled => "SNAPSHOT_ENABLED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "HAS_ACL" => Some(Self::HasAcl),
                "HAS_CRYPT" => Some(Self::HasCrypt),
                "HAS_EC" => Some(Self::HasEc),
                "SNAPSHOT_ENABLED" => Some(Self::SnapshotEnabled),
                _ => None,
            }
        }
    }
}
/// *
/// Algorithms/types denoting how block-level checksums are computed using
/// lower-level chunk checksums/CRCs.
/// These options should be kept in sync with
/// org.apache.hadoop.hdfs.protocol.BlockChecksumOptions.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockChecksumOptionsProto {
    #[prost(
        enumeration = "BlockChecksumTypeProto",
        optional,
        tag = "1",
        default = "Md5crc"
    )]
    pub block_checksum_type: ::core::option::Option<i32>,
    /// Only used if blockChecksumType specifies a striped format, such as
    /// COMPOSITE_CRC. If so, then the blockChecksum in the response is expected
    /// to be the concatenation of N crcs, where
    /// N == ((requestedLength - 1) / stripedLength) + 1
    #[prost(uint64, optional, tag = "2")]
    pub stripe_length: ::core::option::Option<u64>,
}
/// *
/// HDFS Server Defaults
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FsServerDefaultsProto {
    #[prost(uint64, required, tag = "1")]
    pub block_size: u64,
    #[prost(uint32, required, tag = "2")]
    pub bytes_per_checksum: u32,
    #[prost(uint32, required, tag = "3")]
    pub write_packet_size: u32,
    /// Actually a short - only 16 bits used
    #[prost(uint32, required, tag = "4")]
    pub replication: u32,
    #[prost(uint32, required, tag = "5")]
    pub file_buffer_size: u32,
    #[prost(bool, optional, tag = "6", default = "false")]
    pub encrypt_data_transfer: ::core::option::Option<bool>,
    #[prost(uint64, optional, tag = "7", default = "0")]
    pub trash_interval: ::core::option::Option<u64>,
    #[prost(
        enumeration = "ChecksumTypeProto",
        optional,
        tag = "8",
        default = "ChecksumCrc32"
    )]
    pub checksum_type: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "9")]
    pub key_provider_uri: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint32, optional, tag = "10", default = "0")]
    pub policy_id: ::core::option::Option<u32>,
    #[prost(bool, optional, tag = "11", default = "false")]
    pub snapshot_trash_root_enabled: ::core::option::Option<bool>,
}
/// *
/// Directory listing
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DirectoryListingProto {
    #[prost(message, repeated, tag = "1")]
    pub partial_listing: ::prost::alloc::vec::Vec<HdfsFileStatusProto>,
    #[prost(uint32, required, tag = "2")]
    pub remaining_entries: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoteExceptionProto {
    #[prost(string, required, tag = "1")]
    pub class_name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub message: ::core::option::Option<::prost::alloc::string::String>,
}
/// Directory listing result for a batched listing call.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchedDirectoryListingProto {
    #[prost(message, repeated, tag = "1")]
    pub partial_listing: ::prost::alloc::vec::Vec<HdfsFileStatusProto>,
    #[prost(uint32, required, tag = "2")]
    pub parent_idx: u32,
    #[prost(message, optional, tag = "3")]
    pub exception: ::core::option::Option<RemoteExceptionProto>,
}
/// *
/// Status of a snapshottable directory: besides the normal information for
/// a directory status, also include snapshot quota, number of snapshots, and
/// the full path of the parent directory.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshottableDirectoryStatusProto {
    #[prost(message, required, tag = "1")]
    pub dir_status: HdfsFileStatusProto,
    /// Fields specific for snapshottable directory
    #[prost(uint32, required, tag = "2")]
    pub snapshot_quota: u32,
    #[prost(uint32, required, tag = "3")]
    pub snapshot_number: u32,
    #[prost(bytes = "vec", required, tag = "4")]
    pub parent_fullpath: ::prost::alloc::vec::Vec<u8>,
}
/// *
/// Status of a snapshot directory: besides the normal information for
/// a directory status, also include snapshot ID, and
/// the full path of the parent directory.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotStatusProto {
    #[prost(message, required, tag = "1")]
    pub dir_status: HdfsFileStatusProto,
    /// Fields specific for snapshot directory
    #[prost(uint32, required, tag = "2")]
    pub snapshot_id: u32,
    #[prost(bytes = "vec", required, tag = "3")]
    pub parent_fullpath: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, required, tag = "4")]
    pub is_deleted: bool,
}
/// *
/// Snapshottable directory listing
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshottableDirectoryListingProto {
    #[prost(message, repeated, tag = "1")]
    pub snapshottable_dir_listing: ::prost::alloc::vec::Vec<SnapshottableDirectoryStatusProto>,
}
/// *
/// Snapshot listing
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotListingProto {
    #[prost(message, repeated, tag = "1")]
    pub snapshot_listing: ::prost::alloc::vec::Vec<SnapshotStatusProto>,
}
/// *
/// Snapshot diff report entry
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SnapshotDiffReportEntryProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub fullpath: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, required, tag = "2")]
    pub modification_label: ::prost::alloc::string::String,
    #[prost(bytes = "vec", optional, tag = "3")]
    pub target_path: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
/// *
/// Snapshot diff report
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotDiffReportProto {
    /// full path of the directory where snapshots were taken
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub from_snapshot: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub to_snapshot: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "4")]
    pub diff_report_entries: ::prost::alloc::vec::Vec<SnapshotDiffReportEntryProto>,
}
/// *
/// Snapshot diff report listing entry
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SnapshotDiffReportListingEntryProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub fullpath: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint64, required, tag = "2")]
    pub dir_id: u64,
    #[prost(bool, required, tag = "3")]
    pub is_reference: bool,
    #[prost(bytes = "vec", optional, tag = "4")]
    pub target_path: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    #[prost(uint64, optional, tag = "5")]
    pub file_id: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SnapshotDiffReportCursorProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub start_path: ::prost::alloc::vec::Vec<u8>,
    #[prost(int32, required, tag = "2", default = "-1")]
    pub index: i32,
}
/// *
/// Snapshot diff report listing
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotDiffReportListingProto {
    /// full path of the directory where snapshots were taken
    #[prost(message, repeated, tag = "1")]
    pub modified_entries: ::prost::alloc::vec::Vec<SnapshotDiffReportListingEntryProto>,
    #[prost(message, repeated, tag = "2")]
    pub created_entries: ::prost::alloc::vec::Vec<SnapshotDiffReportListingEntryProto>,
    #[prost(message, repeated, tag = "3")]
    pub deleted_entries: ::prost::alloc::vec::Vec<SnapshotDiffReportListingEntryProto>,
    #[prost(bool, required, tag = "4")]
    pub is_from_earlier: bool,
    #[prost(message, optional, tag = "5")]
    pub cursor: ::core::option::Option<SnapshotDiffReportCursorProto>,
}
/// *
/// Block information
///
/// Please be wary of adding additional fields here, since INodeFiles
/// need to fit in PB's default max message size of 64MB.
/// We restrict the max # of blocks per file
/// (dfs.namenode.fs-limits.max-blocks-per-file), but it's better
/// to avoid changing this.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockProto {
    #[prost(uint64, required, tag = "1")]
    pub block_id: u64,
    #[prost(uint64, required, tag = "2")]
    pub gen_stamp: u64,
    #[prost(uint64, optional, tag = "3", default = "0")]
    pub num_bytes: ::core::option::Option<u64>,
}
/// *
/// Information related to a snapshot
/// TODO: add more information
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SnapshotInfoProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_name: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(message, required, tag = "3")]
    pub permission: FsPermissionProto,
    #[prost(string, required, tag = "4")]
    pub owner: ::prost::alloc::string::String,
    #[prost(string, required, tag = "5")]
    pub group: ::prost::alloc::string::String,
    /// TODO: do we need access time?
    #[prost(string, required, tag = "6")]
    pub create_time: ::prost::alloc::string::String,
}
/// *
/// Rolling upgrade status
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollingUpgradeStatusProto {
    #[prost(string, required, tag = "1")]
    pub block_pool_id: ::prost::alloc::string::String,
    #[prost(bool, optional, tag = "2", default = "false")]
    pub finalized: ::core::option::Option<bool>,
}
/// *
/// A list of storage IDs.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StorageUuidsProto {
    #[prost(string, repeated, tag = "1")]
    pub storage_uuids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// *
/// Secret information for the BlockKeyProto. This is not sent on the wire as
/// such but is used to pack a byte array and encrypted and put in
/// BlockKeyProto.bytes
/// When adding further fields, make sure they are optional as they would
/// otherwise not be backwards compatible.
///
/// Note: As part of the migration from WritableUtils based tokens (aka "legacy")
/// to Protocol Buffers, we use the first byte to determine the type. If the
/// first byte is <=0 then it is a legacy token. This means that when using
/// protobuf tokens, the the first field sent must have a `field_number` less
/// than 16 to make sure that the first byte is positive. Otherwise it could be
/// parsed as a legacy token. See HDFS-11026 for more discussion.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockTokenSecretProto {
    #[prost(uint64, optional, tag = "1")]
    pub expiry_date: ::core::option::Option<u64>,
    #[prost(uint32, optional, tag = "2")]
    pub key_id: ::core::option::Option<u32>,
    #[prost(string, optional, tag = "3")]
    pub user_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "4")]
    pub block_pool_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint64, optional, tag = "5")]
    pub block_id: ::core::option::Option<u64>,
    #[prost(enumeration = "AccessModeProto", repeated, packed = "false", tag = "6")]
    pub modes: ::prost::alloc::vec::Vec<i32>,
    #[prost(
        enumeration = "StorageTypeProto",
        repeated,
        packed = "false",
        tag = "7"
    )]
    pub storage_types: ::prost::alloc::vec::Vec<i32>,
    #[prost(string, repeated, tag = "8")]
    pub storage_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bytes = "vec", optional, tag = "9")]
    pub handshake_secret: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
/// *
/// Clients should receive this message in RPC responses and forward it
/// in RPC requests without interpreting it. It should be encoded
/// as an obscure byte array when being sent to clients.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RouterFederatedStateProto {
    /// Last seen state IDs for multiple namespaces.
    #[prost(map = "string, int64", tag = "1")]
    pub namespace_state_ids: ::std::collections::HashMap<::prost::alloc::string::String, i64>,
}
/// *
/// Types of recognized storage media.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StorageTypeProto {
    Disk = 1,
    Ssd = 2,
    Archive = 3,
    RamDisk = 4,
    Provided = 5,
    Nvdimm = 6,
}
impl StorageTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Disk => "DISK",
            Self::Ssd => "SSD",
            Self::Archive => "ARCHIVE",
            Self::RamDisk => "RAM_DISK",
            Self::Provided => "PROVIDED",
            Self::Nvdimm => "NVDIMM",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DISK" => Some(Self::Disk),
            "SSD" => Some(Self::Ssd),
            "ARCHIVE" => Some(Self::Archive),
            "RAM_DISK" => Some(Self::RamDisk),
            "PROVIDED" => Some(Self::Provided),
            "NVDIMM" => Some(Self::Nvdimm),
            _ => None,
        }
    }
}
/// *
/// Types of recognized blocks.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum BlockTypeProto {
    Contiguous = 0,
    Striped = 1,
}
impl BlockTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Contiguous => "CONTIGUOUS",
            Self::Striped => "STRIPED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CONTIGUOUS" => Some(Self::Contiguous),
            "STRIPED" => Some(Self::Striped),
            _ => None,
        }
    }
}
/// *
/// Cipher suite.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CipherSuiteProto {
    Unknown = 1,
    AesCtrNopadding = 2,
    Sm4CtrNopadding = 3,
}
impl CipherSuiteProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unknown => "UNKNOWN",
            Self::AesCtrNopadding => "AES_CTR_NOPADDING",
            Self::Sm4CtrNopadding => "SM4_CTR_NOPADDING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UNKNOWN" => Some(Self::Unknown),
            "AES_CTR_NOPADDING" => Some(Self::AesCtrNopadding),
            "SM4_CTR_NOPADDING" => Some(Self::Sm4CtrNopadding),
            _ => None,
        }
    }
}
/// *
/// Crypto protocol version used to access encrypted files.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CryptoProtocolVersionProto {
    UnknownProtocolVersion = 1,
    EncryptionZones = 2,
}
impl CryptoProtocolVersionProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::UnknownProtocolVersion => "UNKNOWN_PROTOCOL_VERSION",
            Self::EncryptionZones => "ENCRYPTION_ZONES",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UNKNOWN_PROTOCOL_VERSION" => Some(Self::UnknownProtocolVersion),
            "ENCRYPTION_ZONES" => Some(Self::EncryptionZones),
            _ => None,
        }
    }
}
/// *
/// EC policy state.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ErasureCodingPolicyState {
    Disabled = 1,
    Enabled = 2,
    Removed = 3,
}
impl ErasureCodingPolicyState {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Disabled => "DISABLED",
            Self::Enabled => "ENABLED",
            Self::Removed => "REMOVED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DISABLED" => Some(Self::Disabled),
            "ENABLED" => Some(Self::Enabled),
            "REMOVED" => Some(Self::Removed),
            _ => None,
        }
    }
}
/// *
/// Checksum algorithms/types used in HDFS
/// Make sure this enum's integer values match enum values' id properties defined
/// in org.apache.hadoop.util.DataChecksum.Type
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChecksumTypeProto {
    ChecksumNull = 0,
    ChecksumCrc32 = 1,
    ChecksumCrc32c = 2,
}
impl ChecksumTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::ChecksumNull => "CHECKSUM_NULL",
            Self::ChecksumCrc32 => "CHECKSUM_CRC32",
            Self::ChecksumCrc32c => "CHECKSUM_CRC32C",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CHECKSUM_NULL" => Some(Self::ChecksumNull),
            "CHECKSUM_CRC32" => Some(Self::ChecksumCrc32),
            "CHECKSUM_CRC32C" => Some(Self::ChecksumCrc32c),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum BlockChecksumTypeProto {
    /// BlockChecksum obtained by taking the MD5 digest of chunk CRCs
    Md5crc = 1,
    /// Chunk-independent CRC, optionally striped
    CompositeCrc = 2,
}
impl BlockChecksumTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Md5crc => "MD5CRC",
            Self::CompositeCrc => "COMPOSITE_CRC",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "MD5CRC" => Some(Self::Md5crc),
            "COMPOSITE_CRC" => Some(Self::CompositeCrc),
            _ => None,
        }
    }
}
/// *
/// File access permissions mode.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AccessModeProto {
    Read = 1,
    Write = 2,
    Copy = 3,
    Replace = 4,
}
impl AccessModeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Read => "READ",
            Self::Write => "WRITE",
            Self::Copy => "COPY",
            Self::Replace => "REPLACE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "READ" => Some(Self::Read),
            "WRITE" => Some(Self::Write),
            "COPY" => Some(Self::Copy),
            "REPLACE" => Some(Self::Replace),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct XAttrProto {
    #[prost(enumeration = "x_attr_proto::XAttrNamespaceProto", required, tag = "1")]
    pub namespace: i32,
    #[prost(string, required, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(bytes = "vec", optional, tag = "3")]
    pub value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
/// Nested message and enum types in `XAttrProto`.
pub mod x_attr_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum XAttrNamespaceProto {
        User = 0,
        Trusted = 1,
        Security = 2,
        System = 3,
        Raw = 4,
    }
    impl XAttrNamespaceProto {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::User => "USER",
                Self::Trusted => "TRUSTED",
                Self::Security => "SECURITY",
                Self::System => "SYSTEM",
                Self::Raw => "RAW",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "USER" => Some(Self::User),
                "TRUSTED" => Some(Self::Trusted),
                "SECURITY" => Some(Self::Security),
                "SYSTEM" => Some(Self::System),
                "RAW" => Some(Self::Raw),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetXAttrRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub x_attr: ::core::option::Option<XAttrProto>,
    /// bits set using XAttrSetFlagProto
    #[prost(uint32, optional, tag = "3")]
    pub flag: ::core::option::Option<u32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetXAttrResponseProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetXAttrsRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub x_attrs: ::prost::alloc::vec::Vec<XAttrProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetXAttrsResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub x_attrs: ::prost::alloc::vec::Vec<XAttrProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListXAttrsRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListXAttrsResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub x_attrs: ::prost::alloc::vec::Vec<XAttrProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveXAttrRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub x_attr: ::core::option::Option<XAttrProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveXAttrResponseProto {}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum XAttrSetFlagProto {
    XattrCreate = 1,
    XattrReplace = 2,
}
impl XAttrSetFlagProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::XattrCreate => "XATTR_CREATE",
            Self::XattrReplace => "XATTR_REPLACE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "XATTR_CREATE" => Some(Self::XattrCreate),
            "XATTR_REPLACE" => Some(Self::XattrReplace),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateEncryptionZoneRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub key_name: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateEncryptionZoneResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListEncryptionZonesRequestProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EncryptionZoneProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
    #[prost(string, required, tag = "2")]
    pub path: ::prost::alloc::string::String,
    #[prost(enumeration = "CipherSuiteProto", required, tag = "3")]
    pub suite: i32,
    #[prost(enumeration = "CryptoProtocolVersionProto", required, tag = "4")]
    pub crypto_protocol_version: i32,
    #[prost(string, required, tag = "5")]
    pub key_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEncryptionZonesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub zones: ::prost::alloc::vec::Vec<EncryptionZoneProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReencryptEncryptionZoneRequestProto {
    #[prost(enumeration = "ReencryptActionProto", required, tag = "1")]
    pub action: i32,
    #[prost(string, required, tag = "2")]
    pub zone: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReencryptEncryptionZoneResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListReencryptionStatusRequestProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ZoneReencryptionStatusProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
    #[prost(string, required, tag = "2")]
    pub path: ::prost::alloc::string::String,
    #[prost(enumeration = "ReencryptionStateProto", required, tag = "3")]
    pub state: i32,
    #[prost(string, required, tag = "4")]
    pub ez_key_version_name: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "5")]
    pub submission_time: i64,
    #[prost(bool, required, tag = "6")]
    pub canceled: bool,
    #[prost(int64, required, tag = "7")]
    pub num_reencrypted: i64,
    #[prost(int64, required, tag = "8")]
    pub num_failures: i64,
    #[prost(int64, optional, tag = "9")]
    pub completion_time: ::core::option::Option<i64>,
    #[prost(string, optional, tag = "10")]
    pub last_file: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReencryptionStatusResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub statuses: ::prost::alloc::vec::Vec<ZoneReencryptionStatusProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetEzForPathRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetEzForPathResponseProto {
    #[prost(message, optional, tag = "1")]
    pub zone: ::core::option::Option<EncryptionZoneProto>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReencryptActionProto {
    CancelReencrypt = 1,
    StartReencrypt = 2,
}
impl ReencryptActionProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::CancelReencrypt => "CANCEL_REENCRYPT",
            Self::StartReencrypt => "START_REENCRYPT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CANCEL_REENCRYPT" => Some(Self::CancelReencrypt),
            "START_REENCRYPT" => Some(Self::StartReencrypt),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReencryptionStateProto {
    Submitted = 1,
    Processing = 2,
    Completed = 3,
}
impl ReencryptionStateProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Submitted => "SUBMITTED",
            Self::Processing => "PROCESSING",
            Self::Completed => "COMPLETED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SUBMITTED" => Some(Self::Submitted),
            "PROCESSING" => Some(Self::Processing),
            "COMPLETED" => Some(Self::Completed),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EventProto {
    #[prost(enumeration = "EventType", required, tag = "1")]
    pub r#type: i32,
    #[prost(bytes = "vec", required, tag = "2")]
    pub contents: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventBatchProto {
    #[prost(int64, required, tag = "1")]
    pub txid: i64,
    #[prost(message, repeated, tag = "2")]
    pub events: ::prost::alloc::vec::Vec<EventProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateEventProto {
    #[prost(enumeration = "INodeType", required, tag = "1")]
    pub r#type: i32,
    #[prost(string, required, tag = "2")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "3")]
    pub ctime: i64,
    #[prost(string, required, tag = "4")]
    pub owner_name: ::prost::alloc::string::String,
    #[prost(string, required, tag = "5")]
    pub group_name: ::prost::alloc::string::String,
    #[prost(message, required, tag = "6")]
    pub perms: FsPermissionProto,
    #[prost(int32, optional, tag = "7")]
    pub replication: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "8")]
    pub symlink_target: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, optional, tag = "9")]
    pub overwrite: ::core::option::Option<bool>,
    #[prost(int64, optional, tag = "10", default = "0")]
    pub default_block_size: ::core::option::Option<i64>,
    #[prost(bool, optional, tag = "11")]
    pub erasure_coded: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CloseEventProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "2")]
    pub file_size: i64,
    #[prost(int64, required, tag = "3")]
    pub timestamp: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TruncateEventProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "2")]
    pub file_size: i64,
    #[prost(int64, required, tag = "3")]
    pub timestamp: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AppendEventProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(bool, optional, tag = "2", default = "false")]
    pub new_block: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameEventProto {
    #[prost(string, required, tag = "1")]
    pub src_path: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub dest_path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "3")]
    pub timestamp: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataUpdateEventProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(enumeration = "MetadataUpdateType", required, tag = "2")]
    pub r#type: i32,
    #[prost(int64, optional, tag = "3")]
    pub mtime: ::core::option::Option<i64>,
    #[prost(int64, optional, tag = "4")]
    pub atime: ::core::option::Option<i64>,
    #[prost(int32, optional, tag = "5")]
    pub replication: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "6")]
    pub owner_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "7")]
    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "8")]
    pub perms: ::core::option::Option<FsPermissionProto>,
    #[prost(message, repeated, tag = "9")]
    pub acls: ::prost::alloc::vec::Vec<AclEntryProto>,
    #[prost(message, repeated, tag = "10")]
    pub x_attrs: ::prost::alloc::vec::Vec<XAttrProto>,
    #[prost(bool, optional, tag = "11")]
    pub x_attrs_removed: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnlinkEventProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(int64, required, tag = "2")]
    pub timestamp: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventsListProto {
    /// deprecated
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<EventProto>,
    #[prost(int64, required, tag = "2")]
    pub first_txid: i64,
    #[prost(int64, required, tag = "3")]
    pub last_txid: i64,
    #[prost(int64, required, tag = "4")]
    pub sync_txid: i64,
    #[prost(message, repeated, tag = "5")]
    pub batch: ::prost::alloc::vec::Vec<EventBatchProto>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum EventType {
    EventCreate = 0,
    EventClose = 1,
    EventAppend = 2,
    EventRename = 3,
    EventMetadata = 4,
    EventUnlink = 5,
    EventTruncate = 6,
}
impl EventType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::EventCreate => "EVENT_CREATE",
            Self::EventClose => "EVENT_CLOSE",
            Self::EventAppend => "EVENT_APPEND",
            Self::EventRename => "EVENT_RENAME",
            Self::EventMetadata => "EVENT_METADATA",
            Self::EventUnlink => "EVENT_UNLINK",
            Self::EventTruncate => "EVENT_TRUNCATE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "EVENT_CREATE" => Some(Self::EventCreate),
            "EVENT_CLOSE" => Some(Self::EventClose),
            "EVENT_APPEND" => Some(Self::EventAppend),
            "EVENT_RENAME" => Some(Self::EventRename),
            "EVENT_METADATA" => Some(Self::EventMetadata),
            "EVENT_UNLINK" => Some(Self::EventUnlink),
            "EVENT_TRUNCATE" => Some(Self::EventTruncate),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum INodeType {
    ITypeFile = 0,
    ITypeDirectory = 1,
    ITypeSymlink = 2,
}
impl INodeType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::ITypeFile => "I_TYPE_FILE",
            Self::ITypeDirectory => "I_TYPE_DIRECTORY",
            Self::ITypeSymlink => "I_TYPE_SYMLINK",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "I_TYPE_FILE" => Some(Self::ITypeFile),
            "I_TYPE_DIRECTORY" => Some(Self::ITypeDirectory),
            "I_TYPE_SYMLINK" => Some(Self::ITypeSymlink),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetadataUpdateType {
    MetaTypeTimes = 0,
    MetaTypeReplication = 1,
    MetaTypeOwner = 2,
    MetaTypePerms = 3,
    MetaTypeAcls = 4,
    MetaTypeXattrs = 5,
}
impl MetadataUpdateType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::MetaTypeTimes => "META_TYPE_TIMES",
            Self::MetaTypeReplication => "META_TYPE_REPLICATION",
            Self::MetaTypeOwner => "META_TYPE_OWNER",
            Self::MetaTypePerms => "META_TYPE_PERMS",
            Self::MetaTypeAcls => "META_TYPE_ACLS",
            Self::MetaTypeXattrs => "META_TYPE_XATTRS",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "META_TYPE_TIMES" => Some(Self::MetaTypeTimes),
            "META_TYPE_REPLICATION" => Some(Self::MetaTypeReplication),
            "META_TYPE_OWNER" => Some(Self::MetaTypeOwner),
            "META_TYPE_PERMS" => Some(Self::MetaTypePerms),
            "META_TYPE_ACLS" => Some(Self::MetaTypeAcls),
            "META_TYPE_XATTRS" => Some(Self::MetaTypeXattrs),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetErasureCodingPolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub ec_policy_name: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetErasureCodingPolicyResponseProto {}
/// void request
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetErasureCodingPoliciesRequestProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetErasureCodingPoliciesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub ec_policies: ::prost::alloc::vec::Vec<ErasureCodingPolicyProto>,
}
/// void request
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetErasureCodingCodecsRequestProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetErasureCodingCodecsResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub codec: ::prost::alloc::vec::Vec<CodecProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetErasureCodingPolicyRequestProto {
    /// path to get the policy info
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetErasureCodingPolicyResponseProto {
    #[prost(message, optional, tag = "1")]
    pub ec_policy: ::core::option::Option<ErasureCodingPolicyProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddErasureCodingPoliciesRequestProto {
    #[prost(message, repeated, tag = "1")]
    pub ec_policies: ::prost::alloc::vec::Vec<ErasureCodingPolicyProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddErasureCodingPoliciesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub responses: ::prost::alloc::vec::Vec<AddErasureCodingPolicyResponseProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveErasureCodingPolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub ec_policy_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveErasureCodingPolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EnableErasureCodingPolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub ec_policy_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EnableErasureCodingPolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DisableErasureCodingPolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub ec_policy_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DisableErasureCodingPolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsetErasureCodingPolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsetErasureCodingPolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetEcTopologyResultForPoliciesRequestProto {
    #[prost(string, repeated, tag = "1")]
    pub policies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetEcTopologyResultForPoliciesResponseProto {
    #[prost(message, required, tag = "1")]
    pub response: EcTopologyVerifierResultProto,
}
/// *
/// Block erasure coding reconstruction info
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockEcReconstructionInfoProto {
    #[prost(message, required, tag = "1")]
    pub block: ExtendedBlockProto,
    #[prost(message, required, tag = "2")]
    pub source_dn_infos: DatanodeInfosProto,
    #[prost(message, required, tag = "3")]
    pub target_dn_infos: DatanodeInfosProto,
    #[prost(message, required, tag = "4")]
    pub target_storage_uuids: StorageUuidsProto,
    #[prost(message, required, tag = "5")]
    pub target_storage_types: StorageTypesProto,
    #[prost(bytes = "vec", required, tag = "6")]
    pub live_block_indices: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, required, tag = "7")]
    pub ec_policy: ErasureCodingPolicyProto,
    #[prost(bytes = "vec", optional, tag = "8")]
    pub exclude_reconstructed_indices: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
/// *
/// Codec and it's corresponding coders
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CodecProto {
    #[prost(string, required, tag = "1")]
    pub codec: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub coders: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetBlockLocationsRequestProto {
    /// file name
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    /// range start offset
    #[prost(uint64, required, tag = "2")]
    pub offset: u64,
    /// range length
    #[prost(uint64, required, tag = "3")]
    pub length: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBlockLocationsResponseProto {
    #[prost(message, optional, tag = "1")]
    pub locations: ::core::option::Option<LocatedBlocksProto>,
}
/// No parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetServerDefaultsRequestProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetServerDefaultsResponseProto {
    #[prost(message, required, tag = "1")]
    pub server_defaults: FsServerDefaultsProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, required, tag = "2")]
    pub masked: FsPermissionProto,
    #[prost(string, required, tag = "3")]
    pub client_name: ::prost::alloc::string::String,
    /// bits set using CreateFlag
    #[prost(uint32, required, tag = "4")]
    pub create_flag: u32,
    #[prost(bool, required, tag = "5")]
    pub create_parent: bool,
    /// Short: Only 16 bits used
    #[prost(uint32, required, tag = "6")]
    pub replication: u32,
    #[prost(uint64, required, tag = "7")]
    pub block_size: u64,
    #[prost(
        enumeration = "CryptoProtocolVersionProto",
        repeated,
        packed = "false",
        tag = "8"
    )]
    pub crypto_protocol_version: ::prost::alloc::vec::Vec<i32>,
    #[prost(message, optional, tag = "9")]
    pub unmasked: ::core::option::Option<FsPermissionProto>,
    #[prost(string, optional, tag = "10")]
    pub ec_policy_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "11")]
    pub storage_policy: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateResponseProto {
    #[prost(message, optional, tag = "1")]
    pub fs: ::core::option::Option<HdfsFileStatusProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AppendRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
    /// bits set using CreateFlag
    #[prost(uint32, optional, tag = "3")]
    pub flag: ::core::option::Option<u32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppendResponseProto {
    #[prost(message, optional, tag = "1")]
    pub block: ::core::option::Option<LocatedBlockProto>,
    #[prost(message, optional, tag = "2")]
    pub stat: ::core::option::Option<HdfsFileStatusProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetReplicationRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    /// Short: Only 16 bits used
    #[prost(uint32, required, tag = "2")]
    pub replication: u32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetReplicationResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetStoragePolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub policy_name: ::prost::alloc::string::String,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetStoragePolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsetStoragePolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsetStoragePolicyResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetStoragePolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetStoragePolicyResponseProto {
    #[prost(message, required, tag = "1")]
    pub storage_policy: BlockStoragePolicyProto,
}
/// void request
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetStoragePoliciesRequestProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStoragePoliciesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub policies: ::prost::alloc::vec::Vec<BlockStoragePolicyProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetPermissionRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, required, tag = "2")]
    pub permission: FsPermissionProto,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetPermissionResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetOwnerRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub username: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub groupname: ::core::option::Option<::prost::alloc::string::String>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetOwnerResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AbandonBlockRequestProto {
    #[prost(message, required, tag = "1")]
    pub b: ExtendedBlockProto,
    #[prost(string, required, tag = "2")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub holder: ::prost::alloc::string::String,
    /// default to GRANDFATHER_INODE_ID
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub file_id: ::core::option::Option<u64>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AbandonBlockResponseProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddBlockRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub previous: ::core::option::Option<ExtendedBlockProto>,
    #[prost(message, repeated, tag = "4")]
    pub exclude_nodes: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    /// default as a bogus id
    #[prost(uint64, optional, tag = "5", default = "0")]
    pub file_id: ::core::option::Option<u64>,
    /// the set of datanodes to use for the block
    #[prost(string, repeated, tag = "6")]
    pub favored_nodes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// default to empty.
    #[prost(
        enumeration = "AddBlockFlagProto",
        repeated,
        packed = "false",
        tag = "7"
    )]
    pub flags: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddBlockResponseProto {
    #[prost(message, required, tag = "1")]
    pub block: LocatedBlockProto,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAdditionalDatanodeRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, required, tag = "2")]
    pub blk: ExtendedBlockProto,
    #[prost(message, repeated, tag = "3")]
    pub existings: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    #[prost(message, repeated, tag = "4")]
    pub excludes: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    #[prost(uint32, required, tag = "5")]
    pub num_additional_nodes: u32,
    #[prost(string, required, tag = "6")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "7")]
    pub existing_storage_uuids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// default to GRANDFATHER_INODE_ID
    #[prost(uint64, optional, tag = "8", default = "0")]
    pub file_id: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAdditionalDatanodeResponseProto {
    #[prost(message, required, tag = "1")]
    pub block: LocatedBlockProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CompleteRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub last: ::core::option::Option<ExtendedBlockProto>,
    /// default to GRANDFATHER_INODE_ID
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub file_id: ::core::option::Option<u64>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CompleteResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportBadBlocksRequestProto {
    #[prost(message, repeated, tag = "1")]
    pub blocks: ::prost::alloc::vec::Vec<LocatedBlockProto>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReportBadBlocksResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ConcatRequestProto {
    #[prost(string, required, tag = "1")]
    pub trg: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub srcs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ConcatResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TruncateRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "2")]
    pub new_length: u64,
    #[prost(string, required, tag = "3")]
    pub client_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TruncateResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub dst: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Rename2RequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub dst: ::prost::alloc::string::String,
    #[prost(bool, required, tag = "3")]
    pub overwrite_dest: bool,
    #[prost(bool, optional, tag = "4")]
    pub move_to_trash: ::core::option::Option<bool>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Rename2ResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(bool, required, tag = "2")]
    pub recursive: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MkdirsRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(message, required, tag = "2")]
    pub masked: FsPermissionProto,
    #[prost(bool, required, tag = "3")]
    pub create_parent: bool,
    #[prost(message, optional, tag = "4")]
    pub unmasked: ::core::option::Option<FsPermissionProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MkdirsResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetListingRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(bytes = "vec", required, tag = "2")]
    pub start_after: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, required, tag = "3")]
    pub need_location: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetListingResponseProto {
    #[prost(message, optional, tag = "1")]
    pub dir_list: ::core::option::Option<DirectoryListingProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetBatchedListingRequestProto {
    #[prost(string, repeated, tag = "1")]
    pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bytes = "vec", required, tag = "2")]
    pub start_after: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, required, tag = "3")]
    pub need_location: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBatchedListingResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub listings: ::prost::alloc::vec::Vec<BatchedDirectoryListingProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
    #[prost(bytes = "vec", required, tag = "3")]
    pub start_after: ::prost::alloc::vec::Vec<u8>,
}
/// no input parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSnapshottableDirListingRequestProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshottableDirListingResponseProto {
    #[prost(message, optional, tag = "1")]
    pub snapshottable_dir_list: ::core::option::Option<SnapshottableDirectoryListingProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSnapshotListingRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshotListingResponseProto {
    #[prost(message, optional, tag = "1")]
    pub snapshot_list: ::core::option::Option<SnapshotListingProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSnapshotDiffReportRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub from_snapshot: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub to_snapshot: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshotDiffReportResponseProto {
    #[prost(message, required, tag = "1")]
    pub diff_report: SnapshotDiffReportProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSnapshotDiffReportListingRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub from_snapshot: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub to_snapshot: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub cursor: ::core::option::Option<SnapshotDiffReportCursorProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSnapshotDiffReportListingResponseProto {
    #[prost(message, required, tag = "1")]
    pub diff_report: SnapshotDiffReportListingProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenewLeaseRequestProto {
    #[prost(string, required, tag = "1")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub namespaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenewLeaseResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RecoverLeaseRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RecoverLeaseResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
/// no input paramters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsStatusRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsStatsResponseProto {
    #[prost(uint64, required, tag = "1")]
    pub capacity: u64,
    #[prost(uint64, required, tag = "2")]
    pub used: u64,
    #[prost(uint64, required, tag = "3")]
    pub remaining: u64,
    #[prost(uint64, required, tag = "4")]
    pub under_replicated: u64,
    #[prost(uint64, required, tag = "5")]
    pub corrupt_blocks: u64,
    #[prost(uint64, required, tag = "6")]
    pub missing_blocks: u64,
    #[prost(uint64, optional, tag = "7")]
    pub missing_repl_one_blocks: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "8")]
    pub blocks_in_future: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "9")]
    pub pending_deletion_blocks: ::core::option::Option<u64>,
}
/// no input paramters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsReplicatedBlockStatsRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsReplicatedBlockStatsResponseProto {
    #[prost(uint64, required, tag = "1")]
    pub low_redundancy: u64,
    #[prost(uint64, required, tag = "2")]
    pub corrupt_blocks: u64,
    #[prost(uint64, required, tag = "3")]
    pub missing_blocks: u64,
    #[prost(uint64, required, tag = "4")]
    pub missing_repl_one_blocks: u64,
    #[prost(uint64, required, tag = "5")]
    pub blocks_in_future: u64,
    #[prost(uint64, required, tag = "6")]
    pub pending_deletion_blocks: u64,
    #[prost(uint64, optional, tag = "7")]
    pub highest_prio_low_redundancy_blocks: ::core::option::Option<u64>,
}
/// no input paramters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsEcBlockGroupStatsRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFsEcBlockGroupStatsResponseProto {
    #[prost(uint64, required, tag = "1")]
    pub low_redundancy: u64,
    #[prost(uint64, required, tag = "2")]
    pub corrupt_blocks: u64,
    #[prost(uint64, required, tag = "3")]
    pub missing_blocks: u64,
    #[prost(uint64, required, tag = "4")]
    pub blocks_in_future: u64,
    #[prost(uint64, required, tag = "5")]
    pub pending_deletion_blocks: u64,
    #[prost(uint64, optional, tag = "6")]
    pub highest_prio_low_redundancy_blocks: ::core::option::Option<u64>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDatanodeReportRequestProto {
    #[prost(enumeration = "DatanodeReportTypeProto", required, tag = "1")]
    pub r#type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDatanodeReportResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub di: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDatanodeStorageReportRequestProto {
    #[prost(enumeration = "DatanodeReportTypeProto", required, tag = "1")]
    pub r#type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatanodeStorageReportProto {
    #[prost(message, required, tag = "1")]
    pub datanode_info: DatanodeInfoProto,
    #[prost(message, repeated, tag = "2")]
    pub storage_reports: ::prost::alloc::vec::Vec<StorageReportProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDatanodeStorageReportResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub datanode_storage_reports: ::prost::alloc::vec::Vec<DatanodeStorageReportProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetPreferredBlockSizeRequestProto {
    #[prost(string, required, tag = "1")]
    pub filename: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetPreferredBlockSizeResponseProto {
    #[prost(uint64, required, tag = "1")]
    pub bsize: u64,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSlowDatanodeReportRequestProto {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSlowDatanodeReportResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub datanode_info_proto: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetSafeModeRequestProto {
    #[prost(enumeration = "SafeModeActionProto", required, tag = "1")]
    pub action: i32,
    #[prost(bool, optional, tag = "2", default = "false")]
    pub checked: ::core::option::Option<bool>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetSafeModeResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SaveNamespaceRequestProto {
    #[prost(uint64, optional, tag = "1", default = "0")]
    pub time_window: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "2", default = "0")]
    pub tx_gap: ::core::option::Option<u64>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SaveNamespaceResponseProto {
    #[prost(bool, optional, tag = "1", default = "true")]
    pub saved: ::core::option::Option<bool>,
}
/// no parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollEditsRequestProto {}
/// response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollEditsResponseProto {
    #[prost(uint64, required, tag = "1")]
    pub new_segment_tx_id: u64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RestoreFailedStorageRequestProto {
    #[prost(string, required, tag = "1")]
    pub arg: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RestoreFailedStorageResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
/// no parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RefreshNodesRequestProto {}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RefreshNodesResponseProto {}
/// no parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FinalizeUpgradeRequestProto {}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FinalizeUpgradeResponseProto {}
/// no parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpgradeStatusRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpgradeStatusResponseProto {
    #[prost(bool, required, tag = "1")]
    pub upgrade_finalized: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollingUpgradeRequestProto {
    #[prost(enumeration = "RollingUpgradeActionProto", required, tag = "1")]
    pub action: i32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollingUpgradeInfoProto {
    #[prost(message, required, tag = "1")]
    pub status: RollingUpgradeStatusProto,
    #[prost(uint64, required, tag = "2")]
    pub start_time: u64,
    #[prost(uint64, required, tag = "3")]
    pub finalize_time: u64,
    #[prost(bool, required, tag = "4")]
    pub created_rollback_images: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RollingUpgradeResponseProto {
    #[prost(message, optional, tag = "1")]
    pub rolling_upgrade_info: ::core::option::Option<RollingUpgradeInfoProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListCorruptFileBlocksRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub cookie: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListCorruptFileBlocksResponseProto {
    #[prost(message, required, tag = "1")]
    pub corrupt: CorruptFileBlocksProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MetaSaveRequestProto {
    #[prost(string, required, tag = "1")]
    pub filename: ::prost::alloc::string::String,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MetaSaveResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFileInfoRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFileInfoResponseProto {
    #[prost(message, optional, tag = "1")]
    pub fs: ::core::option::Option<HdfsFileStatusProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetLocatedFileInfoRequestProto {
    #[prost(string, optional, tag = "1")]
    pub src: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, optional, tag = "2", default = "false")]
    pub need_block_token: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLocatedFileInfoResponseProto {
    #[prost(message, optional, tag = "1")]
    pub fs: ::core::option::Option<HdfsFileStatusProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct IsFileClosedRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct IsFileClosedResponseProto {
    #[prost(bool, required, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CacheDirectiveInfoProto {
    #[prost(int64, optional, tag = "1")]
    pub id: ::core::option::Option<i64>,
    #[prost(string, optional, tag = "2")]
    pub path: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint32, optional, tag = "3")]
    pub replication: ::core::option::Option<u32>,
    #[prost(string, optional, tag = "4")]
    pub pool: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "5")]
    pub expiration: ::core::option::Option<CacheDirectiveInfoExpirationProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CacheDirectiveInfoExpirationProto {
    #[prost(int64, required, tag = "1")]
    pub millis: i64,
    #[prost(bool, required, tag = "2")]
    pub is_relative: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CacheDirectiveStatsProto {
    #[prost(int64, required, tag = "1")]
    pub bytes_needed: i64,
    #[prost(int64, required, tag = "2")]
    pub bytes_cached: i64,
    #[prost(int64, required, tag = "3")]
    pub files_needed: i64,
    #[prost(int64, required, tag = "4")]
    pub files_cached: i64,
    #[prost(bool, required, tag = "5")]
    pub has_expired: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddCacheDirectiveRequestProto {
    #[prost(message, required, tag = "1")]
    pub info: CacheDirectiveInfoProto,
    /// bits set using CacheFlag
    #[prost(uint32, optional, tag = "2")]
    pub cache_flags: ::core::option::Option<u32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddCacheDirectiveResponseProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ModifyCacheDirectiveRequestProto {
    #[prost(message, required, tag = "1")]
    pub info: CacheDirectiveInfoProto,
    /// bits set using CacheFlag
    #[prost(uint32, optional, tag = "2")]
    pub cache_flags: ::core::option::Option<u32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ModifyCacheDirectiveResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveCacheDirectiveRequestProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveCacheDirectiveResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListCacheDirectivesRequestProto {
    #[prost(int64, required, tag = "1")]
    pub prev_id: i64,
    #[prost(message, required, tag = "2")]
    pub filter: CacheDirectiveInfoProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CacheDirectiveEntryProto {
    #[prost(message, required, tag = "1")]
    pub info: CacheDirectiveInfoProto,
    #[prost(message, required, tag = "2")]
    pub stats: CacheDirectiveStatsProto,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCacheDirectivesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub elements: ::prost::alloc::vec::Vec<CacheDirectiveEntryProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CachePoolInfoProto {
    #[prost(string, optional, tag = "1")]
    pub pool_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "2")]
    pub owner_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(int32, optional, tag = "4")]
    pub mode: ::core::option::Option<i32>,
    #[prost(int64, optional, tag = "5")]
    pub limit: ::core::option::Option<i64>,
    #[prost(int64, optional, tag = "6")]
    pub max_relative_expiry: ::core::option::Option<i64>,
    #[prost(uint32, optional, tag = "7", default = "1")]
    pub default_replication: ::core::option::Option<u32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CachePoolStatsProto {
    #[prost(int64, required, tag = "1")]
    pub bytes_needed: i64,
    #[prost(int64, required, tag = "2")]
    pub bytes_cached: i64,
    #[prost(int64, required, tag = "3")]
    pub bytes_overlimit: i64,
    #[prost(int64, required, tag = "4")]
    pub files_needed: i64,
    #[prost(int64, required, tag = "5")]
    pub files_cached: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddCachePoolRequestProto {
    #[prost(message, required, tag = "1")]
    pub info: CachePoolInfoProto,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddCachePoolResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ModifyCachePoolRequestProto {
    #[prost(message, required, tag = "1")]
    pub info: CachePoolInfoProto,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ModifyCachePoolResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveCachePoolRequestProto {
    #[prost(string, required, tag = "1")]
    pub pool_name: ::prost::alloc::string::String,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveCachePoolResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListCachePoolsRequestProto {
    #[prost(string, required, tag = "1")]
    pub prev_pool_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCachePoolsResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub entries: ::prost::alloc::vec::Vec<CachePoolEntryProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CachePoolEntryProto {
    #[prost(message, required, tag = "1")]
    pub info: CachePoolInfoProto,
    #[prost(message, required, tag = "2")]
    pub stats: CachePoolStatsProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetFileLinkInfoRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFileLinkInfoResponseProto {
    #[prost(message, optional, tag = "1")]
    pub fs: ::core::option::Option<HdfsFileStatusProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetContentSummaryRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContentSummaryResponseProto {
    #[prost(message, required, tag = "1")]
    pub summary: ContentSummaryProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetQuotaUsageRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetQuotaUsageResponseProto {
    #[prost(message, required, tag = "1")]
    pub usage: QuotaUsageProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetQuotaRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "2")]
    pub namespace_quota: u64,
    #[prost(uint64, required, tag = "3")]
    pub storagespace_quota: u64,
    #[prost(enumeration = "StorageTypeProto", optional, tag = "4")]
    pub storage_type: ::core::option::Option<i32>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetQuotaResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FsyncRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub client: ::prost::alloc::string::String,
    #[prost(sint64, optional, tag = "3", default = "-1")]
    pub last_block_length: ::core::option::Option<i64>,
    /// default to GRANDFATHER_INODE_ID
    #[prost(uint64, optional, tag = "4", default = "0")]
    pub file_id: ::core::option::Option<u64>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct FsyncResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetTimesRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
    #[prost(uint64, required, tag = "2")]
    pub mtime: u64,
    #[prost(uint64, required, tag = "3")]
    pub atime: u64,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetTimesResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateSymlinkRequestProto {
    #[prost(string, required, tag = "1")]
    pub target: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub link: ::prost::alloc::string::String,
    #[prost(message, required, tag = "3")]
    pub dir_perm: FsPermissionProto,
    #[prost(bool, required, tag = "4")]
    pub create_parent: bool,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateSymlinkResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetLinkTargetRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetLinkTargetResponseProto {
    #[prost(string, optional, tag = "1")]
    pub target_path: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateBlockForPipelineRequestProto {
    #[prost(message, required, tag = "1")]
    pub block: ExtendedBlockProto,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBlockForPipelineResponseProto {
    #[prost(message, required, tag = "1")]
    pub block: LocatedBlockProto,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePipelineRequestProto {
    #[prost(string, required, tag = "1")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(message, required, tag = "2")]
    pub old_block: ExtendedBlockProto,
    #[prost(message, required, tag = "3")]
    pub new_block: ExtendedBlockProto,
    #[prost(message, repeated, tag = "4")]
    pub new_nodes: ::prost::alloc::vec::Vec<DatanodeIdProto>,
    #[prost(string, repeated, tag = "5")]
    pub storage_i_ds: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdatePipelineResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetBalancerBandwidthRequestProto {
    #[prost(int64, required, tag = "1")]
    pub bandwidth: i64,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetBalancerBandwidthResponseProto {}
/// no parameters
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDataEncryptionKeyRequestProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDataEncryptionKeyResponseProto {
    #[prost(message, optional, tag = "1")]
    pub data_encryption_key: ::core::option::Option<DataEncryptionKeyProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateSnapshotRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub snapshot_name: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateSnapshotResponseProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameSnapshotRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub snapshot_old_name: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub snapshot_new_name: ::prost::alloc::string::String,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RenameSnapshotResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AllowSnapshotRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AllowSnapshotResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DisallowSnapshotRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DisallowSnapshotResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteSnapshotRequestProto {
    #[prost(string, required, tag = "1")]
    pub snapshot_root: ::prost::alloc::string::String,
    #[prost(string, required, tag = "2")]
    pub snapshot_name: ::prost::alloc::string::String,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteSnapshotResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CheckAccessRequestProto {
    #[prost(string, required, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(enumeration = "acl_entry_proto::FsActionProto", required, tag = "2")]
    pub mode: i32,
}
/// void response
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CheckAccessResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetCurrentEditLogTxidRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetCurrentEditLogTxidResponseProto {
    #[prost(int64, required, tag = "1")]
    pub txid: i64,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetEditsFromTxidRequestProto {
    #[prost(int64, required, tag = "1")]
    pub txid: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEditsFromTxidResponseProto {
    #[prost(message, required, tag = "1")]
    pub events_list: EventsListProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListOpenFilesRequestProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
    #[prost(
        enumeration = "OpenFilesTypeProto",
        repeated,
        packed = "false",
        tag = "2"
    )]
    pub types: ::prost::alloc::vec::Vec<i32>,
    #[prost(string, optional, tag = "3")]
    pub path: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpenFilesBatchResponseProto {
    #[prost(int64, required, tag = "1")]
    pub id: i64,
    #[prost(string, required, tag = "2")]
    pub path: ::prost::alloc::string::String,
    #[prost(string, required, tag = "3")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(string, required, tag = "4")]
    pub client_machine: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOpenFilesResponseProto {
    #[prost(message, repeated, tag = "1")]
    pub entries: ::prost::alloc::vec::Vec<OpenFilesBatchResponseProto>,
    #[prost(bool, required, tag = "2")]
    pub has_more: bool,
    #[prost(
        enumeration = "OpenFilesTypeProto",
        repeated,
        packed = "false",
        tag = "3"
    )]
    pub types: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MsyncRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MsyncResponseProto {}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SatisfyStoragePolicyRequestProto {
    #[prost(string, required, tag = "1")]
    pub src: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SatisfyStoragePolicyResponseProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HaServiceStateRequestProto {}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HaServiceStateResponseProto {
    #[prost(
        enumeration = "super::common::HaServiceStateProto",
        required,
        tag = "1"
    )]
    pub state: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CreateFlagProto {
    /// Create a file
    Create = 1,
    /// Truncate/overwrite a file. Same as POSIX O_TRUNC
    Overwrite = 2,
    /// Append to a file
    Append = 4,
    /// File with reduced durability guarantees.
    LazyPersist = 16,
    /// Write data to a new block when appending
    NewBlock = 32,
    /// Enforce to create a replicate file
    ShouldReplicate = 128,
}
impl CreateFlagProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Create => "CREATE",
            Self::Overwrite => "OVERWRITE",
            Self::Append => "APPEND",
            Self::LazyPersist => "LAZY_PERSIST",
            Self::NewBlock => "NEW_BLOCK",
            Self::ShouldReplicate => "SHOULD_REPLICATE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CREATE" => Some(Self::Create),
            "OVERWRITE" => Some(Self::Overwrite),
            "APPEND" => Some(Self::Append),
            "LAZY_PERSIST" => Some(Self::LazyPersist),
            "NEW_BLOCK" => Some(Self::NewBlock),
            "SHOULD_REPLICATE" => Some(Self::ShouldReplicate),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AddBlockFlagProto {
    /// avoid writing to local node.
    NoLocalWrite = 1,
    /// write to a random node
    IgnoreClientLocality = 2,
}
impl AddBlockFlagProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::NoLocalWrite => "NO_LOCAL_WRITE",
            Self::IgnoreClientLocality => "IGNORE_CLIENT_LOCALITY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "NO_LOCAL_WRITE" => Some(Self::NoLocalWrite),
            "IGNORE_CLIENT_LOCALITY" => Some(Self::IgnoreClientLocality),
            _ => None,
        }
    }
}
/// type of the datanode report
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DatanodeReportTypeProto {
    All = 1,
    Live = 2,
    Dead = 3,
    Decommissioning = 4,
    EnteringMaintenance = 5,
    InMaintenance = 6,
}
impl DatanodeReportTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::All => "ALL",
            Self::Live => "LIVE",
            Self::Dead => "DEAD",
            Self::Decommissioning => "DECOMMISSIONING",
            Self::EnteringMaintenance => "ENTERING_MAINTENANCE",
            Self::InMaintenance => "IN_MAINTENANCE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ALL" => Some(Self::All),
            "LIVE" => Some(Self::Live),
            "DEAD" => Some(Self::Dead),
            "DECOMMISSIONING" => Some(Self::Decommissioning),
            "ENTERING_MAINTENANCE" => Some(Self::EnteringMaintenance),
            "IN_MAINTENANCE" => Some(Self::InMaintenance),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SafeModeActionProto {
    SafemodeLeave = 1,
    SafemodeEnter = 2,
    SafemodeGet = 3,
    SafemodeForceExit = 4,
}
impl SafeModeActionProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::SafemodeLeave => "SAFEMODE_LEAVE",
            Self::SafemodeEnter => "SAFEMODE_ENTER",
            Self::SafemodeGet => "SAFEMODE_GET",
            Self::SafemodeForceExit => "SAFEMODE_FORCE_EXIT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SAFEMODE_LEAVE" => Some(Self::SafemodeLeave),
            "SAFEMODE_ENTER" => Some(Self::SafemodeEnter),
            "SAFEMODE_GET" => Some(Self::SafemodeGet),
            "SAFEMODE_FORCE_EXIT" => Some(Self::SafemodeForceExit),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RollingUpgradeActionProto {
    Query = 1,
    Start = 2,
    Finalize = 3,
}
impl RollingUpgradeActionProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Query => "QUERY",
            Self::Start => "START",
            Self::Finalize => "FINALIZE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "QUERY" => Some(Self::Query),
            "START" => Some(Self::Start),
            "FINALIZE" => Some(Self::Finalize),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CacheFlagProto {
    /// Ignore pool resource limits
    Force = 1,
}
impl CacheFlagProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Force => "FORCE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "FORCE" => Some(Self::Force),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpenFilesTypeProto {
    AllOpenFiles = 1,
    BlockingDecommission = 2,
}
impl OpenFilesTypeProto {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::AllOpenFiles => "ALL_OPEN_FILES",
            Self::BlockingDecommission => "BLOCKING_DECOMMISSION",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ALL_OPEN_FILES" => Some(Self::AllOpenFiles),
            "BLOCKING_DECOMMISSION" => Some(Self::BlockingDecommission),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataTransferEncryptorMessageProto {
    #[prost(
        enumeration = "data_transfer_encryptor_message_proto::DataTransferEncryptorStatus",
        required,
        tag = "1"
    )]
    pub status: i32,
    #[prost(bytes = "vec", optional, tag = "2")]
    pub payload: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    #[prost(string, optional, tag = "3")]
    pub message: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, repeated, tag = "4")]
    pub cipher_option: ::prost::alloc::vec::Vec<CipherOptionProto>,
    #[prost(message, optional, tag = "5")]
    pub handshake_secret: ::core::option::Option<HandshakeSecretProto>,
    #[prost(bool, optional, tag = "6")]
    pub access_token_error: ::core::option::Option<bool>,
}
/// Nested message and enum types in `DataTransferEncryptorMessageProto`.
pub mod data_transfer_encryptor_message_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum DataTransferEncryptorStatus {
        Success = 0,
        ErrorUnknownKey = 1,
        Error = 2,
    }
    impl DataTransferEncryptorStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Success => "SUCCESS",
                Self::ErrorUnknownKey => "ERROR_UNKNOWN_KEY",
                Self::Error => "ERROR",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SUCCESS" => Some(Self::Success),
                "ERROR_UNKNOWN_KEY" => Some(Self::ErrorUnknownKey),
                "ERROR" => Some(Self::Error),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HandshakeSecretProto {
    #[prost(bytes = "vec", required, tag = "1")]
    pub secret: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, required, tag = "2")]
    pub bpid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BaseHeaderProto {
    #[prost(message, required, tag = "1")]
    pub block: ExtendedBlockProto,
    #[prost(message, optional, tag = "2")]
    pub token: ::core::option::Option<super::common::TokenProto>,
    #[prost(message, optional, tag = "3")]
    pub trace_info: ::core::option::Option<DataTransferTraceInfoProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DataTransferTraceInfoProto {
    #[prost(uint64, optional, tag = "1")]
    pub trace_id: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag = "2")]
    pub parent_id: ::core::option::Option<u64>,
    #[prost(bytes = "vec", optional, tag = "3")]
    pub span_context: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ClientOperationHeaderProto {
    #[prost(message, required, tag = "1")]
    pub base_header: BaseHeaderProto,
    #[prost(string, required, tag = "2")]
    pub client_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CachingStrategyProto {
    #[prost(bool, optional, tag = "1")]
    pub drop_behind: ::core::option::Option<bool>,
    #[prost(int64, optional, tag = "2")]
    pub readahead: ::core::option::Option<i64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpReadBlockProto {
    #[prost(message, required, tag = "1")]
    pub header: ClientOperationHeaderProto,
    #[prost(uint64, required, tag = "2")]
    pub offset: u64,
    #[prost(uint64, required, tag = "3")]
    pub len: u64,
    #[prost(bool, optional, tag = "4", default = "true")]
    pub send_checksums: ::core::option::Option<bool>,
    #[prost(message, optional, tag = "5")]
    pub caching_strategy: ::core::option::Option<CachingStrategyProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ChecksumProto {
    #[prost(enumeration = "ChecksumTypeProto", required, tag = "1")]
    pub r#type: i32,
    #[prost(uint32, required, tag = "2")]
    pub bytes_per_checksum: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpWriteBlockProto {
    #[prost(message, required, tag = "1")]
    pub header: ClientOperationHeaderProto,
    #[prost(message, repeated, tag = "2")]
    pub targets: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    #[prost(message, optional, tag = "3")]
    pub source: ::core::option::Option<DatanodeInfoProto>,
    #[prost(
        enumeration = "op_write_block_proto::BlockConstructionStage",
        required,
        tag = "4"
    )]
    pub stage: i32,
    #[prost(uint32, required, tag = "5")]
    pub pipeline_size: u32,
    #[prost(uint64, required, tag = "6")]
    pub min_bytes_rcvd: u64,
    #[prost(uint64, required, tag = "7")]
    pub max_bytes_rcvd: u64,
    #[prost(uint64, required, tag = "8")]
    pub latest_generation_stamp: u64,
    /// *
    /// The requested checksum mechanism for this block write.
    #[prost(message, required, tag = "9")]
    pub requested_checksum: ChecksumProto,
    #[prost(message, optional, tag = "10")]
    pub caching_strategy: ::core::option::Option<CachingStrategyProto>,
    #[prost(
        enumeration = "StorageTypeProto",
        optional,
        tag = "11",
        default = "Disk"
    )]
    pub storage_type: ::core::option::Option<i32>,
    #[prost(
        enumeration = "StorageTypeProto",
        repeated,
        packed = "false",
        tag = "12"
    )]
    pub target_storage_types: ::prost::alloc::vec::Vec<i32>,
    /// *
    /// Hint to the DataNode that the block can be allocated on transient
    /// storage i.e. memory and written to disk lazily. The DataNode is free
    /// to ignore this hint.
    #[prost(bool, optional, tag = "13", default = "false")]
    pub allow_lazy_persist: ::core::option::Option<bool>,
    /// whether to pin the block, so Balancer won't move it.
    #[prost(bool, optional, tag = "14", default = "false")]
    pub pinning: ::core::option::Option<bool>,
    #[prost(bool, repeated, packed = "false", tag = "15")]
    pub target_pinnings: ::prost::alloc::vec::Vec<bool>,
    #[prost(string, optional, tag = "16")]
    pub storage_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "17")]
    pub target_storage_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `OpWriteBlockProto`.
pub mod op_write_block_proto {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum BlockConstructionStage {
        PipelineSetupAppend = 0,
        /// pipeline set up for failed PIPELINE_SETUP_APPEND recovery
        PipelineSetupAppendRecovery = 1,
        /// data streaming
        DataStreaming = 2,
        /// pipeline setup for failed data streaming recovery
        PipelineSetupStreamingRecovery = 3,
        /// close the block and pipeline
        PipelineClose = 4,
        /// Recover a failed PIPELINE_CLOSE
        PipelineCloseRecovery = 5,
        /// pipeline set up for block creation
        PipelineSetupCreate = 6,
        /// transfer RBW for adding datanodes
        TransferRbw = 7,
        /// transfer Finalized for adding datanodes
        TransferFinalized = 8,
    }
    impl BlockConstructionStage {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::PipelineSetupAppend => "PIPELINE_SETUP_APPEND",
                Self::PipelineSetupAppendRecovery => "PIPELINE_SETUP_APPEND_RECOVERY",
                Self::DataStreaming => "DATA_STREAMING",
                Self::PipelineSetupStreamingRecovery => "PIPELINE_SETUP_STREAMING_RECOVERY",
                Self::PipelineClose => "PIPELINE_CLOSE",
                Self::PipelineCloseRecovery => "PIPELINE_CLOSE_RECOVERY",
                Self::PipelineSetupCreate => "PIPELINE_SETUP_CREATE",
                Self::TransferRbw => "TRANSFER_RBW",
                Self::TransferFinalized => "TRANSFER_FINALIZED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PIPELINE_SETUP_APPEND" => Some(Self::PipelineSetupAppend),
                "PIPELINE_SETUP_APPEND_RECOVERY" => Some(Self::PipelineSetupAppendRecovery),
                "DATA_STREAMING" => Some(Self::DataStreaming),
                "PIPELINE_SETUP_STREAMING_RECOVERY" => Some(Self::PipelineSetupStreamingRecovery),
                "PIPELINE_CLOSE" => Some(Self::PipelineClose),
                "PIPELINE_CLOSE_RECOVERY" => Some(Self::PipelineCloseRecovery),
                "PIPELINE_SETUP_CREATE" => Some(Self::PipelineSetupCreate),
                "TRANSFER_RBW" => Some(Self::TransferRbw),
                "TRANSFER_FINALIZED" => Some(Self::TransferFinalized),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpTransferBlockProto {
    #[prost(message, required, tag = "1")]
    pub header: ClientOperationHeaderProto,
    #[prost(message, repeated, tag = "2")]
    pub targets: ::prost::alloc::vec::Vec<DatanodeInfoProto>,
    #[prost(
        enumeration = "StorageTypeProto",
        repeated,
        packed = "false",
        tag = "3"
    )]
    pub target_storage_types: ::prost::alloc::vec::Vec<i32>,
    #[prost(string, repeated, tag = "4")]
    pub target_storage_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpReplaceBlockProto {
    #[prost(message, required, tag = "1")]
    pub header: BaseHeaderProto,
    #[prost(string, required, tag = "2")]
    pub del_hint: ::prost::alloc::string::String,
    #[prost(message, required, tag = "3")]
    pub source: DatanodeInfoProto,
    #[prost(
        enumeration = "StorageTypeProto",
        optional,
        tag = "4",
        default = "Disk"
    )]
    pub storage_type: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "5")]
    pub storage_id: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpCopyBlockProto {
    #[prost(message, required, tag = "1")]
    pub header: BaseHeaderProto,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpBlockChecksumProto {
    #[prost(message, required, tag = "1")]
    pub header: BaseHeaderProto,
    #[prost(message, optional, tag = "2")]
    pub block_checksum_options: ::core::option::Option<BlockChecksumOptionsProto>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpBlockGroupChecksumProto {
    #[prost(message, required, tag = "1")]
    pub header: BaseHeaderProto,
    #[prost(message, required, tag = "2")]
    pub datanodes: DatanodeInfosProto,
    /// each internal block has a block token
    #[prost(message, repeated, tag = "3")]
    pub block_tokens: ::prost::alloc::vec::Vec<super::common::TokenProto>,
    #[prost(message, required, tag = "4")]
    pub ec_policy: ErasureCodingPolicyProto,
    #[prost(uint32, repeated, packed = "false", tag = "5")]
    pub block_indices: ::prost::alloc::vec::Vec<u32>,
    #[prost(uint64, required, tag = "6")]
    pub requested_num_bytes: u64,
    #[prost(message, optional, tag = "7")]
    pub block_checksum_options: ::core::option::Option<BlockChecksumOptionsProto>,
}
/// *
/// An ID uniquely identifying a shared memory segment.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ShortCircuitShmIdProto {
    #[prost(int64, required, tag = "1")]
    pub hi: i64,
    #[prost(int64, required, tag = "2")]
    pub lo: i64,
}
/// *
/// An ID uniquely identifying a slot within a shared memory segment.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ShortCircuitShmSlotProto {
    #[prost(message, required, tag = "1")]
    pub shm_id: ShortCircuitShmIdProto,
    #[prost(int32, required, tag = "2")]
    pub slot_idx: i32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpRequestShortCircuitAccessProto {
    #[prost(message, required, tag = "1")]
    pub header: BaseHeaderProto,
    /// * In order to get short-circuit access to block data, clients must set this
    /// to the highest version of the block data that they can understand.
    /// Currently 1 is the only version, but more versions may exist in the future
    /// if the on-disk format changes.
    #[prost(uint32, required, tag = "2")]
    pub max_version: u32,
    /// *
    /// The shared memory slot to use, if we are using one.
    #[prost(message, optional, tag = "3")]
    pub slot_id: ::core::option::Option<ShortCircuitShmSlotProto>,
    /// *
    /// True if the client supports verifying that the file descriptor has been
    /// sent successfully.
    #[prost(bool, optional, tag = "4", default = "false")]
    pub supports_receipt_verification: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReleaseShortCircuitAccessRequestProto {
    #[prost(message, required, tag = "1")]
    pub slot_id: ShortCircuitShmSlotProto,
    #[prost(message, optional, tag = "2")]
    pub trace_info: ::core::option::Option<DataTransferTraceInfoProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReleaseShortCircuitAccessResponseProto {
    #[prost(enumeration = "Status", required, tag = "1")]
    pub status: i32,
    #[prost(string, optional, tag = "2")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ShortCircuitShmRequestProto {
    /// The name of the client requesting the shared memory segment.  This is
    /// purely for logging / debugging purposes.
    #[prost(string, required, tag = "1")]
    pub client_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub trace_info: ::core::option::Option<DataTransferTraceInfoProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ShortCircuitShmResponseProto {
    #[prost(enumeration = "Status", required, tag = "1")]
    pub status: i32,
    #[prost(string, optional, tag = "2")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub id: ::core::option::Option<ShortCircuitShmIdProto>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PacketHeaderProto {
    /// All fields must be fixed-length!
    #[prost(sfixed64, required, tag = "1")]
    pub offset_in_block: i64,
    #[prost(sfixed64, required, tag = "2")]
    pub seqno: i64,
    #[prost(bool, required, tag = "3")]
    pub last_packet_in_block: bool,
    #[prost(sfixed32, required, tag = "4")]
    pub data_len: i32,
    #[prost(bool, optional, tag = "5", default = "false")]
    pub sync_block: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PipelineAckProto {
    #[prost(sint64, required, tag = "1")]
    pub seqno: i64,
    #[prost(enumeration = "Status", repeated, packed = "false", tag = "2")]
    pub reply: ::prost::alloc::vec::Vec<i32>,
    #[prost(uint64, optional, tag = "3", default = "0")]
    pub downstream_ack_time_nanos: ::core::option::Option<u64>,
    #[prost(uint32, repeated, tag = "4")]
    pub flag: ::prost::alloc::vec::Vec<u32>,
}
/// *
/// Sent as part of the BlockOpResponseProto
/// for READ_BLOCK and COPY_BLOCK operations.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReadOpChecksumInfoProto {
    #[prost(message, required, tag = "1")]
    pub checksum: ChecksumProto,
    /// *
    /// The offset into the block at which the first packet
    /// will start. This is necessary since reads will align
    /// backwards to a checksum chunk boundary.
    #[prost(uint64, required, tag = "2")]
    pub chunk_offset: u64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockOpResponseProto {
    #[prost(enumeration = "Status", required, tag = "1")]
    pub status: i32,
    #[prost(string, optional, tag = "2")]
    pub first_bad_link: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub checksum_response: ::core::option::Option<OpBlockChecksumResponseProto>,
    #[prost(message, optional, tag = "4")]
    pub read_op_checksum_info: ::core::option::Option<ReadOpChecksumInfoProto>,
    /// * explanatory text which may be useful to log on the client side
    #[prost(string, optional, tag = "5")]
    pub message: ::core::option::Option<::prost::alloc::string::String>,
    /// * If the server chooses to agree to the request of a client for
    /// short-circuit access, it will send a response message with the relevant
    /// file descriptors attached.
    ///
    /// In the body of the message, this version number will be set to the
    /// specific version number of the block data that the client is about to
    /// read.
    #[prost(uint32, optional, tag = "6")]
    pub short_circuit_access_version: ::core::option::Option<u32>,
}
/// *
/// Message sent from the client to the DN after reading the entire
/// read request.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ClientReadStatusProto {
    #[prost(enumeration = "Status", required, tag = "1")]
    pub status: i32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DnTransferAckProto {
    #[prost(enumeration = "Status", required, tag = "1")]
    pub status: i32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpBlockChecksumResponseProto {
    #[prost(uint32, required, tag = "1")]
    pub bytes_per_crc: u32,
    #[prost(uint64, required, tag = "2")]
    pub crc_per_block: u64,
    #[prost(bytes = "vec", required, tag = "3")]
    pub block_checksum: ::prost::alloc::vec::Vec<u8>,
    #[prost(enumeration = "ChecksumTypeProto", optional, tag = "4")]
    pub crc_type: ::core::option::Option<i32>,
    #[prost(message, optional, tag = "5")]
    pub block_checksum_options: ::core::option::Option<BlockChecksumOptionsProto>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpCustomProto {
    #[prost(string, required, tag = "1")]
    pub custom_id: ::prost::alloc::string::String,
}
/// Status is a 4-bit enum
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Status {
    Success = 0,
    Error = 1,
    ErrorChecksum = 2,
    ErrorInvalid = 3,
    ErrorExists = 4,
    ErrorAccessToken = 5,
    ChecksumOk = 6,
    ErrorUnsupported = 7,
    /// Quick restart
    OobRestart = 8,
    /// Reserved
    OobReserved1 = 9,
    /// Reserved
    OobReserved2 = 10,
    /// Reserved
    OobReserved3 = 11,
    InProgress = 12,
    ErrorBlockPinned = 13,
}
impl Status {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Success => "SUCCESS",
            Self::Error => "ERROR",
            Self::ErrorChecksum => "ERROR_CHECKSUM",
            Self::ErrorInvalid => "ERROR_INVALID",
            Self::ErrorExists => "ERROR_EXISTS",
            Self::ErrorAccessToken => "ERROR_ACCESS_TOKEN",
            Self::ChecksumOk => "CHECKSUM_OK",
            Self::ErrorUnsupported => "ERROR_UNSUPPORTED",
            Self::OobRestart => "OOB_RESTART",
            Self::OobReserved1 => "OOB_RESERVED1",
            Self::OobReserved2 => "OOB_RESERVED2",
            Self::OobReserved3 => "OOB_RESERVED3",
            Self::InProgress => "IN_PROGRESS",
            Self::ErrorBlockPinned => "ERROR_BLOCK_PINNED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SUCCESS" => Some(Self::Success),
            "ERROR" => Some(Self::Error),
            "ERROR_CHECKSUM" => Some(Self::ErrorChecksum),
            "ERROR_INVALID" => Some(Self::ErrorInvalid),
            "ERROR_EXISTS" => Some(Self::ErrorExists),
            "ERROR_ACCESS_TOKEN" => Some(Self::ErrorAccessToken),
            "CHECKSUM_OK" => Some(Self::ChecksumOk),
            "ERROR_UNSUPPORTED" => Some(Self::ErrorUnsupported),
            "OOB_RESTART" => Some(Self::OobRestart),
            "OOB_RESERVED1" => Some(Self::OobReserved1),
            "OOB_RESERVED2" => Some(Self::OobReserved2),
            "OOB_RESERVED3" => Some(Self::OobReserved3),
            "IN_PROGRESS" => Some(Self::InProgress),
            "ERROR_BLOCK_PINNED" => Some(Self::ErrorBlockPinned),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ShortCircuitFdResponse {
    DoNotUseReceiptVerification = 0,
    UseReceiptVerification = 1,
}
impl ShortCircuitFdResponse {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::DoNotUseReceiptVerification => "DO_NOT_USE_RECEIPT_VERIFICATION",
            Self::UseReceiptVerification => "USE_RECEIPT_VERIFICATION",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DO_NOT_USE_RECEIPT_VERIFICATION" => Some(Self::DoNotUseReceiptVerification),
            "USE_RECEIPT_VERIFICATION" => Some(Self::UseReceiptVerification),
            _ => None,
        }
    }
}