{-# 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.Temporal.Api.Enums.V1.Reset (
ResetReapplyExcludeType(..), ResetReapplyExcludeType(),
ResetReapplyExcludeType'UnrecognizedValue, ResetReapplyType(..),
ResetReapplyType(), ResetReapplyType'UnrecognizedValue,
ResetType(..), ResetType(), ResetType'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 ResetReapplyExcludeType'UnrecognizedValue
= ResetReapplyExcludeType'UnrecognizedValue Data.Int.Int32
deriving stock (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
(ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> Eq ResetReapplyExcludeType'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
== :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
$c/= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
/= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
Prelude.Eq, Eq ResetReapplyExcludeType'UnrecognizedValue
Eq ResetReapplyExcludeType'UnrecognizedValue =>
(ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Ordering)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue)
-> (ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue)
-> Ord ResetReapplyExcludeType'UnrecognizedValue
ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Ordering
ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'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
$ccompare :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Ordering
compare :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Ordering
$c< :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
< :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
$c<= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
<= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
$c> :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
> :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
$c>= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
>= :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue -> Bool
$cmax :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
max :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
$cmin :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
min :: ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType'UnrecognizedValue
Prelude.Ord, Int -> ResetReapplyExcludeType'UnrecognizedValue -> ShowS
[ResetReapplyExcludeType'UnrecognizedValue] -> ShowS
ResetReapplyExcludeType'UnrecognizedValue -> String
(Int -> ResetReapplyExcludeType'UnrecognizedValue -> ShowS)
-> (ResetReapplyExcludeType'UnrecognizedValue -> String)
-> ([ResetReapplyExcludeType'UnrecognizedValue] -> ShowS)
-> Show ResetReapplyExcludeType'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetReapplyExcludeType'UnrecognizedValue -> ShowS
showsPrec :: Int -> ResetReapplyExcludeType'UnrecognizedValue -> ShowS
$cshow :: ResetReapplyExcludeType'UnrecognizedValue -> String
show :: ResetReapplyExcludeType'UnrecognizedValue -> String
$cshowList :: [ResetReapplyExcludeType'UnrecognizedValue] -> ShowS
showList :: [ResetReapplyExcludeType'UnrecognizedValue] -> ShowS
Prelude.Show)
data ResetReapplyExcludeType
= RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED |
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL |
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE |
ResetReapplyExcludeType'Unrecognized !ResetReapplyExcludeType'UnrecognizedValue
deriving stock (Int -> ResetReapplyExcludeType -> ShowS
[ResetReapplyExcludeType] -> ShowS
ResetReapplyExcludeType -> String
(Int -> ResetReapplyExcludeType -> ShowS)
-> (ResetReapplyExcludeType -> String)
-> ([ResetReapplyExcludeType] -> ShowS)
-> Show ResetReapplyExcludeType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetReapplyExcludeType -> ShowS
showsPrec :: Int -> ResetReapplyExcludeType -> ShowS
$cshow :: ResetReapplyExcludeType -> String
show :: ResetReapplyExcludeType -> String
$cshowList :: [ResetReapplyExcludeType] -> ShowS
showList :: [ResetReapplyExcludeType] -> ShowS
Prelude.Show, ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
(ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> Eq ResetReapplyExcludeType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
== :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
$c/= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
/= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
Prelude.Eq, Eq ResetReapplyExcludeType
Eq ResetReapplyExcludeType =>
(ResetReapplyExcludeType -> ResetReapplyExcludeType -> Ordering)
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool)
-> (ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType)
-> (ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType)
-> Ord ResetReapplyExcludeType
ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
ResetReapplyExcludeType -> ResetReapplyExcludeType -> Ordering
ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType
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 :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Ordering
compare :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Ordering
$c< :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
< :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
$c<= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
<= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
$c> :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
> :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
$c>= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
>= :: ResetReapplyExcludeType -> ResetReapplyExcludeType -> Bool
$cmax :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType
max :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType
$cmin :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType
min :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> ResetReapplyExcludeType
Prelude.Ord)
instance Data.ProtoLens.MessageEnum ResetReapplyExcludeType where
maybeToEnum :: Int -> Maybe ResetReapplyExcludeType
maybeToEnum Int
0 = ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
maybeToEnum Int
1 = ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
maybeToEnum Int
2 = ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
maybeToEnum Int
k
= ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just
(ResetReapplyExcludeType'UnrecognizedValue
-> ResetReapplyExcludeType
ResetReapplyExcludeType'Unrecognized
(Int32 -> ResetReapplyExcludeType'UnrecognizedValue
ResetReapplyExcludeType'UnrecognizedValue
(Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: ResetReapplyExcludeType -> String
showEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
= String
"RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED"
showEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
= String
"RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL"
showEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
= String
"RESET_REAPPLY_EXCLUDE_TYPE_UPDATE"
showEnum
(ResetReapplyExcludeType'Unrecognized (ResetReapplyExcludeType'UnrecognizedValue Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe ResetReapplyExcludeType
readEnum String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED"
= ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL"
= ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_EXCLUDE_TYPE_UPDATE"
= ResetReapplyExcludeType -> Maybe ResetReapplyExcludeType
forall a. a -> Maybe a
Prelude.Just ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
| Bool
Prelude.otherwise
= Maybe Int
-> (Int -> Maybe ResetReapplyExcludeType)
-> Maybe ResetReapplyExcludeType
forall a b. Maybe a -> (a -> Maybe b) -> Maybe b
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 ResetReapplyExcludeType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded ResetReapplyExcludeType where
minBound :: ResetReapplyExcludeType
minBound = ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
maxBound :: ResetReapplyExcludeType
maxBound = ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
instance Prelude.Enum ResetReapplyExcludeType where
toEnum :: Int -> ResetReapplyExcludeType
toEnum Int
k__
= ResetReapplyExcludeType
-> (ResetReapplyExcludeType -> ResetReapplyExcludeType)
-> Maybe ResetReapplyExcludeType
-> ResetReapplyExcludeType
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> ResetReapplyExcludeType
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
String
"toEnum: unknown value for enum ResetReapplyExcludeType: "
(Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
ResetReapplyExcludeType -> ResetReapplyExcludeType
forall a. a -> a
Prelude.id (Int -> Maybe ResetReapplyExcludeType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: ResetReapplyExcludeType -> Int
fromEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED = Int
0
fromEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL = Int
1
fromEnum ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE = Int
2
fromEnum
(ResetReapplyExcludeType'Unrecognized (ResetReapplyExcludeType'UnrecognizedValue Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: ResetReapplyExcludeType -> ResetReapplyExcludeType
succ ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
= String -> ResetReapplyExcludeType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyExcludeType.succ: bad argument RESET_REAPPLY_EXCLUDE_TYPE_UPDATE. This value would be out of bounds."
succ ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
= ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
succ ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
= ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
succ (ResetReapplyExcludeType'Unrecognized ResetReapplyExcludeType'UnrecognizedValue
_)
= String -> ResetReapplyExcludeType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyExcludeType.succ: bad argument: unrecognized value"
pred :: ResetReapplyExcludeType -> ResetReapplyExcludeType
pred ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
= String -> ResetReapplyExcludeType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyExcludeType.pred: bad argument RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED. This value would be out of bounds."
pred ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
= ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
pred ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UPDATE
= ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL
pred (ResetReapplyExcludeType'Unrecognized ResetReapplyExcludeType'UnrecognizedValue
_)
= String -> ResetReapplyExcludeType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyExcludeType.pred: bad argument: unrecognized value"
enumFrom :: ResetReapplyExcludeType -> [ResetReapplyExcludeType]
enumFrom = ResetReapplyExcludeType -> [ResetReapplyExcludeType]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> [ResetReapplyExcludeType]
enumFromTo = ResetReapplyExcludeType
-> ResetReapplyExcludeType -> [ResetReapplyExcludeType]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: ResetReapplyExcludeType
-> ResetReapplyExcludeType -> [ResetReapplyExcludeType]
enumFromThen = ResetReapplyExcludeType
-> ResetReapplyExcludeType -> [ResetReapplyExcludeType]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: ResetReapplyExcludeType
-> ResetReapplyExcludeType
-> ResetReapplyExcludeType
-> [ResetReapplyExcludeType]
enumFromThenTo = ResetReapplyExcludeType
-> ResetReapplyExcludeType
-> ResetReapplyExcludeType
-> [ResetReapplyExcludeType]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault ResetReapplyExcludeType where
fieldDefault :: ResetReapplyExcludeType
fieldDefault = ResetReapplyExcludeType
RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED
instance Control.DeepSeq.NFData ResetReapplyExcludeType where
rnf :: ResetReapplyExcludeType -> ()
rnf ResetReapplyExcludeType
x__ = ResetReapplyExcludeType -> () -> ()
forall a b. a -> b -> b
Prelude.seq ResetReapplyExcludeType
x__ ()
newtype ResetReapplyType'UnrecognizedValue
= ResetReapplyType'UnrecognizedValue Data.Int.Int32
deriving stock (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
(ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> Eq ResetReapplyType'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
== :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
$c/= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
/= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
Prelude.Eq, Eq ResetReapplyType'UnrecognizedValue
Eq ResetReapplyType'UnrecognizedValue =>
(ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Ordering)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue)
-> (ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue)
-> Ord ResetReapplyType'UnrecognizedValue
ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Ordering
ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'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
$ccompare :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Ordering
compare :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Ordering
$c< :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
< :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
$c<= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
<= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
$c> :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
> :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
$c>= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
>= :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue -> Bool
$cmax :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
max :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
$cmin :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
min :: ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
-> ResetReapplyType'UnrecognizedValue
Prelude.Ord, Int -> ResetReapplyType'UnrecognizedValue -> ShowS
[ResetReapplyType'UnrecognizedValue] -> ShowS
ResetReapplyType'UnrecognizedValue -> String
(Int -> ResetReapplyType'UnrecognizedValue -> ShowS)
-> (ResetReapplyType'UnrecognizedValue -> String)
-> ([ResetReapplyType'UnrecognizedValue] -> ShowS)
-> Show ResetReapplyType'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetReapplyType'UnrecognizedValue -> ShowS
showsPrec :: Int -> ResetReapplyType'UnrecognizedValue -> ShowS
$cshow :: ResetReapplyType'UnrecognizedValue -> String
show :: ResetReapplyType'UnrecognizedValue -> String
$cshowList :: [ResetReapplyType'UnrecognizedValue] -> ShowS
showList :: [ResetReapplyType'UnrecognizedValue] -> ShowS
Prelude.Show)
data ResetReapplyType
= RESET_REAPPLY_TYPE_UNSPECIFIED |
RESET_REAPPLY_TYPE_SIGNAL |
RESET_REAPPLY_TYPE_NONE |
RESET_REAPPLY_TYPE_ALL_ELIGIBLE |
ResetReapplyType'Unrecognized !ResetReapplyType'UnrecognizedValue
deriving stock (Int -> ResetReapplyType -> ShowS
[ResetReapplyType] -> ShowS
ResetReapplyType -> String
(Int -> ResetReapplyType -> ShowS)
-> (ResetReapplyType -> String)
-> ([ResetReapplyType] -> ShowS)
-> Show ResetReapplyType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetReapplyType -> ShowS
showsPrec :: Int -> ResetReapplyType -> ShowS
$cshow :: ResetReapplyType -> String
show :: ResetReapplyType -> String
$cshowList :: [ResetReapplyType] -> ShowS
showList :: [ResetReapplyType] -> ShowS
Prelude.Show, ResetReapplyType -> ResetReapplyType -> Bool
(ResetReapplyType -> ResetReapplyType -> Bool)
-> (ResetReapplyType -> ResetReapplyType -> Bool)
-> Eq ResetReapplyType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetReapplyType -> ResetReapplyType -> Bool
== :: ResetReapplyType -> ResetReapplyType -> Bool
$c/= :: ResetReapplyType -> ResetReapplyType -> Bool
/= :: ResetReapplyType -> ResetReapplyType -> Bool
Prelude.Eq, Eq ResetReapplyType
Eq ResetReapplyType =>
(ResetReapplyType -> ResetReapplyType -> Ordering)
-> (ResetReapplyType -> ResetReapplyType -> Bool)
-> (ResetReapplyType -> ResetReapplyType -> Bool)
-> (ResetReapplyType -> ResetReapplyType -> Bool)
-> (ResetReapplyType -> ResetReapplyType -> Bool)
-> (ResetReapplyType -> ResetReapplyType -> ResetReapplyType)
-> (ResetReapplyType -> ResetReapplyType -> ResetReapplyType)
-> Ord ResetReapplyType
ResetReapplyType -> ResetReapplyType -> Bool
ResetReapplyType -> ResetReapplyType -> Ordering
ResetReapplyType -> ResetReapplyType -> ResetReapplyType
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 :: ResetReapplyType -> ResetReapplyType -> Ordering
compare :: ResetReapplyType -> ResetReapplyType -> Ordering
$c< :: ResetReapplyType -> ResetReapplyType -> Bool
< :: ResetReapplyType -> ResetReapplyType -> Bool
$c<= :: ResetReapplyType -> ResetReapplyType -> Bool
<= :: ResetReapplyType -> ResetReapplyType -> Bool
$c> :: ResetReapplyType -> ResetReapplyType -> Bool
> :: ResetReapplyType -> ResetReapplyType -> Bool
$c>= :: ResetReapplyType -> ResetReapplyType -> Bool
>= :: ResetReapplyType -> ResetReapplyType -> Bool
$cmax :: ResetReapplyType -> ResetReapplyType -> ResetReapplyType
max :: ResetReapplyType -> ResetReapplyType -> ResetReapplyType
$cmin :: ResetReapplyType -> ResetReapplyType -> ResetReapplyType
min :: ResetReapplyType -> ResetReapplyType -> ResetReapplyType
Prelude.Ord)
instance Data.ProtoLens.MessageEnum ResetReapplyType where
maybeToEnum :: Int -> Maybe ResetReapplyType
maybeToEnum Int
0 = ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
maybeToEnum Int
1 = ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL
maybeToEnum Int
2 = ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_NONE
maybeToEnum Int
3 = ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
maybeToEnum Int
k
= ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just
(ResetReapplyType'UnrecognizedValue -> ResetReapplyType
ResetReapplyType'Unrecognized
(Int32 -> ResetReapplyType'UnrecognizedValue
ResetReapplyType'UnrecognizedValue (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: ResetReapplyType -> String
showEnum ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
= String
"RESET_REAPPLY_TYPE_UNSPECIFIED"
showEnum ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL = String
"RESET_REAPPLY_TYPE_SIGNAL"
showEnum ResetReapplyType
RESET_REAPPLY_TYPE_NONE = String
"RESET_REAPPLY_TYPE_NONE"
showEnum ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
= String
"RESET_REAPPLY_TYPE_ALL_ELIGIBLE"
showEnum
(ResetReapplyType'Unrecognized (ResetReapplyType'UnrecognizedValue Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe ResetReapplyType
readEnum String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_TYPE_UNSPECIFIED"
= ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_TYPE_SIGNAL"
= ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_TYPE_NONE"
= ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_NONE
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_REAPPLY_TYPE_ALL_ELIGIBLE"
= ResetReapplyType -> Maybe ResetReapplyType
forall a. a -> Maybe a
Prelude.Just ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
| Bool
Prelude.otherwise
= Maybe Int
-> (Int -> Maybe ResetReapplyType) -> Maybe ResetReapplyType
forall a b. Maybe a -> (a -> Maybe b) -> Maybe b
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 ResetReapplyType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded ResetReapplyType where
minBound :: ResetReapplyType
minBound = ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
maxBound :: ResetReapplyType
maxBound = ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
instance Prelude.Enum ResetReapplyType where
toEnum :: Int -> ResetReapplyType
toEnum Int
k__
= ResetReapplyType
-> (ResetReapplyType -> ResetReapplyType)
-> Maybe ResetReapplyType
-> ResetReapplyType
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> ResetReapplyType
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
String
"toEnum: unknown value for enum ResetReapplyType: "
(Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
ResetReapplyType -> ResetReapplyType
forall a. a -> a
Prelude.id (Int -> Maybe ResetReapplyType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: ResetReapplyType -> Int
fromEnum ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED = Int
0
fromEnum ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL = Int
1
fromEnum ResetReapplyType
RESET_REAPPLY_TYPE_NONE = Int
2
fromEnum ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE = Int
3
fromEnum
(ResetReapplyType'Unrecognized (ResetReapplyType'UnrecognizedValue Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: ResetReapplyType -> ResetReapplyType
succ ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
= String -> ResetReapplyType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyType.succ: bad argument RESET_REAPPLY_TYPE_ALL_ELIGIBLE. This value would be out of bounds."
succ ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED = ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL
succ ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL = ResetReapplyType
RESET_REAPPLY_TYPE_NONE
succ ResetReapplyType
RESET_REAPPLY_TYPE_NONE = ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE
succ (ResetReapplyType'Unrecognized ResetReapplyType'UnrecognizedValue
_)
= String -> ResetReapplyType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyType.succ: bad argument: unrecognized value"
pred :: ResetReapplyType -> ResetReapplyType
pred ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
= String -> ResetReapplyType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyType.pred: bad argument RESET_REAPPLY_TYPE_UNSPECIFIED. This value would be out of bounds."
pred ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL = ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
pred ResetReapplyType
RESET_REAPPLY_TYPE_NONE = ResetReapplyType
RESET_REAPPLY_TYPE_SIGNAL
pred ResetReapplyType
RESET_REAPPLY_TYPE_ALL_ELIGIBLE = ResetReapplyType
RESET_REAPPLY_TYPE_NONE
pred (ResetReapplyType'Unrecognized ResetReapplyType'UnrecognizedValue
_)
= String -> ResetReapplyType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetReapplyType.pred: bad argument: unrecognized value"
enumFrom :: ResetReapplyType -> [ResetReapplyType]
enumFrom = ResetReapplyType -> [ResetReapplyType]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
enumFromTo = ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
enumFromThen = ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: ResetReapplyType
-> ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
enumFromThenTo = ResetReapplyType
-> ResetReapplyType -> ResetReapplyType -> [ResetReapplyType]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault ResetReapplyType where
fieldDefault :: ResetReapplyType
fieldDefault = ResetReapplyType
RESET_REAPPLY_TYPE_UNSPECIFIED
instance Control.DeepSeq.NFData ResetReapplyType where
rnf :: ResetReapplyType -> ()
rnf ResetReapplyType
x__ = ResetReapplyType -> () -> ()
forall a b. a -> b -> b
Prelude.seq ResetReapplyType
x__ ()
newtype ResetType'UnrecognizedValue
= ResetType'UnrecognizedValue Data.Int.Int32
deriving stock (ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
(ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> Eq ResetType'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
== :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
$c/= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
/= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
Prelude.Eq, Eq ResetType'UnrecognizedValue
Eq ResetType'UnrecognizedValue =>
(ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Ordering)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Bool)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue)
-> (ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue)
-> Ord ResetType'UnrecognizedValue
ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Ordering
ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'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
$ccompare :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Ordering
compare :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> Ordering
$c< :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
< :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
$c<= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
<= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
$c> :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
> :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
$c>= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
>= :: ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue -> Bool
$cmax :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue
max :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue
$cmin :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue
min :: ResetType'UnrecognizedValue
-> ResetType'UnrecognizedValue -> ResetType'UnrecognizedValue
Prelude.Ord, Int -> ResetType'UnrecognizedValue -> ShowS
[ResetType'UnrecognizedValue] -> ShowS
ResetType'UnrecognizedValue -> String
(Int -> ResetType'UnrecognizedValue -> ShowS)
-> (ResetType'UnrecognizedValue -> String)
-> ([ResetType'UnrecognizedValue] -> ShowS)
-> Show ResetType'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetType'UnrecognizedValue -> ShowS
showsPrec :: Int -> ResetType'UnrecognizedValue -> ShowS
$cshow :: ResetType'UnrecognizedValue -> String
show :: ResetType'UnrecognizedValue -> String
$cshowList :: [ResetType'UnrecognizedValue] -> ShowS
showList :: [ResetType'UnrecognizedValue] -> ShowS
Prelude.Show)
data ResetType
= RESET_TYPE_UNSPECIFIED |
RESET_TYPE_FIRST_WORKFLOW_TASK |
RESET_TYPE_LAST_WORKFLOW_TASK |
ResetType'Unrecognized !ResetType'UnrecognizedValue
deriving stock (Int -> ResetType -> ShowS
[ResetType] -> ShowS
ResetType -> String
(Int -> ResetType -> ShowS)
-> (ResetType -> String)
-> ([ResetType] -> ShowS)
-> Show ResetType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResetType -> ShowS
showsPrec :: Int -> ResetType -> ShowS
$cshow :: ResetType -> String
show :: ResetType -> String
$cshowList :: [ResetType] -> ShowS
showList :: [ResetType] -> ShowS
Prelude.Show, ResetType -> ResetType -> Bool
(ResetType -> ResetType -> Bool)
-> (ResetType -> ResetType -> Bool) -> Eq ResetType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResetType -> ResetType -> Bool
== :: ResetType -> ResetType -> Bool
$c/= :: ResetType -> ResetType -> Bool
/= :: ResetType -> ResetType -> Bool
Prelude.Eq, Eq ResetType
Eq ResetType =>
(ResetType -> ResetType -> Ordering)
-> (ResetType -> ResetType -> Bool)
-> (ResetType -> ResetType -> Bool)
-> (ResetType -> ResetType -> Bool)
-> (ResetType -> ResetType -> Bool)
-> (ResetType -> ResetType -> ResetType)
-> (ResetType -> ResetType -> ResetType)
-> Ord ResetType
ResetType -> ResetType -> Bool
ResetType -> ResetType -> Ordering
ResetType -> ResetType -> ResetType
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 :: ResetType -> ResetType -> Ordering
compare :: ResetType -> ResetType -> Ordering
$c< :: ResetType -> ResetType -> Bool
< :: ResetType -> ResetType -> Bool
$c<= :: ResetType -> ResetType -> Bool
<= :: ResetType -> ResetType -> Bool
$c> :: ResetType -> ResetType -> Bool
> :: ResetType -> ResetType -> Bool
$c>= :: ResetType -> ResetType -> Bool
>= :: ResetType -> ResetType -> Bool
$cmax :: ResetType -> ResetType -> ResetType
max :: ResetType -> ResetType -> ResetType
$cmin :: ResetType -> ResetType -> ResetType
min :: ResetType -> ResetType -> ResetType
Prelude.Ord)
instance Data.ProtoLens.MessageEnum ResetType where
maybeToEnum :: Int -> Maybe ResetType
maybeToEnum Int
0 = ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_UNSPECIFIED
maybeToEnum Int
1 = ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK
maybeToEnum Int
2 = ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
maybeToEnum Int
k
= ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just
(ResetType'UnrecognizedValue -> ResetType
ResetType'Unrecognized
(Int32 -> ResetType'UnrecognizedValue
ResetType'UnrecognizedValue (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: ResetType -> String
showEnum ResetType
RESET_TYPE_UNSPECIFIED = String
"RESET_TYPE_UNSPECIFIED"
showEnum ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK
= String
"RESET_TYPE_FIRST_WORKFLOW_TASK"
showEnum ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
= String
"RESET_TYPE_LAST_WORKFLOW_TASK"
showEnum (ResetType'Unrecognized (ResetType'UnrecognizedValue Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe ResetType
readEnum String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_TYPE_UNSPECIFIED"
= ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_UNSPECIFIED
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_TYPE_FIRST_WORKFLOW_TASK"
= ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"RESET_TYPE_LAST_WORKFLOW_TASK"
= ResetType -> Maybe ResetType
forall a. a -> Maybe a
Prelude.Just ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
| Bool
Prelude.otherwise
= Maybe Int -> (Int -> Maybe ResetType) -> Maybe ResetType
forall a b. Maybe a -> (a -> Maybe b) -> Maybe b
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 ResetType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded ResetType where
minBound :: ResetType
minBound = ResetType
RESET_TYPE_UNSPECIFIED
maxBound :: ResetType
maxBound = ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
instance Prelude.Enum ResetType where
toEnum :: Int -> ResetType
toEnum Int
k__
= ResetType
-> (ResetType -> ResetType) -> Maybe ResetType -> ResetType
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> ResetType
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
String
"toEnum: unknown value for enum ResetType: " (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
ResetType -> ResetType
forall a. a -> a
Prelude.id (Int -> Maybe ResetType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: ResetType -> Int
fromEnum ResetType
RESET_TYPE_UNSPECIFIED = Int
0
fromEnum ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK = Int
1
fromEnum ResetType
RESET_TYPE_LAST_WORKFLOW_TASK = Int
2
fromEnum (ResetType'Unrecognized (ResetType'UnrecognizedValue Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: ResetType -> ResetType
succ ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
= String -> ResetType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetType.succ: bad argument RESET_TYPE_LAST_WORKFLOW_TASK. This value would be out of bounds."
succ ResetType
RESET_TYPE_UNSPECIFIED = ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK
succ ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK = ResetType
RESET_TYPE_LAST_WORKFLOW_TASK
succ (ResetType'Unrecognized ResetType'UnrecognizedValue
_)
= String -> ResetType
forall a. HasCallStack => String -> a
Prelude.error String
"ResetType.succ: bad argument: unrecognized value"
pred :: ResetType -> ResetType
pred ResetType
RESET_TYPE_UNSPECIFIED
= String -> ResetType
forall a. HasCallStack => String -> a
Prelude.error
String
"ResetType.pred: bad argument RESET_TYPE_UNSPECIFIED. This value would be out of bounds."
pred ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK = ResetType
RESET_TYPE_UNSPECIFIED
pred ResetType
RESET_TYPE_LAST_WORKFLOW_TASK = ResetType
RESET_TYPE_FIRST_WORKFLOW_TASK
pred (ResetType'Unrecognized ResetType'UnrecognizedValue
_)
= String -> ResetType
forall a. HasCallStack => String -> a
Prelude.error String
"ResetType.pred: bad argument: unrecognized value"
enumFrom :: ResetType -> [ResetType]
enumFrom = ResetType -> [ResetType]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: ResetType -> ResetType -> [ResetType]
enumFromTo = ResetType -> ResetType -> [ResetType]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: ResetType -> ResetType -> [ResetType]
enumFromThen = ResetType -> ResetType -> [ResetType]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: ResetType -> ResetType -> ResetType -> [ResetType]
enumFromThenTo = ResetType -> ResetType -> ResetType -> [ResetType]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault ResetType where
fieldDefault :: ResetType
fieldDefault = ResetType
RESET_TYPE_UNSPECIFIED
instance Control.DeepSeq.NFData ResetType where
rnf :: ResetType -> ()
rnf ResetType
x__ = ResetType -> () -> ()
forall a b. a -> b -> b
Prelude.seq ResetType
x__ ()