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
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessLog {
    /// The name of the access log extension configuration.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Filter which is used to determine if the access log needs to be written.
    #[prost(message, optional, tag = "2")]
    pub filter: ::core::option::Option<AccessLogFilter>,
    /// Custom configuration that must be set according to the access logger extension being instantiated.
    /// \[\#extension-category: envoy.access_loggers\]
    #[prost(oneof = "access_log::ConfigType", tags = "4")]
    pub config_type: ::core::option::Option<access_log::ConfigType>,
}
/// Nested message and enum types in `AccessLog`.
pub mod access_log {
    /// Custom configuration that must be set according to the access logger extension being instantiated.
    /// \[\#extension-category: envoy.access_loggers\]
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum ConfigType {
        #[prost(message, tag = "4")]
        TypedConfig(super::super::super::super::super::google::protobuf::Any),
    }
}
impl ::prost::Name for AccessLog {
    const NAME: &'static str = "AccessLog";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.AccessLog".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.AccessLog".into()
    }
}
/// \[\#next-free-field: 14\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessLogFilter {
    #[prost(
        oneof = "access_log_filter::FilterSpecifier",
        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13"
    )]
    pub filter_specifier: ::core::option::Option<access_log_filter::FilterSpecifier>,
}
/// Nested message and enum types in `AccessLogFilter`.
pub mod access_log_filter {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum FilterSpecifier {
        /// Status code filter.
        #[prost(message, tag = "1")]
        StatusCodeFilter(super::StatusCodeFilter),
        /// Duration filter.
        #[prost(message, tag = "2")]
        DurationFilter(super::DurationFilter),
        /// Not health check filter.
        #[prost(message, tag = "3")]
        NotHealthCheckFilter(super::NotHealthCheckFilter),
        /// Traceable filter.
        #[prost(message, tag = "4")]
        TraceableFilter(super::TraceableFilter),
        /// Runtime filter.
        #[prost(message, tag = "5")]
        RuntimeFilter(super::RuntimeFilter),
        /// And filter.
        #[prost(message, tag = "6")]
        AndFilter(super::AndFilter),
        /// Or filter.
        #[prost(message, tag = "7")]
        OrFilter(super::OrFilter),
        /// Header filter.
        #[prost(message, tag = "8")]
        HeaderFilter(super::HeaderFilter),
        /// Response flag filter.
        #[prost(message, tag = "9")]
        ResponseFlagFilter(super::ResponseFlagFilter),
        /// gRPC status filter.
        #[prost(message, tag = "10")]
        GrpcStatusFilter(super::GrpcStatusFilter),
        /// Extension filter.
        /// \[\#extension-category: envoy.access_loggers.extension_filters\]
        #[prost(message, tag = "11")]
        ExtensionFilter(super::ExtensionFilter),
        /// Metadata Filter
        #[prost(message, tag = "12")]
        MetadataFilter(super::MetadataFilter),
        /// Log Type Filter
        #[prost(message, tag = "13")]
        LogTypeFilter(super::LogTypeFilter),
    }
}
impl ::prost::Name for AccessLogFilter {
    const NAME: &'static str = "AccessLogFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.AccessLogFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.AccessLogFilter".into()
    }
}
/// Filter on an integer comparison.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ComparisonFilter {
    /// Comparison operator.
    #[prost(enumeration = "comparison_filter::Op", tag = "1")]
    pub op: i32,
    /// Value to compare against.
    #[prost(message, optional, tag = "2")]
    pub value: ::core::option::Option<super::super::core::v3::RuntimeUInt32>,
}
/// Nested message and enum types in `ComparisonFilter`.
pub mod comparison_filter {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Op {
        /// =
        Eq = 0,
        ///
        /// >
        /// > =
        Ge = 1,
        /// \<=
        Le = 2,
        /// !=
        Ne = 3,
    }
    impl Op {
        /// 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::Eq => "EQ",
                Self::Ge => "GE",
                Self::Le => "LE",
                Self::Ne => "NE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "EQ" => Some(Self::Eq),
                "GE" => Some(Self::Ge),
                "LE" => Some(Self::Le),
                "NE" => Some(Self::Ne),
                _ => None,
            }
        }
    }
}
impl ::prost::Name for ComparisonFilter {
    const NAME: &'static str = "ComparisonFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.ComparisonFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.ComparisonFilter".into()
    }
}
/// Filters on HTTP response/status code.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StatusCodeFilter {
    /// Comparison.
    #[prost(message, optional, tag = "1")]
    pub comparison: ::core::option::Option<ComparisonFilter>,
}
impl ::prost::Name for StatusCodeFilter {
    const NAME: &'static str = "StatusCodeFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.StatusCodeFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.StatusCodeFilter".into()
    }
}
/// Filters based on the duration of the request or stream, in milliseconds.
/// For end of stream access logs, the total duration of the stream will be used.
/// For :ref:`periodic access logs<arch_overview_access_log_periodic>`,
/// the duration of the stream at the time of log recording will be used.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DurationFilter {
    /// Comparison.
    #[prost(message, optional, tag = "1")]
    pub comparison: ::core::option::Option<ComparisonFilter>,
}
impl ::prost::Name for DurationFilter {
    const NAME: &'static str = "DurationFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.DurationFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.DurationFilter".into()
    }
}
/// Filters for requests that are not health check requests. A health check
/// request is marked by the health check filter.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct NotHealthCheckFilter {}
impl ::prost::Name for NotHealthCheckFilter {
    const NAME: &'static str = "NotHealthCheckFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.NotHealthCheckFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.NotHealthCheckFilter".into()
    }
}
/// Filters for requests that are traceable. See the tracing overview for more
/// information on how a request becomes traceable.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TraceableFilter {}
impl ::prost::Name for TraceableFilter {
    const NAME: &'static str = "TraceableFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.TraceableFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.TraceableFilter".into()
    }
}
/// Filters requests based on runtime-configurable sampling rates.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RuntimeFilter {
    /// Specifies a key used to look up a custom sampling rate from the runtime configuration. If a value is found for this
    /// key, it will override the default sampling rate specified in `percent_sampled`.
    #[prost(string, tag = "1")]
    pub runtime_key: ::prost::alloc::string::String,
    /// Defines the default sampling percentage when no runtime override is present. If not specified, the default is
    /// **0%** (with a denominator of 100).
    #[prost(message, optional, tag = "2")]
    pub percent_sampled: ::core::option::Option<
        super::super::super::r#type::v3::FractionalPercent,
    >,
    /// Controls how sampling decisions are made.
    ///
    /// * Default behavior (`false`):
    ///
    ///   * Uses the :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` as a consistent sampling pivot.
    ///   *
    ///     When :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` is present, sampling will be consistent
    ///     across multiple hosts based on both the `runtime_key` and
    ///     : ref:`x-request-id<config_http_conn_man_headers_x-request-id>`.
    ///
    ///
    ///   * Useful for tracking related requests across a distributed system.
    /// * When set to `true` or :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` is missing:
    ///
    ///   * Sampling decisions are made randomly based only on the `runtime_key`.
    ///   *
    ///     Useful in complex filter configurations (like nested
    ///     : ref:`AndFilter<envoy_v3_api_msg_config.accesslog.v3.AndFilter>`/
    ///         : ref:`OrFilter<envoy_v3_api_msg_config.accesslog.v3.OrFilter>` blocks) where independent probability
    ///       calculations are desired.
    ///
    ///
    ///   * Can be used to implement logging kill switches with predictable probability distributions.
    #[prost(bool, tag = "3")]
    pub use_independent_randomness: bool,
}
impl ::prost::Name for RuntimeFilter {
    const NAME: &'static str = "RuntimeFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.RuntimeFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.RuntimeFilter".into()
    }
}
/// Performs a logical “and” operation on the result of each filter in filters.
/// Filters are evaluated sequentially and if one of them returns false, the
/// filter returns false immediately.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AndFilter {
    #[prost(message, repeated, tag = "1")]
    pub filters: ::prost::alloc::vec::Vec<AccessLogFilter>,
}
impl ::prost::Name for AndFilter {
    const NAME: &'static str = "AndFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.AndFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.AndFilter".into()
    }
}
/// Performs a logical “or” operation on the result of each individual filter.
/// Filters are evaluated sequentially and if one of them returns true, the
/// filter returns true immediately.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OrFilter {
    #[prost(message, repeated, tag = "2")]
    pub filters: ::prost::alloc::vec::Vec<AccessLogFilter>,
}
impl ::prost::Name for OrFilter {
    const NAME: &'static str = "OrFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.OrFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.OrFilter".into()
    }
}
/// Filters requests based on the presence or value of a request header.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct HeaderFilter {
    /// Only requests with a header which matches the specified HeaderMatcher will
    /// pass the filter check.
    #[prost(message, optional, tag = "1")]
    pub header: ::core::option::Option<super::super::route::v3::HeaderMatcher>,
}
impl ::prost::Name for HeaderFilter {
    const NAME: &'static str = "HeaderFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.HeaderFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.HeaderFilter".into()
    }
}
///
/// Filters requests that received responses with an Envoy response flag set.
/// A list of the response flags can be found
/// in the access log formatter
/// : ref:`documentation<config_access_log_format_response_flags>`.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ResponseFlagFilter {
    /// Only responses with the any of the flags listed in this field will be
    /// logged. This field is optional. If it is not specified, then any response
    /// flag will pass the filter check.
    #[prost(string, repeated, tag = "1")]
    pub flags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for ResponseFlagFilter {
    const NAME: &'static str = "ResponseFlagFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.ResponseFlagFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.ResponseFlagFilter".into()
    }
}
/// Filters gRPC requests based on their response status. If a gRPC status is not
/// provided, the filter will infer the status from the HTTP status code.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GrpcStatusFilter {
    /// Logs only responses that have any one of the gRPC statuses in this field.
    #[prost(
        enumeration = "grpc_status_filter::Status",
        repeated,
        packed = "false",
        tag = "1"
    )]
    pub statuses: ::prost::alloc::vec::Vec<i32>,
    /// If included and set to true, the filter will instead block all responses
    /// with a gRPC status or inferred gRPC status enumerated in statuses, and
    /// allow all other responses.
    #[prost(bool, tag = "2")]
    pub exclude: bool,
}
/// Nested message and enum types in `GrpcStatusFilter`.
pub mod grpc_status_filter {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Status {
        Ok = 0,
        Canceled = 1,
        Unknown = 2,
        InvalidArgument = 3,
        DeadlineExceeded = 4,
        NotFound = 5,
        AlreadyExists = 6,
        PermissionDenied = 7,
        ResourceExhausted = 8,
        FailedPrecondition = 9,
        Aborted = 10,
        OutOfRange = 11,
        Unimplemented = 12,
        Internal = 13,
        Unavailable = 14,
        DataLoss = 15,
        Unauthenticated = 16,
    }
    impl Status {
        /// 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::Ok => "OK",
                Self::Canceled => "CANCELED",
                Self::Unknown => "UNKNOWN",
                Self::InvalidArgument => "INVALID_ARGUMENT",
                Self::DeadlineExceeded => "DEADLINE_EXCEEDED",
                Self::NotFound => "NOT_FOUND",
                Self::AlreadyExists => "ALREADY_EXISTS",
                Self::PermissionDenied => "PERMISSION_DENIED",
                Self::ResourceExhausted => "RESOURCE_EXHAUSTED",
                Self::FailedPrecondition => "FAILED_PRECONDITION",
                Self::Aborted => "ABORTED",
                Self::OutOfRange => "OUT_OF_RANGE",
                Self::Unimplemented => "UNIMPLEMENTED",
                Self::Internal => "INTERNAL",
                Self::Unavailable => "UNAVAILABLE",
                Self::DataLoss => "DATA_LOSS",
                Self::Unauthenticated => "UNAUTHENTICATED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "OK" => Some(Self::Ok),
                "CANCELED" => Some(Self::Canceled),
                "UNKNOWN" => Some(Self::Unknown),
                "INVALID_ARGUMENT" => Some(Self::InvalidArgument),
                "DEADLINE_EXCEEDED" => Some(Self::DeadlineExceeded),
                "NOT_FOUND" => Some(Self::NotFound),
                "ALREADY_EXISTS" => Some(Self::AlreadyExists),
                "PERMISSION_DENIED" => Some(Self::PermissionDenied),
                "RESOURCE_EXHAUSTED" => Some(Self::ResourceExhausted),
                "FAILED_PRECONDITION" => Some(Self::FailedPrecondition),
                "ABORTED" => Some(Self::Aborted),
                "OUT_OF_RANGE" => Some(Self::OutOfRange),
                "UNIMPLEMENTED" => Some(Self::Unimplemented),
                "INTERNAL" => Some(Self::Internal),
                "UNAVAILABLE" => Some(Self::Unavailable),
                "DATA_LOSS" => Some(Self::DataLoss),
                "UNAUTHENTICATED" => Some(Self::Unauthenticated),
                _ => None,
            }
        }
    }
}
impl ::prost::Name for GrpcStatusFilter {
    const NAME: &'static str = "GrpcStatusFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.GrpcStatusFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.GrpcStatusFilter".into()
    }
}
/// Filters based on matching dynamic metadata.
/// If the matcher path and key correspond to an existing key in dynamic
/// metadata, the request is logged only if the matcher value is equal to the
/// metadata value. If the matcher path and key *do not* correspond to an
/// existing key in dynamic metadata, the request is logged only if
/// match_if_key_not_found is "true" or unset.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataFilter {
    /// Matcher to check metadata for specified value. For example, to match on the
    /// access_log_hint metadata, set the filter to "envoy.common" and the path to
    /// "access_log_hint", and the value to "true".
    #[prost(message, optional, tag = "1")]
    pub matcher: ::core::option::Option<
        super::super::super::r#type::matcher::v3::MetadataMatcher,
    >,
    /// Default result if the key does not exist in dynamic metadata: if unset or
    /// true, then log; if false, then don't log.
    #[prost(message, optional, tag = "2")]
    pub match_if_key_not_found: ::core::option::Option<
        super::super::super::super::google::protobuf::BoolValue,
    >,
}
impl ::prost::Name for MetadataFilter {
    const NAME: &'static str = "MetadataFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.MetadataFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.MetadataFilter".into()
    }
}
/// Filters based on access log type.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct LogTypeFilter {
    /// Logs only records which their type is one of the types defined in this field.
    #[prost(
        enumeration = "super::super::super::data::accesslog::v3::AccessLogType",
        repeated,
        packed = "false",
        tag = "1"
    )]
    pub types: ::prost::alloc::vec::Vec<i32>,
    /// If this field is set to true, the filter will instead block all records
    /// with a access log type in types field, and allow all other records.
    #[prost(bool, tag = "2")]
    pub exclude: bool,
}
impl ::prost::Name for LogTypeFilter {
    const NAME: &'static str = "LogTypeFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.LogTypeFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.LogTypeFilter".into()
    }
}
/// Extension filter is statically registered at runtime.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ExtensionFilter {
    /// The name of the filter implementation to instantiate. The name must
    /// match a statically registered filter.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Custom configuration that depends on the filter being instantiated.
    #[prost(oneof = "extension_filter::ConfigType", tags = "3")]
    pub config_type: ::core::option::Option<extension_filter::ConfigType>,
}
/// Nested message and enum types in `ExtensionFilter`.
pub mod extension_filter {
    /// Custom configuration that depends on the filter being instantiated.
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum ConfigType {
        #[prost(message, tag = "3")]
        TypedConfig(super::super::super::super::super::google::protobuf::Any),
    }
}
impl ::prost::Name for ExtensionFilter {
    const NAME: &'static str = "ExtensionFilter";
    const PACKAGE: &'static str = "envoy.config.accesslog.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.config.accesslog.v3.ExtensionFilter".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.config.accesslog.v3.ExtensionFilter".into()
    }
}