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

descriptor.proto 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. syntax = "proto2";
  2. package google.protobuf;
  3. option go_package = "google.golang.org/protobuf/types/descriptorpb";
  4. option java_package = "com.google.protobuf";
  5. option java_outer_classname = "DescriptorProtos";
  6. option csharp_namespace = "Google.Protobuf.Reflection";
  7. option objc_class_prefix = "GPB";
  8. option cc_enable_arenas = true;
  9. option optimize_for = "SPEED";
  10. message FileDescriptorSet {
  11. repeated FileDescriptorProto file = 1;
  12. extensions 536000000;
  13. }
  14. enum Edition {
  15. EDITION_UNKNOWN = 0;
  16. EDITION_LEGACY = 900;
  17. EDITION_PROTO2 = 998;
  18. EDITION_PROTO3 = 999;
  19. EDITION_2023 = 1000;
  20. EDITION_2024 = 1001;
  21. EDITION_1_TEST_ONLY = 1;
  22. EDITION_2_TEST_ONLY = 2;
  23. EDITION_99997_TEST_ONLY = 99997;
  24. EDITION_99998_TEST_ONLY = 99998;
  25. EDITION_99999_TEST_ONLY = 99999;
  26. EDITION_MAX = 2147483647;
  27. }
  28. message FileDescriptorProto {
  29. optional string name = 1;
  30. optional string package = 2;
  31. repeated string dependency = 3;
  32. repeated int32 public_dependency = 10;
  33. repeated int32 weak_dependency = 11;
  34. repeated string option_dependency = 15;
  35. repeated DescriptorProto message_type = 4;
  36. repeated EnumDescriptorProto enum_type = 5;
  37. repeated ServiceDescriptorProto service = 6;
  38. repeated FieldDescriptorProto extension = 7;
  39. optional FileOptions options = 8;
  40. optional SourceCodeInfo source_code_info = 9;
  41. optional string syntax = 12;
  42. optional Edition edition = 14;
  43. }
  44. message DescriptorProto {
  45. optional string name = 1;
  46. repeated FieldDescriptorProto field = 2;
  47. repeated FieldDescriptorProto extension = 6;
  48. repeated DescriptorProto nested_type = 3;
  49. repeated EnumDescriptorProto enum_type = 4;
  50. repeated ExtensionRange extension_range = 5;
  51. repeated OneofDescriptorProto oneof_decl = 8;
  52. optional MessageOptions options = 7;
  53. repeated ReservedRange reserved_range = 9;
  54. repeated string reserved_name = 10;
  55. optional SymbolVisibility visibility = 11;
  56. message ExtensionRange {
  57. optional int32 start = 1;
  58. optional int32 end = 2;
  59. optional ExtensionRangeOptions options = 3;
  60. }
  61. message ReservedRange {
  62. optional int32 start = 1;
  63. optional int32 end = 2;
  64. }
  65. }
  66. message ExtensionRangeOptions {
  67. repeated UninterpretedOption uninterpreted_option = 999;
  68. repeated Declaration declaration = 2 [retention="RETENTION_SOURCE"];
  69. optional FeatureSet features = 50;
  70. optional VerificationState verification = 3 [default=UNVERIFIED, retention="RETENTION_SOURCE"];
  71. message Declaration {
  72. optional int32 number = 1;
  73. optional string full_name = 2;
  74. optional string type = 3;
  75. optional bool reserved = 5;
  76. optional bool repeated = 6;
  77. reserved 4;
  78. }
  79. enum VerificationState {
  80. DECLARATION = 0;
  81. UNVERIFIED = 1;
  82. }
  83. extensions 1000 to max;
  84. }
  85. message FieldDescriptorProto {
  86. optional string name = 1;
  87. optional int32 number = 3;
  88. optional Label label = 4;
  89. optional Type type = 5;
  90. optional string type_name = 6;
  91. optional string extendee = 2;
  92. optional string default_value = 7;
  93. optional int32 oneof_index = 9;
  94. optional string json_name = 10;
  95. optional FieldOptions options = 8;
  96. optional bool proto3_optional = 17;
  97. enum Type {
  98. TYPE_DOUBLE = 1;
  99. TYPE_FLOAT = 2;
  100. TYPE_INT64 = 3;
  101. TYPE_UINT64 = 4;
  102. TYPE_INT32 = 5;
  103. TYPE_FIXED64 = 6;
  104. TYPE_FIXED32 = 7;
  105. TYPE_BOOL = 8;
  106. TYPE_STRING = 9;
  107. TYPE_GROUP = 10;
  108. TYPE_MESSAGE = 11;
  109. TYPE_BYTES = 12;
  110. TYPE_UINT32 = 13;
  111. TYPE_ENUM = 14;
  112. TYPE_SFIXED32 = 15;
  113. TYPE_SFIXED64 = 16;
  114. TYPE_SINT32 = 17;
  115. TYPE_SINT64 = 18;
  116. }
  117. enum Label {
  118. LABEL_OPTIONAL = 1;
  119. LABEL_REPEATED = 3;
  120. LABEL_REQUIRED = 2;
  121. }
  122. }
  123. message OneofDescriptorProto {
  124. optional string name = 1;
  125. optional OneofOptions options = 2;
  126. }
  127. message EnumDescriptorProto {
  128. optional string name = 1;
  129. repeated EnumValueDescriptorProto value = 2;
  130. optional EnumOptions options = 3;
  131. repeated EnumReservedRange reserved_range = 4;
  132. repeated string reserved_name = 5;
  133. optional SymbolVisibility visibility = 6;
  134. message EnumReservedRange {
  135. optional int32 start = 1;
  136. optional int32 end = 2;
  137. }
  138. }
  139. message EnumValueDescriptorProto {
  140. optional string name = 1;
  141. optional int32 number = 2;
  142. optional EnumValueOptions options = 3;
  143. }
  144. message ServiceDescriptorProto {
  145. optional string name = 1;
  146. repeated MethodDescriptorProto method = 2;
  147. optional ServiceOptions options = 3;
  148. }
  149. message MethodDescriptorProto {
  150. optional string name = 1;
  151. optional string input_type = 2;
  152. optional string output_type = 3;
  153. optional MethodOptions options = 4;
  154. optional bool client_streaming = 5;
  155. optional bool server_streaming = 6;
  156. }
  157. message FileOptions {
  158. optional string java_package = 1;
  159. optional string java_outer_classname = 8;
  160. optional bool java_multiple_files = 10;
  161. optional bool java_generate_equals_and_hash = 20 [deprecated=true];
  162. optional bool java_string_check_utf8 = 27;
  163. optional OptimizeMode optimize_for = 9 [default=SPEED];
  164. optional string go_package = 11;
  165. optional bool cc_generic_services = 16;
  166. optional bool java_generic_services = 17;
  167. optional bool py_generic_services = 18;
  168. optional bool deprecated = 23;
  169. optional bool cc_enable_arenas = 31 [default=true];
  170. optional string objc_class_prefix = 36;
  171. optional string csharp_namespace = 37;
  172. optional string swift_prefix = 39;
  173. optional string php_class_prefix = 40;
  174. optional string php_namespace = 41;
  175. optional string php_metadata_namespace = 44;
  176. optional string ruby_package = 45;
  177. optional FeatureSet features = 50;
  178. repeated UninterpretedOption uninterpreted_option = 999;
  179. enum OptimizeMode {
  180. SPEED = 1;
  181. CODE_SIZE = 2;
  182. LITE_RUNTIME = 3;
  183. }
  184. extensions 1000 to max;
  185. reserved 42, 38;
  186. reserved "php_generic_services";
  187. }
  188. message MessageOptions {
  189. optional bool message_set_wire_format = 1;
  190. optional bool no_standard_descriptor_accessor = 2;
  191. optional bool deprecated = 3;
  192. optional bool map_entry = 7;
  193. optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated=true];
  194. optional FeatureSet features = 12;
  195. repeated UninterpretedOption uninterpreted_option = 999;
  196. extensions 1000 to max;
  197. reserved 4, 5, 6, 8, 9;
  198. }
  199. message FieldOptions {
  200. optional CType ctype = 1 [default=STRING];
  201. optional bool packed = 2;
  202. optional JSType jstype = 6 [default=JS_NORMAL];
  203. optional bool lazy = 5;
  204. optional bool unverified_lazy = 15;
  205. optional bool deprecated = 3;
  206. optional bool weak = 10 [deprecated=true];
  207. optional bool debug_redact = 16;
  208. optional OptionRetention retention = 17;
  209. repeated OptionTargetType targets = 19;
  210. repeated EditionDefault edition_defaults = 20;
  211. optional FeatureSet features = 21;
  212. optional FeatureSupport feature_support = 22;
  213. repeated UninterpretedOption uninterpreted_option = 999;
  214. enum CType {
  215. STRING = 0;
  216. CORD = 1;
  217. STRING_PIECE = 2;
  218. }
  219. enum JSType {
  220. JS_NORMAL = 0;
  221. JS_STRING = 1;
  222. JS_NUMBER = 2;
  223. }
  224. enum OptionRetention {
  225. RETENTION_UNKNOWN = 0;
  226. RETENTION_RUNTIME = 1;
  227. RETENTION_SOURCE = 2;
  228. }
  229. enum OptionTargetType {
  230. TARGET_TYPE_UNKNOWN = 0;
  231. TARGET_TYPE_FILE = 1;
  232. TARGET_TYPE_EXTENSION_RANGE = 2;
  233. TARGET_TYPE_MESSAGE = 3;
  234. TARGET_TYPE_FIELD = 4;
  235. TARGET_TYPE_ONEOF = 5;
  236. TARGET_TYPE_ENUM = 6;
  237. TARGET_TYPE_ENUM_ENTRY = 7;
  238. TARGET_TYPE_SERVICE = 8;
  239. TARGET_TYPE_METHOD = 9;
  240. }
  241. message EditionDefault {
  242. optional Edition edition = 3;
  243. optional string value = 2;
  244. }
  245. message FeatureSupport {
  246. optional Edition edition_introduced = 1;
  247. optional Edition edition_deprecated = 2;
  248. optional string deprecation_warning = 3;
  249. optional Edition edition_removed = 4;
  250. }
  251. extensions 1000 to max;
  252. reserved 4, 18;
  253. }
  254. message OneofOptions {
  255. optional FeatureSet features = 1;
  256. repeated UninterpretedOption uninterpreted_option = 999;
  257. extensions 1000 to max;
  258. }
  259. message EnumOptions {
  260. optional bool allow_alias = 2;
  261. optional bool deprecated = 3;
  262. optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated=true];
  263. optional FeatureSet features = 7;
  264. repeated UninterpretedOption uninterpreted_option = 999;
  265. extensions 1000 to max;
  266. reserved 5;
  267. }
  268. message EnumValueOptions {
  269. optional bool deprecated = 1;
  270. optional FeatureSet features = 2;
  271. optional bool debug_redact = 3;
  272. optional FieldOptions.FeatureSupport feature_support = 4;
  273. repeated UninterpretedOption uninterpreted_option = 999;
  274. extensions 1000 to max;
  275. }
  276. message ServiceOptions {
  277. optional FeatureSet features = 34;
  278. optional bool deprecated = 33;
  279. repeated UninterpretedOption uninterpreted_option = 999;
  280. extensions 1000 to max;
  281. }
  282. message MethodOptions {
  283. optional bool deprecated = 33;
  284. optional IdempotencyLevel idempotency_level = 34 [default=IDEMPOTENCY_UNKNOWN];
  285. optional FeatureSet features = 35;
  286. repeated UninterpretedOption uninterpreted_option = 999;
  287. enum IdempotencyLevel {
  288. IDEMPOTENCY_UNKNOWN = 0;
  289. NO_SIDE_EFFECTS = 1;
  290. IDEMPOTENT = 2;
  291. }
  292. extensions 1000 to max;
  293. }
  294. message UninterpretedOption {
  295. repeated NamePart name = 2;
  296. optional string identifier_value = 3;
  297. optional uint64 positive_int_value = 4;
  298. optional int64 negative_int_value = 5;
  299. optional double double_value = 6;
  300. optional bytes string_value = 7;
  301. optional string aggregate_value = 8;
  302. message NamePart {
  303. required string name_part = 1;
  304. required bool is_extension = 2;
  305. }
  306. }
  307. message FeatureSet {
  308. optional FieldPresence field_presence = 1 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_2023", edition_defaults.value="EXPLICIT"];
  309. optional EnumType enum_type = 2 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="OPEN"];
  310. optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="PACKED"];
  311. optional Utf8Validation utf8_validation = 4 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="VERIFY"];
  312. optional MessageEncoding message_encoding = 5 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_LEGACY", edition_defaults.value="LENGTH_PREFIXED"];
  313. optional JsonFormat json_format = 6 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="ALLOW"];
  314. optional EnforceNamingStyle enforce_naming_style = 7 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_METHOD", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="STYLE2024"];
  315. optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="EXPORT_TOP_LEVEL"];
  316. enum FieldPresence {
  317. FIELD_PRESENCE_UNKNOWN = 0;
  318. EXPLICIT = 1;
  319. IMPLICIT = 2;
  320. LEGACY_REQUIRED = 3;
  321. }
  322. enum EnumType {
  323. ENUM_TYPE_UNKNOWN = 0;
  324. OPEN = 1;
  325. CLOSED = 2;
  326. }
  327. enum RepeatedFieldEncoding {
  328. REPEATED_FIELD_ENCODING_UNKNOWN = 0;
  329. PACKED = 1;
  330. EXPANDED = 2;
  331. }
  332. enum Utf8Validation {
  333. UTF8_VALIDATION_UNKNOWN = 0;
  334. VERIFY = 2;
  335. NONE = 3;
  336. }
  337. enum MessageEncoding {
  338. MESSAGE_ENCODING_UNKNOWN = 0;
  339. LENGTH_PREFIXED = 1;
  340. DELIMITED = 2;
  341. }
  342. enum JsonFormat {
  343. JSON_FORMAT_UNKNOWN = 0;
  344. ALLOW = 1;
  345. LEGACY_BEST_EFFORT = 2;
  346. }
  347. enum EnforceNamingStyle {
  348. ENFORCE_NAMING_STYLE_UNKNOWN = 0;
  349. STYLE2024 = 1;
  350. STYLE_LEGACY = 2;
  351. }
  352. message VisibilityFeature {
  353. enum DefaultSymbolVisibility {
  354. DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
  355. EXPORT_ALL = 1;
  356. EXPORT_TOP_LEVEL = 2;
  357. LOCAL_ALL = 3;
  358. STRICT = 4;
  359. }
  360. reserved 1 to max;
  361. }
  362. extensions 1000 to 9994, 9995 to 9999, 10000;
  363. reserved 999;
  364. }
  365. message FeatureSetDefaults {
  366. repeated FeatureSetEditionDefault defaults = 1;
  367. optional Edition minimum_edition = 4;
  368. optional Edition maximum_edition = 5;
  369. message FeatureSetEditionDefault {
  370. optional Edition edition = 3;
  371. optional FeatureSet overridable_features = 4;
  372. optional FeatureSet fixed_features = 5;
  373. reserved 1, 2, "features";
  374. }
  375. }
  376. message SourceCodeInfo {
  377. repeated Location location = 1;
  378. message Location {
  379. repeated int32 path = 1 [packed=true];
  380. repeated int32 span = 2 [packed=true];
  381. optional string leading_comments = 3;
  382. optional string trailing_comments = 4;
  383. repeated string leading_detached_comments = 6;
  384. }
  385. extensions 536000000;
  386. }
  387. message GeneratedCodeInfo {
  388. repeated Annotation annotation = 1;
  389. message Annotation {
  390. repeated int32 path = 1 [packed=true];
  391. optional string source_file = 2;
  392. optional int32 begin = 3;
  393. optional int32 end = 4;
  394. optional Semantic semantic = 5;
  395. enum Semantic {
  396. NONE = 0;
  397. SET = 1;
  398. ALIAS = 2;
  399. }
  400. }
  401. }
  402. enum SymbolVisibility {
  403. VISIBILITY_UNSET = 0;
  404. VISIBILITY_LOCAL = 1;
  405. VISIBILITY_EXPORT = 2;
  406. }