[protobuf] Re: Issue 253 in protobuf: Feature download is for an old version

2011-01-28 Thread protobuf
Updates: Owner: liuj...@google.com Comment #1 on issue 253 by liuj...@google.com: Feature download is for an old version http://code.google.com/p/protobuf/issues/detail?id=253 We are still working on documentation. Will do, when we officially announce it:) -- You received this

[protobuf] inheritance.. well sort of... and FieldDescriptors

2011-01-28 Thread koert
i have several proto message definitions that all share the first 4 fields. its as if they are all subclasses of one protobuf message format. in java can i create the FieldDescriptors for these 4 fields once and use them for the getters and setters of all these message classes? it would save me a

[protobuf] Problem when generating classes

2011-01-28 Thread Marco@worldcorp
Hi all i am starting to learn protobuffers so that i can use them alongside Netty I have created this simple .proto file package tutorial; option java_package = com.example.messages; option java_outer_classname = MessageProtos; message Message { required string content = 1; enum

Re: [protobuf] inheritance.. well sort of... and FieldDescriptors

2011-01-28 Thread TJ Rothwell
Is there a best practice for this use case? Here are some options. // Duplicate every field (sounds like you're doing this) message FooRequest { required string prompt = 1; required int64 timeout = 2; required Foo foo = 3; } message BarRequest { required string prompt = 1; required