scala.googleapis.bigquery.BqmlTrainingRun.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class BqmlTrainingRun(
/** Deprecated.
*/
iterationResults: Option[List[BqmlIterationResult]] = None,
/** Deprecated.
*/
startTime: Option[String] = None,
/** Deprecated.
*/
state: Option[String] = None,
/** Deprecated.
*/
trainingOptions: Option[BqmlTrainingRunTrainingOptions] = None,
)
object BqmlTrainingRun {
implicit val encoder: Encoder[BqmlTrainingRun] = Encoder.instance { x =>
Json.obj(
"iterationResults" := x.iterationResults,
"startTime" := x.startTime,
"state" := x.state,
"trainingOptions" := x.trainingOptions,
)
}
implicit val decoder: Decoder[BqmlTrainingRun] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[BqmlIterationResult]]]("iterationResults")
v1 <- c.get[Option[String]]("startTime")
v2 <- c.get[Option[String]]("state")
v3 <- c.get[Option[BqmlTrainingRunTrainingOptions]]("trainingOptions")
} yield BqmlTrainingRun(v0, v1, v2, v3)
}
}