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
// This file is @generated by prost-build.
/// Represents the metadata of the long-running operation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationMetadata {
    /// Output only. The time the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The time the operation finished running.
    #[prost(message, optional, tag = "2")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Server-defined resource path for the target of the operation.
    #[prost(string, tag = "3")]
    pub target: ::prost::alloc::string::String,
    /// Output only. Name of the verb executed by the operation.
    #[prost(string, tag = "4")]
    pub verb: ::prost::alloc::string::String,
    /// Output only. Human-readable status of the operation, if any.
    #[prost(string, tag = "5")]
    pub status_message: ::prost::alloc::string::String,
    /// Output only. Identifies whether the user has requested cancellation
    /// of the operation. Operations that have successfully been cancelled
    /// have [Operation.error][] value with a
    /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
    /// `Code.CANCELLED`.
    #[prost(bool, tag = "6")]
    pub requested_cancellation: bool,
    /// Output only. API version used to start the operation.
    #[prost(string, tag = "7")]
    pub api_version: ::prost::alloc::string::String,
}
/// ConfigVariableTemplate provides metadata about a `ConfigVariable` that is
/// used in a Connection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigVariableTemplate {
    /// Key of the config variable.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Type of the parameter: string, int, bool etc.
    /// consider custom type for the benefit for the validation.
    #[prost(enumeration = "config_variable_template::ValueType", tag = "2")]
    pub value_type: i32,
    /// Display name of the parameter.
    #[prost(string, tag = "3")]
    pub display_name: ::prost::alloc::string::String,
    /// Description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// Regular expression in RE2 syntax used for validating the `value` of a
    /// `ConfigVariable`.
    #[prost(string, tag = "5")]
    pub validation_regex: ::prost::alloc::string::String,
    /// Flag represents that this `ConfigVariable` must be provided for a
    /// connection.
    #[prost(bool, tag = "6")]
    pub required: bool,
    /// Role grant configuration for the config variable.
    #[prost(message, optional, tag = "7")]
    pub role_grant: ::core::option::Option<RoleGrant>,
    /// Enum options. To be populated if `ValueType` is `ENUM`
    #[prost(message, repeated, tag = "8")]
    pub enum_options: ::prost::alloc::vec::Vec<EnumOption>,
    /// Authorization code link options. To be populated if `ValueType` is
    /// `AUTHORIZATION_CODE`
    #[prost(message, optional, tag = "9")]
    pub authorization_code_link: ::core::option::Option<AuthorizationCodeLink>,
    /// State of the config variable.
    #[prost(enumeration = "config_variable_template::State", tag = "10")]
    pub state: i32,
    /// Indicates if current template is part of advanced settings
    #[prost(bool, tag = "11")]
    pub is_advanced: bool,
}
/// Nested message and enum types in `ConfigVariableTemplate`.
pub mod config_variable_template {
    /// ValueType indicates the data type of the value.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ValueType {
        /// Value type is not specified.
        Unspecified = 0,
        /// Value type is string.
        String = 1,
        /// Value type is integer.
        Int = 2,
        /// Value type is boolean.
        Bool = 3,
        /// Value type is secret.
        Secret = 4,
        /// Value type is enum.
        Enum = 5,
        /// Value type is authorization code.
        AuthorizationCode = 6,
    }
    impl ValueType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                ValueType::Unspecified => "VALUE_TYPE_UNSPECIFIED",
                ValueType::String => "STRING",
                ValueType::Int => "INT",
                ValueType::Bool => "BOOL",
                ValueType::Secret => "SECRET",
                ValueType::Enum => "ENUM",
                ValueType::AuthorizationCode => "AUTHORIZATION_CODE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "VALUE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "STRING" => Some(Self::String),
                "INT" => Some(Self::Int),
                "BOOL" => Some(Self::Bool),
                "SECRET" => Some(Self::Secret),
                "ENUM" => Some(Self::Enum),
                "AUTHORIZATION_CODE" => Some(Self::AuthorizationCode),
                _ => None,
            }
        }
    }
    /// Indicates the state of the config variable.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Status is unspecified.
        Unspecified = 0,
        /// Config variable is active
        Active = 1,
        /// Config variable is deprecated.
        Deprecated = 2,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::Active => "ACTIVE",
                State::Deprecated => "DEPRECATED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "ACTIVE" => Some(Self::Active),
                "DEPRECATED" => Some(Self::Deprecated),
                _ => None,
            }
        }
    }
}
/// Secret provides a reference to entries in Secret Manager.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Secret {
    /// The resource name of the secret version in the format,
    /// format as: `projects/*/secrets/*/versions/*`.
    #[prost(string, tag = "1")]
    pub secret_version: ::prost::alloc::string::String,
}
/// EnumOption definition
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnumOption {
    /// Id of the option.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Display name of the option.
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
}
/// ConfigVariable represents a configuration variable present in a Connection.
/// or AuthConfig.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigVariable {
    /// Key of the config variable.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Value type of the config variable.
    #[prost(oneof = "config_variable::Value", tags = "2, 3, 4, 5")]
    pub value: ::core::option::Option<config_variable::Value>,
}
/// Nested message and enum types in `ConfigVariable`.
pub mod config_variable {
    /// Value type of the config variable.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        /// Value is an integer
        #[prost(int64, tag = "2")]
        IntValue(i64),
        /// Value is a bool.
        #[prost(bool, tag = "3")]
        BoolValue(bool),
        /// Value is a string.
        #[prost(string, tag = "4")]
        StringValue(::prost::alloc::string::String),
        /// Value is a secret.
        #[prost(message, tag = "5")]
        SecretValue(super::Secret),
    }
}
/// This configuration defines all the Cloud IAM roles that needs to be granted
/// to a particular GCP resource for the selected prinicpal like service
/// account. These configurations will let UI display to customers what
/// IAM roles need to be granted by them. Or these configurations can be used
/// by the UI to render a 'grant' button to do the same on behalf of the user.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoleGrant {
    /// Prinicipal/Identity for whom the role need to assigned.
    #[prost(enumeration = "role_grant::Principal", tag = "1")]
    pub principal: i32,
    /// List of roles that need to be granted.
    #[prost(string, repeated, tag = "2")]
    pub roles: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Resource on which the roles needs to be granted for the principal.
    #[prost(message, optional, tag = "3")]
    pub resource: ::core::option::Option<role_grant::Resource>,
    /// Template that UI can use to provide helper text to customers.
    #[prost(string, tag = "4")]
    pub helper_text_template: ::prost::alloc::string::String,
}
/// Nested message and enum types in `RoleGrant`.
pub mod role_grant {
    /// Resource definition
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Resource {
        /// Different types of resource supported.
        #[prost(enumeration = "resource::Type", tag = "1")]
        pub r#type: i32,
        /// Template to uniquely represent a GCP resource in a format IAM expects
        /// This is a template that can have references to other values provided in
        /// the config variable template.
        #[prost(string, tag = "3")]
        pub path_template: ::prost::alloc::string::String,
    }
    /// Nested message and enum types in `Resource`.
    pub mod resource {
        /// Resource Type definition.
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum Type {
            /// Value type is not specified.
            Unspecified = 0,
            /// GCP Project Resource.
            GcpProject = 1,
            /// Any GCP Resource which is identified uniquely by IAM.
            GcpResource = 2,
            /// GCP Secret Resource.
            GcpSecretmanagerSecret = 3,
            /// GCP Secret Version Resource.
            GcpSecretmanagerSecretVersion = 4,
        }
        impl Type {
            /// String value of the enum field names used in the ProtoBuf definition.
            ///
            /// The values are not transformed in any way and thus are considered stable
            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
            pub fn as_str_name(&self) -> &'static str {
                match self {
                    Type::Unspecified => "TYPE_UNSPECIFIED",
                    Type::GcpProject => "GCP_PROJECT",
                    Type::GcpResource => "GCP_RESOURCE",
                    Type::GcpSecretmanagerSecret => "GCP_SECRETMANAGER_SECRET",
                    Type::GcpSecretmanagerSecretVersion => {
                        "GCP_SECRETMANAGER_SECRET_VERSION"
                    }
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "GCP_PROJECT" => Some(Self::GcpProject),
                    "GCP_RESOURCE" => Some(Self::GcpResource),
                    "GCP_SECRETMANAGER_SECRET" => Some(Self::GcpSecretmanagerSecret),
                    "GCP_SECRETMANAGER_SECRET_VERSION" => {
                        Some(Self::GcpSecretmanagerSecretVersion)
                    }
                    _ => None,
                }
            }
        }
    }
    /// Supported Principal values.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Principal {
        /// Value type is not specified.
        Unspecified = 0,
        /// Service Account used for Connector workload identity
        /// This is either the default service account if unspecified or Service
        /// Account provided by Customers through BYOSA.
        ConnectorSa = 1,
    }
    impl Principal {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Principal::Unspecified => "PRINCIPAL_UNSPECIFIED",
                Principal::ConnectorSa => "CONNECTOR_SA",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PRINCIPAL_UNSPECIFIED" => Some(Self::Unspecified),
                "CONNECTOR_SA" => Some(Self::ConnectorSa),
                _ => None,
            }
        }
    }
}
/// This configuration captures the details required to render an authorization
/// link for the OAuth Authorization Code Flow.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationCodeLink {
    /// The base URI the user must click to trigger the authorization code login
    /// flow.
    #[prost(string, tag = "1")]
    pub uri: ::prost::alloc::string::String,
    /// The scopes for which the user will authorize GCP Connectors on the
    /// connector data source.
    #[prost(string, repeated, tag = "2")]
    pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// The client ID assigned to the GCP Connectors OAuth app for the connector
    /// data source.
    #[prost(string, tag = "3")]
    pub client_id: ::prost::alloc::string::String,
    /// Whether to enable PKCE for the auth code flow.
    #[prost(bool, tag = "4")]
    pub enable_pkce: bool,
}
/// LaunchStage is a enum to indicate launch stage:
/// PREVIEW, GA, DEPRECATED, PRIVATE_PREVIEW.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum LaunchStage {
    /// LAUNCH_STAGE_UNSPECIFIED.
    Unspecified = 0,
    /// PREVIEW.
    Preview = 1,
    /// GA.
    Ga = 2,
    /// DEPRECATED.
    Deprecated = 3,
    /// PRIVATE_PREVIEW.
    PrivatePreview = 5,
}
impl LaunchStage {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            LaunchStage::Unspecified => "LAUNCH_STAGE_UNSPECIFIED",
            LaunchStage::Preview => "PREVIEW",
            LaunchStage::Ga => "GA",
            LaunchStage::Deprecated => "DEPRECATED",
            LaunchStage::PrivatePreview => "PRIVATE_PREVIEW",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "LAUNCH_STAGE_UNSPECIFIED" => Some(Self::Unspecified),
            "PREVIEW" => Some(Self::Preview),
            "GA" => Some(Self::Ga),
            "DEPRECATED" => Some(Self::Deprecated),
            "PRIVATE_PREVIEW" => Some(Self::PrivatePreview),
            _ => None,
        }
    }
}
/// Provider indicates the owner who provides the connectors.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Provider {
    /// Output only. Resource name of the Provider.
    /// Format: projects/{project}/locations/{location}/providers/{provider}
    /// Only global location is supported for Provider resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Created time.
    #[prost(message, optional, tag = "2")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Updated time.
    #[prost(message, optional, tag = "3")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Resource labels to represent user-provided metadata.
    /// Refer to cloud documentation on labels for more details.
    /// <https://cloud.google.com/compute/docs/labeling-resources>
    #[prost(btree_map = "string, string", tag = "4")]
    pub labels: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Output only. Link to documentation page.
    #[prost(string, tag = "6")]
    pub documentation_uri: ::prost::alloc::string::String,
    /// Output only. Link to external page.
    #[prost(string, tag = "7")]
    pub external_uri: ::prost::alloc::string::String,
    /// Output only. Description of the resource.
    #[prost(string, tag = "8")]
    pub description: ::prost::alloc::string::String,
    /// Output only. Cloud storage location of icons etc consumed by UI.
    #[prost(string, tag = "9")]
    pub web_assets_location: ::prost::alloc::string::String,
    /// Output only. Display name.
    #[prost(string, tag = "10")]
    pub display_name: ::prost::alloc::string::String,
    /// Output only. Flag to mark the version indicating the launch stage.
    #[prost(enumeration = "LaunchStage", tag = "11")]
    pub launch_stage: i32,
}
/// Request message for Connectors.GetProvider.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetProviderRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/providers/*`
    /// Only global location is supported for Provider resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Request message for Connectors.ListProviders.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListProvidersRequest {
    /// Required. Parent resource of the API, of the form:
    /// `projects/*/locations/*`
    /// Only global location is supported for Provider resource.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Response message for Connectors.ListProviders.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListProvidersResponse {
    /// A list of providers.
    #[prost(message, repeated, tag = "1")]
    pub providers: ::prost::alloc::vec::Vec<Provider>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Connectors indicates a specific connector type, e.x. Salesforce, SAP etc.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Connector {
    /// Output only. Resource name of the Connector.
    /// Format:
    /// projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}
    /// Only global location is supported for Connector resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Created time.
    #[prost(message, optional, tag = "2")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Updated time.
    #[prost(message, optional, tag = "3")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Resource labels to represent user-provided metadata.
    /// Refer to cloud documentation on labels for more details.
    /// <https://cloud.google.com/compute/docs/labeling-resources>
    #[prost(btree_map = "string, string", tag = "4")]
    pub labels: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Output only. Link to documentation page.
    #[prost(string, tag = "6")]
    pub documentation_uri: ::prost::alloc::string::String,
    /// Output only. Link to external page.
    #[prost(string, tag = "7")]
    pub external_uri: ::prost::alloc::string::String,
    /// Output only. Description of the resource.
    #[prost(string, tag = "8")]
    pub description: ::prost::alloc::string::String,
    /// Output only. Cloud storage location of icons etc consumed by UI.
    #[prost(string, tag = "9")]
    pub web_assets_location: ::prost::alloc::string::String,
    /// Output only. Display name.
    #[prost(string, tag = "10")]
    pub display_name: ::prost::alloc::string::String,
    /// Output only. Flag to mark the version indicating the launch stage.
    #[prost(enumeration = "LaunchStage", tag = "11")]
    pub launch_stage: i32,
}
/// Request message for Connectors.GetConnector.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectorRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/providers/*/connectors/*`
    /// Only global location is supported for Connector resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Request message for Connectors.ListConnectors.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectorsRequest {
    /// Required. Parent resource of the connectors, of the form:
    /// `projects/*/locations/*/providers/*`
    /// Only global location is supported for Connector resource.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Response message for Connectors.ListConnectors.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectorsResponse {
    /// A list of connectors.
    #[prost(message, repeated, tag = "1")]
    pub connectors: ::prost::alloc::vec::Vec<Connector>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Define the Connectors target endpoint.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DestinationConfig {
    /// The key is the destination identifier that is supported by the Connector.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// The destinations for the key.
    #[prost(message, repeated, tag = "2")]
    pub destinations: ::prost::alloc::vec::Vec<Destination>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Destination {
    /// The port is the target port number that is accepted by the destination.
    #[prost(int32, tag = "3")]
    pub port: i32,
    #[prost(oneof = "destination::Destination", tags = "1, 2")]
    pub destination: ::core::option::Option<destination::Destination>,
}
/// Nested message and enum types in `Destination`.
pub mod destination {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Destination {
        /// PSC service attachments.
        /// Format: projects/*/regions/*/serviceAttachments/*
        #[prost(string, tag = "1")]
        ServiceAttachment(::prost::alloc::string::String),
        /// For publicly routable host.
        #[prost(string, tag = "2")]
        Host(::prost::alloc::string::String),
    }
}
/// Request for \[GetGlobalSettingsRequest\].
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetGlobalSettingsRequest {
    /// Required. The resource name of the Settings.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Global Settings details.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Settings {
    /// Output only. Resource name of the Connection.
    /// Format: projects/{project}/locations/global/settings}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Optional. Flag indicates whether vpc-sc is enabled.
    #[prost(bool, tag = "2")]
    pub vpcsc: bool,
    /// Output only. Flag indicates if user is in PayG model
    #[prost(bool, tag = "3")]
    pub payg: bool,
}
/// AuthConfig defines details of a authentication type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthConfig {
    /// The type of authentication configured.
    #[prost(enumeration = "AuthType", tag = "1")]
    pub auth_type: i32,
    /// List containing additional auth configs.
    #[prost(message, repeated, tag = "5")]
    pub additional_variables: ::prost::alloc::vec::Vec<ConfigVariable>,
    /// Supported auth types.
    #[prost(oneof = "auth_config::Type", tags = "2, 3, 4, 6")]
    pub r#type: ::core::option::Option<auth_config::Type>,
}
/// Nested message and enum types in `AuthConfig`.
pub mod auth_config {
    /// Parameters to support Username and Password Authentication.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct UserPassword {
        /// Username.
        #[prost(string, tag = "1")]
        pub username: ::prost::alloc::string::String,
        /// Secret version reference containing the password.
        #[prost(message, optional, tag = "2")]
        pub password: ::core::option::Option<super::Secret>,
    }
    /// Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0
    /// Authorization Grant based authentication.
    /// See <https://tools.ietf.org/html/rfc7523> for more details.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Oauth2JwtBearer {
        /// Secret version reference containing a PKCS#8 PEM-encoded private
        /// key associated with the Client Certificate. This private key will be
        /// used to sign JWTs used for the jwt-bearer authorization grant.
        /// Specified in the form as: `projects/*/secrets/*/versions/*`.
        #[prost(message, optional, tag = "1")]
        pub client_key: ::core::option::Option<super::Secret>,
        /// JwtClaims providers fields to generate the token.
        #[prost(message, optional, tag = "2")]
        pub jwt_claims: ::core::option::Option<oauth2_jwt_bearer::JwtClaims>,
    }
    /// Nested message and enum types in `Oauth2JwtBearer`.
    pub mod oauth2_jwt_bearer {
        /// JWT claims used for the jwt-bearer authorization grant.
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct JwtClaims {
            /// Value for the "iss" claim.
            #[prost(string, tag = "1")]
            pub issuer: ::prost::alloc::string::String,
            /// Value for the "sub" claim.
            #[prost(string, tag = "2")]
            pub subject: ::prost::alloc::string::String,
            /// Value for the "aud" claim.
            #[prost(string, tag = "3")]
            pub audience: ::prost::alloc::string::String,
        }
    }
    /// Parameters to support Oauth 2.0 Client Credentials Grant Authentication.
    /// See <https://tools.ietf.org/html/rfc6749#section-1.3.4> for more details.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Oauth2ClientCredentials {
        /// The client identifier.
        #[prost(string, tag = "1")]
        pub client_id: ::prost::alloc::string::String,
        /// Secret version reference containing the client secret.
        #[prost(message, optional, tag = "2")]
        pub client_secret: ::core::option::Option<super::Secret>,
    }
    /// Parameters to support Ssh public key Authentication.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SshPublicKey {
        /// The user account used to authenticate.
        #[prost(string, tag = "1")]
        pub username: ::prost::alloc::string::String,
        /// SSH Client Cert. It should contain both public and private key.
        #[prost(message, optional, tag = "3")]
        pub ssh_client_cert: ::core::option::Option<super::Secret>,
        /// Format of SSH Client cert.
        #[prost(string, tag = "4")]
        pub cert_type: ::prost::alloc::string::String,
        /// Password (passphrase) for ssh client certificate if it has one.
        #[prost(message, optional, tag = "5")]
        pub ssh_client_cert_pass: ::core::option::Option<super::Secret>,
    }
    /// Supported auth types.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Type {
        /// UserPassword.
        #[prost(message, tag = "2")]
        UserPassword(UserPassword),
        /// Oauth2JwtBearer.
        #[prost(message, tag = "3")]
        Oauth2JwtBearer(Oauth2JwtBearer),
        /// Oauth2ClientCredentials.
        #[prost(message, tag = "4")]
        Oauth2ClientCredentials(Oauth2ClientCredentials),
        /// SSH Public Key.
        #[prost(message, tag = "6")]
        SshPublicKey(SshPublicKey),
    }
}
/// AuthConfigTemplate defines required field over an authentication type.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthConfigTemplate {
    /// The type of authentication configured.
    #[prost(enumeration = "AuthType", tag = "1")]
    pub auth_type: i32,
    /// Config variables to describe an `AuthConfig` for a `Connection`.
    #[prost(message, repeated, tag = "2")]
    pub config_variable_templates: ::prost::alloc::vec::Vec<ConfigVariableTemplate>,
    /// Display name for authentication template.
    #[prost(string, tag = "3")]
    pub display_name: ::prost::alloc::string::String,
    /// Connector specific description for an authentication template.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
}
/// AuthType defines different authentication types.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AuthType {
    /// Authentication type not specified.
    Unspecified = 0,
    /// Username and Password Authentication.
    UserPassword = 1,
    /// JSON Web Token (JWT) Profile for Oauth 2.0
    /// Authorization Grant based authentication
    Oauth2JwtBearer = 2,
    /// Oauth 2.0 Client Credentials Grant Authentication
    Oauth2ClientCredentials = 3,
    /// SSH Public Key Authentication
    SshPublicKey = 4,
    /// Oauth 2.0 Authorization Code Flow
    Oauth2AuthCodeFlow = 5,
}
impl AuthType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            AuthType::Unspecified => "AUTH_TYPE_UNSPECIFIED",
            AuthType::UserPassword => "USER_PASSWORD",
            AuthType::Oauth2JwtBearer => "OAUTH2_JWT_BEARER",
            AuthType::Oauth2ClientCredentials => "OAUTH2_CLIENT_CREDENTIALS",
            AuthType::SshPublicKey => "SSH_PUBLIC_KEY",
            AuthType::Oauth2AuthCodeFlow => "OAUTH2_AUTH_CODE_FLOW",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "AUTH_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "USER_PASSWORD" => Some(Self::UserPassword),
            "OAUTH2_JWT_BEARER" => Some(Self::Oauth2JwtBearer),
            "OAUTH2_CLIENT_CREDENTIALS" => Some(Self::Oauth2ClientCredentials),
            "SSH_PUBLIC_KEY" => Some(Self::SshPublicKey),
            "OAUTH2_AUTH_CODE_FLOW" => Some(Self::Oauth2AuthCodeFlow),
            _ => None,
        }
    }
}
/// Ssl config details of a connector version
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslConfigTemplate {
    /// Controls the ssl type for the given connector version
    #[prost(enumeration = "SslType", tag = "1")]
    pub ssl_type: i32,
    /// Boolean for determining if the connector version mandates TLS.
    #[prost(bool, tag = "2")]
    pub is_tls_mandatory: bool,
    /// List of supported Server Cert Types
    #[prost(enumeration = "CertType", repeated, tag = "3")]
    pub server_cert_type: ::prost::alloc::vec::Vec<i32>,
    /// List of supported Client Cert Types
    #[prost(enumeration = "CertType", repeated, tag = "4")]
    pub client_cert_type: ::prost::alloc::vec::Vec<i32>,
    /// Any additional fields that need to be rendered
    #[prost(message, repeated, tag = "5")]
    pub additional_variables: ::prost::alloc::vec::Vec<ConfigVariableTemplate>,
}
/// SSL Configuration of a connection
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SslConfig {
    /// Controls the ssl type for the given connector version.
    #[prost(enumeration = "SslType", tag = "1")]
    pub r#type: i32,
    /// Trust Model of the SSL connection
    #[prost(enumeration = "ssl_config::TrustModel", tag = "2")]
    pub trust_model: i32,
    /// Private Server Certificate. Needs to be specified if trust model is
    /// `PRIVATE`.
    #[prost(message, optional, tag = "3")]
    pub private_server_certificate: ::core::option::Option<Secret>,
    /// Client Certificate
    #[prost(message, optional, tag = "4")]
    pub client_certificate: ::core::option::Option<Secret>,
    /// Client Private Key
    #[prost(message, optional, tag = "5")]
    pub client_private_key: ::core::option::Option<Secret>,
    /// Secret containing the passphrase protecting the Client Private Key
    #[prost(message, optional, tag = "6")]
    pub client_private_key_pass: ::core::option::Option<Secret>,
    /// Type of Server Cert (PEM/JKS/.. etc.)
    #[prost(enumeration = "CertType", tag = "7")]
    pub server_cert_type: i32,
    /// Type of Client Cert (PEM/JKS/.. etc.)
    #[prost(enumeration = "CertType", tag = "8")]
    pub client_cert_type: i32,
    /// Bool for enabling SSL
    #[prost(bool, tag = "9")]
    pub use_ssl: bool,
    /// Additional SSL related field values
    #[prost(message, repeated, tag = "10")]
    pub additional_variables: ::prost::alloc::vec::Vec<ConfigVariable>,
}
/// Nested message and enum types in `SslConfig`.
pub mod ssl_config {
    /// Enum for Ttust Model
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum TrustModel {
        /// Public Trust Model. Takes the Default Java trust store.
        Public = 0,
        /// Private Trust Model. Takes custom/private trust store.
        Private = 1,
        /// Insecure Trust Model. Accept all certificates.
        Insecure = 2,
    }
    impl TrustModel {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                TrustModel::Public => "PUBLIC",
                TrustModel::Private => "PRIVATE",
                TrustModel::Insecure => "INSECURE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PUBLIC" => Some(Self::Public),
                "PRIVATE" => Some(Self::Private),
                "INSECURE" => Some(Self::Insecure),
                _ => None,
            }
        }
    }
}
/// Enum for controlling the SSL Type (TLS/MTLS)
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SslType {
    /// No SSL configuration required.
    Unspecified = 0,
    /// TLS Handshake
    Tls = 1,
    /// mutual TLS (MTLS) Handshake
    Mtls = 2,
}
impl SslType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            SslType::Unspecified => "SSL_TYPE_UNSPECIFIED",
            SslType::Tls => "TLS",
            SslType::Mtls => "MTLS",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SSL_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "TLS" => Some(Self::Tls),
            "MTLS" => Some(Self::Mtls),
            _ => None,
        }
    }
}
/// Enum for Cert Types
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CertType {
    /// Cert type unspecified.
    Unspecified = 0,
    /// Privacy Enhanced Mail (PEM) Type
    Pem = 1,
}
impl CertType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            CertType::Unspecified => "CERT_TYPE_UNSPECIFIED",
            CertType::Pem => "PEM",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CERT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "PEM" => Some(Self::Pem),
            _ => None,
        }
    }
}
/// ConnectorVersion indicates a specific version of a connector.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectorVersion {
    /// Output only. Resource name of the Version.
    /// Format:
    /// projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version}
    /// Only global location is supported for Connector resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Created time.
    #[prost(message, optional, tag = "2")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Updated time.
    #[prost(message, optional, tag = "3")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Resource labels to represent user-provided metadata.
    /// Refer to cloud documentation on labels for more details.
    /// <https://cloud.google.com/compute/docs/labeling-resources>
    #[prost(btree_map = "string, string", tag = "4")]
    pub labels: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Output only. Flag to mark the version indicating the launch stage.
    #[prost(enumeration = "LaunchStage", tag = "6")]
    pub launch_stage: i32,
    /// Output only. ReleaseVersion of the connector, for example: "1.0.1-alpha".
    #[prost(string, tag = "7")]
    pub release_version: ::prost::alloc::string::String,
    /// Output only. List of auth configs supported by the Connector Version.
    #[prost(message, repeated, tag = "8")]
    pub auth_config_templates: ::prost::alloc::vec::Vec<AuthConfigTemplate>,
    /// Output only. List of config variables needed to create a connection.
    #[prost(message, repeated, tag = "9")]
    pub config_variable_templates: ::prost::alloc::vec::Vec<ConfigVariableTemplate>,
    /// Output only. Information about the runtime features supported by the
    /// Connector.
    #[prost(message, optional, tag = "10")]
    pub supported_runtime_features: ::core::option::Option<SupportedRuntimeFeatures>,
    /// Output only. Display name.
    #[prost(string, tag = "11")]
    pub display_name: ::prost::alloc::string::String,
    /// Output only. Configuration for Egress Control.
    #[prost(message, optional, tag = "12")]
    pub egress_control_config: ::core::option::Option<EgressControlConfig>,
    /// Output only. Role grant configurations for this connector version.
    #[prost(message, repeated, tag = "14")]
    pub role_grants: ::prost::alloc::vec::Vec<RoleGrant>,
    /// Output only. Role grant configuration for this config variable. It will be
    /// DEPRECATED soon.
    #[prost(message, optional, tag = "15")]
    pub role_grant: ::core::option::Option<RoleGrant>,
    /// Output only. Ssl configuration supported by the Connector.
    #[prost(message, optional, tag = "17")]
    pub ssl_config_template: ::core::option::Option<SslConfigTemplate>,
}
/// Request message for Connectors.GetConnectorVersion.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectorVersionRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/providers/*/connectors/*/versions/*`
    /// Only global location is supported for ConnectorVersion resource.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Specifies which fields of the ConnectorVersion are returned in the
    /// response. Defaults to `CUSTOMER` view.
    #[prost(enumeration = "ConnectorVersionView", tag = "2")]
    pub view: i32,
}
/// Request message for Connectors.ListConnectorVersions.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectorVersionsRequest {
    /// Required. Parent resource of the connectors, of the form:
    /// `projects/*/locations/*/providers/*/connectors/*`
    /// Only global location is supported for ConnectorVersion resource.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Specifies which fields of the ConnectorVersion are returned in the
    /// response. Defaults to `BASIC` view.
    #[prost(enumeration = "ConnectorVersionView", tag = "4")]
    pub view: i32,
}
/// Response message for Connectors.ListConnectorVersions.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectorVersionsResponse {
    /// A list of connector versions.
    #[prost(message, repeated, tag = "1")]
    pub connector_versions: ::prost::alloc::vec::Vec<ConnectorVersion>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Supported runtime features of a connector version. This is passed to the
/// management layer to add a new connector version by the connector developer.
/// Details about how this proto is passed to the management layer is covered in
/// this doc - go/runtime-manifest.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SupportedRuntimeFeatures {
    /// Specifies if the connector supports entity apis like 'createEntity'.
    #[prost(bool, tag = "1")]
    pub entity_apis: bool,
    /// Specifies if the connector supports action apis like 'executeAction'.
    #[prost(bool, tag = "2")]
    pub action_apis: bool,
    /// Specifies if the connector supports 'ExecuteSqlQuery' operation.
    #[prost(bool, tag = "3")]
    pub sql_query: bool,
}
/// Egress control config for connector runtime. These configurations define the
/// rules to identify which outbound domains/hosts needs to be whitelisted. It
/// may be a static information for a particular connector version or it is
/// derived from the configurations provided by the customer in Connection
/// resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EgressControlConfig {
    #[prost(oneof = "egress_control_config::OneofBackends", tags = "1, 2")]
    pub oneof_backends: ::core::option::Option<egress_control_config::OneofBackends>,
}
/// Nested message and enum types in `EgressControlConfig`.
pub mod egress_control_config {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum OneofBackends {
        /// Static Comma separated backends which are common for all Connection
        /// resources. Supported formats for each backend are host:port or just
        /// host (host can be ip address or domain name).
        #[prost(string, tag = "1")]
        Backends(::prost::alloc::string::String),
        /// Extractions Rules to extract the backends from customer provided
        /// configuration.
        #[prost(message, tag = "2")]
        ExtractionRules(super::ExtractionRules),
    }
}
/// Extraction Rules to identity the backends from customer provided
/// configuration in Connection resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtractionRules {
    /// Collection of Extraction Rule.
    #[prost(message, repeated, tag = "1")]
    pub extraction_rule: ::prost::alloc::vec::Vec<ExtractionRule>,
}
/// Extraction Rule.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtractionRule {
    /// Source on which the rule is applied.
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<extraction_rule::Source>,
    /// Regex used to extract backend details from source. If empty, whole source
    /// value will be used.
    #[prost(string, tag = "2")]
    pub extraction_regex: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ExtractionRule`.
pub mod extraction_rule {
    /// Source to extract the backend from.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Source {
        /// Type of the source.
        #[prost(enumeration = "SourceType", tag = "1")]
        pub source_type: i32,
        /// Field identifier. For example config vaiable name.
        #[prost(string, tag = "2")]
        pub field_id: ::prost::alloc::string::String,
    }
    /// Supported Source types for extraction.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum SourceType {
        /// Default SOURCE.
        Unspecified = 0,
        /// Config Variable source type.
        ConfigVariable = 1,
    }
    impl SourceType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                SourceType::Unspecified => "SOURCE_TYPE_UNSPECIFIED",
                SourceType::ConfigVariable => "CONFIG_VARIABLE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "CONFIG_VARIABLE" => Some(Self::ConfigVariable),
                _ => None,
            }
        }
    }
}
/// Enum to control which fields should be included in the response.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectorVersionView {
    /// CONNECTOR_VERSION_VIEW_UNSPECIFIED.
    Unspecified = 0,
    /// Do not include role grant configs.
    Basic = 1,
    /// Include role grant configs.
    Full = 2,
}
impl ConnectorVersionView {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            ConnectorVersionView::Unspecified => "CONNECTOR_VERSION_VIEW_UNSPECIFIED",
            ConnectorVersionView::Basic => "CONNECTOR_VERSION_VIEW_BASIC",
            ConnectorVersionView::Full => "CONNECTOR_VERSION_VIEW_FULL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CONNECTOR_VERSION_VIEW_UNSPECIFIED" => Some(Self::Unspecified),
            "CONNECTOR_VERSION_VIEW_BASIC" => Some(Self::Basic),
            "CONNECTOR_VERSION_VIEW_FULL" => Some(Self::Full),
            _ => None,
        }
    }
}
/// Connection represents an instance of connector.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Connection {
    /// Output only. Resource name of the Connection.
    /// Format: projects/{project}/locations/{location}/connections/{connection}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Created time.
    #[prost(message, optional, tag = "2")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Updated time.
    #[prost(message, optional, tag = "3")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Optional. Resource labels to represent user-provided metadata.
    /// Refer to cloud documentation on labels for more details.
    /// <https://cloud.google.com/compute/docs/labeling-resources>
    #[prost(btree_map = "string, string", tag = "4")]
    pub labels: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Optional. Description of the resource.
    #[prost(string, tag = "5")]
    pub description: ::prost::alloc::string::String,
    /// Required. Connector version on which the connection is created.
    /// The format is:
    /// projects/*/locations/*/providers/*/connectors/*/versions/*
    /// Only global location is supported for ConnectorVersion resource.
    #[prost(string, tag = "6")]
    pub connector_version: ::prost::alloc::string::String,
    /// Output only. Current status of the connection.
    #[prost(message, optional, tag = "7")]
    pub status: ::core::option::Option<ConnectionStatus>,
    /// Optional. Configuration for configuring the connection with an external
    /// system.
    #[prost(message, repeated, tag = "8")]
    pub config_variables: ::prost::alloc::vec::Vec<ConfigVariable>,
    /// Optional. Configuration for establishing the connection's authentication
    /// with an external system.
    #[prost(message, optional, tag = "9")]
    pub auth_config: ::core::option::Option<AuthConfig>,
    /// Optional. Configuration that indicates whether or not the Connection can be
    /// edited.
    #[prost(message, optional, tag = "10")]
    pub lock_config: ::core::option::Option<LockConfig>,
    /// Optional. Configuration of the Connector's destination. Only accepted for
    /// Connectors that accepts user defined destination(s).
    #[prost(message, repeated, tag = "18")]
    pub destination_configs: ::prost::alloc::vec::Vec<DestinationConfig>,
    /// Output only. GCR location where the runtime image is stored.
    /// formatted like: gcr.io/{bucketName}/{imageName}
    #[prost(string, tag = "11")]
    pub image_location: ::prost::alloc::string::String,
    /// Optional. Service account needed for runtime plane to access GCP resources.
    #[prost(string, tag = "12")]
    pub service_account: ::prost::alloc::string::String,
    /// Output only. The name of the Service Directory service name. Used for
    /// Private Harpoon to resolve the ILB address.
    /// e.g.
    /// "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio-system/services/istio-ingressgateway-connectors"
    #[prost(string, tag = "13")]
    pub service_directory: ::prost::alloc::string::String,
    /// Output only. GCR location where the envoy image is stored.
    /// formatted like: gcr.io/{bucketName}/{imageName}
    #[prost(string, tag = "15")]
    pub envoy_image_location: ::prost::alloc::string::String,
    /// Optional. Suspended indicates if a user has suspended a connection or not.
    #[prost(bool, tag = "17")]
    pub suspended: bool,
    /// Optional. Node configuration for the connection.
    #[prost(message, optional, tag = "19")]
    pub node_config: ::core::option::Option<NodeConfig>,
    /// Optional. Ssl config of a connection
    #[prost(message, optional, tag = "21")]
    pub ssl_config: ::core::option::Option<SslConfig>,
}
/// Node configuration for the connection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeConfig {
    /// Minimum number of nodes in the runtime nodes.
    #[prost(int32, tag = "1")]
    pub min_node_count: i32,
    /// Maximum number of nodes in the runtime nodes.
    #[prost(int32, tag = "2")]
    pub max_node_count: i32,
}
/// ConnectionSchemaMetadata is the singleton resource of each connection.
/// It includes the entity and action names of runtime resources exposed
/// by a connection backend.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionSchemaMetadata {
    /// Output only. List of entity names.
    #[prost(string, repeated, tag = "1")]
    pub entities: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Output only. List of actions.
    #[prost(string, repeated, tag = "2")]
    pub actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Output only. Resource name.
    /// Format:
    /// projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Timestamp when the connection runtime schema was updated.
    #[prost(message, optional, tag = "4")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Timestamp when the connection runtime schema refresh was
    /// triggered.
    #[prost(message, optional, tag = "5")]
    pub refresh_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The current state of runtime schema.
    #[prost(enumeration = "connection_schema_metadata::State", tag = "6")]
    pub state: i32,
}
/// Nested message and enum types in `ConnectionSchemaMetadata`.
pub mod connection_schema_metadata {
    /// State of connection runtime schema.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Default state.
        Unspecified = 0,
        /// Schema refresh is in progress.
        Refreshing = 1,
        /// Schema has been updated.
        Updated = 2,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::Refreshing => "REFRESHING",
                State::Updated => "UPDATED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "REFRESHING" => Some(Self::Refreshing),
                "UPDATED" => Some(Self::Updated),
                _ => None,
            }
        }
    }
}
/// Schema of a runtime entity.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuntimeEntitySchema {
    /// Output only. Name of the entity.
    #[prost(string, tag = "1")]
    pub entity: ::prost::alloc::string::String,
    /// Output only. List of fields in the entity.
    #[prost(message, repeated, tag = "2")]
    pub fields: ::prost::alloc::vec::Vec<runtime_entity_schema::Field>,
}
/// Nested message and enum types in `RuntimeEntitySchema`.
pub mod runtime_entity_schema {
    /// Metadata of an entity field.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Field {
        /// Name of the Field.
        #[prost(string, tag = "1")]
        pub field: ::prost::alloc::string::String,
        /// A brief description of the Field.
        #[prost(string, tag = "2")]
        pub description: ::prost::alloc::string::String,
        /// The data type of the Field.
        #[prost(enumeration = "super::DataType", tag = "3")]
        pub data_type: i32,
        /// The following boolean field specifies if the current Field acts
        /// as a primary key or id if the parent is of type entity.
        #[prost(bool, tag = "4")]
        pub key: bool,
        /// Specifies if the Field is readonly.
        #[prost(bool, tag = "5")]
        pub readonly: bool,
        /// Specifies whether a null value is allowed.
        #[prost(bool, tag = "6")]
        pub nullable: bool,
        /// The following field specifies the default value of the Field provided
        /// by the external system if a value is not provided.
        #[prost(message, optional, tag = "7")]
        pub default_value: ::core::option::Option<::prost_types::Value>,
        /// The following map contains fields that are not explicitly mentioned
        /// above,this give connectors the flexibility to add new metadata
        /// fields.
        #[prost(message, optional, tag = "8")]
        pub additional_details: ::core::option::Option<::prost_types::Struct>,
    }
}
/// Schema of a runtime action.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuntimeActionSchema {
    /// Output only. Name of the action.
    #[prost(string, tag = "1")]
    pub action: ::prost::alloc::string::String,
    /// Output only. List of input parameter metadata for the action.
    #[prost(message, repeated, tag = "2")]
    pub input_parameters: ::prost::alloc::vec::Vec<
        runtime_action_schema::InputParameter,
    >,
    /// Output only. List of result field metadata.
    #[prost(message, repeated, tag = "3")]
    pub result_metadata: ::prost::alloc::vec::Vec<runtime_action_schema::ResultMetadata>,
}
/// Nested message and enum types in `RuntimeActionSchema`.
pub mod runtime_action_schema {
    /// Metadata of an input parameter.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct InputParameter {
        /// Name of the Parameter.
        #[prost(string, tag = "1")]
        pub parameter: ::prost::alloc::string::String,
        /// A brief description of the Parameter.
        #[prost(string, tag = "2")]
        pub description: ::prost::alloc::string::String,
        /// The data type of the Parameter.
        #[prost(enumeration = "super::DataType", tag = "3")]
        pub data_type: i32,
        /// Specifies whether a null value is allowed.
        #[prost(bool, tag = "4")]
        pub nullable: bool,
        /// The following field specifies the default value of the Parameter
        /// provided by the external system if a value is not provided.
        #[prost(message, optional, tag = "5")]
        pub default_value: ::core::option::Option<::prost_types::Value>,
    }
    /// Metadata of result field.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ResultMetadata {
        /// Name of the result field.
        #[prost(string, tag = "1")]
        pub field: ::prost::alloc::string::String,
        /// A brief description of the field.
        #[prost(string, tag = "2")]
        pub description: ::prost::alloc::string::String,
        /// The data type of the field.
        #[prost(enumeration = "super::DataType", tag = "3")]
        pub data_type: i32,
    }
}
/// Determines whether or no a connection is locked. If locked, a reason must be
/// specified.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LockConfig {
    /// Indicates whether or not the connection is locked.
    #[prost(bool, tag = "1")]
    pub locked: bool,
    /// Describes why a connection is locked.
    #[prost(string, tag = "2")]
    pub reason: ::prost::alloc::string::String,
}
/// Request message for ConnectorsService.ListConnections
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectionsRequest {
    /// Required. Parent resource of the Connection, of the form:
    /// `projects/*/locations/*`
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Filter.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Order by parameters.
    #[prost(string, tag = "5")]
    pub order_by: ::prost::alloc::string::String,
    /// Specifies which fields of the Connection are returned in the response.
    /// Defaults to `BASIC` view.
    #[prost(enumeration = "ConnectionView", tag = "6")]
    pub view: i32,
}
/// Response message for ConnectorsService.ListConnections
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectionsResponse {
    /// Connections.
    #[prost(message, repeated, tag = "1")]
    pub connections: ::prost::alloc::vec::Vec<Connection>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Request message for ConnectorsService.GetConnection
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectionRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/connections/*`
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Specifies which fields of the Connection are returned in the response.
    /// Defaults to `BASIC` view.
    #[prost(enumeration = "ConnectionView", tag = "2")]
    pub view: i32,
}
/// Request message for ConnectorsService.CreateConnection
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectionRequest {
    /// Required. Parent resource of the Connection, of the form:
    /// `projects/*/locations/*`
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. Identifier to assign to the Connection. Must be unique within
    /// scope of the parent resource.
    #[prost(string, tag = "2")]
    pub connection_id: ::prost::alloc::string::String,
    /// Required. Connection resource.
    #[prost(message, optional, tag = "3")]
    pub connection: ::core::option::Option<Connection>,
}
/// Request message for ConnectorsService.UpdateConnection
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectionRequest {
    /// Required. Connection resource.
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<Connection>,
    /// Required. You can modify only the fields listed below.
    ///
    /// To lock/unlock a connection:
    /// * `lock_config`
    ///
    /// To suspend/resume a connection:
    /// * `suspended`
    ///
    /// To update the connection details:
    /// * `description`
    /// * `labels`
    /// * `connector_version`
    /// * `config_variables`
    /// * `auth_config`
    /// * `destination_configs`
    /// * `node_config`
    #[prost(message, optional, tag = "2")]
    pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Request message for ConnectorsService.DeleteConnection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteConnectionRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/connections/*`
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Request message for ConnectorsService.GetConnectionSchemaMetadata.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectionSchemaMetadataRequest {
    /// Required. Connection name
    /// Format:
    /// projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Request message for ConnectorsService.RefreshConnectionSchemaMetadata.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshConnectionSchemaMetadataRequest {
    /// Required. Resource name.
    /// Format:
    /// projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Request message for ConnectorsService.ListRuntimeEntitySchemas.
/// For filter, only entity field is supported with literal equality operator.
/// Accepted filter example: entity="Order"
/// Wildcards are not supported in the filter currently.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuntimeEntitySchemasRequest {
    /// Required. Parent resource of RuntimeEntitySchema
    /// Format:
    /// projects/{project}/locations/{location}/connections/{connection}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Required. Filter
    /// Format:
    /// entity="{entityId}"
    /// Only entity field is supported with literal equality operator.
    /// Accepted filter example: entity="Order"
    /// Wildcards are not supported in the filter currently.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Response message for ConnectorsService.ListRuntimeEntitySchemas.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuntimeEntitySchemasResponse {
    /// Runtime entity schemas.
    #[prost(message, repeated, tag = "1")]
    pub runtime_entity_schemas: ::prost::alloc::vec::Vec<RuntimeEntitySchema>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Request message for ConnectorsService.ListRuntimeActionSchemas.
/// For filter, only action field is supported with literal equality operator.
/// Accepted filter example: action="approveOrder"
/// Wildcards are not supported in the filter currently.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuntimeActionSchemasRequest {
    /// Required. Parent resource of RuntimeActionSchema
    /// Format:
    /// projects/{project}/locations/{location}/connections/{connection}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Page size.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Page token.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Required. Filter
    /// Format:
    /// action="{actionId}"
    /// Only action field is supported with literal equality operator.
    /// Accepted filter example: action="CancelOrder"
    /// Wildcards are not supported in the filter currently.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Response message for ConnectorsService.ListRuntimeActionSchemas.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuntimeActionSchemasResponse {
    /// Runtime action schemas.
    #[prost(message, repeated, tag = "1")]
    pub runtime_action_schemas: ::prost::alloc::vec::Vec<RuntimeActionSchema>,
    /// Next page token.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// ConnectionStatus indicates the state of the connection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionStatus {
    /// State.
    #[prost(enumeration = "connection_status::State", tag = "1")]
    pub state: i32,
    /// Description.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Status provides detailed information for the state.
    #[prost(string, tag = "3")]
    pub status: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ConnectionStatus`.
pub mod connection_status {
    /// All the possible Connection State.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Connection does not have a state yet.
        Unspecified = 0,
        /// Connection is being created.
        Creating = 1,
        /// Connection is running and ready for requests.
        Active = 2,
        /// Connection is stopped.
        Inactive = 3,
        /// Connection is being deleted.
        Deleting = 4,
        /// Connection is being updated.
        Updating = 5,
        /// Connection is not running due to an error.
        Error = 6,
        /// Connection is not running due to an auth error for the Oauth2 Auth Code
        /// based connector.
        AuthorizationRequired = 7,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::Creating => "CREATING",
                State::Active => "ACTIVE",
                State::Inactive => "INACTIVE",
                State::Deleting => "DELETING",
                State::Updating => "UPDATING",
                State::Error => "ERROR",
                State::AuthorizationRequired => "AUTHORIZATION_REQUIRED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "CREATING" => Some(Self::Creating),
                "ACTIVE" => Some(Self::Active),
                "INACTIVE" => Some(Self::Inactive),
                "DELETING" => Some(Self::Deleting),
                "UPDATING" => Some(Self::Updating),
                "ERROR" => Some(Self::Error),
                "AUTHORIZATION_REQUIRED" => Some(Self::AuthorizationRequired),
                _ => None,
            }
        }
    }
}
/// All possible data types of a entity or action field.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataType {
    /// Data type is not specified.
    Unspecified = 0,
    /// DEPRECATED! Use DATA_TYPE_INTEGER.
    Int = 1,
    /// Short integer(int16) data type.
    Smallint = 2,
    /// Double data type.
    Double = 3,
    /// Date data type.
    Date = 4,
    /// DEPRECATED! Use DATA_TYPE_TIMESTAMP.
    Datetime = 5,
    /// Time data type.
    Time = 6,
    /// DEPRECATED! Use DATA_TYPE_VARCHAR.
    String = 7,
    /// DEPRECATED! Use DATA_TYPE_BIGINT.
    Long = 8,
    /// Boolean data type.
    Boolean = 9,
    /// Decimal data type.
    Decimal = 10,
    /// DEPRECATED! Use DATA_TYPE_VARCHAR.
    Uuid = 11,
    /// UNSUPPORTED! Binary data type.
    Blob = 12,
    /// Bit data type.
    Bit = 13,
    /// Small integer(int8) data type.
    Tinyint = 14,
    /// Integer(int32) data type.
    Integer = 15,
    /// Long integer(int64) data type.
    Bigint = 16,
    /// Float data type.
    Float = 17,
    /// Real data type.
    Real = 18,
    /// Numeric data type.
    Numeric = 19,
    /// Char data type.
    Char = 20,
    /// Varchar data type.
    Varchar = 21,
    /// Longvarchar data type.
    Longvarchar = 22,
    /// Timestamp data type.
    Timestamp = 23,
    /// Nchar data type.
    Nchar = 24,
    /// Nvarchar data type.
    Nvarchar = 25,
    /// Longnvarchar data type.
    Longnvarchar = 26,
    /// Null data type.
    Null = 27,
    /// UNSUPPORTED! Binary data type.
    Other = 28,
    /// UNSUPPORTED! Binary data type.
    JavaObject = 29,
    /// UNSUPPORTED! Binary data type.
    Distinct = 30,
    /// UNSUPPORTED! Binary data type.
    Struct = 31,
    /// UNSUPPORTED! Binary data type.
    Array = 32,
    /// UNSUPPORTED! Binary data type.
    Clob = 33,
    /// UNSUPPORTED! Binary data type.
    Ref = 34,
    /// UNSUPPORTED! Binary data type.
    Datalink = 35,
    /// UNSUPPORTED! Row id data type.
    Rowid = 36,
    /// UNSUPPORTED! Binary data type.
    Binary = 37,
    /// UNSUPPORTED! Variable binary data type.
    Varbinary = 38,
    /// UNSUPPORTED! Long variable binary data type.
    Longvarbinary = 39,
    /// UNSUPPORTED! NCLOB data type.
    Nclob = 40,
    /// UNSUPPORTED! SQL XML data type is not supported.
    Sqlxml = 41,
    /// UNSUPPORTED! Cursor reference type is not supported.
    RefCursor = 42,
    /// UNSUPPORTED! Use TIME or TIMESTAMP instead.
    TimeWithTimezone = 43,
    /// UNSUPPORTED! Use TIMESTAMP instead.
    TimestampWithTimezone = 44,
}
impl DataType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            DataType::Unspecified => "DATA_TYPE_UNSPECIFIED",
            DataType::Int => "DATA_TYPE_INT",
            DataType::Smallint => "DATA_TYPE_SMALLINT",
            DataType::Double => "DATA_TYPE_DOUBLE",
            DataType::Date => "DATA_TYPE_DATE",
            DataType::Datetime => "DATA_TYPE_DATETIME",
            DataType::Time => "DATA_TYPE_TIME",
            DataType::String => "DATA_TYPE_STRING",
            DataType::Long => "DATA_TYPE_LONG",
            DataType::Boolean => "DATA_TYPE_BOOLEAN",
            DataType::Decimal => "DATA_TYPE_DECIMAL",
            DataType::Uuid => "DATA_TYPE_UUID",
            DataType::Blob => "DATA_TYPE_BLOB",
            DataType::Bit => "DATA_TYPE_BIT",
            DataType::Tinyint => "DATA_TYPE_TINYINT",
            DataType::Integer => "DATA_TYPE_INTEGER",
            DataType::Bigint => "DATA_TYPE_BIGINT",
            DataType::Float => "DATA_TYPE_FLOAT",
            DataType::Real => "DATA_TYPE_REAL",
            DataType::Numeric => "DATA_TYPE_NUMERIC",
            DataType::Char => "DATA_TYPE_CHAR",
            DataType::Varchar => "DATA_TYPE_VARCHAR",
            DataType::Longvarchar => "DATA_TYPE_LONGVARCHAR",
            DataType::Timestamp => "DATA_TYPE_TIMESTAMP",
            DataType::Nchar => "DATA_TYPE_NCHAR",
            DataType::Nvarchar => "DATA_TYPE_NVARCHAR",
            DataType::Longnvarchar => "DATA_TYPE_LONGNVARCHAR",
            DataType::Null => "DATA_TYPE_NULL",
            DataType::Other => "DATA_TYPE_OTHER",
            DataType::JavaObject => "DATA_TYPE_JAVA_OBJECT",
            DataType::Distinct => "DATA_TYPE_DISTINCT",
            DataType::Struct => "DATA_TYPE_STRUCT",
            DataType::Array => "DATA_TYPE_ARRAY",
            DataType::Clob => "DATA_TYPE_CLOB",
            DataType::Ref => "DATA_TYPE_REF",
            DataType::Datalink => "DATA_TYPE_DATALINK",
            DataType::Rowid => "DATA_TYPE_ROWID",
            DataType::Binary => "DATA_TYPE_BINARY",
            DataType::Varbinary => "DATA_TYPE_VARBINARY",
            DataType::Longvarbinary => "DATA_TYPE_LONGVARBINARY",
            DataType::Nclob => "DATA_TYPE_NCLOB",
            DataType::Sqlxml => "DATA_TYPE_SQLXML",
            DataType::RefCursor => "DATA_TYPE_REF_CURSOR",
            DataType::TimeWithTimezone => "DATA_TYPE_TIME_WITH_TIMEZONE",
            DataType::TimestampWithTimezone => "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "DATA_TYPE_INT" => Some(Self::Int),
            "DATA_TYPE_SMALLINT" => Some(Self::Smallint),
            "DATA_TYPE_DOUBLE" => Some(Self::Double),
            "DATA_TYPE_DATE" => Some(Self::Date),
            "DATA_TYPE_DATETIME" => Some(Self::Datetime),
            "DATA_TYPE_TIME" => Some(Self::Time),
            "DATA_TYPE_STRING" => Some(Self::String),
            "DATA_TYPE_LONG" => Some(Self::Long),
            "DATA_TYPE_BOOLEAN" => Some(Self::Boolean),
            "DATA_TYPE_DECIMAL" => Some(Self::Decimal),
            "DATA_TYPE_UUID" => Some(Self::Uuid),
            "DATA_TYPE_BLOB" => Some(Self::Blob),
            "DATA_TYPE_BIT" => Some(Self::Bit),
            "DATA_TYPE_TINYINT" => Some(Self::Tinyint),
            "DATA_TYPE_INTEGER" => Some(Self::Integer),
            "DATA_TYPE_BIGINT" => Some(Self::Bigint),
            "DATA_TYPE_FLOAT" => Some(Self::Float),
            "DATA_TYPE_REAL" => Some(Self::Real),
            "DATA_TYPE_NUMERIC" => Some(Self::Numeric),
            "DATA_TYPE_CHAR" => Some(Self::Char),
            "DATA_TYPE_VARCHAR" => Some(Self::Varchar),
            "DATA_TYPE_LONGVARCHAR" => Some(Self::Longvarchar),
            "DATA_TYPE_TIMESTAMP" => Some(Self::Timestamp),
            "DATA_TYPE_NCHAR" => Some(Self::Nchar),
            "DATA_TYPE_NVARCHAR" => Some(Self::Nvarchar),
            "DATA_TYPE_LONGNVARCHAR" => Some(Self::Longnvarchar),
            "DATA_TYPE_NULL" => Some(Self::Null),
            "DATA_TYPE_OTHER" => Some(Self::Other),
            "DATA_TYPE_JAVA_OBJECT" => Some(Self::JavaObject),
            "DATA_TYPE_DISTINCT" => Some(Self::Distinct),
            "DATA_TYPE_STRUCT" => Some(Self::Struct),
            "DATA_TYPE_ARRAY" => Some(Self::Array),
            "DATA_TYPE_CLOB" => Some(Self::Clob),
            "DATA_TYPE_REF" => Some(Self::Ref),
            "DATA_TYPE_DATALINK" => Some(Self::Datalink),
            "DATA_TYPE_ROWID" => Some(Self::Rowid),
            "DATA_TYPE_BINARY" => Some(Self::Binary),
            "DATA_TYPE_VARBINARY" => Some(Self::Varbinary),
            "DATA_TYPE_LONGVARBINARY" => Some(Self::Longvarbinary),
            "DATA_TYPE_NCLOB" => Some(Self::Nclob),
            "DATA_TYPE_SQLXML" => Some(Self::Sqlxml),
            "DATA_TYPE_REF_CURSOR" => Some(Self::RefCursor),
            "DATA_TYPE_TIME_WITH_TIMEZONE" => Some(Self::TimeWithTimezone),
            "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" => Some(Self::TimestampWithTimezone),
            _ => None,
        }
    }
}
/// Enum to control which fields should be included in the response.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectionView {
    /// CONNECTION_UNSPECIFIED.
    Unspecified = 0,
    /// Do not include runtime required configs.
    Basic = 1,
    /// Include runtime required configs.
    Full = 2,
}
impl ConnectionView {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            ConnectionView::Unspecified => "CONNECTION_VIEW_UNSPECIFIED",
            ConnectionView::Basic => "BASIC",
            ConnectionView::Full => "FULL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CONNECTION_VIEW_UNSPECIFIED" => Some(Self::Unspecified),
            "BASIC" => Some(Self::Basic),
            "FULL" => Some(Self::Full),
            _ => None,
        }
    }
}
/// Request message for Connectors.GetRuntimeConfig.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRuntimeConfigRequest {
    /// Required. Resource name of the form:
    /// `projects/*/locations/*/runtimeConfig`
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// RuntimeConfig is the singleton resource of each location.
/// It includes generic resource configs consumed by control plane and runtime
/// plane like: pub/sub topic/subscription resource name, Cloud Storage location
/// storing schema etc.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuntimeConfig {
    /// Output only. location_id of the runtime location. E.g. "us-west1".
    #[prost(string, tag = "1")]
    pub location_id: ::prost::alloc::string::String,
    /// Output only. Pub/Sub topic for connd to send message.
    /// E.g. projects/{project-id}/topics/{topic-id}
    #[prost(string, tag = "2")]
    pub connd_topic: ::prost::alloc::string::String,
    /// Output only. Pub/Sub subscription for connd to receive message.
    /// E.g. projects/{project-id}/subscriptions/{topic-id}
    #[prost(string, tag = "3")]
    pub connd_subscription: ::prost::alloc::string::String,
    /// Output only. Pub/Sub topic for control plne to send message.
    /// communication.
    /// E.g. projects/{project-id}/topics/{topic-id}
    #[prost(string, tag = "4")]
    pub control_plane_topic: ::prost::alloc::string::String,
    /// Output only. Pub/Sub subscription for control plane to receive message.
    /// E.g. projects/{project-id}/subscriptions/{topic-id}
    #[prost(string, tag = "5")]
    pub control_plane_subscription: ::prost::alloc::string::String,
    /// Output only. The endpoint of the connectors runtime ingress.
    #[prost(string, tag = "6")]
    pub runtime_endpoint: ::prost::alloc::string::String,
    /// Output only. The state of the location.
    #[prost(enumeration = "runtime_config::State", tag = "7")]
    pub state: i32,
    /// Output only. The Cloud Storage bucket that stores connector's schema
    /// reports.
    #[prost(string, tag = "8")]
    pub schema_gcs_bucket: ::prost::alloc::string::String,
    /// Output only. The name of the Service Directory service name.
    #[prost(string, tag = "9")]
    pub service_directory: ::prost::alloc::string::String,
    /// Output only. Name of the runtimeConfig resource.
    /// Format: projects/{project}/locations/{location}/runtimeConfig
    #[prost(string, tag = "11")]
    pub name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `RuntimeConfig`.
pub mod runtime_config {
    /// State of the location.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// STATE_UNSPECIFIED.
        Unspecified = 0,
        /// INACTIVE.
        Inactive = 1,
        /// ACTIVATING.
        Activating = 2,
        /// ACTIVE.
        Active = 3,
        /// CREATING.
        Creating = 4,
        /// DELETING.
        Deleting = 5,
        /// UPDATING.
        Updating = 6,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::Inactive => "INACTIVE",
                State::Activating => "ACTIVATING",
                State::Active => "ACTIVE",
                State::Creating => "CREATING",
                State::Deleting => "DELETING",
                State::Updating => "UPDATING",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "INACTIVE" => Some(Self::Inactive),
                "ACTIVATING" => Some(Self::Activating),
                "ACTIVE" => Some(Self::Active),
                "CREATING" => Some(Self::Creating),
                "DELETING" => Some(Self::Deleting),
                "UPDATING" => Some(Self::Updating),
                _ => None,
            }
        }
    }
}
/// Generated client implementations.
pub mod connectors_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Connectors is the interface for managing Connectors.
    #[derive(Debug, Clone)]
    pub struct ConnectorsClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> ConnectorsClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ConnectorsClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            ConnectorsClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Lists Connections in a given project and location.
        pub async fn list_connections(
            &mut self,
            request: impl tonic::IntoRequest<super::ListConnectionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListConnectionsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListConnections",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListConnections",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a single Connection.
        pub async fn get_connection(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectionRequest>,
        ) -> std::result::Result<tonic::Response<super::Connection>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetConnection",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetConnection",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Creates a new Connection in a given project and location.
        pub async fn create_connection(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateConnectionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/CreateConnection",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "CreateConnection",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the parameters of a single Connection.
        pub async fn update_connection(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateConnectionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/UpdateConnection",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "UpdateConnection",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deletes a single Connection.
        pub async fn delete_connection(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteConnectionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/DeleteConnection",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "DeleteConnection",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists Providers in a given project and location.
        pub async fn list_providers(
            &mut self,
            request: impl tonic::IntoRequest<super::ListProvidersRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListProvidersResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListProviders",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListProviders",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a provider.
        pub async fn get_provider(
            &mut self,
            request: impl tonic::IntoRequest<super::GetProviderRequest>,
        ) -> std::result::Result<tonic::Response<super::Provider>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetProvider",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetProvider",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists Connectors in a given project and location.
        pub async fn list_connectors(
            &mut self,
            request: impl tonic::IntoRequest<super::ListConnectorsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListConnectorsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListConnectors",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListConnectors",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a single Connector.
        pub async fn get_connector(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectorRequest>,
        ) -> std::result::Result<tonic::Response<super::Connector>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetConnector",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetConnector",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists Connector Versions in a given project and location.
        pub async fn list_connector_versions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListConnectorVersionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListConnectorVersionsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListConnectorVersions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListConnectorVersions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a single connector version.
        pub async fn get_connector_version(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectorVersionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ConnectorVersion>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetConnectorVersion",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetConnectorVersion",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets schema metadata of a connection.
        /// SchemaMetadata is a singleton resource for each connection.
        pub async fn get_connection_schema_metadata(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectionSchemaMetadataRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ConnectionSchemaMetadata>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetConnectionSchemaMetadata",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetConnectionSchemaMetadata",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Refresh runtime schema of a connection.
        pub async fn refresh_connection_schema_metadata(
            &mut self,
            request: impl tonic::IntoRequest<
                super::RefreshConnectionSchemaMetadataRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/RefreshConnectionSchemaMetadata",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "RefreshConnectionSchemaMetadata",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List schema of a runtime entities filtered by entity name.
        pub async fn list_runtime_entity_schemas(
            &mut self,
            request: impl tonic::IntoRequest<super::ListRuntimeEntitySchemasRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListRuntimeEntitySchemasResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListRuntimeEntitySchemas",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListRuntimeEntitySchemas",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List schema of a runtime actions filtered by action name.
        pub async fn list_runtime_action_schemas(
            &mut self,
            request: impl tonic::IntoRequest<super::ListRuntimeActionSchemasRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListRuntimeActionSchemasResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/ListRuntimeActionSchemas",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "ListRuntimeActionSchemas",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the runtimeConfig of a location.
        /// RuntimeConfig is a singleton resource for each location.
        pub async fn get_runtime_config(
            &mut self,
            request: impl tonic::IntoRequest<super::GetRuntimeConfigRequest>,
        ) -> std::result::Result<tonic::Response<super::RuntimeConfig>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetRuntimeConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetRuntimeConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// GetGlobalSettings gets settings of a project.
        /// GlobalSettings is a singleton resource.
        pub async fn get_global_settings(
            &mut self,
            request: impl tonic::IntoRequest<super::GetGlobalSettingsRequest>,
        ) -> std::result::Result<tonic::Response<super::Settings>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.connectors.v1.Connectors/GetGlobalSettings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.connectors.v1.Connectors",
                        "GetGlobalSettings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}