Introduce submessage view accessors for arbitrary depths
Before this CL, we weren't generating view accessors for messages with depth > 1. We weren't getting to message::GetterForViewOrMut because we were detecting FieldDescriptor::TYPE_MESSAGE and bailing out. That check has now been expunged, and we now properly emit the right view, even for messages embedded within messages. Added tests for: - another level of submsg access depth - accessing a message declared outside of the current message (that is, not a direct nested message within the same message) - accessing the accessor of the accessor of the accessor of a recursively defined message PiperOrigin-RevId: 588460599
H
Hong Shin committed
a74c3bbaa4964851890041e616dd85f4427a2c32
Parent: 17b8dd6
Committed by Copybara-Service <copybara-worker@google.com>
on 12/6/2023, 5:56:51 PM