
scala.googleapis.bigquery.ModelExtractOptions.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class ModelExtractOptions(
/** The 1-based ID of the trial to be exported from a hyperparameter tuning model. If not specified, the trial with id = [Model](https://cloud.google.com/bigquery/docs/reference/rest/v2/models#resource:-model).defaultTrialId is exported. This field is ignored for models not trained with hyperparameter tuning.
*/
trialId: Option[Long] = None
)
object ModelExtractOptions {
implicit val encoder: Encoder[ModelExtractOptions] = Encoder.instance { x =>
Json.obj("trialId" := x.trialId)
}
implicit val decoder: Decoder[ModelExtractOptions] = Decoder.instance { c =>
for {
v0 <- c.get[Option[Long]]("trialId")
} yield ModelExtractOptions(v0)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy