{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE ImportQualifiedPost #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- |
-- Module      : Gogol.AppsLicensing.Internal.Sum
-- Copyright   : (c) 2015-2025 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+gogol@gmail.com>
--               Toni Cebrián <toni@tonicebrian.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Gogol.AppsLicensing.Internal.Sum
  ( -- * Xgafv
    Xgafv
      ( Xgafv_1,
        Xgafv_2,
        ..
      ),
  )
where

import Gogol.Prelude qualified as Core

-- | V1 error format.
newtype Xgafv = Xgafv {Xgafv -> Text
fromXgafv :: Core.Text}
  deriving stock (Int -> Xgafv -> ShowS
[Xgafv] -> ShowS
Xgafv -> String
(Int -> Xgafv -> ShowS)
-> (Xgafv -> String) -> ([Xgafv] -> ShowS) -> Show Xgafv
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Xgafv -> ShowS
showsPrec :: Int -> Xgafv -> ShowS
$cshow :: Xgafv -> String
show :: Xgafv -> String
$cshowList :: [Xgafv] -> ShowS
showList :: [Xgafv] -> ShowS
Core.Show, ReadPrec [Xgafv]
ReadPrec Xgafv
Int -> ReadS Xgafv
ReadS [Xgafv]
(Int -> ReadS Xgafv)
-> ReadS [Xgafv]
-> ReadPrec Xgafv
-> ReadPrec [Xgafv]
-> Read Xgafv
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS Xgafv
readsPrec :: Int -> ReadS Xgafv
$creadList :: ReadS [Xgafv]
readList :: ReadS [Xgafv]
$creadPrec :: ReadPrec Xgafv
readPrec :: ReadPrec Xgafv
$creadListPrec :: ReadPrec [Xgafv]
readListPrec :: ReadPrec [Xgafv]
Core.Read, Xgafv -> Xgafv -> Bool
(Xgafv -> Xgafv -> Bool) -> (Xgafv -> Xgafv -> Bool) -> Eq Xgafv
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Xgafv -> Xgafv -> Bool
== :: Xgafv -> Xgafv -> Bool
$c/= :: Xgafv -> Xgafv -> Bool
/= :: Xgafv -> Xgafv -> Bool
Core.Eq, Eq Xgafv
Eq Xgafv =>
(Xgafv -> Xgafv -> Ordering)
-> (Xgafv -> Xgafv -> Bool)
-> (Xgafv -> Xgafv -> Bool)
-> (Xgafv -> Xgafv -> Bool)
-> (Xgafv -> Xgafv -> Bool)
-> (Xgafv -> Xgafv -> Xgafv)
-> (Xgafv -> Xgafv -> Xgafv)
-> Ord Xgafv
Xgafv -> Xgafv -> Bool
Xgafv -> Xgafv -> Ordering
Xgafv -> Xgafv -> Xgafv
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: Xgafv -> Xgafv -> Ordering
compare :: Xgafv -> Xgafv -> Ordering
$c< :: Xgafv -> Xgafv -> Bool
< :: Xgafv -> Xgafv -> Bool
$c<= :: Xgafv -> Xgafv -> Bool
<= :: Xgafv -> Xgafv -> Bool
$c> :: Xgafv -> Xgafv -> Bool
> :: Xgafv -> Xgafv -> Bool
$c>= :: Xgafv -> Xgafv -> Bool
>= :: Xgafv -> Xgafv -> Bool
$cmax :: Xgafv -> Xgafv -> Xgafv
max :: Xgafv -> Xgafv -> Xgafv
$cmin :: Xgafv -> Xgafv -> Xgafv
min :: Xgafv -> Xgafv -> Xgafv
Core.Ord, (forall x. Xgafv -> Rep Xgafv x)
-> (forall x. Rep Xgafv x -> Xgafv) -> Generic Xgafv
forall x. Rep Xgafv x -> Xgafv
forall x. Xgafv -> Rep Xgafv x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. Xgafv -> Rep Xgafv x
from :: forall x. Xgafv -> Rep Xgafv x
$cto :: forall x. Rep Xgafv x -> Xgafv
to :: forall x. Rep Xgafv x -> Xgafv
Core.Generic)
  deriving newtype
    ( Eq Xgafv
Eq Xgafv =>
(Int -> Xgafv -> Int) -> (Xgafv -> Int) -> Hashable Xgafv
Int -> Xgafv -> Int
Xgafv -> Int
forall a. Eq a => (Int -> a -> Int) -> (a -> Int) -> Hashable a
$chashWithSalt :: Int -> Xgafv -> Int
hashWithSalt :: Int -> Xgafv -> Int
$chash :: Xgafv -> Int
hash :: Xgafv -> Int
Core.Hashable,
      Xgafv -> Text
Xgafv -> ByteString
Xgafv -> Builder
(Xgafv -> Text)
-> (Xgafv -> Builder)
-> (Xgafv -> ByteString)
-> (Xgafv -> Text)
-> (Xgafv -> Builder)
-> ToHttpApiData Xgafv
forall a.
(a -> Text)
-> (a -> Builder)
-> (a -> ByteString)
-> (a -> Text)
-> (a -> Builder)
-> ToHttpApiData a
$ctoUrlPiece :: Xgafv -> Text
toUrlPiece :: Xgafv -> Text
$ctoEncodedUrlPiece :: Xgafv -> Builder
toEncodedUrlPiece :: Xgafv -> Builder
$ctoHeader :: Xgafv -> ByteString
toHeader :: Xgafv -> ByteString
$ctoQueryParam :: Xgafv -> Text
toQueryParam :: Xgafv -> Text
$ctoEncodedQueryParam :: Xgafv -> Builder
toEncodedQueryParam :: Xgafv -> Builder
Core.ToHttpApiData,
      Text -> Either Text Xgafv
ByteString -> Either Text Xgafv
(Text -> Either Text Xgafv)
-> (ByteString -> Either Text Xgafv)
-> (Text -> Either Text Xgafv)
-> FromHttpApiData Xgafv
forall a.
(Text -> Either Text a)
-> (ByteString -> Either Text a)
-> (Text -> Either Text a)
-> FromHttpApiData a
$cparseUrlPiece :: Text -> Either Text Xgafv
parseUrlPiece :: Text -> Either Text Xgafv
$cparseHeader :: ByteString -> Either Text Xgafv
parseHeader :: ByteString -> Either Text Xgafv
$cparseQueryParam :: Text -> Either Text Xgafv
parseQueryParam :: Text -> Either Text Xgafv
Core.FromHttpApiData,
      [Xgafv] -> Value
[Xgafv] -> Encoding
Xgafv -> Bool
Xgafv -> Value
Xgafv -> Encoding
(Xgafv -> Value)
-> (Xgafv -> Encoding)
-> ([Xgafv] -> Value)
-> ([Xgafv] -> Encoding)
-> (Xgafv -> Bool)
-> ToJSON Xgafv
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> (a -> Bool)
-> ToJSON a
$ctoJSON :: Xgafv -> Value
toJSON :: Xgafv -> Value
$ctoEncoding :: Xgafv -> Encoding
toEncoding :: Xgafv -> Encoding
$ctoJSONList :: [Xgafv] -> Value
toJSONList :: [Xgafv] -> Value
$ctoEncodingList :: [Xgafv] -> Encoding
toEncodingList :: [Xgafv] -> Encoding
$comitField :: Xgafv -> Bool
omitField :: Xgafv -> Bool
Core.ToJSON,
      ToJSONKeyFunction [Xgafv]
ToJSONKeyFunction Xgafv
ToJSONKeyFunction Xgafv
-> ToJSONKeyFunction [Xgafv] -> ToJSONKey Xgafv
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
$ctoJSONKey :: ToJSONKeyFunction Xgafv
toJSONKey :: ToJSONKeyFunction Xgafv
$ctoJSONKeyList :: ToJSONKeyFunction [Xgafv]
toJSONKeyList :: ToJSONKeyFunction [Xgafv]
Core.ToJSONKey,
      Maybe Xgafv
Value -> Parser [Xgafv]
Value -> Parser Xgafv
(Value -> Parser Xgafv)
-> (Value -> Parser [Xgafv]) -> Maybe Xgafv -> FromJSON Xgafv
forall a.
(Value -> Parser a)
-> (Value -> Parser [a]) -> Maybe a -> FromJSON a
$cparseJSON :: Value -> Parser Xgafv
parseJSON :: Value -> Parser Xgafv
$cparseJSONList :: Value -> Parser [Xgafv]
parseJSONList :: Value -> Parser [Xgafv]
$comittedField :: Maybe Xgafv
omittedField :: Maybe Xgafv
Core.FromJSON,
      FromJSONKeyFunction [Xgafv]
FromJSONKeyFunction Xgafv
FromJSONKeyFunction Xgafv
-> FromJSONKeyFunction [Xgafv] -> FromJSONKey Xgafv
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
$cfromJSONKey :: FromJSONKeyFunction Xgafv
fromJSONKey :: FromJSONKeyFunction Xgafv
$cfromJSONKeyList :: FromJSONKeyFunction [Xgafv]
fromJSONKeyList :: FromJSONKeyFunction [Xgafv]
Core.FromJSONKey
    )

-- | v1 error format
pattern Xgafv_1 :: Xgafv
pattern $mXgafv_1 :: forall {r}. Xgafv -> ((# #) -> r) -> ((# #) -> r) -> r
$bXgafv_1 :: Xgafv
Xgafv_1 = Xgafv "1"

-- | v2 error format
pattern Xgafv_2 :: Xgafv
pattern $mXgafv_2 :: forall {r}. Xgafv -> ((# #) -> r) -> ((# #) -> r) -> r
$bXgafv_2 :: Xgafv
Xgafv_2 = Xgafv "2"

{-# COMPLETE
  Xgafv_1,
  Xgafv_2,
  Xgafv
  #-}