[protobuf] Storing a Protocol Buffer inside another Protocol Buffer

2011-08-09 Thread Dave
Hi, We have some legacy code, that provides an RPC library for several services. All RPC messages have a handler name, which is used to determine which callback, a message should be sent to when it is received (when a service starts up it registers 1 or more handlers). I have been working

Re: [protobuf] Storing a Protocol Buffer inside another Protocol Buffer

2011-08-09 Thread Daniel Wright
Both methods that you mention will work and are fairly common. The first is generally preferred because you're less likely to have type errors, and debugging tools can show you more of RPCBuffer (e.g. the rpc library could print the DebugString of the RPCBuffer in debugging mode, showing exactly