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

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

There is a newer version: 0.6.1-v2-20241111
Show newest version
package googleapis.bigquery

import io.circe._

sealed abstract class JobConfigurationLoadJsonExtension(val value: String)
    extends Product
    with Serializable
object JobConfigurationLoadJsonExtension {

  /** The default if provided value is not one included in the enum, or the value is not specified. The source formate is parsed without any modification.
    */
  case object JSON_EXTENSION_UNSPECIFIED
      extends JobConfigurationLoadJsonExtension("JSON_EXTENSION_UNSPECIFIED")

  /** Use GeoJSON variant of JSON. See https://tools.ietf.org/html/rfc7946.
    */
  case object GEOJSON extends JobConfigurationLoadJsonExtension("GEOJSON")
  val values = List(JSON_EXTENSION_UNSPECIFIED, GEOJSON)
  def fromString(input: String): Either[String, JobConfigurationLoadJsonExtension] = values
    .find(_.value == input)
    .toRight(s"'$input' was not a valid value for JobConfigurationLoadJsonExtension")
  implicit val decoder: Decoder[JobConfigurationLoadJsonExtension] =
    Decoder[String].emap(s => fromString(s))
  implicit val encoder: Encoder[JobConfigurationLoadJsonExtension] =
    Encoder[String].contramap(_.value)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy