1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
// This file is @generated by prost-build.
/// A reference to uniquely identify an account according to India's UPI
/// standards.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountReference {
    /// IFSC of the account's bank branch.
    #[prost(string, tag = "1")]
    pub ifsc: ::prost::alloc::string::String,
    /// Output only. Type of account. Examples include SAVINGS, CURRENT, etc.
    #[prost(string, tag = "2")]
    pub account_type: ::prost::alloc::string::String,
    /// Unique number for an account in a bank and branch.
    #[prost(string, tag = "3")]
    pub account_number: ::prost::alloc::string::String,
}
/// A participant in a payment settlement transaction processed by the issuer
/// switch. The participant could either be the payer or the payee in the
/// transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SettlementParticipant {
    /// The participant information.
    #[prost(message, optional, tag = "1")]
    pub participant: ::core::option::Option<Participant>,
    /// Information about a merchant who is a participant in the payment. This
    /// field will be specified only if the participant is a merchant.
    #[prost(message, optional, tag = "2")]
    pub merchant_info: ::core::option::Option<MerchantInfo>,
    /// Output only. The mobile number of the participant.
    #[deprecated]
    #[prost(string, tag = "3")]
    pub mobile: ::prost::alloc::string::String,
    /// Output only. Additional details about the payment settlement. Values will
    /// be populated depending on whether the settlement transaction succeeded or
    /// failed.
    #[prost(message, optional, tag = "4")]
    pub details: ::core::option::Option<settlement_participant::SettlementDetails>,
}
/// Nested message and enum types in `SettlementParticipant`.
pub mod settlement_participant {
    /// Details about a payment settlement.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SettlementDetails {
        /// Output only. The id for the settlement in the bank's backend system. In
        /// UPI, this maps to the approval reference number. This value will be
        /// present only if this API transaction's state is SUCCEEDED.
        #[prost(string, tag = "1")]
        pub backend_settlement_id: ::prost::alloc::string::String,
        /// Output only. A code indicating additional details about the settlement.
        /// In UPI, this maps to the response code.
        #[prost(string, tag = "2")]
        pub code: ::prost::alloc::string::String,
        /// Output only. A code indicating additional details about the reversal of a
        /// settlement. In UPI, this maps to the reversal response code.
        #[prost(string, tag = "3")]
        pub reversal_code: ::prost::alloc::string::String,
        /// Output only. The amount settled as part of this API transaction. If the
        /// settlement had failed, then this value will be 0.00.
        #[prost(message, optional, tag = "4")]
        pub settled_amount: ::core::option::Option<
            super::super::super::super::super::r#type::Money,
        >,
    }
}
/// A participant's device tags
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeviceDetails {
    /// The payment application on the device.
    #[prost(string, tag = "1")]
    pub payment_app: ::prost::alloc::string::String,
    /// The capability of the device.
    #[prost(string, tag = "2")]
    pub capability: ::prost::alloc::string::String,
    /// The geo-code of the device.
    #[prost(message, optional, tag = "3")]
    pub geo_code: ::core::option::Option<super::super::super::super::r#type::LatLng>,
    /// The device's ID.
    #[prost(string, tag = "4")]
    pub id: ::prost::alloc::string::String,
    /// The device's IP address.
    #[prost(string, tag = "5")]
    pub ip_address: ::prost::alloc::string::String,
    /// The coarse location of the device.
    #[prost(string, tag = "6")]
    pub location: ::prost::alloc::string::String,
    /// The operating system on the device.
    #[prost(string, tag = "7")]
    pub operating_system: ::prost::alloc::string::String,
    /// The device's telecom provider.
    #[prost(string, tag = "8")]
    pub telecom_provider: ::prost::alloc::string::String,
    /// The type of device.
    #[prost(string, tag = "9")]
    pub r#type: ::prost::alloc::string::String,
}
/// A participant in a transaction processed by the issuer switch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Participant {
    /// The payment address of the participant. In the UPI system, this will be the
    /// virtual payment address (VPA) of the participant.
    #[prost(string, tag = "1")]
    pub payment_address: ::prost::alloc::string::String,
    /// The persona of the participant.
    #[prost(enumeration = "participant::Persona", tag = "2")]
    pub persona: i32,
    /// The name of the participant.
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Output only. Unique identification of an account according to India's UPI
    /// standards.
    #[prost(message, optional, tag = "4")]
    pub account: ::core::option::Option<AccountReference>,
    /// Output only. The device info of the participant.
    #[prost(message, optional, tag = "5")]
    pub device_details: ::core::option::Option<DeviceDetails>,
    /// Output only. The mobile number of the participant.
    #[prost(string, tag = "6")]
    pub mobile_number: ::prost::alloc::string::String,
}
/// Nested message and enum types in `Participant`.
pub mod participant {
    /// The type of the participant.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Persona {
        /// Unspecified persona.
        Unspecified = 0,
        /// Participant is an entity.
        Entity = 1,
        /// Participant is a person.
        Person = 2,
    }
    impl Persona {
        /// 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 {
                Persona::Unspecified => "PERSONA_UNSPECIFIED",
                Persona::Entity => "ENTITY",
                Persona::Person => "PERSON",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PERSONA_UNSPECIFIED" => Some(Self::Unspecified),
                "ENTITY" => Some(Self::Entity),
                "PERSON" => Some(Self::Person),
                _ => None,
            }
        }
    }
}
/// A merchant entity participating in a payment settlement transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerchantInfo {
    /// A unique identifier for the merchant.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// The name of the merchant who is a party in the payment. Includes multiple
    /// possible names for the merchant.
    #[prost(message, optional, tag = "2")]
    pub merchant: ::core::option::Option<MerchantName>,
    /// Additional information about the merchant.
    #[prost(message, optional, tag = "3")]
    pub additional_info: ::core::option::Option<MerchantAdditionalInfo>,
}
/// The name of a merchant who is a participant in a payment settlement
/// transaction. Includes multiple possible names for the merchant.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerchantName {
    /// The brand name of the merchant.
    #[prost(string, tag = "1")]
    pub brand: ::prost::alloc::string::String,
    /// The merchant's legal name.
    #[prost(string, tag = "2")]
    pub legal: ::prost::alloc::string::String,
    /// The franchise name under which the merchant operates.
    #[prost(string, tag = "3")]
    pub franchise: ::prost::alloc::string::String,
}
/// Additional merchant information specific to India's UPI requirements.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MerchantAdditionalInfo {
    /// Merchant Category Code (MCC) as specified by UPI. This is a four-digit
    /// number listed in ISO 18245 for retail financial services.
    #[prost(string, tag = "1")]
    pub category_code: ::prost::alloc::string::String,
    /// A unique identifier for the merchant store where the payment settlement
    /// transaction occurred.
    #[prost(string, tag = "2")]
    pub store_id: ::prost::alloc::string::String,
    /// A unique identifier for the POS terminal in the store where the payment
    /// settlement transaction occurred.
    #[prost(string, tag = "3")]
    pub terminal_id: ::prost::alloc::string::String,
    /// Indicates the type of merchant.
    #[prost(enumeration = "merchant_additional_info::Type", tag = "4")]
    pub r#type: i32,
    /// Indicates the genre of the merchant.
    #[prost(enumeration = "merchant_additional_info::Genre", tag = "5")]
    pub genre: i32,
    /// Indicates the merchant's onboarding type.
    #[prost(enumeration = "merchant_additional_info::OnboardingType", tag = "6")]
    pub onboarding_type: i32,
    /// Indicates the merchant's owner type.
    #[prost(enumeration = "merchant_additional_info::OwnershipType", tag = "7")]
    pub ownership_type: i32,
}
/// Nested message and enum types in `MerchantAdditionalInfo`.
pub mod merchant_additional_info {
    /// Indicates the merchant's type as a small or large merchant.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        /// Unspecified merchant type.
        Unspecified = 0,
        /// Large merchant.
        Large = 1,
        /// Small merchant.
        Small = 2,
    }
    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::Large => "LARGE",
                Type::Small => "SMALL",
            }
        }
        /// 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),
                "LARGE" => Some(Self::Large),
                "SMALL" => Some(Self::Small),
                _ => None,
            }
        }
    }
    /// Indicates whether the merchant is an online or offline merchant.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Genre {
        /// Unspecified merchant genre.
        Unspecified = 0,
        /// Offline merchant
        Offline = 1,
        /// Online merchant.
        Online = 2,
    }
    impl Genre {
        /// 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 {
                Genre::Unspecified => "GENRE_UNSPECIFIED",
                Genre::Offline => "OFFLINE",
                Genre::Online => "ONLINE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "GENRE_UNSPECIFIED" => Some(Self::Unspecified),
                "OFFLINE" => Some(Self::Offline),
                "ONLINE" => Some(Self::Online),
                _ => None,
            }
        }
    }
    /// Indicates whether the merchant has been onboarded by a bank or an
    /// aggregator.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum OnboardingType {
        /// Unspecified merchant onboarding type.
        Unspecified = 0,
        /// Onboarded by aggreagator.
        Aggregator = 1,
        /// Onboarded by bank.
        Bank = 2,
        /// Onboarded by the UPI network.
        Network = 3,
        /// Onboarded by the TPAP.
        Tpap = 4,
    }
    impl OnboardingType {
        /// 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 {
                OnboardingType::Unspecified => "ONBOARDING_TYPE_UNSPECIFIED",
                OnboardingType::Aggregator => "AGGREGATOR",
                OnboardingType::Bank => "BANK",
                OnboardingType::Network => "NETWORK",
                OnboardingType::Tpap => "TPAP",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ONBOARDING_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "AGGREGATOR" => Some(Self::Aggregator),
                "BANK" => Some(Self::Bank),
                "NETWORK" => Some(Self::Network),
                "TPAP" => Some(Self::Tpap),
                _ => None,
            }
        }
    }
    /// Indicates the ownership type of the merchant.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum OwnershipType {
        /// Unspecified merchant ownership type.
        Unspecified = 0,
        /// Properietary ownership.
        Proprietary = 1,
        /// Partnership ownership.
        Partnership = 2,
        /// Public ownership.
        Public = 3,
        /// Private ownership.
        Private = 4,
        /// Other ownership model.
        Others = 5,
    }
    impl OwnershipType {
        /// 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 {
                OwnershipType::Unspecified => "OWNERSHIP_TYPE_UNSPECIFIED",
                OwnershipType::Proprietary => "PROPRIETARY",
                OwnershipType::Partnership => "PARTNERSHIP",
                OwnershipType::Public => "PUBLIC",
                OwnershipType::Private => "PRIVATE",
                OwnershipType::Others => "OTHERS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "OWNERSHIP_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "PROPRIETARY" => Some(Self::Proprietary),
                "PARTNERSHIP" => Some(Self::Partnership),
                "PUBLIC" => Some(Self::Public),
                "PRIVATE" => Some(Self::Private),
                "OTHERS" => Some(Self::Others),
                _ => None,
            }
        }
    }
}
/// The API type for a transaction. Every transaction processed by the issuer
/// switch will be one of these API types.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ApiType {
    /// Unspecified API type.
    Unspecified = 0,
    /// Balance API. Maps to UPI's `BalEnq` API. This is a metadata
    /// transaction API.
    Balance = 1,
    /// Check transaction status API. Maps to UPI's `ChkTxn` API. This is a
    /// metadata transaction API.
    CheckStatus = 2,
    /// Complaint API. Maps to UPI's `Complaint` API. This is a dispute and issue
    /// resolution API.
    Complaint = 3,
    /// Heart beat API. Maps to UPI's `Hbt` API. This is a metadata transaction
    /// API.
    HeartBeat = 4,
    /// Initiate registration API. Maps to UPI's `Otp` API. This is a metadata
    /// transaction API.
    InitiateRegistration = 5,
    /// List accounts API. Maps to UPI's `ListAccount` API. This is a metadata
    /// transaction API.
    ListAccounts = 6,
    /// Mandate API. Maps to UPI's `Mandate` API. This is a metadata transaction
    /// API.
    Mandate = 7,
    /// Mandate confirmation API. Maps to UPI's `MandateConfirmation` API. This is
    /// a metadata transaction API.
    MandateConfirmation = 8,
    /// Payment settlement API. Maps to UPI's `Pay` API. This is a financial
    /// transaction API.
    SettlePayment = 9,
    /// Update credentials API. Maps to UPI's `SetCre` API. This is a metadata
    /// transaction API.
    UpdateCredentials = 10,
    /// Validate registration API. Maps to UPI's `RegMob` API. This is a metadata
    /// transaction API.
    ValidateRegistration = 11,
    /// Validate customer API. Maps to UPI's `ValCust` API. This is a validation
    /// API.
    ValidateCustomer = 12,
    /// Voucher API. Maps to UPI's `Voucher` API.
    Voucher = 13,
    /// Voucher confirmation API. Maps to UPI's `VoucherConfirmation` API.
    VoucherConfirmation = 14,
    /// Activation API. Maps to UPI's `Activation` API.
    Activation = 15,
}
impl ApiType {
    /// 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 {
            ApiType::Unspecified => "API_TYPE_UNSPECIFIED",
            ApiType::Balance => "BALANCE",
            ApiType::CheckStatus => "CHECK_STATUS",
            ApiType::Complaint => "COMPLAINT",
            ApiType::HeartBeat => "HEART_BEAT",
            ApiType::InitiateRegistration => "INITIATE_REGISTRATION",
            ApiType::ListAccounts => "LIST_ACCOUNTS",
            ApiType::Mandate => "MANDATE",
            ApiType::MandateConfirmation => "MANDATE_CONFIRMATION",
            ApiType::SettlePayment => "SETTLE_PAYMENT",
            ApiType::UpdateCredentials => "UPDATE_CREDENTIALS",
            ApiType::ValidateRegistration => "VALIDATE_REGISTRATION",
            ApiType::ValidateCustomer => "VALIDATE_CUSTOMER",
            ApiType::Voucher => "VOUCHER",
            ApiType::VoucherConfirmation => "VOUCHER_CONFIRMATION",
            ApiType::Activation => "ACTIVATION",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "API_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "BALANCE" => Some(Self::Balance),
            "CHECK_STATUS" => Some(Self::CheckStatus),
            "COMPLAINT" => Some(Self::Complaint),
            "HEART_BEAT" => Some(Self::HeartBeat),
            "INITIATE_REGISTRATION" => Some(Self::InitiateRegistration),
            "LIST_ACCOUNTS" => Some(Self::ListAccounts),
            "MANDATE" => Some(Self::Mandate),
            "MANDATE_CONFIRMATION" => Some(Self::MandateConfirmation),
            "SETTLE_PAYMENT" => Some(Self::SettlePayment),
            "UPDATE_CREDENTIALS" => Some(Self::UpdateCredentials),
            "VALIDATE_REGISTRATION" => Some(Self::ValidateRegistration),
            "VALIDATE_CUSTOMER" => Some(Self::ValidateCustomer),
            "VOUCHER" => Some(Self::Voucher),
            "VOUCHER_CONFIRMATION" => Some(Self::VoucherConfirmation),
            "ACTIVATION" => Some(Self::Activation),
            _ => None,
        }
    }
}
/// The type of a transaction. Every transaction processed by the issuer switch
/// will be one of these transaction types. Transaction types are associated with
/// a particular API type. This associated is documented with each value.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TransactionType {
    /// Unspecified transaction type.
    Unspecified = 0,
    /// Autoupdate transaction type. This is associated with the `CHECK_STATUS`
    /// API type. Maps to UPI's `AUTOUPDATE` type.
    Autoupdate = 1,
    /// Balance check transaction type. This is associated with the
    /// `BALANCE_ENQUIRY` API type. Maps to UPI's `BalChk` type.
    BalanceCheck = 2,
    /// Balance enquiry transaction type. This is associated with the
    /// `BALANCE_ENQUIRY` API type. Maps to UPI's `BalEnq` type.
    BalanceEnquiry = 3,
    /// Check status transaction type. This is associated with the `COMPLAINT` API
    /// type. Maps to UPI's `CHECKSTATUS` type.
    CheckStatus = 4,
    /// Check transaction type. This is associated with the `CHECK_STATUS` API
    /// type. Maps to UPI's `ChkTxn` type.
    CheckTransaction = 5,
    /// Complaint transaction type. This is associated with the `COMPLAINT` API
    /// type. Maps to UPI's `COMPLAINT` type.
    Complaint = 6,
    /// Create transaction type. This is associated with the `MANDATE` API type.
    /// Maps to UPI's `CREATE` type.
    Create = 7,
    /// Credit transaction type. This is associated with the `SETTLE_PAYMENT` API
    /// type. Maps to UPI's `CREDIT` type.
    Credit = 8,
    /// Debit transaction type. This is associated with the `SETTLE_PAYMENT` API
    /// type. Maps to UPI's `DEBIT` type.
    Debit = 9,
    /// Dispute transaction type. This is associated with the `COMPLAINT` API
    /// type. Maps to UPI's `DISPUTE` type.
    Dispute = 10,
    /// Heart beat transaction type. This is associated with `HEART_BEAT` API type.
    /// Maps to UPI's `Hbt` type.
    HeartBeat = 11,
    /// List accounts transaction type. This is associated with `LIST_ACCOUNTS` API
    /// type. Maps to UPI's `ListAccount` type.
    ListAccounts = 12,
    /// Mandate notification transaction type. This is associated with the
    /// `VALIDATE_CUSTOMER` API type. Maps to UPI's `MandateNotification` type.
    MandateNotification = 13,
    /// OTP transaction type. This is associated with the `INITIATE_REGISTRATION`
    /// API type. Maps to UPI's `Otp` type.
    Otp = 14,
    /// Pause transaction type. This is associated with the `MANDATE` API type.
    /// Maps to UPI's `PAUSE` type.
    Pause = 15,
    /// Redeem transaction type. This is associated with the `VOUCHER_CONFIRMATION`
    /// API type. Maps to UPI's `REDEEM` type.
    Redeem = 16,
    /// Refund transaction type. This is associated with the `COMPLAINT` API
    /// type. Maps to UPI's `REFUND` type.
    Refund = 17,
    /// Register mobile transaction type. This is associated with the
    /// `VALIDATE_REGISTRATION` API type. Maps to UPI's `RegMob` type.
    RegisterMobile = 18,
    /// Reversal transaction type. This is associated with the `SETTLE_PAYMENT` and
    /// `COMPLAINT` API types. Maps to UPI's `REVERSAL` type.
    Reversal = 19,
    /// Revoke transaction type. This is associated with the `MANDATE` API type.
    /// Maps to UPI's `REVOKE` type.
    Revoke = 20,
    /// Status update transaction type. This is associated with the `COMPLAINT` API
    /// type. Maps to UPI's `STATUSUPDATE` type.
    StatusUpdate = 21,
    /// Update transaction type. This is associated with the `MANDATE` API type.
    /// Maps to UPI's `UNPAUSE` type.
    Unpause = 22,
    /// Update transaction type. This is associated with the `MANDATE` API type.
    /// Maps to UPI's `UPDATE` type.
    Update = 23,
    /// Update credentials transaction type. This is associated with
    /// `UPDATE_CREDENTIALS` API type. Maps to UPI's `SetCre` type.
    UpdateCredentials = 24,
    /// Validate customer transaction type. This is associated with
    /// `VALIDATE_CUSTOMER` API type. Maps to UPI's `ValCust` type.
    ValidateCustomer = 25,
    /// Activation international transaction type. This is associated with
    /// 'ACTIVATION' API type. Maps to UPI's `International` type.
    ActivationInternational = 26,
    /// Activation UPI services transaction type. This is associated with
    /// 'ACTIVATION' API type. Maps to UPI's `UPI Services` type.
    ActivationUpiServices = 27,
}
impl TransactionType {
    /// 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 {
            TransactionType::Unspecified => "TRANSACTION_TYPE_UNSPECIFIED",
            TransactionType::Autoupdate => "TRANSACTION_TYPE_AUTOUPDATE",
            TransactionType::BalanceCheck => "TRANSACTION_TYPE_BALANCE_CHECK",
            TransactionType::BalanceEnquiry => "TRANSACTION_TYPE_BALANCE_ENQUIRY",
            TransactionType::CheckStatus => "TRANSACTION_TYPE_CHECK_STATUS",
            TransactionType::CheckTransaction => "TRANSACTION_TYPE_CHECK_TRANSACTION",
            TransactionType::Complaint => "TRANSACTION_TYPE_COMPLAINT",
            TransactionType::Create => "TRANSACTION_TYPE_CREATE",
            TransactionType::Credit => "TRANSACTION_TYPE_CREDIT",
            TransactionType::Debit => "TRANSACTION_TYPE_DEBIT",
            TransactionType::Dispute => "TRANSACTION_TYPE_DISPUTE",
            TransactionType::HeartBeat => "TRANSACTION_TYPE_HEART_BEAT",
            TransactionType::ListAccounts => "TRANSACTION_TYPE_LIST_ACCOUNTS",
            TransactionType::MandateNotification => {
                "TRANSACTION_TYPE_MANDATE_NOTIFICATION"
            }
            TransactionType::Otp => "TRANSACTION_TYPE_OTP",
            TransactionType::Pause => "TRANSACTION_TYPE_PAUSE",
            TransactionType::Redeem => "TRANSACTION_TYPE_REDEEM",
            TransactionType::Refund => "TRANSACTION_TYPE_REFUND",
            TransactionType::RegisterMobile => "TRANSACTION_TYPE_REGISTER_MOBILE",
            TransactionType::Reversal => "TRANSACTION_TYPE_REVERSAL",
            TransactionType::Revoke => "TRANSACTION_TYPE_REVOKE",
            TransactionType::StatusUpdate => "TRANSACTION_TYPE_STATUS_UPDATE",
            TransactionType::Unpause => "TRANSACTION_TYPE_UNPAUSE",
            TransactionType::Update => "TRANSACTION_TYPE_UPDATE",
            TransactionType::UpdateCredentials => "TRANSACTION_TYPE_UPDATE_CREDENTIALS",
            TransactionType::ValidateCustomer => "TRANSACTION_TYPE_VALIDATE_CUSTOMER",
            TransactionType::ActivationInternational => {
                "TRANSACTION_TYPE_ACTIVATION_INTERNATIONAL"
            }
            TransactionType::ActivationUpiServices => {
                "TRANSACTION_TYPE_ACTIVATION_UPI_SERVICES"
            }
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "TRANSACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "TRANSACTION_TYPE_AUTOUPDATE" => Some(Self::Autoupdate),
            "TRANSACTION_TYPE_BALANCE_CHECK" => Some(Self::BalanceCheck),
            "TRANSACTION_TYPE_BALANCE_ENQUIRY" => Some(Self::BalanceEnquiry),
            "TRANSACTION_TYPE_CHECK_STATUS" => Some(Self::CheckStatus),
            "TRANSACTION_TYPE_CHECK_TRANSACTION" => Some(Self::CheckTransaction),
            "TRANSACTION_TYPE_COMPLAINT" => Some(Self::Complaint),
            "TRANSACTION_TYPE_CREATE" => Some(Self::Create),
            "TRANSACTION_TYPE_CREDIT" => Some(Self::Credit),
            "TRANSACTION_TYPE_DEBIT" => Some(Self::Debit),
            "TRANSACTION_TYPE_DISPUTE" => Some(Self::Dispute),
            "TRANSACTION_TYPE_HEART_BEAT" => Some(Self::HeartBeat),
            "TRANSACTION_TYPE_LIST_ACCOUNTS" => Some(Self::ListAccounts),
            "TRANSACTION_TYPE_MANDATE_NOTIFICATION" => Some(Self::MandateNotification),
            "TRANSACTION_TYPE_OTP" => Some(Self::Otp),
            "TRANSACTION_TYPE_PAUSE" => Some(Self::Pause),
            "TRANSACTION_TYPE_REDEEM" => Some(Self::Redeem),
            "TRANSACTION_TYPE_REFUND" => Some(Self::Refund),
            "TRANSACTION_TYPE_REGISTER_MOBILE" => Some(Self::RegisterMobile),
            "TRANSACTION_TYPE_REVERSAL" => Some(Self::Reversal),
            "TRANSACTION_TYPE_REVOKE" => Some(Self::Revoke),
            "TRANSACTION_TYPE_STATUS_UPDATE" => Some(Self::StatusUpdate),
            "TRANSACTION_TYPE_UNPAUSE" => Some(Self::Unpause),
            "TRANSACTION_TYPE_UPDATE" => Some(Self::Update),
            "TRANSACTION_TYPE_UPDATE_CREDENTIALS" => Some(Self::UpdateCredentials),
            "TRANSACTION_TYPE_VALIDATE_CUSTOMER" => Some(Self::ValidateCustomer),
            "TRANSACTION_TYPE_ACTIVATION_INTERNATIONAL" => {
                Some(Self::ActivationInternational)
            }
            "TRANSACTION_TYPE_ACTIVATION_UPI_SERVICES" => {
                Some(Self::ActivationUpiServices)
            }
            _ => None,
        }
    }
}
/// XmlApiType specifies the API type of the request or response as specified in
/// the XML payload.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum XmlApiType {
    /// Unspecified API type.
    Unspecified = 0,
    /// Balance enquiry request API type. Maps to UPI's `ReqBalEnq` API.
    ReqBalEnq = 1,
    /// Check transaction request API type. Maps to UPI's `ReqChkTxn` API.
    ReqChkTxn = 2,
    /// Complaint request API type. Maps to UPI's `ReqComplaint` API.
    ReqComplaint = 3,
    /// Heart beat request API type. Maps to UPI's `ReqHbt` API.
    ReqHbt = 4,
    /// List accounts request API type. Maps to UPI's `ReqListAccount` API.
    ReqListAccount = 5,
    /// Mandate request  API. Maps to UPI's `ReqMandate` API.
    ReqMandate = 6,
    /// Mandate confirmation request API type. Maps to UPI's
    /// `ReqMandateConfirmation` API.
    ReqMandateConfirmation = 7,
    /// OTP request API. Maps to UPI's `ReqOtp` API.
    ReqOtp = 8,
    /// Payment settlement request API type. Maps to UPI's `ReqPay` API.
    ReqPay = 9,
    /// Register mobile request API type. Maps to UPI's `ReqRegMob` API.
    ReqRegMob = 10,
    /// Update credentials request API type. Maps to UPI's `ReqSetCre` API.
    ReqSetCre = 11,
    /// Validate customer request API type. Maps to UPI's `ReqValCust`.
    ReqValCust = 12,
    /// Create voucher request API type. Maps to UPI's `ReqVoucher`.
    ReqVoucher = 13,
    /// Voucher confirmation request API type. Maps to UPI's
    /// `ReqVoucherConfirmation` API.
    ReqVoucherConfirmation = 14,
    /// Transaction confirmation request API type. Maps to UPI's
    /// `ReqTxnConfirmation` API.
    ReqTxnConfirmation = 15,
    /// Balance enquiry response API type. Maps to UPI's `RespBalEnq` API.
    RespBalEnq = 16,
    /// Check transaction response API type. Maps to UPI's `RespChkTxn` API.
    RespChkTxn = 17,
    /// Complaint response API type. Maps to UPI's `RespComplaint` API.
    RespComplaint = 18,
    /// Heart beat response API type. Maps to UPI's `RespHbt` API.
    RespHbt = 19,
    /// List accounts response API type. Maps to UPI's `RespListAccount` API.
    RespListAccount = 20,
    /// Mandate response API type. Maps to UPI's `RespMandate` API.
    RespMandate = 21,
    /// Mandate confirmation response API type. Maps to UPI's
    /// `RespMandateConfirmation` API.
    RespMandateConfirmation = 22,
    /// OTP response API. Maps to UPI's `RespOtp` API.
    RespOtp = 23,
    /// Payment settlement response API type. Maps to UPI's `RespPay` API.
    RespPay = 24,
    /// Register mobile response API type. Maps to UPI's `RespRegMob` API.
    RespRegMob = 25,
    /// Update credentials response API type. Maps to UPI's `RespSetCre` API.
    RespSetCre = 26,
    /// Validate customer response API type. Maps to UPI's `RespValCust`.
    RespValCust = 27,
    /// Create voucher response API type. Maps to UPI's `RespVoucher`.
    RespVoucher = 28,
    /// Voucher confirmation responseAPI type. Maps to UPI's
    /// `RespVoucherConfirmation` API.
    RespVoucherConfirmation = 29,
    /// Transaction confirmation response API type. Maps to UPI's
    /// `RespTxnConfirmation` API.
    RespTxnConfirmation = 30,
    /// Activation request API type. Maps to UPI's `ReqActivation` API.
    ReqActivation = 31,
    /// Activation response API type. Maps to UPI's `RespActivation` API.
    RespActivation = 32,
}
impl XmlApiType {
    /// 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 {
            XmlApiType::Unspecified => "XML_API_TYPE_UNSPECIFIED",
            XmlApiType::ReqBalEnq => "REQ_BAL_ENQ",
            XmlApiType::ReqChkTxn => "REQ_CHK_TXN",
            XmlApiType::ReqComplaint => "REQ_COMPLAINT",
            XmlApiType::ReqHbt => "REQ_HBT",
            XmlApiType::ReqListAccount => "REQ_LIST_ACCOUNT",
            XmlApiType::ReqMandate => "REQ_MANDATE",
            XmlApiType::ReqMandateConfirmation => "REQ_MANDATE_CONFIRMATION",
            XmlApiType::ReqOtp => "REQ_OTP",
            XmlApiType::ReqPay => "REQ_PAY",
            XmlApiType::ReqRegMob => "REQ_REG_MOB",
            XmlApiType::ReqSetCre => "REQ_SET_CRE",
            XmlApiType::ReqValCust => "REQ_VAL_CUST",
            XmlApiType::ReqVoucher => "REQ_VOUCHER",
            XmlApiType::ReqVoucherConfirmation => "REQ_VOUCHER_CONFIRMATION",
            XmlApiType::ReqTxnConfirmation => "REQ_TXN_CONFIRMATION",
            XmlApiType::RespBalEnq => "RESP_BAL_ENQ",
            XmlApiType::RespChkTxn => "RESP_CHK_TXN",
            XmlApiType::RespComplaint => "RESP_COMPLAINT",
            XmlApiType::RespHbt => "RESP_HBT",
            XmlApiType::RespListAccount => "RESP_LIST_ACCOUNT",
            XmlApiType::RespMandate => "RESP_MANDATE",
            XmlApiType::RespMandateConfirmation => "RESP_MANDATE_CONFIRMATION",
            XmlApiType::RespOtp => "RESP_OTP",
            XmlApiType::RespPay => "RESP_PAY",
            XmlApiType::RespRegMob => "RESP_REG_MOB",
            XmlApiType::RespSetCre => "RESP_SET_CRE",
            XmlApiType::RespValCust => "RESP_VAL_CUST",
            XmlApiType::RespVoucher => "RESP_VOUCHER",
            XmlApiType::RespVoucherConfirmation => "RESP_VOUCHER_CONFIRMATION",
            XmlApiType::RespTxnConfirmation => "RESP_TXN_CONFIRMATION",
            XmlApiType::ReqActivation => "REQ_ACTIVATION",
            XmlApiType::RespActivation => "RESP_ACTIVATION",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "XML_API_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "REQ_BAL_ENQ" => Some(Self::ReqBalEnq),
            "REQ_CHK_TXN" => Some(Self::ReqChkTxn),
            "REQ_COMPLAINT" => Some(Self::ReqComplaint),
            "REQ_HBT" => Some(Self::ReqHbt),
            "REQ_LIST_ACCOUNT" => Some(Self::ReqListAccount),
            "REQ_MANDATE" => Some(Self::ReqMandate),
            "REQ_MANDATE_CONFIRMATION" => Some(Self::ReqMandateConfirmation),
            "REQ_OTP" => Some(Self::ReqOtp),
            "REQ_PAY" => Some(Self::ReqPay),
            "REQ_REG_MOB" => Some(Self::ReqRegMob),
            "REQ_SET_CRE" => Some(Self::ReqSetCre),
            "REQ_VAL_CUST" => Some(Self::ReqValCust),
            "REQ_VOUCHER" => Some(Self::ReqVoucher),
            "REQ_VOUCHER_CONFIRMATION" => Some(Self::ReqVoucherConfirmation),
            "REQ_TXN_CONFIRMATION" => Some(Self::ReqTxnConfirmation),
            "RESP_BAL_ENQ" => Some(Self::RespBalEnq),
            "RESP_CHK_TXN" => Some(Self::RespChkTxn),
            "RESP_COMPLAINT" => Some(Self::RespComplaint),
            "RESP_HBT" => Some(Self::RespHbt),
            "RESP_LIST_ACCOUNT" => Some(Self::RespListAccount),
            "RESP_MANDATE" => Some(Self::RespMandate),
            "RESP_MANDATE_CONFIRMATION" => Some(Self::RespMandateConfirmation),
            "RESP_OTP" => Some(Self::RespOtp),
            "RESP_PAY" => Some(Self::RespPay),
            "RESP_REG_MOB" => Some(Self::RespRegMob),
            "RESP_SET_CRE" => Some(Self::RespSetCre),
            "RESP_VAL_CUST" => Some(Self::RespValCust),
            "RESP_VOUCHER" => Some(Self::RespVoucher),
            "RESP_VOUCHER_CONFIRMATION" => Some(Self::RespVoucherConfirmation),
            "RESP_TXN_CONFIRMATION" => Some(Self::RespTxnConfirmation),
            "REQ_ACTIVATION" => Some(Self::ReqActivation),
            "RESP_ACTIVATION" => Some(Self::RespActivation),
            _ => None,
        }
    }
}
/// A rule that is executed by the issuer switch while processing an
/// API transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Rule {
    /// The unique identifier for this resource.
    /// Format: projects/{project}/rules/{rule}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The description of the rule.
    #[prost(string, tag = "2")]
    pub rule_description: ::prost::alloc::string::String,
    /// The API Type for which this rule gets executed. A value of
    /// `API_TYPE_UNSPECIFIED` indicates that the rule is executed for all API
    /// transactions.
    #[prost(enumeration = "ApiType", tag = "3")]
    pub api_type: i32,
    /// The transaction type for which this rule gets executed. A value of
    /// `TRANSACTION_TYPE_UNSPECIFIED` indicates that the rule is executed for
    /// all transaction types.
    #[prost(enumeration = "TransactionType", tag = "4")]
    pub transaction_type: i32,
}
/// The metadata associated with a rule. This defines data that are used by the
/// rule during execution.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuleMetadata {
    /// The unique identifier for this resource.
    /// Format: projects/{project}/rules/{rule}/metadata/{metadata}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The description of the rule metadata.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Type of rule metadata.
    #[prost(enumeration = "rule_metadata::Type", tag = "3")]
    pub r#type: i32,
}
/// Nested message and enum types in `RuleMetadata`.
pub mod rule_metadata {
    /// The type of metadata.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        /// Unspecified type.
        Unspecified = 0,
        /// List type. Indicates that the metadata contains a list of values which
        /// the rule requires for execution.
        List = 1,
    }
    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::List => "LIST",
            }
        }
        /// 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),
                "LIST" => Some(Self::List),
                _ => None,
            }
        }
    }
}
/// Represent a single value in a rule's metadata.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuleMetadataValue {
    /// Output only. The unique identifier for this resource.
    /// Format: projects/{project}/rules/{rule}/metadata/{metadata}/values/{value}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The value of the resource which could be of type string or
    /// AccountReference. The metadata values for rules
    /// BlockedPayeeAccountReqPayDebitRule, BlockedPayerAccountReqPayDebitRule,
    /// BlockedPayeeAccountReqPayCreditRule and BlockedPayerAccountReqPayCreditRule
    /// should be of type AccountReference. For all other rules, metadata values
    /// should be of type string.
    ///
    /// The length of the `value` field depends on the type of
    /// the value being used for the rule metadata. The following are the minimum
    /// and maximum lengths for the different types of values.
    ///
    /// Value Type | Minimum Length | Maximum Length |
    /// -------- | -------- | -------- |
    /// Bank account IFSC   | 11   | 11   |
    /// Bank account number   | 1   | 255  |
    /// Device identifier   | 1   | 255   |
    /// Mobile number   | 12   | 12  |
    /// Virtual private address (VPA)   | 3   | 255   |
    #[prost(oneof = "rule_metadata_value::Value", tags = "2, 3")]
    pub value: ::core::option::Option<rule_metadata_value::Value>,
}
/// Nested message and enum types in `RuleMetadataValue`.
pub mod rule_metadata_value {
    /// The value of the resource which could be of type string or
    /// AccountReference. The metadata values for rules
    /// BlockedPayeeAccountReqPayDebitRule, BlockedPayerAccountReqPayDebitRule,
    /// BlockedPayeeAccountReqPayCreditRule and BlockedPayerAccountReqPayCreditRule
    /// should be of type AccountReference. For all other rules, metadata values
    /// should be of type string.
    ///
    /// The length of the `value` field depends on the type of
    /// the value being used for the rule metadata. The following are the minimum
    /// and maximum lengths for the different types of values.
    ///
    /// Value Type | Minimum Length | Maximum Length |
    /// -------- | -------- | -------- |
    /// Bank account IFSC   | 11   | 11   |
    /// Bank account number   | 1   | 255  |
    /// Device identifier   | 1   | 255   |
    /// Mobile number   | 12   | 12  |
    /// Virtual private address (VPA)   | 3   | 255   |
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        /// The value for string metadata.
        #[prost(string, tag = "2")]
        Id(::prost::alloc::string::String),
        /// The value for account reference metadata.
        #[prost(message, tag = "3")]
        AccountReference(super::AccountReference),
    }
}
/// Request body for the `ListRules` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRulesRequest {
    /// Required. The parent resource must have the format of `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of rules to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 50,
    /// at most 50 rules will be returned. The maximum value is 1000; values above
    /// 1000 will be coerced to 1000.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListRulesRequest` call.
    /// Specify this parameter to retrieve the next page of rules.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Response body for the `ListRules` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRulesResponse {
    /// List of rules satisfying the specified filter criteria.
    #[prost(message, repeated, tag = "1")]
    pub rules: ::prost::alloc::vec::Vec<Rule>,
    /// Pass this token in a subsequent `ListRulesRequest` call to continue to list
    /// results. If all results have been returned, this field is an empty string
    /// or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Total number of rules matching request criteria across all pages.
    #[prost(int64, tag = "3")]
    pub total_size: i64,
}
/// Request body for the `ListRuleMetadata` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuleMetadataRequest {
    /// Required. The parent resource. The format is
    /// `projects/{project}/rules/{rule}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of rule metadata to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 50,
    /// at most 50 rule metadata will be returned. The maximum value is 1000;
    /// values above 1000 will be coerced to 1000.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListRuleMetadataRequest` call.
    /// Specify this parameter to retrieve the next page of rule metadata.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Response body for the `ListRuleMetadata` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuleMetadataResponse {
    /// List of rule metadata associated with the rule.
    #[prost(message, repeated, tag = "1")]
    pub rule_metadata: ::prost::alloc::vec::Vec<RuleMetadata>,
    /// Pass this token in a subsequent `ListRuleMetadataRequest` call to continue
    /// to list results. If all results have been returned, this field is an empty
    /// string or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Total number of rule metadata matching request criteria across all pages.
    #[prost(int64, tag = "3")]
    pub total_size: i64,
}
/// Request body for the `ListRuleMetadataValues` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuleMetadataValuesRequest {
    /// Required. The parent resource. The format is
    /// `projects/{project}/rules/{rule}/metadata/{metadata}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of metadata values to return. The service may return
    /// fewer than this value. If unspecified or if the specified value is less
    /// than 1, at most 50 rule metadata values will be returned. The maximum
    /// value is 1000; values above 1000 will be coerced to 1000.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token received from a previous `ListRuleMetadataValuesRequest`
    /// call. Specify this parameter to retrieve the next page of rule metadata
    /// values.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Response body for ListRuleMetadataValues. Contains a List of values for a
/// given rule metadata resource.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRuleMetadataValuesResponse {
    /// List of values for a given rule metadata resource identifier.
    #[prost(message, repeated, tag = "1")]
    pub rule_metadata_values: ::prost::alloc::vec::Vec<RuleMetadataValue>,
    /// Pass this token in a subsequent `ListRuleMetadataValuesRequest` call to
    /// continue to list results. If all results have been returned, this field is
    /// an empty string or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Request body for the `BatchCreateRuleMetadataValues` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateRuleMetadataValuesRequest {
    /// The parent resource shared by all ruleMetadataValue being created. The
    /// format is `projects/{project}/rules/{rule}/metadata/{metadata}`. The
    /// [CreateRuleMetadataValueRequest.parent][google.cloud.paymentgateway.issuerswitch.v1.CreateRuleMetadataValueRequest.parent]
    /// field in the
    /// [CreateRuleMetadataValueRequest][google.cloud.paymentgateway.issuerswitch.v1.CreateRuleMetadataValueRequest]
    /// messages contained in this request must match this field.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The request message specifying the resources to create.
    /// A maximum of 1000 RuleMetadataValues can be created in a batch.
    #[prost(message, repeated, tag = "2")]
    pub requests: ::prost::alloc::vec::Vec<CreateRuleMetadataValueRequest>,
}
/// Response body for the `BatchCreateRuleMetadataValues` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateRuleMetadataValuesResponse {
    /// List of RuleMetadataValue created.
    #[prost(message, repeated, tag = "1")]
    pub rule_metadata_value: ::prost::alloc::vec::Vec<RuleMetadataValue>,
}
/// Request for creating a single `RuleMetadataValue`.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateRuleMetadataValueRequest {
    /// Required. The parent resource where this RuleMetadataValue will be created.
    /// The format is `projects/{project}/rules/{rule}/metadata/{metadata}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The rule metadata value to create or add to a list.
    #[prost(message, optional, tag = "2")]
    pub rule_metadata_value: ::core::option::Option<RuleMetadataValue>,
}
/// Request body for the `BatchDeleteRuleMetadataValues` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteRuleMetadataValuesRequest {
    /// The parent resource shared by all RuleMetadataValues being deleted. The
    /// format is `projects/{project}/rules/{rule}/metadata/{metadata}`. If this is
    /// set, the parent of all of the RuleMetadataValues specified in the
    /// list of names must match this field.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The names of the rule metadata values to delete.
    /// A maximum of 1000 RuleMetadataValue can be deleted in a batch.
    /// Format: projects/{project}/rules/{rule}/metadata/{metadata}/values/{value}
    #[prost(string, repeated, tag = "2")]
    pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Generated client implementations.
pub mod issuer_switch_rules_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Manages rules used by the issuer switch's rules engine.
    #[derive(Debug, Clone)]
    pub struct IssuerSwitchRulesClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> IssuerSwitchRulesClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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,
        ) -> IssuerSwitchRulesClient<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> + std::marker::Send + std::marker::Sync,
        {
            IssuerSwitchRulesClient::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
        }
        /// List all rules that are applied on transactions by the issuer switch. Rules
        /// can be filtered on API type and transaction type.
        pub async fn list_rules(
            &mut self,
            request: impl tonic::IntoRequest<super::ListRulesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListRulesResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchRules/ListRules",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRules",
                        "ListRules",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List all rule metadata for a given rule identifier.
        pub async fn list_rule_metadata(
            &mut self,
            request: impl tonic::IntoRequest<super::ListRuleMetadataRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListRuleMetadataResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchRules/ListRuleMetadata",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRules",
                        "ListRuleMetadata",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List all metadata values for a rule metadata identifier.
        pub async fn list_rule_metadata_values(
            &mut self,
            request: impl tonic::IntoRequest<super::ListRuleMetadataValuesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListRuleMetadataValuesResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchRules/ListRuleMetadataValues",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRules",
                        "ListRuleMetadataValues",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create (add) multiple values to the list of values under the specified rule
        /// metadata resource.
        pub async fn batch_create_rule_metadata_values(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchCreateRuleMetadataValuesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchCreateRuleMetadataValuesResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchRules/BatchCreateRuleMetadataValues",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRules",
                        "BatchCreateRuleMetadataValues",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete (remove) multiple values from the list of values under the specified
        /// rules metadata resource.
        pub async fn batch_delete_rule_metadata_values(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteRuleMetadataValuesRequest>,
        ) -> std::result::Result<tonic::Response<()>, 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.paymentgateway.issuerswitch.v1.IssuerSwitchRules/BatchDeleteRuleMetadataValues",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRules",
                        "BatchDeleteRuleMetadataValues",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// A complaint processed by the issuer switch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Complaint {
    /// The name of the complaint. This uniquely identifies the complaint.
    /// Format of name is
    /// projects/{project_id}/complaints/{complaint_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The reason for raising the complaint. This maps adjustment flag
    /// and reason code for the complaint to `reqAdjFlag` and `reqAdjCode` in
    /// complaint request respectively while raising a complaint.
    #[prost(message, optional, tag = "2")]
    pub raise_complaint_adjustment: ::core::option::Option<RaiseComplaintAdjustment>,
    /// Required. Details required for raising / resolving a complaint.
    #[prost(message, optional, tag = "4")]
    pub details: ::core::option::Option<CaseDetails>,
    /// Output only. Response to the raised / resolved complaint.
    #[prost(message, optional, tag = "5")]
    pub response: ::core::option::Option<CaseResponse>,
    /// The reason for resolving the complaint. It provides adjustment values while
    /// resolving and for already resolved complaints. This maps adjustment flag
    /// and reason code for the complaint to `reqAdjFlag` and `reqAdjCode` in
    /// complaint request respectively when a complete resolution is done via
    /// Resolve Complaint API otherwise maps to `respAdjFlag` and `respAdjCode` in
    /// complaint response respectively when a complaint request from UPI is
    /// directly resolved by issuer switch.
    #[prost(message, optional, tag = "6")]
    pub resolve_complaint_adjustment: ::core::option::Option<ResolveComplaintAdjustment>,
}
/// Request for the `CreateComplaint` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateComplaintRequest {
    /// Required. The parent resource for the complaint. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The complaint to be raised.
    #[prost(message, optional, tag = "2")]
    pub complaint: ::core::option::Option<Complaint>,
}
/// Request for the `ResolveComplaint` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResolveComplaintRequest {
    /// Required. The complaint to be resolved.
    #[prost(message, optional, tag = "1")]
    pub complaint: ::core::option::Option<Complaint>,
}
/// A dispute processed by the issuer switch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dispute {
    /// The name of the dispute. This uniquely identifies the dispute.
    /// Format of name is
    /// projects/{project_id}/disputes/{dispute_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The reason for raising the dispute. This maps adjustment flag
    /// and reason code for the dispute to `reqAdjFlag` and `reqAdjCode` in
    /// complaint request respectively while raising a dispute.
    #[prost(message, optional, tag = "2")]
    pub raise_dispute_adjustment: ::core::option::Option<RaiseDisputeAdjustment>,
    /// Required. Details required for raising/resolving dispute.
    #[prost(message, optional, tag = "4")]
    pub details: ::core::option::Option<CaseDetails>,
    /// Output only. Response to the raised/resolved dispute.
    #[prost(message, optional, tag = "5")]
    pub response: ::core::option::Option<CaseResponse>,
    /// The reason for resolving the dispute. It provides adjustment values while
    /// resolving and for already resolved disputes. This maps adjustment flag
    /// and reason code for the dispute to `reqAdjFlag` and `reqAdjCode` in
    /// dispute request respectively while resolving a dispute.
    #[prost(message, optional, tag = "6")]
    pub resolve_dispute_adjustment: ::core::option::Option<ResolveDisputeAdjustment>,
}
/// Request for the `CreateDispute` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDisputeRequest {
    /// Required. The parent resource for the dispute. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The dispute to be raised.
    #[prost(message, optional, tag = "2")]
    pub dispute: ::core::option::Option<Dispute>,
}
/// Request for the `ResolveDispute` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResolveDisputeRequest {
    /// Required. The dispute to be resolved.
    #[prost(message, optional, tag = "1")]
    pub dispute: ::core::option::Option<Dispute>,
}
/// Details of original transaction.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OriginalTransaction {
    /// Required. Uniquely identifies the original transaction. This maps to the
    /// `Txn.Id` value of the original transaction in India's UPI system.
    #[prost(string, tag = "1")]
    pub transaction_id: ::prost::alloc::string::String,
    /// Required. Retrieval Reference Number (RRN) of the original transaction.
    #[prost(string, tag = "2")]
    pub retrieval_reference_number: ::prost::alloc::string::String,
    /// Timestamp of the original transaction request.
    #[prost(message, optional, tag = "3")]
    pub request_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Details of the complaint or dispute.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaseDetails {
    /// Required. Details of original transaction.
    #[prost(message, optional, tag = "1")]
    pub original_transaction: ::core::option::Option<OriginalTransaction>,
    /// Required. Initiator of the complaint / dispute.
    #[prost(enumeration = "TransactionSubType", tag = "2")]
    pub transaction_sub_type: i32,
    /// Required. The adjustment amount in URCS for the complaint / dispute. This
    /// maps to `reqAdjAmount` in complaint request.
    #[prost(message, optional, tag = "3")]
    pub amount: ::core::option::Option<super::super::super::super::r#type::Money>,
    /// The original response code which has been updated in the complaint
    /// Response. This should map to settlement response code currently available
    /// in URCS system.
    #[prost(string, tag = "4")]
    pub original_settlement_response_code: ::prost::alloc::string::String,
    /// Required. Set to true if the complaint / dispute belongs to current
    /// settlement cycle, false otherwise.
    #[prost(bool, tag = "5")]
    pub current_cycle: bool,
}
/// Response to the complaint or dispute.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaseResponse {
    /// Complaint Reference Number(CRN) sent by UPI as a reference against the
    /// generated complaint / dispute.
    #[prost(string, tag = "1")]
    pub complaint_reference_number: ::prost::alloc::string::String,
    /// The adjustment amount of the response. This maps to `adjAmt` in
    /// complaint response.
    #[prost(message, optional, tag = "2")]
    pub amount: ::core::option::Option<super::super::super::super::r#type::Money>,
    /// The adjustment flag in response to the complaint. This maps adjustment flag
    /// in URCS for the complaint transaction to `Resp.Ref.adjFlag` in complaint
    /// response.
    #[prost(string, tag = "3")]
    pub adjustment_flag: ::prost::alloc::string::String,
    /// The adjustment code in response to the complaint. This maps reason code in
    /// URCS for the complaint transaction to `Resp.Ref.adjCode` in complaint
    /// response.
    #[prost(string, tag = "4")]
    pub adjustment_code: ::prost::alloc::string::String,
    /// It defines the Adjustment Reference ID which has been updated in the
    /// complaint response. This maps to `adjRefID` in complaint response.
    #[prost(string, tag = "5")]
    pub adjustment_reference_id: ::prost::alloc::string::String,
    /// Adjustment Remarks. This maps to `adjRemarks` in complaint response.
    #[prost(string, tag = "6")]
    pub adjustment_remarks: ::prost::alloc::string::String,
    /// The Approval Reference Number. This maps to `approvalNum` in complaint
    /// response.
    #[prost(string, tag = "7")]
    pub approval_number: ::prost::alloc::string::String,
    /// Process Status of the transaction. This maps to `procStatus` in complaint
    /// response.
    #[prost(string, tag = "8")]
    pub process_status: ::prost::alloc::string::String,
    /// The adjustment timestamp when bank performs the adjustment for the received
    /// complaint request. This maps to `adjTs` in complaint response.
    #[prost(message, optional, tag = "9")]
    pub adjustment_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The result of the transaction.
    #[prost(enumeration = "case_response::Result", tag = "12")]
    pub result: i32,
    /// The details of the participant of the original financial transaction.
    #[prost(oneof = "case_response::Participant", tags = "10, 11")]
    pub participant: ::core::option::Option<case_response::Participant>,
}
/// Nested message and enum types in `CaseResponse`.
pub mod case_response {
    /// The status of the complaint or dispute transaction. This maps to `result`
    /// in complaint transaction response.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Result {
        /// Unspecified status.
        Unspecified = 0,
        /// The transaction has successfully completed.
        Success = 1,
        /// The transaction has failed.
        Failure = 2,
    }
    impl Result {
        /// 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 {
                Result::Unspecified => "RESULT_UNSPECIFIED",
                Result::Success => "SUCCESS",
                Result::Failure => "FAILURE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "RESULT_UNSPECIFIED" => Some(Self::Unspecified),
                "SUCCESS" => Some(Self::Success),
                "FAILURE" => Some(Self::Failure),
                _ => None,
            }
        }
    }
    /// The details of the participant of the original financial transaction.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Participant {
        /// The payer in the original financial transaction.
        #[prost(message, tag = "10")]
        Payer(super::Participant),
        /// The payee in the original financial transaction.
        #[prost(message, tag = "11")]
        Payee(super::Participant),
    }
}
/// The adjusment flag and reason code for raising complaint.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RaiseComplaintAdjustment {
    /// Required. The adjustment flag in URCS for the complaint transaction. This
    /// maps to `reqAdjFlag` in complaint request and `respAdjFlag` in complaint
    /// response.
    #[prost(enumeration = "raise_complaint_adjustment::AdjustmentFlag", tag = "1")]
    pub adjustment_flag: i32,
    /// Required. The adjustment code in URCS for the complaint transaction. This
    /// maps to `reqAdjCode` in complaint request.
    #[prost(enumeration = "raise_complaint_adjustment::ReasonCode", tag = "2")]
    pub adjustment_code: i32,
}
/// Nested message and enum types in `RaiseComplaintAdjustment`.
pub mod raise_complaint_adjustment {
    /// The adjusment flag for raising complaint.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AdjustmentFlag {
        /// Unspecified adjustment flag.
        Unspecified = 0,
        /// Complaint Raise. This flag maps to the `PBRB` adjustment flag as defined
        /// in NPCI's `UDIR` specification.
        Raise = 1,
    }
    impl AdjustmentFlag {
        /// 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 {
                AdjustmentFlag::Unspecified => "ADJUSTMENT_FLAG_UNSPECIFIED",
                AdjustmentFlag::Raise => "RAISE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ADJUSTMENT_FLAG_UNSPECIFIED" => Some(Self::Unspecified),
                "RAISE" => Some(Self::Raise),
                _ => None,
            }
        }
    }
    /// The reason for raising complaint.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ReasonCode {
        /// Unspecified reason code.
        Unspecified = 0,
        /// Customer account has not yet reversed for a declined pay transaction.
        /// This reason code maps to the `U005` reason code as defined in NPCI's
        /// `UDIR` specification.
        CustomerAccountNotReversed = 1,
        /// Goods / services are not provided for approved transaction.
        /// This reason code maps to the `U008` reason code as defined in NPCI's
        /// `UDIR` specification.
        GoodsServicesNotProvided = 2,
        /// Customer account not credited back for declined transaction. This
        /// reason code maps to the `U009` reason code as defined in NPCI's `UDIR`
        /// specification.
        CustomerAccountNotCreditedBack = 3,
        /// Beneficiary account is not credited for successful pay transaction. This
        /// reason code maps to the `U010` reason code as defined in NPCI's `UDIR`
        /// specification.
        BeneficiaryAccountNotCredited = 4,
        /// Credit not processed for cancelled or returned goods and services.
        /// This reason code maps to the `U021` reason code as defined in NPCI's
        /// `UDIR` specification.
        GoodsServicesCreditNotProcessed = 5,
        /// Account debited but transaction confirmation not received at merchant
        /// location. This reason code maps to the `U022` reason code as defined in
        /// NPCI's `UDIR` specification.
        MerchantNotReceivedConfirmation = 6,
        /// Paid by alternate means / Duplicate payment. This reason code maps to the
        /// `U023` reason code as defined in NPCI's `UDIR` specification.
        PaidByAlternateMeans = 7,
    }
    impl ReasonCode {
        /// 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 {
                ReasonCode::Unspecified => "REASON_CODE_UNSPECIFIED",
                ReasonCode::CustomerAccountNotReversed => "CUSTOMER_ACCOUNT_NOT_REVERSED",
                ReasonCode::GoodsServicesNotProvided => "GOODS_SERVICES_NOT_PROVIDED",
                ReasonCode::CustomerAccountNotCreditedBack => {
                    "CUSTOMER_ACCOUNT_NOT_CREDITED_BACK"
                }
                ReasonCode::BeneficiaryAccountNotCredited => {
                    "BENEFICIARY_ACCOUNT_NOT_CREDITED"
                }
                ReasonCode::GoodsServicesCreditNotProcessed => {
                    "GOODS_SERVICES_CREDIT_NOT_PROCESSED"
                }
                ReasonCode::MerchantNotReceivedConfirmation => {
                    "MERCHANT_NOT_RECEIVED_CONFIRMATION"
                }
                ReasonCode::PaidByAlternateMeans => "PAID_BY_ALTERNATE_MEANS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "REASON_CODE_UNSPECIFIED" => Some(Self::Unspecified),
                "CUSTOMER_ACCOUNT_NOT_REVERSED" => Some(Self::CustomerAccountNotReversed),
                "GOODS_SERVICES_NOT_PROVIDED" => Some(Self::GoodsServicesNotProvided),
                "CUSTOMER_ACCOUNT_NOT_CREDITED_BACK" => {
                    Some(Self::CustomerAccountNotCreditedBack)
                }
                "BENEFICIARY_ACCOUNT_NOT_CREDITED" => {
                    Some(Self::BeneficiaryAccountNotCredited)
                }
                "GOODS_SERVICES_CREDIT_NOT_PROCESSED" => {
                    Some(Self::GoodsServicesCreditNotProcessed)
                }
                "MERCHANT_NOT_RECEIVED_CONFIRMATION" => {
                    Some(Self::MerchantNotReceivedConfirmation)
                }
                "PAID_BY_ALTERNATE_MEANS" => Some(Self::PaidByAlternateMeans),
                _ => None,
            }
        }
    }
}
/// The adjusment flag and reason code for resolving the complaint.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolveComplaintAdjustment {
    /// Required. The adjustment flag in URCS for the complaint transaction. This
    /// maps to `reqAdjFlag` in complaint request and `respAdjFlag` in complaint
    /// response.
    #[prost(enumeration = "resolve_complaint_adjustment::AdjustmentFlag", tag = "1")]
    pub adjustment_flag: i32,
    /// Required. The adjustment code in URCS for the complaint transaction. This
    /// maps to `reqAdjCode` in complaint request.
    #[prost(enumeration = "resolve_complaint_adjustment::ReasonCode", tag = "2")]
    pub adjustment_code: i32,
}
/// Nested message and enum types in `ResolveComplaintAdjustment`.
pub mod resolve_complaint_adjustment {
    /// The adjusment flag for resolving the complaint.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AdjustmentFlag {
        /// Unspecified adjustment flag.
        Unspecified = 0,
        /// Debit Reversal Confirmation. This flag maps to the `DRC` adjustment flag
        /// as defined in NPCI's `UDIR` specification.
        DebitReversalConfirmation = 1,
        /// Return. This flag maps to the `RET` adjustment flag as defined in NPCI's
        /// `UDIR` specification.
        Return = 2,
        /// Refund Reversal Confirmation. This flag maps to the `RRC` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        RefundReversalConfirmation = 3,
        /// Transaction Credit Confirmation. This flag maps to the `TCC` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        TransactionCreditConfirmation = 4,
    }
    impl AdjustmentFlag {
        /// 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 {
                AdjustmentFlag::Unspecified => "ADJUSTMENT_FLAG_UNSPECIFIED",
                AdjustmentFlag::DebitReversalConfirmation => {
                    "DEBIT_REVERSAL_CONFIRMATION"
                }
                AdjustmentFlag::Return => "RETURN",
                AdjustmentFlag::RefundReversalConfirmation => {
                    "REFUND_REVERSAL_CONFIRMATION"
                }
                AdjustmentFlag::TransactionCreditConfirmation => {
                    "TRANSACTION_CREDIT_CONFIRMATION"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ADJUSTMENT_FLAG_UNSPECIFIED" => Some(Self::Unspecified),
                "DEBIT_REVERSAL_CONFIRMATION" => Some(Self::DebitReversalConfirmation),
                "RETURN" => Some(Self::Return),
                "REFUND_REVERSAL_CONFIRMATION" => Some(Self::RefundReversalConfirmation),
                "TRANSACTION_CREDIT_CONFIRMATION" => {
                    Some(Self::TransactionCreditConfirmation)
                }
                _ => None,
            }
        }
    }
    /// The complaint resolution reason code.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ReasonCode {
        /// Unspecified reason code.
        Unspecified = 0,
        /// Customer account has been reversed online for DRC dispute or beneficiary
        /// account has been credited online for TCC dispute. This reason code maps
        /// to the `102` reason code as defined in NPCI's `UDIR` specification.
        ComplaintResolvedOnline = 1,
        /// Customer account has been reversed now or manually post reconciliation
        /// for DRC dispute or beneficiary account has been credited now or manually
        /// post reconciliation for TCC dispute. This reason code maps to the `103`
        /// reason code as defined in NPCI's `UDIR` specification.
        ComplaintResolvedNowOrManually = 2,
        /// Online decline response failed. This reason code maps to the
        /// `104` reason code as defined in NPCI's `UDIR` specification.
        OriginalTransactionNotDone = 3,
        /// Account closed. This reason code maps to the `114` reason code for
        /// RET dispute as defined in NPCI's `UDIR` specification.
        RetAccountClosed = 4,
        /// Account does not exist. This reason code maps to the `115` reason code
        /// for RET dispute as defined in NPCI's `UDIR` specification.
        RetAccountDoesNotExist = 5,
        /// Party instructions. This reason code maps to the `116` reason code for
        /// RET dispute as defined in NPCI's `UDIR` specification.
        RetPartyInstructions = 6,
        /// NRI account. This reason code maps to the `117` reason code for RET
        /// dispute as defined in NPCI's `UDIR` specification.
        RetNriAccount = 7,
        /// Credit freezed. This reason code maps to the `118` reason code for RET
        /// dispute as defined in NPCI's `UDIR` specification.
        RetCreditFreezed = 8,
        /// Invalid beneficiary details. This reason code maps to the `119` reason
        /// code for RET dispute as defined in NPCI's `UDIR` specification.
        RetInvalidBeneficiaryDetails = 9,
        /// Any other reason. This reason code maps to the `120` reason code for RET
        /// dispute as defined in NPCI's `UDIR` specification.
        RetAnyOtherReason = 10,
        /// Beneficiary bank unable to credit their customer account.
        /// This reason code maps to the `1094` reason code for RET dispute as
        /// defined in NPCI's `UDIR` specification.
        RetBeneficiaryCannotCredit = 11,
        /// Account debited but transaction confirmation not received at merchant
        /// location. This reason code maps to the `1065` reason code for Credit
        /// adjustment and RET dispute as defined in NPCI's `UDIR` specification.
        RetMerchantNotReceivedConfirmation = 12,
        /// Customer account has been credited. This reason code maps to the `501`
        /// reason code for Refund reversal confirmation dispute as defined in NPCI's
        /// `UDIR` specification.
        RrcCustomerAccountCredited = 13,
    }
    impl ReasonCode {
        /// 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 {
                ReasonCode::Unspecified => "REASON_CODE_UNSPECIFIED",
                ReasonCode::ComplaintResolvedOnline => "COMPLAINT_RESOLVED_ONLINE",
                ReasonCode::ComplaintResolvedNowOrManually => {
                    "COMPLAINT_RESOLVED_NOW_OR_MANUALLY"
                }
                ReasonCode::OriginalTransactionNotDone => "ORIGINAL_TRANSACTION_NOT_DONE",
                ReasonCode::RetAccountClosed => "RET_ACCOUNT_CLOSED",
                ReasonCode::RetAccountDoesNotExist => "RET_ACCOUNT_DOES_NOT_EXIST",
                ReasonCode::RetPartyInstructions => "RET_PARTY_INSTRUCTIONS",
                ReasonCode::RetNriAccount => "RET_NRI_ACCOUNT",
                ReasonCode::RetCreditFreezed => "RET_CREDIT_FREEZED",
                ReasonCode::RetInvalidBeneficiaryDetails => {
                    "RET_INVALID_BENEFICIARY_DETAILS"
                }
                ReasonCode::RetAnyOtherReason => "RET_ANY_OTHER_REASON",
                ReasonCode::RetBeneficiaryCannotCredit => "RET_BENEFICIARY_CANNOT_CREDIT",
                ReasonCode::RetMerchantNotReceivedConfirmation => {
                    "RET_MERCHANT_NOT_RECEIVED_CONFIRMATION"
                }
                ReasonCode::RrcCustomerAccountCredited => "RRC_CUSTOMER_ACCOUNT_CREDITED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "REASON_CODE_UNSPECIFIED" => Some(Self::Unspecified),
                "COMPLAINT_RESOLVED_ONLINE" => Some(Self::ComplaintResolvedOnline),
                "COMPLAINT_RESOLVED_NOW_OR_MANUALLY" => {
                    Some(Self::ComplaintResolvedNowOrManually)
                }
                "ORIGINAL_TRANSACTION_NOT_DONE" => Some(Self::OriginalTransactionNotDone),
                "RET_ACCOUNT_CLOSED" => Some(Self::RetAccountClosed),
                "RET_ACCOUNT_DOES_NOT_EXIST" => Some(Self::RetAccountDoesNotExist),
                "RET_PARTY_INSTRUCTIONS" => Some(Self::RetPartyInstructions),
                "RET_NRI_ACCOUNT" => Some(Self::RetNriAccount),
                "RET_CREDIT_FREEZED" => Some(Self::RetCreditFreezed),
                "RET_INVALID_BENEFICIARY_DETAILS" => {
                    Some(Self::RetInvalidBeneficiaryDetails)
                }
                "RET_ANY_OTHER_REASON" => Some(Self::RetAnyOtherReason),
                "RET_BENEFICIARY_CANNOT_CREDIT" => Some(Self::RetBeneficiaryCannotCredit),
                "RET_MERCHANT_NOT_RECEIVED_CONFIRMATION" => {
                    Some(Self::RetMerchantNotReceivedConfirmation)
                }
                "RRC_CUSTOMER_ACCOUNT_CREDITED" => Some(Self::RrcCustomerAccountCredited),
                _ => None,
            }
        }
    }
}
/// The adjusment flag and reason code for raising dispute.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RaiseDisputeAdjustment {
    /// Required. The adjustment flag in URCS for the complaint transaction. This
    /// maps to `reqAdjFlag` in dispute request and `respAdjFlag` in dispute
    /// response.
    #[prost(enumeration = "raise_dispute_adjustment::AdjustmentFlag", tag = "1")]
    pub adjustment_flag: i32,
    /// Required. The adjustment code in URCS for the complaint transaction. This
    /// maps to `reqAdjCode` in dispute request.
    #[prost(enumeration = "raise_dispute_adjustment::ReasonCode", tag = "2")]
    pub adjustment_code: i32,
}
/// Nested message and enum types in `RaiseDisputeAdjustment`.
pub mod raise_dispute_adjustment {
    /// The adjusment flag for raising dispute.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AdjustmentFlag {
        /// Unspecified adjustment flag.
        Unspecified = 0,
        /// Chargeback Raise. This flag maps to the `B` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ChargebackRaise = 1,
        /// Fraud Chargeback Raise. This flag maps to the `FC` adjustment flag
        /// as defined in NPCI's `UDIR` specification.
        FraudChargebackRaise = 2,
        /// Wrong Credit Chargeback Raise. This flag maps to the `WC` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        WrongCreditChargebackRaise = 3,
        /// Deferred Chargeback Raise. This flag maps to the `FB` adjustment flag
        /// as defined in NPCI's `UDIR` specification.
        DeferredChargebackRaise = 4,
        /// Pre-Arbitration Raise. This flag maps to the `P` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        PreArbitrationRaise = 5,
        /// Deferred Pre-Arbitration Raise. This flag maps to the `FP` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        DeferredPreArbitrationRaise = 6,
        /// Arbitration Raise. This flag maps to the `AR` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ArbitrationRaise = 7,
        /// Deferred Arbitration Raise. This flag maps to the `FAR` adjustment flag
        /// as defined in NPCI's `UDIR` specification.
        DeferredArbitrationRaise = 8,
    }
    impl AdjustmentFlag {
        /// 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 {
                AdjustmentFlag::Unspecified => "ADJUSTMENT_FLAG_UNSPECIFIED",
                AdjustmentFlag::ChargebackRaise => "CHARGEBACK_RAISE",
                AdjustmentFlag::FraudChargebackRaise => "FRAUD_CHARGEBACK_RAISE",
                AdjustmentFlag::WrongCreditChargebackRaise => {
                    "WRONG_CREDIT_CHARGEBACK_RAISE"
                }
                AdjustmentFlag::DeferredChargebackRaise => "DEFERRED_CHARGEBACK_RAISE",
                AdjustmentFlag::PreArbitrationRaise => "PRE_ARBITRATION_RAISE",
                AdjustmentFlag::DeferredPreArbitrationRaise => {
                    "DEFERRED_PRE_ARBITRATION_RAISE"
                }
                AdjustmentFlag::ArbitrationRaise => "ARBITRATION_RAISE",
                AdjustmentFlag::DeferredArbitrationRaise => "DEFERRED_ARBITRATION_RAISE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ADJUSTMENT_FLAG_UNSPECIFIED" => Some(Self::Unspecified),
                "CHARGEBACK_RAISE" => Some(Self::ChargebackRaise),
                "FRAUD_CHARGEBACK_RAISE" => Some(Self::FraudChargebackRaise),
                "WRONG_CREDIT_CHARGEBACK_RAISE" => Some(Self::WrongCreditChargebackRaise),
                "DEFERRED_CHARGEBACK_RAISE" => Some(Self::DeferredChargebackRaise),
                "PRE_ARBITRATION_RAISE" => Some(Self::PreArbitrationRaise),
                "DEFERRED_PRE_ARBITRATION_RAISE" => {
                    Some(Self::DeferredPreArbitrationRaise)
                }
                "ARBITRATION_RAISE" => Some(Self::ArbitrationRaise),
                "DEFERRED_ARBITRATION_RAISE" => Some(Self::DeferredArbitrationRaise),
                _ => None,
            }
        }
    }
    /// The reason for raising dispute.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ReasonCode {
        /// Unspecified reason code.
        Unspecified = 0,
        /// Remitter account is debited but beneficiary account is not credited.
        /// This reason code maps to the `108` reason code as defined in
        /// NPCI's `UDIR` specification.
        ChargebackRaiseRemitterDebitedBeneficiaryNotCredited = 1,
        /// Remitter bank customer still disputes that beneficiary account is not
        /// credited. This reason code maps to the `109` reason code as defined in
        /// NPCI's `UDIR` specification.
        PreArbitrationRaiseBeneficiaryNotCredited = 2,
        /// TCC has been raised but customer still complaining that beneficiary
        /// account is not credited. This reason code maps to the `121` reason code
        /// as defined in NPCI's `UDIR` specification.
        DeferredChargebackRaiseBeneficiaryNotCredited = 3,
        /// Customer is still complaining for not crediting the beneficiary
        /// customer account. This reason code maps to the `124` reason code as
        /// defined in NPCI's `UDIR` specification.
        DeferredPreArbitrationRaiseBeneficiaryNotCredited = 4,
        /// Customer is complaining even after raising Deferred Chargeback and
        /// Pre-Arbitration on Deferred Chargeback where both have been rejected by
        /// beneficiary bank. This reason code maps to the `127` reason code as
        /// defined in NPCI's `UDIR` specification.
        DeferredArbitrationRaiseDeferredChargebackPreArbitrationRejected = 5,
        /// Chargeback on fraudulent transaction. This reason code maps to the `128`
        /// reason code as defined in NPCI's `UDIR` specification.
        ChargebackOnFraud = 6,
        /// Credit not processed for cancelled or returned goods and services. This
        /// reason code maps to the `1061` reason code as defined in NPCI's `UDIR`
        /// specification.
        GoodsServicesCreditNotProcessed = 7,
        /// Goods and services not as described / defective. This reason code maps to
        /// the `1062` reason code as defined in NPCI's `UDIR` specification.
        GoodsServicesDefective = 8,
        /// Paid by alternate means. This reason code maps to the `1063` reason code
        /// as defined in NPCI's `UDIR` specification.
        PaidByAlternateMeans = 9,
        /// Goods or services not provided / not received. This reason code maps to
        /// the `1064` reason code as defined in NPCI's `UDIR` specification.
        GoodsServicesNotReceived = 10,
        /// Account debited but transaction confirmation not received at merchant
        /// location. This reason code maps to the `1065` reason code for chargeback
        /// raise and deferred chargeback raise as defined in NPCI's `UDIR`
        /// specification.
        MerchantNotReceivedConfirmation = 11,
        /// Transaction not steeled within the specified timeframes. This reason code
        /// maps to the `1081` reason code as defined in NPCI's `UDIR` specification.
        TransactionNotSteeled = 12,
        /// Duplicate / Multiple transaction. This reason code maps to the `1084`
        /// reason code as defined in NPCI's `UDIR` specification.
        DuplicateTransaction = 13,
        /// Card holder was charged more than the transaction amount.
        /// This reason code maps to the `1085` reason code for Chargeback raise
        /// dispute as defined in NPCI's `UDIR` specification.
        ChargebackCardHolderChargedMore = 14,
        /// Customer is still claiming that services are not delivered. This reason
        /// code maps to the `1097` reason code as defined in NPCI's `UDIR`
        /// specification.
        CustomerClaimingGoodsServicesNotDelivered = 15,
        /// Both the parties denied to agree. This reason code maps to the `1100`
        /// reason code as defined in NPCI's `UDIR` specification.
        PartiesDenied = 16,
        /// Customer transferred funds to the unintended beneficiary account. This
        /// reason code maps to the `WC1` reason code as defined in NPCI's `UDIR`
        /// specification.
        FundsTransferredToUnintendedBeneficiary = 17,
    }
    impl ReasonCode {
        /// 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 {
                ReasonCode::Unspecified => "REASON_CODE_UNSPECIFIED",
                ReasonCode::ChargebackRaiseRemitterDebitedBeneficiaryNotCredited => {
                    "CHARGEBACK_RAISE_REMITTER_DEBITED_BENEFICIARY_NOT_CREDITED"
                }
                ReasonCode::PreArbitrationRaiseBeneficiaryNotCredited => {
                    "PRE_ARBITRATION_RAISE_BENEFICIARY_NOT_CREDITED"
                }
                ReasonCode::DeferredChargebackRaiseBeneficiaryNotCredited => {
                    "DEFERRED_CHARGEBACK_RAISE_BENEFICIARY_NOT_CREDITED"
                }
                ReasonCode::DeferredPreArbitrationRaiseBeneficiaryNotCredited => {
                    "DEFERRED_PRE_ARBITRATION_RAISE_BENEFICIARY_NOT_CREDITED"
                }
                ReasonCode::DeferredArbitrationRaiseDeferredChargebackPreArbitrationRejected => {
                    "DEFERRED_ARBITRATION_RAISE_DEFERRED_CHARGEBACK_PRE_ARBITRATION_REJECTED"
                }
                ReasonCode::ChargebackOnFraud => "CHARGEBACK_ON_FRAUD",
                ReasonCode::GoodsServicesCreditNotProcessed => {
                    "GOODS_SERVICES_CREDIT_NOT_PROCESSED"
                }
                ReasonCode::GoodsServicesDefective => "GOODS_SERVICES_DEFECTIVE",
                ReasonCode::PaidByAlternateMeans => "PAID_BY_ALTERNATE_MEANS",
                ReasonCode::GoodsServicesNotReceived => "GOODS_SERVICES_NOT_RECEIVED",
                ReasonCode::MerchantNotReceivedConfirmation => {
                    "MERCHANT_NOT_RECEIVED_CONFIRMATION"
                }
                ReasonCode::TransactionNotSteeled => "TRANSACTION_NOT_STEELED",
                ReasonCode::DuplicateTransaction => "DUPLICATE_TRANSACTION",
                ReasonCode::ChargebackCardHolderChargedMore => {
                    "CHARGEBACK_CARD_HOLDER_CHARGED_MORE"
                }
                ReasonCode::CustomerClaimingGoodsServicesNotDelivered => {
                    "CUSTOMER_CLAIMING_GOODS_SERVICES_NOT_DELIVERED"
                }
                ReasonCode::PartiesDenied => "PARTIES_DENIED",
                ReasonCode::FundsTransferredToUnintendedBeneficiary => {
                    "FUNDS_TRANSFERRED_TO_UNINTENDED_BENEFICIARY"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "REASON_CODE_UNSPECIFIED" => Some(Self::Unspecified),
                "CHARGEBACK_RAISE_REMITTER_DEBITED_BENEFICIARY_NOT_CREDITED" => {
                    Some(Self::ChargebackRaiseRemitterDebitedBeneficiaryNotCredited)
                }
                "PRE_ARBITRATION_RAISE_BENEFICIARY_NOT_CREDITED" => {
                    Some(Self::PreArbitrationRaiseBeneficiaryNotCredited)
                }
                "DEFERRED_CHARGEBACK_RAISE_BENEFICIARY_NOT_CREDITED" => {
                    Some(Self::DeferredChargebackRaiseBeneficiaryNotCredited)
                }
                "DEFERRED_PRE_ARBITRATION_RAISE_BENEFICIARY_NOT_CREDITED" => {
                    Some(Self::DeferredPreArbitrationRaiseBeneficiaryNotCredited)
                }
                "DEFERRED_ARBITRATION_RAISE_DEFERRED_CHARGEBACK_PRE_ARBITRATION_REJECTED" => {
                    Some(
                        Self::DeferredArbitrationRaiseDeferredChargebackPreArbitrationRejected,
                    )
                }
                "CHARGEBACK_ON_FRAUD" => Some(Self::ChargebackOnFraud),
                "GOODS_SERVICES_CREDIT_NOT_PROCESSED" => {
                    Some(Self::GoodsServicesCreditNotProcessed)
                }
                "GOODS_SERVICES_DEFECTIVE" => Some(Self::GoodsServicesDefective),
                "PAID_BY_ALTERNATE_MEANS" => Some(Self::PaidByAlternateMeans),
                "GOODS_SERVICES_NOT_RECEIVED" => Some(Self::GoodsServicesNotReceived),
                "MERCHANT_NOT_RECEIVED_CONFIRMATION" => {
                    Some(Self::MerchantNotReceivedConfirmation)
                }
                "TRANSACTION_NOT_STEELED" => Some(Self::TransactionNotSteeled),
                "DUPLICATE_TRANSACTION" => Some(Self::DuplicateTransaction),
                "CHARGEBACK_CARD_HOLDER_CHARGED_MORE" => {
                    Some(Self::ChargebackCardHolderChargedMore)
                }
                "CUSTOMER_CLAIMING_GOODS_SERVICES_NOT_DELIVERED" => {
                    Some(Self::CustomerClaimingGoodsServicesNotDelivered)
                }
                "PARTIES_DENIED" => Some(Self::PartiesDenied),
                "FUNDS_TRANSFERRED_TO_UNINTENDED_BENEFICIARY" => {
                    Some(Self::FundsTransferredToUnintendedBeneficiary)
                }
                _ => None,
            }
        }
    }
}
/// The adjusment flag and reason code for resolving the dispute.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolveDisputeAdjustment {
    /// Required. The adjustment flag in URCS for the complaint transaction. This
    /// maps to `reqAdjFlag` in dispute request and `respAdjFlag` in dispute
    /// response.
    #[prost(enumeration = "resolve_dispute_adjustment::AdjustmentFlag", tag = "1")]
    pub adjustment_flag: i32,
    /// Required. The adjustment code in URCS for the complaint transaction. This
    /// maps to `reqAdjCode` in dispute request.
    #[prost(enumeration = "resolve_dispute_adjustment::ReasonCode", tag = "2")]
    pub adjustment_code: i32,
}
/// Nested message and enum types in `ResolveDisputeAdjustment`.
pub mod resolve_dispute_adjustment {
    /// The adjusment flag for resolving the dispute.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AdjustmentFlag {
        /// Unspecified adjustment flag.
        Unspecified = 0,
        /// Re-presentment Raise. This flag maps to the `R` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        RePresentmentRaise = 1,
        /// Deferred Re-presentment Raise. This flag maps to the `FR` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        DeferredRePresentmentRaise = 2,
        /// Chargeback Acceptance. This flag maps to the `A` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ChargebackAcceptance = 3,
        /// Deferred Chargeback Acceptance. This flag maps to the `FA` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        DeferredChargebackAcceptance = 4,
        /// Pre-Arbitration Acceptance. This flag maps to the `AP` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        PreArbitrationAcceptance = 5,
        /// Deferred Pre-Arbitration Acceptance. This flag maps to the `FAP`
        /// adjustment flag as defined in NPCI's `UDIR` specification.
        DeferredPreArbitrationAcceptance = 6,
        /// Pre-Arbitration Declined. This flag maps to the `PR` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        PreArbitrationDeclined = 7,
        /// Deferred Pre-Arbitration Declined. This flag maps to the `FPR` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        DeferredPreArbitrationDeclined = 8,
        /// Arbitration Acceptance. This flag maps to the `ACA` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ArbitrationAcceptance = 9,
        /// Arbitration Continuation. This flag maps to the `ACC` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ArbitrationContinuation = 10,
        /// Arbitration Withdrawn. This flag maps to the `ACW` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ArbitrationWithdrawn = 11,
        /// Arbitration Verdict. This flag maps to the `ACV` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        ArbitrationVerdict = 12,
        /// Credit Adjustment. This flag maps to the `C` adjustment flag as
        /// defined in NPCI's `UDIR` specification.
        CreditAdjustment = 13,
        /// Fraud Chargeback Representment. This flag maps to the `FCR` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        FraudChargebackRepresentment = 14,
        /// Fraud Chargeback Accept. This flag maps to the `FCA` adjustment flag
        /// as defined in NPCI's `UDIR` specification.
        FraudChargebackAccept = 15,
        /// Wrong Credit Representment. This flag maps to the `WR` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        WrongCreditRepresentment = 16,
        /// Wrong Credit Chargeback Acceptance. This flag maps to the `WA` adjustment
        /// flag as defined in NPCI's `UDIR` specification.
        WrongCreditChargebackAcceptance = 17,
        /// Manual Adjustment. This flag maps to the `MA` adjustment flag as defined
        /// in NPCI's `UDIR` specification.
        ManualAdjustment = 18,
    }
    impl AdjustmentFlag {
        /// 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 {
                AdjustmentFlag::Unspecified => "ADJUSTMENT_FLAG_UNSPECIFIED",
                AdjustmentFlag::RePresentmentRaise => "RE_PRESENTMENT_RAISE",
                AdjustmentFlag::DeferredRePresentmentRaise => {
                    "DEFERRED_RE_PRESENTMENT_RAISE"
                }
                AdjustmentFlag::ChargebackAcceptance => "CHARGEBACK_ACCEPTANCE",
                AdjustmentFlag::DeferredChargebackAcceptance => {
                    "DEFERRED_CHARGEBACK_ACCEPTANCE"
                }
                AdjustmentFlag::PreArbitrationAcceptance => "PRE_ARBITRATION_ACCEPTANCE",
                AdjustmentFlag::DeferredPreArbitrationAcceptance => {
                    "DEFERRED_PRE_ARBITRATION_ACCEPTANCE"
                }
                AdjustmentFlag::PreArbitrationDeclined => "PRE_ARBITRATION_DECLINED",
                AdjustmentFlag::DeferredPreArbitrationDeclined => {
                    "DEFERRED_PRE_ARBITRATION_DECLINED"
                }
                AdjustmentFlag::ArbitrationAcceptance => "ARBITRATION_ACCEPTANCE",
                AdjustmentFlag::ArbitrationContinuation => "ARBITRATION_CONTINUATION",
                AdjustmentFlag::ArbitrationWithdrawn => "ARBITRATION_WITHDRAWN",
                AdjustmentFlag::ArbitrationVerdict => "ARBITRATION_VERDICT",
                AdjustmentFlag::CreditAdjustment => "CREDIT_ADJUSTMENT",
                AdjustmentFlag::FraudChargebackRepresentment => {
                    "FRAUD_CHARGEBACK_REPRESENTMENT"
                }
                AdjustmentFlag::FraudChargebackAccept => "FRAUD_CHARGEBACK_ACCEPT",
                AdjustmentFlag::WrongCreditRepresentment => "WRONG_CREDIT_REPRESENTMENT",
                AdjustmentFlag::WrongCreditChargebackAcceptance => {
                    "WRONG_CREDIT_CHARGEBACK_ACCEPTANCE"
                }
                AdjustmentFlag::ManualAdjustment => "MANUAL_ADJUSTMENT",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "ADJUSTMENT_FLAG_UNSPECIFIED" => Some(Self::Unspecified),
                "RE_PRESENTMENT_RAISE" => Some(Self::RePresentmentRaise),
                "DEFERRED_RE_PRESENTMENT_RAISE" => Some(Self::DeferredRePresentmentRaise),
                "CHARGEBACK_ACCEPTANCE" => Some(Self::ChargebackAcceptance),
                "DEFERRED_CHARGEBACK_ACCEPTANCE" => {
                    Some(Self::DeferredChargebackAcceptance)
                }
                "PRE_ARBITRATION_ACCEPTANCE" => Some(Self::PreArbitrationAcceptance),
                "DEFERRED_PRE_ARBITRATION_ACCEPTANCE" => {
                    Some(Self::DeferredPreArbitrationAcceptance)
                }
                "PRE_ARBITRATION_DECLINED" => Some(Self::PreArbitrationDeclined),
                "DEFERRED_PRE_ARBITRATION_DECLINED" => {
                    Some(Self::DeferredPreArbitrationDeclined)
                }
                "ARBITRATION_ACCEPTANCE" => Some(Self::ArbitrationAcceptance),
                "ARBITRATION_CONTINUATION" => Some(Self::ArbitrationContinuation),
                "ARBITRATION_WITHDRAWN" => Some(Self::ArbitrationWithdrawn),
                "ARBITRATION_VERDICT" => Some(Self::ArbitrationVerdict),
                "CREDIT_ADJUSTMENT" => Some(Self::CreditAdjustment),
                "FRAUD_CHARGEBACK_REPRESENTMENT" => {
                    Some(Self::FraudChargebackRepresentment)
                }
                "FRAUD_CHARGEBACK_ACCEPT" => Some(Self::FraudChargebackAccept),
                "WRONG_CREDIT_REPRESENTMENT" => Some(Self::WrongCreditRepresentment),
                "WRONG_CREDIT_CHARGEBACK_ACCEPTANCE" => {
                    Some(Self::WrongCreditChargebackAcceptance)
                }
                "MANUAL_ADJUSTMENT" => Some(Self::ManualAdjustment),
                _ => None,
            }
        }
    }
    /// The dispute resolution reason code.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ReasonCode {
        /// Unspecified reason code.
        Unspecified = 0,
        /// Beneficiary bank unable to credit their customer account for Chargeback
        /// Acceptance dispute or duplicate processing for Pre Arbitration Acceptance
        /// dispute. This reason code maps to the `111` reason code as defined in
        /// NPCI's `UDIR` specification.
        ChargebackBeneficiaryCannotCreditOrPreArbitrationDuplicateProcess = 1,
        /// Beneficiary account has been credited online. This reason code maps to
        /// the `112` reason code for Pre-arbitration declined dispute as defined in
        /// NPCI's `UDIR` specification.
        PreArbitrationDeclinedBeneficiaryCreditedOnline = 3,
        /// Beneficiary account has been credited manually post reconciliation. This
        /// reason code maps to the `113` reason code for Pre-arbitration declined
        /// dispute as defined in NPCI's `UDIR` specification.
        PreArbitrationDeclinedBeneficiaryCreditedManually = 4,
        /// Customer account is not credited, TCC raised inadvertently. This reason
        /// code maps to the `122` reason code as defined in NPCI's `UDIR`
        /// specification.
        DeferredChargebackAcceptanceAccountNotCreditedTccRaised = 5,
        /// Customer account is credited successfully and TCC raised accordingly.
        /// This reason code maps to the `123` reason code as defined in NPCI's
        /// `UDIR` specification.
        DeferredRePresentmentRaiseAccountCreditedTccRaised = 6,
        /// Customer account is not credited, TCC and Re-Presentment raised
        /// inadvertently. This reason code maps to the `125` reason code as defined
        /// in NPCI's `UDIR` specification.
        DeferredPreArbitrationAcceptanceAccountNotCredited = 7,
        /// Customer account is credited successfully and TCC and Re-Presentment
        /// raised accordingly. This reason code maps to the `126` reason code as
        /// defined in NPCI's `UDIR` specification.
        DeferredPreArbitrationDeclinedAccountCredited = 8,
        /// Amount has been recovered successfully from the fraudulent customer
        /// account. This reason code maps to the `129` reason code as defined
        /// in NPCI's `UDIR` specification.
        FraudChargebackAcceptAmountRecoveredFromFraudulentAccount = 9,
        /// Lien marked however, customer account is not having sufficient balance to
        /// debit. This reason code maps to the `130` reason code for
        /// Fraud chargeback representment dispute as defined in NPCI's `UDIR`
        /// specification.
        FraudChargebackRepresentmentLienMarkedInsufficientBalance = 10,
        /// FIR Copy not provided for the disputed transaction. This reason code maps
        /// to the `131` reason code as defined in NPCI's `UDIR` specification.
        FraudChargebackRepresentmentFirNotProvided = 11,
        /// Other reason for Fraud chargeback representment dispute. This reason code
        /// maps to the `132` reason code as defined in NPCI's `UDIR` specification.
        FraudChargebackRepresentmentReasonOthers = 12,
        /// Beneficiary account credited online. This reason code maps to the `208`
        /// reason code for Re-presentment raise dispute as defined in NPCI's `UDIR`
        /// specification.
        RePresentmentRaiseBeneficiaryCreditedOnline = 13,
        /// Beneficiary account credited manually post reconciliation. This reason
        /// code maps to the `209` reason code for Re-presentment raise dispute as
        /// defined in NPCI's `UDIR` specification.
        RePresentmentRaiseBeneficiaryCreditedManually = 14,
        /// Credit not processed for cancelled or returned goods and services. This
        /// reason code maps to the `1061` reason code as defined in NPCI's `UDIR`
        /// specification.
        CreditAdjustmentGoodsServicesCreditNotProcessed = 15,
        /// Goods and Services not as described / defective. This reason code maps to
        /// the `1062` reason code as defined in NPCI's `UDIR` specification.
        CreditAdjustmentGoodsServicesDefective = 16,
        /// Paid by alternate means. This reason code maps to the `1063` reason code
        /// as defined in NPCI's `UDIR` specification.
        CreditAdjustmentPaidByAlternateMeans = 17,
        /// Goods or Services Not Provided / Not Received. This reason code maps to
        /// the `1064` reason code as defined in NPCI's `UDIR` specification.
        CreditAdjustmentGoodsServicesNotReceived = 18,
        /// Account debited but transaction confirmation not received at merchant
        /// location. This reason code maps to the `1065` reason code for Credit
        /// adjustment as defined in NPCI's `UDIR` specification.
        CreditAdjustmentMerchantNotReceivedConfirmation = 19,
        /// Duplicate /Multiple Transaction. This reason code maps to the `1084`
        /// reason code as defined in NPCI's `UDIR` specification.
        CreditAdjustmentDuplicateTransaction = 20,
        /// Other reason for Credit adjustment. This reason code maps to the `1090`
        /// reason code as defined in NPCI's `UDIR` specification.
        CreditAdjustmentReasonOthers = 21,
        /// Non Matching account number. This reason code maps to the `1091`
        /// reason code as defined in NPCI's `UDIR` specification.
        CreditAdjustmentNonMatchingAccountNumber = 22,
        /// Card holder was charged more than the transaction amount.
        /// This reason code maps to the `1092` reason code as defined in NPCI's
        /// `UDIR` specification.
        CreditAdjustmentCardHolderChargedMore = 23,
        /// Credit not Processed. This reason code maps to the `1093` reason code as
        /// defined in NPCI's `UDIR` specification.
        CreditAdjustmentCreditNotProcessed = 24,
        /// Beneficiary bank unable to credit their customer account. This reason
        /// code maps to the `1094` reason code for Credit Adjustment dispute as
        /// defined in NPCI's `UDIR` specification.
        CreditAdjustmentBeneficiaryCannotCredit = 25,
        /// Merchant was unable to provide the service. This reason code maps to the
        /// `1095` reason code as defined in NPCI's `UDIR` specification.
        ChargebackAcceptanceMerchantCannotProvideService = 26,
        /// Services/Goods provided see the supporting document. This reason code
        /// maps to the `1096` reason code as defined in NPCI's `UDIR` specification.
        RePresentmentRaiseGoodsServicesProvided = 27,
        /// Services provided later see supporting documents. This reason code maps
        /// to the `1098` reason code as defined in NPCI's `UDIR` specification.
        PreArbitrationDeclinedServicesProvidedLater = 28,
        /// Services not provided by the merchant. This reason code maps to the
        /// `1099` reason code as defined in NPCI's `UDIR` specification.
        PreArbitrationAcceptanceServicesNotProvidedByMerchant = 29,
        /// Illegible Fulfilment. This reason code maps to the `1101` reason code for
        /// arbitration acceptance dispute as defined in NPCI's `UDIR` specification.
        ArbitrationAcceptanceIllegibleFulfilment = 30,
        /// Customer has still not received the service. This reason code maps to the
        /// `1102` reason code as defined in NPCI's `UDIR` specification.
        ArbitrationContinuationCustomerStillNotReceivedService = 31,
        /// Customer has received the service later. This reason code maps to the
        /// `1103` reason code as defined in NPCI's `UDIR` specification.
        ArbitrationWithdrawnCustomerReceivedServiceLater = 32,
        /// Panel will give the verdict. This reason code maps to the `1104` reason
        /// code as defined in NPCI's `UDIR` specification.
        ArbitrationVerdictPanelVerdict = 33,
        /// Manual adjustment. This reason code maps to the `2001` reason code as
        /// defined in NPCI's `UDIR` specification.
        ManualAdjustmentReason = 34,
        /// Attributing to the Customer. This reason code maps to the `AC` reason
        /// code as defined in NPCI's `UDIR` specification.
        AttributingCustomer = 35,
        /// Attributing to the Technical issue at bank/aggregator/merchant. This
        /// reason code maps to the `AT` reason code as defined in NPCI's `UDIR`
        /// specification.
        AttributingTechnicalIssue = 36,
        /// Amount has been recovered successfully from the unintended customer
        /// account. This reason code maps to the `WC2` reason code as defined in
        /// NPCI's `UDIR` specification.
        WrongCreditChargebackAcceptanceAmountRecovered = 37,
        /// Lien marked however customer account is not having sufficient balance to
        /// debit the customer account. This reason code maps to the `WC3` reason
        /// code for Wrong credit representment dispute as defined in NPCI's `UDIR`
        /// specification.
        WrongCreditRepresentmentLienMarkedInsufficientBalance = 38,
        /// Customer is not accessible for obtaining debit confirmation. This reason
        /// code maps to the `WC4` reason code as defined in NPCI's `UDIR`
        /// specification.
        WrongCreditRepresentmentCustomerInaccessible = 39,
        /// Other reason for Wrong credit representment. This reason code maps to the
        /// `WC5` reason code as defined in NPCI's `UDIR` specification.
        WrongCreditRepresentmentReasonOthers = 40,
    }
    impl ReasonCode {
        /// 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 {
                ReasonCode::Unspecified => "REASON_CODE_UNSPECIFIED",
                ReasonCode::ChargebackBeneficiaryCannotCreditOrPreArbitrationDuplicateProcess => {
                    "CHARGEBACK_BENEFICIARY_CANNOT_CREDIT_OR_PRE_ARBITRATION_DUPLICATE_PROCESS"
                }
                ReasonCode::PreArbitrationDeclinedBeneficiaryCreditedOnline => {
                    "PRE_ARBITRATION_DECLINED_BENEFICIARY_CREDITED_ONLINE"
                }
                ReasonCode::PreArbitrationDeclinedBeneficiaryCreditedManually => {
                    "PRE_ARBITRATION_DECLINED_BENEFICIARY_CREDITED_MANUALLY"
                }
                ReasonCode::DeferredChargebackAcceptanceAccountNotCreditedTccRaised => {
                    "DEFERRED_CHARGEBACK_ACCEPTANCE_ACCOUNT_NOT_CREDITED_TCC_RAISED"
                }
                ReasonCode::DeferredRePresentmentRaiseAccountCreditedTccRaised => {
                    "DEFERRED_RE_PRESENTMENT_RAISE_ACCOUNT_CREDITED_TCC_RAISED"
                }
                ReasonCode::DeferredPreArbitrationAcceptanceAccountNotCredited => {
                    "DEFERRED_PRE_ARBITRATION_ACCEPTANCE_ACCOUNT_NOT_CREDITED"
                }
                ReasonCode::DeferredPreArbitrationDeclinedAccountCredited => {
                    "DEFERRED_PRE_ARBITRATION_DECLINED_ACCOUNT_CREDITED"
                }
                ReasonCode::FraudChargebackAcceptAmountRecoveredFromFraudulentAccount => {
                    "FRAUD_CHARGEBACK_ACCEPT_AMOUNT_RECOVERED_FROM_FRAUDULENT_ACCOUNT"
                }
                ReasonCode::FraudChargebackRepresentmentLienMarkedInsufficientBalance => {
                    "FRAUD_CHARGEBACK_REPRESENTMENT_LIEN_MARKED_INSUFFICIENT_BALANCE"
                }
                ReasonCode::FraudChargebackRepresentmentFirNotProvided => {
                    "FRAUD_CHARGEBACK_REPRESENTMENT_FIR_NOT_PROVIDED"
                }
                ReasonCode::FraudChargebackRepresentmentReasonOthers => {
                    "FRAUD_CHARGEBACK_REPRESENTMENT_REASON_OTHERS"
                }
                ReasonCode::RePresentmentRaiseBeneficiaryCreditedOnline => {
                    "RE_PRESENTMENT_RAISE_BENEFICIARY_CREDITED_ONLINE"
                }
                ReasonCode::RePresentmentRaiseBeneficiaryCreditedManually => {
                    "RE_PRESENTMENT_RAISE_BENEFICIARY_CREDITED_MANUALLY"
                }
                ReasonCode::CreditAdjustmentGoodsServicesCreditNotProcessed => {
                    "CREDIT_ADJUSTMENT_GOODS_SERVICES_CREDIT_NOT_PROCESSED"
                }
                ReasonCode::CreditAdjustmentGoodsServicesDefective => {
                    "CREDIT_ADJUSTMENT_GOODS_SERVICES_DEFECTIVE"
                }
                ReasonCode::CreditAdjustmentPaidByAlternateMeans => {
                    "CREDIT_ADJUSTMENT_PAID_BY_ALTERNATE_MEANS"
                }
                ReasonCode::CreditAdjustmentGoodsServicesNotReceived => {
                    "CREDIT_ADJUSTMENT_GOODS_SERVICES_NOT_RECEIVED"
                }
                ReasonCode::CreditAdjustmentMerchantNotReceivedConfirmation => {
                    "CREDIT_ADJUSTMENT_MERCHANT_NOT_RECEIVED_CONFIRMATION"
                }
                ReasonCode::CreditAdjustmentDuplicateTransaction => {
                    "CREDIT_ADJUSTMENT_DUPLICATE_TRANSACTION"
                }
                ReasonCode::CreditAdjustmentReasonOthers => {
                    "CREDIT_ADJUSTMENT_REASON_OTHERS"
                }
                ReasonCode::CreditAdjustmentNonMatchingAccountNumber => {
                    "CREDIT_ADJUSTMENT_NON_MATCHING_ACCOUNT_NUMBER"
                }
                ReasonCode::CreditAdjustmentCardHolderChargedMore => {
                    "CREDIT_ADJUSTMENT_CARD_HOLDER_CHARGED_MORE"
                }
                ReasonCode::CreditAdjustmentCreditNotProcessed => {
                    "CREDIT_ADJUSTMENT_CREDIT_NOT_PROCESSED"
                }
                ReasonCode::CreditAdjustmentBeneficiaryCannotCredit => {
                    "CREDIT_ADJUSTMENT_BENEFICIARY_CANNOT_CREDIT"
                }
                ReasonCode::ChargebackAcceptanceMerchantCannotProvideService => {
                    "CHARGEBACK_ACCEPTANCE_MERCHANT_CANNOT_PROVIDE_SERVICE"
                }
                ReasonCode::RePresentmentRaiseGoodsServicesProvided => {
                    "RE_PRESENTMENT_RAISE_GOODS_SERVICES_PROVIDED"
                }
                ReasonCode::PreArbitrationDeclinedServicesProvidedLater => {
                    "PRE_ARBITRATION_DECLINED_SERVICES_PROVIDED_LATER"
                }
                ReasonCode::PreArbitrationAcceptanceServicesNotProvidedByMerchant => {
                    "PRE_ARBITRATION_ACCEPTANCE_SERVICES_NOT_PROVIDED_BY_MERCHANT"
                }
                ReasonCode::ArbitrationAcceptanceIllegibleFulfilment => {
                    "ARBITRATION_ACCEPTANCE_ILLEGIBLE_FULFILMENT"
                }
                ReasonCode::ArbitrationContinuationCustomerStillNotReceivedService => {
                    "ARBITRATION_CONTINUATION_CUSTOMER_STILL_NOT_RECEIVED_SERVICE"
                }
                ReasonCode::ArbitrationWithdrawnCustomerReceivedServiceLater => {
                    "ARBITRATION_WITHDRAWN_CUSTOMER_RECEIVED_SERVICE_LATER"
                }
                ReasonCode::ArbitrationVerdictPanelVerdict => {
                    "ARBITRATION_VERDICT_PANEL_VERDICT"
                }
                ReasonCode::ManualAdjustmentReason => "MANUAL_ADJUSTMENT_REASON",
                ReasonCode::AttributingCustomer => "ATTRIBUTING_CUSTOMER",
                ReasonCode::AttributingTechnicalIssue => "ATTRIBUTING_TECHNICAL_ISSUE",
                ReasonCode::WrongCreditChargebackAcceptanceAmountRecovered => {
                    "WRONG_CREDIT_CHARGEBACK_ACCEPTANCE_AMOUNT_RECOVERED"
                }
                ReasonCode::WrongCreditRepresentmentLienMarkedInsufficientBalance => {
                    "WRONG_CREDIT_REPRESENTMENT_LIEN_MARKED_INSUFFICIENT_BALANCE"
                }
                ReasonCode::WrongCreditRepresentmentCustomerInaccessible => {
                    "WRONG_CREDIT_REPRESENTMENT_CUSTOMER_INACCESSIBLE"
                }
                ReasonCode::WrongCreditRepresentmentReasonOthers => {
                    "WRONG_CREDIT_REPRESENTMENT_REASON_OTHERS"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "REASON_CODE_UNSPECIFIED" => Some(Self::Unspecified),
                "CHARGEBACK_BENEFICIARY_CANNOT_CREDIT_OR_PRE_ARBITRATION_DUPLICATE_PROCESS" => {
                    Some(
                        Self::ChargebackBeneficiaryCannotCreditOrPreArbitrationDuplicateProcess,
                    )
                }
                "PRE_ARBITRATION_DECLINED_BENEFICIARY_CREDITED_ONLINE" => {
                    Some(Self::PreArbitrationDeclinedBeneficiaryCreditedOnline)
                }
                "PRE_ARBITRATION_DECLINED_BENEFICIARY_CREDITED_MANUALLY" => {
                    Some(Self::PreArbitrationDeclinedBeneficiaryCreditedManually)
                }
                "DEFERRED_CHARGEBACK_ACCEPTANCE_ACCOUNT_NOT_CREDITED_TCC_RAISED" => {
                    Some(Self::DeferredChargebackAcceptanceAccountNotCreditedTccRaised)
                }
                "DEFERRED_RE_PRESENTMENT_RAISE_ACCOUNT_CREDITED_TCC_RAISED" => {
                    Some(Self::DeferredRePresentmentRaiseAccountCreditedTccRaised)
                }
                "DEFERRED_PRE_ARBITRATION_ACCEPTANCE_ACCOUNT_NOT_CREDITED" => {
                    Some(Self::DeferredPreArbitrationAcceptanceAccountNotCredited)
                }
                "DEFERRED_PRE_ARBITRATION_DECLINED_ACCOUNT_CREDITED" => {
                    Some(Self::DeferredPreArbitrationDeclinedAccountCredited)
                }
                "FRAUD_CHARGEBACK_ACCEPT_AMOUNT_RECOVERED_FROM_FRAUDULENT_ACCOUNT" => {
                    Some(Self::FraudChargebackAcceptAmountRecoveredFromFraudulentAccount)
                }
                "FRAUD_CHARGEBACK_REPRESENTMENT_LIEN_MARKED_INSUFFICIENT_BALANCE" => {
                    Some(Self::FraudChargebackRepresentmentLienMarkedInsufficientBalance)
                }
                "FRAUD_CHARGEBACK_REPRESENTMENT_FIR_NOT_PROVIDED" => {
                    Some(Self::FraudChargebackRepresentmentFirNotProvided)
                }
                "FRAUD_CHARGEBACK_REPRESENTMENT_REASON_OTHERS" => {
                    Some(Self::FraudChargebackRepresentmentReasonOthers)
                }
                "RE_PRESENTMENT_RAISE_BENEFICIARY_CREDITED_ONLINE" => {
                    Some(Self::RePresentmentRaiseBeneficiaryCreditedOnline)
                }
                "RE_PRESENTMENT_RAISE_BENEFICIARY_CREDITED_MANUALLY" => {
                    Some(Self::RePresentmentRaiseBeneficiaryCreditedManually)
                }
                "CREDIT_ADJUSTMENT_GOODS_SERVICES_CREDIT_NOT_PROCESSED" => {
                    Some(Self::CreditAdjustmentGoodsServicesCreditNotProcessed)
                }
                "CREDIT_ADJUSTMENT_GOODS_SERVICES_DEFECTIVE" => {
                    Some(Self::CreditAdjustmentGoodsServicesDefective)
                }
                "CREDIT_ADJUSTMENT_PAID_BY_ALTERNATE_MEANS" => {
                    Some(Self::CreditAdjustmentPaidByAlternateMeans)
                }
                "CREDIT_ADJUSTMENT_GOODS_SERVICES_NOT_RECEIVED" => {
                    Some(Self::CreditAdjustmentGoodsServicesNotReceived)
                }
                "CREDIT_ADJUSTMENT_MERCHANT_NOT_RECEIVED_CONFIRMATION" => {
                    Some(Self::CreditAdjustmentMerchantNotReceivedConfirmation)
                }
                "CREDIT_ADJUSTMENT_DUPLICATE_TRANSACTION" => {
                    Some(Self::CreditAdjustmentDuplicateTransaction)
                }
                "CREDIT_ADJUSTMENT_REASON_OTHERS" => {
                    Some(Self::CreditAdjustmentReasonOthers)
                }
                "CREDIT_ADJUSTMENT_NON_MATCHING_ACCOUNT_NUMBER" => {
                    Some(Self::CreditAdjustmentNonMatchingAccountNumber)
                }
                "CREDIT_ADJUSTMENT_CARD_HOLDER_CHARGED_MORE" => {
                    Some(Self::CreditAdjustmentCardHolderChargedMore)
                }
                "CREDIT_ADJUSTMENT_CREDIT_NOT_PROCESSED" => {
                    Some(Self::CreditAdjustmentCreditNotProcessed)
                }
                "CREDIT_ADJUSTMENT_BENEFICIARY_CANNOT_CREDIT" => {
                    Some(Self::CreditAdjustmentBeneficiaryCannotCredit)
                }
                "CHARGEBACK_ACCEPTANCE_MERCHANT_CANNOT_PROVIDE_SERVICE" => {
                    Some(Self::ChargebackAcceptanceMerchantCannotProvideService)
                }
                "RE_PRESENTMENT_RAISE_GOODS_SERVICES_PROVIDED" => {
                    Some(Self::RePresentmentRaiseGoodsServicesProvided)
                }
                "PRE_ARBITRATION_DECLINED_SERVICES_PROVIDED_LATER" => {
                    Some(Self::PreArbitrationDeclinedServicesProvidedLater)
                }
                "PRE_ARBITRATION_ACCEPTANCE_SERVICES_NOT_PROVIDED_BY_MERCHANT" => {
                    Some(Self::PreArbitrationAcceptanceServicesNotProvidedByMerchant)
                }
                "ARBITRATION_ACCEPTANCE_ILLEGIBLE_FULFILMENT" => {
                    Some(Self::ArbitrationAcceptanceIllegibleFulfilment)
                }
                "ARBITRATION_CONTINUATION_CUSTOMER_STILL_NOT_RECEIVED_SERVICE" => {
                    Some(Self::ArbitrationContinuationCustomerStillNotReceivedService)
                }
                "ARBITRATION_WITHDRAWN_CUSTOMER_RECEIVED_SERVICE_LATER" => {
                    Some(Self::ArbitrationWithdrawnCustomerReceivedServiceLater)
                }
                "ARBITRATION_VERDICT_PANEL_VERDICT" => {
                    Some(Self::ArbitrationVerdictPanelVerdict)
                }
                "MANUAL_ADJUSTMENT_REASON" => Some(Self::ManualAdjustmentReason),
                "ATTRIBUTING_CUSTOMER" => Some(Self::AttributingCustomer),
                "ATTRIBUTING_TECHNICAL_ISSUE" => Some(Self::AttributingTechnicalIssue),
                "WRONG_CREDIT_CHARGEBACK_ACCEPTANCE_AMOUNT_RECOVERED" => {
                    Some(Self::WrongCreditChargebackAcceptanceAmountRecovered)
                }
                "WRONG_CREDIT_REPRESENTMENT_LIEN_MARKED_INSUFFICIENT_BALANCE" => {
                    Some(Self::WrongCreditRepresentmentLienMarkedInsufficientBalance)
                }
                "WRONG_CREDIT_REPRESENTMENT_CUSTOMER_INACCESSIBLE" => {
                    Some(Self::WrongCreditRepresentmentCustomerInaccessible)
                }
                "WRONG_CREDIT_REPRESENTMENT_REASON_OTHERS" => {
                    Some(Self::WrongCreditRepresentmentReasonOthers)
                }
                _ => None,
            }
        }
    }
}
/// Metadata for CreateComplaint.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CreateComplaintMetadata {}
/// Metadata for ResolveComplaint.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolveComplaintMetadata {}
/// Metadata for CreateDispute.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CreateDisputeMetadata {}
/// Metadata for ResolveDispute.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ResolveDisputeMetadata {}
/// The subtype of the complaint or dispute.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TransactionSubType {
    /// Unspecified transaction subtype.
    Unspecified = 0,
    /// Beneficiary transaction subtype.
    Beneficiary = 1,
    /// Remitter transaction subtype.
    Remitter = 2,
}
impl TransactionSubType {
    /// 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 {
            TransactionSubType::Unspecified => "TRANSACTION_SUB_TYPE_UNSPECIFIED",
            TransactionSubType::Beneficiary => "TRANSACTION_SUB_TYPE_BENEFICIARY",
            TransactionSubType::Remitter => "TRANSACTION_SUB_TYPE_REMITTER",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "TRANSACTION_SUB_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "TRANSACTION_SUB_TYPE_BENEFICIARY" => Some(Self::Beneficiary),
            "TRANSACTION_SUB_TYPE_REMITTER" => Some(Self::Remitter),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod issuer_switch_resolutions_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Creates and resolves UPI complaints and disputes.
    #[derive(Debug, Clone)]
    pub struct IssuerSwitchResolutionsClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> IssuerSwitchResolutionsClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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,
        ) -> IssuerSwitchResolutionsClient<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> + std::marker::Send + std::marker::Sync,
        {
            IssuerSwitchResolutionsClient::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
        }
        /// Create a complaint. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [CreateComplaintMetadata][google.cloud.paymentgateway.issuerswitch.v1.CreateComplaintMetadata]
        /// - `response`:
        /// [Complaint][google.cloud.paymentgateway.issuerswitch.v1.Complaint]
        pub async fn create_complaint(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateComplaintRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions/CreateComplaint",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions",
                        "CreateComplaint",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Resolve a complaint. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ResolveComplaintMetadata][google.cloud.paymentgateway.issuerswitch.v1.ResolveComplaintMetadata]
        /// - `response`:
        /// [Complaint][google.cloud.paymentgateway.issuerswitch.v1.Complaint]
        pub async fn resolve_complaint(
            &mut self,
            request: impl tonic::IntoRequest<super::ResolveComplaintRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions/ResolveComplaint",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions",
                        "ResolveComplaint",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create a dispute. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [CreateDisputeMetadata][google.cloud.paymentgateway.issuerswitch.v1.CreateDisputeMetadata]
        /// - `response`:
        /// [Dispute][google.cloud.paymentgateway.issuerswitch.v1.Dispute]
        pub async fn create_dispute(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateDisputeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions/CreateDispute",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions",
                        "CreateDispute",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Resolve a dispute. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ResolveDisputeMetadata][google.cloud.paymentgateway.issuerswitch.v1.ResolveDisputeMetadata]
        /// - `response`:
        /// [Dispute][google.cloud.paymentgateway.issuerswitch.v1.Dispute]
        pub async fn resolve_dispute(
            &mut self,
            request: impl tonic::IntoRequest<super::ResolveDisputeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions/ResolveDispute",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutions",
                        "ResolveDispute",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Information about a transaction processed by the issuer switch.
/// The fields in this type are common across both financial and metadata
/// transactions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionInfo {
    /// Output only. An identifier that is mandatorily present in every transaction
    /// processed via UPI. This maps to UPI's transaction ID.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Output only. The API type of the transaction.
    #[prost(enumeration = "ApiType", tag = "2")]
    pub api_type: i32,
    /// Output only. The transaction type.
    #[prost(enumeration = "TransactionType", tag = "3")]
    pub transaction_type: i32,
    /// Output only. The transaction subtype.
    #[prost(enumeration = "transaction_info::TransactionSubType", tag = "4")]
    pub transaction_sub_type: i32,
    /// Output only. The transaction's state.
    #[prost(enumeration = "transaction_info::State", tag = "5")]
    pub state: i32,
    /// Metadata about the API transaction.
    #[prost(message, optional, tag = "6")]
    pub metadata: ::core::option::Option<transaction_info::TransactionMetadata>,
    /// Output only. Any error details for the current API transaction, if the
    /// state is `FAILED`.
    #[prost(message, optional, tag = "7")]
    pub error_details: ::core::option::Option<transaction_info::TransactionErrorDetails>,
    /// Output only. Information about the adapter invocation from the issuer
    /// switch for processing this API transaction.
    #[prost(message, optional, tag = "8")]
    pub adapter_info: ::core::option::Option<transaction_info::AdapterInfo>,
    /// Risk information as provided by the payments orchestrator.
    #[prost(message, repeated, tag = "9")]
    pub risk_info: ::prost::alloc::vec::Vec<transaction_info::TransactionRiskInfo>,
}
/// Nested message and enum types in `TransactionInfo`.
pub mod transaction_info {
    /// Common metadata about an API transaction.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TransactionMetadata {
        /// Output only. The time at which the transaction resource was created by
        /// the issuer switch.
        #[prost(message, optional, tag = "1")]
        pub create_time: ::core::option::Option<::prost_types::Timestamp>,
        /// Output only. The time at which the transaction resource was last updated
        /// by the issuer switch.
        #[prost(message, optional, tag = "2")]
        pub update_time: ::core::option::Option<::prost_types::Timestamp>,
        /// Output only. A reference id for the API transaction.
        #[prost(string, tag = "3")]
        pub reference_id: ::prost::alloc::string::String,
        /// Output only. A reference URI to this API transaction.
        #[prost(string, tag = "4")]
        pub reference_uri: ::prost::alloc::string::String,
        /// Output only. A descriptive note about this API transaction.
        #[prost(string, tag = "5")]
        pub description: ::prost::alloc::string::String,
        /// Output only. The initiation mode of this API transaction. In UPI, the
        /// values are as defined by the UPI API specification.
        #[prost(string, tag = "6")]
        pub initiation_mode: ::prost::alloc::string::String,
        /// Output only. The purpose code of this API transaction. In UPI, the values
        /// are as defined by the UPI API specification.
        #[prost(string, tag = "7")]
        pub purpose_code: ::prost::alloc::string::String,
        /// Output only. The reference category of this API transaction.
        #[prost(string, tag = "8")]
        pub reference_category: ::prost::alloc::string::String,
    }
    /// All details about any error in the processing of an API transaction.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TransactionErrorDetails {
        /// Output only. Error code of the failed transaction.
        #[prost(string, tag = "1")]
        pub error_code: ::prost::alloc::string::String,
        /// Output only. Error description for the failed transaction.
        #[prost(string, tag = "2")]
        pub error_message: ::prost::alloc::string::String,
        /// Output only. Error code as per the UPI specification. The issuer switch
        /// maps the ErrorCode to an appropriate error code that complies with the
        /// UPI specification.
        #[prost(string, tag = "3")]
        pub upi_error_code: ::prost::alloc::string::String,
    }
    /// Information about an adapter invocation triggered as part of the
    /// processing of an API transaction.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AdapterInfo {
        /// Output only. List of adapter request IDs (colon separated) used when
        /// invoking the Adapter APIs for fulfilling a transaction request.
        #[prost(string, tag = "1")]
        pub request_ids: ::prost::alloc::string::String,
        /// Output only. Response metadata included by the adapter in its response to
        /// an API invocation from the issuer switch.
        #[prost(message, optional, tag = "2")]
        pub response_metadata: ::core::option::Option<adapter_info::ResponseMetadata>,
    }
    /// Nested message and enum types in `AdapterInfo`.
    pub mod adapter_info {
        /// Metadata about a response that the adapter includes in its response
        /// to the issuer switch.
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct ResponseMetadata {
            /// A map of name-value pairs.
            #[prost(btree_map = "string, string", tag = "1")]
            pub values: ::prost::alloc::collections::BTreeMap<
                ::prost::alloc::string::String,
                ::prost::alloc::string::String,
            >,
        }
    }
    /// Information about the transaction's risk evaluation as provided by the
    /// payments orchestrator.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TransactionRiskInfo {
        /// Entity providing the risk score. This could either be the payment service
        /// provider or the payment orchestrator (UPI, etc).
        #[prost(string, tag = "1")]
        pub provider: ::prost::alloc::string::String,
        /// Type of risk. Examples include `TXNRISK`.
        #[prost(string, tag = "2")]
        pub r#type: ::prost::alloc::string::String,
        /// Numeric value of risk evaluation ranging from 0 (No Risk) to 100 (Maximum
        /// Risk).
        #[prost(string, tag = "3")]
        pub value: ::prost::alloc::string::String,
    }
    /// Specifies the current state of the transaction.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Unspecified state.
        Unspecified = 0,
        /// The transaction has successfully completed.
        Succeeded = 1,
        /// The transaction has failed.
        Failed = 2,
        /// The transaction has timed out.
        TimedOut = 3,
    }
    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::Succeeded => "SUCCEEDED",
                State::Failed => "FAILED",
                State::TimedOut => "TIMED_OUT",
            }
        }
        /// 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),
                "SUCCEEDED" => Some(Self::Succeeded),
                "FAILED" => Some(Self::Failed),
                "TIMED_OUT" => Some(Self::TimedOut),
                _ => None,
            }
        }
    }
    /// The subtype of a transaction. This value is used only for certain API type
    /// and transaction type combinations.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum TransactionSubType {
        /// Unspecified transaction subtype.
        Unspecified = 0,
        /// Collect subtype. This is used in a `SETTLE_PAYMENT` API type
        /// transaction, with the transaction type as either
        /// `TRANSACTION_TYPE_CREDIT` or `TRANSACTION_TYPE_DEBIT` when the payment
        /// was initiated by a collect request.
        Collect = 1,
        /// Debit subtype. This is used in a `SETTLE_PAYMENT` API type transaction,
        /// with the transaction type as `TRANSACTION_TYPE_REVERSAL` when the
        /// original payment was a debit request.
        Debit = 2,
        /// Pay subtype. This is used in a `SETTLE_PAYMENT` API type transaction,
        /// with the transaction type as either `TRANSACTION_TYPE_CREDIT` or
        /// `TRANSACTION_TYPE_DEBIT` when the payment was initiated by a pay request.
        Pay = 3,
        /// Beneficiary subtype. This is used in a `COMPLAINT` API type transaction,
        /// when the complaint / dispute request is initiated / received by the
        /// beneficiary bank.
        Beneficiary = 4,
        /// Remitter subtype. This is used in a `COMPLAINT` API type transaction,
        /// when the complaint / dispute request is initiated / received by the
        /// remitter bank.
        Remitter = 5,
        /// Refund subtype. This is used in a `SETTLE_PAYMENT` API type transaction,
        /// with the transaction type as `TRANSACTION_TYPE_CREDIT` when the payment
        /// was initiated in response to a refund.
        Refund = 6,
        /// Credit subtype. This is used in a `SETTLE_PAYMENT` API type transaction,
        /// with the transaction type as `TRANSACTION_TYPE_REVERSAL` when the
        /// original payment was a credit request.
        Credit = 7,
    }
    impl TransactionSubType {
        /// 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 {
                TransactionSubType::Unspecified => "TRANSACTION_SUB_TYPE_UNSPECIFIED",
                TransactionSubType::Collect => "COLLECT",
                TransactionSubType::Debit => "DEBIT",
                TransactionSubType::Pay => "PAY",
                TransactionSubType::Beneficiary => "BENEFICIARY",
                TransactionSubType::Remitter => "REMITTER",
                TransactionSubType::Refund => "REFUND",
                TransactionSubType::Credit => "CREDIT",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "TRANSACTION_SUB_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "COLLECT" => Some(Self::Collect),
                "DEBIT" => Some(Self::Debit),
                "PAY" => Some(Self::Pay),
                "BENEFICIARY" => Some(Self::Beneficiary),
                "REMITTER" => Some(Self::Remitter),
                "REFUND" => Some(Self::Refund),
                "CREDIT" => Some(Self::Credit),
                _ => None,
            }
        }
    }
}
/// A metadata API transaction processed by the issuer switch. This
/// includes UPI APIs such as List Accounts, Balance Enquiry, etc.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataTransaction {
    /// The name of the metadata transaction. This uniquely identifies the
    /// transaction. Format of name is
    /// projects/{project_id}/metadataTransaction/{metadata_transaction_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Information about the transaction.
    #[prost(message, optional, tag = "2")]
    pub info: ::core::option::Option<TransactionInfo>,
    /// Output only. The initiator of the metadata transaction.
    #[prost(message, optional, tag = "3")]
    pub initiator: ::core::option::Option<Participant>,
}
/// A financial API transaction processed by the issuer switch. In UPI, this maps
/// to the Pay API.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinancialTransaction {
    /// The name of the financial transaction. This uniquely identifies the
    /// transaction. Format of name is
    /// projects/{project_id}/financialTransactions/{financial_transaction_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Information about the transaction.
    #[prost(message, optional, tag = "2")]
    pub info: ::core::option::Option<TransactionInfo>,
    /// Output only. A 12 digit numeric code associated with the request. It could
    /// contain leading 0s. In UPI, this is also known as as the customer reference
    /// or the UPI transaction ID.
    #[prost(string, tag = "3")]
    pub retrieval_reference_number: ::prost::alloc::string::String,
    /// Output only. The payer in the transaction.
    #[prost(message, optional, tag = "4")]
    pub payer: ::core::option::Option<SettlementParticipant>,
    /// Output only. The payee in the transaction.
    #[prost(message, optional, tag = "5")]
    pub payee: ::core::option::Option<SettlementParticipant>,
    /// Output only. The amount for payment settlement in the transaction.
    #[prost(message, optional, tag = "6")]
    pub amount: ::core::option::Option<super::super::super::super::r#type::Money>,
    /// A list of rules specified by the payments orchestrator for this API
    /// transaction.
    #[prost(message, repeated, tag = "7")]
    pub payment_rules: ::prost::alloc::vec::Vec<financial_transaction::PaymentRule>,
}
/// Nested message and enum types in `FinancialTransaction`.
pub mod financial_transaction {
    /// A payment rule as provided by the payments orchestrator.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct PaymentRule {
        /// The rule's name.
        #[prost(enumeration = "payment_rule::PaymentRuleName", tag = "1")]
        pub payment_rule: i32,
        /// The rule's value.
        #[prost(string, tag = "2")]
        pub value: ::prost::alloc::string::String,
    }
    /// Nested message and enum types in `PaymentRule`.
    pub mod payment_rule {
        /// An enum of the possible rule names.
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum PaymentRuleName {
            /// Rule name unspecified.
            Unspecified = 0,
            /// The `expire after` rule.
            ExpireAfter = 1,
            /// The `min amount` rule.
            MinAmount = 2,
        }
        impl PaymentRuleName {
            /// 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 {
                    PaymentRuleName::Unspecified => "PAYMENT_RULE_NAME_UNSPECIFIED",
                    PaymentRuleName::ExpireAfter => "EXPIRE_AFTER",
                    PaymentRuleName::MinAmount => "MIN_AMOUNT",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "PAYMENT_RULE_NAME_UNSPECIFIED" => Some(Self::Unspecified),
                    "EXPIRE_AFTER" => Some(Self::ExpireAfter),
                    "MIN_AMOUNT" => Some(Self::MinAmount),
                    _ => None,
                }
            }
        }
    }
}
/// A mandate processed by the issuer switch. In UPI, this maps to the Mandate
/// API.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MandateTransaction {
    /// The name of the mandate transaction. This uniquely identifies the
    /// transaction. Format of name is
    /// projects/{project_id}/mandateTransactions/{mandate_transaction_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Information about the transaction.
    #[prost(message, optional, tag = "2")]
    pub transaction_info: ::core::option::Option<TransactionInfo>,
    /// Output only. This maps to Unique Mandate Number (UMN) in UPI specification.
    #[prost(string, tag = "3")]
    pub unique_mandate_number: ::prost::alloc::string::String,
    /// Output only. The payer in the transaction.
    #[prost(message, optional, tag = "4")]
    pub payer: ::core::option::Option<SettlementParticipant>,
    /// Output only. The payee in the transaction.
    #[prost(message, optional, tag = "5")]
    pub payee: ::core::option::Option<SettlementParticipant>,
    /// Output only. The type of recurrence pattern of the mandate.
    #[prost(enumeration = "mandate_transaction::RecurrencePatternType", tag = "6")]
    pub recurrence_pattern: i32,
    /// Output only. The type of recurrence rule of the mandate.
    #[prost(enumeration = "mandate_transaction::RecurrenceRuleType", tag = "7")]
    pub recurrence_rule_type: i32,
    /// Output only. The recurrence rule value of the mandate. This is a value from
    /// 1 to 31.
    #[prost(int32, tag = "8")]
    pub recurrence_rule_value: i32,
    /// Output only. The start date of the mandate.
    #[prost(message, optional, tag = "9")]
    pub start_date: ::core::option::Option<super::super::super::super::r#type::Date>,
    /// Output only. The end date of the mandate.
    #[prost(message, optional, tag = "10")]
    pub end_date: ::core::option::Option<super::super::super::super::r#type::Date>,
    /// Output only. If true, this specifies mandate can be revoked.
    #[prost(bool, tag = "11")]
    pub revokable: bool,
    /// Output only. The amount of the mandate.
    #[prost(double, tag = "12")]
    pub amount: f64,
    /// Output only. The amount rule type of the mandate.
    #[prost(enumeration = "mandate_transaction::AmountRuleType", tag = "13")]
    pub amount_rule: i32,
    /// Output only. The Block funds reference generated by the bank, this will be
    /// available only when Recurrence is ONETIME.
    #[prost(string, tag = "14")]
    pub approval_reference: ::prost::alloc::string::String,
    /// Output only. If true, this specifies the mandate transaction requested
    /// funds to be blocked.
    #[prost(bool, tag = "15")]
    pub block_funds: bool,
    /// Output only. The mandate's name.
    #[prost(string, tag = "16")]
    pub mandate_name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `MandateTransaction`.
pub mod mandate_transaction {
    /// RecurrencePatternType specifies the recurrence pattern type of the mandate.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum RecurrencePatternType {
        /// Unspecified recurrence pattern.
        Unspecified = 0,
        /// As presented recurrence pattern.
        AsPresented = 1,
        /// Bi monthly recurrence pattern.
        Bimonthly = 2,
        /// Daily recurrence pattern.
        Daily = 3,
        /// Bi weekly recurrence pattern.
        Fortnightly = 4,
        /// Half yearly recurrence pattern.
        HalfYearly = 5,
        /// Monthly recurrence pattern.
        Monthly = 6,
        /// One time recurrence pattern.
        OneTime = 7,
        /// Quarterly recurrence pattern.
        Quarterly = 8,
        /// Weekly recurrence pattern.
        Weekly = 9,
        /// Yearly recurrence pattern.
        Yearly = 10,
    }
    impl RecurrencePatternType {
        /// 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 {
                RecurrencePatternType::Unspecified => {
                    "RECURRENCE_PATTERN_TYPE_UNSPECIFIED"
                }
                RecurrencePatternType::AsPresented => "AS_PRESENTED",
                RecurrencePatternType::Bimonthly => "BIMONTHLY",
                RecurrencePatternType::Daily => "DAILY",
                RecurrencePatternType::Fortnightly => "FORTNIGHTLY",
                RecurrencePatternType::HalfYearly => "HALF_YEARLY",
                RecurrencePatternType::Monthly => "MONTHLY",
                RecurrencePatternType::OneTime => "ONE_TIME",
                RecurrencePatternType::Quarterly => "QUARTERLY",
                RecurrencePatternType::Weekly => "WEEKLY",
                RecurrencePatternType::Yearly => "YEARLY",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "RECURRENCE_PATTERN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "AS_PRESENTED" => Some(Self::AsPresented),
                "BIMONTHLY" => Some(Self::Bimonthly),
                "DAILY" => Some(Self::Daily),
                "FORTNIGHTLY" => Some(Self::Fortnightly),
                "HALF_YEARLY" => Some(Self::HalfYearly),
                "MONTHLY" => Some(Self::Monthly),
                "ONE_TIME" => Some(Self::OneTime),
                "QUARTERLY" => Some(Self::Quarterly),
                "WEEKLY" => Some(Self::Weekly),
                "YEARLY" => Some(Self::Yearly),
                _ => None,
            }
        }
    }
    /// RecurrenceRuleType specifies the recurrence rule type of mandate.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum RecurrenceRuleType {
        /// Unspecified recurrence rule type.
        Unspecified = 0,
        /// After recurrence rule type.
        After = 1,
        /// Before recurrence rule type.
        Before = 2,
        /// On recurrence rule type.
        On = 3,
    }
    impl RecurrenceRuleType {
        /// 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 {
                RecurrenceRuleType::Unspecified => "RECURRENCE_RULE_TYPE_UNSPECIFIED",
                RecurrenceRuleType::After => "AFTER",
                RecurrenceRuleType::Before => "BEFORE",
                RecurrenceRuleType::On => "ON",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "RECURRENCE_RULE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "AFTER" => Some(Self::After),
                "BEFORE" => Some(Self::Before),
                "ON" => Some(Self::On),
                _ => None,
            }
        }
    }
    /// AmountRuleType specifies the type of rule associated with the mandate
    /// amount.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AmountRuleType {
        /// Unspecified amount rule.
        Unspecified = 0,
        /// Exact amount rule. Amount specified is the exact amount for which
        /// mandate could be granted.
        Exact = 1,
        /// Max amount rule. Amount specified is the maximum amount for which
        /// mandate could be granted.
        Max = 2,
    }
    impl AmountRuleType {
        /// 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 {
                AmountRuleType::Unspecified => "AMOUNT_RULE_TYPE_UNSPECIFIED",
                AmountRuleType::Exact => "EXACT",
                AmountRuleType::Max => "MAX",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "AMOUNT_RULE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "EXACT" => Some(Self::Exact),
                "MAX" => Some(Self::Max),
                _ => None,
            }
        }
    }
}
/// A complaint API transaction processed by the issuer switch. In
/// UPI, this maps to the Complaint API.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComplaintTransaction {
    /// The name of the complaint transaction. This uniquely identifies the
    /// transaction. Format of name is
    /// projects/{project_id}/complaintTransactions/{complaint_transaction_id}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Information about the transaction.
    #[prost(message, optional, tag = "2")]
    pub info: ::core::option::Option<TransactionInfo>,
    /// Information about the complaint transaction. It can be one of Complaint or
    /// Dispute.
    #[prost(oneof = "complaint_transaction::Case", tags = "3, 4")]
    pub case: ::core::option::Option<complaint_transaction::Case>,
}
/// Nested message and enum types in `ComplaintTransaction`.
pub mod complaint_transaction {
    /// Information about the complaint transaction. It can be one of Complaint or
    /// Dispute.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Case {
        /// Output only. Information about the complaint transaction when it is of
        /// type complaint.
        #[prost(message, tag = "3")]
        Complaint(super::Complaint),
        /// Output only. Information about the complaint transaction when it is of
        /// type dispute.
        #[prost(message, tag = "4")]
        Dispute(super::Dispute),
    }
}
/// Request for the `ListMetadataTransactions` method. Callers can request for
/// transactions to be filtered by the given filter criteria and specified
/// pagination parameters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMetadataTransactionsRequest {
    /// Required. The parent resource. The format is `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of transactions to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 1,
    /// at most 50 transactions will be returned. The maximum value is 1000; values
    /// above 1000 will be coerced to 1000. While paginating, you can specify a new
    /// page size parameter for each page of transactions to be listed.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListMetadataTransactions` call.
    /// Specify this parameter to retrieve the next page of transactions.
    ///
    /// When paginating, you must specify only the `page_token` parameter. The
    /// filter that was specified in the initial call to the
    /// `ListMetadataTransactions` method that returned the page token will be
    /// reused for all further calls where the page token parameter is specified.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// An expression that filters the list of metadata transactions.
    ///
    /// A filter expression consists of a field name, a comparison
    /// operator, and a value for filtering. The value must be a string, a
    /// number, or a boolean. The comparison operator must be one of: `<`, `>` or
    /// `=`. Filters are not case sensitive.
    ///
    /// The following fields in the `MetadataTransaction` are eligible for
    /// filtering:
    ///
    ///    * `apiType` - The API type of the metadata transaction. Must be one of
    ///    [ApiType][google.cloud.paymentgateway.issuerswitch.v1.ApiType] values.
    ///    Allowed comparison operators: `=`.
    ///    * `transactionType` - The transaction type of the metadata transaction.
    ///    Must be one of
    ///    [TransactionType][google.cloud.paymentgateway.issuerswitch.v1.TransactionType]
    ///    values. Allowed comparison operators: `=`.
    ///    * `transactionID` - The UPI transaction ID of the metadata transaction.
    ///    Allowed comparison operators: `=`.
    ///    * `createTime` - The time at which the transaction was created
    ///    (received) by the issuer switch. The value should be in
    ///    the format `YYYY-MM-DDTHH:MM:SSZ`. Allowed comparison operators: `>`,
    ///    `<`.
    ///
    /// You can combine multiple expressions by enclosing each expression in
    /// parentheses. Expressions are combined with AND logic. No other logical
    /// operators are supported.
    ///
    /// Here are a few examples:
    ///
    ///    * `apiType = LIST_ACCOUNTS` -  - The API type is _LIST_ACCOUNTS_.
    ///    * `state = SUCCEEDED` - The transaction's state is _SUCCEEDED_.
    ///    * `(apiType = LIST_ACCOUNTS) AND (create_time <
    ///    \"2021-08-15T14:50:00Z\")` - The API type is _LIST_ACCOUNTS_ and
    ///    the transaction was received before _2021-08-15 14:50:00 UTC_.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Request for the `ListFinancialTransactions` method. Callers can request for
/// transactions to be filtered by the given filter criteria and specified
/// pagination parameters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFinancialTransactionsRequest {
    /// Required. The parent resource. The format is `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of transactions to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 1,
    /// at most 50 transactions will be returned. The maximum value is 1000; values
    /// above 1000 will be coerced to 1000. While paginating, you can specify a new
    /// page size parameter for each page of transactions to be listed.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListFinancialTransactions` call.
    /// Specify this parameter to retrieve the next page of transactions.
    ///
    /// When paginating, you must specify only the `page_token` parameter. The
    /// filter that was specified in the initial call to the
    /// `ListFinancialTransactions` method that returned the page token will be
    /// reused for all further calls where the page token parameter is specified.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// An expression that filters the list of financial transactions.
    ///
    /// A filter expression consists of a field name, a comparison operator, and
    /// a value for filtering. The value must be a string, a number, or a
    /// boolean. The comparison operator must be one of: `<`, `>`, or `=`.
    /// Filters are not case sensitive.
    ///
    /// The following fields in the `FinancialTransaction` are eligible for
    /// filtering:
    ///
    ///    * `transactionID` - The UPI transaction ID of the financial
    ///    transaction. Allowed comparison operators: `=`.
    ///    * `RRN` - The retrieval reference number of the transaction. Allowed
    ///    comparison operators: `=`.
    ///    * `payerVPA` - The VPA of the payer in a financial transaction. Allowed
    ///    comparison operators: `=`.
    ///    * `payeeVPA` - The VPA of the payee in a financial transaction. Allowed
    ///    comparison operators: `=`.
    ///    * `payerMobileNumber` - The mobile number of the payer in a financial
    ///       transaction. Allowed comparison operators: `=`.
    ///    * `payeeMobileNumber` - The mobile number of the payee in a financial
    ///       transaction. Allowed comparison operators: `=`.
    ///    * `createTime` - The time at which the transaction was created
    ///    (received) by the issuer switch. The value should be in
    ///    the format `YYYY-MM-DDTHH:MM:SSZ`. Allowed comparison operators: `>`,
    ///    `<`.
    ///
    /// You can combine multiple expressions by enclosing each expression in
    /// parentheses. Expressions are combined with AND logic. No other logical
    /// operators are supported.
    ///
    /// Here are a few examples:
    ///
    ///    * `rrn = 123456789123` - The RRN is _123456789123_.
    ///    * `payerVpa = example@goog` - The VPA of the payer is the string
    ///    _example@goog_.
    ///    * `(payeeVpa = example@goog) AND (createTime < "2021-08-15T14:50:00Z")`
    ///    - The VPA of the payee is _example@goog_ and the transaction was received
    ///    before _2021-08-15 14:50:00 UTC_.
    ///    * `createTime > "2021-08-15T14:50:00Z" AND createTime <
    ///    "2021-08-16T14:50:00Z"` - The transaction was received between
    ///    _2021-08-15 14:50:00 UTC_ and _2021-08-16 14:50:00 UTC_.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Request for the `ListMandateTransactions` method. Callers can request for
/// transactions to be filtered by the given filter criteria and specified
/// pagination parameters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMandateTransactionsRequest {
    /// Required. The parent resource. The format is `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of transactions to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 1,
    /// at most 50 transactions will be returned. The maximum value is 1000; values
    /// above 1000 will be coerced to 1000. While paginating, you can specify a new
    /// page size parameter for each page of transactions to be listed.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListMandateTransactions` call.
    /// Specify this parameter to retrieve the next page of transactions.
    ///
    /// When paginating, you must specify only the `page_token` parameter. The
    /// filter that was specified in the initial call to the
    /// `ListMandateTransactions` method that returned the page token will be
    /// reused for all further calls where the page token parameter is specified.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// An expression that filters the list of mandate transactions.
    ///
    /// A filter expression consists of a field name, a comparison operator, and
    /// a value for filtering. The value must be a string, a number, or a
    /// boolean. The comparison operator must be one of: `<`, `>`, or `=`.
    /// Filters are not case sensitive.
    ///
    /// The following fields in the `Mandate` are eligible for
    /// filtering:
    ///
    ///    * `uniqueMandateNumber` - UPI Unique Mandate Number (UMN). Allowed
    ///    comparison operators: `=`.
    ///    * `transactionID` - The transaction ID of the mandate transaction.
    ///    Allowed comparison operators: `=`.
    ///    * `transactionType` - The transaction type of the mandate
    ///    transaction. Must be one of
    ///    [TransactionType][google.cloud.paymentgateway.issuerswitch.v1.TransactionType]
    ///    values. For mandate transactions, only valid transaction types are
    ///    `TRANSACTION_TYPE_CREATE`, `TRANSACTION_TYPE_REVOKE` and
    ///    `TRANSACTION_TYPE_UPDATE`. Allowed comparison operators: `=`.
    ///    * `createTime` - The time at which the transaction was created
    ///    (received) by the issuer switch. The value should be in
    ///    the format `YYYY-MM-DDTHH:MM:SSZ`. Allowed comparison
    ///    operators: `>`, `<`.
    /// You can combine multiple expressions by enclosing each expression in
    /// parentheses. Expressions are combined with AND logic. No other logical
    /// operators are supported.
    ///
    /// Here are a few examples:
    ///    * `recurrencePattern = MONTHLY` - The recurrence pattern type is
    ///    monthly.
    ///    * `state = SUCCEEDED` - The transaction's state is _SUCCEEDED_.
    ///    * `payerVPA = example@okbank` - The VPA of the payer is the string
    ///    _example@okbank_.
    ///    * `(payerVPA = example@okbank) AND (createTime <
    ///    "2021-08-15T14:50:00Z")`
    ///    - The payer VPA example@okbank and the transaction was received
    ///    before _2021-08-15 14:50:00 UTC_.
    ///    * `createTime > "2021-08-15T14:50:00Z" AND createTime <
    ///    "2021-08-16T14:50:00Z"` - The transaction was received between
    ///    _2021-08-15 14:50:00 UTC_ and _2021-08-16 14:50:00 UTC_.
    ///    * `startDate > "2021-08-15" AND startDate < "2021-08-17"` - The start
    ///    date for mandate is between _2021-08-15_ and _2021-08-17_.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Request for the `ListComplaintTransactions` method. Callers can request for
/// transactions to be filtered by the given filter criteria and specified
/// pagination parameters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListComplaintTransactionsRequest {
    /// Required. The parent resource. The format is `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of transactions to return. The service may return fewer
    /// than this value. If unspecified or if the specified value is less than 1,
    /// at most 50 transactions will be returned. The maximum value is 1000; values
    /// above 1000 will be coerced to 1000. While paginating, you can specify a new
    /// page size parameter for each page of transactions to be listed.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListComplaintTransactions` call.
    /// Specify this parameter to retrieve the next page of transactions.
    ///
    /// When paginating, you must specify only the `page_token` parameter. The
    /// filter that was specified in the initial call to the
    /// `ListComplaintTransactions` method that returned the page token will be
    /// reused for all further calls where the page token parameter is specified.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// An expression that filters the list of complaint transactions.
    ///
    /// A filter expression consists of a field name, a comparison operator, and
    /// a value for filtering. The value must be a string, a number, or a
    /// boolean. The comparison operator must be one of: `<`, `>`, or `=`.
    /// Filters are not case sensitive.
    ///
    /// The following fields in the `Complaint` are eligible for
    /// filtering:
    ///
    ///    * `transactionID` - The transaction ID of the complaint transaction.
    ///    Allowed comparison operators: `=`.
    ///    * `transactionType` - The transaction type of the complaint
    ///    transaction. Must be one of
    ///    [TransactionType][google.cloud.paymentgateway.issuerswitch.v1.TransactionType]
    ///    values. For complaint transactions, only valid transaction types are
    ///   `TRANSACTION_TYPE_CHECK_STATUS`, `TRANSACTION_TYPE_COMPLAINT`,
    ///   `TRANSACTION_TYPE_REVERSAL`, `TRANSACTION_TYPE_DISPUTE`,
    ///   `TRANSACTION_TYPE_REFUND` or `TRANSACTION_TYPE_STATUS_UPDATE`. Allowed
    ///    comparison operators: `=`.
    ///    * `originalRRN` - The retrieval reference number of the original
    ///    transaction for which complaint / dispute was raised / resolved. Allowed
    ///    comparison operators: `=`.
    ///    * `createTime` - The time at which the transaction was created
    ///    (received) by the issuer switch. The value should be in
    ///    the format `YYYY-MM-DDTHH:MM:SSZ`. Allowed comparison
    ///    operators: `>`, `<`.
    ///    * `state` - The state of the transaction. Must be one of
    ///    [TransactionInfo.State][google.cloud.paymentgateway.issuerswitch.v1.TransactionInfo.State]
    ///    values. Allowed comparison operators: `=`.
    ///    * `errorCode` - Use this filter to list complaint transactions which
    ///    have failed a particular error code. Allowed comparison
    ///    operators: `=`.
    /// You can combine multiple expressions by enclosing each expression in
    /// parentheses. Expressions are combined with AND logic. No other logical
    /// operators are supported.
    ///
    /// Here are a few examples:
    ///
    ///    * `state = SUCCEEDED` - The transaction's state is _SUCCEEDED_.
    ///    * (createTime < "2021-08-15T14:50:00Z")`
    ///    - The transaction was received before _2021-08-15 14:50:00 UTC_.
    ///    * `createTime > "2021-08-15T14:50:00Z" AND createTime <
    ///    "2021-08-16T14:50:00Z"` - The transaction was received between
    ///    _2021-08-15 14:50:00 UTC_ and _2021-08-16 14:50:00 UTC_.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
/// Response for the `ListMetadataTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMetadataTransactionsResponse {
    /// List of non financial metadata transactions satisfying the filtered
    /// request.
    #[prost(message, repeated, tag = "1")]
    pub metadata_transactions: ::prost::alloc::vec::Vec<MetadataTransaction>,
    /// Pass this token in the ListMetadataTransactionsRequest to continue to list
    /// results. If all results have been returned, this field is an empty string
    /// or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Response for the `ListFinancialTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFinancialTransactionsResponse {
    /// List of financial transactions satisfying the filtered request.
    #[prost(message, repeated, tag = "1")]
    pub financial_transactions: ::prost::alloc::vec::Vec<FinancialTransaction>,
    /// Pass this token in the ListFinancialTransactionsRequest to continue to list
    /// results. If all results have been returned, this field is an empty string
    /// or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Response for the `ListMandateTransactionsResponse` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMandateTransactionsResponse {
    /// List of mandate transactions satisfying the filtered request.
    #[prost(message, repeated, tag = "1")]
    pub mandate_transactions: ::prost::alloc::vec::Vec<MandateTransaction>,
    /// Pass this token in the ListMandateTransactionsRequest to continue to list
    /// results. If all results have been returned, this field is an empty string
    /// or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Response for the `ListComplaintTransactionsResponse` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListComplaintTransactionsResponse {
    /// List of complaint transactions satisfying the filtered request.
    #[prost(message, repeated, tag = "1")]
    pub complaint_transactions: ::prost::alloc::vec::Vec<ComplaintTransaction>,
    /// Pass this token in the ListComplaintTransactionsRequest to continue to list
    /// results. If all results have been returned, this field is an empty string
    /// or not present in the response.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Request for the `ExportFinancialTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportFinancialTransactionsRequest {
    /// Required. The parent resource for the transactions. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Transaction type for the financial transaction API. The possible values for
    /// transaction type are
    ///
    /// * TRANSACTION_TYPE_CREDIT
    /// * TRANSACTION_TYPE_DEBIT
    /// * TRANSACTION_TYPE_REVERSAL
    ///
    /// If no transaction type is specified, records of all the above transaction
    /// types will be exported.
    #[prost(enumeration = "TransactionType", tag = "2")]
    pub transaction_type: i32,
    /// The start time for the query.
    #[prost(message, optional, tag = "3")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The end time for the query.
    #[prost(message, optional, tag = "4")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Request for the `ExportMetadataTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportMetadataTransactionsRequest {
    /// Required. The parent resource for the transactions. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// API type of the metadata transaction API. The possible values for API type
    /// are
    ///
    /// * BALANCE
    /// * CHECK_STATUS
    /// * HEART_BEAT
    /// * INITIATE_REGISTRATION
    /// * LIST_ACCOUNTS
    /// * UPDATE_CREDENTIALS
    /// * VALIDATE_REGISTRATION
    ///
    /// If no API type is specified, records of all the above API types will be
    /// exported.
    #[prost(enumeration = "ApiType", tag = "2")]
    pub api_type: i32,
    /// The start time for the query.
    #[prost(message, optional, tag = "3")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The end time for the query.
    #[prost(message, optional, tag = "4")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Request for the `ExportMandateTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportMandateTransactionsRequest {
    /// Required. The parent resource for the transactions. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Transaction type for the mandate transaction API.  The possible values for
    /// transaction type are
    ///
    /// * TRANSACTION_TYPE_CREATE
    /// * TRANSACTION_TYPE_REVOKE
    /// * TRANSACTION_TYPE_UPDATE
    ///
    /// If no transaction type is specified, records of all the above transaction
    /// types will be exported.
    #[prost(enumeration = "TransactionType", tag = "2")]
    pub transaction_type: i32,
    /// The start time for the query.
    #[prost(message, optional, tag = "3")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The end time for the query.
    #[prost(message, optional, tag = "4")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Request for the `ExportComplaintTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportComplaintTransactionsRequest {
    /// Required. The parent resource for the transactions. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Transaction type for the complaint transaction API. The possible values for
    /// transaction type are
    ///
    /// * TRANSACTION_TYPE_CHECK_STATUS
    /// * TRANSACTION_TYPE_COMPLAINT
    /// * TRANSACTION_TYPE_DISPUTE
    /// * TRANSACTION_TYPE_REFUND
    /// * TRANSACTION_TYPE_REVERSAL
    /// * TRANSACTION_TYPE_STATUS_UPDATE
    ///
    /// If no transaction type is specified, records of all the above transaction
    /// types will be exported.
    #[prost(enumeration = "TransactionType", tag = "2")]
    pub transaction_type: i32,
    /// The start time for the query.
    #[prost(message, optional, tag = "3")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The end time for the query.
    #[prost(message, optional, tag = "4")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Response for the `ExportFinancialTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportFinancialTransactionsResponse {
    /// URI of the exported file.
    #[prost(string, tag = "1")]
    pub target_uri: ::prost::alloc::string::String,
}
/// Response for the `ExportMetadataTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportMetadataTransactionsResponse {
    /// URI of the exported file.
    #[prost(string, tag = "1")]
    pub target_uri: ::prost::alloc::string::String,
}
/// Response for the `ExportMandateTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportMandateTransactionsResponse {
    /// URI of the exported file.
    #[prost(string, tag = "1")]
    pub target_uri: ::prost::alloc::string::String,
}
/// Response for the `ExportComplaintTransactions` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportComplaintTransactionsResponse {
    /// URI of the exported file.
    #[prost(string, tag = "1")]
    pub target_uri: ::prost::alloc::string::String,
}
/// Metadata for ExportFinancialTransactions.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExportFinancialTransactionsMetadata {
    /// Output only. The time at which the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Metadata for ExportMandateTransactions.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExportMandateTransactionsMetadata {
    /// Output only. The time at which the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Metadata for ExportMetadataTransactions.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExportMetadataTransactionsMetadata {
    /// Output only. The time at which the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Metadata for ExportComplaintTransactions.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExportComplaintTransactionsMetadata {
    /// Output only. The time at which the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Generated client implementations.
pub mod issuer_switch_transactions_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Fetch the issuer switch participant.
    /// Lists and exports transactions processed by the issuer switch.
    #[derive(Debug, Clone)]
    pub struct IssuerSwitchTransactionsClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> IssuerSwitchTransactionsClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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,
        ) -> IssuerSwitchTransactionsClient<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> + std::marker::Send + std::marker::Sync,
        {
            IssuerSwitchTransactionsClient::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
        }
        /// List metadata transactions that satisfy the specified filter criteria.
        pub async fn list_metadata_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListMetadataTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListMetadataTransactionsResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ListMetadataTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ListMetadataTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List financial transactions that satisfy specified filter criteria.
        pub async fn list_financial_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListFinancialTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListFinancialTransactionsResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ListFinancialTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ListFinancialTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List mandate transactions that satisfy specified filter criteria.
        pub async fn list_mandate_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListMandateTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListMandateTransactionsResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ListMandateTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ListMandateTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List complaint transactions that satisfy specified filter criteria.
        pub async fn list_complaint_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListComplaintTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListComplaintTransactionsResponse>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ListComplaintTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ListComplaintTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Export financial transactions received within the specified time range as a
        /// file into a configured target location. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ExportFinancialTransactionsMetadata][google.cloud.paymentgateway.issuerswitch.v1.ExportFinancialTransactionsMetadata]
        /// - `response`:
        /// [ExportFinancialTransactionsResponse][google.cloud.paymentgateway.issuerswitch.v1.ExportFinancialTransactionsResponse]
        ///
        /// The exported file will be in the standard CSV format where each row in the
        /// file represents a transaction. The file has the following fields in order:
        ///
        /// 1. `TransactionID`
        ///     * **Min Length** - 35 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - UPI transaction ID.
        /// 1. `TransactionType`
        ///     * **Min Length** - 22 characters
        ///     * **Max Length** - 25 characters
        ///     * **Description** - Type of the transaction. This will be one of
        ///     `TRANSACTION_TYPE_CREDIT`, `TRANSACTION_TYPE_DEBIT` or
        ///     `TRANSACTION_TYPE_REVERSAL`.
        /// 1. `TransactionSubType`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 7 characters
        ///     * **Description** - Subtype of the transaction. This will be one of
        ///     `COLLECT`, or `PAY`.
        /// 1. `CreationTime`
        ///     * **Min Length** - 20 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Timestamp (in UTC) indicating when the issuer
        ///     switch created the transaction resource for processing the transaction.
        ///     The format will be as per RFC-3339. Example : 2022-11-22T23:00:05Z
        /// 1. `State`
        ///     * **Min Length** - 6 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - State of the transaction. This will be one of
        ///     `FAILED`, `SUCCEEDED`, or `TIMED_OUT`.
        /// 1. `RRN`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Retrieval reference number associated with the
        ///     transaction.
        /// 1. `PayerVPA`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Virtual Payment Address (VPA) of the payer.
        /// 1. `PayerMobileNumber`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Mobile number of the payer.
        /// 1. `PayerIFSC`
        ///     * **Min Length** - 11 characters
        ///     * **Max Length** - 11 characters
        ///     * **Description** - IFSC of the payer's bank account.
        /// 1. `PayerAccountNumber`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Payer's bank account number.
        /// 1. `PayerAccountType`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 7 characters
        ///     * **Description** - Payer's bank account type. This will be one of
        ///     `SAVINGS`, `DEFAULT`, `CURRENT`, `NRE`, `NRO`, `PPIWALLET`,
        ///     `BANKWALLET`, `CREDIT`, `SOD`, or `UOD`.
        /// 1. `PayeeVPA`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Virtual Payment Address (VPA) of the payee.
        /// 1. `PayeeMobileNumber`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Payee's mobile number.
        /// 1. `PayeeIFSC`
        ///     * **Min Length** - 11 characters
        ///     * **Max Length** - 11 characters
        ///     * **Description** - IFSC of the payee's bank account.
        /// 1. `PayeeAccountNumber`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Payee's bank account number.
        /// 1. `PayeeAccountType`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 10 characters
        ///     * **Description** - Payee's bank account type. This will be one of
        ///     `SAVINGS`, `DEFAULT`, `CURRENT`, `NRE`, `NRO`, `PPIWALLET`,
        ///     `BANKWALLET`, `CREDIT`, `SOD`, or `UOD`.
        /// 1. `PayeeMerchantID`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Payee's merchant ID, only if the payee is a
        ///     merchant.
        /// 1. `PayeeMerchantName`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Payee's merchant name, only if the payee is a
        ///     merchant.
        /// 1. `PayeeMCC`
        ///     * **Min Length** - 4 characters
        ///     * **Max Length** - 4 characters
        ///     * **Description** - Payee's Merchant Category Code (MCC), only if the
        ///     payee is a merchant.
        /// 1. `Currency`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 3 characters
        ///     * **Description** - Currency of the amount involved in the transaction.
        ///     The currency codes are defined in ISO 4217.
        /// 1. `Amount`
        ///     * **Description** - Amount involved in the transaction.
        /// 1. `AdapterRequestIDs`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 2,000 characters
        ///     * **Description** - List of adapter request IDs (colon separated) used
        ///     when invoking the Adapter APIs for fulfilling a transaction request.
        /// 1. `ErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Error code of a failed transaction.
        /// 1. `ErrorMessage`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 10,000 characters
        ///     * **Description** - Error description for a failed transaction.
        /// 1. `UPIErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 3 characters
        ///     * **Description** - Error code as per the UPI specification. The issuer
        ///     switch maps the ErrorCode to an appropriate error code that complies
        ///     with the UPI specification.
        /// 1. `PayerDeviceInfoTypeAppName`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Payment application name on the payer's device.
        /// 1. `PayerDeviceInfoTypeCapability`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Capability of the payer's device.
        /// 1. `PayerDeviceInfoTypeGeoCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 15 characters
        ///     * **Description** - Geo code of the payer's device. This will include
        ///     floating point values for latitude and longitude (separated by colon).
        /// 1. `PayerDeviceInfoTypeID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Device ID of the payer's device.
        /// 1. `PayerDeviceInfoTypeIP`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 39 characters
        ///     * **Description** - IP address of the payer's device.
        /// 1. `PayerDeviceInfoTypeLocation`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 40 characters
        ///     * **Description** - Coarse location of the payer's device.
        /// 1. `PayerDeviceInfoTypeOS`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Operating system on the payer's device.
        /// 1. `PayerDeviceInfoTypeTelecomProvider`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Telecom provider for the payer's device.
        /// 1. `PayerDeviceInfoTypeDeviceType`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - Type of the payer's device. This will be one of
        ///     'MOB', 'INET', 'USDC/USDB', 'POS'.
        /// 1. `PayeeDeviceInfoTypeAppName`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Payment application name on the payee's device.
        /// 1. `PayeeDeviceInfoTypeCapability`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Capability of the payee's device.
        /// 1. `PayeeDeviceInfoTypeGeoCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 15 characters
        ///     * **Description** - Geo code of the payee's device. This will include
        ///     floating point values for latitude and longitude (separated by colon).
        /// 1. `PayeeDeviceInfoTypeID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Device ID of the payee's device.
        /// 1. `PayeeDeviceInfoTypeIP`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 39 characters
        ///     * **Description** - IP address of the payee's device.
        /// 1. `PayeeDeviceInfoTypeLocation`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 40 characters
        ///     * **Description** - Coarse location of the payee's device.
        /// 1. `PayeeDeviceInfoTypeOS`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Operating system on the payee's device.
        /// 1. `PayeeDeviceInfoTypeTelecomProvider`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Telecom provider for the payee's device.
        /// 1. `PayeeDeviceInfoTypeDeviceType`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - Type of the payee's device. This will be one of
        ///     'MOB', 'INET', 'USDC/USDB', 'POS'.
        /// 1. `ReferenceID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Consumer reference number to identify loan number,
        ///     order id etc.
        /// 1. `ReferenceURI`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - URL for the  transaction.
        /// 1. `ReferenceCategory`
        ///     * **Min Length** - 2 characters
        ///     * **Max Length** - 2 characters
        ///     * **Description** - Reference category.
        pub async fn export_financial_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ExportFinancialTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ExportFinancialTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ExportFinancialTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Export metadata transactions received within the specified time range as a
        /// file into a configured target location. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ExportMetadataTransactionsMetadata][google.cloud.paymentgateway.issuerswitch.v1.ExportMetadataTransactionsMetadata]
        /// - `response`:
        /// [ExportMetadataTransactionsResponse][google.cloud.paymentgateway.issuerswitch.v1.ExportMetadataTransactionsResponse]
        ///
        /// The exported file will be in the standard CSV format where each row in the
        /// file represents a transaction. The file has the following fields in order:
        ///
        /// 1. `TransactionID`
        ///     * **Min Length** - 35 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - UPI transaction ID.
        /// 1. `APIType`
        ///     * **Description** - The transaction's API type. The value will be of
        ///     the [ApiType][google.cloud.paymentgateway.issuerswitch.v1.ApiType]
        ///     enum.
        /// 1. `TransactionType`
        ///     * **Description** - Type of the transaction. The value will be of the
        ///     [TransactionType][google.cloud.paymentgateway.issuerswitch.v1.TransactionType]
        ///     enum.
        /// 1. `CreationTime`
        ///     * **Min Length** - 20 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Timestamp (in UTC) indicating when the issuer
        ///     switch created the transaction resource for processing the transaction.
        ///     The format will be as per RFC-3339. Example : 2022-11-22T23:00:05Z
        /// 1. `State`
        ///     * **Min Length** - 6 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - State of the transaction. This will be one of
        ///     `FAILED`, `SUCCEEDED`, or `TIMED_OUT`.
        /// 1. `OriginVPA`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Virtual Payment Address (VPA) of the originator of
        ///     the transaction.
        /// 1. `AdapterRequestIDs`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 2,000 characters
        ///     * **Description** - List of adapter request IDs (colon separated) used
        ///     when invoking the Adapter APIs for fulfilling a transaction request.
        /// 1. `ErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Error code of the failed transaction.
        /// 1. `ErrorMessage`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 10,000 characters
        ///     * **Description** - Error description for the failed transaction.
        /// 1. `UPIErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 3 characters
        ///     * **Description** - Error code as per the UPI specification. The issuer
        ///     switch maps the ErrorCode to an appropriate error code that complies
        ///     with the UPI specification.
        pub async fn export_metadata_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ExportMetadataTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ExportMetadataTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ExportMetadataTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Export mandate transactions received within the specified time range as a
        /// file into a configured target location. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ExportMandateTransactionsMetadata][google.cloud.paymentgateway.issuerswitch.v1.ExportMandateTransactionsMetadata]
        /// - `response`:
        /// [ExportMandateTransactionsResponse][google.cloud.paymentgateway.issuerswitch.v1.ExportMandateTransactionsResponse]
        ///
        /// The exported file will be in the standard CSV format where each row in the
        /// file represents a transaction. The file has the following fields in order:
        ///
        /// 1. `TransactionID`
        ///     * **Min Length** - 35 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - UPI transaction ID.
        /// 1. `UniqueMandateNumber`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 70 characters
        ///     * **Description** - UPI Unique Mandate Number.
        /// 1. `TransactionType`
        ///     * **Min Length** - 23 characters
        ///     * **Max Length** - 23 characters
        ///     * **Description** - Type of the transaction. This will be one of
        ///     `TRANSACTION_TYPE_CREATE`, `TRANSACTION_TYPE_REVOKE`,
        ///     `TRANSACTION_TYPE_UPDATE`, `TRANSACTION_TYPE_PAUSE` or
        ///     `TRANSACTION_TYPE_UNPAUSE`.
        /// 1. `CreationTime`
        ///     * **Min Length** - 20 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Timestamp (in UTC) indicating when the issuer
        ///     switch created the transaction resource for processing the transaction.
        ///     The format will be as per RFC-3339. Example : 2022-11-22T23:00:05Z
        /// 1. `State`
        ///     * **Min Length** - 6 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - State of the transaction. This will be one of
        ///     `FAILED`, `SUCCEEDED`, or `TIMED_OUT`.
        /// 1. `PayerVPA`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Virtual Payment Address (VPA) of the payer.
        /// 1. `PayerMobileNumber`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Mobile number of the payer.
        /// 1. `PayerIFSC`
        ///     * **Min Length** - 11 characters
        ///     * **Max Length** - 11 characters
        ///     * **Description** - IFSC of the payer's bank account.
        /// 1. `PayerAccountNumber`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Payer's bank account number.
        /// 1. `PayerAccountType`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 7 characters
        ///     * **Description** - Payer's bank account type. This will be one of
        ///     `SAVINGS`, `DEFAULT`, `CURRENT`, `NRE`, `NRO`, `PPIWALLET`,
        ///     `BANKWALLET`, `CREDIT`, `SOD`, or `UOD`.
        /// 1. `PayeeVPA`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Virtual Payment Address (VPA) of the payee.
        /// 1. `PayeeMobileNumber`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Mobile number of the payee.
        /// 1. `PayeeIFSC`
        ///     * **Min Length** - 11 characters
        ///     * **Max Length** - 11 characters
        ///     * **Description** - IFSC of the payee's bank account.
        /// 1. `PayeeAccountNumber`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Payee's bank account number.
        /// 1. `PayeeAccountType`
        ///     * **Min Length** - 3 characters
        ///     * **Max Length** - 10 characters
        ///     * **Description** - Payee's bank account type. This will be one of
        ///     `SAVINGS`, `DEFAULT`, `CURRENT`, `NRE`, `NRO`, `PPIWALLET`,
        ///     `BANKWALLET`, `CREDIT`, `SOD`, or `UOD`.
        /// 1. `PayeeMerchantID`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Payee's merchant ID, only if the payee is a
        ///     merchant
        /// 1. `PayeeMerchantName`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Payee's merchant name, only if the payee is a
        ///     merchant.
        /// 1. `PayeeMCC`
        ///     * **Min Length** - 4 characters
        ///     * **Max Length** - 4 characters
        ///     * **Description** - Payee's Merchant Category Code (MCC), only if the
        ///     payee is a merchant.
        /// 1. `Amount`
        ///     * **Description** - Amount specified in the mandate.
        /// 1. `RecurrencePattern`
        ///     * **Description** - Reccurence pattern of the mandate. The value will
        ///     be of the
        ///     [MandateTransaction.RecurrencePatternType][google.cloud.paymentgateway.issuerswitch.v1.MandateTransaction.RecurrencePatternType]
        ///     enum.
        /// 1. `RecurrenceRuleType`
        ///     * **Description** - Reccurrence rule type of the mandate. The value
        ///     will be of the
        ///     [MandateTransaction.RecurrenceRuleType][google.cloud.paymentgateway.issuerswitch.v1.MandateTransaction.RecurrenceRuleType]
        ///     enum.
        /// 1. `RecurrenceRuleValue`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 2 characters
        ///     * **Description** - Recurrence rule value of the mandate. This will be
        ///     an integer between 1 and 31.
        /// 1. `Revokeable`
        ///     * **Min Length** - 4 characters
        ///     * **Max Length** - 5 characters
        ///     * **Description** - Boolean value specifying if the mandate is
        ///     revokable.
        /// 1. `StartDate`
        ///     * **Min Length** - 10 characters
        ///     * **Max Length** - 10 characters
        ///     * **Description** - The start date of the mandate in `DD-MM-YYYY`
        ///     format.
        /// 1. `EndDate`
        ///     * **Min Length** - 10 characters
        ///     * **Max Length** - 10 characters
        ///     * **Description** - The end date of the mandate in `DD-MM-YYYY` format.
        /// 1. `AmountRuleType`
        ///     * **Description** - The amount rule of the mandate. The value will be
        ///     of the
        ///     [MandateTransaction.AmountRuleType][google.cloud.paymentgateway.issuerswitch.v1.MandateTransaction.AmountRuleType]
        ///     enum.
        /// 1. `ApprovalReference`
        ///     * **Min Length** - 6 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - The block funds reference generated by the bank, if
        ///     funds have been blocked for the mandate. This column will have a value
        ///     only when the RecurrencePattern is ONETIME.
        /// 1. `BlockFunds`
        ///     * **Min Length** - 4 characters
        ///     * **Max Length** - 5 characters
        ///     * **Description** - Boolean value specifying if the mandate transaction
        ///     requested to block funds.
        /// 1. `LastUpdateTime`
        ///     * **Min Length** - 20 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Timestamp (in UTC) indicating when was the last
        ///     modification made to the mandate. The format will be as per RFC-3339.
        ///     Example : 2022-11-22T23:00:05Z
        /// 1. `AdapterRequestIDs`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 2,000 characters
        ///     * **Description** - List of adapter request IDs (colon separated) used
        ///     when invoking the Adapter APIs for fulfilling a transaction request.
        /// 1. `ErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Error code of the failed transaction.
        /// 1. `ErrorMessage`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 10,000 characters
        ///     * **Description** - Error description for the failed transaction.
        /// 1. `UPIErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 3 characters
        ///     * **Description** - Error code as per the UPI specification. The issuer
        ///     switch maps the ErrorCode to an appropriate error code that complies
        ///     with the UPI specification.
        /// 1. `PayerDeviceInfoTypeAppName`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Payment application name on the payer's device.
        /// 1. `PayerDeviceInfoTypeCapability`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Capability of the payer's device.
        /// 1. `PayerDeviceInfoTypeGeoCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 15 characters
        ///     * **Description** - Geo code of the payer's device. This will include
        ///     floating point values for latitude and longitude (separated by colon).
        /// 1. `PayerDeviceInfoTypeID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Device ID of the payer's device.
        /// 1. `PayerDeviceInfoTypeIP`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 39 characters
        ///     * **Description** - IP address of the payer's device.
        /// 1. `PayerDeviceInfoTypeLocation`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 40 characters
        ///     * **Description** - Coarse location of the payer's device.
        /// 1. `PayerDeviceInfoTypeOS`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Operating system on the payer's device.
        /// 1. `PayerDeviceInfoTypeTelecomProvider`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Telecom provider for the payer's device.
        /// 1. `PayerDeviceInfoTypeDeviceType`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - Type of the payer's device. This will be one of
        ///     'MOB', 'INET', 'USDC/USDB', 'POS'.
        /// 1. `PayeeDeviceInfoTypeAppName`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Payment application name on the payee's device.
        /// 1. `PayeeDeviceInfoTypeCapability`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Capability of the payee's device.
        /// 1. `PayeeDeviceInfoTypeGeoCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 15 characters
        ///     * **Description** - Geo code of the payee's device. This will include
        ///     floating point values for latitude and longitude (separated by colon).
        /// 1. `PayeeDeviceInfoTypeID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Device ID of the payee's device.
        /// 1. `PayeeDeviceInfoTypeIP`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 39 characters
        ///     * **Description** - IP address of the payee's device.
        /// 1. `PayeeDeviceInfoTypeLocation`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 40 characters
        ///     * **Description** - Coarse location of the payee's device.
        /// 1. `PayeeDeviceInfoTypeOS`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Operating system on the payee's device.
        /// 1. `PayeeDeviceInfoTypeTelecomProvider`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 99 characters
        ///     * **Description** - Telecom provider for the payee's device.
        /// 1. `PayeeDeviceInfoTypeDeviceType`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - Type of the payee's device. This will be one of
        ///     `MOB`, `INET`, `USDC/USDB`, `POS`.
        /// 1. `ReferenceID`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Consumer reference number to identify loan number,
        ///     order id etc.
        /// 1. `ReferenceURI`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - URL for the  transaction.
        /// 1. `ReferenceCategory`
        ///     * **Min Length** - 2 characters
        ///     * **Max Length** - 2 characters
        ///     * **Description** - Reference category.
        /// 1. `MandateName`
        ///     * **Min Length** - 1 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - The mandate's name.
        pub async fn export_mandate_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ExportMandateTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ExportMandateTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ExportMandateTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Export complaint transactions received within the specified time range as a
        /// file into a configured target location. The returned `Operation` type has
        /// the following method-specific fields:
        ///
        /// - `metadata`:
        /// [ExportComplaintTransactionsMetadata][google.cloud.paymentgateway.issuerswitch.v1.ExportComplaintTransactionsMetadata]
        /// - `response`:
        /// [ExportComplaintTransactionsResponse][google.cloud.paymentgateway.issuerswitch.v1.ExportComplaintTransactionsResponse]
        ///
        /// The exported file will be in the standard CSV format where each row in the
        /// file represents a transaction. The file has the following fields in order:
        ///
        /// 1. `TransactionID`
        ///     * **Min Length** - 35 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - UPI transaction ID.
        /// 1. `TransactionType`
        ///     * **Min Length** - 23 characters
        ///     * **Max Length** - 30 characters
        ///     * **Description** - Type of the transaction. This will be one of
        ///     `TRANSACTION_TYPE_CHECK_STATUS`, `TRANSACTION_TYPE_COMPLAINT`,
        ///     `TRANSACTION_TYPE_REVERSAL`, `TRANSACTION_TYPE_DISPUTE`,
        ///     `TRANSACTION_TYPE_REFUND`, or `TRANSACTION_TYPE_STATUS_UPDATE`.
        /// 1. `CreationTime`
        ///     * **Min Length** - 20 characters
        ///     * **Max Length** - 20 characters
        ///     * **Description** - Timestamp (in UTC) indicating when the issuer
        ///     switch created the transaction resource for processing the transaction.
        ///     The format will be as per RFC-3339. Example : 2022-11-22T23:00:05Z
        /// 1: `State`
        ///     * **Min Length** - 6 characters
        ///     * **Max Length** - 9 characters
        ///     * **Description** - State of the transaction. This will be one of
        ///     `FAILED`, `SUCCEEDED`, or `TIMED_OUT`.
        /// 1. `OriginalRRN`
        ///     * **Min Length** - 12 characters
        ///     * **Max Length** - 12 characters
        ///     * **Description** - Retrieval reference number of the original payment
        ///     transaction.
        /// 1. `BankType`
        ///     * **Min Length** - 8 characters
        ///     * **Max Length** - 11 characters
        ///     * **Description** - The subtype of the transaction based on the bank
        ///     involved. This will be one of `BENEFICIARY`, or `REMITTER`.
        /// 1. `OriginalTransactionID`
        ///     * **Min Length** - 35 characters
        ///     * **Max Length** - 35 characters
        ///     * **Description** - Transaction ID of the original unresolved
        ///     transaction.
        /// 1. `RaiseComplaintAdjFlag`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the type of action to raise the
        ///     complaint.
        /// 1. `RaiseComplaintAdjCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the reason of action to raise the
        ///     complaint.
        /// 1. `ResolveComplaintAdjFlag`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the type of action to resolve the
        ///     complaint.
        /// 1. `ResolveComplaintAdjCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the reason of action to resolve the
        ///     complaint.
        /// 1. `RaiseDisputeAdjFlag`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the type of action to raise the dispute.
        /// 1. `RaiseDisputeAdjCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the reason of action to raise the
        ///     dispute.
        /// 1. `ResolveDisputeAdjFlag`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the type of action to resolve the
        ///     dispute.
        /// 1. `ResolveDisputeAdjCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the reason of action to resolve the
        ///     dispute.
        /// 1. `Amount`
        ///     * **Description** - Amount to be resolved.
        /// 1. `CurrentCycle`
        ///     * **Min Length** - 4 characters
        ///     * **Max Length** - 5 characters
        ///     * **Description** - Boolean value specifying if the complaint / dispute
        ///     belongs to current settlement cycle or not.
        /// 1. `CRN`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Defines the Complaint Reference number.
        /// 1. `AdjTime`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the time when the resolution was done.
        /// 1. `RespAdjFlag`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the response category type.
        /// 1. `RespAdjCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the response reason used.
        /// 1. `AdjRemarks`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Indicates the additional remarks for the complaint
        ///     / dispute.
        /// 1. `AdapterRequestIDs`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 2,000 characters
        ///     * **Description** - List of adapter request IDs (colon separated) used
        ///     when invoking the Adapter APIs for fulfilling a transaction request.
        /// 1. `ErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 255 characters
        ///     * **Description** - Error code of the failed transaction.
        /// 1. `ErrorMessage`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 10,000 characters
        ///     * **Description** - Error description for the failed transaction.
        /// 1. `UPIErrorCode`
        ///     * **Min Length** - 0 characters
        ///     * **Max Length** - 3 characters
        ///     * **Description** - Error code as per the UPI specification. The issuer
        ///     switch service maps the ErrorCode to an appropriate error code that
        ///     complies with the UPI specification.
        pub async fn export_complaint_transactions(
            &mut self,
            request: impl tonic::IntoRequest<super::ExportComplaintTransactionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::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.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions/ExportComplaintTransactions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactions",
                        "ExportComplaintTransactions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// The payload for the log entry.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpiTransaction {
    /// A human readable message about the log entry.
    #[prost(string, tag = "1")]
    pub message: ::prost::alloc::string::String,
    /// The severity of the log entry.
    #[prost(
        enumeration = "super::super::super::super::logging::r#type::LogSeverity",
        tag = "2"
    )]
    pub severity: i32,
    /// The API type of the transaction.
    #[prost(enumeration = "ApiType", tag = "3")]
    pub api_type: i32,
    /// The XML API type of the transaction.
    #[prost(enumeration = "XmlApiType", tag = "4")]
    pub xml_api_type: i32,
    /// The type of the transaction.
    #[prost(enumeration = "TransactionType", tag = "5")]
    pub transaction_type: i32,
    /// UPI's transaction ID.
    #[prost(string, tag = "6")]
    pub transaction_id: ::prost::alloc::string::String,
    /// UPI's message ID.
    #[prost(string, tag = "7")]
    pub message_id: ::prost::alloc::string::String,
    /// The payment's RRN. This will be present only for payment related
    /// transactions.
    #[prost(string, tag = "8")]
    pub rrn: ::prost::alloc::string::String,
    /// The timestamp at which the payload was received by the issuer switch.
    #[prost(message, optional, tag = "9")]
    pub payload_receipt_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The timestamp at which the payload was sent by the issuer switch.
    #[prost(message, optional, tag = "10")]
    pub payload_sent_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Status of the transaction which could be SUCCESS or FAILURE. This will be
    /// populated only after transaction is complete.
    #[prost(enumeration = "transaction_info::State", tag = "11")]
    pub status: i32,
    /// Issuer switch error code. This will be present only for failed
    /// transactions.
    #[prost(string, tag = "12")]
    pub error_code: ::prost::alloc::string::String,
    /// UPI error code that was sent back to NPCI. This will be present only for
    /// failed transactions.
    #[prost(string, tag = "13")]
    pub upi_error_code: ::prost::alloc::string::String,
    /// Issuer switch error message. This will be present only for failed
    /// transactions.
    #[prost(string, tag = "14")]
    pub error_message: ::prost::alloc::string::String,
    /// The ack, request or response payload.
    #[prost(oneof = "upi_transaction::Payload", tags = "15, 16")]
    pub payload: ::core::option::Option<upi_transaction::Payload>,
}
/// Nested message and enum types in `UpiTransaction`.
pub mod upi_transaction {
    /// The ack, request or response payload.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        /// The payload in XML format sent to the issuer switch.
        #[prost(string, tag = "15")]
        Sent(::prost::alloc::string::String),
        /// The payload in XML format received by the issuer switch.
        #[prost(string, tag = "16")]
        Received(::prost::alloc::string::String),
    }
}
/// Request for the
/// [FetchParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.FetchParticipant]
/// method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchParticipantRequest {
    /// Required. The parent resource for the participants. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The account details of the issuer participant.
    #[prost(message, optional, tag = "2")]
    pub account_reference: ::core::option::Option<AccountReference>,
}
/// A customer of the bank who participates in transactions processed by the
/// issuer switch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IssuerParticipant {
    /// Required. The account details of the issuer participant. Only the
    /// account_number and ifsc fields will be used.
    #[prost(message, optional, tag = "1")]
    pub account_reference: ::core::option::Option<AccountReference>,
    /// Output only. The mobile number of the participant.
    #[prost(string, tag = "2")]
    pub mobile_number: ::prost::alloc::string::String,
    /// Output only. The current state of the participant.
    #[prost(enumeration = "issuer_participant::State", tag = "3")]
    pub state: i32,
    /// Optional. Additional metadata about the participant.
    #[prost(message, optional, tag = "4")]
    pub metadata: ::core::option::Option<issuer_participant::Metadata>,
    /// Output only. The current count of consecutive incorrect MPIN attempts.
    #[prost(int32, tag = "5")]
    pub mpin_failure_count: i32,
    /// Output only. The time when participant's MPIN got locked due to too many
    /// incorrect attempts.
    #[prost(message, optional, tag = "6")]
    pub mpin_locked_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The time when the participant's account was onboarded to PGIS.
    #[prost(message, optional, tag = "7")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The time when the participant was last updated.
    #[prost(message, optional, tag = "8")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Nested message and enum types in `IssuerParticipant`.
pub mod issuer_participant {
    /// The metadata of the participant.
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Metadata {
        /// Optional. Additional metadata about a particular participant as key-value
        /// pairs. These values are returned by the bank adapter/card adapter in
        /// response to the SearchAccounts/InitiateRegistration APIs.
        #[prost(btree_map = "string, string", tag = "1")]
        pub values: ::prost::alloc::collections::BTreeMap<
            ::prost::alloc::string::String,
            ::prost::alloc::string::String,
        >,
    }
    /// The state of the participant.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Unspecified state.
        Unspecified = 0,
        /// The participant is inactive for all UPI transactions. The issuer switch
        /// will return the `AM` error to the UPI payments orchestrator for any
        /// operation involving MPIN verification for the participant. They need to
        /// register with UPI again and provide a new MPIN.
        Inactive = 1,
        /// The participant is active for all UPI transactions.
        Active = 2,
        /// The participants MPIN has been locked because they have exceeded the
        /// threshold for maximum number of incorrect MPIN verification attempts. No
        /// UPI transactions will be permitted until the participant's MPIN has been
        /// reset.
        MpinLocked = 3,
        /// The participants mobile number has been changed in the issuer bank. Any
        /// transaction involving MPIN verification of the participant will return a
        /// `B1` error to the UPI payments orchestrator. The user will be forced to
        /// re-register with their changed mobile number.
        MobileNumberChanged = 4,
        /// The participant is registering for UPI transactions for the first time.
        NewRegistrationInitiated = 5,
        /// The participant had already registered for UPI transactions but is now
        /// registering again or resetting their MPIN.
        ReRegistrationInitiated = 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::Active => "ACTIVE",
                State::MpinLocked => "MPIN_LOCKED",
                State::MobileNumberChanged => "MOBILE_NUMBER_CHANGED",
                State::NewRegistrationInitiated => "NEW_REGISTRATION_INITIATED",
                State::ReRegistrationInitiated => "RE_REGISTRATION_INITIATED",
            }
        }
        /// 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),
                "ACTIVE" => Some(Self::Active),
                "MPIN_LOCKED" => Some(Self::MpinLocked),
                "MOBILE_NUMBER_CHANGED" => Some(Self::MobileNumberChanged),
                "NEW_REGISTRATION_INITIATED" => Some(Self::NewRegistrationInitiated),
                "RE_REGISTRATION_INITIATED" => Some(Self::ReRegistrationInitiated),
                _ => None,
            }
        }
    }
}
/// Request for the
/// [UpdateIssuerParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.UpdateIssuerParticipant]
/// method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateIssuerParticipantRequest {
    /// Required. The parent resource for the participants. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Required. The participant to update.
    #[prost(message, optional, tag = "2")]
    pub issuer_participant: ::core::option::Option<IssuerParticipant>,
    /// Required. The list of fields to update.
    #[prost(message, optional, tag = "3")]
    pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Request for the
/// [ActivateParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.ActivateParticipant],
/// [DeactivateParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.DeactivateParticipant]
/// and
/// [MobileNumberUpdated][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.MobileNumberChanged]
/// methods.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParticipantStateChangeRequest {
    /// Required. The parent resource for the participant. The format is
    /// `projects/{project}`.
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The identifier for the issuer participant. One of the two values must be
    /// specified.
    #[prost(oneof = "participant_state_change_request::Id", tags = "2, 3")]
    pub id: ::core::option::Option<participant_state_change_request::Id>,
}
/// Nested message and enum types in `ParticipantStateChangeRequest`.
pub mod participant_state_change_request {
    /// The identifier for the issuer participant. One of the two values must be
    /// specified.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Id {
        /// Optional. The account details of the issuer participant.
        #[prost(message, tag = "2")]
        AccountReference(super::AccountReference),
        /// Optional. The mobile number of the issuer participant.
        #[prost(string, tag = "3")]
        MobileNumber(::prost::alloc::string::String),
    }
}
/// Response for the
/// [ActivateParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.ActivateParticipant],
/// [DeactivateParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.DeactivateParticipant]
/// and
/// [MobileNumberChanged][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.MobileNumberChanged]
/// methods.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IssuerParticipants {
    /// Output only. The list of updated participants.
    #[prost(message, repeated, tag = "1")]
    pub participants: ::prost::alloc::vec::Vec<IssuerParticipant>,
}
/// Generated client implementations.
pub mod issuer_switch_participants_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// A service that allows for the management of participants in the issuer
    /// switch.
    #[derive(Debug, Clone)]
    pub struct IssuerSwitchParticipantsClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> IssuerSwitchParticipantsClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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,
        ) -> IssuerSwitchParticipantsClient<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> + std::marker::Send + std::marker::Sync,
        {
            IssuerSwitchParticipantsClient::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
        }
        /// Fetch the issuer switch participant. This method can be used to retrieve
        /// all details of a participant in the issuer switch.
        ///
        /// In UPI, the participant is identified by their account's IFSC and their
        /// account number.
        pub async fn fetch_participant(
            &mut self,
            request: impl tonic::IntoRequest<super::FetchParticipantRequest>,
        ) -> std::result::Result<
            tonic::Response<super::IssuerParticipant>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants/FetchParticipant",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants",
                        "FetchParticipant",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update the issuer switch participant. Currently, this API only allows for
        /// the
        /// [metadata][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.metadata]
        /// field to be updated.
        ///
        /// The `number` of key-value pairs in the `metadata` field, the length of each
        /// `key` and the length of each `value` should be within the thresholds
        /// defined for them in the issuer switch configuration. Any violation of these
        /// thresholds will cause this API to return an error. The default values for
        /// these thresholds are:
        ///
        /// * `Maximum number` of key-value pairs - `5`
        /// * `Maximum length` of a key - `100`
        /// * `Maximum length` of a value - `500`
        ///
        /// **Note** that this method replaces any existing `metadata` field value in
        /// the participant with the new value. Specifically, it does not do a merge.
        /// If key-value pairs are to be added/removed from the metadata, then
        /// callers must follow the following steps:
        ///
        /// 1. Invoke the
        ///   [FetchParticipant][google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants.FetchParticipant]
        ///    API to get the current value of the `metadata` field.
        /// 1. Update the `metadata` map to add/remove key-value pairs from it.
        /// 1. Update the `metadata` in the issuer switch using this method.
        pub async fn update_issuer_participant(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateIssuerParticipantRequest>,
        ) -> std::result::Result<
            tonic::Response<super::IssuerParticipant>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants/UpdateIssuerParticipant",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants",
                        "UpdateIssuerParticipant",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Activate the issuer switch participant for UPI transactions. This API
        /// sets the state of the participant to
        /// [ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE].
        /// A participant in the `ACTIVE` state can perform all UPI operations
        /// normally.
        ///
        /// The behavior of this API varies based on the current state of the
        /// participant.
        ///
        /// *   Current state is
        ///     [ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE]
        ///     : This API will make no change to the participant's state and returns a
        ///     successful response.
        /// *    Current state is
        ///     [INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE]
        ///     : If an _MPIN_ has already been provisioned for the participant, then
        ///     this API will change the state of the participant to `ACTIVE`. Else,
        ///     this API will return an error.
        /// *   Current state is
        ///     [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED]
        ///     : The state cannot be changed to `ACTIVE`. This API will return an
        ///     error.
        /// *   Current state is
        ///     [NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
        ///     : The state cannot be changed to `ACTIVE`. This API will return an
        ///     error.
        /// *   Current state is
        ///     [RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
        ///     : The state cannot be changed to `ACTIVE`. This API will return an
        ///     error.
        pub async fn activate_participant(
            &mut self,
            request: impl tonic::IntoRequest<super::ParticipantStateChangeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::IssuerParticipants>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants/ActivateParticipant",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants",
                        "ActivateParticipant",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deactivate the issuer switch participant for UPI transactions. This API
        /// sets the state of the participant to
        /// [INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE].
        /// An `INACTIVE` participant cannot perform any UPI operation which involves
        /// MPIN verification.
        ///
        /// The behavior of this API varies based on the current state of the
        /// participant.
        ///
        /// *   Current state is
        ///     [ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE]
        ///     : The state will change to `INACTIVE`. The user will be forced to
        ///     re-register with UPI and reset their MPIN  to perform any UPI
        ///     operations.
        /// *   Current state is
        ///     [INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE]
        ///     : This API will make no change to the participant's state and returns a
        ///     successful response.
        /// *   Current state is
        ///     [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED]
        ///     : The state cannot be changed to `INACTIVE`. This API will return an
        ///     error.
        /// *   Current state is
        ///     [NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
        ///     : The state cannot be changed to `INACTIVE`. This API will return an
        ///     error.
        /// *   Current state is
        ///     [RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
        ///     : The state cannot be changed to `INACTIVE`. This API will return an
        ///     error.
        pub async fn deactivate_participant(
            &mut self,
            request: impl tonic::IntoRequest<super::ParticipantStateChangeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::IssuerParticipants>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants/DeactivateParticipant",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants",
                        "DeactivateParticipant",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Mark the state of the issuer switch participant as _mobile number changed_
        /// to prevent UPI transactions by the user. This API sets the state of the
        /// participant to
        /// [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED].
        ///
        /// Any UPI operation for a participant in the `MOBILE_NUMBER_CHANGED` state
        /// will cause the issuer switch to return a `B1` error to the UPI payments
        /// orchestrator which would force the user to re-register with UPI.
        ///
        /// The behavior of this API varies based on the current state of the
        /// participant.
        ///
        /// *   Current state is
        ///     [ACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.ACTIVE]
        ///     : The state will change to `MOBILE_NUMBER_CHANGED`. Any operation
        ///     involving MPIN verification of the participant will return a `B1` error
        ///     to the UPI payments orchestrator. The user will be forced to
        ///     re-register with their changed mobile number.
        /// *   Current state is
        ///     [INACTIVE][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.INACTIVE]
        ///     : The state will change to `MOBILE_NUMBER_CHANGED`. Any operation
        ///     involving MPIN verification of the participant will return a `B1` error
        ///     to the UPI payments orchestrator. The user will be forced to
        ///     re-register with their changed mobile number.
        /// *   Current state is
        ///     [MOBILE_NUMBER_CHANGED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.MOBILE_NUMBER_CHANGED]
        ///     : This API will make no change to the participant's state and returns a
        ///     successful response.
        /// *   Current state is
        ///     [NEW_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.NEW_REGISTRATION_INITIATED]
        ///     : The state cannot be changed to `MOBILE_NUMBER_CHANGED`. This API will
        ///     return an error.
        /// *   Current state is
        ///     [RE_REGISTRATION_INITIATED][google.cloud.paymentgateway.issuerswitch.v1.IssuerParticipant.State.RE_REGISTRATION_INITIATED]
        ///     : The state will change to `MOBILE_NUMBER_CHANGED`. Any operation
        ///     involving MPIN verification of the participant will return a `B1` error
        ///     to the UPI payments orchestrator. The user will be forced to
        ///     re-register with their changed mobile number.
        pub async fn mobile_number_changed(
            &mut self,
            request: impl tonic::IntoRequest<super::ParticipantStateChangeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::IssuerParticipants>,
            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.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants/MobileNumberChanged",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipants",
                        "MobileNumberChanged",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}