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

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

2017-04-14 Thread 'Adam Cozzette' via Protocol Buffers
Yes, that should work. Unless I'm misunderstanding something, you should just be able to do what Henner suggested above to accomplish this. On Fri, Apr 7, 2017 at 5:46 AM, wrote: > Hi, on the same lines need help on an idea. > > Is it possible to define my enums in

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

2017-04-07 Thread ronil . merchant
Hi, on the same lines need help on an idea. Is it possible to define my enums in one .proto file and use them across other .proto files. In context of grpc protobuf3. Any help is appreciated. On Friday, December 7, 2012 at 10:49:29 AM UTC+5:30, Henner Zeller wrote: > > On 6 December 2012

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

2012-12-06 Thread Milan Stankovic
Is possible to use enum from external class ? I have couple .proto definition and all need to use same enum Type with same tokens. I want to avoid definition of same enum in every class and to avoid sync between, I have that enum in regular external c++ class which I use in code. -- You