[protobuf] Issue 222 in protobuf: Not having the key word extends in .proto is very problematic to modelize inher itance between 2 messages

2010-09-30 Thread protobuf
Status: New Owner: ken...@google.com Labels: Type-Defect Priority-Medium New issue 222 by alexandre.j.navarro: Not having the keyword extends in .proto is very problematic to modelize inheritance between 2 messages http://code.google.com/p/protobuf/issues/detail?id=222 Not having the keyword

[protobuf] Java Protobuf Extension

2010-09-30 Thread Squid
So I have a message in one file, and in another file, I have a message with extends. For example: file1.proto: message baseMessage { required int32 test = 1; extensions 1000 to max; } file2.proto extend baseMessage { required int32 test2 = 1000; } My client then does something along the

[protobuf] Re: Issue 222 in protobuf: Not having the keyword extends in .proto is very problematic to modelize i nheritance between 2 messages

2010-09-30 Thread protobuf
Updates: Status: WontFix Owner: jas...@google.com Comment #1 on issue 222 by jas...@google.com: Not having the keyword extends in .proto is very problematic to modelize inheritance between 2 messages http://code.google.com/p/protobuf/issues/detail?id=222 There is an extends

Re: [protobuf] Java Protobuf Extension

2010-09-30 Thread Jason Hsueh
In Java, you need to make sure that you provide an ExtensionRegistry when you parse the message. You will need to create an ExtensionRegistry instance, add the extensions that you want to access, and then pass it to mergeFrom/parseFrom. Otherwise, the extensions will just get treated as an unknown