Re: [protobuf] How to fix “com.google.protobuf.InvalidProtocolBufferException: Cannot find field” thrown from JsonFormat.parser().merge(…)?

2017-12-20 Thread Behrang Saeedzadeh
Unfortunately I don't own the actual protocol buffer models and can't change their definitions. What I actually want to do is this: I have a Protocol buffer model in byte[] format. I want to deserialize it back to Java objects but then replace all the ID fields in the model, including its exten

Re: [protobuf] How to fix “com.google.protobuf.InvalidProtocolBufferException: Cannot find field” thrown from JsonFormat.parser().merge(…)?

2017-12-20 Thread 'Feng Xiao' via Protocol Buffers
JsonFormat doesn't support extensions. You can replace extensions with google.protobuf.Any if you want to use the proto with JsonFormat. On Wed, Dec 20, 2017 at 3:39 PM, Behrang Saeedzadeh wrote: > > > *down vote**favorite* >

[protobuf] How to fix “com.google.protobuf.InvalidProtocolBufferException: Cannot find field” thrown from JsonFormat.parser().merge(…)?

2017-12-20 Thread Behrang Saeedzadeh
*down vote**favorite* *Cross-post from StackOverflow: https://stackoverflow.com/questions/47903567/how-to-fix-com-google-protobuf-invalidprotocolbufferexception-cann

[protobuf] Re: [protobuf-team] Protobuf and Abseil in Debian/Ubuntu

2017-12-20 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Dec 20, 2017 at 11:25 AM, Josh Haberman wrote: > Thanks Feng and sorry for the confusion everyone! > > Feng quoted my original email, but I'll repeat it here for clarity. > Hopefully everyone will be able to reply to messages properly this time. :) > > -- > > Hi all, > > I wanted to kick

[protobuf] Re: [protobuf-team] Protobuf and Abseil in Debian/Ubuntu

2017-12-20 Thread 'Josh Haberman' via Protocol Buffers
Thanks Feng and sorry for the confusion everyone! Feng quoted my original email, but I'll repeat it here for clarity. Hopefully everyone will be able to reply to messages properly this time. :) -- Hi all, I wanted to kick off a conversation about the future of Protobuf and Abseil/ABSL in Debian

[protobuf] Re: [protobuf-team] Protobuf and Abseil in Debian/Ubuntu

2017-12-20 Thread 'Jisi Liu' via Protocol Buffers
There's also header dependency issue, i.e. libprotobuf-dev may distribute headers which may transitively include headers from libabseil-dev (currently we duplicate atomicops, platform macros, etc). This means the protobuf dev package needs to pin with a specific libabseil-dev, even if we go with th

[protobuf] Re: [protobuf-team] Protobuf and Abseil in Debian/Ubuntu

2017-12-20 Thread 'Feng Xiao' via Protocol Buffers
+abseil...@googlegroups.com, +proto...@gogolegroups.com CCed public google groups so László can reply to the group. BCCed internal mailing lists. On Tue, Dec 19, 2017 at 8:24 PM, Josh Haberman wrote: > Hi all, > > I wanted to kick off a conversation about the future of Protobuf and > Abseil/ABS

[protobuf] How to speedup serialization and deserialization process?

2017-12-20 Thread Ravi
I have defined the Protocol Buffers message file as follows: syntax = "proto3"; package Tutorial; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Tutorial"; message PointCloud { int32 width = 1; int32 height = 2; message Point { float x = 1; float y =