#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct IngestMcapProtobufRequest {
    #[builder(custom(type = super::ObjectLocator, convert = Box::new))]
    #[serde(rename = "locator")]
    locator: Box<super::ObjectLocator>,
    #[builder(custom(type = super::McapProtoChannels, convert = Box::new))]
    #[serde(rename = "channels")]
    channels: Box<super::McapProtoChannels>,
    #[builder(default, into)]
    #[serde(
        rename = "ignoreInvalidTopics",
        skip_serializing_if = "Option::is_none",
        default
    )]
    ignore_invalid_topics: Option<bool>,
}
impl IngestMcapProtobufRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        locator: super::ObjectLocator,
        channels: super::McapProtoChannels,
    ) -> Self {
        Self::builder().locator(locator).channels(channels).build()
    }
    #[inline]
    pub fn locator(&self) -> &super::ObjectLocator {
        &*self.locator
    }
    #[inline]
    pub fn channels(&self) -> &super::McapProtoChannels {
        &*self.channels
    }
    /// If true, skips invalid MCAP topics during ingestion instead of failing the entire ingest.
    /// If not provided, defaults to false.
    #[inline]
    pub fn ignore_invalid_topics(&self) -> Option<bool> {
        self.ignore_invalid_topics.as_ref().map(|o| *o)
    }
}
