#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Style { #[prost(message, optional, tag = "1")] pub palette: ::core::option::Option, #[prost(bool, tag = "2")] pub rounded_corners: bool, #[prost(bool, tag = "3")] pub hide_session_name: bool, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Palette { #[prost(enumeration = "ThemeHue", tag = "1")] pub theme_hue: i32, #[prost(message, optional, tag = "2")] pub fg: ::core::option::Option, #[prost(message, optional, tag = "3")] pub bg: ::core::option::Option, #[prost(message, optional, tag = "4")] pub black: ::core::option::Option, #[prost(message, optional, tag = "5")] pub red: ::core::option::Option, #[prost(message, optional, tag = "6")] pub green: ::core::option::Option, #[prost(message, optional, tag = "7")] pub yellow: ::core::option::Option, #[prost(message, optional, tag = "8")] pub blue: ::core::option::Option, #[prost(message, optional, tag = "9")] pub magenta: ::core::option::Option, #[prost(message, optional, tag = "10")] pub cyan: ::core::option::Option, #[prost(message, optional, tag = "11")] pub white: ::core::option::Option, #[prost(message, optional, tag = "12")] pub orange: ::core::option::Option, #[prost(message, optional, tag = "13")] pub gray: ::core::option::Option, #[prost(message, optional, tag = "14")] pub purple: ::core::option::Option, #[prost(message, optional, tag = "15")] pub gold: ::core::option::Option, #[prost(message, optional, tag = "16")] pub silver: ::core::option::Option, #[prost(message, optional, tag = "17")] pub pink: ::core::option::Option, #[prost(message, optional, tag = "18")] pub brown: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Color { #[prost(enumeration = "ColorType", tag = "1")] pub color_type: i32, #[prost(oneof = "color::Payload", tags = "2, 3")] pub payload: ::core::option::Option, } /// Nested message and enum types in `Color`. pub mod color { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Payload { #[prost(message, tag = "2")] RgbColorPayload(super::RgbColorPayload), #[prost(uint32, tag = "3")] EightBitColorPayload(u32), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RgbColorPayload { #[prost(uint32, tag = "1")] pub red: u32, #[prost(uint32, tag = "2")] pub green: u32, #[prost(uint32, tag = "3")] pub blue: u32, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum ColorType { Rgb = 0, EightBit = 1, } impl ColorType { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { ColorType::Rgb => "Rgb", ColorType::EightBit => "EightBit", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "Rgb" => Some(Self::Rgb), "EightBit" => Some(Self::EightBit), _ => None, } } } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum ThemeHue { Dark = 0, Light = 1, } impl ThemeHue { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. pub fn as_str_name(&self) -> &'static str { match self { ThemeHue::Dark => "Dark", ThemeHue::Light => "Light", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option { match value { "Dark" => Some(Self::Dark), "Light" => Some(Self::Light), _ => None, } } }