internal/impl: fix legacy logic to know about the new XXX_OneofWrappers method
The XXX_OneofWrappers method is a simplified way to obtain the wrapper structs
compared the previous XXX_OneofFuncs method which returned far more information
that was strictly necessary.
Change-Id: I2670506a2a8f7e8e724846b8c4083e7995371007
Reviewed-on: https://go-review.googlesource.com/c/151679
Reviewed-by: Herbie Ong <herbie@google.com>
diff --git a/internal/testprotos/legacy/legacy.proto b/internal/testprotos/legacy/legacy.proto
index a348993..c715edd 100644
--- a/internal/testprotos/legacy/legacy.proto
+++ b/internal/testprotos/legacy/legacy.proto
@@ -50,6 +50,11 @@
// * Added "proto3" struct tag to all fields in proto3 messages
import "internal/testprotos/legacy/proto2.v1.2.0-20180814-aa810b61/test.proto";
import "internal/testprotos/legacy/proto3.v1.2.0-20180814-aa810b61/test.proto";
+// Changes from 20180814 to 20181126:
+// * Changed the XXX_OneofFuncs method to XXX_OneofWrappers
+// * Various syntactical changes to make the output more consistent
+import "internal/testprotos/legacy/proto2.v1.2.1-20181126-8d0c54c1/test.proto";
+import "internal/testprotos/legacy/proto3.v1.2.1-20181126-8d0c54c1/test.proto";
message Legacy {
google.golang.org.proto2_20160225.Message f1 = 1;
@@ -62,4 +67,6 @@
google.golang.org.proto3_20180430.Message f8 = 8;
google.golang.org.proto2_20180814.Message f9 = 9;
google.golang.org.proto3_20180814.Message f10 = 10;
+ google.golang.org.proto2_20181126.Message f11 = 11;
+ google.golang.org.proto3_20181126.Message f12 = 12;
}