protobuf-go/types/dynamicpb
Damien Neil 1bca6d9b7d types/dynamicpb: add NewTypes
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>
2023-04-28 07:55:56 +00:00
..
dynamic_test.go all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
dynamic.go all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
types_test.go types/dynamicpb: add NewTypes 2023-04-28 07:55:56 +00:00
types.go types/dynamicpb: add NewTypes 2023-04-28 07:55:56 +00:00