codegen_response.proto 746 B

123456789101112131415161718192021222324
  1. // Vendored CodeGeneratorResponse (google/protobuf/compiler/codegen_response.proto).
  2. // Field numbers match the canonical protoc plugin.proto so `protoc` accepts the
  3. // response. `supported_features` (bit 0 = FEATURE_PROTO3_OPTIONAL) is what
  4. // tells a recent protoc that this plugin can handle proto3 `optional` fields.
  5. syntax = "proto2";
  6. package google.protobuf.compiler;
  7. message CodeGeneratorResponse {
  8. optional string error = 1;
  9. optional uint64 supported_features = 2;
  10. enum Feature {
  11. FEATURE_NONE = 0;
  12. FEATURE_PROTO3_OPTIONAL = 1;
  13. FEATURE_SUPPORTS_EDITIONS = 2;
  14. }
  15. message File {
  16. optional string name = 1;
  17. optional string insertion_point = 2;
  18. optional string content = 15;
  19. }
  20. repeated File file = 15;
  21. }