module Text.DescriptorProtos.MethodOptions (MethodOptions(..)) where import Prelude ((+)) import qualified Prelude as P' import qualified Text.ProtocolBuffers.Header as P' data MethodOptions = MethodOptions{} deriving (P'.Show, P'.Eq, P'.Ord, P'.Typeable) instance P'.Mergeable MethodOptions where mergeEmpty = MethodOptions mergeAppend (MethodOptions) (MethodOptions) = MethodOptions instance P'.Default MethodOptions where defaultValue = MethodOptions instance P'.Wire MethodOptions where wireSize ft' self'@(MethodOptions) = case ft' of 10 -> calc'Size 11 -> P'.prependMessageSize calc'Size _ -> P'.wireSizeErr ft' self' where calc'Size = 0 wirePut ft' self'@(MethodOptions) = case ft' of 10 -> put'Fields 11 -> do P'.putSize (P'.wireSize 11 self') put'Fields _ -> P'.wirePutErr ft' self' where put'Fields = do P'.return () wireGet ft' = case ft' of 10 -> P'.getBareMessage update'Self 11 -> P'.getMessage update'Self _ -> P'.wireGetErr ft' where update'Self field'Number old'Self = case field'Number of _ -> P'.unknownField field'Number instance P'.MessageAPI msg' (msg' -> MethodOptions) MethodOptions where getVal m' f' = f' m' instance P'.GPB MethodOptions instance P'.ReflectDescriptor MethodOptions where reflectDescriptorInfo _ = P'.read "DescriptorInfo {descName = ProtoName {haskellPrefix = \"Text\", parentModule = \"DescriptorProtos\", baseName = \"MethodOptions\"}, descFilePath = [\"Text\",\"DescriptorProtos\",\"MethodOptions.hs\"], isGroup = False, fields = fromList [], keys = fromList [], extRanges = [], knownKeys = fromList []}"