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;

/// DataSplitResult : Data split result. This contains references to the training and evaluation data tables that were used to train the model.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataSplitResult {
    #[serde(rename = "evaluationTable", skip_serializing_if = "Option::is_none")]
    pub evaluation_table: Option<Box<models::TableReference>>,
    #[serde(rename = "testTable", skip_serializing_if = "Option::is_none")]
    pub test_table: Option<Box<models::TableReference>>,
    #[serde(rename = "trainingTable", skip_serializing_if = "Option::is_none")]
    pub training_table: Option<Box<models::TableReference>>,
}

impl DataSplitResult {
    /// Data split result. This contains references to the training and evaluation data tables that were used to train the model.
    pub fn new() -> DataSplitResult {
        DataSplitResult {
            evaluation_table: None,
            test_table: None,
            training_table: None,
        }
    }
}
