Protobuf extensions fix: required -> optional.
generators::legacy0 implementation.