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

scala.googleapis.bigquery.TableDataInsertAllRequestRow.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 TableDataInsertAllRequestRow(
    /** Insertion ID for best-effort deduplication. This feature is not recommended, and users seeking stronger insertion semantics are encouraged to use other mechanisms such as the BigQuery Write API.
      */
    insertId: Option[String] = None,
    /** Data for a single row.
      */
    json: Option[JsonObject] = None,
)
object TableDataInsertAllRequestRow {
  implicit val encoder: Encoder[
    TableDataInsertAllRequestRow
  ] = Encoder.instance { x =>
    Json.obj("insertId" := x.insertId, "json" := x.json)
  }
  implicit val decoder: Decoder[
    TableDataInsertAllRequestRow
  ] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[String]]("insertId")
      v1 <- c.get[Option[JsonObject]]("json")
    } yield TableDataInsertAllRequestRow(v0, v1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy