protocol-buffers-2.4.17: Parse Google Protocol Buffer specifications
Safe HaskellNone
LanguageHaskell2010

Text.ProtocolBuffers.Unknown

Description

This module add unknown field support to the library. There are no user API things here, except for advanced spelunking into the data structures which can and have changed with no notice. Importer beware.

Synopsis

Documentation

newtype UnknownField Source #

This is a suposedly opaque type

Instances

Instances details
Eq UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Data UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnknownField -> c UnknownField #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnknownField #

toConstr :: UnknownField -> Constr #

dataTypeOf :: UnknownField -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UnknownField) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnknownField) #

gmapT :: (forall b. Data b => b -> b) -> UnknownField -> UnknownField #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnknownField -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnknownField -> r #

gmapQ :: (forall d. Data d => d -> u) -> UnknownField -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UnknownField -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnknownField -> m UnknownField #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnknownField -> m UnknownField #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnknownField -> m UnknownField #

Ord UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Read UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Show UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Default UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Mergeable UnknownField Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

class UnknownMessage msg where Source #

Messages that can store unknown fields implement this interface. UnknownField is a supposedly opaque type.

data UnknownFieldValue Source #

Constructors

UFV !WireTag !ByteString 

Instances

Instances details
Eq UnknownFieldValue Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Data UnknownFieldValue Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnknownFieldValue -> c UnknownFieldValue #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnknownFieldValue #

toConstr :: UnknownFieldValue -> Constr #

dataTypeOf :: UnknownFieldValue -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UnknownFieldValue) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnknownFieldValue) #

gmapT :: (forall b. Data b => b -> b) -> UnknownFieldValue -> UnknownFieldValue #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnknownFieldValue -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnknownFieldValue -> r #

gmapQ :: (forall d. Data d => d -> u) -> UnknownFieldValue -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UnknownFieldValue -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnknownFieldValue -> m UnknownFieldValue #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnknownFieldValue -> m UnknownFieldValue #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnknownFieldValue -> m UnknownFieldValue #

Ord UnknownFieldValue Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Read UnknownFieldValue Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

Show UnknownFieldValue Source # 
Instance details

Defined in Text.ProtocolBuffers.Unknown

wireSizeUnknownField :: UnknownField -> WireSize Source #

This is used by the generated code

wirePutUnknownField :: UnknownField -> Put Source #

This is used by the generated code

wirePutUnknownFieldWithSize :: UnknownField -> PutM WireSize Source #

This is used by the generated code

catch'Unknown :: UnknownMessage a => (WireTag -> a -> Get a) -> WireTag -> a -> Get a Source #

This is used by the generated code. Here for backwards compatibility.

catch'Unknown' :: (WireTag -> a -> Get a) -> (WireTag -> a -> Get a) -> WireTag -> a -> Get a Source #

loadUnknown :: UnknownMessage a => WireTag -> a -> Get a Source #

This is used by the generated code

discardUnknown :: WireTag -> a -> Get a Source #

This is used by the generated code