Hi
ok i think i found the problem.
I am compiling using protobuffer 2.2.0 , and in my project i am using
libraries from protobuf 2.3.0
rgds
marco
On Jan 28, 11:45 pm, Marco@worldcorp mmistr...@gmail.com wrote:
Hi all
i am starting to learn protobuffers so that i can use them alongside
HI all
i have wrote a simple messages.proto, compiled it (On Ubuntu Lucid
Lynx) with protobuf 2.2.0.
here's the .proto file
package tutorial;
option java_package = com.example.messages;
option java_outer_classname = MessageProtos;
enum MessageType {
TEST = 0;
DEBUG = 1;
DO_TASK =
Hello,
PLs ignore my message
It was a Netty problem as i was using multiple decoders / encoders /
frames and that was messing up the result
sorry for bothering
regards
marco
On Jan 29, 11:09 am, Marco@worldcorp mmistr...@gmail.com wrote:
HI all
i have wrote a simple messages.proto,
i have dozens of message classes that all have exactly the same first
few fields (the first 4 to be precise). And prototypes for all my
message classes are loaded by introspection. So all the prototypes are
simply of class Message and i need to use FieldDescriptors to get/set
fields on messages.
I thought about these options and settled on multiple classes that all
share a few fields. So indeed duplicate every shared field.
On Jan 28, 2:28 pm, TJ Rothwell tj.rothw...@gmail.com wrote:
Is there a best practice for this use case?
Here are some options.
// Duplicate every field (sounds