|
| 1 | +// @generated |
| 2 | +// This file is @generated by prost-build. |
| 3 | +// Note: The protobuf definition is shared between the Rust and Swift parts. |
| 4 | +// We are not using prost-build because providing protoc is a hassle on many platforms. |
| 5 | +// See .github/workflows/autofix.yml for how to update the respective files, |
| 6 | +// or file a PR and let CI handle it. |
| 7 | + |
| 8 | +/// Packet with associated tunnel info (Windows pipe to mitmproxy) |
| 9 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 10 | +pub struct PacketWithMeta { |
| 11 | + #[prost(bytes="bytes", tag="1")] |
| 12 | + pub data: ::prost::bytes::Bytes, |
| 13 | + #[prost(message, optional, tag="2")] |
| 14 | + pub tunnel_info: ::core::option::Option<TunnelInfo>, |
| 15 | +} |
| 16 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 17 | +pub struct TunnelInfo { |
| 18 | + #[prost(uint32, optional, tag="1")] |
| 19 | + pub pid: ::core::option::Option<u32>, |
| 20 | + #[prost(string, optional, tag="2")] |
| 21 | + pub process_name: ::core::option::Option<::prost::alloc::string::String>, |
| 22 | +} |
| 23 | +/// Packet or intercept spec (Windows pipe to redirector) |
| 24 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 25 | +pub struct FromProxy { |
| 26 | + #[prost(oneof="from_proxy::Message", tags="1, 2")] |
| 27 | + pub message: ::core::option::Option<from_proxy::Message>, |
| 28 | +} |
| 29 | +/// Nested message and enum types in `FromProxy`. |
| 30 | +pub mod from_proxy { |
| 31 | + #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)] |
| 32 | + pub enum Message { |
| 33 | + #[prost(message, tag="1")] |
| 34 | + Packet(super::Packet), |
| 35 | + #[prost(message, tag="2")] |
| 36 | + InterceptConf(super::InterceptConf), |
| 37 | + } |
| 38 | +} |
| 39 | +/// Packet (macOS UDP Stream) |
| 40 | +/// ⚠️ Bump network extension version on changes, <https://github.com/mitmproxy/mitmproxy_rs/pull/227.> |
| 41 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 42 | +pub struct Packet { |
| 43 | + #[prost(bytes="bytes", tag="1")] |
| 44 | + pub data: ::prost::bytes::Bytes, |
| 45 | +} |
| 46 | +/// Intercept conf (macOS Control Stream) |
| 47 | +/// ⚠️ Bump network extension version on changes, <https://github.com/mitmproxy/mitmproxy_rs/pull/227.> |
| 48 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 49 | +pub struct InterceptConf { |
| 50 | + #[prost(string, repeated, tag="1")] |
| 51 | + pub actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, |
| 52 | +} |
| 53 | +/// New flow (macOS TCP/UDP Stream) |
| 54 | +/// ⚠️ Bump network extension version on changes, <https://github.com/mitmproxy/mitmproxy_rs/pull/227.> |
| 55 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 56 | +pub struct NewFlow { |
| 57 | + #[prost(oneof="new_flow::Message", tags="1, 2")] |
| 58 | + pub message: ::core::option::Option<new_flow::Message>, |
| 59 | +} |
| 60 | +/// Nested message and enum types in `NewFlow`. |
| 61 | +pub mod new_flow { |
| 62 | + #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)] |
| 63 | + pub enum Message { |
| 64 | + #[prost(message, tag="1")] |
| 65 | + Tcp(super::TcpFlow), |
| 66 | + #[prost(message, tag="2")] |
| 67 | + Udp(super::UdpFlow), |
| 68 | + } |
| 69 | +} |
| 70 | +/// ⚠️ Bump network extension version on changes, <https://github.com/mitmproxy/mitmproxy_rs/pull/227.> |
| 71 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 72 | +pub struct TcpFlow { |
| 73 | + #[prost(message, optional, tag="1")] |
| 74 | + pub remote_address: ::core::option::Option<Address>, |
| 75 | + #[prost(message, optional, tag="2")] |
| 76 | + pub tunnel_info: ::core::option::Option<TunnelInfo>, |
| 77 | +} |
| 78 | +/// ⚠️ Bump network extension version on changes, <https://github.com/mitmproxy/mitmproxy_rs/pull/227.> |
| 79 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 80 | +pub struct UdpFlow { |
| 81 | + #[prost(message, optional, tag="1")] |
| 82 | + pub local_address: ::core::option::Option<Address>, |
| 83 | + #[prost(message, optional, tag="3")] |
| 84 | + pub tunnel_info: ::core::option::Option<TunnelInfo>, |
| 85 | +} |
| 86 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 87 | +pub struct UdpPacket { |
| 88 | + #[prost(bytes="bytes", tag="1")] |
| 89 | + pub data: ::prost::bytes::Bytes, |
| 90 | + #[prost(message, optional, tag="2")] |
| 91 | + pub remote_address: ::core::option::Option<Address>, |
| 92 | +} |
| 93 | +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] |
| 94 | +pub struct Address { |
| 95 | + #[prost(string, tag="1")] |
| 96 | + pub host: ::prost::alloc::string::String, |
| 97 | + #[prost(uint32, tag="2")] |
| 98 | + pub port: u32, |
| 99 | +} |
| 100 | +// @@protoc_insertion_point(module) |
0 commit comments