#[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 IngestMcapProtobufResponse {
    #[builder(into)]
    #[serde(rename = "timestampColumnName")]
    timestamp_column_name: String,
    #[builder(default, list(item(type = super::ObjectLocator)))]
    #[serde(
        rename = "parquetObjectLocators",
        skip_serializing_if = "Vec::is_empty",
        default
    )]
    parquet_object_locators: Vec<super::ObjectLocator>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::ObjectLocator>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "avroLocator", skip_serializing_if = "Option::is_none", default)]
    avro_locator: Option<Box<super::ObjectLocator>>,
}
impl IngestMcapProtobufResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(timestamp_column_name: impl Into<String>) -> Self {
        Self::builder().timestamp_column_name(timestamp_column_name).build()
    }
    #[inline]
    pub fn timestamp_column_name(&self) -> &str {
        &*self.timestamp_column_name
    }
    /// Azure or S3-style blob locators of parquet files. Currently
    /// only a single file is supported, the list type is used for future compatibility.
    #[inline]
    pub fn parquet_object_locators(&self) -> &[super::ObjectLocator] {
        &*self.parquet_object_locators
    }
    /// Azure or S3-style blob locator of avro file when avro processing is configured.
    /// This field is only set when the workflow is configured to write avro stream.
    #[inline]
    pub fn avro_locator(&self) -> Option<&super::ObjectLocator> {
        self.avro_locator.as_ref().map(|o| &**o)
    }
}
