This PR adds support for option retention: Options can specify whether they should be included in generated code (making them accessible at runtime), or be only available for plugins, while generating code.
With this change, options that specify retention = RETENTION_SOURCE are available in plugins written on top of @bufbuild/protoplugin. But they will not be included in the code generated by protoc-gen-es.
This PR adds support for option retention: Options can specify whether they should be included in generated code (making them accessible at runtime), or be only available for plugins, while generating code.
With this change, options that specify
retention = RETENTION_SOURCE
are available in plugins written on top of @bufbuild/protoplugin. But they will not be included in the code generated by protoc-gen-es.