Etymology: From Kashyapa is a king ruled Sri Lanka from 473โ495. He is well known for building his palace on a massive column of rock, Sigiriya nearly 200 metres (660 ft) high.
If you picked protobuf as your data representation and serialization framework and you are working with Scala, you might not like the java code generated by the protobuf code generator (no case class support specifically). To solve this, you can use ScalaBuff and integrate that with your sbt build with sbt-scalabuff project.
Having done that, one of the challenges you might face is writing a generic converter between a serialized protobuf messages and its de-serialized scala objects. Especially if you are using Twitter Bijection for this work, you will need a converter to/from protobuf objects.
The Kashyapa repo will have two main items to pick from if you are working with ScalaBuff and Twitter Bijection.
- it will provide you with a project template if you want to integrate protobuf scala code generation with your sbt build. This template was extracted from the repo here
- it will provide you with a generic Scala reflection based method to de-construct and re-construct any protobuf generated scala object.
Clone the repo and update the protobuf definitions (src/main/protobuf/kashyapa.proto) to suite your needs. You will also have a test written in ScalaBufCodecTest to test the re/de-construction of objects.