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
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
/* automatically generated by rust-bindgen */

pub const GRPC_USE_ABSL: u32 = 0;
pub const GRPC_ARES: u32 = 1;
pub const GRPC_IF_NAMETOINDEX: u32 = 1;
pub const GRPC_ALLOW_EXCEPTIONS: u32 = 1;
pub const GRPC_COMPRESSION_REQUEST_ALGORITHM_MD_KEY: &'static [u8; 31usize] =
    b"grpc-internal-encoding-request\0";
pub const GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM: &'static [u8; 35usize] =
    b"grpc.default_compression_algorithm\0";
pub const GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL: &'static [u8; 31usize] =
    b"grpc.default_compression_level\0";
pub const GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET: &'static [u8; 43usize] =
    b"grpc.compression_enabled_algorithms_bitset\0";
pub const GRPC_ALLOW_GPR_SLICE_FUNCTIONS: u32 = 1;
pub const GRPC_SLICE_BUFFER_INLINE_ELEMENTS: u32 = 8;
pub const GRPC_ARG_ENABLE_CENSUS: &'static [u8; 12usize] = b"grpc.census\0";
pub const GRPC_ARG_ENABLE_LOAD_REPORTING: &'static [u8; 19usize] = b"grpc.loadreporting\0";
pub const GRPC_ARG_MINIMAL_STACK: &'static [u8; 19usize] = b"grpc.minimal_stack\0";
pub const GRPC_ARG_MAX_CONCURRENT_STREAMS: &'static [u8; 28usize] =
    b"grpc.max_concurrent_streams\0";
pub const GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH: &'static [u8; 32usize] =
    b"grpc.max_receive_message_length\0";
pub const GRPC_ARG_MAX_MESSAGE_LENGTH: &'static [u8; 32usize] =
    b"grpc.max_receive_message_length\0";
pub const GRPC_ARG_MAX_SEND_MESSAGE_LENGTH: &'static [u8; 29usize] =
    b"grpc.max_send_message_length\0";
pub const GRPC_ARG_MAX_CONNECTION_IDLE_MS: &'static [u8; 28usize] =
    b"grpc.max_connection_idle_ms\0";
pub const GRPC_ARG_MAX_CONNECTION_AGE_MS: &'static [u8; 27usize] = b"grpc.max_connection_age_ms\0";
pub const GRPC_ARG_MAX_CONNECTION_AGE_GRACE_MS: &'static [u8; 33usize] =
    b"grpc.max_connection_age_grace_ms\0";
pub const GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS: &'static [u8; 28usize] =
    b"grpc.client_idle_timeout_ms\0";
pub const GRPC_ARG_ENABLE_PER_MESSAGE_COMPRESSION: &'static [u8; 29usize] =
    b"grpc.per_message_compression\0";
pub const GRPC_ARG_ENABLE_DEADLINE_CHECKS: &'static [u8; 30usize] =
    b"grpc.enable_deadline_checking\0";
pub const GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER: &'static [u8; 35usize] =
    b"grpc.http2.initial_sequence_number\0";
pub const GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES: &'static [u8; 27usize] =
    b"grpc.http2.lookahead_bytes\0";
pub const GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER: &'static [u8; 36usize] =
    b"grpc.http2.hpack_table_size.decoder\0";
pub const GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER: &'static [u8; 36usize] =
    b"grpc.http2.hpack_table_size.encoder\0";
pub const GRPC_ARG_HTTP2_MAX_FRAME_SIZE: &'static [u8; 26usize] = b"grpc.http2.max_frame_size\0";
pub const GRPC_ARG_HTTP2_BDP_PROBE: &'static [u8; 21usize] = b"grpc.http2.bdp_probe\0";
pub const GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS: &'static [u8; 37usize] =
    b"grpc.http2.min_time_between_pings_ms\0";
pub const GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS: &'static [u8; 45usize] =
    b"grpc.http2.min_ping_interval_without_data_ms\0";
pub const GRPC_ARG_HTTP2_SCHEME: &'static [u8; 18usize] = b"grpc.http2_scheme\0";
pub const GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA: &'static [u8; 34usize] =
    b"grpc.http2.max_pings_without_data\0";
pub const GRPC_ARG_HTTP2_MAX_PING_STRIKES: &'static [u8; 28usize] =
    b"grpc.http2.max_ping_strikes\0";
pub const GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE: &'static [u8; 29usize] =
    b"grpc.http2.write_buffer_size\0";
pub const GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY: &'static [u8; 23usize] = b"grpc.http2.true_binary\0";
pub const GRPC_ARG_KEEPALIVE_TIME_MS: &'static [u8; 23usize] = b"grpc.keepalive_time_ms\0";
pub const GRPC_ARG_KEEPALIVE_TIMEOUT_MS: &'static [u8; 26usize] = b"grpc.keepalive_timeout_ms\0";
pub const GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS: &'static [u8; 36usize] =
    b"grpc.keepalive_permit_without_calls\0";
pub const GRPC_ARG_DEFAULT_AUTHORITY: &'static [u8; 23usize] = b"grpc.default_authority\0";
pub const GRPC_ARG_PRIMARY_USER_AGENT_STRING: &'static [u8; 24usize] = b"grpc.primary_user_agent\0";
pub const GRPC_ARG_SECONDARY_USER_AGENT_STRING: &'static [u8; 26usize] =
    b"grpc.secondary_user_agent\0";
pub const GRPC_ARG_MIN_RECONNECT_BACKOFF_MS: &'static [u8; 30usize] =
    b"grpc.min_reconnect_backoff_ms\0";
pub const GRPC_ARG_MAX_RECONNECT_BACKOFF_MS: &'static [u8; 30usize] =
    b"grpc.max_reconnect_backoff_ms\0";
pub const GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS: &'static [u8; 34usize] =
    b"grpc.initial_reconnect_backoff_ms\0";
pub const GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS: &'static [u8; 41usize] =
    b"grpc.dns_min_time_between_resolutions_ms\0";
pub const GRPC_ARG_SERVER_HANDSHAKE_TIMEOUT_MS: &'static [u8; 33usize] =
    b"grpc.server_handshake_timeout_ms\0";
pub const GRPC_SSL_TARGET_NAME_OVERRIDE_ARG: &'static [u8; 30usize] =
    b"grpc.ssl_target_name_override\0";
pub const GRPC_SSL_SESSION_CACHE_ARG: &'static [u8; 23usize] = b"grpc.ssl_session_cache\0";
pub const GRPC_ARG_TSI_MAX_FRAME_SIZE: &'static [u8; 24usize] = b"grpc.tsi.max_frame_size\0";
pub const GRPC_ARG_MAX_METADATA_SIZE: &'static [u8; 23usize] = b"grpc.max_metadata_size\0";
pub const GRPC_ARG_ALLOW_REUSEPORT: &'static [u8; 18usize] = b"grpc.so_reuseport\0";
pub const GRPC_ARG_RESOURCE_QUOTA: &'static [u8; 20usize] = b"grpc.resource_quota\0";
pub const GRPC_ARG_EXPAND_WILDCARD_ADDRS: &'static [u8; 27usize] = b"grpc.expand_wildcard_addrs\0";
pub const GRPC_ARG_SERVICE_CONFIG: &'static [u8; 20usize] = b"grpc.service_config\0";
pub const GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION: &'static [u8; 39usize] =
    b"grpc.service_config_disable_resolution\0";
pub const GRPC_ARG_LB_POLICY_NAME: &'static [u8; 20usize] = b"grpc.lb_policy_name\0";
pub const GRPC_ARG_SOCKET_MUTATOR: &'static [u8; 20usize] = b"grpc.socket_mutator\0";
pub const GRPC_ARG_SOCKET_FACTORY: &'static [u8; 20usize] = b"grpc.socket_factory\0";
pub const GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE: &'static [u8; 45usize] =
    b"grpc.max_channel_trace_event_memory_per_node\0";
pub const GRPC_ARG_ENABLE_CHANNELZ: &'static [u8; 21usize] = b"grpc.enable_channelz\0";
pub const GRPC_ARG_USE_CRONET_PACKET_COALESCING: &'static [u8; 34usize] =
    b"grpc.use_cronet_packet_coalescing\0";
pub const GRPC_ARG_TCP_READ_CHUNK_SIZE: &'static [u8; 38usize] =
    b"grpc.experimental.tcp_read_chunk_size\0";
pub const GRPC_TCP_DEFAULT_READ_SLICE_SIZE: u32 = 8192;
pub const GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE: &'static [u8; 42usize] =
    b"grpc.experimental.tcp_min_read_chunk_size\0";
pub const GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE: &'static [u8; 42usize] =
    b"grpc.experimental.tcp_max_read_chunk_size\0";
pub const GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS: &'static [u8; 28usize] =
    b"grpc.grpclb_call_timeout_ms\0";
pub const GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS: &'static [u8; 32usize] =
    b"grpc.grpclb_fallback_timeout_ms\0";
pub const GRPC_ARG_XDS_FALLBACK_TIMEOUT_MS: &'static [u8; 29usize] =
    b"grpc.xds_fallback_timeout_ms\0";
pub const GRPC_ARG_LOCALITY_RETENTION_INTERVAL_MS: &'static [u8; 40usize] =
    b"grpc.xds_locality_retention_interval_ms\0";
pub const GRPC_ARG_XDS_FAILOVER_TIMEOUT_MS: &'static [u8; 29usize] =
    b"grpc.xds_failover_timeout_ms\0";
pub const GRPC_ARG_WORKAROUND_CRONET_COMPRESSION: &'static [u8; 35usize] =
    b"grpc.workaround.cronet_compression\0";
pub const GRPC_ARG_OPTIMIZATION_TARGET: &'static [u8; 25usize] = b"grpc.optimization_target\0";
pub const GRPC_ARG_ENABLE_RETRIES: &'static [u8; 20usize] = b"grpc.enable_retries\0";
pub const GRPC_ARG_PER_RPC_RETRY_BUFFER_SIZE: &'static [u8; 31usize] =
    b"grpc.per_rpc_retry_buffer_size\0";
pub const GRPC_ARG_MOBILE_LOG_CONTEXT: &'static [u8; 24usize] = b"grpc.mobile_log_context\0";
pub const GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER: &'static [u8; 37usize] =
    b"grpc.disable_client_authority_filter\0";
pub const GRPC_ARG_ENABLE_HTTP_PROXY: &'static [u8; 23usize] = b"grpc.enable_http_proxy\0";
pub const GRPC_ARG_SURFACE_USER_AGENT: &'static [u8; 24usize] = b"grpc.surface_user_agent\0";
pub const GRPC_ARG_INHIBIT_HEALTH_CHECKING: &'static [u8; 29usize] =
    b"grpc.inhibit_health_checking\0";
pub const GRPC_ARG_DNS_ENABLE_SRV_QUERIES: &'static [u8; 28usize] =
    b"grpc.dns_enable_srv_queries\0";
pub const GRPC_ARG_DNS_ARES_QUERY_TIMEOUT_MS: &'static [u8; 28usize] =
    b"grpc.dns_ares_query_timeout\0";
pub const GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL: &'static [u8; 31usize] =
    b"grpc.use_local_subchannel_pool\0";
pub const GRPC_ARG_CHANNEL_POOL_DOMAIN: &'static [u8; 28usize] = b"grpc.channel_pooling_domain\0";
pub const GRPC_ARG_CHANNEL_ID: &'static [u8; 16usize] = b"grpc.channel_id\0";
pub const GRPC_DEFAULT_MAX_SEND_MESSAGE_LENGTH: i32 = -1;
pub const GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH: u32 = 4194304;
pub const GRPC_WRITE_BUFFER_HINT: u32 = 1;
pub const GRPC_WRITE_NO_COMPRESS: u32 = 2;
pub const GRPC_WRITE_THROUGH: u32 = 4;
pub const GRPC_WRITE_USED_MASK: u32 = 7;
pub const GRPC_INITIAL_METADATA_IDEMPOTENT_REQUEST: u32 = 16;
pub const GRPC_INITIAL_METADATA_WAIT_FOR_READY: u32 = 32;
pub const GRPC_INITIAL_METADATA_CACHEABLE_REQUEST: u32 = 64;
pub const GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET: u32 = 128;
pub const GRPC_INITIAL_METADATA_CORKED: u32 = 256;
pub const GRPC_INITIAL_METADATA_USED_MASK: u32 = 500;
pub const GRPC_CQ_CURRENT_VERSION: u32 = 2;
pub const GRPC_CQ_VERSION_MINIMUM_FOR_CALLBACKABLE: u32 = 2;
pub const GRPC_MAX_COMPLETION_QUEUE_PLUCKERS: u32 = 6;
pub const GRPC_TRANSPORT_SECURITY_TYPE_PROPERTY_NAME: &'static [u8; 24usize] =
    b"transport_security_type\0";
pub const GRPC_SSL_TRANSPORT_SECURITY_TYPE: &'static [u8; 4usize] = b"ssl\0";
pub const GRPC_X509_CN_PROPERTY_NAME: &'static [u8; 17usize] = b"x509_common_name\0";
pub const GRPC_X509_SAN_PROPERTY_NAME: &'static [u8; 30usize] = b"x509_subject_alternative_name\0";
pub const GRPC_X509_PEM_CERT_PROPERTY_NAME: &'static [u8; 14usize] = b"x509_pem_cert\0";
pub const GRPC_SSL_SESSION_REUSED_PROPERTY: &'static [u8; 19usize] = b"ssl_session_reused\0";
pub const GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR: &'static [u8; 33usize] =
    b"GRPC_DEFAULT_SSL_ROOTS_FILE_PATH\0";
pub const GRPC_GOOGLE_CREDENTIALS_ENV_VAR: &'static [u8; 31usize] =
    b"GOOGLE_APPLICATION_CREDENTIALS\0";
pub const GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX: u32 = 4;
#[repr(u32)]
#[doc = " The various compression algorithms supported by gRPC (not sorted by"]
#[doc = " compression level)"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_compression_algorithm {
    GRPC_COMPRESS_NONE = 0,
    GRPC_COMPRESS_DEFLATE = 1,
    GRPC_COMPRESS_GZIP = 2,
    GRPC_COMPRESS_STREAM_GZIP = 3,
    GRPC_COMPRESS_ALGORITHMS_COUNT = 4,
}
#[repr(u32)]
#[doc = " Compression levels allow a party with knowledge of its peer's accepted"]
#[doc = " encodings to request compression in an abstract way. The level-algorithm"]
#[doc = " mapping is performed internally and depends on the peer's supported"]
#[doc = " compression algorithms."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_compression_level {
    GRPC_COMPRESS_LEVEL_NONE = 0,
    GRPC_COMPRESS_LEVEL_LOW = 1,
    GRPC_COMPRESS_LEVEL_MED = 2,
    GRPC_COMPRESS_LEVEL_HIGH = 3,
    GRPC_COMPRESS_LEVEL_COUNT = 4,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_compression_options {
    #[doc = " All algs are enabled by default. This option corresponds to the channel"]
    #[doc = " argument key behind \\a GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET"]
    pub enabled_algorithms_bitset: u32,
    pub default_level: grpc_compression_options_grpc_compression_options_default_level,
    pub default_algorithm: grpc_compression_options_grpc_compression_options_default_algorithm,
}
#[doc = " The default compression level. It'll be used in the absence of call"]
#[doc = " specific settings. This option corresponds to the channel"]
#[doc = " argument key behind \\a GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL. If present,"]
#[doc = " takes precedence over \\a default_algorithm."]
#[doc = " TODO(dgq): currently only available for server channels."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_compression_options_grpc_compression_options_default_level {
    pub is_set: ::std::os::raw::c_int,
    pub level: grpc_compression_level,
}
#[test]
fn bindgen_test_layout_grpc_compression_options_grpc_compression_options_default_level() {
    assert_eq!(
        ::std::mem::size_of::<grpc_compression_options_grpc_compression_options_default_level>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_level)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_compression_options_grpc_compression_options_default_level>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_compression_options_grpc_compression_options_default_level)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_compression_options_grpc_compression_options_default_level>(
            )))
            .is_set as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_level),
            "::",
            stringify!(is_set)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_compression_options_grpc_compression_options_default_level>(
            )))
            .level as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_level),
            "::",
            stringify!(level)
        )
    );
}
#[doc = " The default message compression algorithm. It'll be used in the absence of"]
#[doc = " call specific settings. This option corresponds to the channel argument key"]
#[doc = " behind \\a GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_compression_options_grpc_compression_options_default_algorithm {
    pub is_set: ::std::os::raw::c_int,
    pub algorithm: grpc_compression_algorithm,
}
#[test]
fn bindgen_test_layout_grpc_compression_options_grpc_compression_options_default_algorithm() {
    assert_eq!(
        ::std::mem::size_of::<grpc_compression_options_grpc_compression_options_default_algorithm>(
        ),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_algorithm)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_compression_options_grpc_compression_options_default_algorithm>(
        ),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_compression_options_grpc_compression_options_default_algorithm)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<
                grpc_compression_options_grpc_compression_options_default_algorithm,
            >()))
            .is_set as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_algorithm),
            "::",
            stringify!(is_set)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<
                grpc_compression_options_grpc_compression_options_default_algorithm,
            >()))
            .algorithm as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options_grpc_compression_options_default_algorithm),
            "::",
            stringify!(algorithm)
        )
    );
}
#[test]
fn bindgen_test_layout_grpc_compression_options() {
    assert_eq!(
        ::std::mem::size_of::<grpc_compression_options>(),
        20usize,
        concat!("Size of: ", stringify!(grpc_compression_options))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_compression_options>(),
        4usize,
        concat!("Alignment of ", stringify!(grpc_compression_options))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_compression_options>())).enabled_algorithms_bitset
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options),
            "::",
            stringify!(enabled_algorithms_bitset)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_compression_options>())).default_level as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options),
            "::",
            stringify!(default_level)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_compression_options>())).default_algorithm as *const _
                as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_compression_options),
            "::",
            stringify!(default_algorithm)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_slice_refcount {
    _unused: [u8; 0],
}
#[doc = " A grpc_slice s, if initialized, represents the byte range"]
#[doc = "s.bytes[0..s.length-1]."]
#[doc = ""]
#[doc = "It can have an associated ref count which has a destruction routine to be run"]
#[doc = "when the ref count reaches zero (see grpc_slice_new() and grp_slice_unref())."]
#[doc = "Multiple grpc_slice values may share a ref count."]
#[doc = ""]
#[doc = "If the slice does not have a refcount, it represents an inlined small piece"]
#[doc = "of data that is copied by value."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_slice {
    pub refcount: *mut grpc_slice_refcount,
    pub data: grpc_slice_grpc_slice_data,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union grpc_slice_grpc_slice_data {
    pub refcounted: grpc_slice_grpc_slice_data_grpc_slice_refcounted,
    pub inlined: grpc_slice_grpc_slice_data_grpc_slice_inlined,
    _bindgen_union_align: [u64; 3usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_slice_grpc_slice_data_grpc_slice_refcounted {
    pub length: usize,
    pub bytes: *mut u8,
}
#[test]
fn bindgen_test_layout_grpc_slice_grpc_slice_data_grpc_slice_refcounted() {
    assert_eq!(
        ::std::mem::size_of::<grpc_slice_grpc_slice_data_grpc_slice_refcounted>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_refcounted)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_slice_grpc_slice_data_grpc_slice_refcounted>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_refcounted)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data_grpc_slice_refcounted>())).length
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_refcounted),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data_grpc_slice_refcounted>())).bytes
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_refcounted),
            "::",
            stringify!(bytes)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_slice_grpc_slice_data_grpc_slice_inlined {
    pub length: u8,
    pub bytes: [u8; 23usize],
}
#[test]
fn bindgen_test_layout_grpc_slice_grpc_slice_data_grpc_slice_inlined() {
    assert_eq!(
        ::std::mem::size_of::<grpc_slice_grpc_slice_data_grpc_slice_inlined>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_inlined)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_slice_grpc_slice_data_grpc_slice_inlined>(),
        1usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_inlined)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data_grpc_slice_inlined>())).length
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_inlined),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data_grpc_slice_inlined>())).bytes
                as *const _ as usize
        },
        1usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data_grpc_slice_inlined),
            "::",
            stringify!(bytes)
        )
    );
}
#[test]
fn bindgen_test_layout_grpc_slice_grpc_slice_data() {
    assert_eq!(
        ::std::mem::size_of::<grpc_slice_grpc_slice_data>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_slice_grpc_slice_data))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_slice_grpc_slice_data>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_slice_grpc_slice_data))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data>())).refcounted as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data),
            "::",
            stringify!(refcounted)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_slice_grpc_slice_data>())).inlined as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_grpc_slice_data),
            "::",
            stringify!(inlined)
        )
    );
}
impl ::std::fmt::Debug for grpc_slice_grpc_slice_data {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(f, "grpc_slice_grpc_slice_data {{ union }}")
    }
}
#[test]
fn bindgen_test_layout_grpc_slice() {
    assert_eq!(
        ::std::mem::size_of::<grpc_slice>(),
        32usize,
        concat!("Size of: ", stringify!(grpc_slice))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_slice>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_slice))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice>())).refcount as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice),
            "::",
            stringify!(refcount)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice>())).data as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice),
            "::",
            stringify!(data)
        )
    );
}
impl ::std::fmt::Debug for grpc_slice {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_slice {{ refcount: {:?}, data: {:?} }}",
            self.refcount, self.data
        )
    }
}
#[doc = " Represents an expandable array of slices, to be interpreted as a"]
#[doc = "single item."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_slice_buffer {
    #[doc = " This is for internal use only. External users (i.e any code outside grpc"]
    #[doc = " core) MUST NOT use this field"]
    pub base_slices: *mut grpc_slice,
    #[doc = " slices in the array (Points to the first valid grpc_slice in the array)"]
    pub slices: *mut grpc_slice,
    #[doc = " the number of slices in the array"]
    pub count: usize,
    #[doc = " the number of slices allocated in the array. External users (i.e any code"]
    #[doc = " outside grpc core) MUST NOT use this field"]
    pub capacity: usize,
    #[doc = " the combined length of all slices in the array"]
    pub length: usize,
    #[doc = " inlined elements to avoid allocations"]
    pub inlined: [grpc_slice; 8usize],
}
#[test]
fn bindgen_test_layout_grpc_slice_buffer() {
    assert_eq!(
        ::std::mem::size_of::<grpc_slice_buffer>(),
        296usize,
        concat!("Size of: ", stringify!(grpc_slice_buffer))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_slice_buffer>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_slice_buffer))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).base_slices as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(base_slices)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).slices as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(slices)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).count as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).capacity as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(capacity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).length as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(length)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_slice_buffer>())).inlined as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_slice_buffer),
            "::",
            stringify!(inlined)
        )
    );
}
impl ::std::fmt::Debug for grpc_slice_buffer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpc_slice_buffer {{ base_slices: {:?}, slices: {:?}, count: {:?}, capacity: {:?}, length: {:?}, inlined: {:?} }}" , self . base_slices , self . slices , self . count , self . capacity , self . length , self . inlined )
    }
}
#[repr(u32)]
#[doc = " The clocks we support."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum gpr_clock_type {
    #[doc = " Monotonic clock. Epoch undefined. Always moves forwards."]
    GPR_CLOCK_MONOTONIC = 0,
    #[doc = " Realtime clock. May jump forwards or backwards. Settable by"]
    #[doc = "the system administrator. Has its epoch at 0:00:00 UTC 1 Jan 1970."]
    GPR_CLOCK_REALTIME = 1,
    #[doc = " CPU cycle time obtained by rdtsc instruction on x86 platforms. Epoch"]
    #[doc = "undefined. Degrades to GPR_CLOCK_REALTIME on other platforms."]
    GPR_CLOCK_PRECISE = 2,
    #[doc = " Unmeasurable clock type: no base, created by taking the difference"]
    #[doc = "between two times"]
    GPR_TIMESPAN = 3,
}
#[doc = " Analogous to struct timespec. On some machines, absolute times may be in"]
#[doc = " local time."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpr_timespec {
    pub tv_sec: i64,
    pub tv_nsec: i32,
    #[doc = " Against which clock was this time measured? (or GPR_TIMESPAN if"]
    #[doc = "this is a relative time measure)"]
    pub clock_type: gpr_clock_type,
}
#[test]
fn bindgen_test_layout_gpr_timespec() {
    assert_eq!(
        ::std::mem::size_of::<gpr_timespec>(),
        16usize,
        concat!("Size of: ", stringify!(gpr_timespec))
    );
    assert_eq!(
        ::std::mem::align_of::<gpr_timespec>(),
        8usize,
        concat!("Alignment of ", stringify!(gpr_timespec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_timespec>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_timespec),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_timespec>())).tv_nsec as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_timespec),
            "::",
            stringify!(tv_nsec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_timespec>())).clock_type as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_timespec),
            "::",
            stringify!(clock_type)
        )
    );
}
pub type gpr_atm = isize;
extern "C" {
    #[doc = " Adds \\a delta to \\a *value, clamping the result to the range specified"]
    #[doc = "by \\a min and \\a max.  Returns the new value."]
    pub fn gpr_atm_no_barrier_clamped_add(
        value: *mut gpr_atm,
        delta: gpr_atm,
        min: gpr_atm,
        max: gpr_atm,
    ) -> gpr_atm;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpr_event {
    pub state: gpr_atm,
}
#[test]
fn bindgen_test_layout_gpr_event() {
    assert_eq!(
        ::std::mem::size_of::<gpr_event>(),
        8usize,
        concat!("Size of: ", stringify!(gpr_event))
    );
    assert_eq!(
        ::std::mem::align_of::<gpr_event>(),
        8usize,
        concat!("Alignment of ", stringify!(gpr_event))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_event>())).state as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_event),
            "::",
            stringify!(state)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpr_refcount {
    pub count: gpr_atm,
}
#[test]
fn bindgen_test_layout_gpr_refcount() {
    assert_eq!(
        ::std::mem::size_of::<gpr_refcount>(),
        8usize,
        concat!("Size of: ", stringify!(gpr_refcount))
    );
    assert_eq!(
        ::std::mem::align_of::<gpr_refcount>(),
        8usize,
        concat!("Alignment of ", stringify!(gpr_refcount))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_refcount>())).count as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_refcount),
            "::",
            stringify!(count)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpr_stats_counter {
    pub value: gpr_atm,
}
#[test]
fn bindgen_test_layout_gpr_stats_counter() {
    assert_eq!(
        ::std::mem::size_of::<gpr_stats_counter>(),
        8usize,
        concat!("Size of: ", stringify!(gpr_stats_counter))
    );
    assert_eq!(
        ::std::mem::align_of::<gpr_stats_counter>(),
        8usize,
        concat!("Alignment of ", stringify!(gpr_stats_counter))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_stats_counter>())).value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_stats_counter),
            "::",
            stringify!(value)
        )
    );
}
extern "C" {
    #[doc = " Initialize *ev."]
    pub fn gpr_event_init(ev: *mut gpr_event);
}
extern "C" {
    #[doc = " Set *ev so that gpr_event_get() and gpr_event_wait() will return value."]
    #[doc = "Requires:  *ev initialized; value != NULL; no prior or concurrent calls to"]
    #[doc = "gpr_event_set(ev, ...) since initialization."]
    pub fn gpr_event_set(ev: *mut gpr_event, value: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " Return the value set by gpr_event_set(ev, ...), or NULL if no such call has"]
    #[doc = "completed.  If the result is non-NULL, all operations that occurred prior to"]
    #[doc = "the gpr_event_set(ev, ...) set will be visible after this call returns."]
    #[doc = "Requires:  *ev initialized.  This operation is faster than acquiring a mutex"]
    #[doc = "on most platforms."]
    pub fn gpr_event_get(ev: *mut gpr_event) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Wait until *ev is set by gpr_event_set(ev, ...), or abs_deadline is"]
    #[doc = "exceeded, then return gpr_event_get(ev).  Requires:  *ev initialized.  Use"]
    #[doc = "abs_deadline==gpr_inf_future for no deadline.  When the event has been"]
    #[doc = "signalled before the call, this operation is faster than acquiring a mutex"]
    #[doc = "on most platforms."]
    pub fn gpr_event_wait(
        ev: *mut gpr_event,
        abs_deadline: gpr_timespec,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Initialize *r to value n."]
    pub fn gpr_ref_init(r: *mut gpr_refcount, n: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " Increment the reference count *r.  Requires *r initialized."]
    pub fn gpr_ref(r: *mut gpr_refcount);
}
extern "C" {
    #[doc = " Increment the reference count *r.  Requires *r initialized."]
    #[doc = "Crashes if refcount is zero"]
    pub fn gpr_ref_non_zero(r: *mut gpr_refcount);
}
extern "C" {
    #[doc = " Increment the reference count *r by n.  Requires *r initialized, n > 0."]
    pub fn gpr_refn(r: *mut gpr_refcount, n: ::std::os::raw::c_int);
}
extern "C" {
    #[doc = " Decrement the reference count *r and return non-zero iff it has reached"]
    #[doc = "zero. .  Requires *r initialized."]
    pub fn gpr_unref(r: *mut gpr_refcount) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Return non-zero iff the reference count of *r is one, and thus is owned"]
    #[doc = "by exactly one object."]
    pub fn gpr_ref_is_unique(r: *mut gpr_refcount) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Initialize *c to the value n."]
    pub fn gpr_stats_init(c: *mut gpr_stats_counter, n: isize);
}
extern "C" {
    #[doc = " *c += inc.  Requires: *c initialized."]
    pub fn gpr_stats_inc(c: *mut gpr_stats_counter, inc: isize);
}
extern "C" {
    #[doc = " Return *c.  Requires: *c initialized."]
    pub fn gpr_stats_read(c: *const gpr_stats_counter) -> isize;
}
extern "C" {
    #[doc = " Increment the refcount of s. Requires slice is initialized."]
    #[doc = "Returns s."]
    pub fn grpc_slice_ref(s: grpc_slice) -> grpc_slice;
}
extern "C" {
    #[doc = " Decrement the ref count of s.  If the ref count of s reaches zero, all"]
    #[doc = "slices sharing the ref count are destroyed, and considered no longer"]
    #[doc = "initialized.  If s is ultimately derived from a call to grpc_slice_new(start,"]
    #[doc = "len, dest) where dest!=NULL , then (*dest)(start) is called, else if s is"]
    #[doc = "ultimately derived from a call to grpc_slice_new_with_len(start, len, dest)"]
    #[doc = "where dest!=NULL , then (*dest)(start, len).  Requires s initialized."]
    pub fn grpc_slice_unref(s: grpc_slice);
}
extern "C" {
    #[doc = " Copy slice - create a new slice that contains the same data as s"]
    pub fn grpc_slice_copy(s: grpc_slice) -> grpc_slice;
}
extern "C" {
    #[doc = " Create a slice pointing at some data. Calls malloc to allocate a refcount"]
    #[doc = "for the object, and arranges that destroy will be called with the pointer"]
    #[doc = "passed in at destruction."]
    pub fn grpc_slice_new(
        p: *mut ::std::os::raw::c_void,
        len: usize,
        destroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Equivalent to grpc_slice_new, but with a separate pointer that is"]
    #[doc = "passed to the destroy function.  This function can be useful when"]
    #[doc = "the data is part of a larger structure that must be destroyed when"]
    #[doc = "the data is no longer needed."]
    pub fn grpc_slice_new_with_user_data(
        p: *mut ::std::os::raw::c_void,
        len: usize,
        destroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
        user_data: *mut ::std::os::raw::c_void,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Equivalent to grpc_slice_new, but with a two argument destroy function that"]
    #[doc = "also takes the slice length."]
    pub fn grpc_slice_new_with_len(
        p: *mut ::std::os::raw::c_void,
        len: usize,
        destroy: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: usize),
        >,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Equivalent to grpc_slice_new(malloc(len), len, free), but saves one malloc()"]
    #[doc = "call."]
    #[doc = "Aborts if malloc() fails."]
    pub fn grpc_slice_malloc(length: usize) -> grpc_slice;
}
extern "C" {
    pub fn grpc_slice_malloc_large(length: usize) -> grpc_slice;
}
extern "C" {
    #[doc = " Intern a slice:"]
    #[doc = ""]
    #[doc = "The return value for two invocations of this function with  the same sequence"]
    #[doc = "of bytes is a slice which points to the same memory."]
    pub fn grpc_slice_intern(slice: grpc_slice) -> grpc_slice;
}
extern "C" {
    #[doc = " Create a slice by copying a string."]
    #[doc = "Does not preserve null terminators."]
    #[doc = "Equivalent to:"]
    #[doc = "size_t len = strlen(source);"]
    #[doc = "grpc_slice slice = grpc_slice_malloc(len);"]
    #[doc = "memcpy(slice->data, source, len);"]
    pub fn grpc_slice_from_copied_string(source: *const ::std::os::raw::c_char) -> grpc_slice;
}
extern "C" {
    #[doc = " Create a slice by copying a buffer."]
    #[doc = "Equivalent to:"]
    #[doc = "grpc_slice slice = grpc_slice_malloc(len);"]
    #[doc = "memcpy(slice->data, source, len);"]
    pub fn grpc_slice_from_copied_buffer(
        source: *const ::std::os::raw::c_char,
        len: usize,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Create a slice pointing to constant memory"]
    pub fn grpc_slice_from_static_string(source: *const ::std::os::raw::c_char) -> grpc_slice;
}
extern "C" {
    #[doc = " Create a slice pointing to constant memory"]
    pub fn grpc_slice_from_static_buffer(
        source: *const ::std::os::raw::c_void,
        len: usize,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Return a result slice derived from s, which shares a ref count with \\a s,"]
    #[doc = "where result.data==s.data+begin, and result.length==end-begin. The ref count"]
    #[doc = "of \\a s is increased by one. Do not assign result back to \\a s."]
    #[doc = "Requires s initialized, begin <= end, begin <= s.length, and"]
    #[doc = "end <= source->length."]
    pub fn grpc_slice_sub(s: grpc_slice, begin: usize, end: usize) -> grpc_slice;
}
extern "C" {
    #[doc = " The same as grpc_slice_sub, but without altering the ref count"]
    pub fn grpc_slice_sub_no_ref(s: grpc_slice, begin: usize, end: usize) -> grpc_slice;
}
extern "C" {
    #[doc = " Splits s into two: modifies s to be s[0:split], and returns a new slice,"]
    #[doc = "sharing a refcount with s, that contains s[split:s.length]."]
    #[doc = "Requires s initialized, split <= s.length"]
    pub fn grpc_slice_split_tail(s: *mut grpc_slice, split: usize) -> grpc_slice;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_slice_ref_whom {
    GRPC_SLICE_REF_TAIL = 1,
    GRPC_SLICE_REF_HEAD = 2,
    GRPC_SLICE_REF_BOTH = 3,
}
extern "C" {
    #[doc = " The same as grpc_slice_split_tail, but with an option to skip altering"]
    #[doc = " refcounts (grpc_slice_split_tail_maybe_ref(..., true) is equivalent to"]
    #[doc = " grpc_slice_split_tail(...))"]
    pub fn grpc_slice_split_tail_maybe_ref(
        s: *mut grpc_slice,
        split: usize,
        ref_whom: grpc_slice_ref_whom,
    ) -> grpc_slice;
}
extern "C" {
    #[doc = " Splits s into two: modifies s to be s[split:s.length], and returns a new"]
    #[doc = "slice, sharing a refcount with s, that contains s[0:split]."]
    #[doc = "Requires s initialized, split <= s.length"]
    pub fn grpc_slice_split_head(s: *mut grpc_slice, split: usize) -> grpc_slice;
}
extern "C" {
    pub fn grpc_empty_slice() -> grpc_slice;
}
extern "C" {
    pub fn grpc_slice_default_hash_impl(s: grpc_slice) -> u32;
}
extern "C" {
    pub fn grpc_slice_default_eq_impl(a: grpc_slice, b: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn grpc_slice_eq(a: grpc_slice, b: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns <0 if a < b, ==0 if a == b, >0 if a > b"]
    #[doc = "The order is arbitrary, and is not guaranteed to be stable across different"]
    #[doc = "versions of the API."]
    pub fn grpc_slice_cmp(a: grpc_slice, b: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn grpc_slice_str_cmp(
        a: grpc_slice,
        b: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " return non-zero if the first blen bytes of a are equal to b"]
    pub fn grpc_slice_buf_start_eq(
        a: grpc_slice,
        b: *const ::std::os::raw::c_void,
        blen: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " return the index of the last instance of \\a c in \\a s, or -1 if not found"]
    pub fn grpc_slice_rchr(s: grpc_slice, c: ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn grpc_slice_chr(s: grpc_slice, c: ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " return the index of the first occurrence of \\a needle in \\a haystack, or -1"]
    #[doc = "if it's not found"]
    pub fn grpc_slice_slice(haystack: grpc_slice, needle: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn grpc_slice_hash(s: grpc_slice) -> u32;
}
extern "C" {
    #[doc = " Do two slices point at the same memory, with the same length"]
    #[doc = "If a or b is inlined, actually compares data"]
    pub fn grpc_slice_is_equivalent(a: grpc_slice, b: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Return a slice pointing to newly allocated memory that has the same contents"]
    #[doc = " as \\a s"]
    pub fn grpc_slice_dup(a: grpc_slice) -> grpc_slice;
}
extern "C" {
    #[doc = " Return a copy of slice as a C string. Offers no protection against embedded"]
    #[doc = "NULL's. Returned string must be freed with gpr_free."]
    pub fn grpc_slice_to_c_string(s: grpc_slice) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Return if an algorithm is message compression algorithm."]
    pub fn grpc_compression_algorithm_is_message(
        algorithm: grpc_compression_algorithm,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Return if an algorithm is stream compression algorithm."]
    pub fn grpc_compression_algorithm_is_stream(
        algorithm: grpc_compression_algorithm,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Parses the \\a slice as a grpc_compression_algorithm instance and updating \\a"]
    #[doc = " algorithm. Returns 1 upon success, 0 otherwise."]
    pub fn grpc_compression_algorithm_parse(
        value: grpc_slice,
        algorithm: *mut grpc_compression_algorithm,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Updates \\a name with the encoding name corresponding to a valid \\a"]
    #[doc = " algorithm. Note that \\a name is statically allocated and must *not* be freed."]
    #[doc = " Returns 1 upon success, 0 otherwise."]
    pub fn grpc_compression_algorithm_name(
        algorithm: grpc_compression_algorithm,
        name: *mut *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Returns the compression algorithm corresponding to \\a level for the"]
    #[doc = " compression algorithms encoded in the \\a accepted_encodings bitset."]
    pub fn grpc_compression_algorithm_for_level(
        level: grpc_compression_level,
        accepted_encodings: u32,
    ) -> grpc_compression_algorithm;
}
extern "C" {
    pub fn grpc_compression_options_init(opts: *mut grpc_compression_options);
}
extern "C" {
    #[doc = " Mark \\a algorithm as enabled in \\a opts."]
    pub fn grpc_compression_options_enable_algorithm(
        opts: *mut grpc_compression_options,
        algorithm: grpc_compression_algorithm,
    );
}
extern "C" {
    #[doc = " Mark \\a algorithm as disabled in \\a opts."]
    pub fn grpc_compression_options_disable_algorithm(
        opts: *mut grpc_compression_options,
        algorithm: grpc_compression_algorithm,
    );
}
extern "C" {
    #[doc = " Returns true if \\a algorithm is marked as enabled in \\a opts."]
    pub fn grpc_compression_options_is_algorithm_enabled(
        opts: *const grpc_compression_options,
        algorithm: grpc_compression_algorithm,
    ) -> ::std::os::raw::c_int;
}
pub mod grpc_status_code {
    pub type Type = i32;
    #[doc = " Not an error; returned on success"]
    pub const GRPC_STATUS_OK: Type = 0;
    #[doc = " The operation was cancelled (typically by the caller)."]
    pub const GRPC_STATUS_CANCELLED: Type = 1;
    #[doc = " Unknown error.  An example of where this error may be returned is"]
    #[doc = "if a Status value received from another address space belongs to"]
    #[doc = "an error-space that is not known in this address space.  Also"]
    #[doc = "errors raised by APIs that do not return enough error information"]
    #[doc = "may be converted to this error."]
    pub const GRPC_STATUS_UNKNOWN: Type = 2;
    #[doc = " Client specified an invalid argument.  Note that this differs"]
    #[doc = "from FAILED_PRECONDITION.  INVALID_ARGUMENT indicates arguments"]
    #[doc = "that are problematic regardless of the state of the system"]
    #[doc = "(e.g., a malformed file name)."]
    pub const GRPC_STATUS_INVALID_ARGUMENT: Type = 3;
    #[doc = " Deadline expired before operation could complete.  For operations"]
    #[doc = "that change the state of the system, this error may be returned"]
    #[doc = "even if the operation has completed successfully.  For example, a"]
    #[doc = "successful response from a server could have been delayed long"]
    #[doc = "enough for the deadline to expire."]
    pub const GRPC_STATUS_DEADLINE_EXCEEDED: Type = 4;
    #[doc = " Some requested entity (e.g., file or directory) was not found."]
    pub const GRPC_STATUS_NOT_FOUND: Type = 5;
    #[doc = " Some entity that we attempted to create (e.g., file or directory)"]
    #[doc = "already exists."]
    pub const GRPC_STATUS_ALREADY_EXISTS: Type = 6;
    #[doc = " The caller does not have permission to execute the specified"]
    #[doc = "operation.  PERMISSION_DENIED must not be used for rejections"]
    #[doc = "caused by exhausting some resource (use RESOURCE_EXHAUSTED"]
    #[doc = "instead for those errors).  PERMISSION_DENIED must not be"]
    #[doc = "used if the caller can not be identified (use UNAUTHENTICATED"]
    #[doc = "instead for those errors)."]
    pub const GRPC_STATUS_PERMISSION_DENIED: Type = 7;
    #[doc = " The request does not have valid authentication credentials for the"]
    #[doc = "operation."]
    pub const GRPC_STATUS_UNAUTHENTICATED: Type = 16;
    #[doc = " Some resource has been exhausted, perhaps a per-user quota, or"]
    #[doc = "perhaps the entire file system is out of space."]
    pub const GRPC_STATUS_RESOURCE_EXHAUSTED: Type = 8;
    #[doc = " Operation was rejected because the system is not in a state"]
    #[doc = "required for the operation's execution.  For example, directory"]
    #[doc = "to be deleted may be non-empty, an rmdir operation is applied to"]
    #[doc = "a non-directory, etc."]
    #[doc = ""]
    #[doc = "A litmus test that may help a service implementor in deciding"]
    #[doc = "between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE:"]
    #[doc = "(a) Use UNAVAILABLE if the client can retry just the failing call."]
    #[doc = "(b) Use ABORTED if the client should retry at a higher-level"]
    #[doc = "(e.g., restarting a read-modify-write sequence)."]
    #[doc = "(c) Use FAILED_PRECONDITION if the client should not retry until"]
    #[doc = "the system state has been explicitly fixed.  E.g., if an \"rmdir\""]
    #[doc = "fails because the directory is non-empty, FAILED_PRECONDITION"]
    #[doc = "should be returned since the client should not retry unless"]
    #[doc = "they have first fixed up the directory by deleting files from it."]
    #[doc = "(d) Use FAILED_PRECONDITION if the client performs conditional"]
    #[doc = "REST Get/Update/Delete on a resource and the resource on the"]
    #[doc = "server does not match the condition. E.g., conflicting"]
    #[doc = "read-modify-write on the same resource."]
    pub const GRPC_STATUS_FAILED_PRECONDITION: Type = 9;
    #[doc = " The operation was aborted, typically due to a concurrency issue"]
    #[doc = "like sequencer check failures, transaction aborts, etc."]
    #[doc = ""]
    #[doc = "See litmus test above for deciding between FAILED_PRECONDITION,"]
    #[doc = "ABORTED, and UNAVAILABLE."]
    pub const GRPC_STATUS_ABORTED: Type = 10;
    #[doc = " Operation was attempted past the valid range.  E.g., seeking or"]
    #[doc = "reading past end of file."]
    #[doc = ""]
    #[doc = "Unlike INVALID_ARGUMENT, this error indicates a problem that may"]
    #[doc = "be fixed if the system state changes. For example, a 32-bit file"]
    #[doc = "system will generate INVALID_ARGUMENT if asked to read at an"]
    #[doc = "offset that is not in the range [0,2^32-1], but it will generate"]
    #[doc = "OUT_OF_RANGE if asked to read from an offset past the current"]
    #[doc = "file size."]
    #[doc = ""]
    #[doc = "There is a fair bit of overlap between FAILED_PRECONDITION and"]
    #[doc = "OUT_OF_RANGE.  We recommend using OUT_OF_RANGE (the more specific"]
    #[doc = "error) when it applies so that callers who are iterating through"]
    #[doc = "a space can easily look for an OUT_OF_RANGE error to detect when"]
    #[doc = "they are done."]
    pub const GRPC_STATUS_OUT_OF_RANGE: Type = 11;
    #[doc = " Operation is not implemented or not supported/enabled in this service."]
    pub const GRPC_STATUS_UNIMPLEMENTED: Type = 12;
    #[doc = " Internal errors.  Means some invariants expected by underlying"]
    #[doc = "system has been broken.  If you see one of these errors,"]
    #[doc = "something is very broken."]
    pub const GRPC_STATUS_INTERNAL: Type = 13;
    #[doc = " The service is currently unavailable.  This is a most likely a"]
    #[doc = "transient condition and may be corrected by retrying with"]
    #[doc = "a backoff. Note that it is not always safe to retry non-idempotent"]
    #[doc = "operations."]
    #[doc = ""]
    #[doc = "WARNING: Although data MIGHT not have been transmitted when this"]
    #[doc = "status occurs, there is NOT A GUARANTEE that the server has not seen"]
    #[doc = "anything. So in general it is unsafe to retry on this status code"]
    #[doc = "if the call is non-idempotent."]
    #[doc = ""]
    #[doc = "See litmus test above for deciding between FAILED_PRECONDITION,"]
    #[doc = "ABORTED, and UNAVAILABLE."]
    pub const GRPC_STATUS_UNAVAILABLE: Type = 14;
    #[doc = " Unrecoverable data loss or corruption."]
    pub const GRPC_STATUS_DATA_LOSS: Type = 15;
    #[doc = " Force users to include a default branch:"]
    pub const GRPC_STATUS__DO_NOT_USE: Type = -1;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_byte_buffer_type {
    GRPC_BB_RAW = 0,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_byte_buffer {
    pub reserved: *mut ::std::os::raw::c_void,
    pub type_: grpc_byte_buffer_type,
    pub data: grpc_byte_buffer_grpc_byte_buffer_data,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union grpc_byte_buffer_grpc_byte_buffer_data {
    pub reserved: grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1,
    pub raw: grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer,
    _bindgen_union_align: [u64; 38usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1 {
    pub reserved: [*mut ::std::os::raw::c_void; 8usize],
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1>(),
        64usize,
        concat!(
            "Size of: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1>()))
                .reserved as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data__bindgen_ty_1),
            "::",
            stringify!(reserved)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer {
    pub compression: grpc_compression_algorithm,
    pub slice_buffer: grpc_slice_buffer,
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer>(),
        304usize,
        concat!(
            "Size of: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer>(
            )))
            .compression as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer),
            "::",
            stringify!(compression)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer>(
            )))
            .slice_buffer as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer),
            "::",
            stringify!(slice_buffer)
        )
    );
}
impl ::std::fmt::Debug for grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpc_byte_buffer_grpc_byte_buffer_data_grpc_compressed_buffer {{ compression: {:?}, slice_buffer: {:?} }}" , self . compression , self . slice_buffer )
    }
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer_grpc_byte_buffer_data() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer_grpc_byte_buffer_data>(),
        304usize,
        concat!(
            "Size of: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer_grpc_byte_buffer_data>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_grpc_byte_buffer_data>())).reserved as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_grpc_byte_buffer_data>())).raw as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_grpc_byte_buffer_data),
            "::",
            stringify!(raw)
        )
    );
}
impl ::std::fmt::Debug for grpc_byte_buffer_grpc_byte_buffer_data {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(f, "grpc_byte_buffer_grpc_byte_buffer_data {{ union }}")
    }
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer>(),
        320usize,
        concat!("Size of: ", stringify!(grpc_byte_buffer))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_byte_buffer))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_byte_buffer>())).reserved as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_byte_buffer>())).type_ as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_byte_buffer>())).data as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer),
            "::",
            stringify!(data)
        )
    );
}
impl ::std::fmt::Debug for grpc_byte_buffer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_byte_buffer {{ reserved: {:?}, type: {:?}, data: {:?} }}",
            self.reserved, self.type_, self.data
        )
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_completion_queue {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_alarm {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_channel {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_server {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_call {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_socket_mutator {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_socket_factory {
    _unused: [u8; 0],
}
#[repr(u32)]
#[doc = " Type specifier for grpc_arg"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_arg_type {
    GRPC_ARG_STRING = 0,
    GRPC_ARG_INTEGER = 1,
    GRPC_ARG_POINTER = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_arg_pointer_vtable {
    pub copy: ::std::option::Option<
        unsafe extern "C" fn(p: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
    >,
    pub destroy: ::std::option::Option<unsafe extern "C" fn(p: *mut ::std::os::raw::c_void)>,
    pub cmp: ::std::option::Option<
        unsafe extern "C" fn(
            p: *mut ::std::os::raw::c_void,
            q: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
}
#[test]
fn bindgen_test_layout_grpc_arg_pointer_vtable() {
    assert_eq!(
        ::std::mem::size_of::<grpc_arg_pointer_vtable>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_arg_pointer_vtable))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_arg_pointer_vtable>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_arg_pointer_vtable))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_pointer_vtable>())).copy as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_pointer_vtable),
            "::",
            stringify!(copy)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_pointer_vtable>())).destroy as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_pointer_vtable),
            "::",
            stringify!(destroy)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_pointer_vtable>())).cmp as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_pointer_vtable),
            "::",
            stringify!(cmp)
        )
    );
}
#[doc = " A single argument... each argument has a key and a value"]
#[doc = ""]
#[doc = "A note on naming keys:"]
#[doc = "Keys are namespaced into groups, usually grouped by library, and are"]
#[doc = "keys for module XYZ are named XYZ.key1, XYZ.key2, etc. Module names must"]
#[doc = "be restricted to the regex [A-Za-z][_A-Za-z0-9]{,15}."]
#[doc = "Key names must be restricted to the regex [A-Za-z][_A-Za-z0-9]{,47}."]
#[doc = ""]
#[doc = "GRPC core library keys are prefixed by grpc."]
#[doc = ""]
#[doc = "Library authors are strongly encouraged to \\#define symbolic constants for"]
#[doc = "their keys so that it's possible to change them in the future."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_arg {
    pub type_: grpc_arg_type,
    pub key: *mut ::std::os::raw::c_char,
    pub value: grpc_arg_grpc_arg_value,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union grpc_arg_grpc_arg_value {
    pub string: *mut ::std::os::raw::c_char,
    pub integer: ::std::os::raw::c_int,
    pub pointer: grpc_arg_grpc_arg_value_grpc_arg_pointer,
    _bindgen_union_align: [u64; 2usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_arg_grpc_arg_value_grpc_arg_pointer {
    pub p: *mut ::std::os::raw::c_void,
    pub vtable: *const grpc_arg_pointer_vtable,
}
#[test]
fn bindgen_test_layout_grpc_arg_grpc_arg_value_grpc_arg_pointer() {
    assert_eq!(
        ::std::mem::size_of::<grpc_arg_grpc_arg_value_grpc_arg_pointer>(),
        16usize,
        concat!(
            "Size of: ",
            stringify!(grpc_arg_grpc_arg_value_grpc_arg_pointer)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_arg_grpc_arg_value_grpc_arg_pointer>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_arg_grpc_arg_value_grpc_arg_pointer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_arg_grpc_arg_value_grpc_arg_pointer>())).p as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_grpc_arg_value_grpc_arg_pointer),
            "::",
            stringify!(p)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_arg_grpc_arg_value_grpc_arg_pointer>())).vtable as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_grpc_arg_value_grpc_arg_pointer),
            "::",
            stringify!(vtable)
        )
    );
}
#[test]
fn bindgen_test_layout_grpc_arg_grpc_arg_value() {
    assert_eq!(
        ::std::mem::size_of::<grpc_arg_grpc_arg_value>(),
        16usize,
        concat!("Size of: ", stringify!(grpc_arg_grpc_arg_value))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_arg_grpc_arg_value>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_arg_grpc_arg_value))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_grpc_arg_value>())).string as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_grpc_arg_value),
            "::",
            stringify!(string)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_grpc_arg_value>())).integer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_grpc_arg_value),
            "::",
            stringify!(integer)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg_grpc_arg_value>())).pointer as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg_grpc_arg_value),
            "::",
            stringify!(pointer)
        )
    );
}
impl ::std::fmt::Debug for grpc_arg_grpc_arg_value {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(f, "grpc_arg_grpc_arg_value {{ union }}")
    }
}
#[test]
fn bindgen_test_layout_grpc_arg() {
    assert_eq!(
        ::std::mem::size_of::<grpc_arg>(),
        32usize,
        concat!("Size of: ", stringify!(grpc_arg))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_arg>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_arg))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg>())).key as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg),
            "::",
            stringify!(key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_arg>())).value as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_arg),
            "::",
            stringify!(value)
        )
    );
}
impl ::std::fmt::Debug for grpc_arg {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_arg {{ type: {:?}, key: {:?}, value: {:?} }}",
            self.type_, self.key, self.value
        )
    }
}
#[doc = " An array of arguments that can be passed around."]
#[doc = ""]
#[doc = "Used to set optional channel-level configuration."]
#[doc = "These configuration options are modelled as key-value pairs as defined"]
#[doc = "by grpc_arg; keys are strings to allow easy backwards-compatible extension"]
#[doc = "by arbitrary parties. All evaluation is performed at channel creation"]
#[doc = "time (i.e. the keys and values in this structure need only live through the"]
#[doc = "creation invocation)."]
#[doc = ""]
#[doc = "However, if one of the args has grpc_arg_type==GRPC_ARG_POINTER, then the"]
#[doc = "grpc_arg_pointer_vtable must live until the channel args are done being"]
#[doc = "used by core (i.e. when the object for use with which they were passed"]
#[doc = "is destroyed)."]
#[doc = ""]
#[doc = "See the description of the \\ref grpc_arg_keys \"available args\" for more"]
#[doc = "details."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_channel_args {
    pub num_args: usize,
    pub args: *mut grpc_arg,
}
#[test]
fn bindgen_test_layout_grpc_channel_args() {
    assert_eq!(
        ::std::mem::size_of::<grpc_channel_args>(),
        16usize,
        concat!("Size of: ", stringify!(grpc_channel_args))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_channel_args>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_channel_args))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_channel_args>())).num_args as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_channel_args),
            "::",
            stringify!(num_args)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_channel_args>())).args as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_channel_args),
            "::",
            stringify!(args)
        )
    );
}
#[repr(u32)]
#[doc = " Result of a grpc call. If the caller satisfies the prerequisites of a"]
#[doc = "particular operation, the grpc_call_error returned will be GRPC_CALL_OK."]
#[doc = "Receiving any other value listed here is an indication of a bug in the"]
#[doc = "caller."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_call_error {
    #[doc = " everything went ok"]
    GRPC_CALL_OK = 0,
    #[doc = " something failed, we don't know what"]
    GRPC_CALL_ERROR = 1,
    #[doc = " this method is not available on the server"]
    GRPC_CALL_ERROR_NOT_ON_SERVER = 2,
    #[doc = " this method is not available on the client"]
    GRPC_CALL_ERROR_NOT_ON_CLIENT = 3,
    #[doc = " this method must be called before server_accept"]
    GRPC_CALL_ERROR_ALREADY_ACCEPTED = 4,
    #[doc = " this method must be called before invoke"]
    GRPC_CALL_ERROR_ALREADY_INVOKED = 5,
    #[doc = " this method must be called after invoke"]
    GRPC_CALL_ERROR_NOT_INVOKED = 6,
    #[doc = " this call is already finished"]
    #[doc = "(writes_done or write_status has already been called)"]
    GRPC_CALL_ERROR_ALREADY_FINISHED = 7,
    #[doc = " there is already an outstanding read/write operation on the call"]
    GRPC_CALL_ERROR_TOO_MANY_OPERATIONS = 8,
    #[doc = " the flags value was illegal for this call"]
    GRPC_CALL_ERROR_INVALID_FLAGS = 9,
    #[doc = " invalid metadata was passed to this call"]
    GRPC_CALL_ERROR_INVALID_METADATA = 10,
    #[doc = " invalid message was passed to this call"]
    GRPC_CALL_ERROR_INVALID_MESSAGE = 11,
    #[doc = " completion queue for notification has not been registered"]
    #[doc = " with the server"]
    GRPC_CALL_ERROR_NOT_SERVER_COMPLETION_QUEUE = 12,
    #[doc = " this batch of operations leads to more operations than allowed"]
    GRPC_CALL_ERROR_BATCH_TOO_BIG = 13,
    #[doc = " payload type requested is not the type registered"]
    GRPC_CALL_ERROR_PAYLOAD_TYPE_MISMATCH = 14,
    #[doc = " completion queue has been shutdown"]
    GRPC_CALL_ERROR_COMPLETION_QUEUE_SHUTDOWN = 15,
}
#[doc = " A single metadata element"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_metadata {
    #[doc = " the key, value values are expected to line up with grpc_mdelem: if"]
    #[doc = "changing them, update metadata.h at the same time."]
    pub key: grpc_slice,
    pub value: grpc_slice,
    pub flags: u32,
    pub internal_data: grpc_metadata__bindgen_ty_1,
}
#[doc = " The following fields are reserved for grpc internal use."]
#[doc = "There is no need to initialize them, and they will be set to garbage"]
#[doc = "during calls to grpc."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_metadata__bindgen_ty_1 {
    pub obfuscated: [*mut ::std::os::raw::c_void; 4usize],
}
#[test]
fn bindgen_test_layout_grpc_metadata__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<grpc_metadata__bindgen_ty_1>(),
        32usize,
        concat!("Size of: ", stringify!(grpc_metadata__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_metadata__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_metadata__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_metadata__bindgen_ty_1>())).obfuscated as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata__bindgen_ty_1),
            "::",
            stringify!(obfuscated)
        )
    );
}
#[test]
fn bindgen_test_layout_grpc_metadata() {
    assert_eq!(
        ::std::mem::size_of::<grpc_metadata>(),
        104usize,
        concat!("Size of: ", stringify!(grpc_metadata))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_metadata>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_metadata))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata>())).key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata),
            "::",
            stringify!(key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata>())).value as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata),
            "::",
            stringify!(value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata>())).flags as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata>())).internal_data as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata),
            "::",
            stringify!(internal_data)
        )
    );
}
impl ::std::fmt::Debug for grpc_metadata {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_metadata {{ key: {:?}, value: {:?}, flags: {:?}, internal_data: {:?} }}",
            self.key, self.value, self.flags, self.internal_data
        )
    }
}
#[repr(u32)]
#[doc = " The type of completion (for grpc_event)"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_completion_type {
    #[doc = " Shutting down"]
    GRPC_QUEUE_SHUTDOWN = 0,
    #[doc = " No event before timeout"]
    GRPC_QUEUE_TIMEOUT = 1,
    #[doc = " Operation completion"]
    GRPC_OP_COMPLETE = 2,
}
#[doc = " The result of an operation."]
#[doc = ""]
#[doc = "Returned by a completion queue when the operation started with tag."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_event {
    #[doc = " The type of the completion."]
    pub type_: grpc_completion_type,
    #[doc = " If the grpc_completion_type is GRPC_OP_COMPLETE, this field indicates"]
    #[doc = "whether the operation was successful or not; 0 in case of failure and"]
    #[doc = "non-zero in case of success."]
    #[doc = "If grpc_completion_type is GRPC_QUEUE_SHUTDOWN or GRPC_QUEUE_TIMEOUT, this"]
    #[doc = "field is guaranteed to be 0"]
    pub success: ::std::os::raw::c_int,
    #[doc = " The tag passed to grpc_call_start_batch etc to start this operation."]
    #[doc = "Only* GRPC_OP_COMPLETE has a tag. For all other grpc_completion_type"]
    #[doc = "values, tag is uninitialized."]
    pub tag: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_grpc_event() {
    assert_eq!(
        ::std::mem::size_of::<grpc_event>(),
        16usize,
        concat!("Size of: ", stringify!(grpc_event))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_event>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_event))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_event>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_event),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_event>())).success as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_event),
            "::",
            stringify!(success)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_event>())).tag as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_event),
            "::",
            stringify!(tag)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_metadata_array {
    pub count: usize,
    pub capacity: usize,
    pub metadata: *mut grpc_metadata,
}
#[test]
fn bindgen_test_layout_grpc_metadata_array() {
    assert_eq!(
        ::std::mem::size_of::<grpc_metadata_array>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_metadata_array))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_metadata_array>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_metadata_array))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata_array>())).count as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_array),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata_array>())).capacity as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_array),
            "::",
            stringify!(capacity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_metadata_array>())).metadata as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_array),
            "::",
            stringify!(metadata)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_call_details {
    pub method: grpc_slice,
    pub host: grpc_slice,
    pub deadline: gpr_timespec,
    pub flags: u32,
    pub reserved: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_grpc_call_details() {
    assert_eq!(
        ::std::mem::size_of::<grpc_call_details>(),
        96usize,
        concat!("Size of: ", stringify!(grpc_call_details))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_call_details>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_call_details))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_call_details>())).method as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_call_details),
            "::",
            stringify!(method)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_call_details>())).host as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_call_details),
            "::",
            stringify!(host)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_call_details>())).deadline as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_call_details),
            "::",
            stringify!(deadline)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_call_details>())).flags as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_call_details),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_call_details>())).reserved as *const _ as usize },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_call_details),
            "::",
            stringify!(reserved)
        )
    );
}
impl ::std::fmt::Debug for grpc_call_details {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpc_call_details {{ method: {:?}, host: {:?}, deadline: {:?}, flags: {:?}, reserved: {:?} }}" , self . method , self . host , self . deadline , self . flags , self . reserved )
    }
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_op_type {
    #[doc = " Send initial metadata: one and only one instance MUST be sent for each"]
    #[doc = "call, unless the call was cancelled - in which case this can be skipped."]
    #[doc = "This op completes after all bytes of metadata have been accepted by"]
    #[doc = "outgoing flow control."]
    GRPC_OP_SEND_INITIAL_METADATA = 0,
    #[doc = " Send a message: 0 or more of these operations can occur for each call."]
    #[doc = "This op completes after all bytes for the message have been accepted by"]
    #[doc = "outgoing flow control."]
    GRPC_OP_SEND_MESSAGE = 1,
    #[doc = " Send a close from the client: one and only one instance MUST be sent from"]
    #[doc = "the client, unless the call was cancelled - in which case this can be"]
    #[doc = "skipped. This op completes after all bytes for the call"]
    #[doc = "(including the close) have passed outgoing flow control."]
    GRPC_OP_SEND_CLOSE_FROM_CLIENT = 2,
    #[doc = " Send status from the server: one and only one instance MUST be sent from"]
    #[doc = "the server unless the call was cancelled - in which case this can be"]
    #[doc = "skipped. This op completes after all bytes for the call"]
    #[doc = "(including the status) have passed outgoing flow control."]
    GRPC_OP_SEND_STATUS_FROM_SERVER = 3,
    #[doc = " Receive initial metadata: one and only one MUST be made on the client,"]
    #[doc = "must not be made on the server."]
    #[doc = "This op completes after all initial metadata has been read from the"]
    #[doc = "peer."]
    GRPC_OP_RECV_INITIAL_METADATA = 4,
    #[doc = " Receive a message: 0 or more of these operations can occur for each call."]
    #[doc = "This op completes after all bytes of the received message have been"]
    #[doc = "read, or after a half-close has been received on this call."]
    GRPC_OP_RECV_MESSAGE = 5,
    #[doc = " Receive status on the client: one and only one must be made on the client."]
    #[doc = "This operation always succeeds, meaning ops paired with this operation"]
    #[doc = "will also appear to succeed, even though they may not have. In that case"]
    #[doc = "the status will indicate some failure."]
    #[doc = "This op completes after all activity on the call has completed."]
    GRPC_OP_RECV_STATUS_ON_CLIENT = 6,
    #[doc = " Receive close on the server: one and only one must be made on the"]
    #[doc = "server. This op completes after the close has been received by the"]
    #[doc = "server. This operation always succeeds, meaning ops paired with"]
    #[doc = "this operation will also appear to succeed, even though they may not"]
    #[doc = "have."]
    GRPC_OP_RECV_CLOSE_ON_SERVER = 7,
}
#[doc = " Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT"]
#[doc = "which has no arguments)"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_op {
    #[doc = " Operation type, as defined by grpc_op_type"]
    pub op: grpc_op_type,
    #[doc = " Write flags bitset for grpc_begin_messages"]
    pub flags: u32,
    #[doc = " Reserved for future usage"]
    pub reserved: *mut ::std::os::raw::c_void,
    pub data: grpc_op_grpc_op_data,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union grpc_op_grpc_op_data {
    pub reserved: grpc_op_grpc_op_data__bindgen_ty_1,
    pub send_initial_metadata: grpc_op_grpc_op_data_grpc_op_send_initial_metadata,
    pub send_message: grpc_op_grpc_op_data_grpc_op_send_message,
    pub send_status_from_server: grpc_op_grpc_op_data_grpc_op_send_status_from_server,
    pub recv_initial_metadata: grpc_op_grpc_op_data_grpc_op_recv_initial_metadata,
    pub recv_message: grpc_op_grpc_op_data_grpc_op_recv_message,
    pub recv_status_on_client: grpc_op_grpc_op_data_grpc_op_recv_status_on_client,
    pub recv_close_on_server: grpc_op_grpc_op_data_grpc_op_recv_close_on_server,
    _bindgen_union_align: [u64; 8usize],
}
#[doc = " Reserved for future usage"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data__bindgen_ty_1 {
    pub reserved: [*mut ::std::os::raw::c_void; 8usize],
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data__bindgen_ty_1>(),
        64usize,
        concat!("Size of: ", stringify!(grpc_op_grpc_op_data__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data__bindgen_ty_1>())).reserved as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data__bindgen_ty_1),
            "::",
            stringify!(reserved)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_send_initial_metadata { pub count : usize , pub metadata : * mut grpc_metadata , pub maybe_compression_level : grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level , }
#[doc = " If \\a is_set, \\a compression_level will be used for the call."]
#[doc = " Otherwise, \\a compression_level won't be considered"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level
{
    pub is_set: u8,
    pub level: grpc_compression_level,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level(
) {
    assert_eq ! ( :: std :: mem :: size_of :: < grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level ) ) );
    assert_eq ! ( :: std :: mem :: align_of :: < grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level ) ) );
    assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level > ( ) ) ) . is_set as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level ) , "::" , stringify ! ( is_set ) ) );
    assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level > ( ) ) ) . level as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( grpc_op_grpc_op_data_grpc_op_send_initial_metadata_grpc_op_send_initial_metadata_maybe_compression_level ) , "::" , stringify ! ( level ) ) );
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_send_initial_metadata() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_send_initial_metadata>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_initial_metadata)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_send_initial_metadata>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_initial_metadata>())).count
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_initial_metadata),
            "::",
            stringify!(count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_initial_metadata>())).metadata
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_initial_metadata),
            "::",
            stringify!(metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_initial_metadata>()))
                .maybe_compression_level as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_initial_metadata),
            "::",
            stringify!(maybe_compression_level)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_send_message {
    #[doc = " This op takes ownership of the slices in send_message.  After"]
    #[doc = " a call completes, the contents of send_message are not guaranteed"]
    #[doc = " and likely empty.  The original owner should still call"]
    #[doc = " grpc_byte_buffer_destroy() on this object however."]
    pub send_message: *mut grpc_byte_buffer,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_send_message() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_send_message>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_message)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_send_message>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_message>())).send_message
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_message),
            "::",
            stringify!(send_message)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_send_status_from_server {
    pub trailing_metadata_count: usize,
    pub trailing_metadata: *mut grpc_metadata,
    pub status: grpc_status_code::Type,
    #[doc = " optional: set to NULL if no details need sending, non-NULL if they do"]
    #[doc = " pointer will not be retained past the start_batch call"]
    pub status_details: *mut grpc_slice,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_send_status_from_server() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>()))
                .trailing_metadata_count as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server),
            "::",
            stringify!(trailing_metadata_count)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>()))
                .trailing_metadata as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server),
            "::",
            stringify!(trailing_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>())).status
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server),
            "::",
            stringify!(status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_send_status_from_server>()))
                .status_details as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_send_status_from_server),
            "::",
            stringify!(status_details)
        )
    );
}
#[doc = " ownership of the array is with the caller, but ownership of the elements"]
#[doc = "stays with the call object (ie key, value members are owned by the call"]
#[doc = "object, recv_initial_metadata->array is owned by the caller)."]
#[doc = "After the operation completes, call grpc_metadata_array_destroy on this"]
#[doc = "value, or reuse it in a future op."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_recv_initial_metadata {
    pub recv_initial_metadata: *mut grpc_metadata_array,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_recv_initial_metadata() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_recv_initial_metadata>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_initial_metadata)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_recv_initial_metadata>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_initial_metadata>()))
                .recv_initial_metadata as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_initial_metadata),
            "::",
            stringify!(recv_initial_metadata)
        )
    );
}
#[doc = " ownership of the byte buffer is moved to the caller; the caller must"]
#[doc = "call grpc_byte_buffer_destroy on this value, or reuse it in a future op."]
#[doc = "The returned byte buffer will be NULL if trailing metadata was"]
#[doc = "received instead of a message."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_recv_message {
    pub recv_message: *mut *mut grpc_byte_buffer,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_recv_message() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_recv_message>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_message)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_recv_message>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_message>())).recv_message
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_message),
            "::",
            stringify!(recv_message)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_recv_status_on_client {
    #[doc = " ownership of the array is with the caller, but ownership of the"]
    #[doc = "elements stays with the call object (ie key, value members are owned"]
    #[doc = "by the call object, trailing_metadata->array is owned by the caller)."]
    #[doc = "After the operation completes, call grpc_metadata_array_destroy on"]
    #[doc = "this value, or reuse it in a future op."]
    pub trailing_metadata: *mut grpc_metadata_array,
    pub status: *mut grpc_status_code::Type,
    pub status_details: *mut grpc_slice,
    #[doc = " If this is not nullptr, it will be populated with the full fidelity"]
    #[doc = " error string for debugging purposes. The application is responsible"]
    #[doc = " for freeing the data by using gpr_free()."]
    pub error_string: *mut *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_recv_status_on_client() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>(),
        32usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>()))
                .trailing_metadata as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client),
            "::",
            stringify!(trailing_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>())).status
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client),
            "::",
            stringify!(status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>()))
                .status_details as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client),
            "::",
            stringify!(status_details)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_status_on_client>()))
                .error_string as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_status_on_client),
            "::",
            stringify!(error_string)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_op_grpc_op_data_grpc_op_recv_close_on_server {
    #[doc = " out argument, set to 1 if the call failed in any way (seen as a"]
    #[doc = "cancellation on the server), or 0 if the call succeeded"]
    pub cancelled: *mut ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data_grpc_op_recv_close_on_server() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data_grpc_op_recv_close_on_server>(),
        8usize,
        concat!(
            "Size of: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_close_on_server)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data_grpc_op_recv_close_on_server>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_close_on_server)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data_grpc_op_recv_close_on_server>())).cancelled
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data_grpc_op_recv_close_on_server),
            "::",
            stringify!(cancelled)
        )
    );
}
#[test]
fn bindgen_test_layout_grpc_op_grpc_op_data() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op_grpc_op_data>(),
        64usize,
        concat!("Size of: ", stringify!(grpc_op_grpc_op_data))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op_grpc_op_data>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_op_grpc_op_data))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).reserved as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).send_initial_metadata as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(send_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).send_message as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(send_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).send_status_from_server as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(send_status_from_server)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).recv_initial_metadata as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(recv_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).recv_message as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(recv_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).recv_status_on_client as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(recv_status_on_client)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_op_grpc_op_data>())).recv_close_on_server as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op_grpc_op_data),
            "::",
            stringify!(recv_close_on_server)
        )
    );
}
impl ::std::fmt::Debug for grpc_op_grpc_op_data {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(f, "grpc_op_grpc_op_data {{ union }}")
    }
}
#[test]
fn bindgen_test_layout_grpc_op() {
    assert_eq!(
        ::std::mem::size_of::<grpc_op>(),
        80usize,
        concat!("Size of: ", stringify!(grpc_op))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_op>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_op))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_op>())).op as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op),
            "::",
            stringify!(op)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_op>())).flags as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op),
            "::",
            stringify!(flags)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_op>())).reserved as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op),
            "::",
            stringify!(reserved)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_op>())).data as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_op),
            "::",
            stringify!(data)
        )
    );
}
impl ::std::fmt::Debug for grpc_op {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_op {{ op: {:?}, flags: {:?}, reserved: {:?}, data: {:?} }}",
            self.op, self.flags, self.reserved, self.data
        )
    }
}
#[doc = " Information requested from the channel."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_channel_info {
    #[doc = " If non-NULL, will be set to point to a string indicating the LB"]
    #[doc = " policy name.  Caller takes ownership."]
    pub lb_policy_name: *mut *mut ::std::os::raw::c_char,
    #[doc = " If non-NULL, will be set to point to a string containing the"]
    #[doc = " service config used by the channel in JSON form."]
    pub service_config_json: *mut *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_channel_info() {
    assert_eq!(
        ::std::mem::size_of::<grpc_channel_info>(),
        16usize,
        concat!("Size of: ", stringify!(grpc_channel_info))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_channel_info>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_channel_info))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_channel_info>())).lb_policy_name as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_channel_info),
            "::",
            stringify!(lb_policy_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_channel_info>())).service_config_json as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_channel_info),
            "::",
            stringify!(service_config_json)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_resource_quota {
    _unused: [u8; 0],
}
#[repr(u32)]
#[doc = " Completion queues internally MAY maintain a set of file descriptors in a"]
#[doc = "structure called 'pollset'. This enum specifies if a completion queue has an"]
#[doc = "associated pollset and any restrictions on the type of file descriptors that"]
#[doc = "can be present in the pollset."]
#[doc = ""]
#[doc = "I/O progress can only be made when grpc_completion_queue_next() or"]
#[doc = "grpc_completion_queue_pluck() are called on the completion queue (unless the"]
#[doc = "grpc_cq_polling_type is GRPC_CQ_NON_POLLING) and hence it is very important"]
#[doc = "to actively call these APIs"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_cq_polling_type {
    #[doc = " The completion queue will have an associated pollset and there is no"]
    #[doc = "restriction on the type of file descriptors the pollset may contain"]
    GRPC_CQ_DEFAULT_POLLING = 0,
    #[doc = " Similar to GRPC_CQ_DEFAULT_POLLING except that the completion queues will"]
    #[doc = "not contain any 'listening file descriptors' (i.e file descriptors used to"]
    #[doc = "listen to incoming channels)"]
    GRPC_CQ_NON_LISTENING = 1,
    #[doc = " The completion queue will not have an associated pollset. Note that"]
    #[doc = "grpc_completion_queue_next() or grpc_completion_queue_pluck() MUST still"]
    #[doc = "be called to pop events from the completion queue; it is not required to"]
    #[doc = "call them actively to make I/O progress"]
    GRPC_CQ_NON_POLLING = 2,
}
#[repr(u32)]
#[doc = " Specifies the type of APIs to use to pop events from the completion queue"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_cq_completion_type {
    #[doc = " Events are popped out by calling grpc_completion_queue_next() API ONLY"]
    GRPC_CQ_NEXT = 0,
    #[doc = " Events are popped out by calling grpc_completion_queue_pluck() API ONLY"]
    GRPC_CQ_PLUCK = 1,
    #[doc = " EXPERIMENTAL: Events trigger a callback specified as the tag"]
    GRPC_CQ_CALLBACK = 2,
}
#[doc = " EXPERIMENTAL: Specifies an interface class to be used as a tag"]
#[doc = "for callback-based completion queues. This can be used directly,"]
#[doc = "as the first element of a struct in C, or as a base class in C++."]
#[doc = "Its \"run\" value should be assigned to some non-member function, such as"]
#[doc = "a static method."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_experimental_completion_queue_functor {
    #[doc = " The run member specifies a function that will be called when this"]
    #[doc = "tag is extracted from the completion queue. Its arguments will be a"]
    #[doc = "pointer to this functor and a boolean that indicates whether the"]
    #[doc = "operation succeeded (non-zero) or failed (zero)"]
    pub functor_run: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut grpc_experimental_completion_queue_functor,
            arg2: ::std::os::raw::c_int,
        ),
    >,
    #[doc = " The inlineable member specifies whether this functor can be run inline."]
    #[doc = "This should only be used for trivial internally-defined functors."]
    pub inlineable: ::std::os::raw::c_int,
    #[doc = " The following fields are not API. They are meant for internal use."]
    pub internal_success: ::std::os::raw::c_int,
    pub internal_next: *mut grpc_experimental_completion_queue_functor,
}
#[test]
fn bindgen_test_layout_grpc_experimental_completion_queue_functor() {
    assert_eq!(
        ::std::mem::size_of::<grpc_experimental_completion_queue_functor>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(grpc_experimental_completion_queue_functor)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_experimental_completion_queue_functor>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_experimental_completion_queue_functor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_experimental_completion_queue_functor>())).functor_run
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_experimental_completion_queue_functor),
            "::",
            stringify!(functor_run)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_experimental_completion_queue_functor>())).inlineable
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_experimental_completion_queue_functor),
            "::",
            stringify!(inlineable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_experimental_completion_queue_functor>())).internal_success
                as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_experimental_completion_queue_functor),
            "::",
            stringify!(internal_success)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_experimental_completion_queue_functor>())).internal_next
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_experimental_completion_queue_functor),
            "::",
            stringify!(internal_next)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_completion_queue_attributes {
    #[doc = " The version number of this structure. More fields might be added to this"]
    #[doc = "structure in future."]
    pub version: ::std::os::raw::c_int,
    #[doc = " Set to GRPC_CQ_CURRENT_VERSION"]
    pub cq_completion_type: grpc_cq_completion_type,
    pub cq_polling_type: grpc_cq_polling_type,
    #[doc = " When creating a callbackable CQ, pass in a functor to get invoked when"]
    #[doc = " shutdown is complete"]
    pub cq_shutdown_cb: *mut grpc_experimental_completion_queue_functor,
}
#[test]
fn bindgen_test_layout_grpc_completion_queue_attributes() {
    assert_eq!(
        ::std::mem::size_of::<grpc_completion_queue_attributes>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_completion_queue_attributes))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_completion_queue_attributes>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_completion_queue_attributes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_completion_queue_attributes>())).version as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_completion_queue_attributes),
            "::",
            stringify!(version)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_completion_queue_attributes>())).cq_completion_type
                as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_completion_queue_attributes),
            "::",
            stringify!(cq_completion_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_completion_queue_attributes>())).cq_polling_type as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_completion_queue_attributes),
            "::",
            stringify!(cq_polling_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_completion_queue_attributes>())).cq_shutdown_cb as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_completion_queue_attributes),
            "::",
            stringify!(cq_shutdown_cb)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_completion_queue_factory {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Returns a RAW byte buffer instance over the given slices (up to \\a nslices)."]
    #[doc = ""]
    #[doc = " Increases the reference count for all \\a slices processed. The user is"]
    #[doc = " responsible for invoking grpc_byte_buffer_destroy on the returned instance."]
    pub fn grpc_raw_byte_buffer_create(
        slices: *mut grpc_slice,
        nslices: usize,
    ) -> *mut grpc_byte_buffer;
}
extern "C" {
    #[doc = " Returns a *compressed* RAW byte buffer instance over the given slices (up to"]
    #[doc = " \\a nslices). The \\a compression argument defines the compression algorithm"]
    #[doc = " used to generate the data in \\a slices."]
    #[doc = ""]
    #[doc = " Increases the reference count for all \\a slices processed. The user is"]
    #[doc = " responsible for invoking grpc_byte_buffer_destroy on the returned instance."]
    pub fn grpc_raw_compressed_byte_buffer_create(
        slices: *mut grpc_slice,
        nslices: usize,
        compression: grpc_compression_algorithm,
    ) -> *mut grpc_byte_buffer;
}
extern "C" {
    #[doc = " Copies input byte buffer \\a bb."]
    #[doc = ""]
    #[doc = " Increases the reference count of all the source slices. The user is"]
    #[doc = " responsible for calling grpc_byte_buffer_destroy over the returned copy."]
    pub fn grpc_byte_buffer_copy(bb: *mut grpc_byte_buffer) -> *mut grpc_byte_buffer;
}
extern "C" {
    #[doc = " Returns the size of the given byte buffer, in bytes."]
    pub fn grpc_byte_buffer_length(bb: *mut grpc_byte_buffer) -> usize;
}
extern "C" {
    #[doc = " Destroys \\a byte_buffer deallocating all its memory."]
    pub fn grpc_byte_buffer_destroy(byte_buffer: *mut grpc_byte_buffer);
}
extern "C" {
    #[doc = " Initialize \\a reader to read over \\a buffer."]
    #[doc = " Returns 1 upon success, 0 otherwise."]
    pub fn grpc_byte_buffer_reader_init(
        reader: *mut grpc_byte_buffer_reader,
        buffer: *mut grpc_byte_buffer,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Cleanup and destroy \\a reader"]
    pub fn grpc_byte_buffer_reader_destroy(reader: *mut grpc_byte_buffer_reader);
}
extern "C" {
    #[doc = " Updates \\a slice with the next piece of data from from \\a reader and returns"]
    #[doc = " 1. Returns 0 at the end of the stream. Caller is responsible for calling"]
    #[doc = " grpc_slice_unref on the result."]
    pub fn grpc_byte_buffer_reader_next(
        reader: *mut grpc_byte_buffer_reader,
        slice: *mut grpc_slice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " EXPERIMENTAL API - This function may be removed and changed, in the future."]
    #[doc = ""]
    #[doc = " Updates \\a slice with the next piece of data from from \\a reader and returns"]
    #[doc = " 1. Returns 0 at the end of the stream. Caller is responsible for making sure"]
    #[doc = " the slice pointer remains valid when accessed."]
    #[doc = ""]
    #[doc = " NOTE: Do not use this function unless the caller can guarantee that the"]
    #[doc = "       underlying grpc_byte_buffer outlasts the use of the slice. This is only"]
    #[doc = "       safe when the underlying grpc_byte_buffer remains immutable while slice"]
    #[doc = "       is being accessed."]
    pub fn grpc_byte_buffer_reader_peek(
        reader: *mut grpc_byte_buffer_reader,
        slice: *mut *mut grpc_slice,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Merge all data from \\a reader into single slice"]
    pub fn grpc_byte_buffer_reader_readall(reader: *mut grpc_byte_buffer_reader) -> grpc_slice;
}
extern "C" {
    #[doc = " Returns a RAW byte buffer instance from the output of \\a reader."]
    pub fn grpc_raw_byte_buffer_from_reader(
        reader: *mut grpc_byte_buffer_reader,
    ) -> *mut grpc_byte_buffer;
}
extern "C" {
    #[doc = " initialize a slice buffer"]
    pub fn grpc_slice_buffer_init(sb: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " destroy a slice buffer - unrefs any held elements"]
    pub fn grpc_slice_buffer_destroy(sb: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " Add an element to a slice buffer - takes ownership of the slice."]
    #[doc = "This function is allowed to concatenate the passed in slice to the end of"]
    #[doc = "some other slice if desired by the slice buffer."]
    pub fn grpc_slice_buffer_add(sb: *mut grpc_slice_buffer, slice: grpc_slice);
}
extern "C" {
    #[doc = " add an element to a slice buffer - takes ownership of the slice and returns"]
    #[doc = "the index of the slice."]
    #[doc = "Guarantees that the slice will not be concatenated at the end of another"]
    #[doc = "slice (i.e. the data for this slice will begin at the first byte of the"]
    #[doc = "slice at the returned index in sb->slices)"]
    #[doc = "The implementation MAY decide to concatenate data at the end of a small"]
    #[doc = "slice added in this fashion."]
    pub fn grpc_slice_buffer_add_indexed(sb: *mut grpc_slice_buffer, slice: grpc_slice) -> usize;
}
extern "C" {
    pub fn grpc_slice_buffer_addn(sb: *mut grpc_slice_buffer, slices: *mut grpc_slice, n: usize);
}
extern "C" {
    #[doc = " add a very small (less than 8 bytes) amount of data to the end of a slice"]
    #[doc = "buffer: returns a pointer into which to add the data"]
    pub fn grpc_slice_buffer_tiny_add(sb: *mut grpc_slice_buffer, len: usize) -> *mut u8;
}
extern "C" {
    #[doc = " pop the last buffer, but don't unref it"]
    pub fn grpc_slice_buffer_pop(sb: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " clear a slice buffer, unref all elements"]
    pub fn grpc_slice_buffer_reset_and_unref(sb: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " swap the contents of two slice buffers"]
    pub fn grpc_slice_buffer_swap(a: *mut grpc_slice_buffer, b: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " move all of the elements of src into dst"]
    pub fn grpc_slice_buffer_move_into(src: *mut grpc_slice_buffer, dst: *mut grpc_slice_buffer);
}
extern "C" {
    #[doc = " remove n bytes from the end of a slice buffer"]
    pub fn grpc_slice_buffer_trim_end(
        src: *mut grpc_slice_buffer,
        n: usize,
        garbage: *mut grpc_slice_buffer,
    );
}
extern "C" {
    #[doc = " move the first n bytes of src into dst"]
    pub fn grpc_slice_buffer_move_first(
        src: *mut grpc_slice_buffer,
        n: usize,
        dst: *mut grpc_slice_buffer,
    );
}
extern "C" {
    #[doc = " move the first n bytes of src into dst without adding references"]
    pub fn grpc_slice_buffer_move_first_no_ref(
        src: *mut grpc_slice_buffer,
        n: usize,
        dst: *mut grpc_slice_buffer,
    );
}
extern "C" {
    #[doc = " move the first n bytes of src into dst (copying them)"]
    pub fn grpc_slice_buffer_move_first_into_buffer(
        src: *mut grpc_slice_buffer,
        n: usize,
        dst: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " take the first slice in the slice buffer"]
    pub fn grpc_slice_buffer_take_first(src: *mut grpc_slice_buffer) -> grpc_slice;
}
extern "C" {
    #[doc = " undo the above with (a possibly different) \\a slice"]
    pub fn grpc_slice_buffer_undo_take_first(src: *mut grpc_slice_buffer, slice: grpc_slice);
}
#[repr(u32)]
#[doc = " Connectivity state of a channel."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_connectivity_state {
    #[doc = " channel is idle"]
    GRPC_CHANNEL_IDLE = 0,
    #[doc = " channel is connecting"]
    GRPC_CHANNEL_CONNECTING = 1,
    #[doc = " channel is ready for work"]
    GRPC_CHANNEL_READY = 2,
    #[doc = " channel has seen a failure but expects to recover"]
    GRPC_CHANNEL_TRANSIENT_FAILURE = 3,
    #[doc = " channel has seen a failure that it cannot recover from"]
    GRPC_CHANNEL_SHUTDOWN = 4,
}
extern "C" {
    #[doc = " Time constants."]
    pub fn gpr_time_0(type_: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    #[doc = " The zero time interval."]
    pub fn gpr_inf_future(type_: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    #[doc = " The far future"]
    pub fn gpr_inf_past(type_: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    #[doc = " initialize time subsystem"]
    pub fn gpr_time_init();
}
extern "C" {
    #[doc = " Return the current time measured from the given clocks epoch."]
    pub fn gpr_now(clock: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    #[doc = " Convert a timespec from one clock to another"]
    pub fn gpr_convert_clock_type(t: gpr_timespec, target_clock: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    #[doc = " Return -ve, 0, or +ve according to whether a < b, a == b, or a > b"]
    #[doc = "respectively."]
    pub fn gpr_time_cmp(a: gpr_timespec, b: gpr_timespec) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpr_time_max(a: gpr_timespec, b: gpr_timespec) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_min(a: gpr_timespec, b: gpr_timespec) -> gpr_timespec;
}
extern "C" {
    #[doc = " Add and subtract times.  Calculations saturate at infinities."]
    pub fn gpr_time_add(a: gpr_timespec, b: gpr_timespec) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_sub(a: gpr_timespec, b: gpr_timespec) -> gpr_timespec;
}
extern "C" {
    #[doc = " Return a timespec representing a given number of time units. INT64_MIN is"]
    #[doc = "interpreted as gpr_inf_past, and INT64_MAX as gpr_inf_future."]
    pub fn gpr_time_from_micros(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_from_nanos(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_from_millis(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_from_seconds(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_from_minutes(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_from_hours(x: i64, clock_type: gpr_clock_type) -> gpr_timespec;
}
extern "C" {
    pub fn gpr_time_to_millis(timespec: gpr_timespec) -> i32;
}
extern "C" {
    #[doc = " Return 1 if two times are equal or within threshold of each other,"]
    #[doc = "0 otherwise"]
    pub fn gpr_time_similar(
        a: gpr_timespec,
        b: gpr_timespec,
        threshold: gpr_timespec,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sleep until at least 'until' - an absolute timeout"]
    pub fn gpr_sleep_until(until: gpr_timespec);
}
extern "C" {
    pub fn gpr_timespec_to_micros(t: gpr_timespec) -> f64;
}
extern "C" {
    #[doc = " \\mainpage GRPC Core"]
    #[doc = ""]
    #[doc = " The GRPC Core library is a low-level library designed to be wrapped by higher"]
    #[doc = " level libraries. The top-level API is provided in grpc.h. Security related"]
    #[doc = " functionality lives in grpc_security.h."]
    pub fn grpc_metadata_array_init(array: *mut grpc_metadata_array);
}
extern "C" {
    pub fn grpc_metadata_array_destroy(array: *mut grpc_metadata_array);
}
extern "C" {
    pub fn grpc_call_details_init(details: *mut grpc_call_details);
}
extern "C" {
    pub fn grpc_call_details_destroy(details: *mut grpc_call_details);
}
extern "C" {
    #[doc = " Registers a plugin to be initialized and destroyed with the library."]
    #[doc = ""]
    #[doc = "The \\a init and \\a destroy functions will be invoked as part of"]
    #[doc = "\\a grpc_init() and \\a grpc_shutdown(), respectively."]
    #[doc = "Note that these functions can be invoked an arbitrary number of times"]
    #[doc = "(and hence so will \\a init and \\a destroy)."]
    #[doc = "It is safe to pass NULL to either argument. Plugins are destroyed in"]
    #[doc = "the reverse order they were initialized."]
    pub fn grpc_register_plugin(
        init: ::std::option::Option<unsafe extern "C" fn()>,
        destroy: ::std::option::Option<unsafe extern "C" fn()>,
    );
}
extern "C" {
    #[doc = " Initialize the grpc library."]
    #[doc = ""]
    #[doc = "After it's called, a matching invocation to grpc_shutdown() is expected."]
    #[doc = ""]
    #[doc = "It is not safe to call any other grpc functions before calling this."]
    #[doc = "(To avoid overhead, little checking is done, and some things may work. We"]
    #[doc = "do not warrant that they will continue to do so in future revisions of this"]
    #[doc = "library)."]
    pub fn grpc_init();
}
extern "C" {
    #[doc = " Shut down the grpc library."]
    #[doc = ""]
    #[doc = "Before it's called, there should haven been a matching invocation to"]
    #[doc = "grpc_init()."]
    #[doc = ""]
    #[doc = "The last call to grpc_shutdown will initiate cleaning up of grpc library"]
    #[doc = "internals, which can happen in another thread. Once the clean-up is done,"]
    #[doc = "no memory is used by grpc, nor are any instructions executing within the"]
    #[doc = "grpc library.  Prior to calling, all application owned grpc objects must"]
    #[doc = "have been destroyed."]
    pub fn grpc_shutdown();
}
extern "C" {
    #[doc = " EXPERIMENTAL. Returns 1 if the grpc library has been initialized."]
    #[doc = "TODO(ericgribkoff) Decide if this should be promoted to non-experimental as"]
    #[doc = "part of stabilizing the fork support API, as tracked in"]
    #[doc = "https://github.com/grpc/grpc/issues/15334"]
    pub fn grpc_is_initialized() -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " EXPERIMENTAL. Blocking shut down grpc library."]
    #[doc = "This is only for wrapped language to use now."]
    pub fn grpc_shutdown_blocking();
}
extern "C" {
    #[doc = " Return a string representing the current version of grpc"]
    pub fn grpc_version_string() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Return a string specifying what the 'g' in gRPC stands for"]
    pub fn grpc_g_stands_for() -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns the completion queue factory based on the attributes. MAY return a"]
    #[doc = "NULL if no factory can be found"]
    pub fn grpc_completion_queue_factory_lookup(
        attributes: *const grpc_completion_queue_attributes,
    ) -> *const grpc_completion_queue_factory;
}
extern "C" {
    #[doc = " Helper function to create a completion queue with grpc_cq_completion_type"]
    #[doc = "of GRPC_CQ_NEXT and grpc_cq_polling_type of GRPC_CQ_DEFAULT_POLLING"]
    pub fn grpc_completion_queue_create_for_next(
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_completion_queue;
}
extern "C" {
    #[doc = " Helper function to create a completion queue with grpc_cq_completion_type"]
    #[doc = "of GRPC_CQ_PLUCK and grpc_cq_polling_type of GRPC_CQ_DEFAULT_POLLING"]
    pub fn grpc_completion_queue_create_for_pluck(
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_completion_queue;
}
extern "C" {
    #[doc = " Helper function to create a completion queue with grpc_cq_completion_type"]
    #[doc = "of GRPC_CQ_CALLBACK and grpc_cq_polling_type of GRPC_CQ_DEFAULT_POLLING."]
    #[doc = "This function is experimental."]
    pub fn grpc_completion_queue_create_for_callback(
        shutdown_callback: *mut grpc_experimental_completion_queue_functor,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_completion_queue;
}
extern "C" {
    #[doc = " Create a completion queue"]
    pub fn grpc_completion_queue_create(
        factory: *const grpc_completion_queue_factory,
        attributes: *const grpc_completion_queue_attributes,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_completion_queue;
}
extern "C" {
    #[doc = " Blocks until an event is available, the completion queue is being shut down,"]
    #[doc = "or deadline is reached."]
    #[doc = ""]
    #[doc = "Returns a grpc_event with type GRPC_QUEUE_TIMEOUT on timeout,"]
    #[doc = "otherwise a grpc_event describing the event that occurred."]
    #[doc = ""]
    #[doc = "Callers must not call grpc_completion_queue_next and"]
    #[doc = "grpc_completion_queue_pluck simultaneously on the same completion queue."]
    pub fn grpc_completion_queue_next(
        cq: *mut grpc_completion_queue,
        deadline: gpr_timespec,
        reserved: *mut ::std::os::raw::c_void,
    ) -> grpc_event;
}
extern "C" {
    #[doc = " Blocks until an event with tag 'tag' is available, the completion queue is"]
    #[doc = "being shutdown or deadline is reached."]
    #[doc = ""]
    #[doc = "Returns a grpc_event with type GRPC_QUEUE_TIMEOUT on timeout,"]
    #[doc = "otherwise a grpc_event describing the event that occurred."]
    #[doc = ""]
    #[doc = "Callers must not call grpc_completion_queue_next and"]
    #[doc = "grpc_completion_queue_pluck simultaneously on the same completion queue."]
    #[doc = ""]
    #[doc = "Completion queues support a maximum of GRPC_MAX_COMPLETION_QUEUE_PLUCKERS"]
    #[doc = "concurrently executing plucks at any time."]
    pub fn grpc_completion_queue_pluck(
        cq: *mut grpc_completion_queue,
        tag: *mut ::std::os::raw::c_void,
        deadline: gpr_timespec,
        reserved: *mut ::std::os::raw::c_void,
    ) -> grpc_event;
}
extern "C" {
    #[doc = " Begin destruction of a completion queue. Once all possible events are"]
    #[doc = "drained then grpc_completion_queue_next will start to produce"]
    #[doc = "GRPC_QUEUE_SHUTDOWN events only. At that point it's safe to call"]
    #[doc = "grpc_completion_queue_destroy."]
    #[doc = ""]
    #[doc = "After calling this function applications should ensure that no"]
    #[doc = "NEW work is added to be published on this completion queue."]
    pub fn grpc_completion_queue_shutdown(cq: *mut grpc_completion_queue);
}
extern "C" {
    #[doc = " Destroy a completion queue. The caller must ensure that the queue is"]
    #[doc = "drained and no threads are executing grpc_completion_queue_next"]
    pub fn grpc_completion_queue_destroy(cq: *mut grpc_completion_queue);
}
extern "C" {
    #[doc = " EXPERIMENTAL API ************/"]
    #[doc = " grpc_flush_cq_tls_cache() MUST be called on the same thread,"]
    #[doc = " with the same cq."]
    pub fn grpc_completion_queue_thread_local_cache_init(cq: *mut grpc_completion_queue);
}
extern "C" {
    #[doc = " EXPERIMENTAL API ************/"]
    #[doc = " Returns 1 if there was contents in the cache.  If there was an event"]
    #[doc = " in \\a cq tls cache, its tag is placed in tag, and ok is set to the"]
    #[doc = " event success."]
    pub fn grpc_completion_queue_thread_local_cache_flush(
        cq: *mut grpc_completion_queue,
        tag: *mut *mut ::std::os::raw::c_void,
        ok: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check the connectivity state of a channel."]
    pub fn grpc_channel_check_connectivity_state(
        channel: *mut grpc_channel,
        try_to_connect: ::std::os::raw::c_int,
    ) -> grpc_connectivity_state;
}
extern "C" {
    #[doc = " Number of active \"external connectivity state watchers\" attached to a"]
    #[doc = " channel."]
    #[doc = " Useful for testing."]
    pub fn grpc_channel_num_external_connectivity_watchers(
        channel: *mut grpc_channel,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Watch for a change in connectivity state."]
    #[doc = "Once the channel connectivity state is different from last_observed_state,"]
    #[doc = "tag will be enqueued on cq with success=1."]
    #[doc = "If deadline expires BEFORE the state is changed, tag will be enqueued on cq"]
    #[doc = "with success=0."]
    pub fn grpc_channel_watch_connectivity_state(
        channel: *mut grpc_channel,
        last_observed_state: grpc_connectivity_state,
        deadline: gpr_timespec,
        cq: *mut grpc_completion_queue,
        tag: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Check whether a grpc channel supports connectivity watcher"]
    pub fn grpc_channel_support_connectivity_watcher(
        channel: *mut grpc_channel,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create a call given a grpc_channel, in order to call 'method'. All"]
    #[doc = "completions are sent to 'completion_queue'. 'method' and 'host' need only"]
    #[doc = "live through the invocation of this function."]
    #[doc = "If parent_call is non-NULL, it must be a server-side call. It will be used"]
    #[doc = "to propagate properties from the server call to this new client call,"]
    #[doc = "depending on the value of \\a propagation_mask (see propagation_bits.h for"]
    #[doc = "possible values)."]
    pub fn grpc_channel_create_call(
        channel: *mut grpc_channel,
        parent_call: *mut grpc_call,
        propagation_mask: u32,
        completion_queue: *mut grpc_completion_queue,
        method: grpc_slice,
        host: *const grpc_slice,
        deadline: gpr_timespec,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call;
}
extern "C" {
    #[doc = " Ping the channels peer (load balanced channels will select one sub-channel"]
    #[doc = "to ping); if the channel is not connected, posts a failed."]
    pub fn grpc_channel_ping(
        channel: *mut grpc_channel,
        cq: *mut grpc_completion_queue,
        tag: *mut ::std::os::raw::c_void,
        reserved: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Pre-register a method/host pair on a channel."]
    #[doc = "method and host are not owned and must remain alive while the server is"]
    #[doc = "running."]
    pub fn grpc_channel_register_call(
        channel: *mut grpc_channel,
        method: *const ::std::os::raw::c_char,
        host: *const ::std::os::raw::c_char,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Create a call given a handle returned from grpc_channel_register_call."]
    #[doc = "\\sa grpc_channel_create_call."]
    pub fn grpc_channel_create_registered_call(
        channel: *mut grpc_channel,
        parent_call: *mut grpc_call,
        propagation_mask: u32,
        completion_queue: *mut grpc_completion_queue,
        registered_call_handle: *mut ::std::os::raw::c_void,
        deadline: gpr_timespec,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call;
}
extern "C" {
    #[doc = " Allocate memory in the grpc_call arena: this memory is automatically"]
    #[doc = "discarded at call completion"]
    pub fn grpc_call_arena_alloc(call: *mut grpc_call, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Start a batch of operations defined in the array ops; when complete, post a"]
    #[doc = "completion of type 'tag' to the completion queue bound to the call."]
    #[doc = "The order of ops specified in the batch has no significance."]
    #[doc = "Only one operation of each type can be active at once in any given"]
    #[doc = "batch."]
    #[doc = "If a call to grpc_call_start_batch returns GRPC_CALL_OK you must call"]
    #[doc = "grpc_completion_queue_next or grpc_completion_queue_pluck on the completion"]
    #[doc = "queue associated with 'call' for work to be performed. If a call to"]
    #[doc = "grpc_call_start_batch returns any value other than GRPC_CALL_OK it is"]
    #[doc = "guaranteed that no state associated with 'call' is changed and it is not"]
    #[doc = "appropriate to call grpc_completion_queue_next or"]
    #[doc = "grpc_completion_queue_pluck consequent to the failed grpc_call_start_batch"]
    #[doc = "call."]
    #[doc = "If a call to grpc_call_start_batch with an empty batch returns"]
    #[doc = "GRPC_CALL_OK, the tag is put in the completion queue immediately."]
    #[doc = "THREAD SAFETY: access to grpc_call_start_batch in multi-threaded environment"]
    #[doc = "needs to be synchronized. As an optimization, you may synchronize batches"]
    #[doc = "containing just send operations independently from batches containing just"]
    #[doc = "receive operations. Access to grpc_call_start_batch with an empty batch is"]
    #[doc = "thread-compatible."]
    pub fn grpc_call_start_batch(
        call: *mut grpc_call,
        ops: *const grpc_op,
        nops: usize,
        tag: *mut ::std::os::raw::c_void,
        reserved: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    #[doc = " Returns a newly allocated string representing the endpoint to which this"]
    #[doc = "call is communicating with. The string is in the uri format accepted by"]
    #[doc = "grpc_channel_create."]
    #[doc = "The returned string should be disposed of with gpr_free()."]
    #[doc = ""]
    #[doc = "WARNING: this value is never authenticated or subject to any security"]
    #[doc = "related code. It must not be used for any authentication related"]
    #[doc = "functionality. Instead, use grpc_auth_context."]
    pub fn grpc_call_get_peer(call: *mut grpc_call) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct census_context {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Set census context for a call; Must be called before first call to"]
    #[doc = "grpc_call_start_batch()."]
    pub fn grpc_census_call_set_context(call: *mut grpc_call, context: *mut census_context);
}
extern "C" {
    #[doc = " Retrieve the calls current census context."]
    pub fn grpc_census_call_get_context(call: *mut grpc_call) -> *mut census_context;
}
extern "C" {
    #[doc = " Return a newly allocated string representing the target a channel was"]
    #[doc = "created for."]
    pub fn grpc_channel_get_target(channel: *mut grpc_channel) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Request info about the channel."]
    #[doc = "\\a channel_info indicates what information is being requested and"]
    #[doc = "how that information will be returned."]
    #[doc = "\\a channel_info is owned by the caller."]
    pub fn grpc_channel_get_info(
        channel: *mut grpc_channel,
        channel_info: *const grpc_channel_info,
    );
}
extern "C" {
    #[doc = " EXPERIMENTAL.  Resets the channel's connect backoff."]
    #[doc = "TODO(roth): When we see whether this proves useful, either promote"]
    #[doc = "to non-experimental or remove it."]
    pub fn grpc_channel_reset_connect_backoff(channel: *mut grpc_channel);
}
extern "C" {
    #[doc = " Create a client channel to 'target'. Additional channel level configuration"]
    #[doc = "MAY be provided by grpc_channel_args, though the expectation is that most"]
    #[doc = "clients will want to simply pass NULL. The user data in 'args' need only"]
    #[doc = "live through the invocation of this function. However, if any args of the"]
    #[doc = "'pointer' type are passed, then the referenced vtable must be maintained"]
    #[doc = "by the caller until grpc_channel_destroy terminates. See grpc_channel_args"]
    #[doc = "definition for more on this."]
    pub fn grpc_insecure_channel_create(
        target: *const ::std::os::raw::c_char,
        args: *const grpc_channel_args,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel;
}
extern "C" {
    #[doc = " Create a lame client: this client fails every operation attempted on it."]
    pub fn grpc_lame_client_channel_create(
        target: *const ::std::os::raw::c_char,
        error_code: grpc_status_code::Type,
        error_message: *const ::std::os::raw::c_char,
    ) -> *mut grpc_channel;
}
extern "C" {
    #[doc = " Close and destroy a grpc channel"]
    pub fn grpc_channel_destroy(channel: *mut grpc_channel);
}
extern "C" {
    #[doc = " Cancel an RPC."]
    #[doc = "Can be called multiple times, from any thread."]
    #[doc = "THREAD-SAFETY grpc_call_cancel and grpc_call_cancel_with_status"]
    #[doc = "are thread-safe, and can be called at any point before grpc_call_unref"]
    #[doc = "is called."]
    pub fn grpc_call_cancel(
        call: *mut grpc_call,
        reserved: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    #[doc = " Cancel an RPC."]
    #[doc = "Can be called multiple times, from any thread."]
    #[doc = "If a status has not been received for the call, set it to the status code"]
    #[doc = "and description passed in."]
    #[doc = "Importantly, this function does not send status nor description to the"]
    #[doc = "remote endpoint."]
    #[doc = "Note that \\a description doesn't need be a static string."]
    #[doc = "It doesn't need to be alive after the call to"]
    #[doc = "grpc_call_cancel_with_status completes."]
    pub fn grpc_call_cancel_with_status(
        call: *mut grpc_call,
        status: grpc_status_code::Type,
        description: *const ::std::os::raw::c_char,
        reserved: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    #[doc = " Ref a call."]
    #[doc = "THREAD SAFETY: grpc_call_ref is thread-compatible"]
    pub fn grpc_call_ref(call: *mut grpc_call);
}
extern "C" {
    #[doc = " Unref a call."]
    #[doc = "THREAD SAFETY: grpc_call_unref is thread-compatible"]
    pub fn grpc_call_unref(call: *mut grpc_call);
}
extern "C" {
    #[doc = " Request notification of a new call."]
    #[doc = "Once a call is received, a notification tagged with \\a tag_new is added to"]
    #[doc = "\\a cq_for_notification. \\a call, \\a details and \\a request_metadata are"]
    #[doc = "updated with the appropriate call information. \\a cq_bound_to_call is bound"]
    #[doc = "to \\a call, and batch operation notifications for that call will be posted"]
    #[doc = "to \\a cq_bound_to_call."]
    #[doc = "Note that \\a cq_for_notification must have been registered to the server via"]
    #[doc = "\\a grpc_server_register_completion_queue."]
    pub fn grpc_server_request_call(
        server: *mut grpc_server,
        call: *mut *mut grpc_call,
        details: *mut grpc_call_details,
        request_metadata: *mut grpc_metadata_array,
        cq_bound_to_call: *mut grpc_completion_queue,
        cq_for_notification: *mut grpc_completion_queue,
        tag_new: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
#[repr(u32)]
#[doc = " How to handle payloads for a registered method"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_server_register_method_payload_handling {
    #[doc = " Don't try to read the payload"]
    GRPC_SRM_PAYLOAD_NONE = 0,
    #[doc = " Read the initial payload as a byte buffer"]
    GRPC_SRM_PAYLOAD_READ_INITIAL_BYTE_BUFFER = 1,
}
extern "C" {
    #[doc = " Registers a method in the server."]
    #[doc = "Methods to this (host, method) pair will not be reported by"]
    #[doc = "grpc_server_request_call, but instead be reported by"]
    #[doc = "grpc_server_request_registered_call when passed the appropriate"]
    #[doc = "registered_method (as returned by this function)."]
    #[doc = "Must be called before grpc_server_start."]
    #[doc = "Returns NULL on failure."]
    pub fn grpc_server_register_method(
        server: *mut grpc_server,
        method: *const ::std::os::raw::c_char,
        host: *const ::std::os::raw::c_char,
        payload_handling: grpc_server_register_method_payload_handling,
        flags: u32,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " Request notification of a new pre-registered call. 'cq_for_notification'"]
    #[doc = "must have been registered to the server via"]
    #[doc = "grpc_server_register_completion_queue."]
    pub fn grpc_server_request_registered_call(
        server: *mut grpc_server,
        registered_method: *mut ::std::os::raw::c_void,
        call: *mut *mut grpc_call,
        deadline: *mut gpr_timespec,
        request_metadata: *mut grpc_metadata_array,
        optional_payload: *mut *mut grpc_byte_buffer,
        cq_bound_to_call: *mut grpc_completion_queue,
        cq_for_notification: *mut grpc_completion_queue,
        tag_new: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    #[doc = " Create a server. Additional configuration for each incoming channel can"]
    #[doc = "be specified with args. If no additional configuration is needed, args can"]
    #[doc = "be NULL. The user data in 'args' need only live through the invocation of"]
    #[doc = "this function. However, if any args of the 'pointer' type are passed, then"]
    #[doc = "the referenced vtable must be maintained by the caller until"]
    #[doc = "grpc_server_destroy terminates. See grpc_channel_args definition for more"]
    #[doc = "on this."]
    pub fn grpc_server_create(
        args: *const grpc_channel_args,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_server;
}
extern "C" {
    #[doc = " Register a completion queue with the server. Must be done for any"]
    #[doc = "notification completion queue that is passed to grpc_server_request_*_call"]
    #[doc = "and to grpc_server_shutdown_and_notify. Must be performed prior to"]
    #[doc = "grpc_server_start."]
    pub fn grpc_server_register_completion_queue(
        server: *mut grpc_server,
        cq: *mut grpc_completion_queue,
        reserved: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Add a HTTP2 over plaintext over tcp listener."]
    #[doc = "Returns bound port number on success, 0 on failure."]
    #[doc = "REQUIRES: server not started"]
    pub fn grpc_server_add_insecure_http2_port(
        server: *mut grpc_server,
        addr: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Start a server - tells all listeners to start listening"]
    pub fn grpc_server_start(server: *mut grpc_server);
}
extern "C" {
    #[doc = " Begin shutting down a server."]
    #[doc = "After completion, no new calls or connections will be admitted."]
    #[doc = "Existing calls will be allowed to complete."]
    #[doc = "Send a GRPC_OP_COMPLETE event when there are no more calls being serviced."]
    #[doc = "Shutdown is idempotent, and all tags will be notified at once if multiple"]
    #[doc = "grpc_server_shutdown_and_notify calls are made. 'cq' must have been"]
    #[doc = "registered to this server via grpc_server_register_completion_queue."]
    pub fn grpc_server_shutdown_and_notify(
        server: *mut grpc_server,
        cq: *mut grpc_completion_queue,
        tag: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    #[doc = " Cancel all in-progress calls."]
    #[doc = "Only usable after shutdown."]
    pub fn grpc_server_cancel_all_calls(server: *mut grpc_server);
}
extern "C" {
    #[doc = " Destroy a server."]
    #[doc = "Shutdown must have completed beforehand (i.e. all tags generated by"]
    #[doc = "grpc_server_shutdown_and_notify must have been received, and at least"]
    #[doc = "one call to grpc_server_shutdown_and_notify must have been made)."]
    pub fn grpc_server_destroy(server: *mut grpc_server);
}
extern "C" {
    #[doc = " Enable or disable a tracer."]
    #[doc = ""]
    #[doc = "Tracers (usually controlled by the environment variable GRPC_TRACE)"]
    #[doc = "allow printf-style debugging on GRPC internals, and are useful for"]
    #[doc = "tracking down problems in the field."]
    #[doc = ""]
    #[doc = "Use of this function is not strictly thread-safe, but the"]
    #[doc = "thread-safety issues raised by it should not be of concern."]
    pub fn grpc_tracer_set_enabled(
        name: *const ::std::os::raw::c_char,
        enabled: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check whether a metadata key is legal (will be accepted by core)"]
    pub fn grpc_header_key_is_legal(slice: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check whether a non-binary metadata value is legal (will be accepted by"]
    #[doc = "core)"]
    pub fn grpc_header_nonbin_value_is_legal(slice: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Check whether a metadata key corresponds to a binary value"]
    pub fn grpc_is_binary_header(slice: grpc_slice) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Convert grpc_call_error values to a string"]
    pub fn grpc_call_error_to_string(error: grpc_call_error) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Create a buffer pool"]
    pub fn grpc_resource_quota_create(
        trace_name: *const ::std::os::raw::c_char,
    ) -> *mut grpc_resource_quota;
}
extern "C" {
    #[doc = " Add a reference to a buffer pool"]
    pub fn grpc_resource_quota_ref(resource_quota: *mut grpc_resource_quota);
}
extern "C" {
    #[doc = " Drop a reference to a buffer pool"]
    pub fn grpc_resource_quota_unref(resource_quota: *mut grpc_resource_quota);
}
extern "C" {
    #[doc = " Update the size of a buffer pool"]
    pub fn grpc_resource_quota_resize(resource_quota: *mut grpc_resource_quota, new_size: usize);
}
extern "C" {
    #[doc = " Update the size of the maximum number of threads allowed"]
    pub fn grpc_resource_quota_set_max_threads(
        resource_quota: *mut grpc_resource_quota,
        new_max_threads: ::std::os::raw::c_int,
    );
}
extern "C" {
    #[doc = " Fetch a vtable for a grpc_channel_arg that points to a grpc_resource_quota"]
    pub fn grpc_resource_quota_arg_vtable() -> *const grpc_arg_pointer_vtable;
}
extern "C" {
    #[doc = " CHANNELZ API *************/"]
    #[doc = "churn as the feature is implemented. This comment will be removed once"]
    #[doc = "channelz is officially supported, and these APIs become stable. For now"]
    #[doc = "you may track the progress by following this github issue:"]
    #[doc = "https://github.com/grpc/grpc/issues/15340"]
    #[doc = ""]
    #[doc = "the following APIs return allocated JSON strings that match the response"]
    #[doc = "objects from the channelz proto, found here:"]
    #[doc = "https://github.com/grpc/grpc/blob/master/src/proto/grpc/channelz/channelz.proto."]
    #[doc = ""]
    #[doc = "For easy conversion to protobuf, The JSON is formatted according to:"]
    #[doc = "https://developers.google.com/protocol-buffers/docs/proto3#json."]
    pub fn grpc_channelz_get_top_channels(start_channel_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_servers(start_server_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_server(server_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_server_sockets(
        server_id: isize,
        start_socket_id: isize,
        max_results: isize,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_channel(channel_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_subchannel(subchannel_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_channelz_get_socket(socket_id: isize) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpc_cronet_secure_channel_create(
        engine: *mut ::std::os::raw::c_void,
        target: *const ::std::os::raw::c_char,
        args: *const grpc_channel_args,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel;
}
extern "C" {
    #[doc = " Create a client channel to 'target' using file descriptor 'fd'. The 'target'"]
    #[doc = "argument will be used to indicate the name for this channel. See the comment"]
    #[doc = "for grpc_insecure_channel_create for description of 'args' argument."]
    pub fn grpc_insecure_channel_create_from_fd(
        target: *const ::std::os::raw::c_char,
        fd: ::std::os::raw::c_int,
        args: *const grpc_channel_args,
    ) -> *mut grpc_channel;
}
extern "C" {
    #[doc = " Add the connected communication channel based on file descriptor 'fd' to the"]
    #[doc = "'server'. The 'fd' must be an open file descriptor corresponding to a"]
    #[doc = "connected socket. Events from the file descriptor may come on any of the"]
    #[doc = "server completion queues (i.e completion queues registered via the"]
    #[doc = "grpc_server_register_completion_queue API)."]
    #[doc = ""]
    #[doc = "The 'reserved' pointer MUST be NULL."]
    pub fn grpc_server_add_insecure_channel_from_fd(
        server: *mut grpc_server,
        reserved: *mut ::std::os::raw::c_void,
        fd: ::std::os::raw::c_int,
    );
}
#[repr(u32)]
#[doc = " Results for the SSL roots override callback."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_ssl_roots_override_result {
    GRPC_SSL_ROOTS_OVERRIDE_OK = 0,
    GRPC_SSL_ROOTS_OVERRIDE_FAIL_PERMANENTLY = 1,
    #[doc = " Do not try fallback options."]
    GRPC_SSL_ROOTS_OVERRIDE_FAIL = 2,
}
#[repr(u32)]
#[doc = " Callback results for dynamically loading a SSL certificate config."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_ssl_certificate_config_reload_status {
    GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_UNCHANGED = 0,
    GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_NEW = 1,
    GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_FAIL = 2,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_ssl_client_certificate_request_type {
    #[doc = " Server does not request client certificate."]
    #[doc = "The certificate presented by the client is not checked by the server at"]
    #[doc = "all. (A client may present a self signed or signed certificate or not"]
    #[doc = "present a certificate at all and any of those option would be accepted)"]
    GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE = 0,
    #[doc = " Server requests client certificate but does not enforce that the client"]
    #[doc = "presents a certificate."]
    #[doc = ""]
    #[doc = "If the client presents a certificate, the client authentication is left to"]
    #[doc = "the application (the necessary metadata will be available to the"]
    #[doc = "application via authentication context properties, see grpc_auth_context)."]
    #[doc = ""]
    #[doc = "The client's key certificate pair must be valid for the SSL connection to"]
    #[doc = "be established."]
    GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_BUT_DONT_VERIFY = 1,
    #[doc = " Server requests client certificate but does not enforce that the client"]
    #[doc = "presents a certificate."]
    #[doc = ""]
    #[doc = "If the client presents a certificate, the client authentication is done by"]
    #[doc = "the gRPC framework. (For a successful connection the client needs to either"]
    #[doc = "present a certificate that can be verified against the root certificate"]
    #[doc = "configured by the server or not present a certificate at all)"]
    #[doc = ""]
    #[doc = "The client's key certificate pair must be valid for the SSL connection to"]
    #[doc = "be established."]
    GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_AND_VERIFY = 2,
    #[doc = " Server requests client certificate and enforces that the client presents a"]
    #[doc = "certificate."]
    #[doc = ""]
    #[doc = "If the client presents a certificate, the client authentication is left to"]
    #[doc = "the application (the necessary metadata will be available to the"]
    #[doc = "application via authentication context properties, see grpc_auth_context)."]
    #[doc = ""]
    #[doc = "The client's key certificate pair must be valid for the SSL connection to"]
    #[doc = "be established."]
    GRPC_SSL_REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_BUT_DONT_VERIFY = 3,
    #[doc = " Server requests client certificate and enforces that the client presents a"]
    #[doc = "certificate."]
    #[doc = ""]
    #[doc = "The certificate presented by the client is verified by the gRPC framework."]
    #[doc = "(For a successful connection the client needs to present a certificate that"]
    #[doc = "can be verified against the root certificate configured by the server)"]
    #[doc = ""]
    #[doc = "The client's key certificate pair must be valid for the SSL connection to"]
    #[doc = "be established."]
    GRPC_SSL_REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_AND_VERIFY = 4,
}
#[repr(u32)]
#[doc = " Type of local connections for which local channel/server credentials will be"]
#[doc = " applied. It supports UDS and local TCP connections."]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum grpc_local_connect_type {
    UDS = 0,
    LOCAL_TCP = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_auth_context {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_auth_property_iterator {
    pub ctx: *const grpc_auth_context,
    pub index: usize,
    pub name: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_auth_property_iterator() {
    assert_eq!(
        ::std::mem::size_of::<grpc_auth_property_iterator>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_auth_property_iterator))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_auth_property_iterator>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_auth_property_iterator))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_auth_property_iterator>())).ctx as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property_iterator),
            "::",
            stringify!(ctx)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_property_iterator>())).index as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property_iterator),
            "::",
            stringify!(index)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_property_iterator>())).name as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property_iterator),
            "::",
            stringify!(name)
        )
    );
}
#[doc = " value, if not NULL, is guaranteed to be NULL terminated."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_auth_property {
    pub name: *mut ::std::os::raw::c_char,
    pub value: *mut ::std::os::raw::c_char,
    pub value_length: usize,
}
#[test]
fn bindgen_test_layout_grpc_auth_property() {
    assert_eq!(
        ::std::mem::size_of::<grpc_auth_property>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_auth_property))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_auth_property>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_auth_property))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_auth_property>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_auth_property>())).value as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property),
            "::",
            stringify!(value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_auth_property>())).value_length as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_property),
            "::",
            stringify!(value_length)
        )
    );
}
extern "C" {
    #[doc = " Returns NULL when the iterator is at the end."]
    pub fn grpc_auth_property_iterator_next(
        it: *mut grpc_auth_property_iterator,
    ) -> *const grpc_auth_property;
}
extern "C" {
    #[doc = " Iterates over the auth context."]
    pub fn grpc_auth_context_property_iterator(
        ctx: *const grpc_auth_context,
    ) -> grpc_auth_property_iterator;
}
extern "C" {
    #[doc = " Gets the peer identity. Returns an empty iterator (first _next will return"]
    #[doc = "NULL) if the peer is not authenticated."]
    pub fn grpc_auth_context_peer_identity(
        ctx: *const grpc_auth_context,
    ) -> grpc_auth_property_iterator;
}
extern "C" {
    #[doc = " Finds a property in the context. May return an empty iterator (first _next"]
    #[doc = "will return NULL) if no property with this name was found in the context."]
    pub fn grpc_auth_context_find_properties_by_name(
        ctx: *const grpc_auth_context,
        name: *const ::std::os::raw::c_char,
    ) -> grpc_auth_property_iterator;
}
extern "C" {
    #[doc = " Gets the name of the property that indicates the peer identity. Will return"]
    #[doc = "NULL if the peer is not authenticated."]
    pub fn grpc_auth_context_peer_identity_property_name(
        ctx: *const grpc_auth_context,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns 1 if the peer is authenticated, 0 otherwise."]
    pub fn grpc_auth_context_peer_is_authenticated(
        ctx: *const grpc_auth_context,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Gets the auth context from the call. Caller needs to call"]
    #[doc = "grpc_auth_context_release on the returned context."]
    pub fn grpc_call_auth_context(call: *mut grpc_call) -> *mut grpc_auth_context;
}
extern "C" {
    #[doc = " Releases the auth context returned from grpc_call_auth_context."]
    pub fn grpc_auth_context_release(context: *mut grpc_auth_context);
}
extern "C" {
    #[doc = " Add a property."]
    pub fn grpc_auth_context_add_property(
        ctx: *mut grpc_auth_context,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
        value_length: usize,
    );
}
extern "C" {
    #[doc = " Add a C string property."]
    pub fn grpc_auth_context_add_cstring_property(
        ctx: *mut grpc_auth_context,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Sets the property name. Returns 1 if successful or 0 in case of failure"]
    #[doc = "(which means that no property with this name exists)."]
    pub fn grpc_auth_context_set_peer_identity_property_name(
        ctx: *mut grpc_auth_context,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_ssl_session_cache {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Create LRU cache for client-side SSL sessions with the given capacity."]
    #[doc = "If capacity is < 1, a default capacity is used instead."]
    pub fn grpc_ssl_session_cache_create_lru(capacity: usize) -> *mut grpc_ssl_session_cache;
}
extern "C" {
    #[doc = " Destroy SSL session cache."]
    pub fn grpc_ssl_session_cache_destroy(cache: *mut grpc_ssl_session_cache);
}
extern "C" {
    #[doc = " Create a channel arg with the given cache object."]
    pub fn grpc_ssl_session_cache_create_channel_arg(
        cache: *mut grpc_ssl_session_cache,
    ) -> grpc_arg;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_channel_credentials {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Releases a channel credentials object."]
    #[doc = "The creator of the credentials object is responsible for its release."]
    pub fn grpc_channel_credentials_release(creds: *mut grpc_channel_credentials);
}
extern "C" {
    #[doc = " Creates default credentials to connect to a google gRPC service."]
    #[doc = "WARNING: Do NOT use this credentials to connect to a non-google service as"]
    #[doc = "this could result in an oauth2 token leak."]
    pub fn grpc_google_default_credentials_create() -> *mut grpc_channel_credentials;
}
#[doc = " Callback for getting the SSL roots override from the application."]
#[doc = "In case of success, *pem_roots_certs must be set to a NULL terminated string"]
#[doc = "containing the list of PEM encoded root certificates. The ownership is passed"]
#[doc = "to the core and freed (laster by the core) with gpr_free."]
#[doc = "If this function fails and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment is"]
#[doc = "set to a valid path, it will override the roots specified this func"]
pub type grpc_ssl_roots_override_callback = ::std::option::Option<
    unsafe extern "C" fn(
        pem_root_certs: *mut *mut ::std::os::raw::c_char,
    ) -> grpc_ssl_roots_override_result,
>;
extern "C" {
    #[doc = " Setup a callback to override the default TLS/SSL roots."]
    #[doc = "This function is not thread-safe and must be called at initialization time"]
    #[doc = "before any ssl credentials are created to have the desired side effect."]
    #[doc = "If GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment is set to a valid path, the"]
    #[doc = "callback will not be called."]
    pub fn grpc_set_ssl_roots_override_callback(cb: grpc_ssl_roots_override_callback);
}
#[doc = " Object that holds a private key / certificate chain pair in PEM format."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_ssl_pem_key_cert_pair {
    #[doc = " private_key is the NULL-terminated string containing the PEM encoding of"]
    #[doc = "the client's private key."]
    pub private_key: *const ::std::os::raw::c_char,
    #[doc = " cert_chain is the NULL-terminated string containing the PEM encoding of"]
    #[doc = "the client's certificate chain."]
    pub cert_chain: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_ssl_pem_key_cert_pair() {
    assert_eq!(
        ::std::mem::size_of::<grpc_ssl_pem_key_cert_pair>(),
        16usize,
        concat!("Size of: ", stringify!(grpc_ssl_pem_key_cert_pair))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_ssl_pem_key_cert_pair>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_ssl_pem_key_cert_pair))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_ssl_pem_key_cert_pair>())).private_key as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_ssl_pem_key_cert_pair),
            "::",
            stringify!(private_key)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_ssl_pem_key_cert_pair>())).cert_chain as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_ssl_pem_key_cert_pair),
            "::",
            stringify!(cert_chain)
        )
    );
}
#[doc = " Deprecated in favor of grpc_ssl_verify_peer_options. It will be removed"]
#[doc = "after all of its call sites are migrated to grpc_ssl_verify_peer_options."]
#[doc = "Object that holds additional peer-verification options on a secure"]
#[doc = "channel."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct verify_peer_options {
    #[doc = " If non-NULL this callback will be invoked with the expected"]
    #[doc = "target_name, the peer's certificate (in PEM format), and whatever"]
    #[doc = "userdata pointer is set below. If a non-zero value is returned by this"]
    #[doc = "callback then it is treated as a verification failure. Invocation of"]
    #[doc = "the callback is blocking, so any implementation should be light-weight."]
    pub verify_peer_callback: ::std::option::Option<
        unsafe extern "C" fn(
            target_name: *const ::std::os::raw::c_char,
            peer_pem: *const ::std::os::raw::c_char,
            userdata: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Arbitrary userdata that will be passed as the last argument to"]
    #[doc = "verify_peer_callback."]
    pub verify_peer_callback_userdata: *mut ::std::os::raw::c_void,
    #[doc = " A destruct callback that will be invoked when the channel is being"]
    #[doc = "cleaned up. The userdata argument will be passed to it. The intent is"]
    #[doc = "to perform any cleanup associated with that userdata."]
    pub verify_peer_destruct:
        ::std::option::Option<unsafe extern "C" fn(userdata: *mut ::std::os::raw::c_void)>,
}
#[test]
fn bindgen_test_layout_verify_peer_options() {
    assert_eq!(
        ::std::mem::size_of::<verify_peer_options>(),
        24usize,
        concat!("Size of: ", stringify!(verify_peer_options))
    );
    assert_eq!(
        ::std::mem::align_of::<verify_peer_options>(),
        8usize,
        concat!("Alignment of ", stringify!(verify_peer_options))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<verify_peer_options>())).verify_peer_callback as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(verify_peer_options),
            "::",
            stringify!(verify_peer_callback)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<verify_peer_options>())).verify_peer_callback_userdata
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(verify_peer_options),
            "::",
            stringify!(verify_peer_callback_userdata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<verify_peer_options>())).verify_peer_destruct as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(verify_peer_options),
            "::",
            stringify!(verify_peer_destruct)
        )
    );
}
#[doc = " Object that holds additional peer-verification options on a secure"]
#[doc = "channel."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_ssl_verify_peer_options {
    #[doc = " If non-NULL this callback will be invoked with the expected"]
    #[doc = "target_name, the peer's certificate (in PEM format), and whatever"]
    #[doc = "userdata pointer is set below. If a non-zero value is returned by this"]
    #[doc = "callback then it is treated as a verification failure. Invocation of"]
    #[doc = "the callback is blocking, so any implementation should be light-weight."]
    pub verify_peer_callback: ::std::option::Option<
        unsafe extern "C" fn(
            target_name: *const ::std::os::raw::c_char,
            peer_pem: *const ::std::os::raw::c_char,
            userdata: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Arbitrary userdata that will be passed as the last argument to"]
    #[doc = "verify_peer_callback."]
    pub verify_peer_callback_userdata: *mut ::std::os::raw::c_void,
    #[doc = " A destruct callback that will be invoked when the channel is being"]
    #[doc = "cleaned up. The userdata argument will be passed to it. The intent is"]
    #[doc = "to perform any cleanup associated with that userdata."]
    pub verify_peer_destruct:
        ::std::option::Option<unsafe extern "C" fn(userdata: *mut ::std::os::raw::c_void)>,
}
#[test]
fn bindgen_test_layout_grpc_ssl_verify_peer_options() {
    assert_eq!(
        ::std::mem::size_of::<grpc_ssl_verify_peer_options>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_ssl_verify_peer_options))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_ssl_verify_peer_options>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_ssl_verify_peer_options))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_ssl_verify_peer_options>())).verify_peer_callback
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_ssl_verify_peer_options),
            "::",
            stringify!(verify_peer_callback)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_ssl_verify_peer_options>())).verify_peer_callback_userdata
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_ssl_verify_peer_options),
            "::",
            stringify!(verify_peer_callback_userdata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_ssl_verify_peer_options>())).verify_peer_destruct
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_ssl_verify_peer_options),
            "::",
            stringify!(verify_peer_destruct)
        )
    );
}
extern "C" {
    #[doc = " Deprecated in favor of grpc_ssl_server_credentials_create_ex. It will be"]
    #[doc = "removed after all of its call sites are migrated to"]
    #[doc = "grpc_ssl_server_credentials_create_ex. Creates an SSL credentials object."]
    #[doc = "- pem_root_certs is the NULL-terminated string containing the PEM encoding"]
    #[doc = "of the server root certificates. If this parameter is NULL, the"]
    #[doc = "implementation will first try to dereference the file pointed by the"]
    #[doc = "GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment variable, and if that fails,"]
    #[doc = "try to get the roots set by grpc_override_ssl_default_roots. Eventually,"]
    #[doc = "if all these fail, it will try to get the roots from a well-known place on"]
    #[doc = "disk (in the grpc install directory)."]
    #[doc = ""]
    #[doc = "gRPC has implemented root cache if the underlying OpenSSL library supports"]
    #[doc = "it. The gRPC root certificates cache is only applicable on the default"]
    #[doc = "root certificates, which is used when this parameter is nullptr. If user"]
    #[doc = "provides their own pem_root_certs, when creating an SSL credential object,"]
    #[doc = "gRPC would not be able to cache it, and each subchannel will generate a"]
    #[doc = "copy of the root store. So it is recommended to avoid providing large room"]
    #[doc = "pem with pem_root_certs parameter to avoid excessive memory consumption,"]
    #[doc = "particularly on mobile platforms such as iOS."]
    #[doc = "- pem_key_cert_pair is a pointer on the object containing client's private"]
    #[doc = "key and certificate chain. This parameter can be NULL if the client does"]
    #[doc = "not have such a key/cert pair."]
    #[doc = "- verify_options is an optional verify_peer_options object which holds"]
    #[doc = "additional options controlling how peer certificates are verified. For"]
    #[doc = "example, you can supply a callback which receives the peer's certificate"]
    #[doc = "with which you can do additional verification. Can be NULL, in which"]
    #[doc = "case verification will retain default behavior. Any settings in"]
    #[doc = "verify_options are copied during this call, so the verify_options"]
    #[doc = "object can be released afterwards."]
    pub fn grpc_ssl_credentials_create(
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pair: *mut grpc_ssl_pem_key_cert_pair,
        verify_options: *const verify_peer_options,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel_credentials;
}
extern "C" {
    pub fn grpc_ssl_credentials_create_ex(
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pair: *mut grpc_ssl_pem_key_cert_pair,
        verify_options: *const grpc_ssl_verify_peer_options,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel_credentials;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_call_credentials {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Releases a call credentials object."]
    #[doc = "The creator of the credentials object is responsible for its release."]
    pub fn grpc_call_credentials_release(creds: *mut grpc_call_credentials);
}
extern "C" {
    #[doc = " Creates a composite channel credentials object."]
    pub fn grpc_composite_channel_credentials_create(
        channel_creds: *mut grpc_channel_credentials,
        call_creds: *mut grpc_call_credentials,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel_credentials;
}
extern "C" {
    #[doc = " Creates a composite call credentials object."]
    pub fn grpc_composite_call_credentials_create(
        creds1: *mut grpc_call_credentials,
        creds2: *mut grpc_call_credentials,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    #[doc = " Creates a compute engine credentials object for connecting to Google."]
    #[doc = "WARNING: Do NOT use this credentials to connect to a non-google service as"]
    #[doc = "this could result in an oauth2 token leak."]
    pub fn grpc_google_compute_engine_credentials_create(
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    pub fn grpc_max_auth_token_lifetime() -> gpr_timespec;
}
extern "C" {
    #[doc = " Creates a JWT credentials object. May return NULL if the input is invalid."]
    #[doc = "- json_key is the JSON key string containing the client's private key."]
    #[doc = "- token_lifetime is the lifetime of each Json Web Token (JWT) created with"]
    #[doc = "this credentials.  It should not exceed grpc_max_auth_token_lifetime or"]
    #[doc = "will be cropped to this value."]
    pub fn grpc_service_account_jwt_access_credentials_create(
        json_key: *const ::std::os::raw::c_char,
        token_lifetime: gpr_timespec,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    #[doc = " Creates an Oauth2 Refresh Token credentials object for connecting to Google."]
    #[doc = "May return NULL if the input is invalid."]
    #[doc = "WARNING: Do NOT use this credentials to connect to a non-google service as"]
    #[doc = "this could result in an oauth2 token leak."]
    #[doc = "- json_refresh_token is the JSON string containing the refresh token itself"]
    #[doc = "along with a client_id and client_secret."]
    pub fn grpc_google_refresh_token_credentials_create(
        json_refresh_token: *const ::std::os::raw::c_char,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    #[doc = " Creates an Oauth2 Access Token credentials with an access token that was"]
    #[doc = "acquired by an out of band mechanism."]
    pub fn grpc_access_token_credentials_create(
        access_token: *const ::std::os::raw::c_char,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    #[doc = " Creates an IAM credentials object for connecting to Google."]
    pub fn grpc_google_iam_credentials_create(
        authorization_token: *const ::std::os::raw::c_char,
        authority_selector: *const ::std::os::raw::c_char,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
#[doc = " Options for creating STS Oauth Token Exchange credentials following the IETF"]
#[doc = "draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16."]
#[doc = "Optional fields may be set to NULL or empty string. It is the responsibility"]
#[doc = "of the caller to ensure that the subject and actor tokens are refreshed on"]
#[doc = "disk at the specified paths. This API is used for experimental purposes for"]
#[doc = "now and may change in the future."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_sts_credentials_options {
    pub token_exchange_service_uri: *const ::std::os::raw::c_char,
    pub resource: *const ::std::os::raw::c_char,
    pub audience: *const ::std::os::raw::c_char,
    pub scope: *const ::std::os::raw::c_char,
    pub requested_token_type: *const ::std::os::raw::c_char,
    pub subject_token_path: *const ::std::os::raw::c_char,
    pub subject_token_type: *const ::std::os::raw::c_char,
    pub actor_token_path: *const ::std::os::raw::c_char,
    pub actor_token_type: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_sts_credentials_options() {
    assert_eq!(
        ::std::mem::size_of::<grpc_sts_credentials_options>(),
        72usize,
        concat!("Size of: ", stringify!(grpc_sts_credentials_options))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_sts_credentials_options>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_sts_credentials_options))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).token_exchange_service_uri
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(token_exchange_service_uri)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).resource as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(resource)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).audience as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(audience)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).scope as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(scope)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).requested_token_type
                as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(requested_token_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).subject_token_path as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(subject_token_path)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).subject_token_type as *const _
                as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(subject_token_type)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).actor_token_path as *const _
                as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(actor_token_path)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_sts_credentials_options>())).actor_token_type as *const _
                as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_sts_credentials_options),
            "::",
            stringify!(actor_token_type)
        )
    );
}
extern "C" {
    #[doc = " Creates an STS credentials following the STS Token Exchanged specifed in the"]
    #[doc = "IETF draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16."]
    #[doc = "This API is used for experimental purposes for now and may change in the"]
    #[doc = "future."]
    pub fn grpc_sts_credentials_create(
        options: *const grpc_sts_credentials_options,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
#[doc = " Callback function to be called by the metadata credentials plugin"]
#[doc = "implementation when the metadata is ready."]
#[doc = "- user_data is the opaque pointer that was passed in the get_metadata method"]
#[doc = "of the grpc_metadata_credentials_plugin (see below)."]
#[doc = "- creds_md is an array of credentials metadata produced by the plugin. It"]
#[doc = "may be set to NULL in case of an error."]
#[doc = "- num_creds_md is the number of items in the creds_md array."]
#[doc = "- status must be GRPC_STATUS_OK in case of success or another specific error"]
#[doc = "code otherwise."]
#[doc = "- error_details contains details about the error if any. In case of success"]
#[doc = "it should be NULL and will be otherwise ignored."]
pub type grpc_credentials_plugin_metadata_cb = ::std::option::Option<
    unsafe extern "C" fn(
        user_data: *mut ::std::os::raw::c_void,
        creds_md: *const grpc_metadata,
        num_creds_md: usize,
        status: grpc_status_code::Type,
        error_details: *const ::std::os::raw::c_char,
    ),
>;
#[doc = " Context that can be used by metadata credentials plugin in order to create"]
#[doc = "auth related metadata."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_auth_metadata_context {
    #[doc = " The fully qualifed service url."]
    pub service_url: *const ::std::os::raw::c_char,
    #[doc = " The method name of the RPC being called (not fully qualified)."]
    #[doc = "The fully qualified method name can be built from the service_url:"]
    #[doc = "full_qualified_method_name = ctx->service_url + '/' + ctx->method_name."]
    pub method_name: *const ::std::os::raw::c_char,
    #[doc = " The auth_context of the channel which gives the server's identity."]
    pub channel_auth_context: *const grpc_auth_context,
    #[doc = " Reserved for future use."]
    pub reserved: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_grpc_auth_metadata_context() {
    assert_eq!(
        ::std::mem::size_of::<grpc_auth_metadata_context>(),
        32usize,
        concat!("Size of: ", stringify!(grpc_auth_metadata_context))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_auth_metadata_context>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_auth_metadata_context))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_context>())).service_url as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_context),
            "::",
            stringify!(service_url)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_context>())).method_name as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_context),
            "::",
            stringify!(method_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_context>())).channel_auth_context as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_context),
            "::",
            stringify!(channel_auth_context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_context>())).reserved as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_context),
            "::",
            stringify!(reserved)
        )
    );
}
#[doc = " grpc_metadata_credentials plugin is an API user provided structure used to"]
#[doc = "create grpc_credentials objects that can be set on a channel (composed) or"]
#[doc = "a call. See grpc_credentials_metadata_create_from_plugin below."]
#[doc = "The grpc client stack will call the get_metadata method of the plugin for"]
#[doc = "every call in scope for the credentials created from it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_metadata_credentials_plugin {
    #[doc = " The implementation of this method has to be non-blocking, but can"]
    #[doc = "be performed synchronously or asynchronously."]
    #[doc = ""]
    #[doc = "If processing occurs synchronously, returns non-zero and populates"]
    #[doc = "creds_md, num_creds_md, status, and error_details.  In this case,"]
    #[doc = "the caller takes ownership of the entries in creds_md and of"]
    #[doc = "error_details.  Note that if the plugin needs to return more than"]
    #[doc = "GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX entries in creds_md, it must"]
    #[doc = "return asynchronously."]
    #[doc = ""]
    #[doc = "If processing occurs asynchronously, returns zero and invokes \\a cb"]
    #[doc = "when processing is completed.  \\a user_data will be passed as the"]
    #[doc = "first parameter of the callback.  NOTE: \\a cb MUST be invoked in a"]
    #[doc = "different thread, not from the thread in which \\a get_metadata() is"]
    #[doc = "invoked."]
    #[doc = ""]
    #[doc = "\\a context is the information that can be used by the plugin to create"]
    #[doc = "auth metadata."]
    pub get_metadata: ::std::option::Option<
        unsafe extern "C" fn(
            state: *mut ::std::os::raw::c_void,
            context: grpc_auth_metadata_context,
            cb: grpc_credentials_plugin_metadata_cb,
            user_data: *mut ::std::os::raw::c_void,
            creds_md: *mut grpc_metadata,
            num_creds_md: *mut usize,
            status: *mut grpc_status_code::Type,
            error_details: *mut *const ::std::os::raw::c_char,
        ) -> ::std::os::raw::c_int,
    >,
    #[doc = " Destroys the plugin state."]
    pub destroy: ::std::option::Option<unsafe extern "C" fn(state: *mut ::std::os::raw::c_void)>,
    #[doc = " State that will be set as the first parameter of the methods above."]
    pub state: *mut ::std::os::raw::c_void,
    #[doc = " Type of credentials that this plugin is implementing."]
    pub type_: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_grpc_metadata_credentials_plugin() {
    assert_eq!(
        ::std::mem::size_of::<grpc_metadata_credentials_plugin>(),
        32usize,
        concat!("Size of: ", stringify!(grpc_metadata_credentials_plugin))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_metadata_credentials_plugin>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_metadata_credentials_plugin)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_metadata_credentials_plugin>())).get_metadata as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_credentials_plugin),
            "::",
            stringify!(get_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_metadata_credentials_plugin>())).destroy as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_credentials_plugin),
            "::",
            stringify!(destroy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_metadata_credentials_plugin>())).state as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_credentials_plugin),
            "::",
            stringify!(state)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_metadata_credentials_plugin>())).type_ as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_metadata_credentials_plugin),
            "::",
            stringify!(type_)
        )
    );
}
extern "C" {
    #[doc = " Creates a credentials object from a plugin."]
    pub fn grpc_metadata_credentials_create_from_plugin(
        plugin: grpc_metadata_credentials_plugin,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_call_credentials;
}
extern "C" {
    #[doc = " Creates a secure channel using the passed-in credentials. Additional"]
    #[doc = "channel level configuration MAY be provided by grpc_channel_args, though"]
    #[doc = "the expectation is that most clients will want to simply pass NULL. The"]
    #[doc = "user data in 'args' need only live through the invocation of this function."]
    #[doc = "However, if any args of the 'pointer' type are passed, then the referenced"]
    #[doc = "vtable must be maintained by the caller until grpc_channel_destroy"]
    #[doc = "terminates. See grpc_channel_args definition for more on this."]
    pub fn grpc_secure_channel_create(
        creds: *mut grpc_channel_credentials,
        target: *const ::std::os::raw::c_char,
        args: *const grpc_channel_args,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_channel;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_server_credentials {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Releases a server_credentials object."]
    #[doc = "The creator of the server_credentials object is responsible for its release."]
    pub fn grpc_server_credentials_release(creds: *mut grpc_server_credentials);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_ssl_server_certificate_config {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Creates a grpc_ssl_server_certificate_config object."]
    #[doc = "- pem_roots_cert is the NULL-terminated string containing the PEM encoding of"]
    #[doc = "the client root certificates. This parameter may be NULL if the server does"]
    #[doc = "not want the client to be authenticated with SSL."]
    #[doc = "- pem_key_cert_pairs is an array private key / certificate chains of the"]
    #[doc = "server. This parameter cannot be NULL."]
    #[doc = "- num_key_cert_pairs indicates the number of items in the private_key_files"]
    #[doc = "and cert_chain_files parameters. It must be at least 1."]
    #[doc = "- It is the caller's responsibility to free this object via"]
    #[doc = "grpc_ssl_server_certificate_config_destroy()."]
    pub fn grpc_ssl_server_certificate_config_create(
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pairs: *const grpc_ssl_pem_key_cert_pair,
        num_key_cert_pairs: usize,
    ) -> *mut grpc_ssl_server_certificate_config;
}
extern "C" {
    #[doc = " Destroys a grpc_ssl_server_certificate_config object."]
    pub fn grpc_ssl_server_certificate_config_destroy(
        config: *mut grpc_ssl_server_certificate_config,
    );
}
#[doc = " Callback to retrieve updated SSL server certificates, private keys, and"]
#[doc = "trusted CAs (for client authentication)."]
#[doc = "- user_data parameter, if not NULL, contains opaque data to be used by the"]
#[doc = "callback."]
#[doc = "- Use grpc_ssl_server_certificate_config_create to create the config."]
#[doc = "- The caller assumes ownership of the config."]
pub type grpc_ssl_server_certificate_config_callback = ::std::option::Option<
    unsafe extern "C" fn(
        user_data: *mut ::std::os::raw::c_void,
        config: *mut *mut grpc_ssl_server_certificate_config,
    ) -> grpc_ssl_certificate_config_reload_status,
>;
extern "C" {
    #[doc = " Deprecated in favor of grpc_ssl_server_credentials_create_ex."]
    #[doc = "Creates an SSL server_credentials object."]
    #[doc = "- pem_roots_cert is the NULL-terminated string containing the PEM encoding of"]
    #[doc = "the client root certificates. This parameter may be NULL if the server does"]
    #[doc = "not want the client to be authenticated with SSL."]
    #[doc = "- pem_key_cert_pairs is an array private key / certificate chains of the"]
    #[doc = "server. This parameter cannot be NULL."]
    #[doc = "- num_key_cert_pairs indicates the number of items in the private_key_files"]
    #[doc = "and cert_chain_files parameters. It should be at least 1."]
    #[doc = "- force_client_auth, if set to non-zero will force the client to authenticate"]
    #[doc = "with an SSL cert. Note that this option is ignored if pem_root_certs is"]
    #[doc = "NULL."]
    pub fn grpc_ssl_server_credentials_create(
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pairs: *mut grpc_ssl_pem_key_cert_pair,
        num_key_cert_pairs: usize,
        force_client_auth: ::std::os::raw::c_int,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_server_credentials;
}
extern "C" {
    #[doc = " Deprecated in favor of grpc_ssl_server_credentials_create_with_options."]
    #[doc = "Same as grpc_ssl_server_credentials_create method except uses"]
    #[doc = "grpc_ssl_client_certificate_request_type enum to support more ways to"]
    #[doc = "authenticate client certificates."]
    pub fn grpc_ssl_server_credentials_create_ex(
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pairs: *mut grpc_ssl_pem_key_cert_pair,
        num_key_cert_pairs: usize,
        client_certificate_request: grpc_ssl_client_certificate_request_type,
        reserved: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_server_credentials;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_ssl_server_credentials_options {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Creates an options object using a certificate config. Use this method when"]
    #[doc = "the certificates and keys of the SSL server will not change during the"]
    #[doc = "server's lifetime."]
    #[doc = "- Takes ownership of the certificate_config parameter."]
    pub fn grpc_ssl_server_credentials_create_options_using_config(
        client_certificate_request: grpc_ssl_client_certificate_request_type,
        certificate_config: *mut grpc_ssl_server_certificate_config,
    ) -> *mut grpc_ssl_server_credentials_options;
}
extern "C" {
    #[doc = " Creates an options object using a certificate config fetcher. Use this"]
    #[doc = "method to reload the certificates and keys of the SSL server without"]
    #[doc = "interrupting the operation of the server. Initial certificate config will be"]
    #[doc = "fetched during server initialization."]
    #[doc = "- user_data parameter, if not NULL, contains opaque data which will be passed"]
    #[doc = "to the fetcher (see definition of"]
    #[doc = "grpc_ssl_server_certificate_config_callback)."]
    pub fn grpc_ssl_server_credentials_create_options_using_config_fetcher(
        client_certificate_request: grpc_ssl_client_certificate_request_type,
        cb: grpc_ssl_server_certificate_config_callback,
        user_data: *mut ::std::os::raw::c_void,
    ) -> *mut grpc_ssl_server_credentials_options;
}
extern "C" {
    #[doc = " Destroys a grpc_ssl_server_credentials_options object."]
    pub fn grpc_ssl_server_credentials_options_destroy(
        options: *mut grpc_ssl_server_credentials_options,
    );
}
extern "C" {
    #[doc = " Creates an SSL server_credentials object using the provided options struct."]
    #[doc = "- Takes ownership of the options parameter."]
    pub fn grpc_ssl_server_credentials_create_with_options(
        options: *mut grpc_ssl_server_credentials_options,
    ) -> *mut grpc_server_credentials;
}
extern "C" {
    #[doc = " Add a HTTP2 over an encrypted link over tcp listener."]
    #[doc = "Returns bound port number on success, 0 on failure."]
    #[doc = "REQUIRES: server not started"]
    pub fn grpc_server_add_secure_http2_port(
        server: *mut grpc_server,
        addr: *const ::std::os::raw::c_char,
        creds: *mut grpc_server_credentials,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Sets a credentials to a call. Can only be called on the client side before"]
    #[doc = "grpc_call_start_batch."]
    pub fn grpc_call_set_credentials(
        call: *mut grpc_call,
        creds: *mut grpc_call_credentials,
    ) -> grpc_call_error;
}
#[doc = " Callback function that is called when the metadata processing is done."]
#[doc = "- Consumed metadata will be removed from the set of metadata available on the"]
#[doc = "call. consumed_md may be NULL if no metadata has been consumed."]
#[doc = "- Response metadata will be set on the response. response_md may be NULL."]
#[doc = "- status is GRPC_STATUS_OK for success or a specific status for an error."]
#[doc = "Common error status for auth metadata processing is either"]
#[doc = "GRPC_STATUS_UNAUTHENTICATED in case of an authentication failure or"]
#[doc = "GRPC_STATUS PERMISSION_DENIED in case of an authorization failure."]
#[doc = "- error_details gives details about the error. May be NULL."]
pub type grpc_process_auth_metadata_done_cb = ::std::option::Option<
    unsafe extern "C" fn(
        user_data: *mut ::std::os::raw::c_void,
        consumed_md: *const grpc_metadata,
        num_consumed_md: usize,
        response_md: *const grpc_metadata,
        num_response_md: usize,
        status: grpc_status_code::Type,
        error_details: *const ::std::os::raw::c_char,
    ),
>;
#[doc = " Pluggable server-side metadata processor object."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_auth_metadata_processor {
    #[doc = " The context object is read/write: it contains the properties of the"]
    #[doc = "channel peer and it is the job of the process function to augment it with"]
    #[doc = "properties derived from the passed-in metadata."]
    #[doc = "The lifetime of these objects is guaranteed until cb is invoked."]
    pub process: ::std::option::Option<
        unsafe extern "C" fn(
            state: *mut ::std::os::raw::c_void,
            context: *mut grpc_auth_context,
            md: *const grpc_metadata,
            num_md: usize,
            cb: grpc_process_auth_metadata_done_cb,
            user_data: *mut ::std::os::raw::c_void,
        ),
    >,
    pub destroy: ::std::option::Option<unsafe extern "C" fn(state: *mut ::std::os::raw::c_void)>,
    pub state: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_grpc_auth_metadata_processor() {
    assert_eq!(
        ::std::mem::size_of::<grpc_auth_metadata_processor>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_auth_metadata_processor))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_auth_metadata_processor>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_auth_metadata_processor))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_processor>())).process as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_processor),
            "::",
            stringify!(process)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_processor>())).destroy as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_processor),
            "::",
            stringify!(destroy)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_auth_metadata_processor>())).state as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_auth_metadata_processor),
            "::",
            stringify!(state)
        )
    );
}
extern "C" {
    pub fn grpc_server_credentials_set_auth_metadata_processor(
        creds: *mut grpc_server_credentials,
        processor: grpc_auth_metadata_processor,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_alts_credentials_options {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " This method creates a grpc ALTS credentials client options instance."]
    #[doc = " It is used for experimental purpose for now and subject to change."]
    pub fn grpc_alts_credentials_client_options_create() -> *mut grpc_alts_credentials_options;
}
extern "C" {
    #[doc = " This method creates a grpc ALTS credentials server options instance."]
    #[doc = " It is used for experimental purpose for now and subject to change."]
    pub fn grpc_alts_credentials_server_options_create() -> *mut grpc_alts_credentials_options;
}
extern "C" {
    #[doc = " This method adds a target service account to grpc client's ALTS credentials"]
    #[doc = " options instance. It is used for experimental purpose for now and subject"]
    #[doc = " to change."]
    #[doc = ""]
    #[doc = " - options: grpc ALTS credentials options instance."]
    #[doc = " - service_account: service account of target endpoint."]
    pub fn grpc_alts_credentials_client_options_add_target_service_account(
        options: *mut grpc_alts_credentials_options,
        service_account: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " This method destroys a grpc_alts_credentials_options instance by"]
    #[doc = " de-allocating all of its occupied memory. It is used for experimental purpose"]
    #[doc = " for now and subject to change."]
    #[doc = ""]
    #[doc = " - options: a grpc_alts_credentials_options instance that needs to be"]
    #[doc = "   destroyed."]
    pub fn grpc_alts_credentials_options_destroy(options: *mut grpc_alts_credentials_options);
}
extern "C" {
    #[doc = " This method creates an ALTS channel credential object. It is used for"]
    #[doc = " experimental purpose for now and subject to change."]
    #[doc = ""]
    #[doc = " - options: grpc ALTS credentials options instance for client."]
    #[doc = ""]
    #[doc = " It returns the created ALTS channel credential object."]
    pub fn grpc_alts_credentials_create(
        options: *const grpc_alts_credentials_options,
    ) -> *mut grpc_channel_credentials;
}
extern "C" {
    #[doc = " This method creates an ALTS server credential object. It is used for"]
    #[doc = " experimental purpose for now and subject to change."]
    #[doc = ""]
    #[doc = " - options: grpc ALTS credentials options instance for server."]
    #[doc = ""]
    #[doc = " It returns the created ALTS server credential object."]
    pub fn grpc_alts_server_credentials_create(
        options: *const grpc_alts_credentials_options,
    ) -> *mut grpc_server_credentials;
}
extern "C" {
    #[doc = " This method creates a local channel credential object. It is used for"]
    #[doc = " experimental purpose for now and subject to change."]
    #[doc = ""]
    #[doc = " - type: local connection type"]
    #[doc = ""]
    #[doc = " It returns the created local channel credential object."]
    pub fn grpc_local_credentials_create(
        type_: grpc_local_connect_type,
    ) -> *mut grpc_channel_credentials;
}
extern "C" {
    #[doc = " This method creates a local server credential object. It is used for"]
    #[doc = " experimental purpose for now and subject to change."]
    #[doc = ""]
    #[doc = " - type: local connection type"]
    #[doc = ""]
    #[doc = " It returns the created local server credential object."]
    pub fn grpc_local_server_credentials_create(
        type_: grpc_local_connect_type,
    ) -> *mut grpc_server_credentials;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_key_materials_config {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_credential_reload_config {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_server_authorization_check_config {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_credentials_options {
    _unused: [u8; 0],
}
extern "C" {
    #[doc = " Create an empty TLS credentials options. It is used for"]
    #[doc = "  experimental purpose for now and subject to change."]
    pub fn grpc_tls_credentials_options_create() -> *mut grpc_tls_credentials_options;
}
extern "C" {
    #[doc = " Set grpc_ssl_client_certificate_request_type field in credentials options"]
    #[doc = "with the provided type. options should not be NULL."]
    #[doc = "It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_credentials_options_set_cert_request_type(
        options: *mut grpc_tls_credentials_options,
        type_: grpc_ssl_client_certificate_request_type,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Set grpc_tls_key_materials_config field in credentials options"]
    #[doc = "with the provided config struct whose ownership is transferred."]
    #[doc = "Both parameters should not be NULL."]
    #[doc = "It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_credentials_options_set_key_materials_config(
        options: *mut grpc_tls_credentials_options,
        config: *mut grpc_tls_key_materials_config,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Set grpc_tls_credential_reload_config field in credentials options"]
    #[doc = "with the provided config struct whose ownership is transferred."]
    #[doc = "Both parameters should not be NULL."]
    #[doc = "It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_credentials_options_set_credential_reload_config(
        options: *mut grpc_tls_credentials_options,
        config: *mut grpc_tls_credential_reload_config,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Set grpc_tls_server_authorization_check_config field in credentials options"]
    #[doc = "with the provided config struct whose ownership is transferred."]
    #[doc = "Both parameters should not be NULL."]
    #[doc = "It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_credentials_options_set_server_authorization_check_config(
        options: *mut grpc_tls_credentials_options,
        config: *mut grpc_tls_server_authorization_check_config,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Create an empty grpc_tls_key_materials_config instance."]
    #[doc = "  It is used for experimental purpose for now and subject to change."]
    pub fn grpc_tls_key_materials_config_create() -> *mut grpc_tls_key_materials_config;
}
extern "C" {
    #[doc = " Set grpc_tls_key_materials_config instance with provided a TLS certificate."]
    #[doc = "config will take the ownership of pem_root_certs and pem_key_cert_pairs."]
    #[doc = "It's valid for the caller to provide nullptr pem_root_certs, in which case"]
    #[doc = "the gRPC-provided root cert will be used. pem_key_cert_pairs should not be"]
    #[doc = "NULL. It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_key_materials_config_set_key_materials(
        config: *mut grpc_tls_key_materials_config,
        pem_root_certs: *const ::std::os::raw::c_char,
        pem_key_cert_pairs: *mut *const grpc_ssl_pem_key_cert_pair,
        num_key_cert_pairs: usize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Set grpc_tls_key_materials_config instance with a provided version number,"]
    #[doc = "which is used to keep track of the version of key materials."]
    #[doc = "It returns 1 on success and 0 on failure. It is used for"]
    #[doc = "experimental purpose for now and subject to change."]
    pub fn grpc_tls_key_materials_config_set_version(
        config: *mut grpc_tls_key_materials_config,
        version: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    #[doc = " Get the version number of a grpc_tls_key_materials_config instance."]
    #[doc = "It returns the version number on success and -1 on failure."]
    #[doc = "It is used for experimental purpose for now and subject to change."]
    pub fn grpc_tls_key_materials_config_get_version(
        config: *mut grpc_tls_key_materials_config,
    ) -> ::std::os::raw::c_int;
}
#[doc = " A callback function provided by gRPC to handle the result of credential"]
#[doc = "reload. It is used when schedule API is implemented asynchronously and"]
#[doc = "serves to bring the control back to grpc C core. It is used for"]
#[doc = "experimental purpose for now and subject to change."]
pub type grpc_tls_on_credential_reload_done_cb =
    ::std::option::Option<unsafe extern "C" fn(arg: *mut grpc_tls_credential_reload_arg)>;
#[doc = " A struct containing all information necessary to schedule/cancel a"]
#[doc = "credential reload request."]
#[doc = "- cb and cb_user_data represent a gRPC-provided"]
#[doc = "callback and an argument passed to it."]
#[doc = "- key_materials_config is an in/output parameter containing currently"]
#[doc = "used/newly reloaded credentials. If credential reload does not result"]
#[doc = "in a new credential, key_materials_config should not be modified."]
#[doc = "- status and error_details are used to hold information about"]
#[doc = "errors occurred when a credential reload request is scheduled/cancelled."]
#[doc = "- config is a pointer to the unique grpc_tls_credential_reload_config"]
#[doc = "instance that this argument corresponds to."]
#[doc = "- context is a pointer to a wrapped language implementation of this"]
#[doc = "grpc_tls_credential_reload_arg instance."]
#[doc = "- destroy_context is a pointer to a caller-provided method that cleans"]
#[doc = "up any data associated with the context pointer."]
#[doc = "It is used for experimental purposes for now and subject to change."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_credential_reload_arg {
    pub cb: grpc_tls_on_credential_reload_done_cb,
    pub cb_user_data: *mut ::std::os::raw::c_void,
    pub key_materials_config: *mut grpc_tls_key_materials_config,
    pub status: grpc_ssl_certificate_config_reload_status,
    pub error_details: *const ::std::os::raw::c_char,
    pub config: *mut grpc_tls_credential_reload_config,
    pub context: *mut ::std::os::raw::c_void,
    pub destroy_context:
        ::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>,
}
#[test]
fn bindgen_test_layout_grpc_tls_credential_reload_arg() {
    assert_eq!(
        ::std::mem::size_of::<grpc_tls_credential_reload_arg>(),
        64usize,
        concat!("Size of: ", stringify!(grpc_tls_credential_reload_arg))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_tls_credential_reload_arg>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_tls_credential_reload_arg))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).cb as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).cb_user_data as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(cb_user_data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).key_materials_config
                as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(key_materials_config)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).status as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).error_details as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(error_details)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).config as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(config)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).context as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_credential_reload_arg>())).destroy_context as *const _
                as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_credential_reload_arg),
            "::",
            stringify!(destroy_context)
        )
    );
}
extern "C" {
    #[doc = " Create a grpc_tls_credential_reload_config instance."]
    #[doc = "- config_user_data is config-specific, read-only user data"]
    #[doc = "that works for all channels created with a credential using the config."]
    #[doc = "- schedule is a pointer to an application-provided callback used to invoke"]
    #[doc = "credential reload API. The implementation of this method has to be"]
    #[doc = "non-blocking, but can be performed synchronously or asynchronously."]
    #[doc = "1) If processing occurs synchronously, it populates arg->key_materials,"]
    #[doc = "arg->status, and arg->error_details and returns zero."]
    #[doc = "2) If processing occurs asynchronously, it returns a non-zero value."]
    #[doc = "The application then invokes arg->cb when processing is completed. Note"]
    #[doc = "that arg->cb cannot be invoked before schedule API returns."]
    #[doc = "- cancel is a pointer to an application-provided callback used to cancel"]
    #[doc = "a credential reload request scheduled via an asynchronous schedule API."]
    #[doc = "arg is used to pinpoint an exact reloading request to be cancelled."]
    #[doc = "The operation may not have any effect if the request has already been"]
    #[doc = "processed."]
    #[doc = "- destruct is a pointer to an application-provided callback used to clean up"]
    #[doc = "any data associated with the config."]
    #[doc = "It is used for experimental purpose for now and subject to change."]
    pub fn grpc_tls_credential_reload_config_create(
        config_user_data: *const ::std::os::raw::c_void,
        schedule: ::std::option::Option<
            unsafe extern "C" fn(
                config_user_data: *mut ::std::os::raw::c_void,
                arg: *mut grpc_tls_credential_reload_arg,
            ) -> ::std::os::raw::c_int,
        >,
        cancel: ::std::option::Option<
            unsafe extern "C" fn(
                config_user_data: *mut ::std::os::raw::c_void,
                arg: *mut grpc_tls_credential_reload_arg,
            ),
        >,
        destruct: ::std::option::Option<
            unsafe extern "C" fn(config_user_data: *mut ::std::os::raw::c_void),
        >,
    ) -> *mut grpc_tls_credential_reload_config;
}
#[doc = " callback function provided by gRPC used to handle the result of server"]
#[doc = "authorization check. It is used when schedule API is implemented"]
#[doc = "asynchronously, and serves to bring the control back to gRPC C core. It is"]
#[doc = "used for experimental purpose for now and subject to change."]
pub type grpc_tls_on_server_authorization_check_done_cb =
    ::std::option::Option<unsafe extern "C" fn(arg: *mut grpc_tls_server_authorization_check_arg)>;
#[doc = " A struct containing all information necessary to schedule/cancel a server"]
#[doc = "authorization check request."]
#[doc = "- cb and cb_user_data represent a gRPC-provided callback and an argument"]
#[doc = "passed to it."]
#[doc = "- success will store the result of server authorization check. That is,"]
#[doc = "if success returns a non-zero value, it means the authorization check"]
#[doc = "passes and if returning zero, it means the check fails."]
#[doc = "- target_name is the name of an endpoint the channel is connecting to."]
#[doc = "- peer_cert represents a complete certificate chain including both"]
#[doc = "signing and leaf certificates."]
#[doc = "- status and error_details contain information"]
#[doc = "about errors occurred when a server authorization check request is"]
#[doc = "scheduled/cancelled."]
#[doc = "- config is a pointer to the unique"]
#[doc = "grpc_tls_server_authorization_check_config instance that this argument"]
#[doc = "corresponds to."]
#[doc = "- context is a pointer to a wrapped language implementation of this"]
#[doc = "grpc_tls_server_authorization_check_arg instance."]
#[doc = "- destroy_context is a pointer to a caller-provided method that cleans"]
#[doc = "up any data associated with the context pointer."]
#[doc = "It is used for experimental purpose for now and subject to change."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpc_tls_server_authorization_check_arg {
    pub cb: grpc_tls_on_server_authorization_check_done_cb,
    pub cb_user_data: *mut ::std::os::raw::c_void,
    pub success: ::std::os::raw::c_int,
    pub target_name: *const ::std::os::raw::c_char,
    pub peer_cert: *const ::std::os::raw::c_char,
    pub status: grpc_status_code::Type,
    pub error_details: *const ::std::os::raw::c_char,
    pub config: *mut grpc_tls_server_authorization_check_config,
    pub context: *mut ::std::os::raw::c_void,
    pub destroy_context:
        ::std::option::Option<unsafe extern "C" fn(ctx: *mut ::std::os::raw::c_void)>,
}
#[test]
fn bindgen_test_layout_grpc_tls_server_authorization_check_arg() {
    assert_eq!(
        ::std::mem::size_of::<grpc_tls_server_authorization_check_arg>(),
        80usize,
        concat!(
            "Size of: ",
            stringify!(grpc_tls_server_authorization_check_arg)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_tls_server_authorization_check_arg>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_tls_server_authorization_check_arg)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).cb as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(cb)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).cb_user_data
                as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(cb_user_data)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).success as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(success)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).target_name
                as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(target_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).peer_cert
                as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(peer_cert)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).status as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).error_details
                as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(error_details)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).config as *const _
                as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(config)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).context as *const _
                as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(context)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_tls_server_authorization_check_arg>())).destroy_context
                as *const _ as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_tls_server_authorization_check_arg),
            "::",
            stringify!(destroy_context)
        )
    );
}
extern "C" {
    #[doc = " Create a grpc_tls_server_authorization_check_config instance."]
    #[doc = "- config_user_data is config-specific, read-only user data"]
    #[doc = "that works for all channels created with a credential using the config."]
    #[doc = "- schedule is a pointer to an application-provided callback used to invoke"]
    #[doc = "server authorization check API. The implementation of this method has to"]
    #[doc = "be non-blocking, but can be performed synchronously or asynchronously."]
    #[doc = "1)If processing occurs synchronously, it populates arg->result,"]
    #[doc = "arg->status, and arg->error_details and returns zero."]
    #[doc = "2) If processing occurs asynchronously, it returns a non-zero value. The"]
    #[doc = "application then invokes arg->cb when processing is completed. Note that"]
    #[doc = "arg->cb cannot be invoked before schedule API returns."]
    #[doc = "- cancel is a pointer to an application-provided callback used to cancel a"]
    #[doc = "server authorization check request scheduled via an asynchronous schedule"]
    #[doc = "API. arg is used to pinpoint an exact check request to be cancelled. The"]
    #[doc = "operation may not have any effect if the request has already been"]
    #[doc = "processed."]
    #[doc = "- destruct is a pointer to an application-provided callback used to clean up"]
    #[doc = "any data associated with the config."]
    #[doc = "It is used for experimental purpose for now and subject to change."]
    pub fn grpc_tls_server_authorization_check_config_create(
        config_user_data: *const ::std::os::raw::c_void,
        schedule: ::std::option::Option<
            unsafe extern "C" fn(
                config_user_data: *mut ::std::os::raw::c_void,
                arg: *mut grpc_tls_server_authorization_check_arg,
            ) -> ::std::os::raw::c_int,
        >,
        cancel: ::std::option::Option<
            unsafe extern "C" fn(
                config_user_data: *mut ::std::os::raw::c_void,
                arg: *mut grpc_tls_server_authorization_check_arg,
            ),
        >,
        destruct: ::std::option::Option<
            unsafe extern "C" fn(config_user_data: *mut ::std::os::raw::c_void),
        >,
    ) -> *mut grpc_tls_server_authorization_check_config;
}
extern "C" {
    #[doc = " This method creates a TLS SPIFFE channel credential object."]
    #[doc = " It takes ownership of the options parameter."]
    #[doc = ""]
    #[doc = " - options: grpc TLS credentials options instance."]
    #[doc = ""]
    #[doc = " It returns the created credential object."]
    #[doc = ""]
    #[doc = " It is used for experimental purpose for now and subject"]
    #[doc = " to change."]
    pub fn grpc_tls_spiffe_credentials_create(
        options: *mut grpc_tls_credentials_options,
    ) -> *mut grpc_channel_credentials;
}
extern "C" {
    #[doc = " This method creates a TLS server credential object."]
    #[doc = " It takes ownership of the options parameter."]
    #[doc = ""]
    #[doc = " - options: grpc TLS credentials options instance."]
    #[doc = ""]
    #[doc = " It returns the created credential object."]
    #[doc = ""]
    #[doc = " It is used for experimental purpose for now and subject"]
    #[doc = " to change."]
    pub fn grpc_tls_spiffe_server_credentials_create(
        options: *mut grpc_tls_credentials_options,
    ) -> *mut grpc_server_credentials;
}
#[repr(u32)]
#[doc = " The severity of a log message - use the #defines below when calling into"]
#[doc = "gpr_log to additionally supply file and line data"]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum gpr_log_severity {
    GPR_LOG_SEVERITY_DEBUG = 0,
    GPR_LOG_SEVERITY_INFO = 1,
    GPR_LOG_SEVERITY_ERROR = 2,
}
extern "C" {
    #[doc = " Returns a string representation of the log severity"]
    pub fn gpr_log_severity_string(severity: gpr_log_severity) -> *const ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Log a message. It's advised to use GPR_xxx above to generate the context"]
    #[doc = " for each message"]
    pub fn gpr_log(
        file: *const ::std::os::raw::c_char,
        line: ::std::os::raw::c_int,
        severity: gpr_log_severity,
        format: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn gpr_should_log(severity: gpr_log_severity) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn gpr_log_message(
        file: *const ::std::os::raw::c_char,
        line: ::std::os::raw::c_int,
        severity: gpr_log_severity,
        message: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    #[doc = " Set global log verbosity"]
    pub fn gpr_set_log_verbosity(min_severity_to_print: gpr_log_severity);
}
extern "C" {
    pub fn gpr_log_verbosity_init();
}
#[doc = " Log overrides: applications can use this API to intercept logging calls"]
#[doc = "and use their own implementations"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gpr_log_func_args {
    pub file: *const ::std::os::raw::c_char,
    pub line: ::std::os::raw::c_int,
    pub severity: gpr_log_severity,
    pub message: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_gpr_log_func_args() {
    assert_eq!(
        ::std::mem::size_of::<gpr_log_func_args>(),
        24usize,
        concat!("Size of: ", stringify!(gpr_log_func_args))
    );
    assert_eq!(
        ::std::mem::align_of::<gpr_log_func_args>(),
        8usize,
        concat!("Alignment of ", stringify!(gpr_log_func_args))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_log_func_args>())).file as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_log_func_args),
            "::",
            stringify!(file)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_log_func_args>())).line as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_log_func_args),
            "::",
            stringify!(line)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_log_func_args>())).severity as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_log_func_args),
            "::",
            stringify!(severity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<gpr_log_func_args>())).message as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(gpr_log_func_args),
            "::",
            stringify!(message)
        )
    );
}
pub type gpr_log_func = ::std::option::Option<unsafe extern "C" fn(args: *mut gpr_log_func_args)>;
extern "C" {
    pub fn gpr_set_log_function(func: gpr_log_func);
}
extern "C" {
    #[doc = " malloc."]
    #[doc = " If size==0, always returns NULL. Otherwise this function never returns NULL."]
    #[doc = " The pointer returned is suitably aligned for any kind of variable it could"]
    #[doc = " contain."]
    pub fn gpr_malloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " like malloc, but zero all bytes before returning them"]
    pub fn gpr_zalloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " free"]
    pub fn gpr_free(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " realloc, never returns NULL"]
    pub fn gpr_realloc(p: *mut ::std::os::raw::c_void, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " aligned malloc, never returns NULL, will align to alignment, which"]
    #[doc = " must be a power of 2."]
    pub fn gpr_malloc_aligned(size: usize, alignment: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    #[doc = " free memory allocated by gpr_malloc_aligned"]
    pub fn gpr_free_aligned(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    #[doc = " Return the number of CPU cores on the current system. Will return 0 if"]
    #[doc = "the information is not available."]
    pub fn gpr_cpu_num_cores() -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Return the CPU on which the current thread is executing; N.B. This should"]
    #[doc = "be considered advisory only - it is possible that the thread is switched"]
    #[doc = "to a different CPU at any time. Returns a value in range"]
    #[doc = "[0, gpr_cpu_num_cores() - 1]"]
    pub fn gpr_cpu_current_cpu() -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " Returns a string allocated with gpr_malloc that contains a UTF-8"]
    #[doc = " formatted error message, corresponding to the error messageid."]
    #[doc = " Use in conjunction with GetLastError() et al."]
    pub fn gpr_format_message(messageid: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " Returns a copy of src that can be passed to gpr_free()."]
    #[doc = "If allocation fails or if src is NULL, returns NULL."]
    pub fn gpr_strdup(src: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    #[doc = " printf to a newly-allocated string.  The set of supported formats may vary"]
    #[doc = "between platforms."]
    #[doc = ""]
    #[doc = "On success, returns the number of bytes printed (excluding the final '\\0'),"]
    #[doc = "and *strp points to a string which must later be destroyed with gpr_free()."]
    #[doc = ""]
    #[doc = "On error, returns -1 and sets *strp to NULL. If the format string is bad,"]
    #[doc = "the result is undefined."]
    pub fn gpr_asprintf(
        strp: *mut *mut ::std::os::raw::c_char,
        format: *const ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
pub type gpr_thd_id = usize;
extern "C" {
    #[doc = " Returns the identifier of the current thread."]
    pub fn gpr_thd_currentid() -> gpr_thd_id;
}
#[doc = " Reader for byte buffers. Iterates over slices in the byte buffer"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpc_byte_buffer_reader {
    pub buffer_in: *mut grpc_byte_buffer,
    pub buffer_out: *mut grpc_byte_buffer,
    pub current: grpc_byte_buffer_reader_grpc_byte_buffer_reader_current,
}
#[doc = " Different current objects correspond to different types of byte buffers"]
#[repr(C)]
#[derive(Copy, Clone)]
pub union grpc_byte_buffer_reader_grpc_byte_buffer_reader_current {
    #[doc = " Index into a slice buffer's array of slices"]
    pub index: ::std::os::raw::c_uint,
    _bindgen_union_align: u32,
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer_reader_grpc_byte_buffer_reader_current() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer_reader_grpc_byte_buffer_reader_current>(),
        4usize,
        concat!(
            "Size of: ",
            stringify!(grpc_byte_buffer_reader_grpc_byte_buffer_reader_current)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer_reader_grpc_byte_buffer_reader_current>(),
        4usize,
        concat!(
            "Alignment of ",
            stringify!(grpc_byte_buffer_reader_grpc_byte_buffer_reader_current)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_reader_grpc_byte_buffer_reader_current>()))
                .index as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_reader_grpc_byte_buffer_reader_current),
            "::",
            stringify!(index)
        )
    );
}
impl ::std::fmt::Debug for grpc_byte_buffer_reader_grpc_byte_buffer_reader_current {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_byte_buffer_reader_grpc_byte_buffer_reader_current {{ union }}"
        )
    }
}
#[test]
fn bindgen_test_layout_grpc_byte_buffer_reader() {
    assert_eq!(
        ::std::mem::size_of::<grpc_byte_buffer_reader>(),
        24usize,
        concat!("Size of: ", stringify!(grpc_byte_buffer_reader))
    );
    assert_eq!(
        ::std::mem::align_of::<grpc_byte_buffer_reader>(),
        8usize,
        concat!("Alignment of ", stringify!(grpc_byte_buffer_reader))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_reader>())).buffer_in as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_reader),
            "::",
            stringify!(buffer_in)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpc_byte_buffer_reader>())).buffer_out as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_reader),
            "::",
            stringify!(buffer_out)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<grpc_byte_buffer_reader>())).current as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(grpc_byte_buffer_reader),
            "::",
            stringify!(current)
        )
    );
}
impl ::std::fmt::Debug for grpc_byte_buffer_reader {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write!(
            f,
            "grpc_byte_buffer_reader {{ buffer_in: {:?}, buffer_out: {:?}, current: {:?} }}",
            self.buffer_in, self.buffer_out, self.current
        )
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpcwrap_batch_context {
    pub send_initial_metadata: grpc_metadata_array,
    pub send_message: *mut grpc_byte_buffer,
    pub send_status_from_server: grpcwrap_batch_context__bindgen_ty_1,
    pub recv_initial_metadata: grpc_metadata_array,
    pub recv_message: *mut grpc_byte_buffer,
    pub recv_status_on_client: grpcwrap_batch_context__bindgen_ty_2,
    pub recv_close_on_server_cancelled: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct grpcwrap_batch_context__bindgen_ty_1 {
    pub trailing_metadata: grpc_metadata_array,
}
#[test]
fn bindgen_test_layout_grpcwrap_batch_context__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<grpcwrap_batch_context__bindgen_ty_1>(),
        24usize,
        concat!(
            "Size of: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_1)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpcwrap_batch_context__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpcwrap_batch_context__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context__bindgen_ty_1>())).trailing_metadata
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_1),
            "::",
            stringify!(trailing_metadata)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpcwrap_batch_context__bindgen_ty_2 {
    pub trailing_metadata: grpc_metadata_array,
    pub status: grpc_status_code::Type,
    pub status_details: grpc_slice,
}
#[test]
fn bindgen_test_layout_grpcwrap_batch_context__bindgen_ty_2() {
    assert_eq!(
        ::std::mem::size_of::<grpcwrap_batch_context__bindgen_ty_2>(),
        64usize,
        concat!(
            "Size of: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_2)
        )
    );
    assert_eq!(
        ::std::mem::align_of::<grpcwrap_batch_context__bindgen_ty_2>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(grpcwrap_batch_context__bindgen_ty_2)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context__bindgen_ty_2>())).trailing_metadata
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_2),
            "::",
            stringify!(trailing_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context__bindgen_ty_2>())).status as *const _
                as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_2),
            "::",
            stringify!(status)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context__bindgen_ty_2>())).status_details
                as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context__bindgen_ty_2),
            "::",
            stringify!(status_details)
        )
    );
}
impl ::std::fmt::Debug for grpcwrap_batch_context__bindgen_ty_2 {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpcwrap_batch_context__bindgen_ty_2 {{ trailing_metadata: {:?}, status: {:?}, status_details: {:?} }}" , self . trailing_metadata , self . status , self . status_details )
    }
}
#[test]
fn bindgen_test_layout_grpcwrap_batch_context() {
    assert_eq!(
        ::std::mem::size_of::<grpcwrap_batch_context>(),
        160usize,
        concat!("Size of: ", stringify!(grpcwrap_batch_context))
    );
    assert_eq!(
        ::std::mem::align_of::<grpcwrap_batch_context>(),
        8usize,
        concat!("Alignment of ", stringify!(grpcwrap_batch_context))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).send_initial_metadata as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(send_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).send_message as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(send_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).send_status_from_server as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(send_status_from_server)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).recv_initial_metadata as *const _
                as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(recv_initial_metadata)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).recv_message as *const _ as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(recv_message)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).recv_status_on_client as *const _
                as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(recv_status_on_client)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_batch_context>())).recv_close_on_server_cancelled
                as *const _ as usize
        },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_batch_context),
            "::",
            stringify!(recv_close_on_server_cancelled)
        )
    );
}
impl ::std::fmt::Debug for grpcwrap_batch_context {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpcwrap_batch_context {{ send_initial_metadata: {:?}, send_message: {:?}, send_status_from_server: {:?}, recv_initial_metadata: {:?}, recv_message: {:?}, recv_status_on_client: {:?}, recv_close_on_server_cancelled: {:?} }}" , self . send_initial_metadata , self . send_message , self . send_status_from_server , self . recv_initial_metadata , self . recv_message , self . recv_status_on_client , self . recv_close_on_server_cancelled )
    }
}
extern "C" {
    pub fn grpcwrap_batch_context_create() -> *mut grpcwrap_batch_context;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct grpcwrap_request_call_context {
    pub call: *mut grpc_call,
    pub call_details: grpc_call_details,
    pub request_metadata: grpc_metadata_array,
}
#[test]
fn bindgen_test_layout_grpcwrap_request_call_context() {
    assert_eq!(
        ::std::mem::size_of::<grpcwrap_request_call_context>(),
        128usize,
        concat!("Size of: ", stringify!(grpcwrap_request_call_context))
    );
    assert_eq!(
        ::std::mem::align_of::<grpcwrap_request_call_context>(),
        8usize,
        concat!("Alignment of ", stringify!(grpcwrap_request_call_context))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_request_call_context>())).call as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_request_call_context),
            "::",
            stringify!(call)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_request_call_context>())).call_details as *const _
                as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_request_call_context),
            "::",
            stringify!(call_details)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<grpcwrap_request_call_context>())).request_metadata as *const _
                as usize
        },
        104usize,
        concat!(
            "Offset of field: ",
            stringify!(grpcwrap_request_call_context),
            "::",
            stringify!(request_metadata)
        )
    );
}
impl ::std::fmt::Debug for grpcwrap_request_call_context {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        write ! ( f , "grpcwrap_request_call_context {{ call: {:?}, call_details: {:?}, request_metadata: {:?} }}" , self . call , self . call_details , self . request_metadata )
    }
}
extern "C" {
    pub fn grpcwrap_request_call_context_create() -> *mut grpcwrap_request_call_context;
}
extern "C" {
    #[link_name = "\u{1}_Z45grpcwrap_metadata_array_destroy_metadata_onlyP19grpc_metadata_array"]
    pub fn grpcwrap_metadata_array_destroy_metadata_only(array: *mut grpc_metadata_array);
}
extern "C" {
    #[link_name = "\u{1}_Z58grpcwrap_metadata_array_destroy_metadata_including_entriesP19grpc_metadata_array"]
    pub fn grpcwrap_metadata_array_destroy_metadata_including_entries(
        array: *mut grpc_metadata_array,
    );
}
extern "C" {
    pub fn grpcwrap_metadata_array_destroy_full(array: *mut grpc_metadata_array);
}
extern "C" {
    pub fn grpcwrap_metadata_array_init(array: *mut grpc_metadata_array, capacity: usize);
}
extern "C" {
    pub fn grpcwrap_metadata_array_add(
        array: *mut grpc_metadata_array,
        key: *const ::std::os::raw::c_char,
        key_length: usize,
        value: *const ::std::os::raw::c_char,
        value_length: usize,
    );
}
extern "C" {
    pub fn grpcwrap_metadata_array_get_key(
        array: *const grpc_metadata_array,
        index: usize,
        key_length: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_metadata_array_get_value(
        array: *const grpc_metadata_array,
        index: usize,
        value_length: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_metadata_array_cleanup(array: *mut grpc_metadata_array);
}
extern "C" {
    pub fn grpcwrap_metadata_array_shrink_to_fit(array: *mut grpc_metadata_array);
}
extern "C" {
    #[link_name = "\u{1}_Z28grpcwrap_metadata_array_moveP19grpc_metadata_arrayS0_"]
    pub fn grpcwrap_metadata_array_move(
        dest: *mut grpc_metadata_array,
        src: *mut grpc_metadata_array,
    );
}
extern "C" {
    pub fn grpcwrap_batch_context_destroy(ctx: *mut grpcwrap_batch_context);
}
extern "C" {
    pub fn grpcwrap_request_call_context_destroy(ctx: *mut grpcwrap_request_call_context);
}
extern "C" {
    pub fn grpcwrap_batch_context_recv_initial_metadata(
        ctx: *const grpcwrap_batch_context,
    ) -> *const grpc_metadata_array;
}
extern "C" {
    pub fn grpcwrap_slice_raw_offset(
        slice: *const grpc_slice,
        offset: usize,
        len: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_slice_copy(slice: *const grpc_slice) -> grpc_slice;
}
extern "C" {
    pub fn grpcwrap_slice_unref(slice: *const grpc_slice);
}
extern "C" {
    pub fn grpcwrap_slice_ref(slice: *const grpc_slice) -> grpc_slice;
}
extern "C" {
    pub fn grpcwrap_slice_length(slice: *const grpc_slice) -> usize;
}
extern "C" {
    pub fn grpcwrap_batch_context_take_recv_message(
        ctx: *mut grpcwrap_batch_context,
    ) -> *mut grpc_byte_buffer;
}
extern "C" {
    pub fn grpcwrap_batch_context_recv_status_on_client_status(
        ctx: *const grpcwrap_batch_context,
    ) -> grpc_status_code::Type;
}
extern "C" {
    pub fn grpcwrap_batch_context_recv_status_on_client_details(
        ctx: *const grpcwrap_batch_context,
        details_length: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_batch_context_recv_status_on_client_trailing_metadata(
        ctx: *const grpcwrap_batch_context,
    ) -> *const grpc_metadata_array;
}
extern "C" {
    pub fn grpcwrap_request_call_context_ref_call(
        ctx: *mut grpcwrap_request_call_context,
    ) -> *mut grpc_call;
}
extern "C" {
    pub fn grpcwrap_request_call_context_get_call(
        ctx: *mut grpcwrap_request_call_context,
    ) -> *mut grpc_call;
}
extern "C" {
    pub fn grpcwrap_request_call_context_method(
        ctx: *const grpcwrap_request_call_context,
        method_length: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_request_call_context_host(
        ctx: *const grpcwrap_request_call_context,
        host_length: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn grpcwrap_request_call_context_deadline(
        ctx: *const grpcwrap_request_call_context,
    ) -> gpr_timespec;
}
extern "C" {
    pub fn grpcwrap_request_call_context_metadata_array(
        ctx: *const grpcwrap_request_call_context,
    ) -> *const grpc_metadata_array;
}
extern "C" {
    pub fn grpcwrap_batch_context_recv_close_on_server_cancelled(
        ctx: *const grpcwrap_batch_context,
    ) -> i32;
}
extern "C" {
    pub fn grpcwrap_channel_create_call(
        channel: *mut grpc_channel,
        parent_call: *mut grpc_call,
        propagation_mask: u32,
        cq: *mut grpc_completion_queue,
        method: *const ::std::os::raw::c_char,
        method_len: usize,
        host: *const ::std::os::raw::c_char,
        host_len: usize,
        deadline: gpr_timespec,
    ) -> *mut grpc_call;
}
extern "C" {
    pub fn grpcwrap_channel_args_create(num_args: usize) -> *mut grpc_channel_args;
}
extern "C" {
    pub fn grpcwrap_channel_args_set_string(
        args: *mut grpc_channel_args,
        index: usize,
        key: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn grpcwrap_channel_args_set_integer(
        args: *mut grpc_channel_args,
        index: usize,
        key: *const ::std::os::raw::c_char,
        value: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn grpcwrap_channel_args_set_pointer_vtable(
        args: *mut grpc_channel_args,
        index: usize,
        key: *const ::std::os::raw::c_char,
        value: *mut ::std::os::raw::c_void,
        vtable: *const grpc_arg_pointer_vtable,
    );
}
extern "C" {
    pub fn grpcwrap_channel_args_destroy(args: *mut grpc_channel_args);
}
extern "C" {
    pub fn grpcwrap_call_start_unary(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        send_buffer: *const ::std::os::raw::c_char,
        send_buffer_len: usize,
        write_flags: u32,
        initial_metadata: *mut grpc_metadata_array,
        initial_metadata_flags: u32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_start_client_streaming(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        initial_metadata: *mut grpc_metadata_array,
        initial_metadata_flags: u32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_start_server_streaming(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        send_buffer: *const ::std::os::raw::c_char,
        send_buffer_len: usize,
        write_flags: u32,
        initial_metadata: *mut grpc_metadata_array,
        initial_metadata_flags: u32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_start_duplex_streaming(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        initial_metadata: *mut grpc_metadata_array,
        initial_metadata_flags: u32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_recv_initial_metadata(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_send_message(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        send_buffer: *const ::std::os::raw::c_char,
        send_buffer_len: usize,
        write_flags: u32,
        send_empty_initial_metadata: i32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_send_close_from_client(
        call: *mut grpc_call,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_send_status_from_server(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        status_code: grpc_status_code::Type,
        status_details: *const ::std::os::raw::c_char,
        status_details_len: usize,
        trailing_metadata: *mut grpc_metadata_array,
        send_empty_initial_metadata: i32,
        optional_send_buffer: *const ::std::os::raw::c_char,
        optional_send_buffer_len: usize,
        write_flags: u32,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_recv_message(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_start_serverside(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_call_send_initial_metadata(
        call: *mut grpc_call,
        ctx: *mut grpcwrap_batch_context,
        initial_metadata: *mut grpc_metadata_array,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    #[doc = " Kick call's completion queue, it should be called after there is an event"]
    #[doc = "ready to poll."]
    #[doc = "THREAD SAFETY: grpcwrap_call_kick_completion_queue is thread-safe"]
    #[doc = "because it does not change the call's state."]
    pub fn grpcwrap_call_kick_completion_queue(
        call: *mut grpc_call,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}
extern "C" {
    pub fn grpcwrap_server_request_call(
        server: *mut grpc_server,
        cq: *mut grpc_completion_queue,
        ctx: *mut grpcwrap_request_call_context,
        tag: *mut ::std::os::raw::c_void,
    ) -> grpc_call_error;
}