summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.service.accesslog.v3.rs
blob: 785dcfe21c901bbd1450cb3799e53fa3955bb831 (plain)
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
// @generated
// This file is @generated by prost-build.
/// Empty response for the StreamAccessLogs API. Will never be sent. See below.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StreamAccessLogsResponse {
}
/// Stream message for the StreamAccessLogs API. Envoy will open a stream to the server and stream
/// access logs without ever expecting a response.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamAccessLogsMessage {
    /// Identifier data that will only be sent in the first message on the stream. This is effectively
    /// structured metadata and is a performance optimization.
    #[prost(message, optional, tag="1")]
    pub identifier: ::core::option::Option<stream_access_logs_message::Identifier>,
    /// Batches of log entries of a single type. Generally speaking, a given stream should only
    /// ever include one type of log entry.
    #[prost(oneof="stream_access_logs_message::LogEntries", tags="2, 3")]
    pub log_entries: ::core::option::Option<stream_access_logs_message::LogEntries>,
}
/// Nested message and enum types in `StreamAccessLogsMessage`.
pub mod stream_access_logs_message {
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Identifier {
        /// The node sending the access log messages over the stream.
        #[prost(message, optional, tag="1")]
        pub node: ::core::option::Option<super::super::super::super::config::core::v3::Node>,
        /// The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig
        /// <envoy_v3_api_msg_extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig>`.
        #[prost(string, tag="2")]
        pub log_name: ::prost::alloc::string::String,
    }
    /// Wrapper for batches of HTTP access log entries.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
    pub struct HttpAccessLogEntries {
        #[prost(message, repeated, tag="1")]
        pub log_entry: ::prost::alloc::vec::Vec<super::super::super::super::data::accesslog::v3::HttpAccessLogEntry>,
    }
    /// Wrapper for batches of TCP access log entries.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TcpAccessLogEntries {
        #[prost(message, repeated, tag="1")]
        pub log_entry: ::prost::alloc::vec::Vec<super::super::super::super::data::accesslog::v3::TcpAccessLogEntry>,
    }
    /// Batches of log entries of a single type. Generally speaking, a given stream should only
    /// ever include one type of log entry.
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum LogEntries {
        #[prost(message, tag="2")]
        HttpLogs(HttpAccessLogEntries),
        #[prost(message, tag="3")]
        TcpLogs(TcpAccessLogEntries),
    }
}
include!("envoy.service.accesslog.v3.tonic.rs");
// @@protoc_insertion_point(module)