Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/proto: add support for instantiating proto map fields (#491)
With this change, it becomes possible to instantiate `map<k,v>` type fields in Protobuf messages from Starlark. Maps can be constructed from any Starlark type that implements starlark.IterableMapping. Protobuf messages can have most types as keys/values, so the type conformity is checked individually for each key/value pair (as the Starlark side of things is dynamically typed). This has been tested against fairly complex proto messages containing maps. Map operations apart from construction are not supported in this CL.
- Loading branch information