// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractAvTagsRequest {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub question_side: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractAvTagsResponse {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub av_tags: ::prost::alloc::vec::Vec<AvTag>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct AvTag {
    #[prost(oneof = "av_tag::Value", tags = "1, 2")]
    pub value: ::core::option::Option<av_tag::Value>,
}
/// Nested message and enum types in `AVTag`.
pub mod av_tag {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    #[must_use]
pub enum Value {
        #[prost(string, tag = "1")]
        SoundOrVideo(::prost::alloc::string::String),
        #[prost(message, tag = "2")]
        Tts(super::TtsTag),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct TtsTag {
    #[prost(string, tag = "1")]
    pub field_text: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub lang: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "3")]
    pub voices: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(float, tag = "4")]
    pub speed: f32,
    #[prost(string, repeated, tag = "5")]
    pub other_args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractLatexRequest {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub svg: bool,
    #[prost(bool, tag = "3")]
    pub expand_clozes: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractLatexResponse {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub latex: ::prost::alloc::vec::Vec<ExtractedLatex>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractedLatex {
    #[prost(string, tag = "1")]
    pub filename: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub latex_body: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct EmptyCardsReport {
    #[prost(string, tag = "1")]
    pub report: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "2")]
    pub notes: ::prost::alloc::vec::Vec<empty_cards_report::NoteWithEmptyCards>,
}
/// Nested message and enum types in `EmptyCardsReport`.
pub mod empty_cards_report {
    #[derive(Clone, PartialEq, ::prost::Message)]
    #[must_use]
pub struct NoteWithEmptyCards {
        #[prost(int64, tag = "1")]
        pub note_id: i64,
        #[prost(int64, repeated, tag = "2")]
        pub card_ids: ::prost::alloc::vec::Vec<i64>,
        #[prost(bool, tag = "3")]
        pub will_delete_note: bool,
    }
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderExistingCardRequest {
    #[prost(int64, tag = "1")]
    pub card_id: i64,
    #[prost(bool, tag = "2")]
    pub browser: bool,
    /// If true, rendering will stop when an unknown filter is encountered,
    /// and caller will need to complete rendering. This is done to allow
    /// Python code to modify the rendering.
    #[prost(bool, tag = "3")]
    pub partial_render: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderUncommittedCardRequest {
    #[prost(message, optional, tag = "1")]
    pub note: ::core::option::Option<super::notes::Note>,
    #[prost(uint32, tag = "2")]
    pub card_ord: u32,
    #[prost(message, optional, tag = "3")]
    pub template: ::core::option::Option<super::notetypes::notetype::Template>,
    #[prost(bool, tag = "4")]
    pub fill_empty: bool,
    /// If true, rendering will stop when an unknown filter is encountered,
    /// and caller will need to complete rendering. This is done to allow
    /// Python code to modify the rendering.
    #[prost(bool, tag = "5")]
    pub partial_render: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderUncommittedCardLegacyRequest {
    #[prost(message, optional, tag = "1")]
    pub note: ::core::option::Option<super::notes::Note>,
    #[prost(uint32, tag = "2")]
    pub card_ord: u32,
    #[prost(bytes = "vec", tag = "3")]
    pub template: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, tag = "4")]
    pub fill_empty: bool,
    /// If true, rendering will stop when an unknown filter is encountered,
    /// and caller will need to complete rendering. This is done to allow
    /// Python code to modify the rendering.
    #[prost(bool, tag = "5")]
    pub partial_render: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderCardResponse {
    #[prost(message, repeated, tag = "1")]
    pub question_nodes: ::prost::alloc::vec::Vec<RenderedTemplateNode>,
    #[prost(message, repeated, tag = "2")]
    pub answer_nodes: ::prost::alloc::vec::Vec<RenderedTemplateNode>,
    #[prost(string, tag = "3")]
    pub css: ::prost::alloc::string::String,
    #[prost(bool, tag = "4")]
    pub latex_svg: bool,
    #[prost(bool, tag = "5")]
    pub is_empty: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderedTemplateNode {
    #[prost(oneof = "rendered_template_node::Value", tags = "1, 2")]
    pub value: ::core::option::Option<rendered_template_node::Value>,
}
/// Nested message and enum types in `RenderedTemplateNode`.
pub mod rendered_template_node {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    #[must_use]
pub enum Value {
        #[prost(string, tag = "1")]
        Text(::prost::alloc::string::String),
        #[prost(message, tag = "2")]
        Replacement(super::RenderedTemplateReplacement),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderedTemplateReplacement {
    #[prost(string, tag = "1")]
    pub field_name: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub current_text: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "3")]
    pub filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct RenderMarkdownRequest {
    #[prost(string, tag = "1")]
    pub markdown: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub sanitize: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct StripHtmlRequest {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(enumeration = "strip_html_request::Mode", tag = "2")]
    pub mode: i32,
}
/// Nested message and enum types in `StripHtmlRequest`.
pub mod strip_html_request {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    #[must_use]
pub enum Mode {
        Normal = 0,
        PreserveMediaFilenames = 1,
    }
    impl Mode {
        /// 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 {
                Self::Normal => "NORMAL",
                Self::PreserveMediaFilenames => "PRESERVE_MEDIA_FILENAMES",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "NORMAL" => Some(Self::Normal),
                "PRESERVE_MEDIA_FILENAMES" => Some(Self::PreserveMediaFilenames),
                _ => None,
            }
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct HtmlToTextLineRequest {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub preserve_media_filenames: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct CompareAnswerRequest {
    #[prost(string, tag = "1")]
    pub expected: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub provided: ::prost::alloc::string::String,
    #[prost(bool, tag = "3")]
    pub combining: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct ExtractClozeForTypingRequest {
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    #[prost(uint32, tag = "2")]
    pub ordinal: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
#[must_use]
pub struct AllTtsVoicesRequest {
    #[prost(bool, tag = "1")]
    pub validate: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct AllTtsVoicesResponse {
    #[prost(message, repeated, tag = "1")]
    pub voices: ::prost::alloc::vec::Vec<all_tts_voices_response::TtsVoice>,
}
/// Nested message and enum types in `AllTtsVoicesResponse`.
pub mod all_tts_voices_response {
    #[derive(Clone, PartialEq, ::prost::Message)]
    #[must_use]
pub struct TtsVoice {
        #[prost(string, tag = "1")]
        pub id: ::prost::alloc::string::String,
        #[prost(string, tag = "2")]
        pub name: ::prost::alloc::string::String,
        #[prost(string, tag = "3")]
        pub language: ::prost::alloc::string::String,
        #[prost(bool, optional, tag = "4")]
        pub available: ::core::option::Option<bool>,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[must_use]
pub struct WriteTtsStreamRequest {
    #[prost(string, tag = "1")]
    pub path: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub voice_id: ::prost::alloc::string::String,
    #[prost(float, tag = "3")]
    pub speed: f32,
    #[prost(string, tag = "4")]
    pub text: ::prost::alloc::string::String,
}
