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
/// / Represnts a list of tasks to be performed by a switchboard oracle.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OracleJob {
    /// / The chain of tasks to perform for this OracleJob.
    #[prost(message, repeated, tag = "1")]
    pub tasks: ::prost::alloc::vec::Vec<oracle_job::Task>,
}
/// Nested message and enum types in `OracleJob`.
pub mod oracle_job {
    /// The adapter will report the text body of a successful HTTP request to the
    /// specified url, or return an error if the response status code is greater
    /// than or equal to 400.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: String representation of the http response.
    ///
    /// ***Example***: Basic HttpTask
    ///
    /// ```text,json
    /// {"httpTask": {"url": "<https://mywebsite.org/path"}> }
    /// ```
    ///
    /// ***Example***: HttpTask example with headers
    ///
    /// ```text,json
    /// { "httpTask": { "url": "<https://mywebsite.org/path",> "method": "METHOD_POST", "headers": [ { "key": "MY_HEADER_KEY", "value": "MY_HEADER_VALUE" } ], "body": "{\"MY_BODY_KEY\":\"MY_BODY_VALUE\"}" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct HttpTask {
        /// / A string containing the URL to direct this HTTP request to.
        #[prost(string, optional, tag = "1")]
        pub url: ::core::option::Option<::prost::alloc::string::String>,
        /// / The type of HTTP request to make.
        #[prost(enumeration = "http_task::Method", optional, tag = "2")]
        pub method: ::core::option::Option<i32>,
        /// / A list of headers to add to this HttpTask.
        #[prost(message, repeated, tag = "3")]
        pub headers: ::prost::alloc::vec::Vec<http_task::Header>,
        /// / A stringified body (if any) to add to this HttpTask.
        #[prost(string, optional, tag = "4")]
        pub body: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Nested message and enum types in `HttpTask`.
    pub mod http_task {
        /// / An object that represents a header to add to an HTTP request.
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Header {
            /// / A header key such as `Authorization` or `Content-Type`
            #[prost(string, optional, tag = "1")]
            pub key: ::core::option::Option<::prost::alloc::string::String>,
            /// / A value for the given header key like `Basic MYAUTHKEY` or `application/json`
            #[prost(string, optional, tag = "2")]
            pub value: ::core::option::Option<::prost::alloc::string::String>,
        }
        /// / An enumeration representing the types of HTTP requests available to make.
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Method {
            /// / Unset HTTP method will default to METHOD_GET
            Unkown = 0,
            /// / Perform an HTTP 'GET' request.
            Get = 1,
            /// / Perform an HTTP 'POST' request.
            Post = 2,
        }
        impl Method {
            /// 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 {
                    Method::Unkown => "METHOD_UNKOWN",
                    Method::Get => "METHOD_GET",
                    Method::Post => "METHOD_POST",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "METHOD_UNKOWN" => Some(Self::Unkown),
                    "METHOD_GET" => Some(Self::Get),
                    "METHOD_POST" => Some(Self::Post),
                    _ => None,
                }
            }
        }
    }
    /// The adapter walks the path specified and returns the value found at that result. If returning
    /// JSON data from the HttpGet or HttpPost adapters, you must use this adapter to parse the response.
    ///
    /// ***Input***: String representation of a JSON object.
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Parses the price field from a JSON object
    ///
    /// ```text,json
    /// {"jsonParse": {"path": "$.price"} }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct JsonParseTask {
        /// / JSONPath formatted path to the element. <https://t.ly/uLtw>
        /// / <https://www.npmjs.com/package/jsonpath-plus>
        #[prost(string, optional, tag = "1")]
        pub path: ::core::option::Option<::prost::alloc::string::String>,
        /// / The technique that will be used to aggregate the results if walking the specified path returns multiple numerical results.
        #[prost(
            enumeration = "json_parse_task::AggregationMethod",
            optional,
            tag = "2"
        )]
        pub aggregation_method: ::core::option::Option<i32>,
    }
    /// Nested message and enum types in `JsonParseTask`.
    pub mod json_parse_task {
        /// / The methods of combining a list of numerical results.
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum AggregationMethod {
            None = 0,
            /// / Grab the minimum value of the results.
            Min = 1,
            /// / Grab the maximum value of the results.
            Max = 2,
            /// / Sum up all of the results.
            Sum = 3,
            /// / Average all of the results.
            Mean = 4,
            /// / Grab the median of the results.
            Median = 5,
        }
        impl AggregationMethod {
            /// 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 {
                    AggregationMethod::None => "NONE",
                    AggregationMethod::Min => "MIN",
                    AggregationMethod::Max => "MAX",
                    AggregationMethod::Sum => "SUM",
                    AggregationMethod::Mean => "MEAN",
                    AggregationMethod::Median => "MEDIAN",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "NONE" => Some(Self::None),
                    "MIN" => Some(Self::Min),
                    "MAX" => Some(Self::Max),
                    "SUM" => Some(Self::Sum),
                    "MEAN" => Some(Self::Mean),
                    "MEDIAN" => Some(Self::Median),
                    _ => None,
                }
            }
        }
    }
    /// Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks must return a Number.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the median numerical result of 3 tasks.
    ///
    /// ```text,json
    /// {"medianTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
    /// ```
    ///
    /// ***Example***: Returns the median numerical result of 3 jobs.
    ///
    /// ```text,json
    /// {"medianTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MedianTask {
        /// / A list of subtasks to process and produce a list of result values.
        #[prost(message, repeated, tag = "1")]
        pub tasks: ::prost::alloc::vec::Vec<Task>,
        /// / A list of subjobs to process and produce a list of result values.
        #[prost(message, repeated, tag = "2")]
        pub jobs: ::prost::alloc::vec::Vec<super::OracleJob>,
        /// / The minimum number of values before a successful median can be yielded.
        #[prost(int32, optional, tag = "3")]
        pub min_successful_required: ::core::option::Option<i32>,
    }
    /// Returns the mean (average) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the mean numerical result of 3 tasks.
    ///
    /// ```text,json
    /// {"meanTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
    /// ```
    ///
    /// ***Example***: Returns the mean numerical result of 3 jobs.
    ///
    /// ```text,json
    /// {"meanTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MeanTask {
        /// / A list of subtasks to process and produce a list of result values.
        #[prost(message, repeated, tag = "1")]
        pub tasks: ::prost::alloc::vec::Vec<Task>,
        /// / A list of subjobs to process and produce a list of result values.
        #[prost(message, repeated, tag = "2")]
        pub jobs: ::prost::alloc::vec::Vec<super::OracleJob>,
    }
    /// Returns the maximum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the maximum numerical result from 3 tasks.
    ///
    /// ```text,json
    /// {"maxTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
    /// ```
    ///
    /// ***Example***: Returns the maximum numerical result from 3 jobs.
    ///
    /// ```text,json
    /// {"maxTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MaxTask {
        /// / A list of subtasks to process and produce a list of result values.
        #[prost(message, repeated, tag = "1")]
        pub tasks: ::prost::alloc::vec::Vec<Task>,
        /// / A list of subjobs to process and produce a list of result values.
        #[prost(message, repeated, tag = "2")]
        pub jobs: ::prost::alloc::vec::Vec<super::OracleJob>,
    }
    /// Returns the minimum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the minimum numerical result from 3 tasks.
    ///
    /// ```text,json
    /// {"minTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
    /// ```
    ///
    /// ***Example***: Returns the minimum numerical result from 3 jobs.
    ///
    /// ```text,json
    /// {"minTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MinTask {
        /// / A list of subtasks to process and produce a list of result values.
        #[prost(message, repeated, tag = "1")]
        pub tasks: ::prost::alloc::vec::Vec<Task>,
        /// / A list of subjobs to process and produce a list of result values.
        #[prost(message, repeated, tag = "2")]
        pub jobs: ::prost::alloc::vec::Vec<super::OracleJob>,
    }
    /// Returns a specified value.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the value 10
    ///
    /// ```text,json
    /// {"valueTask": {"value": 10} }
    /// ```
    ///
    /// ***Example***: Returns the currentRound result of an aggregator
    ///
    /// ```text,json
    /// {"valueTask": {"aggregatorPubkey": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"} }
    /// ```
    ///
    /// ***Example***: Returns the value stored in a CacheTask variable
    ///
    /// ```text,json
    /// {"valueTask": {"big": "${ONE}"} }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ValueTask {
        #[prost(oneof = "value_task::Value", tags = "1, 2, 3")]
        pub value: ::core::option::Option<value_task::Value>,
    }
    /// Nested message and enum types in `ValueTask`.
    pub mod value_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            /// / The value that will be returned from this task.
            #[prost(double, tag = "1")]
            Value(f64),
            /// / Specifies an aggregatorr to pull the value of.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "3")]
            Big(::prost::alloc::string::String),
        }
    }
    /// Opens and maintains a websocket for light speed data retrieval.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: String representation of the websocket subscription message.
    ///
    /// ***Example***: Opens a coinbase websocket
    ///
    /// ```text,json
    /// { "websocketTask": { "url": "wss://ws-feed.pro.coinbase.com", "subscription": "{\"type\":\"subscribe\",\"product_ids\":\[\"BTC-USD\"],\"channels\":[\"ticker\",{\"name\":\"ticker\",\"product_ids\":[\"BTC-USD\"]}\]}", "maxDataAgeSeconds": 15, "filter": "$[?(@.type == 'ticker' && @.product_id == 'BTC-USD')]" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct WebsocketTask {
        /// / The websocket url.
        #[prost(string, optional, tag = "1")]
        pub url: ::core::option::Option<::prost::alloc::string::String>,
        /// / The websocket message to notify of a new subscription.
        #[prost(string, optional, tag = "2")]
        pub subscription: ::core::option::Option<::prost::alloc::string::String>,
        /// / Minimum amount of time required between when the horses are taking out.
        #[prost(int32, optional, tag = "3")]
        pub max_data_age_seconds: ::core::option::Option<i32>,
        /// / Incoming message JSONPath filter.
        /// / Example: "$\[?(@.channel == 'ticker' && @.market == 'BTC/USD')\]"
        #[prost(string, optional, tag = "4")]
        pub filter: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// This task will run the `attempt` on the subtasks in an effort to produce a valid numerical result. If `attempt`. fails to produce an acceptable result, `on_failure` subtasks will be run instead.
    ///
    /// ***Input***: The current running numerical result output from a task.
    ///
    /// ***Returns***: A numerical result, else run `on_failure` subtasks.
    ///
    /// ***Example***: Returns the numerical result from the conditionalTask's subtasks, else `on_failure` returns the numerical result from its subtasks.
    ///
    /// ```text,json
    /// {"conditionalTask":{"attempt":\[{"tasks":[{"jupiterSwapTask":{"inTokenAddress":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","outTokenAddress":"DUALa4FC2yREwZ59PHeu1un4wis36vHRv5hWVBmzykCJ"}}]}],"onFailure":[{"lpExchangeRateTask":{"orcaPoolAddress":"7yJ4gMRJhEoCR48aPE3EAWRmCoygakik81ZS1sajaTnE"}}\]}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConditionalTask {
        /// / A list of subtasks to process in an attempt to produce a valid numerical result.
        #[prost(message, repeated, tag = "1")]
        pub attempt: ::prost::alloc::vec::Vec<Task>,
        /// / A list of subtasks that will be run if `attempt` subtasks are unable to produce an acceptable
        /// / result.
        #[prost(message, repeated, tag = "2")]
        pub on_failure: ::prost::alloc::vec::Vec<Task>,
    }
    /// This task will divide a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
    ///
    /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the numerical result by dividing by a job of subtasks.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"divideTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by dividing by an aggregator.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"divideTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by dividing by a big.
    ///
    /// ```text,json
    /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"divideTask":{"big":"${TEN}"}}\]}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct DivideTask {
        #[prost(oneof = "divide_task::Denominator", tags = "1, 2, 3, 4")]
        pub denominator: ::core::option::Option<divide_task::Denominator>,
    }
    /// Nested message and enum types in `DivideTask`.
    pub mod divide_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Denominator {
            /// / Specifies a basic scalar denominator to divide by.
            #[prost(double, tag = "1")]
            Scalar(f64),
            /// / Specifies another aggregator resut to divide by.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A job whose result is computed before dividing our numerical input by that result.
            #[prost(message, tag = "3")]
            Job(super::super::OracleJob),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "4")]
            Big(::prost::alloc::string::String),
        }
    }
    /// This task will multiply a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
    ///
    /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the numerical result by multiplying by a job of subtasks.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"multiplyTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by an aggregator.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"multiplyTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by a big.
    ///
    /// ```text,json
    /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"multiplyTask":{"big":"${TEN}"}}\]}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MultiplyTask {
        #[prost(oneof = "multiply_task::Multiple", tags = "1, 2, 3, 4")]
        pub multiple: ::core::option::Option<multiply_task::Multiple>,
    }
    /// Nested message and enum types in `MultiplyTask`.
    pub mod multiply_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Multiple {
            /// / Specifies a scalar to multiply by.
            #[prost(double, tag = "1")]
            Scalar(f64),
            /// / Specifies an aggregator to multiply by.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A job whose result is computed before multiplying our numerical input by that result.
            #[prost(message, tag = "3")]
            Job(super::super::OracleJob),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "4")]
            Big(::prost::alloc::string::String),
        }
    }
    /// This task will add a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
    ///
    /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the numerical result by adding by a job of subtasks.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"addTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by an aggregator.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"addTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by a big.
    ///
    /// ```text,json
    /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"addTask":{"big":"${TEN}"}}\]}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AddTask {
        #[prost(oneof = "add_task::Addition", tags = "1, 2, 3, 4")]
        pub addition: ::core::option::Option<add_task::Addition>,
    }
    /// Nested message and enum types in `AddTask`.
    pub mod add_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Addition {
            /// / Specifies a scalar to add by.
            #[prost(double, tag = "1")]
            Scalar(f64),
            /// / Specifies an aggregator to add by.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A job whose result is computed before adding our numerical input by that result.
            #[prost(message, tag = "3")]
            Job(super::super::OracleJob),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "4")]
            Big(::prost::alloc::string::String),
        }
    }
    /// This task will subtract a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
    ///
    /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
    ///
    /// ***Returns***: A numerical result.
    ///
    /// ***Example***: Returns the numerical result by subtracting by a job of subtasks.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"subtractTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by an aggregator.
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":100}},{"subtractTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
    /// ```
    ///
    /// ***Example***: Returns the numerical result by multiplying by a big.
    ///
    /// ```text,json
    /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"subtractTask":{"big":"${TEN}"}}\]}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SubtractTask {
        #[prost(oneof = "subtract_task::Subtraction", tags = "1, 2, 3, 4")]
        pub subtraction: ::core::option::Option<subtract_task::Subtraction>,
    }
    /// Nested message and enum types in `SubtractTask`.
    pub mod subtract_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Subtraction {
            /// / Specifies a scalar to subtract by.
            #[prost(double, tag = "1")]
            Scalar(f64),
            /// / Specifies an aggregator to subtract by.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A job whose result is computed before subtracting our numerical input by that result.
            #[prost(message, tag = "3")]
            Job(super::super::OracleJob),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "4")]
            Big(::prost::alloc::string::String),
        }
    }
    /// Fetch LP token price info from a number of supported exchanges.
    ///
    /// See our blog post on [Fair LP Token Oracles](/blog/2022/01/20/Fair-LP-Token-Oracles)
    ///
    /// *NOTE*\*: This is not the swap price but the price of the underlying LP token.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The price of an LP token for a given AMM pool.
    ///
    /// ***Example***: Fetch the Orca LP token price of the SOL/USDC pool
    ///
    /// ```text,json
    /// { "lpTokenPriceTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9" } }
    /// ```
    ///
    /// ***Example***: Fetch the fair price Orca LP token price of the SOL/USDC pool
    ///
    /// ```text,json
    /// { "lpTokenPriceTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9", "useFairPrice": true, "priceFeedAddresses": [ "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR", "BjUgj6YCnFBZ49wF54ddBVA9qu8TeqkFtkbqmZcee8uW" ] } }
    /// ```
    ///
    /// ***Example***: Fetch the fair price Raydium LP token price of the SOL/USDC pool
    ///
    /// ```text,json
    /// { "lpTokenPriceTask": { "raydiumPoolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2", "useFairPrice": true,"priceFeedAddresses": ["GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR","BjUgj6YCnFBZ49wF54ddBVA9qu8TeqkFtkbqmZcee8uW" ] } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LpTokenPriceTask {
        /// / A list of Switchboard aggregator accounts used to calculate the fair LP price. This ensures the price is based on the previous round to mitigate flash loan price manipulation.
        #[prost(string, repeated, tag = "5")]
        pub price_feed_addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
        /// / A list of OracleJobs to execute in order to yield the price feed jobs to use for the fair price formula.
        #[prost(message, repeated, tag = "6")]
        pub price_feed_jobs: ::prost::alloc::vec::Vec<super::OracleJob>,
        /// / If enabled and price_feed_addresses provided, the oracle will calculate the fair LP price based on the liquidity pool reserves. See our blog post for more information: <https://switchboardxyz.medium.com/fair-lp-token-oracles-94a457c50239>
        #[prost(bool, optional, tag = "7")]
        pub use_fair_price: ::core::option::Option<bool>,
        #[prost(oneof = "lp_token_price_task::PoolAddress", tags = "1, 2, 3, 4")]
        pub pool_address: ::core::option::Option<lp_token_price_task::PoolAddress>,
    }
    /// Nested message and enum types in `LpTokenPriceTask`.
    pub mod lp_token_price_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum PoolAddress {
            /// / Mercurial finance pool address. A full list can be found here: <https://github.com/mercurial-finance/stable-swap-n-pool-js>
            #[prost(string, tag = "1")]
            MercurialPoolAddress(::prost::alloc::string::String),
            /// / Saber pool address. A full list can be found here: <https://github.com/saber-hq/saber-registry-dist>
            #[prost(string, tag = "2")]
            SaberPoolAddress(::prost::alloc::string::String),
            /// / Orca pool address. A full list can be found here: <https://www.orca.so/pools>
            #[prost(string, tag = "3")]
            OrcaPoolAddress(::prost::alloc::string::String),
            /// / The Raydium liquidity pool ammId. A full list can be found here: <https://sdk.raydium.io/liquidity/mainnet.json>
            #[prost(string, tag = "4")]
            RaydiumPoolAddress(::prost::alloc::string::String),
        }
    }
    /// Fetch the current swap price for a given liquidity pool
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The swap price for a given AMM pool.
    ///
    /// ***Example***: Fetch the exchange rate from the Orca SOL/USDC pool
    ///
    /// ```text,json
    /// { "lpExchangeRateTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9" } }
    /// ```
    ///
    /// ***Example***: Fetch the exchange rate from the Raydium SOL/USDC pool
    ///
    /// ```text,json
    /// { "lpExchangeRateTask": { "raydiumPoolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LpExchangeRateTask {
        /// / Used alongside mercurial_pool_address to specify the input token for a swap.
        #[prost(string, optional, tag = "1")]
        pub in_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / Used alongside mercurial_pool_address to specify the output token for a swap.
        #[prost(string, optional, tag = "2")]
        pub out_token_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(
            oneof = "lp_exchange_rate_task::PoolAddress",
            tags = "3, 4, 5, 6, 7, 8"
        )]
        pub pool_address: ::core::option::Option<lp_exchange_rate_task::PoolAddress>,
    }
    /// Nested message and enum types in `LpExchangeRateTask`.
    pub mod lp_exchange_rate_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum PoolAddress {
            /// / Mercurial finance pool address. A full list can be found here: <https://github.com/mercurial-finance/stable-swap-n-pool-js>
            #[prost(string, tag = "3")]
            MercurialPoolAddress(::prost::alloc::string::String),
            /// / Saber pool address. A full list can be found here: <https://github.com/saber-hq/saber-registry-dist>
            #[prost(string, tag = "4")]
            SaberPoolAddress(::prost::alloc::string::String),
            /// / **@deprecated** Use orcaPoolAddress
            #[prost(string, tag = "5")]
            OrcaPoolTokenMintAddress(::prost::alloc::string::String),
            /// / The Raydium liquidity pool ammId. A full list can be found here: <https://sdk.raydium.io/liquidity/mainnet.json>
            #[prost(string, tag = "6")]
            RaydiumPoolAddress(::prost::alloc::string::String),
            /// / Pool address for an Orca LP pool or whirlpool.
            /// / A full list of Orca LP pools can be found here: <https://www.orca.so/pools>
            #[prost(string, tag = "7")]
            OrcaPoolAddress(::prost::alloc::string::String),
            /// / The Port reserve pubkey. A full list can be found here: <https://api-v1.port.finance/reserves>
            #[prost(string, tag = "8")]
            PortReserveAddress(::prost::alloc::string::String),
        }
    }
    /// / Find a pattern within a string of a previous task and extract a group number.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct RegexExtractTask {
        /// / Regex pattern to find.
        #[prost(string, optional, tag = "1")]
        pub pattern: ::core::option::Option<::prost::alloc::string::String>,
        /// / Group number to extract.
        #[prost(int32, optional, tag = "2")]
        pub group_number: ::core::option::Option<i32>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct XStepPriceTask {
        #[prost(oneof = "x_step_price_task::StepSource", tags = "1, 2")]
        pub step_source: ::core::option::Option<x_step_price_task::StepSource>,
    }
    /// Nested message and enum types in `XStepPriceTask`.
    pub mod x_step_price_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum StepSource {
            /// / median task containing the job definitions to fetch the STEP/USD price
            #[prost(message, tag = "1")]
            StepJob(super::MedianTask),
            /// / existing aggregator pubkey for STEP/USD
            #[prost(string, tag = "2")]
            StepAggregatorPubkey(::prost::alloc::string::String),
        }
    }
    /// Takes a twap over a set period for a certain aggregator. Aggregators have an optional history buffer account storing the last N accepted results. The TwapTask will iterate over an aggregators history buffer and calculate the time weighted average of the samples within a given time period.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The time weighted average of an aggregator over a given time period.
    ///
    /// ***Example***: The 1hr Twap of the SOL/USD Aggregator, requiring at least 60 samples.
    ///
    /// ```text,json
    /// { "twapTask": { "aggregatorPubkey": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR", "period": 3600, "minSamples": 60, "weightByPropagationTime": true  } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TwapTask {
        /// / The target aggregator for the TWAP.
        #[prost(string, optional, tag = "1")]
        pub aggregator_pubkey: ::core::option::Option<::prost::alloc::string::String>,
        /// / Period, in seconds, the twap should account for
        #[prost(int32, optional, tag = "2")]
        pub period: ::core::option::Option<i32>,
        /// / Weight samples by their propagation time
        #[prost(bool, optional, tag = "3")]
        pub weight_by_propagation_time: ::core::option::Option<bool>,
        /// / Minimum number of samples in the history to calculate a valid result
        #[prost(uint32, optional, tag = "4")]
        pub min_samples: ::core::option::Option<u32>,
        /// / Ending unix timestamp to collect values up to
        #[prost(int32, optional, tag = "5")]
        pub ending_unix_timestamp: ::core::option::Option<i32>,
        /// / Execute the task to get the ending unix timestamp
        #[prost(message, optional, tag = "6")]
        pub ending_unix_timestamp_task: ::core::option::Option<CronParseTask>,
    }
    /// / Fetch the latest swap price on Serum's orderbook
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SerumSwapTask {
        /// / The serum pool to fetch swap price for
        #[prost(string, optional, tag = "1")]
        pub serum_pool_address: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Round the current running result to an exponential power.
    ///
    /// ***Input***: The current running numerical result.
    ///
    /// ***Returns***: The input raised to an exponential power.
    ///
    /// ***Example***: Raise 2 to the power of 3, 2^3
    ///
    /// ```text,json
    /// {"tasks":\[{"valueTask":{"value":2}},{"powTask":{"scalar":3}}\]}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct PowTask {
        #[prost(oneof = "pow_task::Exponent", tags = "1, 2, 3")]
        pub exponent: ::core::option::Option<pow_task::Exponent>,
    }
    /// Nested message and enum types in `PowTask`.
    pub mod pow_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Exponent {
            /// / Take the working value to the exponent of value.
            #[prost(double, tag = "1")]
            Scalar(f64),
            /// / Take the working value to the exponent of the aggregators value.
            #[prost(string, tag = "2")]
            AggregatorPubkey(::prost::alloc::string::String),
            /// / A stringified big.js. `Accepts variable expansion syntax.`
            #[prost(string, tag = "3")]
            Big(::prost::alloc::string::String),
        }
    }
    /// / Fetch the lending rates for various Solana protocols
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LendingRateTask {
        /// / 01, apricot, francium, jet, larix, mango, port, solend, tulip
        #[prost(string, optional, tag = "1")]
        pub protocol: ::core::option::Option<::prost::alloc::string::String>,
        /// / A token mint address supported by the chosen protocol
        #[prost(string, optional, tag = "2")]
        pub asset_mint: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(enumeration = "lending_rate_task::Field", optional, tag = "3")]
        pub field: ::core::option::Option<i32>,
    }
    /// Nested message and enum types in `LendingRateTask`.
    pub mod lending_rate_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Field {
            /// / deposit lending rate
            DepositRate = 0,
            /// / borrow lending rate
            BorrowRate = 1,
        }
        impl Field {
            /// 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 {
                    Field::DepositRate => "FIELD_DEPOSIT_RATE",
                    Field::BorrowRate => "FIELD_BORROW_RATE",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "FIELD_DEPOSIT_RATE" => Some(Self::DepositRate),
                    "FIELD_BORROW_RATE" => Some(Self::BorrowRate),
                    _ => None,
                }
            }
        }
    }
    /// / Fetch the current price for a Mango perpetual market
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MangoPerpMarketTask {
        /// / Mainnet address for a mango perpetual market. A full list can be found here: <https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/ids.json>
        #[prost(string, optional, tag = "1")]
        pub perp_market_address: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Fetch the simulated price for a swap on JupiterSwap.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The swap price on Jupiter for a given input and output token mint address.
    ///
    /// ***Example***: Fetch the JupiterSwap price for exchanging 1 SOL into USDC.
    ///
    /// ```text,json
    /// { "jupiterSwapTask": { "inTokenAddress": "So11111111111111111111111111111111111111112", "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } }
    /// ```
    ///
    /// ***Example***: Fetch the JupiterSwap price for exchanging 1000 SOL into USDC.
    ///
    /// ```text,json
    /// { "jupiterSwapTask": { "inTokenAddress": "So11111111111111111111111111111111111111112", "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "baseAmount": "1000" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct JupiterSwapTask {
        /// / The input token address.
        #[prost(string, optional, tag = "1")]
        pub in_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The output token address.
        #[prost(string, optional, tag = "2")]
        pub out_token_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(oneof = "jupiter_swap_task::RoutesFilters", tags = "4, 5")]
        pub routes_filters: ::core::option::Option<jupiter_swap_task::RoutesFilters>,
        #[prost(oneof = "jupiter_swap_task::SwapAmount", tags = "3, 6, 7, 8")]
        pub swap_amount: ::core::option::Option<jupiter_swap_task::SwapAmount>,
    }
    /// Nested message and enum types in `JupiterSwapTask`.
    pub mod jupiter_swap_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct FilterList {
            /// / A list of Jupiter AMM labels to allow or deny (e.g. 'Raydium', 'Orca')
            #[prost(string, repeated, tag = "1")]
            pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum RoutesFilters {
            /// / A list of AMM markets to allow.
            #[prost(message, tag = "4")]
            AllowList(FilterList),
            /// / A list of AMM markets to deny.
            #[prost(message, tag = "5")]
            DenyList(FilterList),
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum SwapAmount {
            /// / The amount of `in_token_address` tokens to swap.
            #[prost(double, tag = "3")]
            BaseAmount(f64),
            /// / The amount of `out_token_address` tokens to swap.
            #[prost(double, tag = "6")]
            QuoteAmount(f64),
            /// / The amount of `in_token_address` tokens to swap.
            #[prost(string, tag = "7")]
            BaseAmountString(::prost::alloc::string::String),
            /// / The amount of `out_token_address` tokens to swap.
            #[prost(string, tag = "8")]
            QuoteAmountString(::prost::alloc::string::String),
        }
    }
    /// / Fetch the current price of a perpetual market.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct PerpMarketTask {
        #[prost(oneof = "perp_market_task::MarketAddress", tags = "1, 2, 3, 4")]
        pub market_address: ::core::option::Option<perp_market_task::MarketAddress>,
    }
    /// Nested message and enum types in `PerpMarketTask`.
    pub mod perp_market_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum MarketAddress {
            /// / Market address for a mango perpetual market. A full list can be found here: <https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/ids.json>
            #[prost(string, tag = "1")]
            MangoMarketAddress(::prost::alloc::string::String),
            /// / Market address for a drift perpetual market. A full list can be found here: <https://github.com/drift-labs/protocol-v1/blob/master/sdk/src/constants/markets.ts>
            #[prost(string, tag = "2")]
            DriftMarketAddress(::prost::alloc::string::String),
            /// / Market address for a zeta perpetual market.
            #[prost(string, tag = "3")]
            ZetaMarketAddress(::prost::alloc::string::String),
            /// / Market address for a 01 protocol perpetual market.
            #[prost(string, tag = "4")]
            ZoMarketAddress(::prost::alloc::string::String),
        }
    }
    /// Fetch the current price of a Solana oracle protocol.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The current price of an on-chain oracle.
    ///
    /// ***Example***: The Switchboard SOL/USD oracle price.
    ///
    /// ```text,json
    /// { "oracleTask": { "switchboardAddress": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR" } }
    /// ```
    ///
    /// ***Example***: The Pyth SOL/USD oracle price.
    ///
    /// ```text,json
    /// { "oracleTask": { "pythAddress": "H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG" } }
    /// ```
    ///
    /// ***Example***: The Chainlink SOL/USD oracle price.
    ///
    /// ```text,json
    /// { "oracleTask": { "chainlinkAddress": "CcPVS9bqyXbD9cLnTbhhHazLsrua8QMFUHTutPtjyDzq" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct OracleTask {
        /// / Value (as a percentage) that the lower bound confidence interval is of the actual value.
        /// / Confidence intervals that are larger that this treshold are rejected.
        #[prost(double, optional, tag = "4")]
        pub pyth_allowed_confidence_interval: ::core::option::Option<f64>,
        #[prost(oneof = "oracle_task::AggregatorAddress", tags = "1, 2, 3")]
        pub aggregator_address: ::core::option::Option<oracle_task::AggregatorAddress>,
    }
    /// Nested message and enum types in `OracleTask`.
    pub mod oracle_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum AggregatorAddress {
            /// / Mainnet address of a Switchboard V2 feed. Switchboard is decentralized and allows anyone to build their own feed. A small subset of feeds is available here: <https://switchboard.xyz/explorer>
            #[prost(string, tag = "1")]
            SwitchboardAddress(::prost::alloc::string::String),
            /// / Mainnet address for a Pyth feed. A full list can be found here: <https://pyth.network/price-feeds/>
            #[prost(string, tag = "2")]
            PythAddress(::prost::alloc::string::String),
            /// / Mainnet address for a Chainlink feed. A full list can be found here: <https://docs.chain.link/docs/solana/data-feeds-solana>
            #[prost(string, tag = "3")]
            ChainlinkAddress(::prost::alloc::string::String),
        }
    }
    /// / Load a parse an Anchor based solana account.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AnchorFetchTask {
        /// / Owning program of the account to parse.
        #[prost(string, optional, tag = "1")]
        pub program_id: ::core::option::Option<::prost::alloc::string::String>,
        /// / The account to parse.
        #[prost(string, optional, tag = "2")]
        pub account_address: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// / Fetch the current transactions per second.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TpsTask {}
    /// / Fetch the JSON representation of an SPL Stake Pool account.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SplStakePoolTask {
        /// / The pubkey of the SPL Stake Pool.
        #[prost(string, optional, tag = "1")]
        pub pubkey: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// / Fetch the JSON representation of an SPL token mint.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SplTokenParseTask {
        #[prost(oneof = "spl_token_parse_task::AccountAddress", tags = "1, 2")]
        pub account_address: ::core::option::Option<spl_token_parse_task::AccountAddress>,
    }
    /// Nested message and enum types in `SplTokenParseTask`.
    pub mod spl_token_parse_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum AccountAddress {
            /// / The publicKey of a token account to fetch the mintInfo for.
            #[prost(string, tag = "1")]
            TokenAccountAddress(::prost::alloc::string::String),
            /// / The publicKey of the token mint address.
            #[prost(string, tag = "2")]
            MintAddress(::prost::alloc::string::String),
        }
    }
    /// / Fetch the swap price from DefiKingdoms.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct DefiKingdomsTask {
        /// / The RPC provider to use for the swap.
        #[prost(string, optional, tag = "1")]
        pub provider: ::core::option::Option<::prost::alloc::string::String>,
        /// / The input token of the swap.
        #[prost(message, optional, tag = "2")]
        pub in_token: ::core::option::Option<defi_kingdoms_task::Token>,
        /// / The output token of the swap.
        #[prost(message, optional, tag = "3")]
        pub out_token: ::core::option::Option<defi_kingdoms_task::Token>,
    }
    /// Nested message and enum types in `DefiKingdomsTask`.
    pub mod defi_kingdoms_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Token {
            /// / The address of the token.
            #[prost(string, optional, tag = "1")]
            pub address: ::core::option::Option<::prost::alloc::string::String>,
            /// / The number of decimal places for a token.
            #[prost(int32, optional, tag = "2")]
            pub decimals: ::core::option::Option<i32>,
        }
    }
    /// / Fetch the swap price from UniSwap.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct UniswapExchangeRateTask {
        /// / The input token address.
        #[prost(string, optional, tag = "1")]
        pub in_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The output token address.
        #[prost(string, optional, tag = "2")]
        pub out_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The amount of tokens to swap.
        #[prost(double, optional, tag = "3")]
        pub in_token_amount: ::core::option::Option<f64>,
        /// / The allowable slippage in percent for the swap.
        #[prost(double, optional, tag = "4")]
        pub slippage: ::core::option::Option<f64>,
        /// / The RPC provider to use for the swap.
        #[prost(string, optional, tag = "5")]
        pub provider: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// / Fetch the swap price from SushiSwap.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SushiswapExchangeRateTask {
        /// / The input token address.
        #[prost(string, optional, tag = "1")]
        pub in_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The output token address.
        #[prost(string, optional, tag = "2")]
        pub out_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The amount of tokens to swap.
        #[prost(double, optional, tag = "3")]
        pub in_token_amount: ::core::option::Option<f64>,
        /// / The allowable slippage in percent for the swap.
        #[prost(double, optional, tag = "4")]
        pub slippage: ::core::option::Option<f64>,
        /// / The RPC provider to use for the swap.
        #[prost(string, optional, tag = "5")]
        pub provider: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// / Fetch the swap price from PancakeSwap.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct PancakeswapExchangeRateTask {
        /// / The input token address.
        #[prost(string, optional, tag = "1")]
        pub in_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The output token address.
        #[prost(string, optional, tag = "2")]
        pub out_token_address: ::core::option::Option<::prost::alloc::string::String>,
        /// / The amount of tokens to swap.
        #[prost(double, optional, tag = "3")]
        pub in_token_amount: ::core::option::Option<f64>,
        /// / The allowable slippage in percent for the swap.
        #[prost(double, optional, tag = "4")]
        pub slippage: ::core::option::Option<f64>,
        /// / The RPC provider to use for the swap.
        #[prost(string, optional, tag = "5")]
        pub provider: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Execute a job and store the result in a variable to reference later.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: The input
    ///
    /// ***Example***: CacheTask storing ${ONE} = 1
    ///
    /// ```text,json
    /// { "cacheTask": { "cacheItems": [ { "variableName": "ONE", "job": { "tasks": [ { "valueTask": { "value": 1 } } ] } } ] } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct CacheTask {
        /// / A list of cached variables to reference in the job with `${VARIABLE_NAME}`.
        #[prost(message, repeated, tag = "1")]
        pub cache_items: ::prost::alloc::vec::Vec<cache_task::CacheItem>,
    }
    /// Nested message and enum types in `CacheTask`.
    pub mod cache_task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct CacheItem {
            /// / The name of the variable to store in cache to reference later with `${VARIABLE_NAME}`.
            #[prost(string, optional, tag = "1")]
            pub variable_name: ::core::option::Option<::prost::alloc::string::String>,
            /// / The OracleJob to execute to yield the value to store in cache.
            #[prost(message, optional, tag = "2")]
            pub job: ::core::option::Option<super::super::OracleJob>,
        }
    }
    /// / Return the difference between an oracle's clock and the current timestamp at `SYSVAR_CLOCK_PUBKEY`.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SysclockOffsetTask {}
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MarinadeStateTask {}
    /// / Fetch the account data in a stringified buffer format.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SolanaAccountDataFetchTask {
        /// / The on-chain account to fetch the account data from.
        #[prost(string, optional, tag = "1")]
        pub pubkey: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Return a timestamp from a crontab instruction.
    ///
    /// ***Input***: None
    ///
    /// ***Returns***: A timestamp
    ///
    /// ***Example***: Return the unix timestamp for the on-chain SYSCLOCK
    ///
    /// ```text,json
    /// {"cronParseTask":{"cronPattern":"* * * * * *","clockOffset":0,"clock":"SYSCLOCK"}}
    /// ```
    ///
    /// ***Example***: Return the unix timestamp for next friday at 5pm UTC
    ///
    /// ```text,json
    /// {"cronParseTask":{"cronPattern":"0 17 * * 5","clockOffset":0,"clock":0}}
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct CronParseTask {
        /// / The cron pattern to parse.
        #[prost(string, optional, tag = "1")]
        pub cron_pattern: ::core::option::Option<::prost::alloc::string::String>,
        /// / The timestamp offset to calculate the next run.
        #[prost(int32, optional, tag = "2")]
        pub clock_offset: ::core::option::Option<i32>,
        /// / Use the TaskRunner's clock or the on-chain SYSCLOCK.
        #[prost(enumeration = "cron_parse_task::ClockType", optional, tag = "3")]
        pub clock: ::core::option::Option<i32>,
    }
    /// Nested message and enum types in `CronParseTask`.
    pub mod cron_parse_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum ClockType {
            /// / Use the TaskRunners system clock for the current time.
            Oracle = 0,
            /// / Use the on-chain SYSCLOCK for the current time.
            Sysclock = 1,
        }
        impl ClockType {
            /// 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 {
                    ClockType::Oracle => "ORACLE",
                    ClockType::Sysclock => "SYSCLOCK",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "ORACLE" => Some(Self::Oracle),
                    "SYSCLOCK" => Some(Self::Sysclock),
                    _ => None,
                }
            }
        }
    }
    /// / Return the deserialized value from a stringified buffer.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct BufferLayoutParseTask {
        /// / The buffer offset to start deserializing from.
        #[prost(uint32, optional, tag = "1")]
        pub offset: ::core::option::Option<u32>,
        /// / The endianness of the stored value.
        #[prost(enumeration = "buffer_layout_parse_task::Endian", optional, tag = "2")]
        pub endian: ::core::option::Option<i32>,
        /// / The type of value to deserialize.
        #[prost(
            enumeration = "buffer_layout_parse_task::BufferParseType",
            optional,
            tag = "3"
        )]
        pub r#type: ::core::option::Option<i32>,
    }
    /// Nested message and enum types in `BufferLayoutParseTask`.
    pub mod buffer_layout_parse_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Endian {
            /// Use little endian byte order.
            LittleEndian = 0,
            /// Use big endian byte order.
            BigEndian = 1,
        }
        impl Endian {
            /// 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 {
                    Endian::LittleEndian => "LITTLE_ENDIAN",
                    Endian::BigEndian => "BIG_ENDIAN",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "LITTLE_ENDIAN" => Some(Self::LittleEndian),
                    "BIG_ENDIAN" => Some(Self::BigEndian),
                    _ => None,
                }
            }
        }
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum BufferParseType {
            /// / A public key.
            Pubkey = 1,
            /// / A boolean.
            Bool = 2,
            /// / An 8-bit unsigned value.
            U8 = 3,
            /// / An 8-bit signed value.
            I8 = 4,
            /// / A 16-bit unsigned value.
            U16 = 5,
            /// / A 16-bit signed value.
            I16 = 6,
            /// / A 32-bit unsigned value.
            U32 = 7,
            /// / A 32-bit signed value.
            I32 = 8,
            /// / A 32-bit IEEE floating point value.
            F32 = 9,
            /// / A 64-bit unsigned value.
            U64 = 10,
            /// / A 64-bit signed value.
            I64 = 11,
            /// / A 64-bit IEEE floating point value.
            F64 = 12,
            /// / A 128-bit unsigned value.
            U128 = 13,
            /// / A 128-bit signed value.
            I128 = 14,
        }
        impl BufferParseType {
            /// 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 {
                    BufferParseType::Pubkey => "pubkey",
                    BufferParseType::Bool => "bool",
                    BufferParseType::U8 => "u8",
                    BufferParseType::I8 => "i8",
                    BufferParseType::U16 => "u16",
                    BufferParseType::I16 => "i16",
                    BufferParseType::U32 => "u32",
                    BufferParseType::I32 => "i32",
                    BufferParseType::F32 => "f32",
                    BufferParseType::U64 => "u64",
                    BufferParseType::I64 => "i64",
                    BufferParseType::F64 => "f64",
                    BufferParseType::U128 => "u128",
                    BufferParseType::I128 => "i128",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "pubkey" => Some(Self::Pubkey),
                    "bool" => Some(Self::Bool),
                    "u8" => Some(Self::U8),
                    "i8" => Some(Self::I8),
                    "u16" => Some(Self::U16),
                    "i16" => Some(Self::I16),
                    "u32" => Some(Self::U32),
                    "i32" => Some(Self::I32),
                    "f32" => Some(Self::F32),
                    "u64" => Some(Self::U64),
                    "i64" => Some(Self::I64),
                    "f64" => Some(Self::F64),
                    "u128" => Some(Self::U128),
                    "i128" => Some(Self::I128),
                    _ => None,
                }
            }
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct HistoryFunctionTask {
        #[prost(enumeration = "history_function_task::Method", optional, tag = "1")]
        pub method: ::core::option::Option<i32>,
        #[prost(string, optional, tag = "2")]
        pub aggregator_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(uint32, optional, tag = "3")]
        pub period: ::core::option::Option<u32>,
    }
    /// Nested message and enum types in `HistoryFunctionTask`.
    pub mod history_function_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Method {
            Min = 0,
            Max = 1,
        }
        impl Method {
            /// 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 {
                    Method::Min => "METHOD_MIN",
                    Method::Max => "METHOD_MAX",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "METHOD_MIN" => Some(Self::Min),
                    "METHOD_MAX" => Some(Self::Max),
                    _ => None,
                }
            }
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct VwapTask {
        #[prost(string, optional, tag = "1")]
        pub price_aggregator_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(string, optional, tag = "2")]
        pub volume_aggregator_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(uint32, optional, tag = "3")]
        pub period: ::core::option::Option<u32>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct EwmaTask {
        #[prost(string, optional, tag = "1")]
        pub aggregator_address: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(int32, optional, tag = "2")]
        pub period: ::core::option::Option<i32>,
        #[prost(double, optional, tag = "3")]
        pub lambda: ::core::option::Option<f64>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ComparisonTask {
        /// / The type of operator to use on the left (lhs) and right (rhs) operand.
        #[prost(enumeration = "comparison_task::Operation", optional, tag = "1")]
        pub op: ::core::option::Option<i32>,
        /// / The OracleJob to execute if the condition evaluates to true.
        #[prost(message, optional, tag = "6")]
        pub on_true: ::core::option::Option<super::OracleJob>,
        /// / The result to use if the condition evaluates to true. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "7")]
        pub on_true_value: ::core::option::Option<::prost::alloc::string::String>,
        /// / The OracleJob to execute if the condition evaluates to false.
        #[prost(message, optional, tag = "8")]
        pub on_false: ::core::option::Option<super::OracleJob>,
        /// / The result to use if the condition evaluates to false. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "9")]
        pub on_false_value: ::core::option::Option<::prost::alloc::string::String>,
        /// / The OracleJob to execute if the condition fails to evaluate.
        #[prost(message, optional, tag = "10")]
        pub on_failure: ::core::option::Option<super::OracleJob>,
        /// / The result to use if the condition fails to evaluate. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "11")]
        pub on_failure_value: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(oneof = "comparison_task::Lhs", tags = "2, 3")]
        pub lhs: ::core::option::Option<comparison_task::Lhs>,
        #[prost(oneof = "comparison_task::Rhs", tags = "4, 5")]
        pub rhs: ::core::option::Option<comparison_task::Rhs>,
    }
    /// Nested message and enum types in `ComparisonTask`.
    pub mod comparison_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Operation {
            /// / Use the equals to '==' operator.
            Eq = 0,
            /// / Use the greater than '>' operator.
            Gt = 1,
            /// / Use the less than '\<' operator.
            Lt = 2,
        }
        impl Operation {
            /// 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 {
                    Operation::Eq => "OPERATION_EQ",
                    Operation::Gt => "OPERATION_GT",
                    Operation::Lt => "OPERATION_LT",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "OPERATION_EQ" => Some(Self::Eq),
                    "OPERATION_GT" => Some(Self::Gt),
                    "OPERATION_LT" => Some(Self::Lt),
                    _ => None,
                }
            }
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Lhs {
            /// / OracleJob where the executed result is equal to the left hand side operand.
            #[prost(message, tag = "2")]
            Lhs(super::super::OracleJob),
            /// / String or `${CACHE_KEY}` representing the left hand side operand.
            #[prost(string, tag = "3")]
            LhsValue(::prost::alloc::string::String),
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Rhs {
            /// / OracleJob where the executed result is equal to the right hand side operand.
            #[prost(message, tag = "4")]
            Rhs(super::super::OracleJob),
            /// / String or `${CACHE_KEY}` representing the right hand side operand.
            #[prost(string, tag = "5")]
            RhsValue(::prost::alloc::string::String),
        }
    }
    /// Round the current running result to a set number of decimal places.
    ///
    /// ***Input***: The current running numerical result.
    ///
    /// ***Returns***: The running result rounded to a set number of decimal places.
    ///
    /// ***Example***: Round down the running resul to 8 decimal places
    ///
    /// ```text,json
    /// { "roundTask": { "method": "METHOD_ROUND_DOWN", "decimals": 8 } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct RoundTask {
        /// / The rounding method to use.
        #[prost(enumeration = "round_task::Method", optional, tag = "1")]
        pub method: ::core::option::Option<i32>,
        /// / The number of decimals to round to.
        #[prost(int32, optional, tag = "2")]
        pub decimals: ::core::option::Option<i32>,
    }
    /// Nested message and enum types in `RoundTask`.
    pub mod round_task {
        #[derive(
            Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
        )]
        #[repr(i32)]
        pub enum Method {
            /// / Round the result down.
            RoundUp = 0,
            /// / Round the result up.
            RoundDown = 1,
        }
        impl Method {
            /// 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 {
                    Method::RoundUp => "METHOD_ROUND_UP",
                    Method::RoundDown => "METHOD_ROUND_DOWN",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "METHOD_ROUND_UP" => Some(Self::RoundUp),
                    "METHOD_ROUND_DOWN" => Some(Self::RoundDown),
                    _ => None,
                }
            }
        }
    }
    /// Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
    ///
    /// ***Input***: The current running numerical result.
    ///
    /// ***Returns***: The running result bounded to an upper or lower bound if it exceeds a given threshold.
    ///
    /// ***Example***: Bound the running result to a value between 0.90 and 1.10
    ///
    /// ```text,json
    /// { "boundTask": { "lowerBoundValue": "0.90","onExceedsLowerBoundValue": "0.90","upperBoundValue": "1.10","onExceedsUpperBoundValue": "1.10" } }
    /// ```
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct BoundTask {
        /// / The OracleJob to execute for the lower bound value.
        #[prost(message, optional, tag = "1")]
        pub lower_bound: ::core::option::Option<super::OracleJob>,
        /// / The value to use for the lower bound. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "2")]
        pub lower_bound_value: ::core::option::Option<::prost::alloc::string::String>,
        /// / The OracleJob to execute for the upper bound value.
        #[prost(message, optional, tag = "3")]
        pub upper_bound: ::core::option::Option<super::OracleJob>,
        /// / The value to use for the upper bound. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "4")]
        pub upper_bound_value: ::core::option::Option<::prost::alloc::string::String>,
        /// / The OracleJob to execute if the upper bound is exceeded.
        #[prost(message, optional, tag = "5")]
        pub on_exceeds_upper_bound: ::core::option::Option<super::OracleJob>,
        /// / The value to use if the upper bound is exceeded. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "6")]
        pub on_exceeds_upper_bound_value: ::core::option::Option<::prost::alloc::string::String>,
        /// / The OracleJob to execute if the lower bound is exceeded.
        #[prost(message, optional, tag = "7")]
        pub on_exceeds_lower_bound: ::core::option::Option<super::OracleJob>,
        /// / The value to use if the lower bound is exceeded. Can be set to a `${CACHE_KEY}`.
        #[prost(string, optional, tag = "8")]
        pub on_exceeds_lower_bound_value: ::core::option::Option<::prost::alloc::string::String>,
    }
    /// Represents a singular operation performed by an oracle to yield an eventual numerical result.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Task {
        #[prost(
            oneof = "task::Task",
            tags = "1, 2, 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"
        )]
        pub task: ::core::option::Option<task::Task>,
    }
    /// Nested message and enum types in `Task`.
    pub mod task {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Task {
            /// The adapter will report the text body of a successful HTTP request to the
            /// specified url, or return an error if the response status code is greater
            /// than or equal to 400.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: String representation of the http response.
            ///
            /// ***Example***: Basic HttpTask
            ///
            /// ```text,json
            /// {"httpTask": {"url": "<https://mywebsite.org/path"}> }
            /// ```
            ///
            /// ***Example***: HttpTask example with headers
            ///
            /// ```text,json
            /// { "httpTask": { "url": "<https://mywebsite.org/path",> "method": "METHOD_POST", "headers": [ { "key": "MY_HEADER_KEY", "value": "MY_HEADER_VALUE" } ], "body": "{\"MY_BODY_KEY\":\"MY_BODY_VALUE\"}" } }
            /// ```
            #[prost(message, tag = "1")]
            HttpTask(super::HttpTask),
            /// The adapter walks the path specified and returns the value found at that result. If returning
            /// JSON data from the HttpGet or HttpPost adapters, you must use this adapter to parse the response.
            ///
            /// ***Input***: String representation of a JSON object.
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Parses the price field from a JSON object
            ///
            /// ```text,json
            /// {"jsonParse": {"path": "$.price"} }
            /// ```
            #[prost(message, tag = "2")]
            JsonParseTask(super::JsonParseTask),
            /// Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the median numerical result of 3 tasks.
            ///
            /// ```text,json
            /// {"medianTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
            /// ```
            ///
            /// ***Example***: Returns the median numerical result of 3 jobs.
            ///
            /// ```text,json
            /// {"medianTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
            /// ```
            #[prost(message, tag = "4")]
            MedianTask(super::MedianTask),
            /// Returns the mean (average) of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the mean numerical result of 3 tasks.
            ///
            /// ```text,json
            /// {"meanTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
            /// ```
            ///
            /// ***Example***: Returns the mean numerical result of 3 jobs.
            ///
            /// ```text,json
            /// {"meanTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
            /// ```
            #[prost(message, tag = "5")]
            MeanTask(super::MeanTask),
            /// Opens and maintains a websocket for light speed data retrieval.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: String representation of the websocket subscription message.
            ///
            /// ***Example***: Opens a coinbase websocket
            ///
            /// ```text,json
            /// { "websocketTask": { "url": "wss://ws-feed.pro.coinbase.com", "subscription": "{\"type\":\"subscribe\",\"product_ids\":\[\"BTC-USD\"],\"channels\":[\"ticker\",{\"name\":\"ticker\",\"product_ids\":[\"BTC-USD\"]}\]}", "maxDataAgeSeconds": 15, "filter": "$[?(@.type == 'ticker' && @.product_id == 'BTC-USD')]" } }
            /// ```
            #[prost(message, tag = "6")]
            WebsocketTask(super::WebsocketTask),
            /// This task will divide a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
            ///
            /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the numerical result by dividing by a job of subtasks.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"divideTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by dividing by an aggregator.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"divideTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by dividing by a big.
            ///
            /// ```text,json
            /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"divideTask":{"big":"${TEN}"}}\]}
            /// ```
            #[prost(message, tag = "7")]
            DivideTask(super::DivideTask),
            /// This task will multiply a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
            ///
            /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the numerical result by multiplying by a job of subtasks.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"multiplyTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by an aggregator.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"multiplyTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by a big.
            ///
            /// ```text,json
            /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"multiplyTask":{"big":"${TEN}"}}\]}
            /// ```
            #[prost(message, tag = "8")]
            MultiplyTask(super::MultiplyTask),
            /// Fetch LP token price info from a number of supported exchanges.
            ///
            /// See our blog post on [Fair LP Token Oracles](/blog/2022/01/20/Fair-LP-Token-Oracles)
            ///
            /// *NOTE*\*: This is not the swap price but the price of the underlying LP token.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The price of an LP token for a given AMM pool.
            ///
            /// ***Example***: Fetch the Orca LP token price of the SOL/USDC pool
            ///
            /// ```text,json
            /// { "lpTokenPriceTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9" } }
            /// ```
            ///
            /// ***Example***: Fetch the fair price Orca LP token price of the SOL/USDC pool
            ///
            /// ```text,json
            /// { "lpTokenPriceTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9", "useFairPrice": true, "priceFeedAddresses": [ "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR", "BjUgj6YCnFBZ49wF54ddBVA9qu8TeqkFtkbqmZcee8uW" ] } }
            /// ```
            ///
            /// ***Example***: Fetch the fair price Raydium LP token price of the SOL/USDC pool
            ///
            /// ```text,json
            /// { "lpTokenPriceTask": { "raydiumPoolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2", "useFairPrice": true,"priceFeedAddresses": ["GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR","BjUgj6YCnFBZ49wF54ddBVA9qu8TeqkFtkbqmZcee8uW" ] } }
            /// ```
            #[prost(message, tag = "9")]
            LpTokenPriceTask(super::LpTokenPriceTask),
            /// Fetch the current swap price for a given liquidity pool
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The swap price for a given AMM pool.
            ///
            /// ***Example***: Fetch the exchange rate from the Orca SOL/USDC pool
            ///
            /// ```text,json
            /// { "lpExchangeRateTask": { "orcaPoolAddress": "APDFRM3HMr8CAGXwKHiu2f5ePSpaiEJhaURwhsRrUUt9" } }
            /// ```
            ///
            /// ***Example***: Fetch the exchange rate from the Raydium SOL/USDC pool
            ///
            /// ```text,json
            /// { "lpExchangeRateTask": { "raydiumPoolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2" } }
            /// ```
            #[prost(message, tag = "10")]
            LpExchangeRateTask(super::LpExchangeRateTask),
            /// This task will run the `attempt` on the subtasks in an effort to produce a valid numerical result. If `attempt`. fails to produce an acceptable result, `on_failure` subtasks will be run instead.
            ///
            /// ***Input***: The current running numerical result output from a task.
            ///
            /// ***Returns***: A numerical result, else run `on_failure` subtasks.
            ///
            /// ***Example***: Returns the numerical result from the conditionalTask's subtasks, else `on_failure` returns the numerical result from its subtasks.
            ///
            /// ```text,json
            /// {"conditionalTask":{"attempt":\[{"tasks":[{"jupiterSwapTask":{"inTokenAddress":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","outTokenAddress":"DUALa4FC2yREwZ59PHeu1un4wis36vHRv5hWVBmzykCJ"}}]}],"onFailure":[{"lpExchangeRateTask":{"orcaPoolAddress":"7yJ4gMRJhEoCR48aPE3EAWRmCoygakik81ZS1sajaTnE"}}\]}}
            /// ```
            #[prost(message, tag = "11")]
            ConditionalTask(super::ConditionalTask),
            /// Returns a specified value.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the value 10
            ///
            /// ```text,json
            /// {"valueTask": {"value": 10} }
            /// ```
            ///
            /// ***Example***: Returns the currentRound result of an aggregator
            ///
            /// ```text,json
            /// {"valueTask": {"aggregatorPubkey": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"} }
            /// ```
            ///
            /// ***Example***: Returns the value stored in a CacheTask variable
            ///
            /// ```text,json
            /// {"valueTask": {"big": "${ONE}"} }
            /// ```
            #[prost(message, tag = "12")]
            ValueTask(super::ValueTask),
            /// Returns the maximum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the maximum numerical result from 3 tasks.
            ///
            /// ```text,json
            /// {"maxTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
            /// ```
            ///
            /// ***Example***: Returns the minimum numerical result from 3 jobs.
            ///
            /// ```text,json
            /// {"maxTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
            /// ```
            #[prost(message, tag = "13")]
            MaxTask(super::MaxTask),
            #[prost(message, tag = "14")]
            RegexExtractTask(super::RegexExtractTask),
            #[prost(message, tag = "15")]
            XstepPriceTask(super::XStepPriceTask),
            /// This task will add a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
            ///
            /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the numerical result by adding by a job of subtasks.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"addTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by an aggregator.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"addTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by a big.
            ///
            /// ```text,json
            /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"addTask":{"big":"${TEN}"}}\]}
            /// ```
            #[prost(message, tag = "16")]
            AddTask(super::AddTask),
            /// This task will subtract a numerical input by a scalar value from a job of subtasks, an aggregator, or a big.
            ///
            /// ***Input***: The current running numerical result output from a scalar value, an aggregator, a job of subtasks or a big.
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the numerical result by subtracting by a job of subtasks.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"subtractTask":{"job":{"tasks":[{"valueTask":{"value":10}}]}}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by an aggregator.
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":100}},{"subtractTask":{"aggregatorPubkey":"GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR"}}\]}
            /// ```
            ///
            /// ***Example***: Returns the numerical result by multiplying by a big.
            ///
            /// ```text,json
            /// {"tasks":\[{"cacheTask":{"cacheItems":[{"variableName":"TEN","job":{"tasks":[{"valueTask":{"value":10}}]}}]}},{"valueTask":{"value":100}},{"subtractTask":{"big":"${TEN}"}}\]}
            /// ```
            #[prost(message, tag = "17")]
            SubtractTask(super::SubtractTask),
            /// Takes a twap over a set period for a certain aggregator. Aggregators have an optional history buffer account storing the last N accepted results. The TwapTask will iterate over an aggregators history buffer and calculate the time weighted average of the samples within a given time period.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The time weighted average of an aggregator over a given time period.
            ///
            /// ***Example***: The 1hr Twap of the SOL/USD Aggregator, requiring at least 60 samples.
            ///
            /// ```text,json
            /// { "twapTask": { "aggregatorPubkey": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR", "period": 3600, "minSamples": 60, "weightByPropagationTime": true  } }
            /// ```
            #[prost(message, tag = "18")]
            TwapTask(super::TwapTask),
            #[prost(message, tag = "19")]
            SerumSwapTask(super::SerumSwapTask),
            /// Round the current running result to an exponential power.
            ///
            /// ***Input***: The current running numerical result.
            ///
            /// ***Returns***: The input raised to an exponential power.
            ///
            /// ***Example***: Raise 2 to the power of 3, 2^3
            ///
            /// ```text,json
            /// {"tasks":\[{"valueTask":{"value":2}},{"powTask":{"scalar":3}}\]}
            /// ```
            #[prost(message, tag = "20")]
            PowTask(super::PowTask),
            #[prost(message, tag = "21")]
            LendingRateTask(super::LendingRateTask),
            #[prost(message, tag = "22")]
            MangoPerpMarketTask(super::MangoPerpMarketTask),
            /// Fetch the simulated price for a swap on JupiterSwap.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The swap price on Jupiter for a given input and output token mint address.
            ///
            /// ***Example***: Fetch the JupiterSwap price for exchanging 1 SOL into USDC.
            ///
            /// ```text,json
            /// { "jupiterSwapTask": { "inTokenAddress": "So11111111111111111111111111111111111111112", "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } }
            /// ```
            ///
            /// ***Example***: Fetch the JupiterSwap price for exchanging 1000 SOL into USDC.
            ///
            /// ```text,json
            /// { "jupiterSwapTask": { "inTokenAddress": "So11111111111111111111111111111111111111112", "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "baseAmount": "1000" } }
            /// ```
            #[prost(message, tag = "23")]
            JupiterSwapTask(super::JupiterSwapTask),
            #[prost(message, tag = "24")]
            PerpMarketTask(super::PerpMarketTask),
            /// Fetch the current price of a Solana oracle protocol.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The current price of an on-chain oracle.
            ///
            /// ***Example***: The Switchboard SOL/USD oracle price.
            ///
            /// ```text,json
            /// { "oracleTask": { "switchboardAddress": "GvDMxPzN1sCj7L26YDK2HnMRXEQmQ2aemov8YBtPS7vR" } }
            /// ```
            ///
            /// ***Example***: The Pyth SOL/USD oracle price.
            ///
            /// ```text,json
            /// { "oracleTask": { "pythAddress": "H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG" } }
            /// ```
            ///
            /// ***Example***: The Chainlink SOL/USD oracle price.
            ///
            /// ```text,json
            /// { "oracleTask": { "chainlinkAddress": "CcPVS9bqyXbD9cLnTbhhHazLsrua8QMFUHTutPtjyDzq" } }
            /// ```
            #[prost(message, tag = "25")]
            OracleTask(super::OracleTask),
            #[prost(message, tag = "26")]
            AnchorFetchTask(super::AnchorFetchTask),
            #[prost(message, tag = "27")]
            DefiKingdomsTask(super::DefiKingdomsTask),
            #[prost(message, tag = "28")]
            TpsTask(super::TpsTask),
            #[prost(message, tag = "29")]
            SplStakePoolTask(super::SplStakePoolTask),
            #[prost(message, tag = "30")]
            SplTokenParseTask(super::SplTokenParseTask),
            #[prost(message, tag = "31")]
            UniswapExchangeRateTask(super::UniswapExchangeRateTask),
            #[prost(message, tag = "32")]
            SushiswapExchangeRateTask(super::SushiswapExchangeRateTask),
            #[prost(message, tag = "33")]
            PancakeswapExchangeRateTask(super::PancakeswapExchangeRateTask),
            /// Execute a job and store the result in a variable to reference later.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: The input
            ///
            /// ***Example***: CacheTask storing ${ONE} = 1
            ///
            /// ```text,json
            /// { "cacheTask": { "cacheItems": [ { "variableName": "ONE", "job": { "tasks": [ { "valueTask": { "value": 1 } } ] } } ] } }
            /// ```
            #[prost(message, tag = "34")]
            CacheTask(super::CacheTask),
            #[prost(message, tag = "35")]
            SysclockOffsetTask(super::SysclockOffsetTask),
            #[prost(message, tag = "36")]
            MarinadeStateTask(super::MarinadeStateTask),
            #[prost(message, tag = "37")]
            SolanaAccountDataFetchTask(super::SolanaAccountDataFetchTask),
            #[prost(message, tag = "38")]
            BufferLayoutParseTask(super::BufferLayoutParseTask),
            /// Return a timestamp from a crontab instruction.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A timestamp
            ///
            /// ***Example***: Return the unix timestamp for the on-chain SYSCLOCK
            ///
            /// ```text,json
            /// {"cronParseTask":{"cronPattern":"* * * * * *","clockOffset":0,"clock":"SYSCLOCK"}}
            /// ```
            ///
            /// ***Example***: Return the unix timestamp for next friday at 5pm UTC
            ///
            /// ```text,json
            /// {"cronParseTask":{"cronPattern":"0 17 * * 5","clockOffset":0,"clock":0}}
            /// ```
            #[prost(message, tag = "39")]
            CronParseTask(super::CronParseTask),
            /// Returns the minimum value of all the results returned by the provided subtasks and subjobs. Nested tasks or jobs must return a Number.
            ///
            /// ***Input***: None
            ///
            /// ***Returns***: A numerical result.
            ///
            /// ***Example***: Returns the minimum numerical result from 3 tasks.
            ///
            /// ```text,json
            /// {"minTask": {"tasks": [{"valueTask": {"value": 10}},{"valueTask": {"value": 20}},{"valueTask": {"value": 30}}]}}
            /// ```
            ///
            /// ***Example***: Returns the minimum numerical result from 3 jobs.
            ///
            /// ```text,json
            /// {"minTask": {"jobs": [{"tasks": [{"httpTask": {"url": "<https://www.binance.com/api/v3/ticker/price?symbol=SOLUSDT"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://www.binance.us/api/v3/ticker/price?symbol=SOLUSD"}},{"jsonParseTask":> {"path": "$.price"}}]},{"tasks": [{"httpTask": {"url": "<https://api-pub.bitfinex.com/v2/tickers?symbols=tSOLUSD"}},{"jsonParseTask":> {"path": "$\[0][7]"}}]}\]}}
            /// ```
            #[prost(message, tag = "40")]
            MinTask(super::MinTask),
            #[prost(message, tag = "41")]
            HistoryFunctionTask(super::HistoryFunctionTask),
            #[prost(message, tag = "42")]
            VwapTask(super::VwapTask),
            #[prost(message, tag = "43")]
            EwmaTask(super::EwmaTask),
            #[prost(message, tag = "44")]
            ComparisonTask(super::ComparisonTask),
            /// Round the current running result to a set number of decimal places.
            ///
            /// ***Input***: The current running numerical result.
            ///
            /// ***Returns***: The running result rounded to a set number of decimal places.
            ///
            /// ***Example***: Round down the running resul to 8 decimal places
            ///
            /// ```text,json
            /// { "roundTask": { "method": "METHOD_ROUND_DOWN", "decimals": 8 } }
            /// ```
            #[prost(message, tag = "45")]
            RoundTask(super::RoundTask),
            /// Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
            ///
            /// ***Input***: The current running numerical result.
            ///
            /// ***Returns***: The running result bounded to an upper or lower bound if it exceeds a given threshold.
            ///
            /// ***Example***: Bound the running result to a value between 0.90 and 1.10
            ///
            /// ```text,json
            /// { "boundTask": { "lowerBoundValue": "0.90","onExceedsLowerBoundValue": "0.90","upperBoundValue": "1.10","onExceedsUpperBoundValue": "1.10" } }
            /// ```
            #[prost(message, tag = "46")]
            BoundTask(super::BoundTask),
        }
    }
}