Re: [protobuf] Re: Handling multiple messages in Java

2020-10-14 Thread Carlos Pereira
You're absolutely right! Thanks! BR Adam Cozzette escreveu no dia terça, 13/10/2020 à(s) 18:07: > Serialized protocol buffers don't contain any metadata to indicate what > type they are, so you have to have some other mechanism to know what the > type is. I would guess that your .proto file

Re: [protobuf] Re: Handling multiple messages in Java

2020-10-13 Thread 'Adam Cozzette' via Protocol Buffers
Serialized protocol buffers don't contain any metadata to indicate what type they are, so you have to have some other mechanism to know what the type is. I would guess that your .proto file probably has a parent message containing the other messages, and the parent is probably the one that is

[protobuf] Re: Handling multiple messages in Java

2020-10-13 Thread Carlos Pereira
I forgot to mention that the file they sent us is using Protocol Buffers 2. BR, A terça-feira, 13 de outubro de 2020 à(s) 15:25:07 UTC+2, Carlos Pereira escreveu: > Hi, > > Currently I'm working with ProtoBuf at work. There's a client device that > sends us messages using ProtoBuf, so we