Commit 8d0c54c
authored
protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#760)
The marshaler, unmarshaler, and sizer functions are unused ever since
the underlying implementation was switched to be table-driven.
Change the function to only return the wrapper structs.
This change:
* enables generated protos to drop dependencies on certain proto types
* reduces the size of generated protos
* simplifies the implementation of oneofs in protoc-gen-go
Updates #7081 parent 882cf97 commit 8d0c54c
File tree
42 files changed
+149
-1707
lines changed- conformance/internal/conformance_proto
- jsonpb/jsonpb_test_proto
- protoc-gen-go
- descriptor
- generator
- testdata
- deprecated
- extension_base
- extension_extra
- extension_user
- grpc
- import_public
- importing
- sub
- imports
- fmt
- test_a_1
- test_a_2
- test_b_1
- multi
- my_test
- proto3
- proto
- proto3_proto
- test_proto
- ptypes
- any
- duration
- empty
- struct
- timestamp
- wrappers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+149
-1707
lines changedLines changed: 10 additions & 271 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments