codegen_request.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Vendored subset of google/protobuf/compiler/codegen_request.proto.
  2. //
  3. // protoc emits a full CodeGeneratorRequest on the plugin's stdin. We only
  4. // need the fields chattolib's protoc plugin reads, so this is a trimmed copy.
  5. // protoc tolerates the subset: it still serializes the complete request, and
  6. // we parse only what we need. Field numbers match the canonical proto so the
  7. // wire format lines up.
  8. syntax = "proto2";
  9. package google.protobuf.compiler;
  10. message FileDescriptorProto {
  11. optional string name = 1;
  12. optional string package = 2;
  13. repeated DescriptorProto message_type = 3;
  14. repeated ServiceDescriptorProto service = 6;
  15. }
  16. message DescriptorProto {
  17. optional string name = 1;
  18. }
  19. message MethodDescriptorProto {
  20. optional string name = 1;
  21. optional string input_type = 2;
  22. optional string output_type = 3;
  23. }
  24. message ServiceDescriptorProto {
  25. optional string name = 1;
  26. repeated MethodDescriptorProto method = 2;
  27. }
  28. message CodeGeneratorRequest {
  29. repeated string file_to_generate = 1;
  30. optional string parameter = 2;
  31. optional string language = 3;
  32. repeated FileDescriptorProto proto_file = 15;
  33. }