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

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

There is a newer version: 0.6.1-v2-20241111
Show newest version
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