use serde::{Deserialize, Serialize}; /*
                                      * BigQuery API
                                      *
                                      * A data platform for customers to create, manage, share and query data.
                                      *
                                      * The version of the OpenAPI document: v2
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::bigquery_v2::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AvroOptions {
    /// [Optional] If sourceFormat is set to \"AVRO\", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
    #[serde(
        rename = "useAvroLogicalTypes",
        skip_serializing_if = "Option::is_none"
    )]
    pub use_avro_logical_types: Option<bool>,
}

impl AvroOptions {
    pub fn new() -> AvroOptions {
        AvroOptions {
            use_avro_logical_types: None,
        }
    }
}
