Re: [protobuf] Re: What are well-known types?

2019-03-11 Thread 'Adam Cozzette' via Protocol Buffers
The well-known types all have different purposes. The wrapper types allow for optional primitive fields, Any is a replacement for proto2 extensions, and Struct is a way of representing JSON in a protobuf form. I'm not sure what the plan is for the types like Api and Method defined in api.proto,

Re: [protobuf] Guidance for proto linkage

2019-03-11 Thread Michael Powell
On Mon, Mar 11, 2019 at 12:24 PM Josh Humphries wrote: > > Since I've implemented this before, I have a fairly lengthy list. Wow, this is pretty comprehensive, much appreciated. I started in on the Protocol Buffer Parser code as a possible stop gap measure, but I'm not sure that this sort of

Re: [protobuf] Guidance for proto linkage

2019-03-11 Thread Josh Humphries
Since I've implemented this before, I have a fairly lengthy list. Most of these constraints are in the docs, at least in some way/shape/form. But some are enforced by protoc but never actually mentioned in the docs (such as disallowing the use of "map_entry" and "uninterpreted_options" options):