99{-# OPTIONS_GHC -fno-warn-unused-matches #-}
1010
1111-- | Generated by Haskell protocol buffer compiler. DO NOT EDIT!
12+
1213module Ledger.Queryresult.KvQueryResult where
1314import qualified Prelude as Hs
1415import qualified Proto3.Suite.Class as HsProtobuf
@@ -35,16 +36,16 @@ import qualified GHC.Enum as Hs
3536import qualified GHC.Generics as Hs
3637import qualified Unsafe.Coerce as Hs
3738import qualified Google.Protobuf.Timestamp
38-
39+
3940data KV = KV { kvNamespace :: Hs. Text , kvKey :: Hs. Text ,
4041 kvValue :: Hs. ByteString}
4142 deriving (Hs.Show , Hs.Eq , Hs.Ord , Hs.Generic , Hs.NFData )
42-
43+
4344instance HsProtobuf. Named KV where
4445 nameOf _ = (Hs. fromString " KV" )
45-
46+
4647instance HsProtobuf. HasDefault KV
47-
48+
4849instance HsProtobuf. Message KV where
4950 encodeMessage _
5051 KV {kvNamespace = kvNamespace, kvKey = kvKey, kvValue = kvValue}
@@ -80,27 +81,27 @@ instance HsProtobuf.Message KV where
8081 (HsProtobuf. Single " value" )
8182 []
8283 " " )]
83-
84+
8485instance HsJSONPB. ToJSONPB KV where
8586 toJSONPB (KV f1 f2 f3)
8687 = (HsJSONPB. object [" namespace" .= f1, " key" .= f2, " value" .= f3])
8788 toEncodingPB (KV f1 f2 f3)
8889 = (HsJSONPB. pairs [" namespace" .= f1, " key" .= f2, " value" .= f3])
89-
90+
9091instance HsJSONPB. FromJSONPB KV where
9192 parseJSONPB
9293 = (HsJSONPB. withObject " KV"
9394 (\ obj ->
9495 (Hs. pure KV ) <*> obj .: " namespace" <*> obj .: " key" <*>
9596 obj .: " value" ))
96-
97+
9798instance HsJSONPB. ToJSON KV where
9899 toJSON = HsJSONPB. toAesonValue
99100 toEncoding = HsJSONPB. toAesonEncoding
100-
101+
101102instance HsJSONPB. FromJSON KV where
102103 parseJSON = HsJSONPB. parseJSONPB
103-
104+
104105instance HsJSONPB. ToSchema KV where
105106 declareNamedSchema _
106107 = do let declare_namespace = HsJSONPB. declareSchemaRef
@@ -122,20 +123,20 @@ instance HsJSONPB.ToSchema KV where
122123 HsJSONPB. insOrdFromList
123124 [(" namespace" , kvNamespace), (" key" , kvKey),
124125 (" value" , kvValue)]}})
125-
126+
126127data KeyModification = KeyModification { keyModificationTxId ::
127128 Hs. Text ,
128129 keyModificationValue :: Hs. ByteString ,
129130 keyModificationTimestamp ::
130131 Hs. Maybe Google.Protobuf.Timestamp. Timestamp ,
131132 keyModificationIsDelete :: Hs. Bool }
132133 deriving (Hs.Show , Hs.Eq , Hs.Ord , Hs.Generic , Hs.NFData )
133-
134+
134135instance HsProtobuf. Named KeyModification where
135136 nameOf _ = (Hs. fromString " KeyModification" )
136-
137+
137138instance HsProtobuf. HasDefault KeyModification
138-
139+
139140instance HsProtobuf. Message KeyModification where
140141 encodeMessage _
141142 KeyModification {keyModificationTxId = keyModificationTxId,
@@ -193,7 +194,7 @@ instance HsProtobuf.Message KeyModification where
193194 (HsProtobuf. Single " is_delete" )
194195 []
195196 " " )]
196-
197+
197198instance HsJSONPB. ToJSONPB KeyModification where
198199 toJSONPB (KeyModification f1 f2 f3 f4)
199200 = (HsJSONPB. object
@@ -203,22 +204,22 @@ instance HsJSONPB.ToJSONPB KeyModification where
203204 = (HsJSONPB. pairs
204205 [" tx_id" .= f1, " value" .= f2, " timestamp" .= f3,
205206 " is_delete" .= f4])
206-
207+
207208instance HsJSONPB. FromJSONPB KeyModification where
208209 parseJSONPB
209210 = (HsJSONPB. withObject " KeyModification"
210211 (\ obj ->
211212 (Hs. pure KeyModification ) <*> obj .: " tx_id" <*> obj .: " value" <*>
212213 obj .: " timestamp"
213214 <*> obj .: " is_delete" ))
214-
215+
215216instance HsJSONPB. ToJSON KeyModification where
216217 toJSON = HsJSONPB. toAesonValue
217218 toEncoding = HsJSONPB. toAesonEncoding
218-
219+
219220instance HsJSONPB. FromJSON KeyModification where
220221 parseJSON = HsJSONPB. parseJSONPB
221-
222+
222223instance HsJSONPB. ToSchema KeyModification where
223224 declareNamedSchema _
224225 = do let declare_tx_id = HsJSONPB. declareSchemaRef
@@ -245,4 +246,4 @@ instance HsJSONPB.ToSchema KeyModification where
245246 [(" tx_id" , keyModificationTxId),
246247 (" value" , keyModificationValue),
247248 (" timestamp" , keyModificationTimestamp),
248- (" is_delete" , keyModificationIsDelete)]}})
249+ (" is_delete" , keyModificationIsDelete)]}})
0 commit comments