mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Park <mp...@apache.org>
Subject Re: Map support in proto2
Date Sun, 18 Dec 2016 21:31:48 GMT
According to this thread
https://groups.google.com/forum/m/#!topic/protobuf/p4WxcplrlA4,

It would involve us upgrading proto to 3.0.0 (which does not mean proto3).
It seems like we would also get `oneof` which would also be very useful for
us.

On Sun, Dec 18, 2016 at 11:00 AM Jie Yu <yujie.jay@gmail.com> wrote:

> Looks like Map is already supported in proto2:
>
>
> https://developers.google.com/protocol-buffers/docs/reference/cpp-generated#map-fields
>
>
>
> It'll greatly simply our json parsing in a few cases (e.g., converting from
>
> OCI image configuration to a protobuf definition for key->value json
>
> object):
>
>
>
> "annotations" : {
>
>   "key1" : "value1",
>
>   "key2" : "value2"
>
> }
>
>
>
> Previously, it's not possible to have a protobuf scheme for such a json.
>
>
>
> Thoughts?
>
>
>
> - Jie
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message