Re: [protobuf] Externally compiled protobuf messages

2009-12-11 Thread Kenton Varda
You can use extensions for this. message BarMsg { extensions 100 to max; } Then, in some other file that knows about both FooMsg and BarMsg, do: extend BarMsg { optional FooMsg foo_ext = 100; } On Fri, Dec 11, 2009 at 2:37 PM, atkretsch atkret...@gmail.com wrote: Hi all,

Re: [protobuf] Externally compiled protobuf messages

2009-12-11 Thread Adam Vartanian
An example: Foo.jar contains the compiled Java code for the following protobuf: option java_package = com.foo; message FooMsg {   optional int32 a = 1;   optional int32 b = 2;   ... } In my code, I want to do this: option java_package = com.bar; message BarMsg {   optional