Use public methods to fetch oneofs in generated code.
When building into frameworks, the generated code doesn't always have direct access to the proto internals. Instead of opening up the access, just use the public method to fetch the correct oneof. Fixes https://github.com/google/protobuf/issues/1789
Showing
Please
register
or
sign in
to comment