Message in google.protobuf.compiler
CodeGeneratorResponse
google.protobuf.compiler.CodeGeneratorResponse
The plugin writes an encoded CodeGeneratorResponse to stdout.
Fields
| Field | Type | Number | Description |
|---|---|---|---|
| error | optionalstring | 1 | Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code. |
| supported_features | optionaluint64 | 2 | A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum. |
| minimum_edition | optionalint32 | 3 | The minimum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, not the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. |
| maximum_edition | optionalint32 | 4 | The maximum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, not the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. |
| file | repeatedFile | 15 |
Nested messages
- FileRepresents a single generated file.
Nested enums
- FeatureSync with code_generator.h.
Defined in google/protobuf/compiler/plugin.proto