Find file History
dsnet 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 #708
8
Latest commit 8d0c54c Nov 28, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
proto3_proto protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
test_proto protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
all_test.go proto: fix handling of required fields after multiple violations (#679) Aug 14, 2018
any_test.go Upstream internal Google protobuf changes Nov 8, 2017
clone.go Upstream internal Google protobuf changes Nov 8, 2017
clone_test.go proto: store extension values according to protobuf data model (#746) Nov 15, 2018
decode.go proto: remove commented-out code (#704) Sep 14, 2018
decode_test.go Remove unused code (#313) Nov 20, 2017
deprecated.go proto: deprecate {Unm,M}arshalMessageSet{JSON} (#741) Nov 8, 2018
discard.go proto: add logic to handle legacy message (#496) Jan 25, 2018
discard_test.go proto: add logic to handle legacy message (#496) Jan 25, 2018
encode.go proto: make invalid UTF-8 errors non-fatal (#660) Aug 1, 2018
encode_test.go Fixed broken tests on pre-go1.8 #356 (#359) May 26, 2017
equal.go proto: store extension values according to protobuf data model (#746) Nov 15, 2018
equal_test.go Upstream internal Google protobuf changes Nov 8, 2017
extensions.go proto: store extension values according to protobuf data model (#746) Nov 15, 2018
extensions_test.go proto: fix govet failures in Go 1.10 (#505) Feb 1, 2018
lib.go protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
map_test.go proto: ignore unknown fields in map entries (#561) Mar 14, 2018
message_set.go proto: deprecate {Unm,M}arshalMessageSet{JSON} (#741) Nov 8, 2018
message_set_test.go proto: deprecate {Unm,M}arshalMessageSet{JSON} (#741) Nov 8, 2018
pointer_reflect.go proto: store extension values according to protobuf data model (#746) Nov 15, 2018
pointer_unsafe.go proto: store extension values according to protobuf data model (#746) Nov 15, 2018
properties.go protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
proto3_test.go proto: remove Proto3UnknownFields flag (#497) Jan 27, 2018
size2_test.go proto: replace exprs with matching consts from math pkg (#705) Sep 14, 2018
size_test.go Cleanup comments and whitespace (#471) Dec 12, 2017
table_marshal.go protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
table_merge.go Cleanup comments and whitespace (#471) Dec 12, 2017
table_unmarshal.go protoc-gen-go: generate XXX_OneofWrappers instead of XXX_OneofFuncs (#… Nov 27, 2018
text.go jsonpb: handle map key and value properties properly (#645) Jul 6, 2018
text_parser.go jsonpb: handle map key and value properties properly (#645) Jul 6, 2018
text_parser_test.go proto: robustify tests that compare error messages (#500) Jan 29, 2018
text_test.go Upstream internal Google protobuf changes Nov 8, 2017