diff --git a/.github/workflows/gen-protocol.yaml b/.github/workflows/gen-protocol.yaml index 7941cd18..16818170 100644 --- a/.github/workflows/gen-protocol.yaml +++ b/.github/workflows/gen-protocol.yaml @@ -50,7 +50,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install prost generators - run: cargo install protoc-gen-prost protoc-gen-prost-serde + run: cargo install protoc-gen-prost@0.3.1 protoc-gen-prost-serde@0.3.1 - name: generate python stubs run: ./generate_proto.sh diff --git a/livekit-protocol/generate_proto.sh b/livekit-protocol/generate_proto.sh index 4ef8efaa..d8b5c19c 100755 --- a/livekit-protocol/generate_proto.sh +++ b/livekit-protocol/generate_proto.sh @@ -14,6 +14,9 @@ # limitations under the License. +# dependencies: cargo install protoc-gen-prost@0.3.1 protoc-gen-prost-serde@0.3.1 + + PROTOCOL=protocol/protobufs OUT_RUST=src diff --git a/livekit-protocol/src/livekit.rs b/livekit-protocol/src/livekit.rs index b2a1de94..39426bde 100644 --- a/livekit-protocol/src/livekit.rs +++ b/livekit-protocol/src/livekit.rs @@ -1,5 +1,6 @@ // @generated // This file is @generated by prost-build. +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Room { #[prost(string, tag="1")] @@ -29,6 +30,7 @@ pub struct Room { #[prost(message, optional, tag="13")] pub version: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Codec { #[prost(string, tag="1")] @@ -36,7 +38,8 @@ pub struct Codec { #[prost(string, tag="2")] pub fmtp_line: ::prost::alloc::string::String, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayoutDelay { #[prost(bool, tag="1")] pub enabled: bool, @@ -45,6 +48,7 @@ pub struct PlayoutDelay { #[prost(uint32, tag="3")] pub max: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParticipantPermission { /// allow participant to subscribe to other tracks in the room @@ -76,6 +80,7 @@ pub struct ParticipantPermission { #[prost(bool, tag="11")] pub agent: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParticipantInfo { #[prost(string, tag="1")] @@ -131,10 +136,10 @@ pub mod participant_info { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Joining => "JOINING", - Self::Joined => "JOINED", - Self::Active => "ACTIVE", - Self::Disconnected => "DISCONNECTED", + State::Joining => "JOINING", + State::Joined => "JOINED", + State::Active => "ACTIVE", + State::Disconnected => "DISCONNECTED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -169,11 +174,11 @@ pub mod participant_info { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Standard => "STANDARD", - Self::Ingress => "INGRESS", - Self::Egress => "EGRESS", - Self::Sip => "SIP", - Self::Agent => "AGENT", + Kind::Standard => "STANDARD", + Kind::Ingress => "INGRESS", + Kind::Egress => "EGRESS", + Kind::Sip => "SIP", + Kind::Agent => "AGENT", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -189,7 +194,8 @@ pub mod participant_info { } } } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Encryption { } /// Nested message and enum types in `Encryption`. @@ -208,9 +214,9 @@ pub mod encryption { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::None => "NONE", - Self::Gcm => "GCM", - Self::Custom => "CUSTOM", + Type::None => "NONE", + Type::Gcm => "GCM", + Type::Custom => "CUSTOM", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -224,6 +230,7 @@ pub mod encryption { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulcastCodecInfo { #[prost(string, tag="1")] @@ -235,6 +242,7 @@ pub struct SimulcastCodecInfo { #[prost(message, repeated, tag="4")] pub layers: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackInfo { #[prost(string, tag="1")] @@ -285,7 +293,8 @@ pub struct TrackInfo { pub audio_features: ::prost::alloc::vec::Vec, } /// provide information about available spatial layers -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct VideoLayer { /// for tracks with a single layer, this should be HIGH #[prost(enumeration="VideoQuality", tag="1")] @@ -301,6 +310,7 @@ pub struct VideoLayer { pub ssrc: u32, } /// new DataPacket API +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DataPacket { #[deprecated] @@ -330,8 +340,8 @@ pub mod data_packet { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Reliable => "RELIABLE", - Self::Lossy => "LOSSY", + Kind::Reliable => "RELIABLE", + Kind::Lossy => "LOSSY", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -343,7 +353,8 @@ pub mod data_packet { } } } - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { #[prost(message, tag="2")] User(super::UserPacket), @@ -355,11 +366,13 @@ pub mod data_packet { Transcription(super::Transcription), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ActiveSpeakerUpdate { #[prost(message, repeated, tag="1")] pub speakers: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SpeakerInfo { #[prost(string, tag="1")] @@ -371,6 +384,7 @@ pub struct SpeakerInfo { #[prost(bool, tag="3")] pub active: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UserPacket { /// participant ID of user that sent the message @@ -403,6 +417,7 @@ pub struct UserPacket { #[prost(uint64, optional, tag="10")] pub end_time: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipDtmf { #[prost(uint32, tag="3")] @@ -410,6 +425,7 @@ pub struct SipDtmf { #[prost(string, tag="4")] pub digit: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Transcription { /// Participant that got its speech transcribed @@ -420,6 +436,7 @@ pub struct Transcription { #[prost(message, repeated, tag="4")] pub segments: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TranscriptionSegment { #[prost(string, tag="1")] @@ -435,6 +452,7 @@ pub struct TranscriptionSegment { #[prost(string, tag="6")] pub language: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParticipantTracks { /// participant ID of participant to whom the tracks belong @@ -444,6 +462,7 @@ pub struct ParticipantTracks { pub track_sids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } /// details about the server +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ServerInfo { #[prost(enumeration="server_info::Edition", tag="1")] @@ -477,8 +496,8 @@ pub mod server_info { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Standard => "Standard", - Self::Cloud => "Cloud", + Edition::Standard => "Standard", + Edition::Cloud => "Cloud", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -492,6 +511,7 @@ pub mod server_info { } } /// details about the client +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientInfo { #[prost(enumeration="client_info::Sdk", tag="1")] @@ -540,17 +560,17 @@ pub mod client_info { /// (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::Js => "JS", - Self::Swift => "SWIFT", - Self::Android => "ANDROID", - Self::Flutter => "FLUTTER", - Self::Go => "GO", - Self::Unity => "UNITY", - Self::ReactNative => "REACT_NATIVE", - Self::Rust => "RUST", - Self::Python => "PYTHON", - Self::Cpp => "CPP", + Sdk::Unknown => "UNKNOWN", + Sdk::Js => "JS", + Sdk::Swift => "SWIFT", + Sdk::Android => "ANDROID", + Sdk::Flutter => "FLUTTER", + Sdk::Go => "GO", + Sdk::Unity => "UNITY", + Sdk::ReactNative => "REACT_NATIVE", + Sdk::Rust => "RUST", + Sdk::Python => "PYTHON", + Sdk::Cpp => "CPP", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -573,6 +593,7 @@ pub mod client_info { } } /// server provided client configuration +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ClientConfiguration { #[prost(message, optional, tag="1")] @@ -586,11 +607,13 @@ pub struct ClientConfiguration { #[prost(enumeration="ClientConfigSetting", tag="5")] pub force_relay: i32, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct VideoConfiguration { #[prost(enumeration="ClientConfigSetting", tag="1")] pub hardware_encoder: i32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DisabledCodecs { /// disabled for both publish and subscribe @@ -600,7 +623,8 @@ pub struct DisabledCodecs { #[prost(message, repeated, tag="2")] pub publish: ::prost::alloc::vec::Vec, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RtpDrift { #[prost(message, optional, tag="1")] pub start_time: ::core::option::Option<::pbjson_types::Timestamp>, @@ -621,6 +645,7 @@ pub struct RtpDrift { #[prost(double, tag="9")] pub clock_rate: f64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RtpStats { #[prost(message, optional, tag="1")] @@ -713,7 +738,8 @@ pub struct RtpStats { #[prost(message, optional, tag="46")] pub rebased_report_drift: ::core::option::Option, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RtpForwarderState { #[prost(bool, tag="1")] pub started: bool, @@ -732,13 +758,15 @@ pub struct RtpForwarderState { } /// Nested message and enum types in `RTPForwarderState`. pub mod rtp_forwarder_state { - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum CodecMunger { #[prost(message, tag="7")] Vp8Munger(super::Vp8MungerState), } } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RtpMungerState { #[prost(uint64, tag="1")] pub ext_last_sequence_number: u64, @@ -753,7 +781,8 @@ pub struct RtpMungerState { #[prost(bool, tag="6")] pub second_last_marker: bool, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Vp8MungerState { #[prost(int32, tag="1")] pub ext_last_picture_id: i32, @@ -770,7 +799,8 @@ pub struct Vp8MungerState { #[prost(bool, tag="7")] pub key_idx_used: bool, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct TimedVersion { #[prost(int64, tag="1")] pub unix_micro: i64, @@ -791,9 +821,9 @@ impl AudioCodec { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::DefaultAc => "DEFAULT_AC", - Self::Opus => "OPUS", - Self::Aac => "AAC", + AudioCodec::DefaultAc => "DEFAULT_AC", + AudioCodec::Opus => "OPUS", + AudioCodec::Aac => "AAC", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -822,11 +852,11 @@ impl VideoCodec { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::DefaultVc => "DEFAULT_VC", - Self::H264Baseline => "H264_BASELINE", - Self::H264Main => "H264_MAIN", - Self::H264High => "H264_HIGH", - Self::Vp8 => "VP8", + VideoCodec::DefaultVc => "DEFAULT_VC", + VideoCodec::H264Baseline => "H264_BASELINE", + VideoCodec::H264Main => "H264_MAIN", + VideoCodec::H264High => "H264_HIGH", + VideoCodec::Vp8 => "VP8", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -854,8 +884,8 @@ impl ImageCodec { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::IcDefault => "IC_DEFAULT", - Self::IcJpeg => "IC_JPEG", + ImageCodec::IcDefault => "IC_DEFAULT", + ImageCodec::IcJpeg => "IC_JPEG", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -881,9 +911,9 @@ impl TrackType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Audio => "AUDIO", - Self::Video => "VIDEO", - Self::Data => "DATA", + TrackType::Audio => "AUDIO", + TrackType::Video => "VIDEO", + TrackType::Data => "DATA", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -912,11 +942,11 @@ impl TrackSource { /// (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::Camera => "CAMERA", - Self::Microphone => "MICROPHONE", - Self::ScreenShare => "SCREEN_SHARE", - Self::ScreenShareAudio => "SCREEN_SHARE_AUDIO", + TrackSource::Unknown => "UNKNOWN", + TrackSource::Camera => "CAMERA", + TrackSource::Microphone => "MICROPHONE", + TrackSource::ScreenShare => "SCREEN_SHARE", + TrackSource::ScreenShareAudio => "SCREEN_SHARE_AUDIO", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -946,10 +976,10 @@ impl VideoQuality { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Low => "LOW", - Self::Medium => "MEDIUM", - Self::High => "HIGH", - Self::Off => "OFF", + VideoQuality::Low => "LOW", + VideoQuality::Medium => "MEDIUM", + VideoQuality::High => "HIGH", + VideoQuality::Off => "OFF", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -978,10 +1008,10 @@ impl ConnectionQuality { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Poor => "POOR", - Self::Good => "GOOD", - Self::Excellent => "EXCELLENT", - Self::Lost => "LOST", + ConnectionQuality::Poor => "POOR", + ConnectionQuality::Good => "GOOD", + ConnectionQuality::Excellent => "EXCELLENT", + ConnectionQuality::Lost => "LOST", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1009,9 +1039,9 @@ impl ClientConfigSetting { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Unset => "UNSET", - Self::Disabled => "DISABLED", - Self::Enabled => "ENABLED", + ClientConfigSetting::Unset => "UNSET", + ClientConfigSetting::Disabled => "DISABLED", + ClientConfigSetting::Enabled => "ENABLED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1056,17 +1086,17 @@ impl DisconnectReason { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::UnknownReason => "UNKNOWN_REASON", - Self::ClientInitiated => "CLIENT_INITIATED", - Self::DuplicateIdentity => "DUPLICATE_IDENTITY", - Self::ServerShutdown => "SERVER_SHUTDOWN", - Self::ParticipantRemoved => "PARTICIPANT_REMOVED", - Self::RoomDeleted => "ROOM_DELETED", - Self::StateMismatch => "STATE_MISMATCH", - Self::JoinFailure => "JOIN_FAILURE", - Self::Migration => "MIGRATION", - Self::SignalClose => "SIGNAL_CLOSE", - Self::RoomClosed => "ROOM_CLOSED", + DisconnectReason::UnknownReason => "UNKNOWN_REASON", + DisconnectReason::ClientInitiated => "CLIENT_INITIATED", + DisconnectReason::DuplicateIdentity => "DUPLICATE_IDENTITY", + DisconnectReason::ServerShutdown => "SERVER_SHUTDOWN", + DisconnectReason::ParticipantRemoved => "PARTICIPANT_REMOVED", + DisconnectReason::RoomDeleted => "ROOM_DELETED", + DisconnectReason::StateMismatch => "STATE_MISMATCH", + DisconnectReason::JoinFailure => "JOIN_FAILURE", + DisconnectReason::Migration => "MIGRATION", + DisconnectReason::SignalClose => "SIGNAL_CLOSE", + DisconnectReason::RoomClosed => "ROOM_CLOSED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1103,11 +1133,11 @@ impl ReconnectReason { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::RrUnknown => "RR_UNKNOWN", - Self::RrSignalDisconnected => "RR_SIGNAL_DISCONNECTED", - Self::RrPublisherFailed => "RR_PUBLISHER_FAILED", - Self::RrSubscriberFailed => "RR_SUBSCRIBER_FAILED", - Self::RrSwitchCandidate => "RR_SWITCH_CANDIDATE", + ReconnectReason::RrUnknown => "RR_UNKNOWN", + ReconnectReason::RrSignalDisconnected => "RR_SIGNAL_DISCONNECTED", + ReconnectReason::RrPublisherFailed => "RR_PUBLISHER_FAILED", + ReconnectReason::RrSubscriberFailed => "RR_SUBSCRIBER_FAILED", + ReconnectReason::RrSwitchCandidate => "RR_SWITCH_CANDIDATE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1136,9 +1166,9 @@ impl SubscriptionError { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::SeUnknown => "SE_UNKNOWN", - Self::SeCodecUnsupported => "SE_CODEC_UNSUPPORTED", - Self::SeTrackNotfound => "SE_TRACK_NOTFOUND", + SubscriptionError::SeUnknown => "SE_UNKNOWN", + SubscriptionError::SeCodecUnsupported => "SE_CODEC_UNSUPPORTED", + SubscriptionError::SeTrackNotfound => "SE_TRACK_NOTFOUND", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1168,12 +1198,12 @@ impl AudioTrackFeature { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::TfStereo => "TF_STEREO", - Self::TfNoDtx => "TF_NO_DTX", - Self::TfAutoGainControl => "TF_AUTO_GAIN_CONTROL", - Self::TfEchoCancellation => "TF_ECHO_CANCELLATION", - Self::TfNoiseSuppression => "TF_NOISE_SUPPRESSION", - Self::TfEnhancedNoiseCancellation => "TF_ENHANCED_NOISE_CANCELLATION", + AudioTrackFeature::TfStereo => "TF_STEREO", + AudioTrackFeature::TfNoDtx => "TF_NO_DTX", + AudioTrackFeature::TfAutoGainControl => "TF_AUTO_GAIN_CONTROL", + AudioTrackFeature::TfEchoCancellation => "TF_ECHO_CANCELLATION", + AudioTrackFeature::TfNoiseSuppression => "TF_NOISE_SUPPRESSION", + AudioTrackFeature::TfEnhancedNoiseCancellation => "TF_ENHANCED_NOISE_CANCELLATION", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1190,6 +1220,7 @@ impl AudioTrackFeature { } } /// composite using a web browser +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomCompositeEgressRequest { /// required @@ -1224,7 +1255,8 @@ pub struct RoomCompositeEgressRequest { /// Nested message and enum types in `RoomCompositeEgressRequest`. pub mod room_composite_egress_request { /// deprecated (use _output fields) - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="6")] File(super::EncodedFileOutput), @@ -1233,7 +1265,8 @@ pub mod room_composite_egress_request { #[prost(message, tag="10")] Segments(super::SegmentedFileOutput), } - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Options { /// (default H264_720P_30) #[prost(enumeration="super::EncodingOptionsPreset", tag="8")] @@ -1244,6 +1277,7 @@ pub mod room_composite_egress_request { } } /// record any website +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WebEgressRequest { #[prost(string, tag="1")] @@ -1271,7 +1305,8 @@ pub struct WebEgressRequest { /// Nested message and enum types in `WebEgressRequest`. pub mod web_egress_request { /// deprecated (use _output fields) - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="4")] File(super::EncodedFileOutput), @@ -1280,7 +1315,8 @@ pub mod web_egress_request { #[prost(message, tag="6")] Segments(super::SegmentedFileOutput), } - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Options { #[prost(enumeration="super::EncodingOptionsPreset", tag="7")] Preset(i32), @@ -1289,6 +1325,7 @@ pub mod web_egress_request { } } /// record audio and video from a single participant +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParticipantEgressRequest { /// required @@ -1313,7 +1350,8 @@ pub struct ParticipantEgressRequest { } /// Nested message and enum types in `ParticipantEgressRequest`. pub mod participant_egress_request { - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Options { /// (default H264_720P_30) #[prost(enumeration="super::EncodingOptionsPreset", tag="4")] @@ -1324,6 +1362,7 @@ pub mod participant_egress_request { } } /// containerize up to one audio and one video track +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackCompositeEgressRequest { /// required @@ -1352,7 +1391,8 @@ pub struct TrackCompositeEgressRequest { /// Nested message and enum types in `TrackCompositeEgressRequest`. pub mod track_composite_egress_request { /// deprecated (use _output fields) - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="4")] File(super::EncodedFileOutput), @@ -1361,7 +1401,8 @@ pub mod track_composite_egress_request { #[prost(message, tag="8")] Segments(super::SegmentedFileOutput), } - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Options { /// (default H264_720P_30) #[prost(enumeration="super::EncodingOptionsPreset", tag="6")] @@ -1372,6 +1413,7 @@ pub mod track_composite_egress_request { } } /// record tracks individually, without transcoding +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackEgressRequest { /// required @@ -1387,7 +1429,8 @@ pub struct TrackEgressRequest { /// Nested message and enum types in `TrackEgressRequest`. pub mod track_egress_request { /// required - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="3")] File(super::DirectFileOutput), @@ -1395,6 +1438,7 @@ pub mod track_egress_request { WebsocketUrl(::prost::alloc::string::String), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EncodedFileOutput { /// (optional) @@ -1411,7 +1455,8 @@ pub struct EncodedFileOutput { } /// Nested message and enum types in `EncodedFileOutput`. pub mod encoded_file_output { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="3")] S3(super::S3Upload), @@ -1424,6 +1469,7 @@ pub mod encoded_file_output { } } /// Used to generate HLS segments or other kind of segmented output +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SegmentedFileOutput { /// (optional) @@ -1454,7 +1500,8 @@ pub struct SegmentedFileOutput { /// Nested message and enum types in `SegmentedFileOutput`. pub mod segmented_file_output { /// required - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="5")] S3(super::S3Upload), @@ -1466,6 +1513,7 @@ pub mod segmented_file_output { AliOss(super::AliOssUpload), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DirectFileOutput { /// see egress docs for templating (default {track_id}-{time}) @@ -1479,7 +1527,8 @@ pub struct DirectFileOutput { } /// Nested message and enum types in `DirectFileOutput`. pub mod direct_file_output { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="2")] S3(super::S3Upload), @@ -1491,6 +1540,7 @@ pub mod direct_file_output { AliOss(super::AliOssUpload), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ImageOutput { /// in seconds (required) @@ -1521,7 +1571,8 @@ pub struct ImageOutput { /// Nested message and enum types in `ImageOutput`. pub mod image_output { /// required - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="8")] S3(super::S3Upload), @@ -1533,6 +1584,7 @@ pub mod image_output { AliOss(super::AliOssUpload), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct S3Upload { #[prost(string, tag="1")] @@ -1559,6 +1611,7 @@ pub struct S3Upload { #[prost(message, optional, tag="10")] pub proxy: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GcpUpload { /// service account credentials serialized in JSON "credentials.json" @@ -1569,6 +1622,7 @@ pub struct GcpUpload { #[prost(message, optional, tag="3")] pub proxy: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AzureBlobUpload { #[prost(string, tag="1")] @@ -1578,6 +1632,7 @@ pub struct AzureBlobUpload { #[prost(string, tag="3")] pub container_name: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AliOssUpload { #[prost(string, tag="1")] @@ -1591,6 +1646,7 @@ pub struct AliOssUpload { #[prost(string, tag="5")] pub bucket: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ProxyConfig { #[prost(string, tag="1")] @@ -1600,6 +1656,7 @@ pub struct ProxyConfig { #[prost(string, tag="3")] pub password: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StreamOutput { /// required @@ -1609,7 +1666,8 @@ pub struct StreamOutput { #[prost(string, repeated, tag="2")] pub urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct EncodingOptions { /// (default 1920) #[prost(int32, tag="1")] @@ -1648,6 +1706,7 @@ pub struct EncodingOptions { #[prost(double, tag="10")] pub key_frame_interval: f64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateLayoutRequest { #[prost(string, tag="1")] @@ -1655,6 +1714,7 @@ pub struct UpdateLayoutRequest { #[prost(string, tag="2")] pub layout: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateStreamRequest { #[prost(string, tag="1")] @@ -1664,6 +1724,7 @@ pub struct UpdateStreamRequest { #[prost(string, repeated, tag="3")] pub remove_output_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListEgressRequest { /// (optional, filter by room name) @@ -1676,16 +1737,19 @@ pub struct ListEgressRequest { #[prost(bool, tag="3")] pub active: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListEgressResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StopEgressRequest { #[prost(string, tag="1")] pub egress_id: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EgressInfo { #[prost(string, tag="1")] @@ -1724,7 +1788,8 @@ pub struct EgressInfo { } /// Nested message and enum types in `EgressInfo`. pub mod egress_info { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Request { #[prost(message, tag="4")] RoomComposite(super::RoomCompositeEgressRequest), @@ -1738,7 +1803,8 @@ pub mod egress_info { Track(super::TrackEgressRequest), } /// deprecated (use _result fields) - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Result { #[prost(message, tag="7")] Stream(super::StreamInfoList), @@ -1748,11 +1814,13 @@ pub mod egress_info { Segments(super::SegmentsInfo), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StreamInfoList { #[prost(message, repeated, tag="1")] pub info: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StreamInfo { #[prost(string, tag="1")] @@ -1784,9 +1852,9 @@ pub mod stream_info { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Active => "ACTIVE", - Self::Finished => "FINISHED", - Self::Failed => "FAILED", + Status::Active => "ACTIVE", + Status::Finished => "FINISHED", + Status::Failed => "FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1800,6 +1868,7 @@ pub mod stream_info { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct FileInfo { #[prost(string, tag="1")] @@ -1815,6 +1884,7 @@ pub struct FileInfo { #[prost(string, tag="5")] pub location: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SegmentsInfo { #[prost(string, tag="1")] @@ -1836,6 +1906,7 @@ pub struct SegmentsInfo { #[prost(int64, tag="7")] pub ended_at: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ImagesInfo { #[prost(string, tag="4")] @@ -1847,6 +1918,7 @@ pub struct ImagesInfo { #[prost(int64, tag="3")] pub ended_at: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AutoParticipantEgress { #[prost(message, repeated, tag="3")] @@ -1858,7 +1930,8 @@ pub struct AutoParticipantEgress { } /// Nested message and enum types in `AutoParticipantEgress`. pub mod auto_participant_egress { - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Options { /// (default H264_720P_30) #[prost(enumeration="super::EncodingOptionsPreset", tag="1")] @@ -1868,6 +1941,7 @@ pub mod auto_participant_egress { Advanced(super::EncodingOptions), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AutoTrackEgress { /// see docs for templating (default {track_id}-{time}) @@ -1881,7 +1955,8 @@ pub struct AutoTrackEgress { } /// Nested message and enum types in `AutoTrackEgress`. pub mod auto_track_egress { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Output { #[prost(message, tag="2")] S3(super::S3Upload), @@ -1908,9 +1983,9 @@ impl EncodedFileType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::DefaultFiletype => "DEFAULT_FILETYPE", - Self::Mp4 => "MP4", - Self::Ogg => "OGG", + EncodedFileType::DefaultFiletype => "DEFAULT_FILETYPE", + EncodedFileType::Mp4 => "MP4", + EncodedFileType::Ogg => "OGG", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1936,8 +2011,8 @@ impl SegmentedFileProtocol { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::DefaultSegmentedFileProtocol => "DEFAULT_SEGMENTED_FILE_PROTOCOL", - Self::HlsProtocol => "HLS_PROTOCOL", + SegmentedFileProtocol::DefaultSegmentedFileProtocol => "DEFAULT_SEGMENTED_FILE_PROTOCOL", + SegmentedFileProtocol::HlsProtocol => "HLS_PROTOCOL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1962,8 +2037,8 @@ impl SegmentedFileSuffix { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Index => "INDEX", - Self::Timestamp => "TIMESTAMP", + SegmentedFileSuffix::Index => "INDEX", + SegmentedFileSuffix::Timestamp => "TIMESTAMP", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -1988,8 +2063,8 @@ impl ImageFileSuffix { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::ImageSuffixIndex => "IMAGE_SUFFIX_INDEX", - Self::ImageSuffixTimestamp => "IMAGE_SUFFIX_TIMESTAMP", + ImageFileSuffix::ImageSuffixIndex => "IMAGE_SUFFIX_INDEX", + ImageFileSuffix::ImageSuffixTimestamp => "IMAGE_SUFFIX_TIMESTAMP", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2016,9 +2091,9 @@ impl StreamProtocol { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::DefaultProtocol => "DEFAULT_PROTOCOL", - Self::Rtmp => "RTMP", - Self::Srt => "SRT", + StreamProtocol::DefaultProtocol => "DEFAULT_PROTOCOL", + StreamProtocol::Rtmp => "RTMP", + StreamProtocol::Srt => "SRT", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2058,14 +2133,14 @@ impl EncodingOptionsPreset { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::H264720p30 => "H264_720P_30", - Self::H264720p60 => "H264_720P_60", - Self::H2641080p30 => "H264_1080P_30", - Self::H2641080p60 => "H264_1080P_60", - Self::PortraitH264720p30 => "PORTRAIT_H264_720P_30", - Self::PortraitH264720p60 => "PORTRAIT_H264_720P_60", - Self::PortraitH2641080p30 => "PORTRAIT_H264_1080P_30", - Self::PortraitH2641080p60 => "PORTRAIT_H264_1080P_60", + EncodingOptionsPreset::H264720p30 => "H264_720P_30", + EncodingOptionsPreset::H264720p60 => "H264_720P_60", + EncodingOptionsPreset::H2641080p30 => "H264_1080P_30", + EncodingOptionsPreset::H2641080p60 => "H264_1080P_60", + EncodingOptionsPreset::PortraitH264720p30 => "PORTRAIT_H264_720P_30", + EncodingOptionsPreset::PortraitH264720p60 => "PORTRAIT_H264_720P_60", + EncodingOptionsPreset::PortraitH2641080p30 => "PORTRAIT_H264_1080P_30", + EncodingOptionsPreset::PortraitH2641080p60 => "PORTRAIT_H264_1080P_60", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2101,13 +2176,13 @@ impl EgressStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::EgressStarting => "EGRESS_STARTING", - Self::EgressActive => "EGRESS_ACTIVE", - Self::EgressEnding => "EGRESS_ENDING", - Self::EgressComplete => "EGRESS_COMPLETE", - Self::EgressFailed => "EGRESS_FAILED", - Self::EgressAborted => "EGRESS_ABORTED", - Self::EgressLimitReached => "EGRESS_LIMIT_REACHED", + EgressStatus::EgressStarting => "EGRESS_STARTING", + EgressStatus::EgressActive => "EGRESS_ACTIVE", + EgressStatus::EgressEnding => "EGRESS_ENDING", + EgressStatus::EgressComplete => "EGRESS_COMPLETE", + EgressStatus::EgressFailed => "EGRESS_FAILED", + EgressStatus::EgressAborted => "EGRESS_ABORTED", + EgressStatus::EgressLimitReached => "EGRESS_LIMIT_REACHED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2124,6 +2199,7 @@ impl EgressStatus { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignalRequest { #[prost(oneof="signal_request::Message", tags="1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18")] @@ -2131,7 +2207,8 @@ pub struct SignalRequest { } /// Nested message and enum types in `SignalRequest`. pub mod signal_request { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { /// initial join exchange, for publisher #[prost(message, tag="1")] @@ -2186,6 +2263,7 @@ pub mod signal_request { UpdateVideoTrack(super::UpdateLocalVideoTrack), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SignalResponse { #[prost(oneof="signal_response::Message", tags="1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23")] @@ -2193,7 +2271,8 @@ pub struct SignalResponse { } /// Nested message and enum types in `SignalResponse`. pub mod signal_response { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { /// sent when join is accepted #[prost(message, tag="1")] @@ -2266,6 +2345,7 @@ pub mod signal_response { TrackSubscribed(super::TrackSubscribed), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulcastCodec { #[prost(string, tag="1")] @@ -2273,6 +2353,7 @@ pub struct SimulcastCodec { #[prost(string, tag="2")] pub cid: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddTrackRequest { /// client ID of track, to match it when RTC track is received @@ -2314,6 +2395,7 @@ pub struct AddTrackRequest { #[prost(string, tag="15")] pub stream: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrickleRequest { #[prost(string, tag="1")] @@ -2323,6 +2405,7 @@ pub struct TrickleRequest { #[prost(bool, tag="3")] pub r#final: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MuteTrackRequest { #[prost(string, tag="1")] @@ -2330,6 +2413,7 @@ pub struct MuteTrackRequest { #[prost(bool, tag="2")] pub muted: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct JoinResponse { #[prost(message, optional, tag="1")] @@ -2365,6 +2449,7 @@ pub struct JoinResponse { #[prost(bytes="vec", tag="13")] pub sif_trailer: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ReconnectResponse { #[prost(message, repeated, tag="1")] @@ -2372,6 +2457,7 @@ pub struct ReconnectResponse { #[prost(message, optional, tag="2")] pub client_configuration: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackPublishedResponse { #[prost(string, tag="1")] @@ -2379,11 +2465,13 @@ pub struct TrackPublishedResponse { #[prost(message, optional, tag="2")] pub track: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackUnpublishedResponse { #[prost(string, tag="1")] pub track_sid: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionDescription { /// "answer" | "offer" | "pranswer" | "rollback" @@ -2392,11 +2480,13 @@ pub struct SessionDescription { #[prost(string, tag="2")] pub sdp: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ParticipantUpdate { #[prost(message, repeated, tag="1")] pub participants: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSubscription { #[prost(string, repeated, tag="1")] @@ -2406,6 +2496,7 @@ pub struct UpdateSubscription { #[prost(message, repeated, tag="3")] pub participant_tracks: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateTrackSettings { #[prost(string, repeated, tag="1")] @@ -2434,6 +2525,7 @@ pub struct UpdateTrackSettings { #[prost(uint32, tag="8")] pub priority: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateLocalAudioTrack { #[prost(string, tag="1")] @@ -2441,6 +2533,7 @@ pub struct UpdateLocalAudioTrack { #[prost(enumeration="AudioTrackFeature", repeated, tag="2")] pub features: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateLocalVideoTrack { #[prost(string, tag="1")] @@ -2450,6 +2543,7 @@ pub struct UpdateLocalVideoTrack { #[prost(uint32, tag="3")] pub height: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LeaveRequest { /// sent when server initiates the disconnect due to server-restart @@ -2484,9 +2578,9 @@ pub mod leave_request { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Disconnect => "DISCONNECT", - Self::Resume => "RESUME", - Self::Reconnect => "RECONNECT", + Action::Disconnect => "DISCONNECT", + Action::Resume => "RESUME", + Action::Reconnect => "RECONNECT", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2501,6 +2595,7 @@ pub mod leave_request { } } /// message to indicate published video track dimensions are changing +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateVideoLayers { #[prost(string, tag="1")] @@ -2508,6 +2603,7 @@ pub struct UpdateVideoLayers { #[prost(message, repeated, tag="2")] pub layers: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateParticipantMetadata { #[prost(string, tag="1")] @@ -2521,6 +2617,7 @@ pub struct UpdateParticipantMetadata { #[prost(uint32, tag="4")] pub request_id: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IceServer { #[prost(string, repeated, tag="1")] @@ -2530,16 +2627,19 @@ pub struct IceServer { #[prost(string, tag="3")] pub credential: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SpeakersChanged { #[prost(message, repeated, tag="1")] pub speakers: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomUpdate { #[prost(message, optional, tag="1")] pub room: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionQualityInfo { #[prost(string, tag="1")] @@ -2549,11 +2649,13 @@ pub struct ConnectionQualityInfo { #[prost(float, tag="3")] pub score: f32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ConnectionQualityUpdate { #[prost(message, repeated, tag="1")] pub updates: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StreamStateInfo { #[prost(string, tag="1")] @@ -2563,18 +2665,21 @@ pub struct StreamStateInfo { #[prost(enumeration="StreamState", tag="3")] pub state: i32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct StreamStateUpdate { #[prost(message, repeated, tag="1")] pub stream_states: ::prost::alloc::vec::Vec, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscribedQuality { #[prost(enumeration="VideoQuality", tag="1")] pub quality: i32, #[prost(bool, tag="2")] pub enabled: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscribedCodec { #[prost(string, tag="1")] @@ -2582,6 +2687,7 @@ pub struct SubscribedCodec { #[prost(message, repeated, tag="2")] pub qualities: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscribedQualityUpdate { #[prost(string, tag="1")] @@ -2591,6 +2697,7 @@ pub struct SubscribedQualityUpdate { #[prost(message, repeated, tag="3")] pub subscribed_codecs: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackPermission { /// permission could be granted either by participant sid or identity @@ -2603,6 +2710,7 @@ pub struct TrackPermission { #[prost(string, tag="4")] pub participant_identity: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscriptionPermission { #[prost(bool, tag="1")] @@ -2610,6 +2718,7 @@ pub struct SubscriptionPermission { #[prost(message, repeated, tag="2")] pub track_permissions: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscriptionPermissionUpdate { #[prost(string, tag="1")] @@ -2619,6 +2728,7 @@ pub struct SubscriptionPermissionUpdate { #[prost(bool, tag="3")] pub allowed: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SyncState { /// last subscribe answer before reconnecting @@ -2636,6 +2746,7 @@ pub struct SyncState { #[prost(string, repeated, tag="6")] pub track_sids_disabled: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DataChannelInfo { #[prost(string, tag="1")] @@ -2645,14 +2756,16 @@ pub struct DataChannelInfo { #[prost(enumeration="SignalTarget", tag="3")] pub target: i32, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateScenario { #[prost(oneof="simulate_scenario::Scenario", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] pub scenario: ::core::option::Option, } /// Nested message and enum types in `SimulateScenario`. pub mod simulate_scenario { - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Scenario { /// simulate N seconds of speaker activity #[prost(int32, tag="1")] @@ -2684,7 +2797,8 @@ pub mod simulate_scenario { LeaveRequestFullReconnect(bool), } } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Ping { #[prost(int64, tag="1")] pub timestamp: i64, @@ -2692,7 +2806,8 @@ pub struct Ping { #[prost(int64, tag="2")] pub rtt: i64, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Pong { /// timestamp field of last received ping request #[prost(int64, tag="1")] @@ -2700,11 +2815,13 @@ pub struct Pong { #[prost(int64, tag="2")] pub timestamp: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegionSettings { #[prost(message, repeated, tag="1")] pub regions: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegionInfo { #[prost(string, tag="1")] @@ -2714,6 +2831,7 @@ pub struct RegionInfo { #[prost(int64, tag="3")] pub distance: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SubscriptionResponse { #[prost(string, tag="1")] @@ -2721,6 +2839,7 @@ pub struct SubscriptionResponse { #[prost(enumeration="SubscriptionError", tag="2")] pub err: i32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestResponse { #[prost(uint32, tag="1")] @@ -2747,10 +2866,10 @@ pub mod request_response { /// (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::NotFound => "NOT_FOUND", - Self::NotAllowed => "NOT_ALLOWED", - Self::LimitExceeded => "LIMIT_EXCEEDED", + Reason::Ok => "OK", + Reason::NotFound => "NOT_FOUND", + Reason::NotAllowed => "NOT_ALLOWED", + Reason::LimitExceeded => "LIMIT_EXCEEDED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2765,6 +2884,7 @@ pub mod request_response { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct TrackSubscribed { #[prost(string, tag="1")] @@ -2783,8 +2903,8 @@ impl SignalTarget { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Publisher => "PUBLISHER", - Self::Subscriber => "SUBSCRIBER", + SignalTarget::Publisher => "PUBLISHER", + SignalTarget::Subscriber => "SUBSCRIBER", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2809,8 +2929,8 @@ impl StreamState { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Active => "ACTIVE", - Self::Paused => "PAUSED", + StreamState::Active => "ACTIVE", + StreamState::Paused => "PAUSED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2836,9 +2956,9 @@ impl CandidateProtocol { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Udp => "UDP", - Self::Tcp => "TCP", - Self::Tls => "TLS", + CandidateProtocol::Udp => "UDP", + CandidateProtocol::Tcp => "TCP", + CandidateProtocol::Tls => "TLS", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2851,6 +2971,7 @@ impl CandidateProtocol { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Job { #[prost(string, tag="1")] @@ -2873,6 +2994,7 @@ pub struct Job { #[prost(message, optional, tag="8")] pub state: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct JobState { #[prost(enumeration="JobStatus", tag="1")] @@ -2889,6 +3011,7 @@ pub struct JobState { pub participant_identity: ::prost::alloc::string::String, } /// from Worker to Server +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerMessage { #[prost(oneof="worker_message::Message", tags="1, 2, 3, 4, 5, 6, 7")] @@ -2896,7 +3019,8 @@ pub struct WorkerMessage { } /// Nested message and enum types in `WorkerMessage`. pub mod worker_message { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { /// agent workers need to register themselves with the server first #[prost(message, tag="1")] @@ -2919,6 +3043,7 @@ pub mod worker_message { } } /// from Server to Worker +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ServerMessage { #[prost(oneof="server_message::Message", tags="1, 2, 3, 5, 4")] @@ -2926,7 +3051,8 @@ pub struct ServerMessage { } /// Nested message and enum types in `ServerMessage`. pub mod server_message { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Message { /// server confirms the registration, from this moment on, the worker is considered active #[prost(message, tag="1")] @@ -2942,6 +3068,7 @@ pub mod server_message { Pong(super::WorkerPong), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SimulateJobRequest { #[prost(enumeration="JobType", tag="1")] @@ -2951,18 +3078,21 @@ pub struct SimulateJobRequest { #[prost(message, optional, tag="3")] pub participant: ::core::option::Option, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerPing { #[prost(int64, tag="1")] pub timestamp: i64, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerPong { #[prost(int64, tag="1")] pub last_timestamp: i64, #[prost(int64, tag="2")] pub timestamp: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisterWorkerRequest { #[prost(enumeration="JobType", tag="1")] @@ -2980,6 +3110,7 @@ pub struct RegisterWorkerRequest { #[prost(message, optional, tag="7")] pub allowed_permissions: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RegisterWorkerResponse { #[prost(string, tag="1")] @@ -2987,12 +3118,14 @@ pub struct RegisterWorkerResponse { #[prost(message, optional, tag="3")] pub server_info: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MigrateJobRequest { /// string job_id = 1 \[deprecated = true\]; #[prost(string, repeated, tag="2")] pub job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AvailabilityRequest { #[prost(message, optional, tag="1")] @@ -3002,6 +3135,7 @@ pub struct AvailabilityRequest { #[prost(bool, tag="2")] pub resuming: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AvailabilityResponse { #[prost(string, tag="1")] @@ -3019,6 +3153,7 @@ pub struct AvailabilityResponse { #[prost(map="string, string", tag="7")] pub participant_attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateJobStatus { #[prost(string, tag="1")] @@ -3030,7 +3165,8 @@ pub struct UpdateJobStatus { #[prost(string, tag="3")] pub error: ::prost::alloc::string::String, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateWorkerStatus { #[prost(enumeration="WorkerStatus", optional, tag="1")] pub status: ::core::option::Option, @@ -3040,6 +3176,7 @@ pub struct UpdateWorkerStatus { #[prost(int32, tag="4")] pub job_count: i32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct JobAssignment { #[prost(message, optional, tag="1")] @@ -3049,6 +3186,7 @@ pub struct JobAssignment { #[prost(string, tag="3")] pub token: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct JobTermination { #[prost(string, tag="1")] @@ -3067,8 +3205,8 @@ impl JobType { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::JtRoom => "JT_ROOM", - Self::JtPublisher => "JT_PUBLISHER", + JobType::JtRoom => "JT_ROOM", + JobType::JtPublisher => "JT_PUBLISHER", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3093,8 +3231,8 @@ impl WorkerStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::WsAvailable => "WS_AVAILABLE", - Self::WsFull => "WS_FULL", + WorkerStatus::WsAvailable => "WS_AVAILABLE", + WorkerStatus::WsFull => "WS_FULL", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3121,10 +3259,10 @@ impl JobStatus { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::JsPending => "JS_PENDING", - Self::JsRunning => "JS_RUNNING", - Self::JsSuccess => "JS_SUCCESS", - Self::JsFailed => "JS_FAILED", + JobStatus::JsPending => "JS_PENDING", + JobStatus::JsRunning => "JS_RUNNING", + JobStatus::JsSuccess => "JS_SUCCESS", + JobStatus::JsFailed => "JS_FAILED", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3138,6 +3276,7 @@ impl JobStatus { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateAgentDispatchRequest { #[prost(string, tag="1")] @@ -3147,6 +3286,7 @@ pub struct CreateAgentDispatchRequest { #[prost(string, tag="3")] pub metadata: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomAgentDispatch { #[prost(string, tag="1")] @@ -3154,6 +3294,7 @@ pub struct RoomAgentDispatch { #[prost(string, tag="2")] pub metadata: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteAgentDispatchRequest { #[prost(string, tag="1")] @@ -3161,6 +3302,7 @@ pub struct DeleteAgentDispatchRequest { #[prost(string, tag="2")] pub room: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAgentDispatchRequest { /// if set, only the dispatch whose id is given will be returned @@ -3170,11 +3312,13 @@ pub struct ListAgentDispatchRequest { #[prost(string, tag="2")] pub room: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListAgentDispatchResponse { #[prost(message, repeated, tag="1")] pub agent_dispatches: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AgentDispatch { #[prost(string, tag="1")] @@ -3188,6 +3332,7 @@ pub struct AgentDispatch { #[prost(message, optional, tag="5")] pub state: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AgentDispatchState { /// For dispatches of tyoe JT_ROOM, there will be at most 1 job. @@ -3199,6 +3344,7 @@ pub struct AgentDispatchState { #[prost(int64, tag="3")] pub deleted_at: i64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateRoomRequest { /// name of the room @@ -3243,6 +3389,7 @@ pub struct CreateRoomRequest { #[prost(bool, tag="13")] pub replay_enabled: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomEgress { #[prost(message, optional, tag="1")] @@ -3252,42 +3399,50 @@ pub struct RoomEgress { #[prost(message, optional, tag="2")] pub tracks: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomAgent { #[prost(message, repeated, tag="1")] pub dispatches: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListRoomsRequest { /// when set, will only return rooms with name match #[prost(string, repeated, tag="1")] pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListRoomsResponse { #[prost(message, repeated, tag="1")] pub rooms: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteRoomRequest { /// name of the room #[prost(string, tag="1")] pub room: ::prost::alloc::string::String, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteRoomResponse { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListParticipantsRequest { /// name of the room #[prost(string, tag="1")] pub room: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListParticipantsResponse { #[prost(message, repeated, tag="1")] pub participants: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomParticipantIdentity { /// name of the room @@ -3297,9 +3452,11 @@ pub struct RoomParticipantIdentity { #[prost(string, tag="2")] pub identity: ::prost::alloc::string::String, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RemoveParticipantResponse { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MuteRoomTrackRequest { /// name of the room @@ -3314,11 +3471,13 @@ pub struct MuteRoomTrackRequest { #[prost(bool, tag="4")] pub muted: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MuteRoomTrackResponse { #[prost(message, optional, tag="1")] pub track: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateParticipantRequest { #[prost(string, tag="1")] @@ -3339,6 +3498,7 @@ pub struct UpdateParticipantRequest { #[prost(map="string, string", tag="6")] pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSubscriptionsRequest { #[prost(string, tag="1")] @@ -3356,9 +3516,11 @@ pub struct UpdateSubscriptionsRequest { pub participant_tracks: ::prost::alloc::vec::Vec, } /// empty for now -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateSubscriptionsResponse { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SendDataRequest { #[prost(string, tag="1")] @@ -3378,9 +3540,11 @@ pub struct SendDataRequest { pub topic: ::core::option::Option<::prost::alloc::string::String>, } /// -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SendDataResponse { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateRoomMetadataRequest { #[prost(string, tag="1")] @@ -3389,6 +3553,7 @@ pub struct UpdateRoomMetadataRequest { #[prost(string, tag="2")] pub metadata: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RoomConfiguration { /// Used as ID, must be unique @@ -3419,6 +3584,7 @@ pub struct RoomConfiguration { #[prost(bool, tag="9")] pub sync_streams: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateIngressRequest { #[prost(enumeration="IngressInput", tag="1")] @@ -3453,6 +3619,7 @@ pub struct CreateIngressRequest { #[prost(message, optional, tag="7")] pub video: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressAudioOptions { #[prost(string, tag="1")] @@ -3464,7 +3631,8 @@ pub struct IngressAudioOptions { } /// Nested message and enum types in `IngressAudioOptions`. pub mod ingress_audio_options { - #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum EncodingOptions { #[prost(enumeration="super::IngressAudioEncodingPreset", tag="3")] Preset(i32), @@ -3472,6 +3640,7 @@ pub mod ingress_audio_options { Options(super::IngressAudioEncodingOptions), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressVideoOptions { #[prost(string, tag="1")] @@ -3483,7 +3652,8 @@ pub struct IngressVideoOptions { } /// Nested message and enum types in `IngressVideoOptions`. pub mod ingress_video_options { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum EncodingOptions { #[prost(enumeration="super::IngressVideoEncodingPreset", tag="3")] Preset(i32), @@ -3491,7 +3661,8 @@ pub mod ingress_video_options { Options(super::IngressVideoEncodingOptions), } } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressAudioEncodingOptions { /// desired audio codec to publish to room #[prost(enumeration="AudioCodec", tag="1")] @@ -3503,6 +3674,7 @@ pub struct IngressAudioEncodingOptions { #[prost(uint32, tag="4")] pub channels: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressVideoEncodingOptions { /// desired codec to publish to room @@ -3514,6 +3686,7 @@ pub struct IngressVideoEncodingOptions { #[prost(message, repeated, tag="3")] pub layers: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressInfo { #[prost(string, tag="1")] @@ -3553,6 +3726,7 @@ pub struct IngressInfo { #[prost(message, optional, tag="12")] pub state: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct IngressState { #[prost(enumeration="ingress_state::Status", tag="1")] @@ -3596,11 +3770,11 @@ pub mod ingress_state { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::EndpointInactive => "ENDPOINT_INACTIVE", - Self::EndpointBuffering => "ENDPOINT_BUFFERING", - Self::EndpointPublishing => "ENDPOINT_PUBLISHING", - Self::EndpointError => "ENDPOINT_ERROR", - Self::EndpointComplete => "ENDPOINT_COMPLETE", + Status::EndpointInactive => "ENDPOINT_INACTIVE", + Status::EndpointBuffering => "ENDPOINT_BUFFERING", + Status::EndpointPublishing => "ENDPOINT_PUBLISHING", + Status::EndpointError => "ENDPOINT_ERROR", + Status::EndpointComplete => "ENDPOINT_COMPLETE", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3616,6 +3790,7 @@ pub mod ingress_state { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InputVideoState { #[prost(string, tag="1")] @@ -3629,6 +3804,7 @@ pub struct InputVideoState { #[prost(double, tag="5")] pub framerate: f64, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InputAudioState { #[prost(string, tag="1")] @@ -3640,6 +3816,7 @@ pub struct InputAudioState { #[prost(uint32, tag="4")] pub sample_rate: u32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateIngressRequest { #[prost(string, tag="1")] @@ -3664,6 +3841,7 @@ pub struct UpdateIngressRequest { #[prost(message, optional, tag="7")] pub video: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListIngressRequest { /// when blank, lists all ingress endpoints @@ -3675,11 +3853,13 @@ pub struct ListIngressRequest { #[prost(string, tag="2")] pub ingress_id: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListIngressResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteIngressRequest { #[prost(string, tag="1")] @@ -3700,9 +3880,9 @@ impl IngressInput { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::RtmpInput => "RTMP_INPUT", - Self::WhipInput => "WHIP_INPUT", - Self::UrlInput => "URL_INPUT", + IngressInput::RtmpInput => "RTMP_INPUT", + IngressInput::WhipInput => "WHIP_INPUT", + IngressInput::UrlInput => "URL_INPUT", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3730,8 +3910,8 @@ impl IngressAudioEncodingPreset { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::OpusStereo96kbps => "OPUS_STEREO_96KBPS", - Self::OpusMono64kbs => "OPUS_MONO_64KBS", + IngressAudioEncodingPreset::OpusStereo96kbps => "OPUS_STEREO_96KBPS", + IngressAudioEncodingPreset::OpusMono64kbs => "OPUS_MONO_64KBS", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3774,16 +3954,16 @@ impl IngressVideoEncodingPreset { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::H264720p30fps3Layers => "H264_720P_30FPS_3_LAYERS", - Self::H2641080p30fps3Layers => "H264_1080P_30FPS_3_LAYERS", - Self::H264540p25fps2Layers => "H264_540P_25FPS_2_LAYERS", - Self::H264720p30fps1Layer => "H264_720P_30FPS_1_LAYER", - Self::H2641080p30fps1Layer => "H264_1080P_30FPS_1_LAYER", - Self::H264720p30fps3LayersHighMotion => "H264_720P_30FPS_3_LAYERS_HIGH_MOTION", - Self::H2641080p30fps3LayersHighMotion => "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION", - Self::H264540p25fps2LayersHighMotion => "H264_540P_25FPS_2_LAYERS_HIGH_MOTION", - Self::H264720p30fps1LayerHighMotion => "H264_720P_30FPS_1_LAYER_HIGH_MOTION", - Self::H2641080p30fps1LayerHighMotion => "H264_1080P_30FPS_1_LAYER_HIGH_MOTION", + IngressVideoEncodingPreset::H264720p30fps3Layers => "H264_720P_30FPS_3_LAYERS", + IngressVideoEncodingPreset::H2641080p30fps3Layers => "H264_1080P_30FPS_3_LAYERS", + IngressVideoEncodingPreset::H264540p25fps2Layers => "H264_540P_25FPS_2_LAYERS", + IngressVideoEncodingPreset::H264720p30fps1Layer => "H264_720P_30FPS_1_LAYER", + IngressVideoEncodingPreset::H2641080p30fps1Layer => "H264_1080P_30FPS_1_LAYER", + IngressVideoEncodingPreset::H264720p30fps3LayersHighMotion => "H264_720P_30FPS_3_LAYERS_HIGH_MOTION", + IngressVideoEncodingPreset::H2641080p30fps3LayersHighMotion => "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION", + IngressVideoEncodingPreset::H264540p25fps2LayersHighMotion => "H264_540P_25FPS_2_LAYERS_HIGH_MOTION", + IngressVideoEncodingPreset::H264720p30fps1LayerHighMotion => "H264_720P_30FPS_1_LAYER_HIGH_MOTION", + IngressVideoEncodingPreset::H2641080p30fps1LayerHighMotion => "H264_1080P_30FPS_1_LAYER_HIGH_MOTION", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3803,6 +3983,7 @@ impl IngressVideoEncodingPreset { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct WebhookEvent { /// one of room_started, room_finished, participant_joined, participant_left, @@ -3833,6 +4014,7 @@ pub struct WebhookEvent { #[prost(int32, tag="11")] pub num_dropped: i32, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSipTrunkRequest { /// CIDR or IPs that traffic is accepted from @@ -3870,6 +4052,7 @@ pub struct CreateSipTrunkRequest { #[prost(string, tag="11")] pub metadata: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipTrunkInfo { #[prost(string, tag="1")] @@ -3930,9 +4113,9 @@ pub mod sip_trunk_info { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::TrunkLegacy => "TRUNK_LEGACY", - Self::TrunkInbound => "TRUNK_INBOUND", - Self::TrunkOutbound => "TRUNK_OUTBOUND", + TrunkKind::TrunkLegacy => "TRUNK_LEGACY", + TrunkKind::TrunkInbound => "TRUNK_INBOUND", + TrunkKind::TrunkOutbound => "TRUNK_OUTBOUND", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -3946,12 +4129,14 @@ pub mod sip_trunk_info { } } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSipInboundTrunkRequest { /// Trunk ID is ignored #[prost(message, optional, tag="1")] pub trunk: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipInboundTrunkInfo { #[prost(string, tag="1")] @@ -3981,12 +4166,14 @@ pub struct SipInboundTrunkInfo { #[prost(string, tag="8")] pub auth_password: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSipOutboundTrunkRequest { /// Trunk ID is ignored #[prost(message, optional, tag="1")] pub trunk: ::core::option::Option, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipOutboundTrunkInfo { #[prost(string, tag="1")] @@ -4014,35 +4201,43 @@ pub struct SipOutboundTrunkInfo { #[prost(string, tag="8")] pub auth_password: ::prost::alloc::string::String, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipTrunkRequest { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipTrunkResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipInboundTrunkRequest { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipInboundTrunkResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipOutboundTrunkRequest { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipOutboundTrunkResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteSipTrunkRequest { #[prost(string, tag="1")] pub sip_trunk_id: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipDispatchRuleDirect { /// What room should call be directed into @@ -4052,6 +4247,7 @@ pub struct SipDispatchRuleDirect { #[prost(string, tag="2")] pub pin: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipDispatchRuleIndividual { /// Prefix used on new room name @@ -4061,6 +4257,7 @@ pub struct SipDispatchRuleIndividual { #[prost(string, tag="2")] pub pin: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipDispatchRule { #[prost(oneof="sip_dispatch_rule::Rule", tags="1, 2")] @@ -4068,7 +4265,8 @@ pub struct SipDispatchRule { } /// Nested message and enum types in `SIPDispatchRule`. pub mod sip_dispatch_rule { - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Rule { /// SIPDispatchRuleDirect is a `SIP Dispatch Rule` that puts a user directly into a room /// This places users into an existing room. Optionally you can require a pin before a user can @@ -4080,6 +4278,7 @@ pub mod sip_dispatch_rule { DispatchRuleIndividual(super::SipDispatchRuleIndividual), } } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSipDispatchRuleRequest { #[prost(message, optional, tag="1")] @@ -4107,6 +4306,7 @@ pub struct CreateSipDispatchRuleRequest { #[prost(map="string, string", tag="7")] pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipDispatchRuleInfo { #[prost(string, tag="1")] @@ -4132,14 +4332,17 @@ pub struct SipDispatchRuleInfo { #[prost(map="string, string", tag="8")] pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } -#[derive(Clone, Copy, PartialEq, ::prost::Message)] +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipDispatchRuleRequest { } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ListSipDispatchRuleResponse { #[prost(message, repeated, tag="1")] pub items: ::prost::alloc::vec::Vec, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteSipDispatchRuleRequest { #[prost(string, tag="1")] @@ -4147,6 +4350,7 @@ pub struct DeleteSipDispatchRuleRequest { } /// A SIP Participant is a singular SIP session connected to a LiveKit room via /// a SIP Trunk into a SIP DispatchRule +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateSipParticipantRequest { /// What SIP Trunk should be used to dial the user @@ -4182,6 +4386,7 @@ pub struct CreateSipParticipantRequest { #[prost(bool, tag="10")] pub hide_phone_number: bool, } +#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SipParticipantInfo { #[prost(string, tag="1")] @@ -4208,10 +4413,10 @@ impl SipTransport { /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { - Self::Auto => "SIP_TRANSPORT_AUTO", - Self::Udp => "SIP_TRANSPORT_UDP", - Self::Tcp => "SIP_TRANSPORT_TCP", - Self::Tls => "SIP_TRANSPORT_TLS", + SipTransport::Auto => "SIP_TRANSPORT_AUTO", + SipTransport::Udp => "SIP_TRANSPORT_UDP", + SipTransport::Tcp => "SIP_TRANSPORT_TCP", + SipTransport::Tls => "SIP_TRANSPORT_TLS", } } /// Creates an enum from field names used in the ProtoBuf definition.