I'm using the latest protobuf.js with Node.js 4.4.5.
I currently struggle to get protobuf.js
to output the string definitions of enums instead of integers. I tried several suggestions, but none of them worked:
I guess it's because of API changes in protobuf.js
for the first one. For the second one, I can use the suggested solution partially, but if the message is nested within other messages, the builder seems to fall back to using the integer values, although the string values have been explicitly set.
Ideally, I'd like to overwrite the function which is used for producing the enum values, but I have a hard time finding the correct one with the debugger. Or is there a better way to achieve this for deeply nested objects?