[protobuf] FileDescriptor to .proto?

2015-02-11 Thread Himanshu Agarwal
Hi I'm looking for a method to print a FileDescriptor to a .proto file in C++. I was browsing through the threads and code and the only solution i was able to find out is through DebugString() Api. However i was going through code of DebugString() Api in Descriptor.cc and it appeared that

[protobuf] Re: Proto file generation from Descriptors in Java (DebugString)

2015-02-11 Thread Himanshu Agarwal
I was looking for a similar functionality. One thing that i noticed probably comments in proto are missed out while printing DebugString? On Thursday, 19 May 2011 21:13:15 UTC+8, Ben Wright wrote: previous thread:

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-02-11 Thread Alfred Kwan
Thanks for pointing me to oneof. I gave it a try and I have two questions: 1) I see the has_() being generated for all the fields inside oneof. Is this kind of has_() function here to stay throughout subsequent V3 releases? 2) Since oneof does not allow a repeated field in both V2/3, is there