Re: [protobuf] Protocol Buffer + AIDL

2018-03-09 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Mar 9, 2018 at 1:36 PM, Matt W wrote: > Is it possible to have the generated code implement Parcelable? > No (assuming you are using the official Java implementation). I think you can implement a simple wrapper for this purpose. > My System Service is receiving

[protobuf] Protocol Buffer + AIDL

2018-03-09 Thread Matt W
Is it possible to have the generated code implement Parcelable? My System Service is receiving Events that were serialized with Google Protocol Buffers, and I would like to deserialize inside the service rather than the manager. Any non primitive sent across AIDL needs to implement Parcelable.

[protobuf] Re: Any way to stop rename field in codegen?

2018-03-09 Thread Jon Skeet
On Thursday, 8 March 2018 13:51:45 UTC, ke ren wrote: > > Thanks to confirm it. will JsonParser use pbr::OriginalName or the field > name in generated class for json deseriliazation? If it uses the field > name, probably it would work. Otherwise, probably have to consider data > deser bridge or