Re: [protobuf] Any vs. oneof in message wrappers

2016-05-18 Thread 'David Koch' via Protocol Buffers
Hi Feng, Thank you for the answer. Good point about redundant type information in the header message. Regards, /David On Monday, May 16, 2016 at 11:01:47 PM UTC+2, Feng Xiao wrote: > > > > On Mon, May 16, 2016 at 11:30 AM, 'David Koch' via Protocol Buffers < > prot...@googlegroups.com >

Re: [protobuf] Any vs. oneof in message wrappers

2016-05-16 Thread 'Feng Xiao' via Protocol Buffers
On Mon, May 16, 2016 at 11:30 AM, 'David Koch' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Our platform generates/processes different types of proto3 messages with > Kafka as buffer. We currently store this type as part of the Kafka message > key so message consumers know which

[protobuf] Any vs. oneof in message wrappers

2016-05-16 Thread 'David Koch' via Protocol Buffers
Our platform generates/processes different types of proto3 messages with Kafka as buffer. We currently store this type as part of the Kafka message key so message consumers know which class to use for de-serialization. I want to add the type to the serialized message in order to not rely on