starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.75k stars 387 forks source link

Does it support google.protobuf.Any field? and how to use it? #95

Closed coheneye closed 5 years ago

coheneye commented 5 years ago

Thanks in advance.

starwing commented 5 years ago

It does support. You should import the proto file from google, and process the decoded result yourself. See documentation in google’s any.proto file.

coheneye commented 5 years ago

Suddenly i learned from your tips. I should process raw Any format by myself, right? but i really don't think it is more intuitive or simpler than the encoded message string field.

starwing commented 5 years ago

@coheneye Now you can try the new version and using the pb.hooks routine to translate Any automatically.