智慧水务管理系统 - 精河县供水工程综合管理平台

plugin.proto 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. syntax = "proto2";
  2. package google.protobuf.compiler;
  3. option java_package = "com.google.protobuf.compiler";
  4. option java_outer_classname = "PluginProtos";
  5. import "google/protobuf/descriptor.proto";
  6. option csharp_namespace = "Google.Protobuf.Compiler";
  7. option go_package = "google.golang.org/protobuf/types/pluginpb";
  8. message Version {
  9. optional int32 major = 1;
  10. optional int32 minor = 2;
  11. optional int32 patch = 3;
  12. optional string suffix = 4;
  13. }
  14. message CodeGeneratorRequest {
  15. repeated string file_to_generate = 1;
  16. optional string parameter = 2;
  17. repeated FileDescriptorProto proto_file = 15;
  18. repeated FileDescriptorProto source_file_descriptors = 17;
  19. optional Version compiler_version = 3;
  20. }
  21. message CodeGeneratorResponse {
  22. optional string error = 1;
  23. optional uint64 supported_features = 2;
  24. enum Feature {
  25. FEATURE_NONE = 0;
  26. FEATURE_PROTO3_OPTIONAL = 1;
  27. FEATURE_SUPPORTS_EDITIONS = 2;
  28. }
  29. optional int32 minimum_edition = 3;
  30. optional int32 maximum_edition = 4;
  31. message File {
  32. optional string name = 1;
  33. optional string insertion_point = 2;
  34. optional string content = 15;
  35. optional GeneratedCodeInfo generated_code_info = 16;
  36. }
  37. repeated File file = 15;
  38. }