Re: [protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
https://github.com/google/protobuf/issues/2108 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group,

Re: [protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
> Can you help create a github issue to track it? > > Currently protobuf generated code size is already a problem for large > binaries. Adding this Builder.writeTo() method will require another > generated serialization method and that probably won't going to happen > until we solve the

Re: [protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Sep 12, 2016 at 11:07 AM, Nickolay Mazurkin wrote: > I've created a test: https://github.com/mazurkin/protobuf-test > > This is a monster bean: https://github.com/mazurkin/ > protobuf-test/blob/master/src/main/config/proto/BeanProto.proto > > This is a test:

[protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
I've created a test: https://github.com/mazurkin/protobuf-test This is a monster bean: https://github.com/mazurkin/protobuf-test/blob/master/src/main/config/proto/BeanProto.proto This is a test: https://github.com/mazurkin/protobuf-test/blob/master/src/test/java/org/test/ProtoTest.java Result

Re: [protobuf] generate .proto file from C# code

2016-09-12 Thread Marc Gravell
That output is from protobuf-net, not protoc. I already showed the code to ask protobuf-net to have a go at writing a .proto schema from a type. Note that it is not perfect and you may want to tweak names etc to match convention. But names don't matter much to protobuf. On 12 Sep 2016 1:59 pm,

Re: [protobuf] generate .proto file from C# code

2016-09-12 Thread Gayatri Shah
Thank you Marc. Do you have sample of .proto file? What did you have to do to make it compile? I just wrote few lines of .proto file and I m using *protoc-3.0.0-win32.zip for compiler? Can you also give me ur