envoy-types 0.7.3

Collection of protobuf types and other assets to work with the Envoy Proxy through Rust gRPC services.
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
// This file is @generated by prost-build.
/// Proto representation of certificate details. Admin endpoint uses this wrapper for `/certs` to
/// display certificate information. See :ref:`/certs <operations_admin_interface_certs>` for more
/// information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Certificates {
    /// List of certificates known to an Envoy.
    #[prost(message, repeated, tag = "1")]
    pub certificates: ::prost::alloc::vec::Vec<Certificate>,
}
impl ::prost::Name for Certificates {
    const NAME: &'static str = "Certificates";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.Certificates".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.Certificates".into()
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Certificate {
    /// Details of CA certificate.
    #[prost(message, repeated, tag = "1")]
    pub ca_cert: ::prost::alloc::vec::Vec<CertificateDetails>,
    /// Details of Certificate Chain
    #[prost(message, repeated, tag = "2")]
    pub cert_chain: ::prost::alloc::vec::Vec<CertificateDetails>,
}
impl ::prost::Name for Certificate {
    const NAME: &'static str = "Certificate";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.Certificate".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.Certificate".into()
    }
}
/// \[\#next-free-field: 8\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CertificateDetails {
    /// Path of the certificate.
    #[prost(string, tag = "1")]
    pub path: ::prost::alloc::string::String,
    /// Certificate Serial Number.
    #[prost(string, tag = "2")]
    pub serial_number: ::prost::alloc::string::String,
    /// List of Subject Alternate names.
    #[prost(message, repeated, tag = "3")]
    pub subject_alt_names: ::prost::alloc::vec::Vec<SubjectAlternateName>,
    /// Minimum of days until expiration of certificate and it's chain.
    #[prost(uint64, tag = "4")]
    pub days_until_expiration: u64,
    /// Indicates the time from which the certificate is valid.
    #[prost(message, optional, tag = "5")]
    pub valid_from: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    /// Indicates the time at which the certificate expires.
    #[prost(message, optional, tag = "6")]
    pub expiration_time: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    /// Details related to the OCSP response associated with this certificate, if any.
    #[prost(message, optional, tag = "7")]
    pub ocsp_details: ::core::option::Option<certificate_details::OcspDetails>,
}
/// Nested message and enum types in `CertificateDetails`.
pub mod certificate_details {
    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct OcspDetails {
        /// Indicates the time from which the OCSP response is valid.
        #[prost(message, optional, tag = "1")]
        pub valid_from: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Indicates the time at which the OCSP response expires.
        #[prost(message, optional, tag = "2")]
        pub expiration: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for OcspDetails {
        const NAME: &'static str = "OcspDetails";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.CertificateDetails.OcspDetails".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.CertificateDetails.OcspDetails".into()
        }
    }
}
impl ::prost::Name for CertificateDetails {
    const NAME: &'static str = "CertificateDetails";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.CertificateDetails".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.CertificateDetails".into()
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SubjectAlternateName {
    /// Subject Alternate Name.
    #[prost(oneof = "subject_alternate_name::Name", tags = "1, 2, 3")]
    pub name: ::core::option::Option<subject_alternate_name::Name>,
}
/// Nested message and enum types in `SubjectAlternateName`.
pub mod subject_alternate_name {
    /// Subject Alternate Name.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Name {
        #[prost(string, tag = "1")]
        Dns(::prost::alloc::string::String),
        #[prost(string, tag = "2")]
        Uri(::prost::alloc::string::String),
        #[prost(string, tag = "3")]
        IpAddress(::prost::alloc::string::String),
    }
}
impl ::prost::Name for SubjectAlternateName {
    const NAME: &'static str = "SubjectAlternateName";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.SubjectAlternateName".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.SubjectAlternateName".into()
    }
}
/// Proto representation of an Envoy Counter or Gauge value.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SimpleMetric {
    /// Type of the metric represented.
    #[prost(enumeration = "simple_metric::Type", tag = "1")]
    pub r#type: i32,
    /// Current metric value.
    #[prost(uint64, tag = "2")]
    pub value: u64,
    /// Name of the metric.
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `SimpleMetric`.
pub mod simple_metric {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        Counter = 0,
        Gauge = 1,
    }
    impl Type {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Counter => "COUNTER",
                Self::Gauge => "GAUGE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "COUNTER" => Some(Self::Counter),
                "GAUGE" => Some(Self::Gauge),
                _ => None,
            }
        }
    }
}
impl ::prost::Name for SimpleMetric {
    const NAME: &'static str = "SimpleMetric";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.SimpleMetric".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.SimpleMetric".into()
    }
}
/// Admin endpoint uses this wrapper for `/clusters` to display cluster status information.
/// See :ref:`/clusters <operations_admin_interface_clusters>` for more information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Clusters {
    /// Mapping from cluster name to each cluster's status.
    #[prost(message, repeated, tag = "1")]
    pub cluster_statuses: ::prost::alloc::vec::Vec<ClusterStatus>,
}
impl ::prost::Name for Clusters {
    const NAME: &'static str = "Clusters";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.Clusters".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.Clusters".into()
    }
}
/// Details an individual cluster's current status.
/// \[\#next-free-field: 9\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterStatus {
    /// Name of the cluster.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Denotes whether this cluster was added via API or configured statically.
    #[prost(bool, tag = "2")]
    pub added_via_api: bool,
    /// The success rate threshold used in the last interval.
    ///
    /// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is `false`, all errors: externally and locally generated were used to calculate the threshold.
    /// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is `true`, only externally generated errors were used to calculate the threshold.
    ///
    ///
    /// The threshold is used to eject hosts based on their success rate. For more information, see the
    /// : ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
    ///
    ///
    /// .. note::
    ///
    /// This field may be omitted in any of the three following cases:
    ///
    /// 1. There were not enough hosts with enough request volume to proceed with success rate based outlier ejection.
    /// 1. The threshold is computed to be \< 0 because a negative value implies that there was no threshold for that
    ///    interval.
    /// 1. Outlier detection is not enabled for this cluster.
    #[prost(message, optional, tag = "3")]
    pub success_rate_ejection_threshold: ::core::option::Option<
        super::super::r#type::v3::Percent,
    >,
    /// Mapping from host address to the host's current status.
    #[prost(message, repeated, tag = "4")]
    pub host_statuses: ::prost::alloc::vec::Vec<HostStatus>,
    ///
    /// The success rate threshold used in the last interval when only locally originated failures were
    /// taken into account and externally originated errors were treated as success.
    /// This field should be interpreted only when
    /// : ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is `true`. The threshold is used to eject hosts based on their success rate.
    ///
    ///
    /// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
    ///
    /// .. note::
    ///
    /// This field may be omitted in any of the three following cases:
    ///
    /// 1. There were not enough hosts with enough request volume to proceed with success rate based outlier ejection.
    /// 1. The threshold is computed to be \< 0 because a negative value implies that there was no threshold for that
    ///    interval.
    /// 1. Outlier detection is not enabled for this cluster.
    #[prost(message, optional, tag = "5")]
    pub local_origin_success_rate_ejection_threshold: ::core::option::Option<
        super::super::r#type::v3::Percent,
    >,
    /// :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
    #[prost(message, optional, tag = "6")]
    pub circuit_breakers: ::core::option::Option<
        super::super::config::cluster::v3::CircuitBreakers,
    >,
    /// Observability name of the cluster.
    #[prost(string, tag = "7")]
    pub observability_name: ::prost::alloc::string::String,
    /// The :ref:`EDS service name <envoy_v3_api_field_config.cluster.v3.Cluster.EdsClusterConfig.service_name>` if the cluster is an EDS cluster.
    #[prost(string, tag = "8")]
    pub eds_service_name: ::prost::alloc::string::String,
}
impl ::prost::Name for ClusterStatus {
    const NAME: &'static str = "ClusterStatus";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ClusterStatus".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ClusterStatus".into()
    }
}
/// Current state of a particular host.
/// \[\#next-free-field: 10\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostStatus {
    /// Address of this host.
    #[prost(message, optional, tag = "1")]
    pub address: ::core::option::Option<super::super::config::core::v3::Address>,
    /// List of stats specific to this host.
    #[prost(message, repeated, tag = "2")]
    pub stats: ::prost::alloc::vec::Vec<SimpleMetric>,
    /// The host's current health status.
    #[prost(message, optional, tag = "3")]
    pub health_status: ::core::option::Option<HostHealthStatus>,
    /// The success rate for this host during the last measurement interval.
    ///
    /// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is `false`, all errors: externally and locally generated were used in success rate calculation.
    /// * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is `true`, only externally generated errors were used in success rate calculation.
    ///
    /// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
    ///
    /// .. note::
    ///
    /// The message will be missing if the host didn't receive enough traffic to calculate a reliable success rate, or
    /// if the cluster had too few hosts to apply outlier ejection based on success rate.
    #[prost(message, optional, tag = "4")]
    pub success_rate: ::core::option::Option<super::super::r#type::v3::Percent>,
    /// The host's weight. If not configured, the value defaults to 1.
    #[prost(uint32, tag = "5")]
    pub weight: u32,
    /// The hostname of the host, if applicable.
    #[prost(string, tag = "6")]
    pub hostname: ::prost::alloc::string::String,
    /// The host's priority. If not configured, the value defaults to 0 (highest priority).
    #[prost(uint32, tag = "7")]
    pub priority: u32,
    /// The success rate for this host during the last interval, considering only locally generated errors. Externally
    /// generated errors are treated as successes.
    ///
    ///
    /// This field is only relevant when
    /// : ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    ///   is set to `true`.
    ///
    ///
    /// For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation.
    ///
    /// .. note::
    ///
    /// The message will be missing if the host didn't receive enough traffic to compute a success rate, or if the
    /// cluster didn't have enough hosts to perform outlier ejection based on success rate.
    #[prost(message, optional, tag = "8")]
    pub local_origin_success_rate: ::core::option::Option<
        super::super::r#type::v3::Percent,
    >,
    /// locality of the host.
    #[prost(message, optional, tag = "9")]
    pub locality: ::core::option::Option<super::super::config::core::v3::Locality>,
}
impl ::prost::Name for HostStatus {
    const NAME: &'static str = "HostStatus";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.HostStatus".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.HostStatus".into()
    }
}
/// Health status for a host.
/// \[\#next-free-field: 9\]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HostHealthStatus {
    /// The host is currently failing active health checks.
    #[prost(bool, tag = "1")]
    pub failed_active_health_check: bool,
    /// The host is currently considered an outlier and has been ejected.
    #[prost(bool, tag = "2")]
    pub failed_outlier_check: bool,
    /// The host is currently being marked as degraded through active health checking.
    #[prost(bool, tag = "4")]
    pub failed_active_degraded_check: bool,
    /// The host has been removed from service discovery, but is being stabilized due to active
    /// health checking.
    #[prost(bool, tag = "5")]
    pub pending_dynamic_removal: bool,
    /// The host is awaiting first health check.
    #[prost(bool, tag = "6")]
    pub pending_active_hc: bool,
    /// The host should be excluded from panic, spillover, etc. calculations because it was explicitly
    /// taken out of rotation via protocol signal and is not meant to be routed to.
    #[prost(bool, tag = "7")]
    pub excluded_via_immediate_hc_fail: bool,
    /// The host failed active health check due to timeout.
    #[prost(bool, tag = "8")]
    pub active_hc_timeout: bool,
    /// Health status as reported by EDS.
    ///
    /// .. note::
    ///
    /// Currently, only `HEALTHY` and `UNHEALTHY` are supported.
    ///
    /// \[\#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.\]
    #[prost(enumeration = "super::super::config::core::v3::HealthStatus", tag = "3")]
    pub eds_health_status: i32,
}
impl ::prost::Name for HostHealthStatus {
    const NAME: &'static str = "HostHealthStatus";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.HostHealthStatus".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.HostHealthStatus".into()
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateFailureState {
    /// What the component configuration would have been if the update had succeeded.
    /// This field may not be populated by xDS clients due to storage overhead.
    #[prost(message, optional, tag = "1")]
    pub failed_configuration: ::core::option::Option<
        super::super::super::google::protobuf::Any,
    >,
    /// Time of the latest failed update attempt.
    #[prost(message, optional, tag = "2")]
    pub last_update_attempt: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    /// Details about the last failed update attempt.
    #[prost(string, tag = "3")]
    pub details: ::prost::alloc::string::String,
    /// This is the version of the rejected resource.
    /// \[\#not-implemented-hide:\]
    #[prost(string, tag = "4")]
    pub version_info: ::prost::alloc::string::String,
}
impl ::prost::Name for UpdateFailureState {
    const NAME: &'static str = "UpdateFailureState";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.UpdateFailureState".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.UpdateFailureState".into()
    }
}
/// Envoy's listener manager fills this message with all currently known listeners. Listener
/// configuration information can be used to recreate an Envoy configuration by populating all
/// listeners as static listeners or by returning them in a LDS response.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListenersConfigDump {
    /// This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
    /// last processed LDS discovery response. If there are only static bootstrap listeners, this field
    /// will be "".
    #[prost(string, tag = "1")]
    pub version_info: ::prost::alloc::string::String,
    /// The statically loaded listener configs.
    #[prost(message, repeated, tag = "2")]
    pub static_listeners: ::prost::alloc::vec::Vec<
        listeners_config_dump::StaticListener,
    >,
    /// State for any warming, active, or draining listeners.
    #[prost(message, repeated, tag = "3")]
    pub dynamic_listeners: ::prost::alloc::vec::Vec<
        listeners_config_dump::DynamicListener,
    >,
}
/// Nested message and enum types in `ListenersConfigDump`.
pub mod listeners_config_dump {
    /// Describes a statically loaded listener.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct StaticListener {
        /// The listener config.
        #[prost(message, optional, tag = "1")]
        pub listener: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Listener was last successfully updated.
        #[prost(message, optional, tag = "2")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for StaticListener {
        const NAME: &'static str = "StaticListener";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ListenersConfigDump.StaticListener".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ListenersConfigDump.StaticListener"
                .into()
        }
    }
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicListenerState {
        ///
        /// This is the per-resource version information. This version is currently taken from the
        /// : ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
        ///   that the listener was loaded. In the future, discrete per-listener versions may be supported
        ///   by the API.
        #[prost(string, tag = "1")]
        pub version_info: ::prost::alloc::string::String,
        /// The listener config.
        #[prost(message, optional, tag = "2")]
        pub listener: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Listener was last successfully updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for DynamicListenerState {
        const NAME: &'static str = "DynamicListenerState";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ListenersConfigDump.DynamicListenerState".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ListenersConfigDump.DynamicListenerState"
                .into()
        }
    }
    /// Describes a dynamically loaded listener via the LDS API.
    /// \[\#next-free-field: 7\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicListener {
        /// The name or unique id of this listener, pulled from the DynamicListenerState config.
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        /// The listener state for any active listener by this name.
        /// These are listeners that are available to service data plane traffic.
        #[prost(message, optional, tag = "2")]
        pub active_state: ::core::option::Option<DynamicListenerState>,
        /// The listener state for any warming listener by this name.
        /// These are listeners that are currently undergoing warming in preparation to service data
        /// plane traffic. Note that if attempting to recreate an Envoy configuration from a
        /// configuration dump, the warming listeners should generally be discarded.
        #[prost(message, optional, tag = "3")]
        pub warming_state: ::core::option::Option<DynamicListenerState>,
        /// The listener state for any draining listener by this name.
        /// These are listeners that are currently undergoing draining in preparation to stop servicing
        /// data plane traffic. Note that if attempting to recreate an Envoy configuration from a
        /// configuration dump, the draining listeners should generally be discarded.
        #[prost(message, optional, tag = "4")]
        pub draining_state: ::core::option::Option<DynamicListenerState>,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        #[prost(message, optional, tag = "5")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "6")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicListener {
        const NAME: &'static str = "DynamicListener";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ListenersConfigDump.DynamicListener".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ListenersConfigDump.DynamicListener"
                .into()
        }
    }
}
impl ::prost::Name for ListenersConfigDump {
    const NAME: &'static str = "ListenersConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ListenersConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ListenersConfigDump".into()
    }
}
/// Envoy's cluster manager fills this message with all currently known clusters. Cluster
/// configuration information can be used to recreate an Envoy configuration by populating all
/// clusters as static clusters or by returning them in a CDS response.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClustersConfigDump {
    /// This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
    /// last processed CDS discovery response. If there are only static bootstrap clusters, this field
    /// will be "".
    #[prost(string, tag = "1")]
    pub version_info: ::prost::alloc::string::String,
    /// The statically loaded cluster configs.
    #[prost(message, repeated, tag = "2")]
    pub static_clusters: ::prost::alloc::vec::Vec<clusters_config_dump::StaticCluster>,
    /// The dynamically loaded active clusters. These are clusters that are available to service
    /// data plane traffic.
    #[prost(message, repeated, tag = "3")]
    pub dynamic_active_clusters: ::prost::alloc::vec::Vec<
        clusters_config_dump::DynamicCluster,
    >,
    /// The dynamically loaded warming clusters. These are clusters that are currently undergoing
    /// warming in preparation to service data plane traffic. Note that if attempting to recreate an
    /// Envoy configuration from a configuration dump, the warming clusters should generally be
    /// discarded.
    #[prost(message, repeated, tag = "4")]
    pub dynamic_warming_clusters: ::prost::alloc::vec::Vec<
        clusters_config_dump::DynamicCluster,
    >,
}
/// Nested message and enum types in `ClustersConfigDump`.
pub mod clusters_config_dump {
    /// Describes a statically loaded cluster.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct StaticCluster {
        /// The cluster config.
        #[prost(message, optional, tag = "1")]
        pub cluster: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Cluster was last updated.
        #[prost(message, optional, tag = "2")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for StaticCluster {
        const NAME: &'static str = "StaticCluster";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ClustersConfigDump.StaticCluster".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ClustersConfigDump.StaticCluster".into()
        }
    }
    /// Describes a dynamically loaded cluster via the CDS API.
    /// \[\#next-free-field: 6\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicCluster {
        ///
        /// This is the per-resource version information. This version is currently taken from the
        /// : ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
        ///   that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
        ///   the API.
        #[prost(string, tag = "1")]
        pub version_info: ::prost::alloc::string::String,
        /// The cluster config.
        #[prost(message, optional, tag = "2")]
        pub cluster: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Cluster was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "4")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "5")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicCluster {
        const NAME: &'static str = "DynamicCluster";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ClustersConfigDump.DynamicCluster".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ClustersConfigDump.DynamicCluster".into()
        }
    }
}
impl ::prost::Name for ClustersConfigDump {
    const NAME: &'static str = "ClustersConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ClustersConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ClustersConfigDump".into()
    }
}
/// Envoy's RDS implementation fills this message with all currently loaded routes, as described by
/// their RouteConfiguration objects. Static routes that are either defined in the bootstrap configuration
/// or defined inline while configuring listeners are separated from those configured dynamically via RDS.
/// Route configuration information can be used to recreate an Envoy configuration by populating all routes
/// as static routes or by returning them in RDS responses.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoutesConfigDump {
    /// The statically loaded route configs.
    #[prost(message, repeated, tag = "2")]
    pub static_route_configs: ::prost::alloc::vec::Vec<
        routes_config_dump::StaticRouteConfig,
    >,
    /// The dynamically loaded route configs.
    #[prost(message, repeated, tag = "3")]
    pub dynamic_route_configs: ::prost::alloc::vec::Vec<
        routes_config_dump::DynamicRouteConfig,
    >,
}
/// Nested message and enum types in `RoutesConfigDump`.
pub mod routes_config_dump {
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct StaticRouteConfig {
        /// The route config.
        #[prost(message, optional, tag = "1")]
        pub route_config: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Route was last updated.
        #[prost(message, optional, tag = "2")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for StaticRouteConfig {
        const NAME: &'static str = "StaticRouteConfig";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.RoutesConfigDump.StaticRouteConfig".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.RoutesConfigDump.StaticRouteConfig"
                .into()
        }
    }
    /// \[\#next-free-field: 6\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicRouteConfig {
        ///
        /// This is the per-resource version information. This version is currently taken from the
        /// : ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
        ///   the route configuration was loaded.
        #[prost(string, tag = "1")]
        pub version_info: ::prost::alloc::string::String,
        /// The route config.
        #[prost(message, optional, tag = "2")]
        pub route_config: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the Route was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "4")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "5")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicRouteConfig {
        const NAME: &'static str = "DynamicRouteConfig";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.RoutesConfigDump.DynamicRouteConfig".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.RoutesConfigDump.DynamicRouteConfig"
                .into()
        }
    }
}
impl ::prost::Name for RoutesConfigDump {
    const NAME: &'static str = "RoutesConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.RoutesConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.RoutesConfigDump".into()
    }
}
/// Envoy's scoped RDS implementation fills this message with all currently loaded route
/// configuration scopes (defined via ScopedRouteConfigurationsSet protos). This message lists both
/// the scopes defined inline with the higher order object (i.e., the HttpConnectionManager) and the
/// dynamically obtained scopes via the SRDS API.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScopedRoutesConfigDump {
    /// The statically loaded scoped route configs.
    #[prost(message, repeated, tag = "1")]
    pub inline_scoped_route_configs: ::prost::alloc::vec::Vec<
        scoped_routes_config_dump::InlineScopedRouteConfigs,
    >,
    /// The dynamically loaded scoped route configs.
    #[prost(message, repeated, tag = "2")]
    pub dynamic_scoped_route_configs: ::prost::alloc::vec::Vec<
        scoped_routes_config_dump::DynamicScopedRouteConfigs,
    >,
}
/// Nested message and enum types in `ScopedRoutesConfigDump`.
pub mod scoped_routes_config_dump {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct InlineScopedRouteConfigs {
        /// The name assigned to the scoped route configurations.
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        /// The scoped route configurations.
        #[prost(message, repeated, tag = "2")]
        pub scoped_route_configs: ::prost::alloc::vec::Vec<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the scoped route config set was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for InlineScopedRouteConfigs {
        const NAME: &'static str = "InlineScopedRouteConfigs";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ScopedRoutesConfigDump.InlineScopedRouteConfigs".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ScopedRoutesConfigDump.InlineScopedRouteConfigs"
                .into()
        }
    }
    /// \[\#next-free-field: 7\]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct DynamicScopedRouteConfigs {
        /// The name assigned to the scoped route configurations.
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        ///
        /// This is the per-resource version information. This version is currently taken from the
        /// : ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
        ///   the scoped routes configuration was loaded.
        #[prost(string, tag = "2")]
        pub version_info: ::prost::alloc::string::String,
        /// The scoped route configurations.
        #[prost(message, repeated, tag = "3")]
        pub scoped_route_configs: ::prost::alloc::vec::Vec<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the scoped route config set was last updated.
        #[prost(message, optional, tag = "4")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "5")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "6")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicScopedRouteConfigs {
        const NAME: &'static str = "DynamicScopedRouteConfigs";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.ScopedRoutesConfigDump.DynamicScopedRouteConfigs".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.ScopedRoutesConfigDump.DynamicScopedRouteConfigs"
                .into()
        }
    }
}
impl ::prost::Name for ScopedRoutesConfigDump {
    const NAME: &'static str = "ScopedRoutesConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ScopedRoutesConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ScopedRoutesConfigDump".into()
    }
}
/// Envoy's admin fill this message with all currently known endpoints. Endpoint
/// configuration information can be used to recreate an Envoy configuration by populating all
/// endpoints as static endpoints or by returning them in an EDS response.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EndpointsConfigDump {
    /// The statically loaded endpoint configs.
    #[prost(message, repeated, tag = "2")]
    pub static_endpoint_configs: ::prost::alloc::vec::Vec<
        endpoints_config_dump::StaticEndpointConfig,
    >,
    /// The dynamically loaded endpoint configs.
    #[prost(message, repeated, tag = "3")]
    pub dynamic_endpoint_configs: ::prost::alloc::vec::Vec<
        endpoints_config_dump::DynamicEndpointConfig,
    >,
}
/// Nested message and enum types in `EndpointsConfigDump`.
pub mod endpoints_config_dump {
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct StaticEndpointConfig {
        /// The endpoint config.
        #[prost(message, optional, tag = "1")]
        pub endpoint_config: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// \[\#not-implemented-hide:\] The timestamp when the Endpoint was last updated.
        #[prost(message, optional, tag = "2")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    impl ::prost::Name for StaticEndpointConfig {
        const NAME: &'static str = "StaticEndpointConfig";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig"
                .into()
        }
    }
    /// \[\#next-free-field: 6\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicEndpointConfig {
        ///
        /// \[\#not-implemented-hide:\] This is the per-resource version information. This version is currently taken from the
        /// : ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
        ///   the endpoint configuration was loaded.
        #[prost(string, tag = "1")]
        pub version_info: ::prost::alloc::string::String,
        /// The endpoint config.
        #[prost(message, optional, tag = "2")]
        pub endpoint_config: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// \[\#not-implemented-hide:\] The timestamp when the Endpoint was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "4")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "5")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicEndpointConfig {
        const NAME: &'static str = "DynamicEndpointConfig";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig"
                .into()
        }
    }
}
impl ::prost::Name for EndpointsConfigDump {
    const NAME: &'static str = "EndpointsConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.EndpointsConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.EndpointsConfigDump".into()
    }
}
/// Envoy's ECDS service fills this message with all currently extension
/// configuration. Extension configuration information can be used to recreate
/// an Envoy ECDS listener and HTTP filters as static filters or by returning
/// them in ECDS response.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EcdsConfigDump {
    /// The ECDS filter configs.
    #[prost(message, repeated, tag = "1")]
    pub ecds_filters: ::prost::alloc::vec::Vec<ecds_config_dump::EcdsFilterConfig>,
}
/// Nested message and enum types in `EcdsConfigDump`.
pub mod ecds_config_dump {
    /// \[\#next-free-field: 6\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct EcdsFilterConfig {
        /// This is the per-resource version information. This version is currently
        /// taken from the :ref:`version_info  <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
        /// field at the time that the ECDS filter was loaded.
        #[prost(string, tag = "1")]
        pub version_info: ::prost::alloc::string::String,
        /// The ECDS filter config.
        #[prost(message, optional, tag = "2")]
        pub ecds_filter: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// The timestamp when the ECDS filter was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The `error_state` field contains the rejected version of this
        /// particular resource along with the reason and timestamp. For successfully
        /// updated or acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "4")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "5")]
        pub client_status: i32,
    }
    impl ::prost::Name for EcdsFilterConfig {
        const NAME: &'static str = "EcdsFilterConfig";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.EcdsConfigDump.EcdsFilterConfig".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.EcdsConfigDump.EcdsFilterConfig".into()
        }
    }
}
impl ::prost::Name for EcdsConfigDump {
    const NAME: &'static str = "EcdsConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.EcdsConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.EcdsConfigDump".into()
    }
}
/// Resource status from the view of a xDS client, which tells the synchronization
/// status between the xDS client and the xDS server.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ClientResourceStatus {
    /// Resource status is not available/unknown.
    Unknown = 0,
    /// Client requested this resource but hasn't received any update from management
    /// server. The client will not fail requests, but will queue them until update
    /// arrives or the client times out waiting for the resource.
    Requested = 1,
    /// This resource has been requested by the client but has either not been
    /// delivered by the server or was previously delivered by the server and then
    /// subsequently removed from resources provided by the server. For more
    /// information, please refer to the :ref:`"Knowing When a Requested Resource  Does Not Exist" <xds_protocol_resource_not_existed>` section.
    DoesNotExist = 2,
    /// Client received this resource and replied with ACK.
    Acked = 3,
    /// Client received this resource and replied with NACK.
    Nacked = 4,
    /// Client received an error from the control plane. The attached config
    /// dump is the most recent accepted one. If no config is accepted yet,
    /// the attached config dump will be empty.
    ReceivedError = 5,
    /// Client timed out waiting for the resource from the control plane.
    Timeout = 6,
}
impl ClientResourceStatus {
    /// 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::Unknown => "UNKNOWN",
            Self::Requested => "REQUESTED",
            Self::DoesNotExist => "DOES_NOT_EXIST",
            Self::Acked => "ACKED",
            Self::Nacked => "NACKED",
            Self::ReceivedError => "RECEIVED_ERROR",
            Self::Timeout => "TIMEOUT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UNKNOWN" => Some(Self::Unknown),
            "REQUESTED" => Some(Self::Requested),
            "DOES_NOT_EXIST" => Some(Self::DoesNotExist),
            "ACKED" => Some(Self::Acked),
            "NACKED" => Some(Self::Nacked),
            "RECEIVED_ERROR" => Some(Self::ReceivedError),
            "TIMEOUT" => Some(Self::Timeout),
            _ => None,
        }
    }
}
/// The :ref:`/config_dump <operations_admin_interface_config_dump>` admin endpoint uses this wrapper
/// message to maintain and serve arbitrary configuration information from any component in Envoy.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigDump {
    ///
    /// This list is serialized and dumped in its entirety at the
    /// : ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
    ///
    ///
    /// The following configurations are currently supported and will be dumped in the order given
    /// below:
    ///
    /// * `bootstrap`: :ref:`BootstrapConfigDump <envoy_v3_api_msg_admin.v3.BootstrapConfigDump>`
    /// * `clusters`: :ref:`ClustersConfigDump <envoy_v3_api_msg_admin.v3.ClustersConfigDump>`
    /// * `ecds_filter_http`: :ref:`EcdsConfigDump <envoy_v3_api_msg_admin.v3.EcdsConfigDump>`
    /// * `ecds_filter_quic_listener`: :ref:`EcdsConfigDump <envoy_v3_api_msg_admin.v3.EcdsConfigDump>`
    /// * `ecds_filter_tcp_listener`: :ref:`EcdsConfigDump <envoy_v3_api_msg_admin.v3.EcdsConfigDump>`
    /// * `endpoints`:  :ref:`EndpointsConfigDump <envoy_v3_api_msg_admin.v3.EndpointsConfigDump>`
    /// * `listeners`: :ref:`ListenersConfigDump <envoy_v3_api_msg_admin.v3.ListenersConfigDump>`
    /// * `scoped_routes`: :ref:`ScopedRoutesConfigDump <envoy_v3_api_msg_admin.v3.ScopedRoutesConfigDump>`
    /// * `routes`:  :ref:`RoutesConfigDump <envoy_v3_api_msg_admin.v3.RoutesConfigDump>`
    /// * `secrets`:  :ref:`SecretsConfigDump <envoy_v3_api_msg_admin.v3.SecretsConfigDump>`
    ///
    /// EDS Configuration will only be dumped by using parameter `?include_eds`
    ///
    /// Currently ECDS is supported in HTTP and listener filters. Note, ECDS configuration for
    /// either HTTP or listener filter will only be dumped if it is actually configured.
    ///
    ///
    /// You can filter output with the resource and mask query parameters.
    /// See :ref:`/config_dump?resource={} <operations_admin_interface_config_dump_by_resource>`,
    /// : ref:`/config_dump?mask={} <operations_admin_interface_config_dump_by_mask>`,
    ///   or :ref:`/config_dump?resource={},mask={}  <operations_admin_interface_config_dump_by_resource_and_mask>` for more information.
    #[prost(message, repeated, tag = "1")]
    pub configs: ::prost::alloc::vec::Vec<super::super::super::google::protobuf::Any>,
}
impl ::prost::Name for ConfigDump {
    const NAME: &'static str = "ConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ConfigDump".into()
    }
}
/// This message describes the bootstrap configuration that Envoy was started with. This includes
/// any CLI overrides that were merged. Bootstrap configuration information can be used to recreate
/// the static portions of an Envoy configuration by reusing the output as the bootstrap
/// configuration for another Envoy.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BootstrapConfigDump {
    #[prost(message, optional, tag = "1")]
    pub bootstrap: ::core::option::Option<
        super::super::config::bootstrap::v3::Bootstrap,
    >,
    /// The timestamp when the BootstrapConfig was last updated.
    #[prost(message, optional, tag = "2")]
    pub last_updated: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
}
impl ::prost::Name for BootstrapConfigDump {
    const NAME: &'static str = "BootstrapConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.BootstrapConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump".into()
    }
}
/// Envoys SDS implementation fills this message with all secrets fetched dynamically via SDS.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretsConfigDump {
    /// The statically loaded secrets.
    #[prost(message, repeated, tag = "1")]
    pub static_secrets: ::prost::alloc::vec::Vec<secrets_config_dump::StaticSecret>,
    /// The dynamically loaded active secrets. These are secrets that are available to service
    /// clusters or listeners.
    #[prost(message, repeated, tag = "2")]
    pub dynamic_active_secrets: ::prost::alloc::vec::Vec<
        secrets_config_dump::DynamicSecret,
    >,
    /// The dynamically loaded warming secrets. These are secrets that are currently undergoing
    /// warming in preparation to service clusters or listeners.
    #[prost(message, repeated, tag = "3")]
    pub dynamic_warming_secrets: ::prost::alloc::vec::Vec<
        secrets_config_dump::DynamicSecret,
    >,
}
/// Nested message and enum types in `SecretsConfigDump`.
pub mod secrets_config_dump {
    /// DynamicSecret contains secret information fetched via SDS.
    /// \[\#next-free-field: 7\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct DynamicSecret {
        /// The name assigned to the secret.
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        /// This is the per-resource version information.
        #[prost(string, tag = "2")]
        pub version_info: ::prost::alloc::string::String,
        /// The timestamp when the secret was last updated.
        #[prost(message, optional, tag = "3")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// The actual secret information.
        /// Security sensitive information is redacted (replaced with "\[redacted\]") for
        /// private keys and passwords in TLS certificates.
        #[prost(message, optional, tag = "4")]
        pub secret: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
        /// Set if the last update failed, cleared after the next successful update.
        /// The *error_state* field contains the rejected version of this particular
        /// resource along with the reason and timestamp. For successfully updated or
        /// acknowledged resource, this field should be empty.
        /// \[\#not-implemented-hide:\]
        #[prost(message, optional, tag = "5")]
        pub error_state: ::core::option::Option<super::UpdateFailureState>,
        /// The client status of this resource.
        /// \[\#not-implemented-hide:\]
        #[prost(enumeration = "super::ClientResourceStatus", tag = "6")]
        pub client_status: i32,
    }
    impl ::prost::Name for DynamicSecret {
        const NAME: &'static str = "DynamicSecret";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.SecretsConfigDump.DynamicSecret".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.SecretsConfigDump.DynamicSecret".into()
        }
    }
    /// StaticSecret specifies statically loaded secret in bootstrap.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct StaticSecret {
        /// The name assigned to the secret.
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        /// The timestamp when the secret was last updated.
        #[prost(message, optional, tag = "2")]
        pub last_updated: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
        /// The actual secret information.
        /// Security sensitive information is redacted (replaced with "\[redacted\]") for
        /// private keys and passwords in TLS certificates.
        #[prost(message, optional, tag = "3")]
        pub secret: ::core::option::Option<
            super::super::super::super::google::protobuf::Any,
        >,
    }
    impl ::prost::Name for StaticSecret {
        const NAME: &'static str = "StaticSecret";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.SecretsConfigDump.StaticSecret".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.SecretsConfigDump.StaticSecret".into()
        }
    }
}
impl ::prost::Name for SecretsConfigDump {
    const NAME: &'static str = "SecretsConfigDump";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.SecretsConfigDump".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.SecretsConfigDump".into()
    }
}
/// Dumps of unready targets of envoy init managers. Envoy's admin fills this message with init managers,
/// which provides the information of their unready targets.
/// The :ref:`/init_dump <operations_admin_interface_init_dump>` will dump all unready targets information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnreadyTargetsDumps {
    /// You can choose specific component to dump unready targets with mask query parameter.
    /// See :ref:`/init_dump?mask={} <operations_admin_interface_init_dump_by_mask>` for more information.
    /// The dumps of unready targets of all init managers.
    #[prost(message, repeated, tag = "1")]
    pub unready_targets_dumps: ::prost::alloc::vec::Vec<
        unready_targets_dumps::UnreadyTargetsDump,
    >,
}
/// Nested message and enum types in `UnreadyTargetsDumps`.
pub mod unready_targets_dumps {
    /// Message of unready targets information of an init manager.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct UnreadyTargetsDump {
        /// Name of the init manager. Example: "init_manager_xxx".
        #[prost(string, tag = "1")]
        pub name: ::prost::alloc::string::String,
        /// Names of unready targets of the init manager. Example: "target_xxx".
        #[prost(string, repeated, tag = "2")]
        pub target_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    impl ::prost::Name for UnreadyTargetsDump {
        const NAME: &'static str = "UnreadyTargetsDump";
        const PACKAGE: &'static str = "envoy.admin.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.admin.v3.UnreadyTargetsDumps.UnreadyTargetsDump".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.admin.v3.UnreadyTargetsDumps.UnreadyTargetsDump"
                .into()
        }
    }
}
impl ::prost::Name for UnreadyTargetsDumps {
    const NAME: &'static str = "UnreadyTargetsDumps";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.UnreadyTargetsDumps".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.UnreadyTargetsDumps".into()
    }
}
/// Admin endpoint uses this wrapper for `/listeners` to display listener status information.
/// See :ref:`/listeners <operations_admin_interface_listeners>` for more information.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Listeners {
    /// List of listener statuses.
    #[prost(message, repeated, tag = "1")]
    pub listener_statuses: ::prost::alloc::vec::Vec<ListenerStatus>,
}
impl ::prost::Name for Listeners {
    const NAME: &'static str = "Listeners";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.Listeners".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.Listeners".into()
    }
}
/// Details an individual listener's current status.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListenerStatus {
    /// Name of the listener
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The actual local address that the listener is listening on. If a listener was configured
    /// to listen on port 0, then this address has the port that was allocated by the OS.
    #[prost(message, optional, tag = "2")]
    pub local_address: ::core::option::Option<super::super::config::core::v3::Address>,
    /// The additional addresses the listener is listening on as specified via the :ref:`additional_addresses <envoy_v3_api_field_config.listener.v3.Listener.additional_addresses>`
    /// configuration.
    #[prost(message, repeated, tag = "3")]
    pub additional_local_addresses: ::prost::alloc::vec::Vec<
        super::super::config::core::v3::Address,
    >,
}
impl ::prost::Name for ListenerStatus {
    const NAME: &'static str = "ListenerStatus";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ListenerStatus".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ListenerStatus".into()
    }
}
/// Proto representation of the internal memory consumption of an Envoy instance. These represent
/// values extracted from an internal TCMalloc instance. For more information, see the section of the
/// docs entitled ["Generic Tcmalloc Status"](<https://gperftools.github.io/gperftools/tcmalloc.html>).
/// \[\#next-free-field: 7\]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Memory {
    /// The number of bytes allocated by the heap for Envoy. This is an alias for
    /// `generic.current_allocated_bytes`.
    #[prost(uint64, tag = "1")]
    pub allocated: u64,
    /// The number of bytes reserved by the heap but not necessarily allocated. This is an alias for
    /// `generic.heap_size`.
    #[prost(uint64, tag = "2")]
    pub heap_size: u64,
    /// The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
    /// virtual memory usage, and depending on the OS, typically do not count towards physical memory
    /// usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
    #[prost(uint64, tag = "3")]
    pub pageheap_unmapped: u64,
    /// The number of bytes in free, mapped pages in the page heap. These bytes always count towards
    /// virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
    /// count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
    #[prost(uint64, tag = "4")]
    pub pageheap_free: u64,
    /// The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias
    /// for `tcmalloc.current_total_thread_cache_bytes`.
    #[prost(uint64, tag = "5")]
    pub total_thread_cache: u64,
    /// The number of bytes of the physical memory usage by the allocator. This is an alias for
    /// `generic.total_physical_bytes`.
    #[prost(uint64, tag = "6")]
    pub total_physical_bytes: u64,
}
impl ::prost::Name for Memory {
    const NAME: &'static str = "Memory";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.Memory".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.Memory".into()
    }
}
/// Proto representation of the statistics collected upon absl::Mutex contention, if Envoy is run
/// under :option:`--enable-mutex-tracing`. For more information, see the `absl::Mutex`
/// [docs](<https://abseil.io/about/design/mutex#extra-features>).
///
/// *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not
/// correspond to core clock frequency. For more information, see the `CycleClock`
/// [docs](<https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h>).
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MutexStats {
    /// The number of individual mutex contentions which have occurred since startup.
    #[prost(uint64, tag = "1")]
    pub num_contentions: u64,
    /// The length of the current contention wait cycle.
    #[prost(uint64, tag = "2")]
    pub current_wait_cycles: u64,
    /// The lifetime total of all contention wait cycles.
    #[prost(uint64, tag = "3")]
    pub lifetime_wait_cycles: u64,
}
impl ::prost::Name for MutexStats {
    const NAME: &'static str = "MutexStats";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.MutexStats".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.MutexStats".into()
    }
}
/// Proto representation of the value returned by /server_info, containing
/// server version/server status information.
/// \[\#next-free-field: 8\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerInfo {
    /// Server version.
    #[prost(string, tag = "1")]
    pub version: ::prost::alloc::string::String,
    /// State of the server.
    #[prost(enumeration = "server_info::State", tag = "2")]
    pub state: i32,
    /// Uptime since current epoch was started.
    #[prost(message, optional, tag = "3")]
    pub uptime_current_epoch: ::core::option::Option<
        super::super::super::google::protobuf::Duration,
    >,
    /// Uptime since the start of the first epoch.
    #[prost(message, optional, tag = "4")]
    pub uptime_all_epochs: ::core::option::Option<
        super::super::super::google::protobuf::Duration,
    >,
    /// Hot restart version.
    #[prost(string, tag = "5")]
    pub hot_restart_version: ::prost::alloc::string::String,
    /// Command line options the server is currently running with.
    #[prost(message, optional, tag = "6")]
    pub command_line_options: ::core::option::Option<CommandLineOptions>,
    /// Populated node identity of this server.
    #[prost(message, optional, tag = "7")]
    pub node: ::core::option::Option<super::super::config::core::v3::Node>,
}
/// Nested message and enum types in `ServerInfo`.
pub mod server_info {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Server is live and serving traffic.
        Live = 0,
        /// Server is draining listeners in response to external health checks failing.
        Draining = 1,
        /// Server has not yet completed cluster manager initialization.
        PreInitializing = 2,
        /// Server is running the cluster manager initialization callbacks (e.g., RDS).
        Initializing = 3,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Live => "LIVE",
                Self::Draining => "DRAINING",
                Self::PreInitializing => "PRE_INITIALIZING",
                Self::Initializing => "INITIALIZING",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "LIVE" => Some(Self::Live),
                "DRAINING" => Some(Self::Draining),
                "PRE_INITIALIZING" => Some(Self::PreInitializing),
                "INITIALIZING" => Some(Self::Initializing),
                _ => None,
            }
        }
    }
}
impl ::prost::Name for ServerInfo {
    const NAME: &'static str = "ServerInfo";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.ServerInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.ServerInfo".into()
    }
}
/// \[\#next-free-field: 43\]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CommandLineOptions {
    /// See :option:`--base-id` for details.
    #[prost(uint64, tag = "1")]
    pub base_id: u64,
    /// See :option:`--use-dynamic-base-id` for details.
    #[prost(bool, tag = "31")]
    pub use_dynamic_base_id: bool,
    /// See :option:`--skip-hot-restart-on-no-parent` for details.
    #[prost(bool, tag = "39")]
    pub skip_hot_restart_on_no_parent: bool,
    /// See :option:`--skip-hot-restart-parent-stats` for details.
    #[prost(bool, tag = "40")]
    pub skip_hot_restart_parent_stats: bool,
    /// See :option:`--base-id-path` for details.
    #[prost(string, tag = "32")]
    pub base_id_path: ::prost::alloc::string::String,
    /// See :option:`--concurrency` for details.
    #[prost(uint32, tag = "2")]
    pub concurrency: u32,
    /// See :option:`--config-path` for details.
    #[prost(string, tag = "3")]
    pub config_path: ::prost::alloc::string::String,
    /// See :option:`--config-yaml` for details.
    #[prost(string, tag = "4")]
    pub config_yaml: ::prost::alloc::string::String,
    /// See :option:`--allow-unknown-static-fields` for details.
    #[prost(bool, tag = "5")]
    pub allow_unknown_static_fields: bool,
    /// See :option:`--reject-unknown-dynamic-fields` for details.
    #[prost(bool, tag = "26")]
    pub reject_unknown_dynamic_fields: bool,
    /// See :option:`--ignore-unknown-dynamic-fields` for details.
    #[prost(bool, tag = "30")]
    pub ignore_unknown_dynamic_fields: bool,
    /// See :option:`--skip-deprecated-logs` for details.
    #[prost(bool, tag = "41")]
    pub skip_deprecated_logs: bool,
    /// See :option:`--admin-address-path` for details.
    #[prost(string, tag = "6")]
    pub admin_address_path: ::prost::alloc::string::String,
    /// See :option:`--local-address-ip-version` for details.
    #[prost(enumeration = "command_line_options::IpVersion", tag = "7")]
    pub local_address_ip_version: i32,
    /// See :option:`--log-level` for details.
    #[prost(string, tag = "8")]
    pub log_level: ::prost::alloc::string::String,
    /// See :option:`--component-log-level` for details.
    #[prost(string, tag = "9")]
    pub component_log_level: ::prost::alloc::string::String,
    /// See :option:`--log-format` for details.
    #[prost(string, tag = "10")]
    pub log_format: ::prost::alloc::string::String,
    /// See :option:`--log-format-escaped` for details.
    #[prost(bool, tag = "27")]
    pub log_format_escaped: bool,
    /// See :option:`--log-path` for details.
    #[prost(string, tag = "11")]
    pub log_path: ::prost::alloc::string::String,
    /// See :option:`--service-cluster` for details.
    #[prost(string, tag = "13")]
    pub service_cluster: ::prost::alloc::string::String,
    /// See :option:`--service-node` for details.
    #[prost(string, tag = "14")]
    pub service_node: ::prost::alloc::string::String,
    /// See :option:`--service-zone` for details.
    #[prost(string, tag = "15")]
    pub service_zone: ::prost::alloc::string::String,
    /// See :option:`--file-flush-interval-msec` for details.
    #[prost(message, optional, tag = "16")]
    pub file_flush_interval: ::core::option::Option<
        super::super::super::google::protobuf::Duration,
    >,
    /// See :option:`--file-flush-min-size-kb` for details.
    #[prost(uint32, tag = "42")]
    pub file_flush_min_size: u32,
    /// See :option:`--drain-time-s` for details.
    #[prost(message, optional, tag = "17")]
    pub drain_time: ::core::option::Option<
        super::super::super::google::protobuf::Duration,
    >,
    /// See :option:`--drain-strategy` for details.
    #[prost(enumeration = "command_line_options::DrainStrategy", tag = "33")]
    pub drain_strategy: i32,
    /// See :option:`--parent-shutdown-time-s` for details.
    #[prost(message, optional, tag = "18")]
    pub parent_shutdown_time: ::core::option::Option<
        super::super::super::google::protobuf::Duration,
    >,
    /// See :option:`--mode` for details.
    #[prost(enumeration = "command_line_options::Mode", tag = "19")]
    pub mode: i32,
    /// See :option:`--disable-hot-restart` for details.
    #[prost(bool, tag = "22")]
    pub disable_hot_restart: bool,
    /// See :option:`--enable-mutex-tracing` for details.
    #[prost(bool, tag = "23")]
    pub enable_mutex_tracing: bool,
    /// See :option:`--restart-epoch` for details.
    #[prost(uint32, tag = "24")]
    pub restart_epoch: u32,
    /// See :option:`--cpuset-threads` for details.
    #[prost(bool, tag = "25")]
    pub cpuset_threads: bool,
    /// See :option:`--disable-extensions` for details.
    #[prost(string, repeated, tag = "28")]
    pub disabled_extensions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// See :option:`--enable-fine-grain-logging` for details.
    #[prost(bool, tag = "34")]
    pub enable_fine_grain_logging: bool,
    /// See :option:`--socket-path` for details.
    #[prost(string, tag = "35")]
    pub socket_path: ::prost::alloc::string::String,
    /// See :option:`--socket-mode` for details.
    #[prost(uint32, tag = "36")]
    pub socket_mode: u32,
    /// See :option:`--enable-core-dump` for details.
    #[prost(bool, tag = "37")]
    pub enable_core_dump: bool,
    /// See :option:`--stats-tag` for details.
    #[prost(string, repeated, tag = "38")]
    pub stats_tag: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `CommandLineOptions`.
pub mod command_line_options {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum IpVersion {
        V4 = 0,
        V6 = 1,
    }
    impl IpVersion {
        /// 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::V4 => "v4",
                Self::V6 => "v6",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "v4" => Some(Self::V4),
                "v6" => Some(Self::V6),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Mode {
        /// Validate configs and then serve traffic normally.
        Serve = 0,
        /// Validate configs and exit.
        Validate = 1,
        /// Completely load and initialize the config, and then exit without running the listener loop.
        InitOnly = 2,
    }
    impl Mode {
        /// 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::Serve => "Serve",
                Self::Validate => "Validate",
                Self::InitOnly => "InitOnly",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "Serve" => Some(Self::Serve),
                "Validate" => Some(Self::Validate),
                "InitOnly" => Some(Self::InitOnly),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum DrainStrategy {
        /// Gradually discourage connections over the course of the drain period.
        Gradual = 0,
        /// Discourage all connections for the duration of the drain sequence.
        Immediate = 1,
    }
    impl DrainStrategy {
        /// 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::Gradual => "Gradual",
                Self::Immediate => "Immediate",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "Gradual" => Some(Self::Gradual),
                "Immediate" => Some(Self::Immediate),
                _ => None,
            }
        }
    }
}
impl ::prost::Name for CommandLineOptions {
    const NAME: &'static str = "CommandLineOptions";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.CommandLineOptions".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.CommandLineOptions".into()
    }
}
/// The /tap admin request body that is used to configure an active tap session.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TapRequest {
    /// The opaque configuration ID used to match the configuration to a loaded extension.
    /// A tap extension configures a similar opaque ID that is used to match.
    #[prost(string, tag = "1")]
    pub config_id: ::prost::alloc::string::String,
    /// The tap configuration to load.
    #[prost(message, optional, tag = "2")]
    pub tap_config: ::core::option::Option<super::super::config::tap::v3::TapConfig>,
}
impl ::prost::Name for TapRequest {
    const NAME: &'static str = "TapRequest";
    const PACKAGE: &'static str = "envoy.admin.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.admin.v3.TapRequest".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.admin.v3.TapRequest".into()
    }
}