Hi, i am looking for way how to handle other types by proto file. In my 
case: 

   - Map<String, Serializable>, 
   - Map<String, Object>
   - Serializable, 
   - Date.
   - etc.
   

Right now i serialize all these object to byteArray and on other side 
deserialize. 

I see some topic about maps here: 
https://groups.google.com/forum/#!topic/protobuf/W0OybexDv5k
That measn i have to build my own message for repeated map object. But also 
is there problem with Serializable. 

I use it with RPC features like this:

rpc getFull(ObjectMap) returns (boolMessage);

where:

message objectMap {
    required string key = 1;
    required objectSerializable value = 2;
}

message objectSerializable {
    required bytes bytes = 1;
}

plus object map could be implemented in other object and use with  RPC like 
this:


message Foo {
   required string text = 1;
   repeated objectMap parameters = 2;
}

What is best way for do it (is this correct?) and how can i build the 
response message with repeated fields (Java).

Thank you,

rg
Roman
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to