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

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

There is a newer version: 0.4.5-v2-20240905
Show newest version
package googleapis.bigquery

import io.circe._

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

  /** Default Value.
    */
  case object FILE_FORMAT_UNSPECIFIED
      extends BigLakeConfigurationFileFormat("FILE_FORMAT_UNSPECIFIED")

  /** Apache Parquet format.
    */
  case object PARQUET extends BigLakeConfigurationFileFormat("PARQUET")
  val values = List(FILE_FORMAT_UNSPECIFIED, PARQUET)
  def fromString(input: String): Either[String, BigLakeConfigurationFileFormat] = values
    .find(_.value == input)
    .toRight(s"'$input' was not a valid value for BigLakeConfigurationFileFormat")
  implicit val decoder: Decoder[BigLakeConfigurationFileFormat] =
    Decoder[String].emap(s => fromString(s))
  implicit val encoder: Encoder[BigLakeConfigurationFileFormat] = Encoder[String].contramap(_.value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy