Hi all. I'm working on exposing an experimental graph database library for RPC, and am going with 0MQ/GPB for transport for lack of obviously better ideas and interest in doing an extended analysis. One of the fundamental operations in the database takes a value of any Java type - including POJOs and Java Beans - stores it according to its internal magic, and hands back a Handle object that can be serialized to/from a UUID and used to retrieve the original value. For sanity's sake I'm restricting the exposed API to types handled by GPB, which gives me the appended nastiness in my .proto file and a bunch of stupid boilerplate code on every end to do what GPB tries to do for me already. Is this by having to work around a very liberal API, or am I missing something obvious and abusing the facilities?
Thanks, Chris enum MsgDataType{ double=0; float=1; int32=2; int64=3; uint32=4; uint64=5; sint32=6; sint64=7; fixed32=8; fixed64=9; sfixed32=10; sfixed64=11; bool=12; string=13; bytes=14; repeated=15; } message MsgData{ required MsgDataType type=1; optional double=0; optional float=1; optional int32=2; optional int64=3; optional uint32=4; optional uint64=5; optional sint32=6; optional sint64=7; optional fixed32=8; optional fixed64=9; optional sfixed32=10; optional sfixed64=11; optional bool=12; optional string=13; optional bytes=14; repeated repeated=15; } message MsgRequest { required MsgFunction function = 1; repeated MsgData data = 2; } message MsgReply { repeated MsgData result =1; optional string error = 2; } -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.