No, you cannot refer to arbitrary classes. Doing so would be difficult to
support across languages, and significantly complicates features like
reflection.

On Tue, Jan 25, 2011 at 6:39 AM, Marco@worldcorp <mmistr...@gmail.com>wrote:

> Hello
>  i was wondering if protobuffer supports having an already existing
> class embedded in the message.
> What i mean: from example i have seen, use writes a  .proto buffer and
> protobuffer generates all related java classes.
>
> However, i have already existing classe which i'd like to embed in
> a  .proto file.
>
> Is that supported?
>
> I guess if protobuffer generates interfaces, i can get away with it
> and 'rewrite' my code .. but if it has the functionality to use
> existing classes, that would be appreciated
>
> any constraints on existing classes? i guess they all have to
> implement Serializable
>
> thanks and regarsd
>  marco
>
> --
> 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<protobuf%2bunsubscr...@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