mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-04-17 02:42:35 +00:00
In very old messages predating the existence of the size cache or the proto3 unknown fields, it is possible that the generated struct lacks both XXX_ fields and ones tagged with "protobuf". This can happen with a message that only contains oneofs. As such, check for the "protobuf_oneof" tag as well. Change-Id: I1981cd7dde68aece1a013356b6bc91cc5529f951 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/210747 Reviewed-by: Damien Neil <dneil@google.com>