a2a-pb 0.1.7

A2A v1 protobuf-generated types and conversion layer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
// This file is @generated by prost-build.
/// Configuration of a send message request.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SendMessageConfiguration {
    /// A list of media types the client is prepared to accept for response parts.
    /// Agents SHOULD use this to tailor their output.
    #[prost(string, repeated, tag = "1")]
    pub accepted_output_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Configuration for the agent to send push notifications for task updates.
    /// Task id should be empty when sending this configuration in a `SendMessage` request.
    #[prost(message, optional, tag = "2")]
    pub task_push_notification_config: ::core::option::Option<
        TaskPushNotificationConfig,
    >,
    /// The maximum number of most recent messages from the task's history to retrieve in
    /// the response. An unset value means the client does not impose any limit. A
    /// value of zero is a request to not include any messages. The server MUST NOT
    /// return more messages than the provided value, but MAY apply a lower limit.
    #[prost(int32, optional, tag = "3")]
    pub history_length: ::core::option::Option<i32>,
    /// If `true`, the operation returns immediately after creating the task,
    /// even if processing is still in progress.
    /// If `false` (default), the operation MUST wait until the task reaches a
    /// terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted
    /// (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.
    #[prost(bool, tag = "4")]
    pub return_immediately: bool,
}
/// `Task` is the core unit of action for A2A. It has a current status
/// and when results are created for the task they are stored in the
/// artifact. If there are multiple turns for a task, these are stored in
/// history.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Task {
    /// Unique identifier (e.g. UUID) for the task, generated by the server for a
    /// new task.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Unique identifier (e.g. UUID) for the contextual collection of interactions
    /// (tasks and messages).
    #[prost(string, tag = "2")]
    pub context_id: ::prost::alloc::string::String,
    /// The current status of a `Task`, including `state` and a `message`.
    #[prost(message, optional, tag = "3")]
    pub status: ::core::option::Option<TaskStatus>,
    /// A set of output artifacts for a `Task`.
    #[prost(message, repeated, tag = "4")]
    pub artifacts: ::prost::alloc::vec::Vec<Artifact>,
    /// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
    /// The history of interactions from a `Task`.
    #[prost(message, repeated, tag = "5")]
    pub history: ::prost::alloc::vec::Vec<Message>,
    /// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
    /// A key/value object to store custom metadata about a task.
    #[prost(message, optional, tag = "6")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
}
/// A container for the status of a task
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TaskStatus {
    /// The current state of this task.
    #[prost(enumeration = "TaskState", tag = "1")]
    pub state: i32,
    /// A message associated with the status.
    #[prost(message, optional, tag = "2")]
    pub message: ::core::option::Option<Message>,
    /// ISO 8601 Timestamp when the status was recorded.
    /// Example: "2023-10-27T10:00:00Z"
    #[prost(message, optional, tag = "3")]
    pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
}
/// `Part` represents a container for a section of communication content.
/// Parts can be purely textual, some sort of file (image, video, etc) or
/// a structured data blob (i.e. JSON).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Part {
    /// Optional. metadata associated with this part.
    #[prost(message, optional, tag = "5")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
    /// An optional `filename` for the file (e.g., "document.pdf").
    #[prost(string, tag = "6")]
    pub filename: ::prost::alloc::string::String,
    /// The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png").
    /// This field is available for all part types.
    #[prost(string, tag = "7")]
    pub media_type: ::prost::alloc::string::String,
    #[prost(oneof = "part::Content", tags = "1, 2, 3, 4")]
    pub content: ::core::option::Option<part::Content>,
}
/// Nested message and enum types in `Part`.
pub mod part {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Content {
        /// The string content of the `text` part.
        #[prost(string, tag = "1")]
        Text(::prost::alloc::string::String),
        /// The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.
        #[prost(bytes, tag = "2")]
        Raw(::prost::alloc::vec::Vec<u8>),
        /// A `url` pointing to the file's content.
        #[prost(string, tag = "3")]
        Url(::prost::alloc::string::String),
        /// Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
        #[prost(message, tag = "4")]
        Data(::prost_types::Value),
    }
}
/// `Message` is one unit of communication between client and server. It can be
/// associated with a context and/or a task. For server messages, `context_id` must
/// be provided, and `task_id` only if a task was created. For client messages, both
/// fields are optional, with the caveat that if both are provided, they have to
/// match (the `context_id` has to be the one that is set on the task). If only
/// `task_id` is provided, the server will infer `context_id` from it.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
    /// The unique identifier (e.g. UUID) of the message. This is created by the message creator.
    #[prost(string, tag = "1")]
    pub message_id: ::prost::alloc::string::String,
    /// Optional. The context id of the message. If set, the message will be associated with the given context.
    #[prost(string, tag = "2")]
    pub context_id: ::prost::alloc::string::String,
    /// Optional. The task id of the message. If set, the message will be associated with the given task.
    #[prost(string, tag = "3")]
    pub task_id: ::prost::alloc::string::String,
    /// Identifies the sender of the message.
    #[prost(enumeration = "Role", tag = "4")]
    pub role: i32,
    /// Parts is the container of the message content.
    #[prost(message, repeated, tag = "5")]
    pub parts: ::prost::alloc::vec::Vec<Part>,
    /// Optional. Any metadata to provide along with the message.
    #[prost(message, optional, tag = "6")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
    /// The URIs of extensions that are present or contributed to this Message.
    #[prost(string, repeated, tag = "7")]
    pub extensions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// A list of task IDs that this message references for additional context.
    #[prost(string, repeated, tag = "8")]
    pub reference_task_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Artifacts represent task outputs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Artifact {
    /// Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
    #[prost(string, tag = "1")]
    pub artifact_id: ::prost::alloc::string::String,
    /// A human readable name for the artifact.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// Optional. A human readable description of the artifact.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// The content of the artifact. Must contain at least one part.
    #[prost(message, repeated, tag = "4")]
    pub parts: ::prost::alloc::vec::Vec<Part>,
    /// Optional. Metadata included with the artifact.
    #[prost(message, optional, tag = "5")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
    /// The URIs of extensions that are present or contributed to this Artifact.
    #[prost(string, repeated, tag = "6")]
    pub extensions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// An event sent by the agent to notify the client of a change in a task's status.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TaskStatusUpdateEvent {
    /// The ID of the task that has changed.
    #[prost(string, tag = "1")]
    pub task_id: ::prost::alloc::string::String,
    /// The ID of the context that the task belongs to.
    #[prost(string, tag = "2")]
    pub context_id: ::prost::alloc::string::String,
    /// The new status of the task.
    #[prost(message, optional, tag = "3")]
    pub status: ::core::option::Option<TaskStatus>,
    /// Optional. Metadata associated with the task update.
    #[prost(message, optional, tag = "4")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
}
/// A task delta where an artifact has been generated.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TaskArtifactUpdateEvent {
    /// The ID of the task for this artifact.
    #[prost(string, tag = "1")]
    pub task_id: ::prost::alloc::string::String,
    /// The ID of the context that this task belongs to.
    #[prost(string, tag = "2")]
    pub context_id: ::prost::alloc::string::String,
    /// The artifact that was generated or updated.
    #[prost(message, optional, tag = "3")]
    pub artifact: ::core::option::Option<Artifact>,
    /// If true, the content of this artifact should be appended to a previously
    /// sent artifact with the same ID.
    #[prost(bool, tag = "4")]
    pub append: bool,
    /// If true, this is the final chunk of the artifact.
    #[prost(bool, tag = "5")]
    pub last_chunk: bool,
    /// Optional. Metadata associated with the artifact update.
    #[prost(message, optional, tag = "6")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
}
/// Defines authentication details, used for push notifications.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AuthenticationInfo {
    /// HTTP Authentication Scheme from the [IANA registry](<https://www.iana.org/assignments/http-authschemes/>).
    /// Examples: `Bearer`, `Basic`, `Digest`.
    /// Scheme names are case-insensitive per [RFC 9110 Section 11.1](<https://www.rfc-editor.org/rfc/rfc9110#section-11.1>).
    #[prost(string, tag = "1")]
    pub scheme: ::prost::alloc::string::String,
    /// Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
    #[prost(string, tag = "2")]
    pub credentials: ::prost::alloc::string::String,
}
/// Declares a combination of a target URL, transport and protocol version for interacting with the agent.
/// This allows agents to expose the same functionality over multiple protocol binding mechanisms.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AgentInterface {
    /// The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
    /// Example: "<https://api.example.com/a2a/v1",> "<https://grpc.example.com/a2a">
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
    /// The protocol binding supported at this URL. This is an open form string, to be
    /// easily extended for other protocol bindings. The core ones officially
    /// supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
    #[prost(string, tag = "2")]
    pub protocol_binding: ::prost::alloc::string::String,
    /// Tenant ID to be used in the request when calling the agent.
    #[prost(string, tag = "3")]
    pub tenant: ::prost::alloc::string::String,
    /// The version of the A2A protocol this interface exposes.
    /// Use the latest supported minor version per major version.
    /// Examples: "0.3", "1.0"
    #[prost(string, tag = "4")]
    pub protocol_version: ::prost::alloc::string::String,
}
/// A self-describing manifest for an agent. It provides essential
/// metadata including the agent's identity, capabilities, skills, supported
/// communication methods, and security requirements.
/// Next ID: 20
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgentCard {
    /// A human readable name for the agent.
    /// Example: "Recipe Agent"
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// A human-readable description of the agent, assisting users and other agents
    /// in understanding its purpose.
    /// Example: "Agent that helps users with recipes and cooking."
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Ordered list of supported interfaces. The first entry is preferred.
    #[prost(message, repeated, tag = "3")]
    pub supported_interfaces: ::prost::alloc::vec::Vec<AgentInterface>,
    /// The service provider of the agent.
    #[prost(message, optional, tag = "4")]
    pub provider: ::core::option::Option<AgentProvider>,
    /// The version of the agent.
    /// Example: "1.0.0"
    #[prost(string, tag = "5")]
    pub version: ::prost::alloc::string::String,
    /// A URL providing additional documentation about the agent.
    #[prost(string, optional, tag = "6")]
    pub documentation_url: ::core::option::Option<::prost::alloc::string::String>,
    /// A2A Capability set supported by the agent.
    #[prost(message, optional, tag = "7")]
    pub capabilities: ::core::option::Option<AgentCapabilities>,
    /// The security scheme details used for authenticating with this agent.
    #[prost(map = "string, message", tag = "8")]
    pub security_schemes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        SecurityScheme,
    >,
    /// Security requirements for contacting the agent.
    #[prost(message, repeated, tag = "9")]
    pub security_requirements: ::prost::alloc::vec::Vec<SecurityRequirement>,
    /// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
    /// The set of interaction modes that the agent supports across all skills.
    /// This can be overridden per skill. Defined as media types.
    #[prost(string, repeated, tag = "10")]
    pub default_input_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// The media types supported as outputs from this agent.
    #[prost(string, repeated, tag = "11")]
    pub default_output_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Skills represent the abilities of an agent.
    /// It is largely a descriptive concept but represents a more focused set of behaviors that the
    /// agent is likely to succeed at.
    #[prost(message, repeated, tag = "12")]
    pub skills: ::prost::alloc::vec::Vec<AgentSkill>,
    /// JSON Web Signatures computed for this `AgentCard`.
    #[prost(message, repeated, tag = "13")]
    pub signatures: ::prost::alloc::vec::Vec<AgentCardSignature>,
    /// Optional. A URL to an icon for the agent.
    #[prost(string, optional, tag = "14")]
    pub icon_url: ::core::option::Option<::prost::alloc::string::String>,
}
/// Represents the service provider of an agent.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AgentProvider {
    /// A URL for the agent provider's website or relevant documentation.
    /// Example: "<https://ai.google.dev">
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
    /// The name of the agent provider's organization.
    /// Example: "Google"
    #[prost(string, tag = "2")]
    pub organization: ::prost::alloc::string::String,
}
/// Defines optional capabilities supported by an agent.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgentCapabilities {
    /// Indicates if the agent supports streaming responses.
    #[prost(bool, optional, tag = "1")]
    pub streaming: ::core::option::Option<bool>,
    /// Indicates if the agent supports sending push notifications for asynchronous task updates.
    #[prost(bool, optional, tag = "2")]
    pub push_notifications: ::core::option::Option<bool>,
    /// A list of protocol extensions supported by the agent.
    #[prost(message, repeated, tag = "3")]
    pub extensions: ::prost::alloc::vec::Vec<AgentExtension>,
    /// Indicates if the agent supports providing an extended agent card when authenticated.
    #[prost(bool, optional, tag = "4")]
    pub extended_agent_card: ::core::option::Option<bool>,
}
/// A declaration of a protocol extension supported by an Agent.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgentExtension {
    /// The unique URI identifying the extension.
    #[prost(string, tag = "1")]
    pub uri: ::prost::alloc::string::String,
    /// A human-readable description of how this agent uses the extension.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// If true, the client must understand and comply with the extension's requirements.
    #[prost(bool, tag = "3")]
    pub required: bool,
    /// Optional. Extension-specific configuration parameters.
    #[prost(message, optional, tag = "4")]
    pub params: ::core::option::Option<::prost_types::Struct>,
}
/// Represents a distinct capability or function that an agent can perform.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgentSkill {
    /// A unique identifier for the agent's skill.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// A human-readable name for the skill.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// A detailed description of the skill.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// A set of keywords describing the skill's capabilities.
    #[prost(string, repeated, tag = "4")]
    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Example prompts or scenarios that this skill can handle.
    #[prost(string, repeated, tag = "5")]
    pub examples: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// The set of supported input media types for this skill, overriding the agent's defaults.
    #[prost(string, repeated, tag = "6")]
    pub input_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// The set of supported output media types for this skill, overriding the agent's defaults.
    #[prost(string, repeated, tag = "7")]
    pub output_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Security schemes necessary for this skill.
    #[prost(message, repeated, tag = "8")]
    pub security_requirements: ::prost::alloc::vec::Vec<SecurityRequirement>,
}
/// AgentCardSignature represents a JWS signature of an AgentCard.
/// This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AgentCardSignature {
    /// (-- api-linter: core::0140::reserved-words=disabled
    /// aip.dev/not-precedent: Backwards compatibility --)
    /// Required. The protected JWS header for the signature. This is always a
    /// base64url-encoded JSON object.
    #[prost(string, tag = "1")]
    pub protected: ::prost::alloc::string::String,
    /// Required. The computed signature, base64url-encoded.
    #[prost(string, tag = "2")]
    pub signature: ::prost::alloc::string::String,
    /// The unprotected JWS header values.
    #[prost(message, optional, tag = "3")]
    pub header: ::core::option::Option<::prost_types::Struct>,
}
/// A container associating a push notification configuration with a specific task.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TaskPushNotificationConfig {
    /// Optional. Tenant ID.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The push notification configuration details.
    /// A unique identifier (e.g. UUID) for this push notification configuration.
    #[prost(string, tag = "2")]
    pub id: ::prost::alloc::string::String,
    /// The ID of the task this configuration is associated with.
    #[prost(string, tag = "3")]
    pub task_id: ::prost::alloc::string::String,
    /// The URL where the notification should be sent.
    #[prost(string, tag = "4")]
    pub url: ::prost::alloc::string::String,
    /// A token unique for this task or session.
    #[prost(string, tag = "5")]
    pub token: ::prost::alloc::string::String,
    /// Authentication information required to send the notification.
    #[prost(message, optional, tag = "6")]
    pub authentication: ::core::option::Option<AuthenticationInfo>,
}
/// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
/// A list of strings.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StringList {
    /// The individual string values.
    #[prost(string, repeated, tag = "1")]
    pub list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Defines the security requirements for an agent.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityRequirement {
    /// A map of security schemes to the required scopes.
    #[prost(map = "string, message", tag = "1")]
    pub schemes: ::std::collections::HashMap<::prost::alloc::string::String, StringList>,
}
/// Defines a security scheme that can be used to secure an agent's endpoints.
/// This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object.
/// See: <https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityScheme {
    #[prost(oneof = "security_scheme::Scheme", tags = "1, 2, 3, 4, 5")]
    pub scheme: ::core::option::Option<security_scheme::Scheme>,
}
/// Nested message and enum types in `SecurityScheme`.
pub mod security_scheme {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Scheme {
        /// API key-based authentication.
        #[prost(message, tag = "1")]
        ApiKeySecurityScheme(super::ApiKeySecurityScheme),
        /// HTTP authentication (Basic, Bearer, etc.).
        #[prost(message, tag = "2")]
        HttpAuthSecurityScheme(super::HttpAuthSecurityScheme),
        /// OAuth 2.0 authentication.
        #[prost(message, tag = "3")]
        Oauth2SecurityScheme(super::OAuth2SecurityScheme),
        /// OpenID Connect authentication.
        #[prost(message, tag = "4")]
        OpenIdConnectSecurityScheme(super::OpenIdConnectSecurityScheme),
        /// Mutual TLS authentication.
        #[prost(message, tag = "5")]
        MtlsSecurityScheme(super::MutualTlsSecurityScheme),
    }
}
/// Defines a security scheme using an API key.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ApiKeySecurityScheme {
    /// An optional description for the security scheme.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
    /// The location of the API key. Valid values are "query", "header", or "cookie".
    #[prost(string, tag = "2")]
    pub location: ::prost::alloc::string::String,
    /// The name of the header, query, or cookie parameter to be used.
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
}
/// Defines a security scheme using HTTP authentication.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HttpAuthSecurityScheme {
    /// An optional description for the security scheme.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
    /// The name of the HTTP Authentication scheme to be used in the Authorization header,
    /// as defined in RFC7235 (e.g., "Bearer").
    /// This value should be registered in the IANA Authentication Scheme registry.
    #[prost(string, tag = "2")]
    pub scheme: ::prost::alloc::string::String,
    /// A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
    /// Primarily for documentation purposes.
    #[prost(string, tag = "3")]
    pub bearer_format: ::prost::alloc::string::String,
}
/// Defines a security scheme using OAuth 2.0.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OAuth2SecurityScheme {
    /// An optional description for the security scheme.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
    /// An object containing configuration information for the supported OAuth 2.0 flows.
    #[prost(message, optional, tag = "2")]
    pub flows: ::core::option::Option<OAuthFlows>,
    /// URL to the OAuth2 authorization server metadata [RFC 8414](<https://datatracker.ietf.org/doc/html/rfc8414>).
    /// TLS is required.
    #[prost(string, tag = "3")]
    pub oauth2_metadata_url: ::prost::alloc::string::String,
}
/// Defines a security scheme using OpenID Connect.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct OpenIdConnectSecurityScheme {
    /// An optional description for the security scheme.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
    /// The [OpenID Connect Discovery URL](<https://openid.net/specs/openid-connect-discovery-1_0.html>) for the OIDC provider's metadata.
    #[prost(string, tag = "2")]
    pub open_id_connect_url: ::prost::alloc::string::String,
}
/// Defines a security scheme using mTLS authentication.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MutualTlsSecurityScheme {
    /// An optional description for the security scheme.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
}
/// Defines the configuration for the supported OAuth 2.0 flows.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OAuthFlows {
    #[prost(oneof = "o_auth_flows::Flow", tags = "1, 2, 3, 4, 5")]
    pub flow: ::core::option::Option<o_auth_flows::Flow>,
}
/// Nested message and enum types in `OAuthFlows`.
pub mod o_auth_flows {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Flow {
        /// Configuration for the OAuth Authorization Code flow.
        #[prost(message, tag = "1")]
        AuthorizationCode(super::AuthorizationCodeOAuthFlow),
        /// Configuration for the OAuth Client Credentials flow.
        #[prost(message, tag = "2")]
        ClientCredentials(super::ClientCredentialsOAuthFlow),
        /// Deprecated: Use Authorization Code + PKCE instead.
        #[deprecated]
        #[prost(message, tag = "3")]
        Implicit(super::ImplicitOAuthFlow),
        /// Deprecated: Use Authorization Code + PKCE or Device Code.
        #[deprecated]
        #[prost(message, tag = "4")]
        Password(super::PasswordOAuthFlow),
        /// Configuration for the OAuth Device Code flow.
        #[prost(message, tag = "5")]
        DeviceCode(super::DeviceCodeOAuthFlow),
    }
}
/// Defines configuration details for the OAuth 2.0 Authorization Code flow.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationCodeOAuthFlow {
    /// The authorization URL to be used for this flow.
    #[prost(string, tag = "1")]
    pub authorization_url: ::prost::alloc::string::String,
    /// The token URL to be used for this flow.
    #[prost(string, tag = "2")]
    pub token_url: ::prost::alloc::string::String,
    /// The URL to be used for obtaining refresh tokens.
    #[prost(string, tag = "3")]
    pub refresh_url: ::prost::alloc::string::String,
    /// The available scopes for the OAuth2 security scheme.
    #[prost(map = "string, string", tag = "4")]
    pub scopes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Indicates if PKCE (RFC 7636) is required for this flow.
    /// PKCE should always be used for public clients and is recommended for all clients.
    #[prost(bool, tag = "5")]
    pub pkce_required: bool,
}
/// Defines configuration details for the OAuth 2.0 Client Credentials flow.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientCredentialsOAuthFlow {
    /// The token URL to be used for this flow.
    #[prost(string, tag = "1")]
    pub token_url: ::prost::alloc::string::String,
    /// The URL to be used for obtaining refresh tokens.
    #[prost(string, tag = "2")]
    pub refresh_url: ::prost::alloc::string::String,
    /// The available scopes for the OAuth2 security scheme.
    #[prost(map = "string, string", tag = "3")]
    pub scopes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
/// Deprecated: Use Authorization Code + PKCE instead.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ImplicitOAuthFlow {
    /// The authorization URL to be used for this flow. This MUST be in the
    /// form of a URL. The OAuth2 standard requires the use of TLS
    #[prost(string, tag = "1")]
    pub authorization_url: ::prost::alloc::string::String,
    /// The URL to be used for obtaining refresh tokens. This MUST be in the
    /// form of a URL. The OAuth2 standard requires the use of TLS.
    #[prost(string, tag = "2")]
    pub refresh_url: ::prost::alloc::string::String,
    /// The available scopes for the OAuth2 security scheme. A map between the
    /// scope name and a short description for it. The map MAY be empty.
    #[prost(map = "string, string", tag = "3")]
    pub scopes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
/// Deprecated: Use Authorization Code + PKCE or Device Code.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasswordOAuthFlow {
    /// The token URL to be used for this flow. This MUST be in the form of a URL.
    /// The OAuth2 standard requires the use of TLS.
    #[prost(string, tag = "1")]
    pub token_url: ::prost::alloc::string::String,
    /// The URL to be used for obtaining refresh tokens. This MUST be in the
    /// form of a URL. The OAuth2 standard requires the use of TLS.
    #[prost(string, tag = "2")]
    pub refresh_url: ::prost::alloc::string::String,
    /// The available scopes for the OAuth2 security scheme. A map between the
    /// scope name and a short description for it. The map MAY be empty.
    #[prost(map = "string, string", tag = "3")]
    pub scopes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
/// Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).
/// This flow is designed for input-constrained devices such as IoT devices,
/// and CLI tools where the user authenticates on a separate device.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeviceCodeOAuthFlow {
    /// The device authorization endpoint URL.
    #[prost(string, tag = "1")]
    pub device_authorization_url: ::prost::alloc::string::String,
    /// The token URL to be used for this flow.
    #[prost(string, tag = "2")]
    pub token_url: ::prost::alloc::string::String,
    /// The URL to be used for obtaining refresh tokens.
    #[prost(string, tag = "3")]
    pub refresh_url: ::prost::alloc::string::String,
    /// The available scopes for the OAuth2 security scheme.
    #[prost(map = "string, string", tag = "4")]
    pub scopes: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
/// Represents a request for the `SendMessage` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendMessageRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The message to send to the agent.
    #[prost(message, optional, tag = "2")]
    pub message: ::core::option::Option<Message>,
    /// Configuration for the send request.
    #[prost(message, optional, tag = "3")]
    pub configuration: ::core::option::Option<SendMessageConfiguration>,
    /// A flexible key-value map for passing additional context or parameters.
    #[prost(message, optional, tag = "4")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
}
/// Represents a request for the `GetTask` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetTaskRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The resource ID of the task to retrieve.
    #[prost(string, tag = "2")]
    pub id: ::prost::alloc::string::String,
    /// The maximum number of most recent messages from the task's history to retrieve. An
    /// unset value means the client does not impose any limit. A value of zero is
    /// a request to not include any messages. The server MUST NOT return more
    /// messages than the provided value, but MAY apply a lower limit.
    #[prost(int32, optional, tag = "3")]
    pub history_length: ::core::option::Option<i32>,
}
/// Parameters for listing tasks with optional filtering criteria.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListTasksRequest {
    /// Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// Filter tasks by context ID to get tasks from a specific conversation or session.
    #[prost(string, tag = "2")]
    pub context_id: ::prost::alloc::string::String,
    /// Filter tasks by their current status state.
    #[prost(enumeration = "TaskState", tag = "3")]
    pub status: i32,
    /// The maximum number of tasks to return. The service may return fewer than this value.
    /// If unspecified, at most 50 tasks will be returned.
    /// The minimum value is 1.
    /// The maximum value is 100.
    #[prost(int32, optional, tag = "4")]
    pub page_size: ::core::option::Option<i32>,
    /// A page token, received from a previous `ListTasks` call.
    /// `ListTasksResponse.next_page_token`.
    /// Provide this to retrieve the subsequent page.
    #[prost(string, tag = "5")]
    pub page_token: ::prost::alloc::string::String,
    /// The maximum number of messages to include in each task's history.
    #[prost(int32, optional, tag = "6")]
    pub history_length: ::core::option::Option<i32>,
    /// Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z").
    /// Only tasks with a status timestamp time greater than or equal to this value will be returned.
    #[prost(message, optional, tag = "7")]
    pub status_timestamp_after: ::core::option::Option<::prost_types::Timestamp>,
    /// Whether to include artifacts in the returned tasks.
    /// Defaults to false to reduce payload size.
    #[prost(bool, optional, tag = "8")]
    pub include_artifacts: ::core::option::Option<bool>,
}
/// Result object for `ListTasks` method containing an array of tasks and pagination information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTasksResponse {
    /// Array of tasks matching the specified criteria.
    #[prost(message, repeated, tag = "1")]
    pub tasks: ::prost::alloc::vec::Vec<Task>,
    /// A token to retrieve the next page of results, or empty if there are no more results in the list.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// The page size used for this response.
    #[prost(int32, tag = "3")]
    pub page_size: i32,
    /// Total number of tasks available (before pagination).
    #[prost(int32, tag = "4")]
    pub total_size: i32,
}
/// Represents a request for the `CancelTask` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelTaskRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The resource ID of the task to cancel.
    #[prost(string, tag = "2")]
    pub id: ::prost::alloc::string::String,
    /// A flexible key-value map for passing additional context or parameters.
    #[prost(message, optional, tag = "3")]
    pub metadata: ::core::option::Option<::prost_types::Struct>,
}
/// Represents a request for the `GetTaskPushNotificationConfig` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetTaskPushNotificationConfigRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The parent task resource ID.
    #[prost(string, tag = "2")]
    pub task_id: ::prost::alloc::string::String,
    /// The resource ID of the configuration to retrieve.
    #[prost(string, tag = "3")]
    pub id: ::prost::alloc::string::String,
}
/// Represents a request for the `DeleteTaskPushNotificationConfig` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteTaskPushNotificationConfigRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The parent task resource ID.
    #[prost(string, tag = "2")]
    pub task_id: ::prost::alloc::string::String,
    /// The resource ID of the configuration to delete.
    #[prost(string, tag = "3")]
    pub id: ::prost::alloc::string::String,
}
/// Represents a request for the `SubscribeToTask` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SubscribeToTaskRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
    /// The resource ID of the task to subscribe to.
    #[prost(string, tag = "2")]
    pub id: ::prost::alloc::string::String,
}
/// Represents a request for the `ListTaskPushNotificationConfigs` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListTaskPushNotificationConfigsRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "4")]
    pub tenant: ::prost::alloc::string::String,
    /// The parent task resource ID.
    #[prost(string, tag = "1")]
    pub task_id: ::prost::alloc::string::String,
    /// The maximum number of configurations to return.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token received from a previous `ListTaskPushNotificationConfigsRequest` call.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
}
/// Represents a request for the `GetExtendedAgentCard` method.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetExtendedAgentCardRequest {
    /// Optional. Tenant ID, provided as a path parameter.
    #[prost(string, tag = "1")]
    pub tenant: ::prost::alloc::string::String,
}
/// Represents the response for the `SendMessage` method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendMessageResponse {
    /// The payload of the response.
    #[prost(oneof = "send_message_response::Payload", tags = "1, 2")]
    pub payload: ::core::option::Option<send_message_response::Payload>,
}
/// Nested message and enum types in `SendMessageResponse`.
pub mod send_message_response {
    /// The payload of the response.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        /// The task created or updated by the message.
        #[prost(message, tag = "1")]
        Task(super::Task),
        /// A message from the agent.
        #[prost(message, tag = "2")]
        Message(super::Message),
    }
}
/// A wrapper object used in streaming operations to encapsulate different types of response data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamResponse {
    /// The payload of the stream response.
    #[prost(oneof = "stream_response::Payload", tags = "1, 2, 3, 4")]
    pub payload: ::core::option::Option<stream_response::Payload>,
}
/// Nested message and enum types in `StreamResponse`.
pub mod stream_response {
    /// The payload of the stream response.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        /// A Task object containing the current state of the task.
        #[prost(message, tag = "1")]
        Task(super::Task),
        /// A Message object containing a message from the agent.
        #[prost(message, tag = "2")]
        Message(super::Message),
        /// An event indicating a task status update.
        #[prost(message, tag = "3")]
        StatusUpdate(super::TaskStatusUpdateEvent),
        /// An event indicating a task artifact update.
        #[prost(message, tag = "4")]
        ArtifactUpdate(super::TaskArtifactUpdateEvent),
    }
}
/// Represents a successful response for the `ListTaskPushNotificationConfigs`
/// method.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTaskPushNotificationConfigsResponse {
    /// The list of push notification configurations.
    #[prost(message, repeated, tag = "1")]
    pub configs: ::prost::alloc::vec::Vec<TaskPushNotificationConfig>,
    /// A token to retrieve the next page of results, or empty if there are no more results in the list.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Defines the possible lifecycle states of a `Task`.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TaskState {
    /// The task is in an unknown or indeterminate state.
    Unspecified = 0,
    /// Indicates that a task has been successfully submitted and acknowledged.
    Submitted = 1,
    /// Indicates that a task is actively being processed by the agent.
    Working = 2,
    /// Indicates that a task has finished successfully. This is a terminal state.
    Completed = 3,
    /// Indicates that a task has finished with an error. This is a terminal state.
    Failed = 4,
    /// Indicates that a task was canceled before completion. This is a terminal state.
    Canceled = 5,
    /// Indicates that the agent requires additional user input to proceed. This is an interrupted state.
    InputRequired = 6,
    /// Indicates that the agent has decided to not perform the task.
    /// This may be done during initial task creation or later once an agent
    /// has determined it can't or won't proceed. This is a terminal state.
    Rejected = 7,
    /// Indicates that authentication is required to proceed. This is an interrupted state.
    AuthRequired = 8,
}
impl TaskState {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "TASK_STATE_UNSPECIFIED",
            Self::Submitted => "TASK_STATE_SUBMITTED",
            Self::Working => "TASK_STATE_WORKING",
            Self::Completed => "TASK_STATE_COMPLETED",
            Self::Failed => "TASK_STATE_FAILED",
            Self::Canceled => "TASK_STATE_CANCELED",
            Self::InputRequired => "TASK_STATE_INPUT_REQUIRED",
            Self::Rejected => "TASK_STATE_REJECTED",
            Self::AuthRequired => "TASK_STATE_AUTH_REQUIRED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "TASK_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "TASK_STATE_SUBMITTED" => Some(Self::Submitted),
            "TASK_STATE_WORKING" => Some(Self::Working),
            "TASK_STATE_COMPLETED" => Some(Self::Completed),
            "TASK_STATE_FAILED" => Some(Self::Failed),
            "TASK_STATE_CANCELED" => Some(Self::Canceled),
            "TASK_STATE_INPUT_REQUIRED" => Some(Self::InputRequired),
            "TASK_STATE_REJECTED" => Some(Self::Rejected),
            "TASK_STATE_AUTH_REQUIRED" => Some(Self::AuthRequired),
            _ => None,
        }
    }
}
/// Defines the sender of a message in A2A protocol communication.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Role {
    /// The role is unspecified.
    Unspecified = 0,
    /// The message is from the client to the server.
    User = 1,
    /// The message is from the server to the client.
    Agent = 2,
}
impl Role {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "ROLE_UNSPECIFIED",
            Self::User => "ROLE_USER",
            Self::Agent => "ROLE_AGENT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ROLE_UNSPECIFIED" => Some(Self::Unspecified),
            "ROLE_USER" => Some(Self::User),
            "ROLE_AGENT" => Some(Self::Agent),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod a2a_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Provides operations for interacting with agents using the A2A protocol.
    #[derive(Debug, Clone)]
    pub struct A2aServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl A2aServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> A2aServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> A2aServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            A2aServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Sends a message to an agent.
        pub async fn send_message(
            &mut self,
            request: impl tonic::IntoRequest<super::SendMessageRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SendMessageResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/SendMessage",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "SendMessage"));
            self.inner.unary(req, path, codec).await
        }
        /// Sends a streaming message to an agent, allowing for real-time interaction and status updates.
        /// Streaming version of `SendMessage`
        pub async fn send_streaming_message(
            &mut self,
            request: impl tonic::IntoRequest<super::SendMessageRequest>,
        ) -> std::result::Result<
            tonic::Response<tonic::codec::Streaming<super::StreamResponse>>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/SendStreamingMessage",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "SendStreamingMessage"));
            self.inner.server_streaming(req, path, codec).await
        }
        /// Gets the latest state of a task.
        pub async fn get_task(
            &mut self,
            request: impl tonic::IntoRequest<super::GetTaskRequest>,
        ) -> std::result::Result<tonic::Response<super::Task>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/GetTask",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "GetTask"));
            self.inner.unary(req, path, codec).await
        }
        /// Lists tasks that match the specified filter.
        pub async fn list_tasks(
            &mut self,
            request: impl tonic::IntoRequest<super::ListTasksRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListTasksResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/ListTasks",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "ListTasks"));
            self.inner.unary(req, path, codec).await
        }
        /// Cancels a task in progress.
        pub async fn cancel_task(
            &mut self,
            request: impl tonic::IntoRequest<super::CancelTaskRequest>,
        ) -> std::result::Result<tonic::Response<super::Task>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/CancelTask",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "CancelTask"));
            self.inner.unary(req, path, codec).await
        }
        /// Subscribes to task updates for tasks not in a terminal state.
        /// Returns `UnsupportedOperationError` if the task is already in a terminal state (completed, failed, canceled, rejected).
        pub async fn subscribe_to_task(
            &mut self,
            request: impl tonic::IntoRequest<super::SubscribeToTaskRequest>,
        ) -> std::result::Result<
            tonic::Response<tonic::codec::Streaming<super::StreamResponse>>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/SubscribeToTask",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "SubscribeToTask"));
            self.inner.server_streaming(req, path, codec).await
        }
        /// (-- api-linter: client-libraries::4232::required-fields=disabled
        /// api-linter: core::0133::method-signature=disabled
        /// api-linter: core::0133::request-message-name=disabled
        /// aip.dev/not-precedent: method_signature preserved for backwards compatibility --)
        /// Creates a push notification config for a task.
        pub async fn create_task_push_notification_config(
            &mut self,
            request: impl tonic::IntoRequest<super::TaskPushNotificationConfig>,
        ) -> std::result::Result<
            tonic::Response<super::TaskPushNotificationConfig>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/CreateTaskPushNotificationConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "lf.a2a.v1.A2AService",
                        "CreateTaskPushNotificationConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets a push notification config for a task.
        pub async fn get_task_push_notification_config(
            &mut self,
            request: impl tonic::IntoRequest<super::GetTaskPushNotificationConfigRequest>,
        ) -> std::result::Result<
            tonic::Response<super::TaskPushNotificationConfig>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/GetTaskPushNotificationConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "lf.a2a.v1.A2AService",
                        "GetTaskPushNotificationConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get a list of push notifications configured for a task.
        pub async fn list_task_push_notification_configs(
            &mut self,
            request: impl tonic::IntoRequest<
                super::ListTaskPushNotificationConfigsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::ListTaskPushNotificationConfigsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/ListTaskPushNotificationConfigs",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "lf.a2a.v1.A2AService",
                        "ListTaskPushNotificationConfigs",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the extended agent card for the authenticated agent.
        pub async fn get_extended_agent_card(
            &mut self,
            request: impl tonic::IntoRequest<super::GetExtendedAgentCardRequest>,
        ) -> std::result::Result<tonic::Response<super::AgentCard>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/GetExtendedAgentCard",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("lf.a2a.v1.A2AService", "GetExtendedAgentCard"));
            self.inner.unary(req, path, codec).await
        }
        /// Deletes a push notification config for a task.
        pub async fn delete_task_push_notification_config(
            &mut self,
            request: impl tonic::IntoRequest<
                super::DeleteTaskPushNotificationConfigRequest,
            >,
        ) -> std::result::Result<tonic::Response<()>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic_prost::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/lf.a2a.v1.A2AService/DeleteTaskPushNotificationConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "lf.a2a.v1.A2AService",
                        "DeleteTaskPushNotificationConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Generated server implementations.
pub mod a2a_service_server {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with A2aServiceServer.
    #[async_trait]
    pub trait A2aService: std::marker::Send + std::marker::Sync + 'static {
        /// Sends a message to an agent.
        async fn send_message(
            &self,
            request: tonic::Request<super::SendMessageRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SendMessageResponse>,
            tonic::Status,
        >;
        /// Server streaming response type for the SendStreamingMessage method.
        type SendStreamingMessageStream: tonic::codegen::tokio_stream::Stream<
                Item = std::result::Result<super::StreamResponse, tonic::Status>,
            >
            + std::marker::Send
            + 'static;
        /// Sends a streaming message to an agent, allowing for real-time interaction and status updates.
        /// Streaming version of `SendMessage`
        async fn send_streaming_message(
            &self,
            request: tonic::Request<super::SendMessageRequest>,
        ) -> std::result::Result<
            tonic::Response<Self::SendStreamingMessageStream>,
            tonic::Status,
        >;
        /// Gets the latest state of a task.
        async fn get_task(
            &self,
            request: tonic::Request<super::GetTaskRequest>,
        ) -> std::result::Result<tonic::Response<super::Task>, tonic::Status>;
        /// Lists tasks that match the specified filter.
        async fn list_tasks(
            &self,
            request: tonic::Request<super::ListTasksRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListTasksResponse>,
            tonic::Status,
        >;
        /// Cancels a task in progress.
        async fn cancel_task(
            &self,
            request: tonic::Request<super::CancelTaskRequest>,
        ) -> std::result::Result<tonic::Response<super::Task>, tonic::Status>;
        /// Server streaming response type for the SubscribeToTask method.
        type SubscribeToTaskStream: tonic::codegen::tokio_stream::Stream<
                Item = std::result::Result<super::StreamResponse, tonic::Status>,
            >
            + std::marker::Send
            + 'static;
        /// Subscribes to task updates for tasks not in a terminal state.
        /// Returns `UnsupportedOperationError` if the task is already in a terminal state (completed, failed, canceled, rejected).
        async fn subscribe_to_task(
            &self,
            request: tonic::Request<super::SubscribeToTaskRequest>,
        ) -> std::result::Result<
            tonic::Response<Self::SubscribeToTaskStream>,
            tonic::Status,
        >;
        /// (-- api-linter: client-libraries::4232::required-fields=disabled
        /// api-linter: core::0133::method-signature=disabled
        /// api-linter: core::0133::request-message-name=disabled
        /// aip.dev/not-precedent: method_signature preserved for backwards compatibility --)
        /// Creates a push notification config for a task.
        async fn create_task_push_notification_config(
            &self,
            request: tonic::Request<super::TaskPushNotificationConfig>,
        ) -> std::result::Result<
            tonic::Response<super::TaskPushNotificationConfig>,
            tonic::Status,
        >;
        /// Gets a push notification config for a task.
        async fn get_task_push_notification_config(
            &self,
            request: tonic::Request<super::GetTaskPushNotificationConfigRequest>,
        ) -> std::result::Result<
            tonic::Response<super::TaskPushNotificationConfig>,
            tonic::Status,
        >;
        /// Get a list of push notifications configured for a task.
        async fn list_task_push_notification_configs(
            &self,
            request: tonic::Request<super::ListTaskPushNotificationConfigsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListTaskPushNotificationConfigsResponse>,
            tonic::Status,
        >;
        /// Gets the extended agent card for the authenticated agent.
        async fn get_extended_agent_card(
            &self,
            request: tonic::Request<super::GetExtendedAgentCardRequest>,
        ) -> std::result::Result<tonic::Response<super::AgentCard>, tonic::Status>;
        /// Deletes a push notification config for a task.
        async fn delete_task_push_notification_config(
            &self,
            request: tonic::Request<super::DeleteTaskPushNotificationConfigRequest>,
        ) -> std::result::Result<tonic::Response<()>, tonic::Status>;
    }
    /// Provides operations for interacting with agents using the A2A protocol.
    #[derive(Debug)]
    pub struct A2aServiceServer<T> {
        inner: Arc<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
        max_decoding_message_size: Option<usize>,
        max_encoding_message_size: Option<usize>,
    }
    impl<T> A2aServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
                max_decoding_message_size: None,
                max_encoding_message_size: None,
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.max_decoding_message_size = Some(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.max_encoding_message_size = Some(limit);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>> for A2aServiceServer<T>
    where
        T: A2aService,
        B: Body + std::marker::Send + 'static,
        B::Error: Into<StdError> + std::marker::Send + 'static,
    {
        type Response = http::Response<tonic::body::Body>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<std::result::Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            match req.uri().path() {
                "/lf.a2a.v1.A2AService/SendMessage" => {
                    #[allow(non_camel_case_types)]
                    struct SendMessageSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::SendMessageRequest>
                    for SendMessageSvc<T> {
                        type Response = super::SendMessageResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SendMessageRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::send_message(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SendMessageSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/SendStreamingMessage" => {
                    #[allow(non_camel_case_types)]
                    struct SendStreamingMessageSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::ServerStreamingService<super::SendMessageRequest>
                    for SendStreamingMessageSvc<T> {
                        type Response = super::StreamResponse;
                        type ResponseStream = T::SendStreamingMessageStream;
                        type Future = BoxFuture<
                            tonic::Response<Self::ResponseStream>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SendMessageRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::send_streaming_message(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SendStreamingMessageSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.server_streaming(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/GetTask" => {
                    #[allow(non_camel_case_types)]
                    struct GetTaskSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::GetTaskRequest>
                    for GetTaskSvc<T> {
                        type Response = super::Task;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::GetTaskRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::get_task(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetTaskSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/ListTasks" => {
                    #[allow(non_camel_case_types)]
                    struct ListTasksSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::ListTasksRequest>
                    for ListTasksSvc<T> {
                        type Response = super::ListTasksResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListTasksRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::list_tasks(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListTasksSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/CancelTask" => {
                    #[allow(non_camel_case_types)]
                    struct CancelTaskSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::CancelTaskRequest>
                    for CancelTaskSvc<T> {
                        type Response = super::Task;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::CancelTaskRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::cancel_task(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = CancelTaskSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/SubscribeToTask" => {
                    #[allow(non_camel_case_types)]
                    struct SubscribeToTaskSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::ServerStreamingService<
                        super::SubscribeToTaskRequest,
                    > for SubscribeToTaskSvc<T> {
                        type Response = super::StreamResponse;
                        type ResponseStream = T::SubscribeToTaskStream;
                        type Future = BoxFuture<
                            tonic::Response<Self::ResponseStream>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SubscribeToTaskRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::subscribe_to_task(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SubscribeToTaskSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.server_streaming(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/CreateTaskPushNotificationConfig" => {
                    #[allow(non_camel_case_types)]
                    struct CreateTaskPushNotificationConfigSvc<T: A2aService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::TaskPushNotificationConfig>
                    for CreateTaskPushNotificationConfigSvc<T> {
                        type Response = super::TaskPushNotificationConfig;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::TaskPushNotificationConfig>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::create_task_push_notification_config(
                                        &inner,
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = CreateTaskPushNotificationConfigSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/GetTaskPushNotificationConfig" => {
                    #[allow(non_camel_case_types)]
                    struct GetTaskPushNotificationConfigSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<
                        super::GetTaskPushNotificationConfigRequest,
                    > for GetTaskPushNotificationConfigSvc<T> {
                        type Response = super::TaskPushNotificationConfig;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::GetTaskPushNotificationConfigRequest,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::get_task_push_notification_config(
                                        &inner,
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetTaskPushNotificationConfigSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/ListTaskPushNotificationConfigs" => {
                    #[allow(non_camel_case_types)]
                    struct ListTaskPushNotificationConfigsSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<
                        super::ListTaskPushNotificationConfigsRequest,
                    > for ListTaskPushNotificationConfigsSvc<T> {
                        type Response = super::ListTaskPushNotificationConfigsResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::ListTaskPushNotificationConfigsRequest,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::list_task_push_notification_configs(
                                        &inner,
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListTaskPushNotificationConfigsSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/GetExtendedAgentCard" => {
                    #[allow(non_camel_case_types)]
                    struct GetExtendedAgentCardSvc<T: A2aService>(pub Arc<T>);
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<super::GetExtendedAgentCardRequest>
                    for GetExtendedAgentCardSvc<T> {
                        type Response = super::AgentCard;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::GetExtendedAgentCardRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::get_extended_agent_card(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetExtendedAgentCardSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/lf.a2a.v1.A2AService/DeleteTaskPushNotificationConfig" => {
                    #[allow(non_camel_case_types)]
                    struct DeleteTaskPushNotificationConfigSvc<T: A2aService>(
                        pub Arc<T>,
                    );
                    impl<
                        T: A2aService,
                    > tonic::server::UnaryService<
                        super::DeleteTaskPushNotificationConfigRequest,
                    > for DeleteTaskPushNotificationConfigSvc<T> {
                        type Response = ();
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::DeleteTaskPushNotificationConfigRequest,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as A2aService>::delete_task_push_notification_config(
                                        &inner,
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DeleteTaskPushNotificationConfigSvc(inner);
                        let codec = tonic_prost::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        let mut response = http::Response::new(
                            tonic::body::Body::default(),
                        );
                        let headers = response.headers_mut();
                        headers
                            .insert(
                                tonic::Status::GRPC_STATUS,
                                (tonic::Code::Unimplemented as i32).into(),
                            );
                        headers
                            .insert(
                                http::header::CONTENT_TYPE,
                                tonic::metadata::GRPC_CONTENT_TYPE,
                            );
                        Ok(response)
                    })
                }
            }
        }
    }
    impl<T> Clone for A2aServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
                max_decoding_message_size: self.max_decoding_message_size,
                max_encoding_message_size: self.max_encoding_message_size,
            }
        }
    }
    /// Generated gRPC service name
    pub const SERVICE_NAME: &str = "lf.a2a.v1.A2AService";
    impl<T> tonic::server::NamedService for A2aServiceServer<T> {
        const NAME: &'static str = SERVICE_NAME;
    }
}