New to Protobuf here, I was wondering if there are any means to enforce two messages structures having similar members.
Let's say that for example I'd like to have two packing options:
1. As compact and dynamic as possible for network and storage operations
2. Sparse for efficient rule matching
So basically I'd like to have a `to` and `from` functions generated between these messages and also enforcement if any of them changes as to not break compatibility.
The end goal is that in my example I'd like to have a `CompactEntry.toSparseEntry()` function
I understand that this might be a hard to implement feature as it requires different message to know each other. Also , I know that protobuf doesn't support inheritance. I was just wondering if anyone else tackled a similar issue and if there's a best practice around it.
Thanks a lot!