Re: [protobuf] protobuf_AssignDescriptors_once_ redefined?

2017-11-12 Thread Abilash Gopinath
Hi Kenton, I am facing the same issue. In my case, I have multiple proto files created under the same package. When I add more than one proto file from the same package on to a project, each proto file is generating its own .pb.cc and .h files and each generated file has the below two methods.

Re: [protobuf] How to combine FieldOptions with Default Values in Messages

2017-11-12 Thread Josh Humphries
Even though it's not a field on FieldOptions, you can supply a "pseudo-option" for default value named simply default: https://developers.google.com/protocol-buffers/docs/proto#optional When protoc compiles this source, the default value ends up in a field on FieldDescriptorProto. There is one othe

Re: [protobuf] How to combine FieldOptions with Default Values in Messages

2017-11-12 Thread Marc Gravell
requested claritication and *possibly* answered here: https://stackoverflow.com/questions/47246474/protobuf-how-to-combine-fieldoptions-with-default-values-in-messages On 12 Nov 2017 7:12 a.m., wrote: > I have an message using FieldOptions but I also want to use default values > as well, how do