btc-ag / service-idl

Xtext-based Service IDL (Interface Definition Language) and Code Generators for Protobuf, C++, Java and .NET
Eclipse Public License 2.0
8 stars 8 forks source link

Generate .proto files using com.google.protobuf.DescriptorProtos.DescriptorProto.Builder #93

Open sigiesec opened 6 years ago

sigiesec commented 6 years ago

Currently, the .proto files are written literally. However, there is the com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, which can be used to create a Protobuf Specification programmatically, which were easier to understand and safer to use. Changes this would improve maintainability of the Protobuf generator. The generated Protobuf metamodel could then also be used in the other generators.