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

scala.googleapis.bigquery.TableDataInsertAllResponseInsertError.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 TableDataInsertAllResponseInsertError(
    /** Error information for the row indicated by the index property.
      */
    errors: Option[List[ErrorProto]] = None,
    /** The index of the row that error applies to.
      */
    index: Option[Long] = None,
)
object TableDataInsertAllResponseInsertError {
  implicit val encoder: Encoder[
    TableDataInsertAllResponseInsertError
  ] = Encoder.instance(x => Json.obj("errors" := x.errors, "index" := x.index))
  implicit val decoder: Decoder[
    TableDataInsertAllResponseInsertError
  ] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[List[ErrorProto]]]("errors")
      v1 <- c.get[Option[Long]]("index")
    } yield TableDataInsertAllResponseInsertError(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy