{- This file was auto-generated from tensorflow/core/protobuf/error_codes.proto by the proto-lens-protoc program. -}
{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}
{-# OPTIONS_GHC -Wno-unused-imports#-}
{-# OPTIONS_GHC -Wno-duplicate-exports#-}
{-# OPTIONS_GHC -Wno-dodgy-exports#-}
module Proto.Tensorflow.Core.Protobuf.ErrorCodes (
        Code(..), Code(), Code'UnrecognizedValue
    ) where
import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism
import qualified Data.ProtoLens.Runtime.Prelude as Prelude
import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int
import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid
import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word
import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types
import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2
import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked
import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text
import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map
import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString
import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8
import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding
import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector
import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic
import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed
import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read
newtype Code'UnrecognizedValue
  = Code'UnrecognizedValue Data.Int.Int32
  deriving stock (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
(Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> Eq Code'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c/= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
== :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c== :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
Prelude.Eq, Eq Code'UnrecognizedValue
Eq Code'UnrecognizedValue =>
(Code'UnrecognizedValue -> Code'UnrecognizedValue -> Ordering)
-> (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> (Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool)
-> (Code'UnrecognizedValue
    -> Code'UnrecognizedValue -> Code'UnrecognizedValue)
-> (Code'UnrecognizedValue
    -> Code'UnrecognizedValue -> Code'UnrecognizedValue)
-> Ord Code'UnrecognizedValue
Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
Code'UnrecognizedValue -> Code'UnrecognizedValue -> Ordering
Code'UnrecognizedValue
-> Code'UnrecognizedValue -> Code'UnrecognizedValue
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
min :: Code'UnrecognizedValue
-> Code'UnrecognizedValue -> Code'UnrecognizedValue
$cmin :: Code'UnrecognizedValue
-> Code'UnrecognizedValue -> Code'UnrecognizedValue
max :: Code'UnrecognizedValue
-> Code'UnrecognizedValue -> Code'UnrecognizedValue
$cmax :: Code'UnrecognizedValue
-> Code'UnrecognizedValue -> Code'UnrecognizedValue
>= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c>= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
> :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c> :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
<= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c<= :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
< :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
$c< :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Bool
compare :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Ordering
$ccompare :: Code'UnrecognizedValue -> Code'UnrecognizedValue -> Ordering
$cp1Ord :: Eq Code'UnrecognizedValue
Prelude.Ord, Int -> Code'UnrecognizedValue -> ShowS
[Code'UnrecognizedValue] -> ShowS
Code'UnrecognizedValue -> String
(Int -> Code'UnrecognizedValue -> ShowS)
-> (Code'UnrecognizedValue -> String)
-> ([Code'UnrecognizedValue] -> ShowS)
-> Show Code'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Code'UnrecognizedValue] -> ShowS
$cshowList :: [Code'UnrecognizedValue] -> ShowS
show :: Code'UnrecognizedValue -> String
$cshow :: Code'UnrecognizedValue -> String
showsPrec :: Int -> Code'UnrecognizedValue -> ShowS
$cshowsPrec :: Int -> Code'UnrecognizedValue -> ShowS
Prelude.Show)
data Code
  = OK |
    CANCELLED |
    UNKNOWN |
    INVALID_ARGUMENT |
    DEADLINE_EXCEEDED |
    NOT_FOUND |
    ALREADY_EXISTS |
    PERMISSION_DENIED |
    RESOURCE_EXHAUSTED |
    FAILED_PRECONDITION |
    ABORTED |
    OUT_OF_RANGE |
    UNIMPLEMENTED |
    INTERNAL |
    UNAVAILABLE |
    DATA_LOSS |
    UNAUTHENTICATED |
    DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ |
    Code'Unrecognized !Code'UnrecognizedValue
  deriving stock (Int -> Code -> ShowS
[Code] -> ShowS
Code -> String
(Int -> Code -> ShowS)
-> (Code -> String) -> ([Code] -> ShowS) -> Show Code
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Code] -> ShowS
$cshowList :: [Code] -> ShowS
show :: Code -> String
$cshow :: Code -> String
showsPrec :: Int -> Code -> ShowS
$cshowsPrec :: Int -> Code -> ShowS
Prelude.Show, Code -> Code -> Bool
(Code -> Code -> Bool) -> (Code -> Code -> Bool) -> Eq Code
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Code -> Code -> Bool
$c/= :: Code -> Code -> Bool
== :: Code -> Code -> Bool
$c== :: Code -> Code -> Bool
Prelude.Eq, Eq Code
Eq Code =>
(Code -> Code -> Ordering)
-> (Code -> Code -> Bool)
-> (Code -> Code -> Bool)
-> (Code -> Code -> Bool)
-> (Code -> Code -> Bool)
-> (Code -> Code -> Code)
-> (Code -> Code -> Code)
-> Ord Code
Code -> Code -> Bool
Code -> Code -> Ordering
Code -> Code -> Code
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
min :: Code -> Code -> Code
$cmin :: Code -> Code -> Code
max :: Code -> Code -> Code
$cmax :: Code -> Code -> Code
>= :: Code -> Code -> Bool
$c>= :: Code -> Code -> Bool
> :: Code -> Code -> Bool
$c> :: Code -> Code -> Bool
<= :: Code -> Code -> Bool
$c<= :: Code -> Code -> Bool
< :: Code -> Code -> Bool
$c< :: Code -> Code -> Bool
compare :: Code -> Code -> Ordering
$ccompare :: Code -> Code -> Ordering
$cp1Ord :: Eq Code
Prelude.Ord)
instance Data.ProtoLens.MessageEnum Code where
  maybeToEnum :: Int -> Maybe Code
maybeToEnum 0 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
OK
  maybeToEnum 1 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
CANCELLED
  maybeToEnum 2 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNKNOWN
  maybeToEnum 3 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
INVALID_ARGUMENT
  maybeToEnum 4 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
DEADLINE_EXCEEDED
  maybeToEnum 5 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
NOT_FOUND
  maybeToEnum 6 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
ALREADY_EXISTS
  maybeToEnum 7 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
PERMISSION_DENIED
  maybeToEnum 8 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
RESOURCE_EXHAUSTED
  maybeToEnum 9 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
FAILED_PRECONDITION
  maybeToEnum 10 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
ABORTED
  maybeToEnum 11 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
OUT_OF_RANGE
  maybeToEnum 12 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNIMPLEMENTED
  maybeToEnum 13 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
INTERNAL
  maybeToEnum 14 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNAVAILABLE
  maybeToEnum 15 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
DATA_LOSS
  maybeToEnum 16 = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNAUTHENTICATED
  maybeToEnum 20
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just
        Code
DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
  maybeToEnum k :: Int
k
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just
        (Code'UnrecognizedValue -> Code
Code'Unrecognized
           (Int32 -> Code'UnrecognizedValue
Code'UnrecognizedValue (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
  showEnum :: Code -> String
showEnum OK = "OK"
  showEnum CANCELLED = "CANCELLED"
  showEnum UNKNOWN = "UNKNOWN"
  showEnum INVALID_ARGUMENT = "INVALID_ARGUMENT"
  showEnum DEADLINE_EXCEEDED = "DEADLINE_EXCEEDED"
  showEnum NOT_FOUND = "NOT_FOUND"
  showEnum ALREADY_EXISTS = "ALREADY_EXISTS"
  showEnum PERMISSION_DENIED = "PERMISSION_DENIED"
  showEnum UNAUTHENTICATED = "UNAUTHENTICATED"
  showEnum RESOURCE_EXHAUSTED = "RESOURCE_EXHAUSTED"
  showEnum FAILED_PRECONDITION = "FAILED_PRECONDITION"
  showEnum ABORTED = "ABORTED"
  showEnum OUT_OF_RANGE = "OUT_OF_RANGE"
  showEnum UNIMPLEMENTED = "UNIMPLEMENTED"
  showEnum INTERNAL = "INTERNAL"
  showEnum UNAVAILABLE = "UNAVAILABLE"
  showEnum DATA_LOSS = "DATA_LOSS"
  showEnum
    DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
    = "DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_"
  showEnum (Code'Unrecognized (Code'UnrecognizedValue k :: Int32
k))
    = Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
  readEnum :: String -> Maybe Code
readEnum k :: String
k
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "OK" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
OK
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "CANCELLED" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
CANCELLED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "UNKNOWN" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNKNOWN
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "INVALID_ARGUMENT" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
INVALID_ARGUMENT
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "DEADLINE_EXCEEDED"
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
DEADLINE_EXCEEDED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "NOT_FOUND" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
NOT_FOUND
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "ALREADY_EXISTS" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
ALREADY_EXISTS
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "PERMISSION_DENIED"
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
PERMISSION_DENIED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "UNAUTHENTICATED" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNAUTHENTICATED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "RESOURCE_EXHAUSTED"
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
RESOURCE_EXHAUSTED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "FAILED_PRECONDITION"
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
FAILED_PRECONDITION
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "ABORTED" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
ABORTED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "OUT_OF_RANGE" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
OUT_OF_RANGE
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "UNIMPLEMENTED" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNIMPLEMENTED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "INTERNAL" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
INTERNAL
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "UNAVAILABLE" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
UNAVAILABLE
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "DATA_LOSS" = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just Code
DATA_LOSS
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
        String
k
        "DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_"
    = Code -> Maybe Code
forall a. a -> Maybe a
Prelude.Just
        Code
DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
    | Bool
Prelude.otherwise
    = Maybe Int -> (Int -> Maybe Code) -> Maybe Code
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=) (String -> Maybe Int
forall a. Read a => String -> Maybe a
Text.Read.readMaybe String
k) Int -> Maybe Code
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded Code where
  minBound :: Code
minBound = Code
OK
  maxBound :: Code
maxBound
    = Code
DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
instance Prelude.Enum Code where
  toEnum :: Int -> Code
toEnum k__ :: Int
k__
    = Code -> (Code -> Code) -> Maybe Code -> Code
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
        (String -> Code
forall a. HasCallStack => String -> a
Prelude.error
           (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
              "toEnum: unknown value for enum Code: " (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
        Code -> Code
forall a. a -> a
Prelude.id
        (Int -> Maybe Code
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
  fromEnum :: Code -> Int
fromEnum OK = 0
  fromEnum CANCELLED = 1
  fromEnum UNKNOWN = 2
  fromEnum INVALID_ARGUMENT = 3
  fromEnum DEADLINE_EXCEEDED = 4
  fromEnum NOT_FOUND = 5
  fromEnum ALREADY_EXISTS = 6
  fromEnum PERMISSION_DENIED = 7
  fromEnum RESOURCE_EXHAUSTED = 8
  fromEnum FAILED_PRECONDITION = 9
  fromEnum ABORTED = 10
  fromEnum OUT_OF_RANGE = 11
  fromEnum UNIMPLEMENTED = 12
  fromEnum INTERNAL = 13
  fromEnum UNAVAILABLE = 14
  fromEnum DATA_LOSS = 15
  fromEnum UNAUTHENTICATED = 16
  fromEnum
    DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
    = 20
  fromEnum (Code'Unrecognized (Code'UnrecognizedValue k :: Int32
k))
    = Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
  succ :: Code -> Code
succ
    DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
    = String -> Code
forall a. HasCallStack => String -> a
Prelude.error
        "Code.succ: bad argument DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_. This value would be out of bounds."
  succ OK = Code
CANCELLED
  succ CANCELLED = Code
UNKNOWN
  succ UNKNOWN = Code
INVALID_ARGUMENT
  succ INVALID_ARGUMENT = Code
DEADLINE_EXCEEDED
  succ DEADLINE_EXCEEDED = Code
NOT_FOUND
  succ NOT_FOUND = Code
ALREADY_EXISTS
  succ ALREADY_EXISTS = Code
PERMISSION_DENIED
  succ PERMISSION_DENIED = Code
RESOURCE_EXHAUSTED
  succ RESOURCE_EXHAUSTED = Code
FAILED_PRECONDITION
  succ FAILED_PRECONDITION = Code
ABORTED
  succ ABORTED = Code
OUT_OF_RANGE
  succ OUT_OF_RANGE = Code
UNIMPLEMENTED
  succ UNIMPLEMENTED = Code
INTERNAL
  succ INTERNAL = Code
UNAVAILABLE
  succ UNAVAILABLE = Code
DATA_LOSS
  succ DATA_LOSS = Code
UNAUTHENTICATED
  succ UNAUTHENTICATED
    = Code
DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
  succ (Code'Unrecognized _)
    = String -> Code
forall a. HasCallStack => String -> a
Prelude.error "Code.succ: bad argument: unrecognized value"
  pred :: Code -> Code
pred OK
    = String -> Code
forall a. HasCallStack => String -> a
Prelude.error
        "Code.pred: bad argument OK. This value would be out of bounds."
  pred CANCELLED = Code
OK
  pred UNKNOWN = Code
CANCELLED
  pred INVALID_ARGUMENT = Code
UNKNOWN
  pred DEADLINE_EXCEEDED = Code
INVALID_ARGUMENT
  pred NOT_FOUND = Code
DEADLINE_EXCEEDED
  pred ALREADY_EXISTS = Code
NOT_FOUND
  pred PERMISSION_DENIED = Code
ALREADY_EXISTS
  pred RESOURCE_EXHAUSTED = Code
PERMISSION_DENIED
  pred FAILED_PRECONDITION = Code
RESOURCE_EXHAUSTED
  pred ABORTED = Code
FAILED_PRECONDITION
  pred OUT_OF_RANGE = Code
ABORTED
  pred UNIMPLEMENTED = Code
OUT_OF_RANGE
  pred INTERNAL = Code
UNIMPLEMENTED
  pred UNAVAILABLE = Code
INTERNAL
  pred DATA_LOSS = Code
UNAVAILABLE
  pred UNAUTHENTICATED = Code
DATA_LOSS
  pred
    DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_
    = Code
UNAUTHENTICATED
  pred (Code'Unrecognized _)
    = String -> Code
forall a. HasCallStack => String -> a
Prelude.error "Code.pred: bad argument: unrecognized value"
  enumFrom :: Code -> [Code]
enumFrom = Code -> [Code]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
  enumFromTo :: Code -> Code -> [Code]
enumFromTo = Code -> Code -> [Code]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
  enumFromThen :: Code -> Code -> [Code]
enumFromThen = Code -> Code -> [Code]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
  enumFromThenTo :: Code -> Code -> Code -> [Code]
enumFromThenTo = Code -> Code -> Code -> [Code]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault Code where
  fieldDefault :: Code
fieldDefault = Code
OK
instance Control.DeepSeq.NFData Code where
  rnf :: Code -> ()
rnf x__ :: Code
x__ = Code -> () -> ()
forall a b. a -> b -> b
Prelude.seq Code
x__ ()