All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.googleapis.bigquery.BqmlTrainingRun.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5-v2-20240905
Show newest version
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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy