Is there a way to attach one protocol buffer message to another as an 
arbitrary extension, i.e. without declaring it as an extension of the 
containing one? I realize that I could use a 'bytes' field in the container 
message instead of relying on extensions, but I'd prefer not to do this as 
my code could end up modifying the contained message many times before it 
is through, and this would involve numerous decodes and re-encodes of the 
bytes field.

There will only ever be one contained message object, so perhaps I could 
pre-allocate an extension id that gets overloaded for this purpose. Also my 
code works entirely in terms of dynamic messages and reflection (if that 
makes a difference).

Any pointers would be much appreciated,

Warren

-- 
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/-/Qo-i2C_Z5xUJ.
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