{- This file was auto-generated from temporal/api/enums/v1/update.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.Temporal.Api.Enums.V1.Update (
        UpdateAdmittedEventOrigin(..), UpdateAdmittedEventOrigin(),
        UpdateAdmittedEventOrigin'UnrecognizedValue,
        UpdateWorkflowExecutionLifecycleStage(..),
        UpdateWorkflowExecutionLifecycleStage(),
        UpdateWorkflowExecutionLifecycleStage'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 UpdateAdmittedEventOrigin'UnrecognizedValue
  = UpdateAdmittedEventOrigin'UnrecognizedValue Data.Int.Int32
  deriving stock (UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
(UpdateAdmittedEventOrigin'UnrecognizedValue
 -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> Eq UpdateAdmittedEventOrigin'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
== :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
$c/= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
/= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
Prelude.Eq, Eq UpdateAdmittedEventOrigin'UnrecognizedValue
Eq UpdateAdmittedEventOrigin'UnrecognizedValue =>
(UpdateAdmittedEventOrigin'UnrecognizedValue
 -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Ordering)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue
    -> UpdateAdmittedEventOrigin'UnrecognizedValue)
-> Ord UpdateAdmittedEventOrigin'UnrecognizedValue
UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Ordering
UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'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 :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Ordering
compare :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Ordering
$c< :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
< :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
$c<= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
<= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
$c> :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
> :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
$c>= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
>= :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue -> Bool
$cmax :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
max :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
$cmin :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
min :: UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin'UnrecognizedValue
Prelude.Ord, Int -> UpdateAdmittedEventOrigin'UnrecognizedValue -> ShowS
[UpdateAdmittedEventOrigin'UnrecognizedValue] -> ShowS
UpdateAdmittedEventOrigin'UnrecognizedValue -> String
(Int -> UpdateAdmittedEventOrigin'UnrecognizedValue -> ShowS)
-> (UpdateAdmittedEventOrigin'UnrecognizedValue -> String)
-> ([UpdateAdmittedEventOrigin'UnrecognizedValue] -> ShowS)
-> Show UpdateAdmittedEventOrigin'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpdateAdmittedEventOrigin'UnrecognizedValue -> ShowS
showsPrec :: Int -> UpdateAdmittedEventOrigin'UnrecognizedValue -> ShowS
$cshow :: UpdateAdmittedEventOrigin'UnrecognizedValue -> String
show :: UpdateAdmittedEventOrigin'UnrecognizedValue -> String
$cshowList :: [UpdateAdmittedEventOrigin'UnrecognizedValue] -> ShowS
showList :: [UpdateAdmittedEventOrigin'UnrecognizedValue] -> ShowS
Prelude.Show)
data UpdateAdmittedEventOrigin
  = UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED |
    UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY |
    UpdateAdmittedEventOrigin'Unrecognized !UpdateAdmittedEventOrigin'UnrecognizedValue
  deriving stock (Int -> UpdateAdmittedEventOrigin -> ShowS
[UpdateAdmittedEventOrigin] -> ShowS
UpdateAdmittedEventOrigin -> String
(Int -> UpdateAdmittedEventOrigin -> ShowS)
-> (UpdateAdmittedEventOrigin -> String)
-> ([UpdateAdmittedEventOrigin] -> ShowS)
-> Show UpdateAdmittedEventOrigin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpdateAdmittedEventOrigin -> ShowS
showsPrec :: Int -> UpdateAdmittedEventOrigin -> ShowS
$cshow :: UpdateAdmittedEventOrigin -> String
show :: UpdateAdmittedEventOrigin -> String
$cshowList :: [UpdateAdmittedEventOrigin] -> ShowS
showList :: [UpdateAdmittedEventOrigin] -> ShowS
Prelude.Show, UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
(UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> Eq UpdateAdmittedEventOrigin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
== :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
$c/= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
/= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
Prelude.Eq, Eq UpdateAdmittedEventOrigin
Eq UpdateAdmittedEventOrigin =>
(UpdateAdmittedEventOrigin
 -> UpdateAdmittedEventOrigin -> Ordering)
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool)
-> (UpdateAdmittedEventOrigin
    -> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin)
-> (UpdateAdmittedEventOrigin
    -> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin)
-> Ord UpdateAdmittedEventOrigin
UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Ordering
UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
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 :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Ordering
compare :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Ordering
$c< :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
< :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
$c<= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
<= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
$c> :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
> :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
$c>= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
>= :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin -> Bool
$cmax :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
max :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
$cmin :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
min :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
Prelude.Ord)
instance Data.ProtoLens.MessageEnum UpdateAdmittedEventOrigin where
  maybeToEnum :: Int -> Maybe UpdateAdmittedEventOrigin
maybeToEnum Int
0
    = UpdateAdmittedEventOrigin -> Maybe UpdateAdmittedEventOrigin
forall a. a -> Maybe a
Prelude.Just UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
  maybeToEnum Int
1 = UpdateAdmittedEventOrigin -> Maybe UpdateAdmittedEventOrigin
forall a. a -> Maybe a
Prelude.Just UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
  maybeToEnum Int
k
    = UpdateAdmittedEventOrigin -> Maybe UpdateAdmittedEventOrigin
forall a. a -> Maybe a
Prelude.Just
        (UpdateAdmittedEventOrigin'UnrecognizedValue
-> UpdateAdmittedEventOrigin
UpdateAdmittedEventOrigin'Unrecognized
           (Int32 -> UpdateAdmittedEventOrigin'UnrecognizedValue
UpdateAdmittedEventOrigin'UnrecognizedValue
              (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
  showEnum :: UpdateAdmittedEventOrigin -> String
showEnum UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
    = String
"UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED"
  showEnum UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
    = String
"UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY"
  showEnum
    (UpdateAdmittedEventOrigin'Unrecognized (UpdateAdmittedEventOrigin'UnrecognizedValue Int32
k))
    = Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
  readEnum :: String -> Maybe UpdateAdmittedEventOrigin
readEnum String
k
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED"
    = UpdateAdmittedEventOrigin -> Maybe UpdateAdmittedEventOrigin
forall a. a -> Maybe a
Prelude.Just UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k String
"UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY"
    = UpdateAdmittedEventOrigin -> Maybe UpdateAdmittedEventOrigin
forall a. a -> Maybe a
Prelude.Just UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
    | Bool
Prelude.otherwise
    = Maybe Int
-> (Int -> Maybe UpdateAdmittedEventOrigin)
-> Maybe UpdateAdmittedEventOrigin
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 UpdateAdmittedEventOrigin
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded UpdateAdmittedEventOrigin where
  minBound :: UpdateAdmittedEventOrigin
minBound = UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
  maxBound :: UpdateAdmittedEventOrigin
maxBound = UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
instance Prelude.Enum UpdateAdmittedEventOrigin where
  toEnum :: Int -> UpdateAdmittedEventOrigin
toEnum Int
k__
    = UpdateAdmittedEventOrigin
-> (UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin)
-> Maybe UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
        (String -> UpdateAdmittedEventOrigin
forall a. HasCallStack => String -> a
Prelude.error
           (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
              String
"toEnum: unknown value for enum UpdateAdmittedEventOrigin: "
              (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
        UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
forall a. a -> a
Prelude.id (Int -> Maybe UpdateAdmittedEventOrigin
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
  fromEnum :: UpdateAdmittedEventOrigin -> Int
fromEnum UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED = Int
0
  fromEnum UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY = Int
1
  fromEnum
    (UpdateAdmittedEventOrigin'Unrecognized (UpdateAdmittedEventOrigin'UnrecognizedValue Int32
k))
    = Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
  succ :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
succ UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
    = String -> UpdateAdmittedEventOrigin
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateAdmittedEventOrigin.succ: bad argument UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY. This value would be out of bounds."
  succ UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
    = UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
  succ (UpdateAdmittedEventOrigin'Unrecognized UpdateAdmittedEventOrigin'UnrecognizedValue
_)
    = String -> UpdateAdmittedEventOrigin
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateAdmittedEventOrigin.succ: bad argument: unrecognized value"
  pred :: UpdateAdmittedEventOrigin -> UpdateAdmittedEventOrigin
pred UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
    = String -> UpdateAdmittedEventOrigin
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateAdmittedEventOrigin.pred: bad argument UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED. This value would be out of bounds."
  pred UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_REAPPLY
    = UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
  pred (UpdateAdmittedEventOrigin'Unrecognized UpdateAdmittedEventOrigin'UnrecognizedValue
_)
    = String -> UpdateAdmittedEventOrigin
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateAdmittedEventOrigin.pred: bad argument: unrecognized value"
  enumFrom :: UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
enumFrom = UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
  enumFromTo :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
enumFromTo = UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
  enumFromThen :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
enumFromThen = UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin -> [UpdateAdmittedEventOrigin]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
  enumFromThenTo :: UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin
-> [UpdateAdmittedEventOrigin]
enumFromThenTo = UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin
-> UpdateAdmittedEventOrigin
-> [UpdateAdmittedEventOrigin]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault UpdateAdmittedEventOrigin where
  fieldDefault :: UpdateAdmittedEventOrigin
fieldDefault = UpdateAdmittedEventOrigin
UPDATE_ADMITTED_EVENT_ORIGIN_UNSPECIFIED
instance Control.DeepSeq.NFData UpdateAdmittedEventOrigin where
  rnf :: UpdateAdmittedEventOrigin -> ()
rnf UpdateAdmittedEventOrigin
x__ = UpdateAdmittedEventOrigin -> () -> ()
forall a b. a -> b -> b
Prelude.seq UpdateAdmittedEventOrigin
x__ ()
newtype UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
  = UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue Data.Int.Int32
  deriving stock (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
(UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
 -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> Eq UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
== :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
$c/= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
/= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
Prelude.Eq, Eq UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
Eq UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue =>
(UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
 -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
 -> Ordering)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue)
-> Ord UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> Ordering
UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'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 :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> Ordering
compare :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> Ordering
$c< :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
< :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
$c<= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
<= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
$c> :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
> :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
$c>= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
>= :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> Bool
$cmax :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
max :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
$cmin :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
min :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
Prelude.Ord, Int
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> ShowS
[UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue] -> ShowS
UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> String
(Int
 -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
 -> ShowS)
-> (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
    -> String)
-> ([UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue]
    -> ShowS)
-> Show UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> ShowS
showsPrec :: Int
-> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> ShowS
$cshow :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> String
show :: UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue -> String
$cshowList :: [UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue] -> ShowS
showList :: [UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue] -> ShowS
Prelude.Show)
data UpdateWorkflowExecutionLifecycleStage
  = UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED |
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED |
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED |
    UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED |
    UpdateWorkflowExecutionLifecycleStage'Unrecognized !UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
  deriving stock (Int -> UpdateWorkflowExecutionLifecycleStage -> ShowS
[UpdateWorkflowExecutionLifecycleStage] -> ShowS
UpdateWorkflowExecutionLifecycleStage -> String
(Int -> UpdateWorkflowExecutionLifecycleStage -> ShowS)
-> (UpdateWorkflowExecutionLifecycleStage -> String)
-> ([UpdateWorkflowExecutionLifecycleStage] -> ShowS)
-> Show UpdateWorkflowExecutionLifecycleStage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UpdateWorkflowExecutionLifecycleStage -> ShowS
showsPrec :: Int -> UpdateWorkflowExecutionLifecycleStage -> ShowS
$cshow :: UpdateWorkflowExecutionLifecycleStage -> String
show :: UpdateWorkflowExecutionLifecycleStage -> String
$cshowList :: [UpdateWorkflowExecutionLifecycleStage] -> ShowS
showList :: [UpdateWorkflowExecutionLifecycleStage] -> ShowS
Prelude.Show, UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
(UpdateWorkflowExecutionLifecycleStage
 -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> Eq UpdateWorkflowExecutionLifecycleStage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
== :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
$c/= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
/= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
Prelude.Eq, Eq UpdateWorkflowExecutionLifecycleStage
Eq UpdateWorkflowExecutionLifecycleStage =>
(UpdateWorkflowExecutionLifecycleStage
 -> UpdateWorkflowExecutionLifecycleStage -> Ordering)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage -> Bool)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage)
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage)
-> Ord UpdateWorkflowExecutionLifecycleStage
UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Ordering
UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
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 :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Ordering
compare :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Ordering
$c< :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
< :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
$c<= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
<= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
$c> :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
> :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
$c>= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
>= :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage -> Bool
$cmax :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
max :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
$cmin :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
min :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
Prelude.Ord)
instance Data.ProtoLens.MessageEnum UpdateWorkflowExecutionLifecycleStage where
  maybeToEnum :: Int -> Maybe UpdateWorkflowExecutionLifecycleStage
maybeToEnum Int
0
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just
        UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
  maybeToEnum Int
1
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
  maybeToEnum Int
2
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
  maybeToEnum Int
3
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
  maybeToEnum Int
k
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just
        (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
-> UpdateWorkflowExecutionLifecycleStage
UpdateWorkflowExecutionLifecycleStage'Unrecognized
           (Int32 -> UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
              (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
  showEnum :: UpdateWorkflowExecutionLifecycleStage -> String
showEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
    = String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED"
  showEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
    = String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED"
  showEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
    = String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED"
  showEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
    = String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED"
  showEnum
    (UpdateWorkflowExecutionLifecycleStage'Unrecognized (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue Int32
k))
    = Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
  readEnum :: String -> Maybe UpdateWorkflowExecutionLifecycleStage
readEnum String
k
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
        String
k String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED"
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just
        UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
        String
k String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED"
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
        String
k String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED"
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
    | String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
        String
k String
"UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED"
    = UpdateWorkflowExecutionLifecycleStage
-> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. a -> Maybe a
Prelude.Just UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
    | Bool
Prelude.otherwise
    = Maybe Int
-> (Int -> Maybe UpdateWorkflowExecutionLifecycleStage)
-> Maybe UpdateWorkflowExecutionLifecycleStage
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 UpdateWorkflowExecutionLifecycleStage
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded UpdateWorkflowExecutionLifecycleStage where
  minBound :: UpdateWorkflowExecutionLifecycleStage
minBound = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
  maxBound :: UpdateWorkflowExecutionLifecycleStage
maxBound = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
instance Prelude.Enum UpdateWorkflowExecutionLifecycleStage where
  toEnum :: Int -> UpdateWorkflowExecutionLifecycleStage
toEnum Int
k__
    = UpdateWorkflowExecutionLifecycleStage
-> (UpdateWorkflowExecutionLifecycleStage
    -> UpdateWorkflowExecutionLifecycleStage)
-> Maybe UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
        (String -> UpdateWorkflowExecutionLifecycleStage
forall a. HasCallStack => String -> a
Prelude.error
           (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
              String
"toEnum: unknown value for enum UpdateWorkflowExecutionLifecycleStage: "
              (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
        UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
forall a. a -> a
Prelude.id (Int -> Maybe UpdateWorkflowExecutionLifecycleStage
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
  fromEnum :: UpdateWorkflowExecutionLifecycleStage -> Int
fromEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED = Int
0
  fromEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED = Int
1
  fromEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED = Int
2
  fromEnum UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED = Int
3
  fromEnum
    (UpdateWorkflowExecutionLifecycleStage'Unrecognized (UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue Int32
k))
    = Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
  succ :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
succ UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
    = String -> UpdateWorkflowExecutionLifecycleStage
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateWorkflowExecutionLifecycleStage.succ: bad argument UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. This value would be out of bounds."
  succ UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
  succ UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
  succ UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
  succ (UpdateWorkflowExecutionLifecycleStage'Unrecognized UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
_)
    = String -> UpdateWorkflowExecutionLifecycleStage
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateWorkflowExecutionLifecycleStage.succ: bad argument: unrecognized value"
  pred :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
pred UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
    = String -> UpdateWorkflowExecutionLifecycleStage
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateWorkflowExecutionLifecycleStage.pred: bad argument UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED. This value would be out of bounds."
  pred UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
  pred UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED
  pred UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED
  pred (UpdateWorkflowExecutionLifecycleStage'Unrecognized UpdateWorkflowExecutionLifecycleStage'UnrecognizedValue
_)
    = String -> UpdateWorkflowExecutionLifecycleStage
forall a. HasCallStack => String -> a
Prelude.error
        String
"UpdateWorkflowExecutionLifecycleStage.pred: bad argument: unrecognized value"
  enumFrom :: UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
enumFrom = UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
  enumFromTo :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
enumFromTo = UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
  enumFromThen :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
enumFromThen = UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
  enumFromThenTo :: UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
enumFromThenTo = UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> UpdateWorkflowExecutionLifecycleStage
-> [UpdateWorkflowExecutionLifecycleStage]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault UpdateWorkflowExecutionLifecycleStage where
  fieldDefault :: UpdateWorkflowExecutionLifecycleStage
fieldDefault
    = UpdateWorkflowExecutionLifecycleStage
UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED
instance Control.DeepSeq.NFData UpdateWorkflowExecutionLifecycleStage where
  rnf :: UpdateWorkflowExecutionLifecycleStage -> ()
rnf UpdateWorkflowExecutionLifecycleStage
x__ = UpdateWorkflowExecutionLifecycleStage -> () -> ()
forall a b. a -> b -> b
Prelude.seq UpdateWorkflowExecutionLifecycleStage
x__ ()