We'll need some of this functionality for tests. PiperOrigin-RevId: 853652149 Change-Id: Ib924d886b73784a0f370285e0b82b2ed833e3e77