
scala.googleapis.bigquery.TableDataInsertAllResponse.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class TableDataInsertAllResponse(
/** Describes specific errors encountered while processing the request.
*/
insertErrors: Option[List[TableDataInsertAllResponseInsertError]] = None,
/** Returns "bigquery#tableDataInsertAllResponse".
*/
kind: Option[String] = None,
)
object TableDataInsertAllResponse {
implicit val encoder: Encoder[
TableDataInsertAllResponse
] = Encoder.instance { x =>
Json.obj("insertErrors" := x.insertErrors, "kind" := x.kind)
}
implicit val decoder: Decoder[
TableDataInsertAllResponse
] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[TableDataInsertAllResponseInsertError]]]("insertErrors")
v1 <- c.get[Option[String]]("kind")
} yield TableDataInsertAllResponse(v0, v1)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy