elixir-protobuf / protobuf

A pure Elixir implementation of Google Protobuf.
https://hexdocs.pm/protobuf/readme.html
MIT License
823 stars 143 forks source link

Feature request: Optionally populate sub-messages #13

Closed meadoch1 closed 6 years ago

meadoch1 commented 7 years ago

When a message has fields which are in turn messages it would be handy to optionally have .new create the sub-messages all the way through the hierarchy defined in the message structure.

tony612 commented 7 years ago

But you may have this kind problem https://github.com/tony612/protobuf-elixir/issues/11

meadoch1 commented 7 years ago

Even if it only instantiated deterministic contents (e.g. oneof and map wouldn't be populated) that would be helpful; however, I understand if this is niche enough that it doesn't make sense for the library.

meadoch1 commented 7 years ago

Also, the messages I've needed this for are strictly structured like a tree with deterministic termination points, and not recursive. I can see where recursive relationships would be a problem.