[protobuf] Re: Serialization of primitive types

2011-06-16 Thread Miguel Muñoz
I agree with Marc. When things get complicated, it's a good idea to separate your tasks. It seems like your java class, which generates some of the data based on other data, is one issue, and your serialization is a separate issue. (I know it would be nice to just make that class serializable, but

Re: [protobuf] Re: Serialization of primitive types

2011-06-16 Thread Christopher Smith
I think Gabor wants to avoid the overhead of implementing all that additional bookkeeping as it'd slow down development. Something that would effectively generate a protobuf descriptor so that it'd stay consistent with changes in the Java code. I would suggest looking at the protostuff project:

[protobuf] Re: Issue 296 in protobuf: Deploy protobuf-java 2.4.1 JAR to Maven Repository

2011-06-16 Thread protobuf
Comment #9 on issue 296 by jhuxh...@googlemail.com: Deploy protobuf-java 2.4.1 JAR to Maven Repository http://code.google.com/p/protobuf/issues/detail?id=296 Any news on this issue? The currently available version in the central maven repository is 2.4.0a. I couldn't find any information

[protobuf] Maps in protobuf / 2

2011-06-16 Thread Marco Mistroni
HI all sorry i hijacked a previous thread .. Is it possibel to define Maps in protobuff? i have some serverside code which returns a MapString, Double, and i was wondering if there was a way in protobuf to define a Map could anyone help ? w/kindest regards marco -- You received this message

Re: [protobuf] Maps in protobuf / 2

2011-06-16 Thread Alok Singh
Haven't found a direct way to create a map, but, we use the following to serialize map like data structures. - message KeyValue{ required string key = 1; required string value = 2; } message Map { repeated KeyValue items = 1; } message Foo { required string id = 1;