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
// This file is @generated by prost-build.
/// Custom configuration for an :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`
/// that writes log entries directly to a file. Configures the built-in `envoy.access_loggers.file`
/// AccessLog.
/// \[\#next-free-field: 6\]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileAccessLog {
/// A path to a local file to which to write the access log entries.
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
#[prost(oneof = "file_access_log::AccessLogFormat", tags = "2, 3, 4, 5")]
pub access_log_format: ::core::option::Option<file_access_log::AccessLogFormat>,
}
/// Nested message and enum types in `FileAccessLog`.
pub mod file_access_log {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AccessLogFormat {
///
/// Access log :ref:`format string<config_access_log_format_strings>`.
/// Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a
/// : ref:`default format <config_access_log_default_format>`.
/// This field is deprecated.
/// Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
#[deprecated]
#[prost(string, tag = "2")]
Format(::prost::alloc::string::String),
/// Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values
/// are rendered as strings.
/// This field is deprecated.
/// Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
#[deprecated]
#[prost(message, tag = "3")]
JsonFormat(super::super::super::super::super::super::google::protobuf::Struct),
/// Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. Values are
/// rendered as strings, numbers, or boolean values as appropriate. Nested JSON objects may
/// be produced by some command operators (e.g.FILTER_STATE or DYNAMIC_METADATA). See the
/// documentation for a specific command operator for details.
/// This field is deprecated.
/// Please use :ref:`log_format <envoy_v3_api_field_extensions.access_loggers.file.v3.FileAccessLog.log_format>`.
#[deprecated]
#[prost(message, tag = "4")]
TypedJsonFormat(
super::super::super::super::super::super::google::protobuf::Struct,
),
/// Configuration to form access log data and format.
/// If not specified, use :ref:`default format <config_access_log_default_format>`.
#[prost(message, tag = "5")]
LogFormat(
super::super::super::super::super::config::core::v3::SubstitutionFormatString,
),
}
}
impl ::prost::Name for FileAccessLog {
const NAME: &'static str = "FileAccessLog";
const PACKAGE: &'static str = "envoy.extensions.access_loggers.file.v3";
fn full_name() -> ::prost::alloc::string::String {
"envoy.extensions.access_loggers.file.v3.FileAccessLog".into()
}
fn type_url() -> ::prost::alloc::string::String {
"type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog"
.into()
}
}