Re: [protobuf] Protobuf in python during message deserialization complains about 'Unexpected end-group tag.'

2017-06-30 Thread 'Jisi Liu' via Protocol Buffers
ParseFromString only takes the binary string that SerializeToString() generates. I don't know you get the input bytes, but you probably would have to decode it first. On Fri, Jun 30, 2017 at 6:45 AM Tanmay Saha wrote: > This is what I have done. > > mymessageobj =

Re: [protobuf] Accessing repeated oneof fields in Java

2017-06-30 Thread 'Jisi Liu' via Protocol Buffers
There's no such API. You would need to write a loop to find a match. On Tue, Jun 27, 2017 at 12:17 PM Steven Seeley wrote: > > 3:05 PM (less than a minute ago) > Hi guys, > > I've been trying to implement a means to compare two different protobuf > messages using a mapping

Re: [protobuf] Maps and append-as-merge; expectation clarification please

2017-06-30 Thread 'Jisi Liu' via Protocol Buffers
Yes. It will replace the value with the same key. On Sat, Jun 24, 2017 at 11:08 AM Marc Gravell wrote: > Basically, if I have > > message Foo { > int32 x = 1; > int32 y = 2; > } > message Bar { > map items = 1; > } > > And I serialize 2 fragments