It sounds like you may be looking for
https://developers.google.com/protocol-buffers/docs/techniques#union

Or are you looking for more information about the extensions API?
https://developers.google.com/protocol-buffers/docs/reference/cpp-generated#extension


On Mon, Sep 3, 2012 at 7:33 AM, sarvesh <sarveshas...@gmail.com> wrote:

> Hi
>
> I have a client and server application written in .NET(server part), C++
> (client part) which uses protobuf for serializationa and de-serialization.
>
> The server sends notification data to client whenever required , and this
> notification data type could be any and will not be known to client ahead
> of time.
>
> When i was looking into how to solve this scenario, found out dynamic
> messages topic whiuch suggests to use .NET and C++ protobuf extensions,
> however there are not enough examples and clarity on how to use them on
> both the technologies.
>
> Could someone please suggest some links or send me some examples for using
> extensions in protobuf.
>
> For Example: The notification data could be  a single object or list of
> <T> objects in .NET. How to pass those objects in generic way and identify
> them in C++ based on the type and de-serialize the data according to its
> type.
>
> Thanks and Regards
>
> R.Sarvesh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/protobuf/-/ybzTmpQbBWQJ.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to