scala.googleapis.bigquery.JobStatistics4.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class JobStatistics4(
/** Output only. Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field.
*/
destinationUriFileCounts: Option[List[Long]] = None,
/** Output only. Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes and doesn't have any relationship with the number of actual result bytes extracted in the desired format.
*/
inputBytes: Option[Long] = None,
/** Output only. Describes a timeline of job execution.
*/
timeline: Option[List[QueryTimelineSample]] = None,
)
object JobStatistics4 {
implicit val encoder: Encoder[JobStatistics4] = Encoder.instance { x =>
Json.obj(
"destinationUriFileCounts" := x.destinationUriFileCounts,
"inputBytes" :=
x.inputBytes,
"timeline" := x.timeline,
)
}
implicit val decoder: Decoder[JobStatistics4] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[Long]]]("destinationUriFileCounts")
v1 <- c.get[Option[Long]]("inputBytes")
v2 <- c.get[Option[List[QueryTimelineSample]]]("timeline")
} yield JobStatistics4(v0, v1, v2)
}
}