On Wed, Mar 16, 2016 at 7:49 PM, Tim Kientzle <[email protected]> wrote:
> > > On Mar 14, 2016, at 7:07 PM, Feng Xiao <[email protected]> wrote: > > > > In google, we are using a front-end proxy to convert JSON to/from > protobuf, and everything else behind it is using protobuf only. The current > Any design works with this approach very well. > > That approach works well my proposed Any design as well. Your proxies can > still walk the object tree and validate and/or convert Any fields as > necessary for your particular systems. > > But that approach is not appropriate for everyone. Your Any design cannot > be used by people that require different policies. > Can you elaborate a bit more? You mentioned the middle system does not know google.profile and has no way to get it. Why is that? I think whether the middle system knows the type info is the only thing that makes a difference. In the google scenario, the middle system always knows all types it will be converting from JSON to protobuf and rejects inputs it doesn't know about. > Tim > > -- 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 https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
