-- Generated by protobuf-simple. DO NOT EDIT! module Types.UInt64OptMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype UInt64OptMsg = UInt64OptMsg { value :: PB.Maybe PB.Word64 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default UInt64OptMsg where defaultVal = UInt64OptMsg { value = PB.defaultVal } instance PB.Mergeable UInt64OptMsg where merge a b = UInt64OptMsg { value = PB.merge (value a) (value b) } instance PB.Required UInt64OptMsg where reqTags _ = PB.fromList [] instance PB.WireMessage UInt64OptMsg where fieldToValue (PB.WireTag 1 PB.VarInt) self = (\v -> self{value = PB.merge (value self) v}) <$> PB.getUInt64Opt fieldToValue tag self = PB.getUnknown tag self messageToFields self = do PB.putUInt64Opt (PB.WireTag 1 PB.VarInt) (value self)