This commit introduces the infrastructure classes, and a couple of illustrative usages. PiperOrigin-RevId: 328301593