nominal-api 0.1196.0

API bindings for the Nominal platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
// This file is @generated by prost-build.
/// `Rule` represents a validation rule written in the Common Expression
/// Language (CEL) syntax. Each Rule includes a unique identifier, an
/// optional error message, and the CEL expression to evaluate. For more
/// information, [see our documentation](<https://buf.build/docs/protovalidate/schemas/custom-rules/>).
///
/// ```proto
/// message Foo {
///    option (buf.validate.message).cel = {
///      id: "foo.bar"
///      message: "bar must be greater than 0"
///      expression: "this.bar > 0"
///    };
///    int32 bar = 1;
/// }
/// ```
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Rule {
    /// `id` is a string that serves as a machine-readable name for this Rule.
    /// It should be unique within its scope, which could be either a message or a field.
    #[prost(string, optional, tag = "1")]
    pub id: ::core::option::Option<::prost::alloc::string::String>,
    /// `message` is an optional field that provides a human-readable error message
    /// for this Rule when the CEL expression evaluates to false. If a
    /// non-empty message is provided, any strings resulting from the CEL
    /// expression evaluation are ignored.
    #[prost(string, optional, tag = "2")]
    pub message: ::core::option::Option<::prost::alloc::string::String>,
    /// `expression` is the actual CEL expression that will be evaluated for
    /// validation. This string must resolve to either a boolean or a string
    /// value. If the expression evaluates to false or a non-empty string, the
    /// validation is considered failed, and the message is rejected.
    #[prost(string, optional, tag = "3")]
    pub expression: ::core::option::Option<::prost::alloc::string::String>,
}
/// MessageRules represents validation rules that are applied to the entire message.
/// It includes disabling options and a list of Rule messages representing Common Expression Language (CEL) validation rules.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageRules {
    /// `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.
    /// These rules are written in Common Expression Language (CEL) syntax. For more information,
    /// [see our documentation](<https://buf.build/docs/protovalidate/schemas/custom-rules/>).
    ///
    ///
    /// ```proto
    /// message MyMessage {
    ///    // The field `foo` must be greater than 42.
    ///    option (buf.validate.message).cel = {
    ///      id: "my_message.value",
    ///      message: "value must be greater than 42",
    ///      expression: "this.foo > 42",
    ///    };
    ///    optional int32 foo = 1;
    /// }
    /// ```
    #[prost(message, repeated, tag = "3")]
    pub cel: ::prost::alloc::vec::Vec<Rule>,
    /// `oneof` is a repeated field of type MessageOneofRule that specifies a list of fields
    /// of which at most one can be present. If `required` is also specified, then exactly one
    /// of the specified fields _must_ be present.
    ///
    /// This will enforce oneof-like constraints with a few features not provided by
    /// actual Protobuf oneof declarations:
    ///    1. Repeated and map fields are allowed in this validation. In a Protobuf oneof,
    ///       only scalar fields are allowed.
    ///    2. Fields with implicit presence are allowed. In a Protobuf oneof, all member
    ///       fields have explicit presence. This means that, for the purpose of determining
    ///       how many fields are set, explicitly setting such a field to its zero value is
    ///       effectively the same as not setting it at all.
    ///    3. This will always generate validation errors for a message unmarshalled from
    ///       serialized data that sets more than one field. With a Protobuf oneof, when
    ///       multiple fields are present in the serialized form, earlier values are usually
    ///       silently ignored when unmarshalling, with only the last field being set when
    ///       unmarshalling completes.
    ///
    /// Note that adding a field to a `oneof` will also set the IGNORE_IF_ZERO_VALUE on the fields. This means
    /// only the field that is set will be validated and the unset fields are not validated according to the field rules.
    /// This behavior can be overridden by setting `ignore` against a field.
    ///
    /// ```proto
    /// message MyMessage {
    ///    // Only one of `field1` or `field2` _can_ be present in this message.
    ///    option (buf.validate.message).oneof = { fields: \["field1", "field2"\] };
    ///    // Exactly one of `field3` or `field4` _must_ be present in this message.
    ///    option (buf.validate.message).oneof = { fields: \["field3", "field4"\], required: true };
    ///    string field1 = 1;
    ///    bytes field2 = 2;
    ///    bool field3 = 3;
    ///    int32 field4 = 4;
    /// }
    /// ```
    #[prost(message, repeated, tag = "4")]
    pub oneof: ::prost::alloc::vec::Vec<MessageOneofRule>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageOneofRule {
    /// A list of field names to include in the oneof. All field names must be
    /// defined in the message. At least one field must be specified, and
    /// duplicates are not permitted.
    #[prost(string, repeated, tag = "1")]
    pub fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// If true, one of the fields specified _must_ be set.
    #[prost(bool, optional, tag = "2")]
    pub required: ::core::option::Option<bool>,
}
/// The `OneofRules` message type enables you to manage rules for
/// oneof fields in your protobuf messages.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OneofRules {
    /// If `required` is true, exactly one field of the oneof must be set. A
    /// validation error is returned if no fields in the oneof are set. Further rules
    /// should be placed on the fields themselves to ensure they are valid values,
    /// such as `min_len` or `gt`.
    ///
    /// ```proto
    /// message MyMessage {
    ///    oneof value {
    ///      // Either `a` or `b` must be set. If `a` is set, it must also be
    ///      // non-empty; whereas if `b` is set, it can still be an empty string.
    ///      option (buf.validate.oneof).required = true;
    ///      string a = 1 \[(buf.validate.field).string.min_len = 1\];
    ///      string b = 2;
    ///    }
    /// }
    /// ```
    #[prost(bool, optional, tag = "1")]
    pub required: ::core::option::Option<bool>,
}
/// FieldRules encapsulates the rules for each type of field. Depending on
/// the field, the correct set should be used to ensure proper validations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FieldRules {
    /// `cel` is a repeated field used to represent a textual expression
    /// in the Common Expression Language (CEL) syntax. For more information,
    /// [see our documentation](<https://buf.build/docs/protovalidate/schemas/custom-rules/>).
    ///
    /// ```proto
    /// message MyMessage {
    ///    // The field `value` must be greater than 42.
    ///    optional int32 value = 1 [(buf.validate.field).cel = {
    ///      id: "my_message.value",
    ///      message: "value must be greater than 42",
    ///      expression: "this > 42",
    ///    }];
    /// }
    /// ```
    #[prost(message, repeated, tag = "23")]
    pub cel: ::prost::alloc::vec::Vec<Rule>,
    /// If `required` is true, the field must be set. A validation error is returned
    /// if the field is not set.
    ///
    /// ```proto
    /// syntax="proto3";
    ///
    /// message FieldsWithPresence {
    ///    // Requires any string to be set, including the empty string.
    ///    optional string link = 1 [
    ///      (buf.validate.field).required = true
    ///    ];
    ///    // Requires true or false to be set.
    ///    optional bool disabled = 2 [
    ///      (buf.validate.field).required = true
    ///    ];
    ///    // Requires a message to be set, including the empty message.
    ///    SomeMessage msg = 4 [
    ///      (buf.validate.field).required = true
    ///    ];
    /// }
    /// ```
    ///
    /// All fields in the example above track presence. By default, Protovalidate
    /// ignores rules on those fields if no value is set. `required` ensures that
    /// the fields are set and valid.
    ///
    /// Fields that don't track presence are always validated by Protovalidate,
    /// whether they are set or not. It is not necessary to add `required`. It
    /// can be added to indicate that the field cannot be the zero value.
    ///
    /// ```proto
    /// syntax="proto3";
    ///
    /// message FieldsWithoutPresence {
    ///    // `string.email` always applies, even to an empty string.
    ///    string link = 1 [
    ///      (buf.validate.field).string.email = true
    ///    ];
    ///    // `repeated.min_items` always applies, even to an empty list.
    ///    repeated string labels = 2 [
    ///      (buf.validate.field).repeated.min_items = 1
    ///    ];
    ///    // `required`, for fields that don't track presence, indicates
    ///    // the value of the field can't be the zero value.
    ///    int32 zero_value_not_allowed = 3 [
    ///      (buf.validate.field).required = true
    ///    ];
    /// }
    /// ```
    ///
    /// To learn which fields track presence, see the
    /// [Field Presence cheat sheet](<https://protobuf.dev/programming-guides/field_presence/#cheat>).
    ///
    /// Note: While field rules can be applied to repeated items, map keys, and map
    /// values, the elements are always considered to be set. Consequently,
    /// specifying `repeated.items.required` is redundant.
    #[prost(bool, optional, tag = "25")]
    pub required: ::core::option::Option<bool>,
    /// Ignore validation rules on the field if its value matches the specified
    /// criteria. See the `Ignore` enum for details.
    ///
    /// ```proto
    /// message UpdateRequest {
    ///    // The uri rule only applies if the field is not an empty string.
    ///    string url = 1 [
    ///      (buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE,
    ///      (buf.validate.field).string.uri = true
    ///    ];
    /// }
    /// ```
    #[prost(enumeration = "Ignore", optional, tag = "27")]
    pub ignore: ::core::option::Option<i32>,
    #[prost(
        oneof = "field_rules::Type",
        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22"
    )]
    pub r#type: ::core::option::Option<field_rules::Type>,
}
/// Nested message and enum types in `FieldRules`.
pub mod field_rules {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Type {
        /// Scalar Field Types
        #[prost(message, tag = "1")]
        Float(super::FloatRules),
        #[prost(message, tag = "2")]
        Double(super::DoubleRules),
        #[prost(message, tag = "3")]
        Int32(super::Int32Rules),
        #[prost(message, tag = "4")]
        Int64(super::Int64Rules),
        #[prost(message, tag = "5")]
        Uint32(super::UInt32Rules),
        #[prost(message, tag = "6")]
        Uint64(super::UInt64Rules),
        #[prost(message, tag = "7")]
        Sint32(super::SInt32Rules),
        #[prost(message, tag = "8")]
        Sint64(super::SInt64Rules),
        #[prost(message, tag = "9")]
        Fixed32(super::Fixed32Rules),
        #[prost(message, tag = "10")]
        Fixed64(super::Fixed64Rules),
        #[prost(message, tag = "11")]
        Sfixed32(super::SFixed32Rules),
        #[prost(message, tag = "12")]
        Sfixed64(super::SFixed64Rules),
        #[prost(message, tag = "13")]
        Bool(super::BoolRules),
        #[prost(message, tag = "14")]
        String(super::StringRules),
        #[prost(message, tag = "15")]
        Bytes(super::BytesRules),
        /// Complex Field Types
        #[prost(message, tag = "16")]
        Enum(super::EnumRules),
        #[prost(message, tag = "18")]
        Repeated(::prost::alloc::boxed::Box<super::RepeatedRules>),
        #[prost(message, tag = "19")]
        Map(::prost::alloc::boxed::Box<super::MapRules>),
        /// Well-Known Field Types
        #[prost(message, tag = "20")]
        Any(super::AnyRules),
        #[prost(message, tag = "21")]
        Duration(super::DurationRules),
        #[prost(message, tag = "22")]
        Timestamp(super::TimestampRules),
    }
}
/// PredefinedRules are custom rules that can be re-used with
/// multiple fields.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PredefinedRules {
    /// `cel` is a repeated field used to represent a textual expression
    /// in the Common Expression Language (CEL) syntax. For more information,
    /// [see our documentation](<https://buf.build/docs/protovalidate/schemas/predefined-rules/>).
    ///
    /// ```proto
    /// message MyMessage {
    ///    // The field `value` must be greater than 42.
    ///    optional int32 value = 1 [(buf.validate.predefined).cel = {
    ///      id: "my_message.value",
    ///      message: "value must be greater than 42",
    ///      expression: "this > 42",
    ///    }];
    /// }
    /// ```
    #[prost(message, repeated, tag = "1")]
    pub cel: ::prost::alloc::vec::Vec<Rule>,
}
/// FloatRules describes the rules applied to `float` values. These
/// rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FloatRules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyFloat {
    ///    // value must equal 42.0
    ///    float value = 1 \[(buf.validate.field).float.const = 42.0\];
    /// }
    /// ```
    #[prost(float, optional, tag = "1")]
    pub r#const: ::core::option::Option<f32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message
    /// is generated.
    ///
    /// ```proto
    /// message MyFloat {
    ///    // value must be in list \[1.0, 2.0, 3.0\]
    ///    float value = 1 \[(buf.validate.field).float = { in: [1.0, 2.0, 3.0\] }];
    /// }
    /// ```
    #[prost(float, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<f32>,
    /// `in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyFloat {
    ///    // value must not be in list \[1.0, 2.0, 3.0\]
    ///    float value = 1 \[(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0\] }];
    /// }
    /// ```
    #[prost(float, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<f32>,
    /// `finite` requires the field value to be finite. If the field value is
    /// infinite or NaN, an error message is generated.
    #[prost(bool, optional, tag = "8")]
    pub finite: ::core::option::Option<bool>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyFloat {
    ///    float value = 1 [
    ///      (buf.validate.field).float.example = 1.0,
    ///      (buf.validate.field).float.example = inf
    ///    ];
    /// }
    /// ```
    #[prost(float, repeated, packed = "false", tag = "9")]
    pub example: ::prost::alloc::vec::Vec<f32>,
    #[prost(oneof = "float_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<float_rules::LessThan>,
    #[prost(oneof = "float_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<float_rules::GreaterThan>,
}
/// Nested message and enum types in `FloatRules`.
pub mod float_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFloat {
        ///    // value must be less than 10.0
        ///    float value = 1 \[(buf.validate.field).float.lt = 10.0\];
        /// }
        /// ```
        #[prost(float, tag = "2")]
        Lt(f32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyFloat {
        ///    // value must be less than or equal to 10.0
        ///    float value = 1 \[(buf.validate.field).float.lte = 10.0\];
        /// }
        /// ```
        #[prost(float, tag = "3")]
        Lte(f32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFloat {
        ///    // value must be greater than 5.0 \[float.gt\]
        ///    float value = 1 \[(buf.validate.field).float.gt = 5.0\];
        ///
        ///    // value must be greater than 5 and less than 10.0 \[float.gt_lt\]
        ///    float other_value = 2 \[(buf.validate.field).float = { gt: 5.0, lt: 10.0 }\];
        ///
        ///    // value must be greater than 10 or less than 5.0 \[float.gt_lt_exclusive\]
        ///    float another_value = 3 \[(buf.validate.field).float = { gt: 10.0, lt: 5.0 }\];
        /// }
        /// ```
        #[prost(float, tag = "4")]
        Gt(f32),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFloat {
        ///    // value must be greater than or equal to 5.0 \[float.gte\]
        ///    float value = 1 \[(buf.validate.field).float.gte = 5.0\];
        ///
        ///    // value must be greater than or equal to 5.0 and less than 10.0 \[float.gte_lt\]
        ///    float other_value = 2 \[(buf.validate.field).float = { gte: 5.0, lt: 10.0 }\];
        ///
        ///    // value must be greater than or equal to 10.0 or less than 5.0 \[float.gte_lt_exclusive\]
        ///    float another_value = 3 \[(buf.validate.field).float = { gte: 10.0, lt: 5.0 }\];
        /// }
        /// ```
        #[prost(float, tag = "5")]
        Gte(f32),
    }
}
/// DoubleRules describes the rules applied to `double` values. These
/// rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DoubleRules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyDouble {
    ///    // value must equal 42.0
    ///    double value = 1 \[(buf.validate.field).double.const = 42.0\];
    /// }
    /// ```
    #[prost(double, optional, tag = "1")]
    pub r#const: ::core::option::Option<f64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyDouble {
    ///    // value must be in list \[1.0, 2.0, 3.0\]
    ///    double value = 1 \[(buf.validate.field).double = { in: [1.0, 2.0, 3.0\] }];
    /// }
    /// ```
    #[prost(double, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<f64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyDouble {
    ///    // value must not be in list \[1.0, 2.0, 3.0\]
    ///    double value = 1 \[(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0\] }];
    /// }
    /// ```
    #[prost(double, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<f64>,
    /// `finite` requires the field value to be finite. If the field value is
    /// infinite or NaN, an error message is generated.
    #[prost(bool, optional, tag = "8")]
    pub finite: ::core::option::Option<bool>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyDouble {
    ///    double value = 1 [
    ///      (buf.validate.field).double.example = 1.0,
    ///      (buf.validate.field).double.example = inf
    ///    ];
    /// }
    /// ```
    #[prost(double, repeated, packed = "false", tag = "9")]
    pub example: ::prost::alloc::vec::Vec<f64>,
    #[prost(oneof = "double_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<double_rules::LessThan>,
    #[prost(oneof = "double_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<double_rules::GreaterThan>,
}
/// Nested message and enum types in `DoubleRules`.
pub mod double_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyDouble {
        ///    // value must be less than 10.0
        ///    double value = 1 \[(buf.validate.field).double.lt = 10.0\];
        /// }
        /// ```
        #[prost(double, tag = "2")]
        Lt(f64),
        /// `lte` requires the field value to be less than or equal to the specified value
        /// (field <= value). If the field value is greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyDouble {
        ///    // value must be less than or equal to 10.0
        ///    double value = 1 \[(buf.validate.field).double.lte = 10.0\];
        /// }
        /// ```
        #[prost(double, tag = "3")]
        Lte(f64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
        /// the range is reversed, and the field value must be outside the specified
        /// range. If the field value doesn't meet the required conditions, an error
        /// message is generated.
        ///
        /// ```proto
        /// message MyDouble {
        ///    // value must be greater than 5.0 \[double.gt\]
        ///    double value = 1 \[(buf.validate.field).double.gt = 5.0\];
        ///
        ///    // value must be greater than 5 and less than 10.0 \[double.gt_lt\]
        ///    double other_value = 2 \[(buf.validate.field).double = { gt: 5.0, lt: 10.0 }\];
        ///
        ///    // value must be greater than 10 or less than 5.0 \[double.gt_lt_exclusive\]
        ///    double another_value = 3 \[(buf.validate.field).double = { gt: 10.0, lt: 5.0 }\];
        /// }
        /// ```
        #[prost(double, tag = "4")]
        Gt(f64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyDouble {
        ///    // value must be greater than or equal to 5.0 \[double.gte\]
        ///    double value = 1 \[(buf.validate.field).double.gte = 5.0\];
        ///
        ///    // value must be greater than or equal to 5.0 and less than 10.0 \[double.gte_lt\]
        ///    double other_value = 2 \[(buf.validate.field).double = { gte: 5.0, lt: 10.0 }\];
        ///
        ///    // value must be greater than or equal to 10.0 or less than 5.0 \[double.gte_lt_exclusive\]
        ///    double another_value = 3 \[(buf.validate.field).double = { gte: 10.0, lt: 5.0 }\];
        /// }
        /// ```
        #[prost(double, tag = "5")]
        Gte(f64),
    }
}
/// Int32Rules describes the rules applied to `int32` values. These
/// rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Int32Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyInt32 {
    ///    // value must equal 42
    ///    int32 value = 1 \[(buf.validate.field).int32.const = 42\];
    /// }
    /// ```
    #[prost(int32, optional, tag = "1")]
    pub r#const: ::core::option::Option<i32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyInt32 {
    ///    // value must be in list \[1, 2, 3\]
    ///    int32 value = 1 \[(buf.validate.field).int32 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i32>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error message
    /// is generated.
    ///
    /// ```proto
    /// message MyInt32 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    int32 value = 1 \[(buf.validate.field).int32 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyInt32 {
    ///    int32 value = 1 [
    ///      (buf.validate.field).int32.example = 1,
    ///      (buf.validate.field).int32.example = -10
    ///    ];
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<i32>,
    #[prost(oneof = "int32_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<int32_rules::LessThan>,
    #[prost(oneof = "int32_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<int32_rules::GreaterThan>,
}
/// Nested message and enum types in `Int32Rules`.
pub mod int32_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field
        /// < value). If the field value is equal to or greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyInt32 {
        ///    // value must be less than 10
        ///    int32 value = 1 \[(buf.validate.field).int32.lt = 10\];
        /// }
        /// ```
        #[prost(int32, tag = "2")]
        Lt(i32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyInt32 {
        ///    // value must be less than or equal to 10
        ///    int32 value = 1 \[(buf.validate.field).int32.lte = 10\];
        /// }
        /// ```
        #[prost(int32, tag = "3")]
        Lte(i32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyInt32 {
        ///    // value must be greater than 5 \[int32.gt\]
        ///    int32 value = 1 \[(buf.validate.field).int32.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[int32.gt_lt\]
        ///    int32 other_value = 2 \[(buf.validate.field).int32 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[int32.gt_lt_exclusive\]
        ///    int32 another_value = 3 \[(buf.validate.field).int32 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(int32, tag = "4")]
        Gt(i32),
        /// `gte` requires the field value to be greater than or equal to the specified value
        /// (exclusive). If the value of `gte` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyInt32 {
        ///    // value must be greater than or equal to 5 \[int32.gte\]
        ///    int32 value = 1 \[(buf.validate.field).int32.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[int32.gte_lt\]
        ///    int32 other_value = 2 \[(buf.validate.field).int32 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[int32.gte_lt_exclusive\]
        ///    int32 another_value = 3 \[(buf.validate.field).int32 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(int32, tag = "5")]
        Gte(i32),
    }
}
/// Int64Rules describes the rules applied to `int64` values. These
/// rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Int64Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyInt64 {
    ///    // value must equal 42
    ///    int64 value = 1 \[(buf.validate.field).int64.const = 42\];
    /// }
    /// ```
    #[prost(int64, optional, tag = "1")]
    pub r#const: ::core::option::Option<i64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyInt64 {
    ///    // value must be in list \[1, 2, 3\]
    ///    int64 value = 1 \[(buf.validate.field).int64 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(int64, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyInt64 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    int64 value = 1 \[(buf.validate.field).int64 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(int64, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i64>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyInt64 {
    ///    int64 value = 1 [
    ///      (buf.validate.field).int64.example = 1,
    ///      (buf.validate.field).int64.example = -10
    ///    ];
    /// }
    /// ```
    #[prost(int64, repeated, packed = "false", tag = "9")]
    pub example: ::prost::alloc::vec::Vec<i64>,
    #[prost(oneof = "int64_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<int64_rules::LessThan>,
    #[prost(oneof = "int64_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<int64_rules::GreaterThan>,
}
/// Nested message and enum types in `Int64Rules`.
pub mod int64_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyInt64 {
        ///    // value must be less than 10
        ///    int64 value = 1 \[(buf.validate.field).int64.lt = 10\];
        /// }
        /// ```
        #[prost(int64, tag = "2")]
        Lt(i64),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyInt64 {
        ///    // value must be less than or equal to 10
        ///    int64 value = 1 \[(buf.validate.field).int64.lte = 10\];
        /// }
        /// ```
        #[prost(int64, tag = "3")]
        Lte(i64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyInt64 {
        ///    // value must be greater than 5 \[int64.gt\]
        ///    int64 value = 1 \[(buf.validate.field).int64.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[int64.gt_lt\]
        ///    int64 other_value = 2 \[(buf.validate.field).int64 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[int64.gt_lt_exclusive\]
        ///    int64 another_value = 3 \[(buf.validate.field).int64 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(int64, tag = "4")]
        Gt(i64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyInt64 {
        ///    // value must be greater than or equal to 5 \[int64.gte\]
        ///    int64 value = 1 \[(buf.validate.field).int64.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[int64.gte_lt\]
        ///    int64 other_value = 2 \[(buf.validate.field).int64 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[int64.gte_lt_exclusive\]
        ///    int64 another_value = 3 \[(buf.validate.field).int64 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(int64, tag = "5")]
        Gte(i64),
    }
}
/// UInt32Rules describes the rules applied to `uint32` values. These
/// rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UInt32Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyUInt32 {
    ///    // value must equal 42
    ///    uint32 value = 1 \[(buf.validate.field).uint32.const = 42\];
    /// }
    /// ```
    #[prost(uint32, optional, tag = "1")]
    pub r#const: ::core::option::Option<u32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyUInt32 {
    ///    // value must be in list \[1, 2, 3\]
    ///    uint32 value = 1 \[(buf.validate.field).uint32 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(uint32, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<u32>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyUInt32 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    uint32 value = 1 \[(buf.validate.field).uint32 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(uint32, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<u32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyUInt32 {
    ///    uint32 value = 1 [
    ///      (buf.validate.field).uint32.example = 1,
    ///      (buf.validate.field).uint32.example = 10
    ///    ];
    /// }
    /// ```
    #[prost(uint32, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<u32>,
    #[prost(oneof = "u_int32_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<u_int32_rules::LessThan>,
    #[prost(oneof = "u_int32_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<u_int32_rules::GreaterThan>,
}
/// Nested message and enum types in `UInt32Rules`.
pub mod u_int32_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt32 {
        ///    // value must be less than 10
        ///    uint32 value = 1 \[(buf.validate.field).uint32.lt = 10\];
        /// }
        /// ```
        #[prost(uint32, tag = "2")]
        Lt(u32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyUInt32 {
        ///    // value must be less than or equal to 10
        ///    uint32 value = 1 \[(buf.validate.field).uint32.lte = 10\];
        /// }
        /// ```
        #[prost(uint32, tag = "3")]
        Lte(u32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt32 {
        ///    // value must be greater than 5 \[uint32.gt\]
        ///    uint32 value = 1 \[(buf.validate.field).uint32.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[uint32.gt_lt\]
        ///    uint32 other_value = 2 \[(buf.validate.field).uint32 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[uint32.gt_lt_exclusive\]
        ///    uint32 another_value = 3 \[(buf.validate.field).uint32 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(uint32, tag = "4")]
        Gt(u32),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt32 {
        ///    // value must be greater than or equal to 5 \[uint32.gte\]
        ///    uint32 value = 1 \[(buf.validate.field).uint32.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[uint32.gte_lt\]
        ///    uint32 other_value = 2 \[(buf.validate.field).uint32 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[uint32.gte_lt_exclusive\]
        ///    uint32 another_value = 3 \[(buf.validate.field).uint32 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(uint32, tag = "5")]
        Gte(u32),
    }
}
/// UInt64Rules describes the rules applied to `uint64` values. These
/// rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UInt64Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyUInt64 {
    ///    // value must equal 42
    ///    uint64 value = 1 \[(buf.validate.field).uint64.const = 42\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "1")]
    pub r#const: ::core::option::Option<u64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyUInt64 {
    ///    // value must be in list \[1, 2, 3\]
    ///    uint64 value = 1 \[(buf.validate.field).uint64 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(uint64, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<u64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyUInt64 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    uint64 value = 1 \[(buf.validate.field).uint64 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(uint64, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<u64>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyUInt64 {
    ///    uint64 value = 1 [
    ///      (buf.validate.field).uint64.example = 1,
    ///      (buf.validate.field).uint64.example = -10
    ///    ];
    /// }
    /// ```
    #[prost(uint64, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<u64>,
    #[prost(oneof = "u_int64_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<u_int64_rules::LessThan>,
    #[prost(oneof = "u_int64_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<u_int64_rules::GreaterThan>,
}
/// Nested message and enum types in `UInt64Rules`.
pub mod u_int64_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt64 {
        ///    // value must be less than 10
        ///    uint64 value = 1 \[(buf.validate.field).uint64.lt = 10\];
        /// }
        /// ```
        #[prost(uint64, tag = "2")]
        Lt(u64),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyUInt64 {
        ///    // value must be less than or equal to 10
        ///    uint64 value = 1 \[(buf.validate.field).uint64.lte = 10\];
        /// }
        /// ```
        #[prost(uint64, tag = "3")]
        Lte(u64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt64 {
        ///    // value must be greater than 5 \[uint64.gt\]
        ///    uint64 value = 1 \[(buf.validate.field).uint64.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[uint64.gt_lt\]
        ///    uint64 other_value = 2 \[(buf.validate.field).uint64 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[uint64.gt_lt_exclusive\]
        ///    uint64 another_value = 3 \[(buf.validate.field).uint64 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(uint64, tag = "4")]
        Gt(u64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyUInt64 {
        ///    // value must be greater than or equal to 5 \[uint64.gte\]
        ///    uint64 value = 1 \[(buf.validate.field).uint64.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[uint64.gte_lt\]
        ///    uint64 other_value = 2 \[(buf.validate.field).uint64 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[uint64.gte_lt_exclusive\]
        ///    uint64 another_value = 3 \[(buf.validate.field).uint64 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(uint64, tag = "5")]
        Gte(u64),
    }
}
/// SInt32Rules describes the rules applied to `sint32` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SInt32Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MySInt32 {
    ///    // value must equal 42
    ///    sint32 value = 1 \[(buf.validate.field).sint32.const = 42\];
    /// }
    /// ```
    #[prost(sint32, optional, tag = "1")]
    pub r#const: ::core::option::Option<i32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MySInt32 {
    ///    // value must be in list \[1, 2, 3\]
    ///    sint32 value = 1 \[(buf.validate.field).sint32 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sint32, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i32>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MySInt32 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    sint32 value = 1 \[(buf.validate.field).sint32 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sint32, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MySInt32 {
    ///    sint32 value = 1 [
    ///      (buf.validate.field).sint32.example = 1,
    ///      (buf.validate.field).sint32.example = -10
    ///    ];
    /// }
    /// ```
    #[prost(sint32, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<i32>,
    #[prost(oneof = "s_int32_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<s_int32_rules::LessThan>,
    #[prost(oneof = "s_int32_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<s_int32_rules::GreaterThan>,
}
/// Nested message and enum types in `SInt32Rules`.
pub mod s_int32_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field
        /// < value). If the field value is equal to or greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySInt32 {
        ///    // value must be less than 10
        ///    sint32 value = 1 \[(buf.validate.field).sint32.lt = 10\];
        /// }
        /// ```
        #[prost(sint32, tag = "2")]
        Lt(i32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySInt32 {
        ///    // value must be less than or equal to 10
        ///    sint32 value = 1 \[(buf.validate.field).sint32.lte = 10\];
        /// }
        /// ```
        #[prost(sint32, tag = "3")]
        Lte(i32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySInt32 {
        ///    // value must be greater than 5 \[sint32.gt\]
        ///    sint32 value = 1 \[(buf.validate.field).sint32.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[sint32.gt_lt\]
        ///    sint32 other_value = 2 \[(buf.validate.field).sint32 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[sint32.gt_lt_exclusive\]
        ///    sint32 another_value = 3 \[(buf.validate.field).sint32 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sint32, tag = "4")]
        Gt(i32),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySInt32 {
        ///   // value must be greater than or equal to 5 \[sint32.gte\]
        ///   sint32 value = 1 \[(buf.validate.field).sint32.gte = 5\];
        ///
        ///   // value must be greater than or equal to 5 and less than 10 \[sint32.gte_lt\]
        ///   sint32 other_value = 2 \[(buf.validate.field).sint32 = { gte: 5, lt: 10 }\];
        ///
        ///   // value must be greater than or equal to 10 or less than 5 \[sint32.gte_lt_exclusive\]
        ///   sint32 another_value = 3 \[(buf.validate.field).sint32 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sint32, tag = "5")]
        Gte(i32),
    }
}
/// SInt64Rules describes the rules applied to `sint64` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SInt64Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MySInt64 {
    ///    // value must equal 42
    ///    sint64 value = 1 \[(buf.validate.field).sint64.const = 42\];
    /// }
    /// ```
    #[prost(sint64, optional, tag = "1")]
    pub r#const: ::core::option::Option<i64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message
    /// is generated.
    ///
    /// ```proto
    /// message MySInt64 {
    ///    // value must be in list \[1, 2, 3\]
    ///    sint64 value = 1 \[(buf.validate.field).sint64 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sint64, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MySInt64 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    sint64 value = 1 \[(buf.validate.field).sint64 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sint64, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i64>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MySInt64 {
    ///    sint64 value = 1 [
    ///      (buf.validate.field).sint64.example = 1,
    ///      (buf.validate.field).sint64.example = -10
    ///    ];
    /// }
    /// ```
    #[prost(sint64, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<i64>,
    #[prost(oneof = "s_int64_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<s_int64_rules::LessThan>,
    #[prost(oneof = "s_int64_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<s_int64_rules::GreaterThan>,
}
/// Nested message and enum types in `SInt64Rules`.
pub mod s_int64_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field
        /// < value). If the field value is equal to or greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySInt64 {
        ///    // value must be less than 10
        ///    sint64 value = 1 \[(buf.validate.field).sint64.lt = 10\];
        /// }
        /// ```
        #[prost(sint64, tag = "2")]
        Lt(i64),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySInt64 {
        ///    // value must be less than or equal to 10
        ///    sint64 value = 1 \[(buf.validate.field).sint64.lte = 10\];
        /// }
        /// ```
        #[prost(sint64, tag = "3")]
        Lte(i64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySInt64 {
        ///    // value must be greater than 5 \[sint64.gt\]
        ///    sint64 value = 1 \[(buf.validate.field).sint64.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[sint64.gt_lt\]
        ///    sint64 other_value = 2 \[(buf.validate.field).sint64 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[sint64.gt_lt_exclusive\]
        ///    sint64 another_value = 3 \[(buf.validate.field).sint64 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sint64, tag = "4")]
        Gt(i64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySInt64 {
        ///    // value must be greater than or equal to 5 \[sint64.gte\]
        ///    sint64 value = 1 \[(buf.validate.field).sint64.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[sint64.gte_lt\]
        ///    sint64 other_value = 2 \[(buf.validate.field).sint64 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[sint64.gte_lt_exclusive\]
        ///    sint64 another_value = 3 \[(buf.validate.field).sint64 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sint64, tag = "5")]
        Gte(i64),
    }
}
/// Fixed32Rules describes the rules applied to `fixed32` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Fixed32Rules {
    /// `const` requires the field value to exactly match the specified value.
    /// If the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyFixed32 {
    ///    // value must equal 42
    ///    fixed32 value = 1 \[(buf.validate.field).fixed32.const = 42\];
    /// }
    /// ```
    #[prost(fixed32, optional, tag = "1")]
    pub r#const: ::core::option::Option<u32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message
    /// is generated.
    ///
    /// ```proto
    /// message MyFixed32 {
    ///    // value must be in list \[1, 2, 3\]
    ///    fixed32 value = 1 \[(buf.validate.field).fixed32 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(fixed32, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<u32>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyFixed32 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    fixed32 value = 1 \[(buf.validate.field).fixed32 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(fixed32, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<u32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyFixed32 {
    ///    fixed32 value = 1 [
    ///      (buf.validate.field).fixed32.example = 1,
    ///      (buf.validate.field).fixed32.example = 2
    ///    ];
    /// }
    /// ```
    #[prost(fixed32, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<u32>,
    #[prost(oneof = "fixed32_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<fixed32_rules::LessThan>,
    #[prost(oneof = "fixed32_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<fixed32_rules::GreaterThan>,
}
/// Nested message and enum types in `Fixed32Rules`.
pub mod fixed32_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed32 {
        ///    // value must be less than 10
        ///    fixed32 value = 1 \[(buf.validate.field).fixed32.lt = 10\];
        /// }
        /// ```
        #[prost(fixed32, tag = "2")]
        Lt(u32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyFixed32 {
        ///    // value must be less than or equal to 10
        ///    fixed32 value = 1 \[(buf.validate.field).fixed32.lte = 10\];
        /// }
        /// ```
        #[prost(fixed32, tag = "3")]
        Lte(u32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed32 {
        ///    // value must be greater than 5 \[fixed32.gt\]
        ///    fixed32 value = 1 \[(buf.validate.field).fixed32.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[fixed32.gt_lt\]
        ///    fixed32 other_value = 2 \[(buf.validate.field).fixed32 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[fixed32.gt_lt_exclusive\]
        ///    fixed32 another_value = 3 \[(buf.validate.field).fixed32 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(fixed32, tag = "4")]
        Gt(u32),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed32 {
        ///    // value must be greater than or equal to 5 \[fixed32.gte\]
        ///    fixed32 value = 1 \[(buf.validate.field).fixed32.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[fixed32.gte_lt\]
        ///    fixed32 other_value = 2 \[(buf.validate.field).fixed32 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[fixed32.gte_lt_exclusive\]
        ///    fixed32 another_value = 3 \[(buf.validate.field).fixed32 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(fixed32, tag = "5")]
        Gte(u32),
    }
}
/// Fixed64Rules describes the rules applied to `fixed64` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Fixed64Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyFixed64 {
    ///    // value must equal 42
    ///    fixed64 value = 1 \[(buf.validate.field).fixed64.const = 42\];
    /// }
    /// ```
    #[prost(fixed64, optional, tag = "1")]
    pub r#const: ::core::option::Option<u64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyFixed64 {
    ///    // value must be in list \[1, 2, 3\]
    ///    fixed64 value = 1 \[(buf.validate.field).fixed64 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(fixed64, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<u64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyFixed64 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    fixed64 value = 1 \[(buf.validate.field).fixed64 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(fixed64, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<u64>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyFixed64 {
    ///    fixed64 value = 1 [
    ///      (buf.validate.field).fixed64.example = 1,
    ///      (buf.validate.field).fixed64.example = 2
    ///    ];
    /// }
    /// ```
    #[prost(fixed64, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<u64>,
    #[prost(oneof = "fixed64_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<fixed64_rules::LessThan>,
    #[prost(oneof = "fixed64_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<fixed64_rules::GreaterThan>,
}
/// Nested message and enum types in `Fixed64Rules`.
pub mod fixed64_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed64 {
        ///    // value must be less than 10
        ///    fixed64 value = 1 \[(buf.validate.field).fixed64.lt = 10\];
        /// }
        /// ```
        #[prost(fixed64, tag = "2")]
        Lt(u64),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MyFixed64 {
        ///    // value must be less than or equal to 10
        ///    fixed64 value = 1 \[(buf.validate.field).fixed64.lte = 10\];
        /// }
        /// ```
        #[prost(fixed64, tag = "3")]
        Lte(u64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed64 {
        ///    // value must be greater than 5 \[fixed64.gt\]
        ///    fixed64 value = 1 \[(buf.validate.field).fixed64.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[fixed64.gt_lt\]
        ///    fixed64 other_value = 2 \[(buf.validate.field).fixed64 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[fixed64.gt_lt_exclusive\]
        ///    fixed64 another_value = 3 \[(buf.validate.field).fixed64 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(fixed64, tag = "4")]
        Gt(u64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyFixed64 {
        ///    // value must be greater than or equal to 5 \[fixed64.gte\]
        ///    fixed64 value = 1 \[(buf.validate.field).fixed64.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[fixed64.gte_lt\]
        ///    fixed64 other_value = 2 \[(buf.validate.field).fixed64 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[fixed64.gte_lt_exclusive\]
        ///    fixed64 another_value = 3 \[(buf.validate.field).fixed64 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(fixed64, tag = "5")]
        Gte(u64),
    }
}
/// SFixed32Rules describes the rules applied to `fixed32` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SFixed32Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MySFixed32 {
    ///    // value must equal 42
    ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32.const = 42\];
    /// }
    /// ```
    #[prost(sfixed32, optional, tag = "1")]
    pub r#const: ::core::option::Option<i32>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MySFixed32 {
    ///    // value must be in list \[1, 2, 3\]
    ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sfixed32, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i32>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MySFixed32 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sfixed32, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MySFixed32 {
    ///    sfixed32 value = 1 [
    ///      (buf.validate.field).sfixed32.example = 1,
    ///      (buf.validate.field).sfixed32.example = 2
    ///    ];
    /// }
    /// ```
    #[prost(sfixed32, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<i32>,
    #[prost(oneof = "s_fixed32_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<s_fixed32_rules::LessThan>,
    #[prost(oneof = "s_fixed32_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<s_fixed32_rules::GreaterThan>,
}
/// Nested message and enum types in `SFixed32Rules`.
pub mod s_fixed32_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed32 {
        ///    // value must be less than 10
        ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32.lt = 10\];
        /// }
        /// ```
        #[prost(sfixed32, tag = "2")]
        Lt(i32),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySFixed32 {
        ///    // value must be less than or equal to 10
        ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32.lte = 10\];
        /// }
        /// ```
        #[prost(sfixed32, tag = "3")]
        Lte(i32),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed32 {
        ///    // value must be greater than 5 \[sfixed32.gt\]
        ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[sfixed32.gt_lt\]
        ///    sfixed32 other_value = 2 \[(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[sfixed32.gt_lt_exclusive\]
        ///    sfixed32 another_value = 3 \[(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sfixed32, tag = "4")]
        Gt(i32),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed32 {
        ///    // value must be greater than or equal to 5 \[sfixed32.gte\]
        ///    sfixed32 value = 1 \[(buf.validate.field).sfixed32.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[sfixed32.gte_lt\]
        ///    sfixed32 other_value = 2 \[(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[sfixed32.gte_lt_exclusive\]
        ///    sfixed32 another_value = 3 \[(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sfixed32, tag = "5")]
        Gte(i32),
    }
}
/// SFixed64Rules describes the rules applied to `fixed64` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SFixed64Rules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MySFixed64 {
    ///    // value must equal 42
    ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64.const = 42\];
    /// }
    /// ```
    #[prost(sfixed64, optional, tag = "1")]
    pub r#const: ::core::option::Option<i64>,
    /// `in` requires the field value to be equal to one of the specified values.
    /// If the field value isn't one of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MySFixed64 {
    ///    // value must be in list \[1, 2, 3\]
    ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64 = { in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sfixed64, repeated, packed = "false", tag = "6")]
    pub r#in: ::prost::alloc::vec::Vec<i64>,
    /// `not_in` requires the field value to not be equal to any of the specified
    /// values. If the field value is one of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MySFixed64 {
    ///    // value must not be in list \[1, 2, 3\]
    ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64 = { not_in: [1, 2, 3\] }];
    /// }
    /// ```
    #[prost(sfixed64, repeated, packed = "false", tag = "7")]
    pub not_in: ::prost::alloc::vec::Vec<i64>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MySFixed64 {
    ///    sfixed64 value = 1 [
    ///      (buf.validate.field).sfixed64.example = 1,
    ///      (buf.validate.field).sfixed64.example = 2
    ///    ];
    /// }
    /// ```
    #[prost(sfixed64, repeated, packed = "false", tag = "8")]
    pub example: ::prost::alloc::vec::Vec<i64>,
    #[prost(oneof = "s_fixed64_rules::LessThan", tags = "2, 3")]
    pub less_than: ::core::option::Option<s_fixed64_rules::LessThan>,
    #[prost(oneof = "s_fixed64_rules::GreaterThan", tags = "4, 5")]
    pub greater_than: ::core::option::Option<s_fixed64_rules::GreaterThan>,
}
/// Nested message and enum types in `SFixed64Rules`.
pub mod s_fixed64_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` requires the field value to be less than the specified value (field <
        /// value). If the field value is equal to or greater than the specified value,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed64 {
        ///    // value must be less than 10
        ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64.lt = 10\];
        /// }
        /// ```
        #[prost(sfixed64, tag = "2")]
        Lt(i64),
        /// `lte` requires the field value to be less than or equal to the specified
        /// value (field <= value). If the field value is greater than the specified
        /// value, an error message is generated.
        ///
        /// ```proto
        /// message MySFixed64 {
        ///    // value must be less than or equal to 10
        ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64.lte = 10\];
        /// }
        /// ```
        #[prost(sfixed64, tag = "3")]
        Lte(i64),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the field value to be greater than the specified value
        /// (exclusive). If the value of `gt` is larger than a specified `lt` or
        /// `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed64 {
        ///    // value must be greater than 5 \[sfixed64.gt\]
        ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64.gt = 5\];
        ///
        ///    // value must be greater than 5 and less than 10 \[sfixed64.gt_lt\]
        ///    sfixed64 other_value = 2 \[(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }\];
        ///
        ///    // value must be greater than 10 or less than 5 \[sfixed64.gt_lt_exclusive\]
        ///    sfixed64 another_value = 3 \[(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sfixed64, tag = "4")]
        Gt(i64),
        /// `gte` requires the field value to be greater than or equal to the specified
        /// value (exclusive). If the value of `gte` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MySFixed64 {
        ///    // value must be greater than or equal to 5 \[sfixed64.gte\]
        ///    sfixed64 value = 1 \[(buf.validate.field).sfixed64.gte = 5\];
        ///
        ///    // value must be greater than or equal to 5 and less than 10 \[sfixed64.gte_lt\]
        ///    sfixed64 other_value = 2 \[(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }\];
        ///
        ///    // value must be greater than or equal to 10 or less than 5 \[sfixed64.gte_lt_exclusive\]
        ///    sfixed64 another_value = 3 \[(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }\];
        /// }
        /// ```
        #[prost(sfixed64, tag = "5")]
        Gte(i64),
    }
}
/// BoolRules describes the rules applied to `bool` values. These rules
/// may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BoolRules {
    /// `const` requires the field value to exactly match the specified boolean value.
    /// If the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyBool {
    ///    // value must equal true
    ///    bool value = 1 \[(buf.validate.field).bool.const = true\];
    /// }
    /// ```
    #[prost(bool, optional, tag = "1")]
    pub r#const: ::core::option::Option<bool>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyBool {
    ///    bool value = 1 [
    ///      (buf.validate.field).bool.example = 1,
    ///      (buf.validate.field).bool.example = 2
    ///    ];
    /// }
    /// ```
    #[prost(bool, repeated, packed = "false", tag = "2")]
    pub example: ::prost::alloc::vec::Vec<bool>,
}
/// StringRules describes the rules applied to `string` values These
/// rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringRules {
    /// `const` requires the field value to exactly match the specified value. If
    /// the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value must equal `hello`
    ///    string value = 1 \[(buf.validate.field).string.const = "hello"\];
    /// }
    /// ```
    #[prost(string, optional, tag = "1")]
    pub r#const: ::core::option::Option<::prost::alloc::string::String>,
    /// `len` dictates that the field value must have the specified
    /// number of characters (Unicode code points), which may differ from the number
    /// of bytes in the string. If the field value does not meet the specified
    /// length, an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be 5 characters
    ///    string value = 1 \[(buf.validate.field).string.len = 5\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "19")]
    pub len: ::core::option::Option<u64>,
    /// `min_len` specifies that the field value must have at least the specified
    /// number of characters (Unicode code points), which may differ from the number
    /// of bytes in the string. If the field value contains fewer characters, an error
    /// message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be at least 3 characters
    ///    string value = 1 \[(buf.validate.field).string.min_len = 3\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "2")]
    pub min_len: ::core::option::Option<u64>,
    /// `max_len` specifies that the field value must have no more than the specified
    /// number of characters (Unicode code points), which may differ from the
    /// number of bytes in the string. If the field value contains more characters,
    /// an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be at most 10 characters
    ///    string value = 1 \[(buf.validate.field).string.max_len = 10\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "3")]
    pub max_len: ::core::option::Option<u64>,
    /// `len_bytes` dictates that the field value must have the specified number of
    /// bytes. If the field value does not match the specified length in bytes,
    /// an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be 6 bytes
    ///    string value = 1 \[(buf.validate.field).string.len_bytes = 6\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "20")]
    pub len_bytes: ::core::option::Option<u64>,
    /// `min_bytes` specifies that the field value must have at least the specified
    /// number of bytes. If the field value contains fewer bytes, an error message
    /// will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be at least 4 bytes
    ///    string value = 1 \[(buf.validate.field).string.min_bytes = 4\];
    /// }
    ///
    /// ```
    #[prost(uint64, optional, tag = "4")]
    pub min_bytes: ::core::option::Option<u64>,
    /// `max_bytes` specifies that the field value must have no more than the
    /// specified number of bytes. If the field value contains more bytes, an
    /// error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value length must be at most 8 bytes
    ///    string value = 1 \[(buf.validate.field).string.max_bytes = 8\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "5")]
    pub max_bytes: ::core::option::Option<u64>,
    /// `pattern` specifies that the field value must match the specified
    /// regular expression (RE2 syntax), with the expression provided without any
    /// delimiters. If the field value doesn't match the regular expression, an
    /// error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value does not match regex pattern `^\[a-zA-Z\]//$`
    ///    string value = 1 \[(buf.validate.field).string.pattern = "^[a-zA-Z\]//$"];
    /// }
    /// ```
    #[prost(string, optional, tag = "6")]
    pub pattern: ::core::option::Option<::prost::alloc::string::String>,
    /// `prefix` specifies that the field value must have the
    /// specified substring at the beginning of the string. If the field value
    /// doesn't start with the specified prefix, an error message will be
    /// generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value does not have prefix `pre`
    ///    string value = 1 \[(buf.validate.field).string.prefix = "pre"\];
    /// }
    /// ```
    #[prost(string, optional, tag = "7")]
    pub prefix: ::core::option::Option<::prost::alloc::string::String>,
    /// `suffix` specifies that the field value must have the
    /// specified substring at the end of the string. If the field value doesn't
    /// end with the specified suffix, an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value does not have suffix `post`
    ///    string value = 1 \[(buf.validate.field).string.suffix = "post"\];
    /// }
    /// ```
    #[prost(string, optional, tag = "8")]
    pub suffix: ::core::option::Option<::prost::alloc::string::String>,
    /// `contains` specifies that the field value must have the
    /// specified substring anywhere in the string. If the field value doesn't
    /// contain the specified substring, an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value does not contain substring `inside`.
    ///    string value = 1 \[(buf.validate.field).string.contains = "inside"\];
    /// }
    /// ```
    #[prost(string, optional, tag = "9")]
    pub contains: ::core::option::Option<::prost::alloc::string::String>,
    /// `not_contains` specifies that the field value must not have the
    /// specified substring anywhere in the string. If the field value contains
    /// the specified substring, an error message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value contains substring `inside`.
    ///    string value = 1 \[(buf.validate.field).string.not_contains = "inside"\];
    /// }
    /// ```
    #[prost(string, optional, tag = "23")]
    pub not_contains: ::core::option::Option<::prost::alloc::string::String>,
    /// `in` specifies that the field value must be equal to one of the specified
    /// values. If the field value isn't one of the specified values, an error
    /// message will be generated.
    ///
    /// ```proto
    /// message MyString {
    ///    // value must be in list \["apple", "banana"\]
    ///    string value = 1 \[(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"\];
    /// }
    /// ```
    #[prost(string, repeated, tag = "10")]
    pub r#in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// `not_in` specifies that the field value cannot be equal to any
    /// of the specified values. If the field value is one of the specified values,
    /// an error message will be generated.
    /// ```proto
    /// message MyString {
    ///    // value must not be in list \["orange", "grape"\]
    ///    string value = 1 \[(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"\];
    /// }
    /// ```
    #[prost(string, repeated, tag = "11")]
    pub not_in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
    /// enable strict header validation. By default, this is true, and HTTP header
    /// validations are [RFC-compliant](<https://datatracker.ietf.org/doc/html/rfc7230#section-3>). Setting to false will enable looser
    /// validations that only disallow `\r\n\0` characters, which can be used to
    /// bypass header matching rules.
    ///
    /// ```proto
    /// message MyString {
    ///    // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
    ///    string value = 1 \[(buf.validate.field).string.strict = false\];
    /// }
    /// ```
    #[prost(bool, optional, tag = "25")]
    pub strict: ::core::option::Option<bool>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyString {
    ///    string value = 1 [
    ///      (buf.validate.field).string.example = "hello",
    ///      (buf.validate.field).string.example = "world"
    ///    ];
    /// }
    /// ```
    #[prost(string, repeated, tag = "34")]
    pub example: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// `WellKnown` rules provide advanced rules against common string
    /// patterns.
    #[prost(
        oneof = "string_rules::WellKnown",
        tags = "12, 13, 14, 15, 16, 17, 18, 21, 22, 33, 26, 27, 28, 29, 30, 31, 32, 24"
    )]
    pub well_known: ::core::option::Option<string_rules::WellKnown>,
}
/// Nested message and enum types in `StringRules`.
pub mod string_rules {
    /// `WellKnown` rules provide advanced rules against common string
    /// patterns.
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum WellKnown {
        /// `email` specifies that the field value must be a valid email address, for
        /// example "foo@example.com".
        ///
        /// Conforms to the definition for a valid email address from the [HTML standard](<https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address>).
        /// Note that this standard willfully deviates from [RFC 5322](<https://datatracker.ietf.org/doc/html/rfc5322>),
        /// which allows many unexpected forms of email addresses and will easily match
        /// a typographical error.
        ///
        /// If the field value isn't a valid email address, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid email address
        ///    string value = 1 \[(buf.validate.field).string.email = true\];
        /// }
        /// ```
        #[prost(bool, tag = "12")]
        Email(bool),
        /// `hostname` specifies that the field value must be a valid hostname, for
        /// example "foo.example.com".
        ///
        /// A valid hostname follows the rules below:
        /// - The name consists of one or more labels, separated by a dot (".").
        /// - Each label can be 1 to 63 alphanumeric characters.
        /// - A label can contain hyphens ("-"), but must not start or end with a hyphen.
        /// - The right-most label must not be digits only.
        /// - The name can have a trailing dot—for example, "foo.example.com.".
        /// - The name can be 253 characters at most, excluding the optional trailing dot.
        ///
        /// If the field value isn't a valid hostname, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid hostname
        ///    string value = 1 \[(buf.validate.field).string.hostname = true\];
        /// }
        /// ```
        #[prost(bool, tag = "13")]
        Hostname(bool),
        /// `ip` specifies that the field value must be a valid IP (v4 or v6) address.
        ///
        /// IPv4 addresses are expected in the dotted decimal format—for example, "192.168.5.21".
        /// IPv6 addresses are expected in their text representation—for example, "::1",
        /// or "2001:0DB8:ABCD:0012::0".
        ///
        /// Both formats are well-defined in the internet standard [RFC 3986](<https://datatracker.ietf.org/doc/html/rfc3986>).
        /// Zone identifiers for IPv6 addresses (for example, "fe80::a%en1") are supported.
        ///
        /// If the field value isn't a valid IP address, an error message will be
        /// generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IP address
        ///    string value = 1 \[(buf.validate.field).string.ip = true\];
        /// }
        /// ```
        #[prost(bool, tag = "14")]
        Ip(bool),
        /// `ipv4` specifies that the field value must be a valid IPv4 address—for
        /// example "192.168.5.21". If the field value isn't a valid IPv4 address, an
        /// error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv4 address
        ///    string value = 1 \[(buf.validate.field).string.ipv4 = true\];
        /// }
        /// ```
        #[prost(bool, tag = "15")]
        Ipv4(bool),
        /// `ipv6` specifies that the field value must be a valid IPv6 address—for
        /// example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b". If the field
        /// value is not a valid IPv6 address, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv6 address
        ///    string value = 1 \[(buf.validate.field).string.ipv6 = true\];
        /// }
        /// ```
        #[prost(bool, tag = "16")]
        Ipv6(bool),
        /// `uri` specifies that the field value must be a valid URI, for example
        /// "<https://example.com/foo/bar?baz=quux#frag".>
        ///
        /// URI is defined in the internet standard [RFC 3986](<https://datatracker.ietf.org/doc/html/rfc3986>).
        /// Zone Identifiers in IPv6 address literals are supported ([RFC 6874](<https://datatracker.ietf.org/doc/html/rfc6874>)).
        ///
        /// If the field value isn't a valid URI, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid URI
        ///    string value = 1 \[(buf.validate.field).string.uri = true\];
        /// }
        /// ```
        #[prost(bool, tag = "17")]
        Uri(bool),
        /// `uri_ref` specifies that the field value must be a valid URI Reference—either
        /// a URI such as "<https://example.com/foo/bar?baz=quux#frag",> or a Relative
        /// Reference such as "./foo/bar?query".
        ///
        /// URI, URI Reference, and Relative Reference are defined in the internet
        /// standard [RFC 3986](<https://datatracker.ietf.org/doc/html/rfc3986>). Zone
        /// Identifiers in IPv6 address literals are supported ([RFC 6874](<https://datatracker.ietf.org/doc/html/rfc6874>)).
        ///
        /// If the field value isn't a valid URI Reference, an error message will be
        /// generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid URI Reference
        ///    string value = 1 \[(buf.validate.field).string.uri_ref = true\];
        /// }
        /// ```
        #[prost(bool, tag = "18")]
        UriRef(bool),
        /// `address` specifies that the field value must be either a valid hostname
        /// (for example, "example.com"), or a valid IP (v4 or v6) address (for example,
        /// "192.168.0.1", or "::1"). If the field value isn't a valid hostname or IP,
        /// an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid hostname, or ip address
        ///    string value = 1 \[(buf.validate.field).string.address = true\];
        /// }
        /// ```
        #[prost(bool, tag = "21")]
        Address(bool),
        /// `uuid` specifies that the field value must be a valid UUID as defined by
        /// [RFC 4122](<https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2>). If the
        /// field value isn't a valid UUID, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid UUID
        ///    string value = 1 \[(buf.validate.field).string.uuid = true\];
        /// }
        /// ```
        #[prost(bool, tag = "22")]
        Uuid(bool),
        /// `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
        /// defined by [RFC 4122](<https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2>) with all dashes
        /// omitted. If the field value isn't a valid UUID without dashes, an error message
        /// will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid trimmed UUID
        ///    string value = 1 \[(buf.validate.field).string.tuuid = true\];
        /// }
        /// ```
        #[prost(bool, tag = "33")]
        Tuuid(bool),
        /// `ip_with_prefixlen` specifies that the field value must be a valid IP
        /// (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or
        /// "2001:0DB8:ABCD:0012::F1/64". If the field value isn't a valid IP with
        /// prefix length, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IP with prefix length
        ///     string value = 1 \[(buf.validate.field).string.ip_with_prefixlen = true\];
        /// }
        /// ```
        #[prost(bool, tag = "26")]
        IpWithPrefixlen(bool),
        /// `ipv4_with_prefixlen` specifies that the field value must be a valid
        /// IPv4 address with prefix length—for example, "192.168.5.21/16". If the
        /// field value isn't a valid IPv4 address with prefix length, an error
        /// message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv4 address with prefix length
        ///     string value = 1 \[(buf.validate.field).string.ipv4_with_prefixlen = true\];
        /// }
        /// ```
        #[prost(bool, tag = "27")]
        Ipv4WithPrefixlen(bool),
        /// `ipv6_with_prefixlen` specifies that the field value must be a valid
        /// IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64".
        /// If the field value is not a valid IPv6 address with prefix length,
        /// an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv6 address prefix length
        ///     string value = 1 \[(buf.validate.field).string.ipv6_with_prefixlen = true\];
        /// }
        /// ```
        #[prost(bool, tag = "28")]
        Ipv6WithPrefixlen(bool),
        /// `ip_prefix` specifies that the field value must be a valid IP (v4 or v6)
        /// prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64".
        ///
        /// The prefix must have all zeros for the unmasked bits. For example,
        /// "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the
        /// prefix, and the remaining 64 bits must be zero.
        ///
        /// If the field value isn't a valid IP prefix, an error message will be
        /// generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IP prefix
        ///     string value = 1 \[(buf.validate.field).string.ip_prefix = true\];
        /// }
        /// ```
        #[prost(bool, tag = "29")]
        IpPrefix(bool),
        /// `ipv4_prefix` specifies that the field value must be a valid IPv4
        /// prefix, for example "192.168.0.0/16".
        ///
        /// The prefix must have all zeros for the unmasked bits. For example,
        /// "192.168.0.0/16" designates the left-most 16 bits for the prefix,
        /// and the remaining 16 bits must be zero.
        ///
        /// If the field value isn't a valid IPv4 prefix, an error message
        /// will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv4 prefix
        ///     string value = 1 \[(buf.validate.field).string.ipv4_prefix = true\];
        /// }
        /// ```
        #[prost(bool, tag = "30")]
        Ipv4Prefix(bool),
        /// `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for
        /// example, "2001:0DB8:ABCD:0012::0/64".
        ///
        /// The prefix must have all zeros for the unmasked bits. For example,
        /// "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the
        /// prefix, and the remaining 64 bits must be zero.
        ///
        /// If the field value is not a valid IPv6 prefix, an error message will be
        /// generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid IPv6 prefix
        ///     string value = 1 \[(buf.validate.field).string.ipv6_prefix = true\];
        /// }
        /// ```
        #[prost(bool, tag = "31")]
        Ipv6Prefix(bool),
        /// `host_and_port` specifies that the field value must be valid host/port
        /// pair—for example, "example.com:8080".
        ///
        /// The host can be one of:
        /// - An IPv4 address in dotted decimal format—for example, "192.168.5.21".
        /// - An IPv6 address enclosed in square brackets—for example, "\[2001:0DB8:ABCD:0012::F1\]".
        /// - A hostname—for example, "example.com".
        ///
        /// The port is separated by a colon. It must be non-empty, with a decimal number
        /// in the range of 0-65535, inclusive.
        #[prost(bool, tag = "32")]
        HostAndPort(bool),
        /// `well_known_regex` specifies a common well-known pattern
        /// defined as a regex. If the field value doesn't match the well-known
        /// regex, an error message will be generated.
        ///
        /// ```proto
        /// message MyString {
        ///    // value must be a valid HTTP header value
        ///    string value = 1 \[(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE\];
        /// }
        /// ```
        ///
        /// #### KnownRegex
        ///
        /// `well_known_regex` contains some well-known patterns.
        ///
        /// | Name                          | Number | Description                               |
        /// |-------------------------------|--------|-------------------------------------------|
        /// | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
        /// | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](<https://datatracker.ietf.org/doc/html/rfc7230#section-3.2>)  |
        /// | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](<https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4>) |
        #[prost(enumeration = "super::KnownRegex", tag = "24")]
        WellKnownRegex(i32),
    }
}
/// BytesRules describe the rules applied to `bytes` values. These rules
/// may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BytesRules {
    /// `const` requires the field value to exactly match the specified bytes
    /// value. If the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value must be "\x01\x02\x03\x04"
    ///    bytes value = 1 \[(buf.validate.field).bytes.const = "\x01\x02\x03\x04"\];
    /// }
    /// ```
    #[prost(bytes = "vec", optional, tag = "1")]
    pub r#const: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// `len` requires the field value to have the specified length in bytes.
    /// If the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value length must be 4 bytes.
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.len = 4\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "13")]
    pub len: ::core::option::Option<u64>,
    /// `min_len` requires the field value to have at least the specified minimum
    /// length in bytes.
    /// If the field value doesn't meet the requirement, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value length must be at least 2 bytes.
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.min_len = 2\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "2")]
    pub min_len: ::core::option::Option<u64>,
    /// `max_len` requires the field value to have at most the specified maximum
    /// length in bytes.
    /// If the field value exceeds the requirement, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value must be at most 6 bytes.
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.max_len = 6\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "3")]
    pub max_len: ::core::option::Option<u64>,
    /// `pattern` requires the field value to match the specified regular
    /// expression ([RE2 syntax](<https://github.com/google/re2/wiki/Syntax>)).
    /// The value of the field must be valid UTF-8 or validation will fail with a
    /// runtime error.
    /// If the field value doesn't match the pattern, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value must match regex pattern "^\[a-zA-Z0-9\]+$".
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9\]+$"];
    /// }
    /// ```
    #[prost(string, optional, tag = "4")]
    pub pattern: ::core::option::Option<::prost::alloc::string::String>,
    /// `prefix` requires the field value to have the specified bytes at the
    /// beginning of the string.
    /// If the field value doesn't meet the requirement, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value does not have prefix \x01\x02
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.prefix = "\x01\x02"\];
    /// }
    /// ```
    #[prost(bytes = "vec", optional, tag = "5")]
    pub prefix: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// `suffix` requires the field value to have the specified bytes at the end
    /// of the string.
    /// If the field value doesn't meet the requirement, an error message is generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value does not have suffix \x03\x04
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.suffix = "\x03\x04"\];
    /// }
    /// ```
    #[prost(bytes = "vec", optional, tag = "6")]
    pub suffix: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// `contains` requires the field value to have the specified bytes anywhere in
    /// the string.
    /// If the field value doesn't meet the requirement, an error message is generated.
    ///
    /// ```protobuf
    /// message MyBytes {
    ///    // value does not contain \x02\x03
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.contains = "\x02\x03"\];
    /// }
    /// ```
    #[prost(bytes = "vec", optional, tag = "7")]
    pub contains: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
    /// `in` requires the field value to be equal to one of the specified
    /// values. If the field value doesn't match any of the specified values, an
    /// error message is generated.
    ///
    /// ```protobuf
    /// message MyBytes {
    ///    // value must in \["\x01\x02", "\x02\x03", "\x03\x04"\]
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}\];
    /// }
    /// ```
    #[prost(bytes = "vec", repeated, tag = "8")]
    pub r#in: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// `not_in` requires the field value to be not equal to any of the specified
    /// values.
    /// If the field value matches any of the specified values, an error message is
    /// generated.
    ///
    /// ```proto
    /// message MyBytes {
    ///    // value must not in \["\x01\x02", "\x02\x03", "\x03\x04"\]
    ///    optional bytes value = 1 \[(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}\];
    /// }
    /// ```
    #[prost(bytes = "vec", repeated, tag = "9")]
    pub not_in: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyBytes {
    ///    bytes value = 1 [
    ///      (buf.validate.field).bytes.example = "\x01\x02",
    ///      (buf.validate.field).bytes.example = "\x02\x03"
    ///    ];
    /// }
    /// ```
    #[prost(bytes = "vec", repeated, tag = "14")]
    pub example: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// WellKnown rules provide advanced rules against common byte
    /// patterns
    #[prost(oneof = "bytes_rules::WellKnown", tags = "10, 11, 12")]
    pub well_known: ::core::option::Option<bytes_rules::WellKnown>,
}
/// Nested message and enum types in `BytesRules`.
pub mod bytes_rules {
    /// WellKnown rules provide advanced rules against common byte
    /// patterns
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum WellKnown {
        /// `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
        /// If the field value doesn't meet this rule, an error message is generated.
        ///
        /// ```proto
        /// message MyBytes {
        ///    // value must be a valid IP address
        ///    optional bytes value = 1 \[(buf.validate.field).bytes.ip = true\];
        /// }
        /// ```
        #[prost(bool, tag = "10")]
        Ip(bool),
        /// `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
        /// If the field value doesn't meet this rule, an error message is generated.
        ///
        /// ```proto
        /// message MyBytes {
        ///    // value must be a valid IPv4 address
        ///    optional bytes value = 1 \[(buf.validate.field).bytes.ipv4 = true\];
        /// }
        /// ```
        #[prost(bool, tag = "11")]
        Ipv4(bool),
        /// `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
        /// If the field value doesn't meet this rule, an error message is generated.
        /// ```proto
        /// message MyBytes {
        ///    // value must be a valid IPv6 address
        ///    optional bytes value = 1 \[(buf.validate.field).bytes.ipv6 = true\];
        /// }
        /// ```
        #[prost(bool, tag = "12")]
        Ipv6(bool),
    }
}
/// EnumRules describe the rules applied to `enum` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnumRules {
    /// `const` requires the field value to exactly match the specified enum value.
    /// If the field value doesn't match, an error message is generated.
    ///
    /// ```proto
    /// enum MyEnum {
    ///    MY_ENUM_UNSPECIFIED = 0;
    ///    MY_ENUM_VALUE1 = 1;
    ///    MY_ENUM_VALUE2 = 2;
    /// }
    ///
    /// message MyMessage {
    ///    // The field `value` must be exactly MY_ENUM_VALUE1.
    ///    MyEnum value = 1 \[(buf.validate.field).enum.const = 1\];
    /// }
    /// ```
    #[prost(int32, optional, tag = "1")]
    pub r#const: ::core::option::Option<i32>,
    /// `defined_only` requires the field value to be one of the defined values for
    /// this enum, failing on any undefined value.
    ///
    /// ```proto
    /// enum MyEnum {
    ///    MY_ENUM_UNSPECIFIED = 0;
    ///    MY_ENUM_VALUE1 = 1;
    ///    MY_ENUM_VALUE2 = 2;
    /// }
    ///
    /// message MyMessage {
    ///    // The field `value` must be a defined value of MyEnum.
    ///    MyEnum value = 1 \[(buf.validate.field).enum.defined_only = true\];
    /// }
    /// ```
    #[prost(bool, optional, tag = "2")]
    pub defined_only: ::core::option::Option<bool>,
    /// `in` requires the field value to be equal to one of the
    /// specified enum values. If the field value doesn't match any of the
    /// specified values, an error message is generated.
    ///
    /// ```proto
    /// enum MyEnum {
    ///    MY_ENUM_UNSPECIFIED = 0;
    ///    MY_ENUM_VALUE1 = 1;
    ///    MY_ENUM_VALUE2 = 2;
    /// }
    ///
    /// message MyMessage {
    ///    // The field `value` must be equal to one of the specified values.
    ///    MyEnum value = 1 \[(buf.validate.field).enum = { in: [1, 2\]}];
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "3")]
    pub r#in: ::prost::alloc::vec::Vec<i32>,
    /// `not_in` requires the field value to be not equal to any of the
    /// specified enum values. If the field value matches one of the specified
    /// values, an error message is generated.
    ///
    /// ```proto
    /// enum MyEnum {
    ///    MY_ENUM_UNSPECIFIED = 0;
    ///    MY_ENUM_VALUE1 = 1;
    ///    MY_ENUM_VALUE2 = 2;
    /// }
    ///
    /// message MyMessage {
    ///    // The field `value` must not be equal to any of the specified values.
    ///    MyEnum value = 1 \[(buf.validate.field).enum = { not_in: [1, 2\]}];
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "4")]
    pub not_in: ::prost::alloc::vec::Vec<i32>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// enum MyEnum {
    ///    MY_ENUM_UNSPECIFIED = 0;
    ///    MY_ENUM_VALUE1 = 1;
    ///    MY_ENUM_VALUE2 = 2;
    /// }
    ///
    /// message MyMessage {
    ///      (buf.validate.field).enum.example = 1,
    ///      (buf.validate.field).enum.example = 2
    /// }
    /// ```
    #[prost(int32, repeated, packed = "false", tag = "5")]
    pub example: ::prost::alloc::vec::Vec<i32>,
}
/// RepeatedRules describe the rules applied to `repeated` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepeatedRules {
    /// `min_items` requires that this field must contain at least the specified
    /// minimum number of items.
    ///
    /// Note that `min_items = 1` is equivalent to setting a field as `required`.
    ///
    /// ```proto
    /// message MyRepeated {
    ///    // value must contain at least  2 items
    ///    repeated string value = 1 \[(buf.validate.field).repeated.min_items = 2\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "1")]
    pub min_items: ::core::option::Option<u64>,
    /// `max_items` denotes that this field must not exceed a
    /// certain number of items as the upper limit. If the field contains more
    /// items than specified, an error message will be generated, requiring the
    /// field to maintain no more than the specified number of items.
    ///
    /// ```proto
    /// message MyRepeated {
    ///    // value must contain no more than 3 item(s)
    ///    repeated string value = 1 \[(buf.validate.field).repeated.max_items = 3\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "2")]
    pub max_items: ::core::option::Option<u64>,
    /// `unique` indicates that all elements in this field must
    /// be unique. This rule is strictly applicable to scalar and enum
    /// types, with message types not being supported.
    ///
    /// ```proto
    /// message MyRepeated {
    ///    // repeated value must contain unique items
    ///    repeated string value = 1 \[(buf.validate.field).repeated.unique = true\];
    /// }
    /// ```
    #[prost(bool, optional, tag = "3")]
    pub unique: ::core::option::Option<bool>,
    /// `items` details the rules to be applied to each item
    /// in the field. Even for repeated message fields, validation is executed
    /// against each item unless `ignore` is specified.
    ///
    /// ```proto
    /// message MyRepeated {
    ///    // The items in the field `value` must follow the specified rules.
    ///    repeated string value = 1 [(buf.validate.field).repeated.items = {
    ///      string: {
    ///        min_len: 3
    ///        max_len: 10
    ///      }
    ///    }];
    /// }
    /// ```
    ///
    /// Note that the `required` rule does not apply. Repeated items
    /// cannot be unset.
    #[prost(message, optional, boxed, tag = "4")]
    pub items: ::core::option::Option<::prost::alloc::boxed::Box<FieldRules>>,
}
/// MapRules describe the rules applied to `map` values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MapRules {
    /// Specifies the minimum number of key-value pairs allowed. If the field has
    /// fewer key-value pairs than specified, an error message is generated.
    ///
    /// ```proto
    /// message MyMap {
    ///    // The field `value` must have at least 2 key-value pairs.
    ///    map<string, string> value = 1 \[(buf.validate.field).map.min_pairs = 2\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "1")]
    pub min_pairs: ::core::option::Option<u64>,
    /// Specifies the maximum number of key-value pairs allowed. If the field has
    /// more key-value pairs than specified, an error message is generated.
    ///
    /// ```proto
    /// message MyMap {
    ///    // The field `value` must have at most 3 key-value pairs.
    ///    map<string, string> value = 1 \[(buf.validate.field).map.max_pairs = 3\];
    /// }
    /// ```
    #[prost(uint64, optional, tag = "2")]
    pub max_pairs: ::core::option::Option<u64>,
    /// Specifies the rules to be applied to each key in the field.
    ///
    /// ```proto
    /// message MyMap {
    ///    // The keys in the field `value` must follow the specified rules.
    ///    map<string, string> value = 1 [(buf.validate.field).map.keys = {
    ///      string: {
    ///        min_len: 3
    ///        max_len: 10
    ///      }
    ///    }];
    /// }
    /// ```
    ///
    /// Note that the `required` rule does not apply. Map keys cannot be unset.
    #[prost(message, optional, boxed, tag = "4")]
    pub keys: ::core::option::Option<::prost::alloc::boxed::Box<FieldRules>>,
    /// Specifies the rules to be applied to the value of each key in the
    /// field. Message values will still have their validations evaluated unless
    /// `ignore` is specified.
    ///
    /// ```proto
    /// message MyMap {
    ///    // The values in the field `value` must follow the specified rules.
    ///    map<string, string> value = 1 [(buf.validate.field).map.values = {
    ///      string: {
    ///        min_len: 5
    ///        max_len: 20
    ///      }
    ///    }];
    /// }
    /// ```
    /// Note that the `required` rule does not apply. Map values cannot be unset.
    #[prost(message, optional, boxed, tag = "5")]
    pub values: ::core::option::Option<::prost::alloc::boxed::Box<FieldRules>>,
}
/// AnyRules describe rules applied exclusively to the `google.protobuf.Any` well-known type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnyRules {
    /// `in` requires the field's `type_url` to be equal to one of the
    /// specified values. If it doesn't match any of the specified values, an error
    /// message is generated.
    ///
    /// ```proto
    /// message MyAny {
    ///    //  The `value` field must have a `type_url` equal to one of the specified values.
    ///    google.protobuf.Any value = 1 [(buf.validate.field).any = {
    ///        in: \["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"\]
    ///    }];
    /// }
    /// ```
    #[prost(string, repeated, tag = "2")]
    pub r#in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
    ///
    /// ```proto
    /// message MyAny {
    ///    //  The `value` field must not have a `type_url` equal to any of the specified values.
    ///    google.protobuf.Any value = 1 [(buf.validate.field).any = {
    ///        not_in: \["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"\]
    ///    }];
    /// }
    /// ```
    #[prost(string, repeated, tag = "3")]
    pub not_in: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// DurationRules describe the rules applied exclusively to the `google.protobuf.Duration` well-known type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DurationRules {
    /// `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
    /// If the field's value deviates from the specified value, an error message
    /// will be generated.
    ///
    /// ```proto
    /// message MyDuration {
    ///    // value must equal 5s
    ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.const = "5s"\];
    /// }
    /// ```
    #[prost(message, optional, tag = "2")]
    pub r#const: ::core::option::Option<super::super::google::protobuf::Duration>,
    /// `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
    /// If the field's value doesn't correspond to any of the specified values,
    /// an error message will be generated.
    ///
    /// ```proto
    /// message MyDuration {
    ///    // value must be in list \[1s, 2s, 3s\]
    ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.in = ["1s", "2s", "3s"]\];
    /// }
    /// ```
    #[prost(message, repeated, tag = "7")]
    pub r#in: ::prost::alloc::vec::Vec<super::super::google::protobuf::Duration>,
    /// `not_in` denotes that the field must not be equal to
    /// any of the specified values of the `google.protobuf.Duration` type.
    /// If the field's value matches any of these values, an error message will be
    /// generated.
    ///
    /// ```proto
    /// message MyDuration {
    ///    // value must not be in list \[1s, 2s, 3s\]
    ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]\];
    /// }
    /// ```
    #[prost(message, repeated, tag = "8")]
    pub not_in: ::prost::alloc::vec::Vec<super::super::google::protobuf::Duration>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyDuration {
    ///    google.protobuf.Duration value = 1 [
    ///      (buf.validate.field).duration.example = { seconds: 1 },
    ///      (buf.validate.field).duration.example = { seconds: 2 },
    ///    ];
    /// }
    /// ```
    #[prost(message, repeated, tag = "9")]
    pub example: ::prost::alloc::vec::Vec<super::super::google::protobuf::Duration>,
    #[prost(oneof = "duration_rules::LessThan", tags = "3, 4")]
    pub less_than: ::core::option::Option<duration_rules::LessThan>,
    #[prost(oneof = "duration_rules::GreaterThan", tags = "5, 6")]
    pub greater_than: ::core::option::Option<duration_rules::GreaterThan>,
}
/// Nested message and enum types in `DurationRules`.
pub mod duration_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
        /// exclusive. If the field's value is greater than or equal to the specified
        /// value, an error message will be generated.
        ///
        /// ```proto
        /// message MyDuration {
        ///    // value must be less than 5s
        ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.lt = "5s"\];
        /// }
        /// ```
        #[prost(message, tag = "3")]
        Lt(super::super::super::google::protobuf::Duration),
        /// `lte` indicates that the field must be less than or equal to the specified
        /// value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
        /// an error message will be generated.
        ///
        /// ```proto
        /// message MyDuration {
        ///    // value must be less than or equal to 10s
        ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.lte = "10s"\];
        /// }
        /// ```
        #[prost(message, tag = "4")]
        Lte(super::super::super::google::protobuf::Duration),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the duration field value to be greater than the specified
        /// value (exclusive). If the value of `gt` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyDuration {
        ///    // duration must be greater than 5s \[duration.gt\]
        ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.gt = { seconds: 5 }\];
        ///
        ///    // duration must be greater than 5s and less than 10s \[duration.gt_lt\]
        ///    google.protobuf.Duration another_value = 2 \[(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }\];
        ///
        ///    // duration must be greater than 10s or less than 5s \[duration.gt_lt_exclusive\]
        ///    google.protobuf.Duration other_value = 3 \[(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }\];
        /// }
        /// ```
        #[prost(message, tag = "5")]
        Gt(super::super::super::google::protobuf::Duration),
        /// `gte` requires the duration field value to be greater than or equal to the
        /// specified value (exclusive). If the value of `gte` is larger than a
        /// specified `lt` or `lte`, the range is reversed, and the field value must
        /// be outside the specified range. If the field value doesn't meet the
        /// required conditions, an error message is generated.
        ///
        /// ```proto
        /// message MyDuration {
        ///   // duration must be greater than or equal to 5s \[duration.gte\]
        ///   google.protobuf.Duration value = 1 \[(buf.validate.field).duration.gte = { seconds: 5 }\];
        ///
        ///   // duration must be greater than or equal to 5s and less than 10s \[duration.gte_lt\]
        ///   google.protobuf.Duration another_value = 2 \[(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }\];
        ///
        ///   // duration must be greater than or equal to 10s or less than 5s \[duration.gte_lt_exclusive\]
        ///   google.protobuf.Duration other_value = 3 \[(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }\];
        /// }
        /// ```
        #[prost(message, tag = "6")]
        Gte(super::super::super::google::protobuf::Duration),
    }
}
/// TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestampRules {
    /// `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
    ///
    /// ```proto
    /// message MyTimestamp {
    ///    // value must equal 2023-05-03T10:00:00Z
    ///    google.protobuf.Timestamp created_at = 1 \[(buf.validate.field).timestamp.const = {seconds: 1727998800}\];
    /// }
    /// ```
    #[prost(message, optional, tag = "2")]
    pub r#const: ::core::option::Option<super::super::google::protobuf::Timestamp>,
    /// `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
    ///
    /// ```proto
    /// message MyTimestamp {
    ///    // value must be within 1 hour of now
    ///    google.protobuf.Timestamp created_at = 1 \[(buf.validate.field).timestamp.within = {seconds: 3600}\];
    /// }
    /// ```
    #[prost(message, optional, tag = "9")]
    pub within: ::core::option::Option<super::super::google::protobuf::Duration>,
    /// `example` specifies values that the field may have. These values SHOULD
    /// conform to other rules. `example` values will not impact validation
    /// but may be used as helpful guidance on how to populate the given field.
    ///
    /// ```proto
    /// message MyTimestamp {
    ///    google.protobuf.Timestamp value = 1 [
    ///      (buf.validate.field).timestamp.example = { seconds: 1672444800 },
    ///      (buf.validate.field).timestamp.example = { seconds: 1672531200 },
    ///    ];
    /// }
    /// ```
    #[prost(message, repeated, tag = "10")]
    pub example: ::prost::alloc::vec::Vec<super::super::google::protobuf::Timestamp>,
    #[prost(oneof = "timestamp_rules::LessThan", tags = "3, 4, 7")]
    pub less_than: ::core::option::Option<timestamp_rules::LessThan>,
    #[prost(oneof = "timestamp_rules::GreaterThan", tags = "5, 6, 8")]
    pub greater_than: ::core::option::Option<timestamp_rules::GreaterThan>,
}
/// Nested message and enum types in `TimestampRules`.
pub mod timestamp_rules {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum LessThan {
        /// requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
        ///
        /// ```proto
        /// message MyDuration {
        ///    // duration must be less than 'P3D' \[duration.lt\]
        ///    google.protobuf.Duration value = 1 \[(buf.validate.field).duration.lt = { seconds: 259200 }\];
        /// }
        /// ```
        #[prost(message, tag = "3")]
        Lt(super::super::super::google::protobuf::Timestamp),
        /// requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
        ///
        /// ```proto
        /// message MyTimestamp {
        ///    // timestamp must be less than or equal to '2023-05-14T00:00:00Z' \[timestamp.lte\]
        ///    google.protobuf.Timestamp value = 1 \[(buf.validate.field).timestamp.lte = { seconds: 1678867200 }\];
        /// }
        /// ```
        #[prost(message, tag = "4")]
        Lte(super::super::super::google::protobuf::Timestamp),
        /// `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
        ///
        /// ```proto
        /// message MyTimestamp {
        ///   // value must be less than now
        ///    google.protobuf.Timestamp created_at = 1 \[(buf.validate.field).timestamp.lt_now = true\];
        /// }
        /// ```
        #[prost(bool, tag = "7")]
        LtNow(bool),
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GreaterThan {
        /// `gt` requires the timestamp field value to be greater than the specified
        /// value (exclusive). If the value of `gt` is larger than a specified `lt`
        /// or `lte`, the range is reversed, and the field value must be outside the
        /// specified range. If the field value doesn't meet the required conditions,
        /// an error message is generated.
        ///
        /// ```proto
        /// message MyTimestamp {
        ///    // timestamp must be greater than '2023-01-01T00:00:00Z' \[timestamp.gt\]
        ///    google.protobuf.Timestamp value = 1 \[(buf.validate.field).timestamp.gt = { seconds: 1672444800 }\];
        ///
        ///    // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' \[timestamp.gt_lt\]
        ///    google.protobuf.Timestamp another_value = 2 \[(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }\];
        ///
        ///    // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' \[timestamp.gt_lt_exclusive\]
        ///    google.protobuf.Timestamp other_value = 3 \[(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }\];
        /// }
        /// ```
        #[prost(message, tag = "5")]
        Gt(super::super::super::google::protobuf::Timestamp),
        /// `gte` requires the timestamp field value to be greater than or equal to the
        /// specified value (exclusive). If the value of `gte` is larger than a
        /// specified `lt` or `lte`, the range is reversed, and the field value
        /// must be outside the specified range. If the field value doesn't meet
        /// the required conditions, an error message is generated.
        ///
        /// ```proto
        /// message MyTimestamp {
        ///    // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' \[timestamp.gte\]
        ///    google.protobuf.Timestamp value = 1 \[(buf.validate.field).timestamp.gte = { seconds: 1672444800 }\];
        ///
        ///    // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' \[timestamp.gte_lt\]
        ///    google.protobuf.Timestamp another_value = 2 \[(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }\];
        ///
        ///    // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' \[timestamp.gte_lt_exclusive\]
        ///    google.protobuf.Timestamp other_value = 3 \[(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }\];
        /// }
        /// ```
        #[prost(message, tag = "6")]
        Gte(super::super::super::google::protobuf::Timestamp),
        /// `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
        ///
        /// ```proto
        /// message MyTimestamp {
        ///    // value must be greater than now
        ///    google.protobuf.Timestamp created_at = 1 \[(buf.validate.field).timestamp.gt_now = true\];
        /// }
        /// ```
        #[prost(bool, tag = "8")]
        GtNow(bool),
    }
}
/// `Violations` is a collection of `Violation` messages. This message type is returned by
/// Protovalidate when a proto message fails to meet the requirements set by the `Rule` validation rules.
/// Each individual violation is represented by a `Violation` message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Violations {
    /// `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
    #[prost(message, repeated, tag = "1")]
    pub violations: ::prost::alloc::vec::Vec<Violation>,
}
/// `Violation` represents a single instance where a validation rule, expressed
/// as a `Rule`, was not met. It provides information about the field that
/// caused the violation, the specific rule that wasn't fulfilled, and a
/// human-readable error message.
///
/// For example, consider the following message:
///
/// ```proto
/// message User {
///      int32 age = 1 [(buf.validate.field).cel = {
///          id: "user.age",
///          expression: "this < 18 ? 'User must be at least 18 years old' : ''",
///      }];
/// }
/// ```
///
/// It could produce the following violation:
///
/// ```json
/// {
///    "ruleId": "user.age",
///    "message": "User must be at least 18 years old",
///    "field": {
///      "elements": [
///        {
///          "fieldNumber": 1,
///          "fieldName": "age",
///          "fieldType": "TYPE_INT32"
///        }
///      ]
///    },
///    "rule": {
///      "elements": [
///        {
///          "fieldNumber": 23,
///          "fieldName": "cel",
///          "fieldType": "TYPE_MESSAGE",
///          "index": "0"
///        }
///      ]
///    }
/// }
/// ```
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Violation {
    /// `field` is a machine-readable path to the field that failed validation.
    /// This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
    ///
    /// For example, consider the following message:
    ///
    /// ```proto
    /// message Message {
    ///    bool a = 1 \[(buf.validate.field).required = true\];
    /// }
    /// ```
    ///
    /// It could produce the following violation:
    ///
    /// ```textproto
    /// violation {
    ///    field { element { field_number: 1, field_name: "a", field_type: 8 } }
    ///    ...
    /// }
    /// ```
    #[prost(message, optional, tag = "5")]
    pub field: ::core::option::Option<FieldPath>,
    /// `rule` is a machine-readable path that points to the specific rule that failed validation.
    /// This will be a nested field starting from the FieldRules of the field that failed validation.
    /// For custom rules, this will provide the path of the rule, e.g. `cel\[0\]`.
    ///
    /// For example, consider the following message:
    ///
    /// ```proto
    /// message Message {
    ///    bool a = 1 \[(buf.validate.field).required = true\];
    ///    bool b = 2 [(buf.validate.field).cel = {
    ///      id: "custom_rule",
    ///      expression: "!this ? 'b must be true': ''"
    ///    }]
    /// }
    /// ```
    ///
    /// It could produce the following violations:
    ///
    /// ```textproto
    /// violation {
    ///    rule { element { field_number: 25, field_name: "required", field_type: 8 } }
    ///    ...
    /// }
    /// violation {
    ///    rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
    ///    ...
    /// }
    /// ```
    #[prost(message, optional, tag = "6")]
    pub rule: ::core::option::Option<FieldPath>,
    /// `rule_id` is the unique identifier of the `Rule` that was not fulfilled.
    /// This is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated.
    #[prost(string, optional, tag = "2")]
    pub rule_id: ::core::option::Option<::prost::alloc::string::String>,
    /// `message` is a human-readable error message that describes the nature of the violation.
    /// This can be the default error message from the violated `Rule`, or it can be a custom message that gives more context about the violation.
    #[prost(string, optional, tag = "3")]
    pub message: ::core::option::Option<::prost::alloc::string::String>,
    /// `for_key` indicates whether the violation was caused by a map key, rather than a value.
    #[prost(bool, optional, tag = "4")]
    pub for_key: ::core::option::Option<bool>,
}
/// `FieldPath` provides a path to a nested protobuf field.
///
/// This message provides enough information to render a dotted field path even without protobuf descriptors.
/// It also provides enough information to resolve a nested field through unknown wire data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FieldPath {
    /// `elements` contains each element of the path, starting from the root and recursing downward.
    #[prost(message, repeated, tag = "1")]
    pub elements: ::prost::alloc::vec::Vec<FieldPathElement>,
}
/// `FieldPathElement` provides enough information to nest through a single protobuf field.
///
/// If the selected field is a map or repeated field, the `subscript` value selects a specific element from it.
/// A path that refers to a value nested under a map key or repeated field index will have a `subscript` value.
/// The `field_type` field allows unambiguous resolution of a field even if descriptors are not available.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FieldPathElement {
    /// `field_number` is the field number this path element refers to.
    #[prost(int32, optional, tag = "1")]
    pub field_number: ::core::option::Option<i32>,
    /// `field_name` contains the field name this path element refers to.
    /// This can be used to display a human-readable path even if the field number is unknown.
    #[prost(string, optional, tag = "2")]
    pub field_name: ::core::option::Option<::prost::alloc::string::String>,
    /// `field_type` specifies the type of this field. When using reflection, this value is not needed.
    ///
    /// This value is provided to make it possible to traverse unknown fields through wire data.
    /// When traversing wire data, be mindful of both packed\[1\] and delimited\[2\] encoding schemes.
    ///
    /// \[1\]: <https://protobuf.dev/programming-guides/encoding/#packed>
    /// \[2\]: <https://protobuf.dev/programming-guides/encoding/#groups>
    ///
    /// N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
    /// can be explicitly used in Protocol Buffers 2023 Edition.
    #[prost(
        enumeration = "super::super::google::protobuf::field_descriptor_proto::Type",
        optional,
        tag = "3"
    )]
    pub field_type: ::core::option::Option<i32>,
    /// `key_type` specifies the map key type of this field. This value is useful when traversing
    /// unknown fields through wire data: specifically, it allows handling the differences between
    /// different integer encodings.
    #[prost(
        enumeration = "super::super::google::protobuf::field_descriptor_proto::Type",
        optional,
        tag = "4"
    )]
    pub key_type: ::core::option::Option<i32>,
    /// `value_type` specifies map value type of this field. This is useful if you want to display a
    /// value inside unknown fields through wire data.
    #[prost(
        enumeration = "super::super::google::protobuf::field_descriptor_proto::Type",
        optional,
        tag = "5"
    )]
    pub value_type: ::core::option::Option<i32>,
    /// `subscript` contains a repeated index or map key, if this path element nests into a repeated or map field.
    #[prost(oneof = "field_path_element::Subscript", tags = "6, 7, 8, 9, 10")]
    pub subscript: ::core::option::Option<field_path_element::Subscript>,
}
/// Nested message and enum types in `FieldPathElement`.
pub mod field_path_element {
    /// `subscript` contains a repeated index or map key, if this path element nests into a repeated or map field.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Subscript {
        /// `index` specifies a 0-based index into a repeated field.
        #[prost(uint64, tag = "6")]
        Index(u64),
        /// `bool_key` specifies a map key of type bool.
        #[prost(bool, tag = "7")]
        BoolKey(bool),
        /// `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
        #[prost(int64, tag = "8")]
        IntKey(i64),
        /// `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
        #[prost(uint64, tag = "9")]
        UintKey(u64),
        /// `string_key` specifies a map key of type string.
        #[prost(string, tag = "10")]
        StringKey(::prost::alloc::string::String),
    }
}
/// Specifies how `FieldRules.ignore` behaves, depending on the field's value, and
/// whether the field tracks presence.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Ignore {
    /// Ignore rules if the field tracks presence and is unset. This is the default
    /// behavior.
    ///
    /// In proto3, only message fields, members of a Protobuf `oneof`, and fields
    /// with the `optional` label track presence. Consequently, the following fields
    /// are always validated, whether a value is set or not:
    ///
    /// ```proto
    /// syntax="proto3";
    ///
    /// message RulesApply {
    ///    string email = 1 [
    ///      (buf.validate.field).string.email = true
    ///    ];
    ///    int32 age = 2 [
    ///      (buf.validate.field).int32.gt = 0
    ///    ];
    ///    repeated string labels = 3 [
    ///      (buf.validate.field).repeated.min_items = 1
    ///    ];
    /// }
    /// ```
    ///
    /// In contrast, the following fields track presence, and are only validated if
    /// a value is set:
    ///
    /// ```proto
    /// syntax="proto3";
    ///
    /// message RulesApplyIfSet {
    ///    optional string email = 1 [
    ///      (buf.validate.field).string.email = true
    ///    ];
    ///    oneof ref {
    ///      string reference = 2 [
    ///        (buf.validate.field).string.uuid = true
    ///      ];
    ///      string name = 3 [
    ///        (buf.validate.field).string.min_len = 4
    ///      ];
    ///    }
    ///    SomeMessage msg = 4 [
    ///      (buf.validate.field).cel = {/* ... */}
    ///    ];
    /// }
    /// ```
    ///
    /// To ensure that such a field is set, add the `required` rule.
    ///
    /// To learn which fields track presence, see the
    /// [Field Presence cheat sheet](<https://protobuf.dev/programming-guides/field_presence/#cheat>).
    Unspecified = 0,
    /// Ignore rules if the field is unset, or set to the zero value.
    ///
    /// The zero value depends on the field type:
    /// - For strings, the zero value is the empty string.
    /// - For bytes, the zero value is empty bytes.
    /// - For bool, the zero value is false.
    /// - For numeric types, the zero value is zero.
    /// - For enums, the zero value is the first defined enum value.
    /// - For repeated fields, the zero is an empty list.
    /// - For map fields, the zero is an empty map.
    /// - For message fields, absence of the message (typically a null-value) is considered zero value.
    ///
    /// For fields that track presence (e.g. adding the `optional` label in proto3),
    /// this a no-op and behavior is the same as the default `IGNORE_UNSPECIFIED`.
    IfZeroValue = 1,
    /// Always ignore rules, including the `required` rule.
    ///
    /// This is useful for ignoring the rules of a referenced message, or to
    /// temporarily ignore rules during development.
    ///
    /// ```proto
    /// message MyMessage {
    ///    // The field's rules will always be ignored, including any validations
    ///    // on value's fields.
    ///    MyOtherMessage value = 1 [
    ///      (buf.validate.field).ignore = IGNORE_ALWAYS
    ///    ];
    /// }
    /// ```
    Always = 3,
}
impl Ignore {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "IGNORE_UNSPECIFIED",
            Self::IfZeroValue => "IGNORE_IF_ZERO_VALUE",
            Self::Always => "IGNORE_ALWAYS",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "IGNORE_UNSPECIFIED" => Some(Self::Unspecified),
            "IGNORE_IF_ZERO_VALUE" => Some(Self::IfZeroValue),
            "IGNORE_ALWAYS" => Some(Self::Always),
            _ => None,
        }
    }
}
/// KnownRegex contains some well-known patterns.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum KnownRegex {
    Unspecified = 0,
    /// HTTP header name as defined by [RFC 7230](<https://datatracker.ietf.org/doc/html/rfc7230#section-3.2>).
    HttpHeaderName = 1,
    /// HTTP header value as defined by [RFC 7230](<https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4>).
    HttpHeaderValue = 2,
}
impl KnownRegex {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "KNOWN_REGEX_UNSPECIFIED",
            Self::HttpHeaderName => "KNOWN_REGEX_HTTP_HEADER_NAME",
            Self::HttpHeaderValue => "KNOWN_REGEX_HTTP_HEADER_VALUE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "KNOWN_REGEX_UNSPECIFIED" => Some(Self::Unspecified),
            "KNOWN_REGEX_HTTP_HEADER_NAME" => Some(Self::HttpHeaderName),
            "KNOWN_REGEX_HTTP_HEADER_VALUE" => Some(Self::HttpHeaderValue),
            _ => None,
        }
    }
}