Re: [protobuf] Is there a way to convert the go class to protobuf?

2019-08-22 Thread Alex Van Boxel
I don't think that tooling exists todo this, but even if it did I would strongly advice against it. I've worked in a project where proto's where created for C# classes and keeping the proto's compatible with each change of the C# classes was a nightmare. The great thing of working with proto's as

Re: [protobuf] New proto3 implementation: has_foo() is optional?

2019-08-22 Thread Denis Feklushkin
пн, 12 авг. 2019 г. в 23:51, Adam Cozzette : > Proto3 doesn't have a concept of field presence for singular primitive > fields, so for example there is no difference between an integer field set > to 0 and that same field being unset entirely. > But in this case it will be impossible to

Re: [protobuf] New proto3 implementation: has_foo() is optional?

2019-08-22 Thread Alex Van Boxel
That why you have the Well Known Wrapper Types. They are included in the proto repo and live right next to the Timestamp and Duration: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto On Thu, Aug 22, 2019, 10:43 Denis Feklushkin wrote: > > > пн, 12

Re: [protobuf] New proto3 implementation: has_foo() is optional?

2019-08-22 Thread 'Adam Cozzette' via Protocol Buffers
On Thu, Aug 22, 2019 at 1:43 AM Denis Feklushkin wrote: > > > пн, 12 авг. 2019 г. в 23:51, Adam Cozzette : > >> Proto3 doesn't have a concept of field presence for singular primitive >> fields, so for example there is no difference between an integer field set >> to 0 and that same field being

Re: [protobuf] New proto3 implementation: has_foo() is optional?

2019-08-22 Thread Denis Feklushkin
чт, 22 авг. 2019 г. в 23:17, Adam Cozzette : > On Thu, Aug 22, 2019 at 1:43 AM Denis Feklushkin < > feklushkin.de...@gmail.com> wrote: > >> >> >> пн, 12 авг. 2019 г. в 23:51, Adam Cozzette : >> >>> Proto3 doesn't have a concept of field presence for singular primitive >>> fields, so for example

Re: [protobuf] Is there a way to convert the go class to protobuf?

2019-08-22 Thread Srinivasa Rao Chirathanagandla
Hi Alex, Thank you for the reply. Yes, I agree with you on designing the protos first and using it in different languages. I will work in that direction. Regards, Srinivas On Thursday, August 22, 2019 at 12:22:33 AM UTC-7, Alex Van Boxel wrote: > > I don't think that tooling exists todo this,