mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
1bca6d9b7d
Add a function to construct a dynamic type registry from a protoregistry.Files. The NewTypes constructor takes a concrete Files to permit future improvements based on changes to Files. (For example, we might add a Files.FindExtensionByNumber method, which Types could take advantage of.) Fixes golang/protobuf#1216 Change-Id: I61edba0a94528829d40f69fad773ccb5912859e0 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/489316 Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Joseph Tsai <joetsai@digital-static.net> |
||
---|---|---|
.. | ||
descriptorpb | ||
dynamicpb | ||
known | ||
pluginpb |