Re: [protobuf] Re: validating protobuf messages

2017-12-10 Thread Marc Gravell
a zero tag is never valid in any protobuf data, although it wouldn't be unheard of for folks to use a zero tag as a sentinel value to demark multiple root messages. Protoc has some facilities to check the insides of a message that might help you figure out how likely it is to be a match, but it

[protobuf] Re: validating protobuf messages

2017-12-10 Thread Annu Bansal
Hey Jeroen! Dis you get any method to check if a .pb file is generated from givem .proto file? Actually, I'm getting error while deserializing a .pb file, "The protocol message contained invalid tag(zero)." I was wondering if the two files are compatible. Thanks in advance. On Saturday,

[protobuf] Re: validating protobuf messages

2012-11-19 Thread alex
What's the definition of Validate? pb support optional fields, extensions , that means you can ignore unknown fields. If some fields are necessary why not just set to required. On Saturday, November 17, 2012 8:08:16 AM UTC+8, Jeroen Ooms wrote: I am using the RProtoBuf package, which