Re: [protobuf] Is possible to use enum from external class in .proto files?

2017-04-17 Thread Ronil Merchant
Thanks for the help, the suggested approach by henner worked. Was making an error in the implementation On Sat, Apr 15, 2017 at 2:57 AM, Adam Cozzette wrote: > Yes, that should work. Unless I'm misunderstanding something, you should > just be able to do what Henner suggested above to accomplish

Re: [protobuf] Enum values and proto3 Any types

2017-04-17 Thread 'Adam Cozzette' via Protocol Buffers
I think the right solution for putting an enum or primitive type in an Any field would be to use a wrapper type like you mentioned. Since there's no real way to create a generic wrapper for all enums, you would probably need to create a specific wrapper for each enum you want to store in an Any fie

Re: [protobuf] Enum values and proto3 Any types

2017-04-17 Thread Josh Humphries
That totally works. I don't actually need anything at the moment. But I was looking at the spec and implementing some stuff around it -- like for downloading and resolving type schemas from type URLs -- and noticed it as an omission. The main omission is that nothing describes the contents of googl