暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

descriptor.json 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. {
  2. "nested": {
  3. "google": {
  4. "nested": {
  5. "protobuf": {
  6. "nested": {
  7. "FileDescriptorSet": {
  8. "fields": {
  9. "file": {
  10. "rule": "repeated",
  11. "type": "FileDescriptorProto",
  12. "id": 1
  13. }
  14. }
  15. },
  16. "FileDescriptorProto": {
  17. "fields": {
  18. "name": {
  19. "type": "string",
  20. "id": 1
  21. },
  22. "package": {
  23. "type": "string",
  24. "id": 2
  25. },
  26. "dependency": {
  27. "rule": "repeated",
  28. "type": "string",
  29. "id": 3
  30. },
  31. "publicDependency": {
  32. "rule": "repeated",
  33. "type": "int32",
  34. "id": 10,
  35. "options": {
  36. "packed": false
  37. }
  38. },
  39. "weakDependency": {
  40. "rule": "repeated",
  41. "type": "int32",
  42. "id": 11,
  43. "options": {
  44. "packed": false
  45. }
  46. },
  47. "messageType": {
  48. "rule": "repeated",
  49. "type": "DescriptorProto",
  50. "id": 4
  51. },
  52. "enumType": {
  53. "rule": "repeated",
  54. "type": "EnumDescriptorProto",
  55. "id": 5
  56. },
  57. "service": {
  58. "rule": "repeated",
  59. "type": "ServiceDescriptorProto",
  60. "id": 6
  61. },
  62. "extension": {
  63. "rule": "repeated",
  64. "type": "FieldDescriptorProto",
  65. "id": 7
  66. },
  67. "options": {
  68. "type": "FileOptions",
  69. "id": 8
  70. },
  71. "sourceCodeInfo": {
  72. "type": "SourceCodeInfo",
  73. "id": 9
  74. },
  75. "syntax": {
  76. "type": "string",
  77. "id": 12
  78. }
  79. }
  80. },
  81. "DescriptorProto": {
  82. "fields": {
  83. "name": {
  84. "type": "string",
  85. "id": 1
  86. },
  87. "field": {
  88. "rule": "repeated",
  89. "type": "FieldDescriptorProto",
  90. "id": 2
  91. },
  92. "extension": {
  93. "rule": "repeated",
  94. "type": "FieldDescriptorProto",
  95. "id": 6
  96. },
  97. "nestedType": {
  98. "rule": "repeated",
  99. "type": "DescriptorProto",
  100. "id": 3
  101. },
  102. "enumType": {
  103. "rule": "repeated",
  104. "type": "EnumDescriptorProto",
  105. "id": 4
  106. },
  107. "extensionRange": {
  108. "rule": "repeated",
  109. "type": "ExtensionRange",
  110. "id": 5
  111. },
  112. "oneofDecl": {
  113. "rule": "repeated",
  114. "type": "OneofDescriptorProto",
  115. "id": 8
  116. },
  117. "options": {
  118. "type": "MessageOptions",
  119. "id": 7
  120. },
  121. "reservedRange": {
  122. "rule": "repeated",
  123. "type": "ReservedRange",
  124. "id": 9
  125. },
  126. "reservedName": {
  127. "rule": "repeated",
  128. "type": "string",
  129. "id": 10
  130. }
  131. },
  132. "nested": {
  133. "ExtensionRange": {
  134. "fields": {
  135. "start": {
  136. "type": "int32",
  137. "id": 1
  138. },
  139. "end": {
  140. "type": "int32",
  141. "id": 2
  142. }
  143. }
  144. },
  145. "ReservedRange": {
  146. "fields": {
  147. "start": {
  148. "type": "int32",
  149. "id": 1
  150. },
  151. "end": {
  152. "type": "int32",
  153. "id": 2
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "FieldDescriptorProto": {
  160. "fields": {
  161. "name": {
  162. "type": "string",
  163. "id": 1
  164. },
  165. "number": {
  166. "type": "int32",
  167. "id": 3
  168. },
  169. "label": {
  170. "type": "Label",
  171. "id": 4
  172. },
  173. "type": {
  174. "type": "Type",
  175. "id": 5
  176. },
  177. "typeName": {
  178. "type": "string",
  179. "id": 6
  180. },
  181. "extendee": {
  182. "type": "string",
  183. "id": 2
  184. },
  185. "defaultValue": {
  186. "type": "string",
  187. "id": 7
  188. },
  189. "oneofIndex": {
  190. "type": "int32",
  191. "id": 9
  192. },
  193. "jsonName": {
  194. "type": "string",
  195. "id": 10
  196. },
  197. "options": {
  198. "type": "FieldOptions",
  199. "id": 8
  200. }
  201. },
  202. "nested": {
  203. "Type": {
  204. "values": {
  205. "TYPE_DOUBLE": 1,
  206. "TYPE_FLOAT": 2,
  207. "TYPE_INT64": 3,
  208. "TYPE_UINT64": 4,
  209. "TYPE_INT32": 5,
  210. "TYPE_FIXED64": 6,
  211. "TYPE_FIXED32": 7,
  212. "TYPE_BOOL": 8,
  213. "TYPE_STRING": 9,
  214. "TYPE_GROUP": 10,
  215. "TYPE_MESSAGE": 11,
  216. "TYPE_BYTES": 12,
  217. "TYPE_UINT32": 13,
  218. "TYPE_ENUM": 14,
  219. "TYPE_SFIXED32": 15,
  220. "TYPE_SFIXED64": 16,
  221. "TYPE_SINT32": 17,
  222. "TYPE_SINT64": 18
  223. }
  224. },
  225. "Label": {
  226. "values": {
  227. "LABEL_OPTIONAL": 1,
  228. "LABEL_REQUIRED": 2,
  229. "LABEL_REPEATED": 3
  230. }
  231. }
  232. }
  233. },
  234. "OneofDescriptorProto": {
  235. "fields": {
  236. "name": {
  237. "type": "string",
  238. "id": 1
  239. },
  240. "options": {
  241. "type": "OneofOptions",
  242. "id": 2
  243. }
  244. }
  245. },
  246. "EnumDescriptorProto": {
  247. "fields": {
  248. "name": {
  249. "type": "string",
  250. "id": 1
  251. },
  252. "value": {
  253. "rule": "repeated",
  254. "type": "EnumValueDescriptorProto",
  255. "id": 2
  256. },
  257. "options": {
  258. "type": "EnumOptions",
  259. "id": 3
  260. }
  261. }
  262. },
  263. "EnumValueDescriptorProto": {
  264. "fields": {
  265. "name": {
  266. "type": "string",
  267. "id": 1
  268. },
  269. "number": {
  270. "type": "int32",
  271. "id": 2
  272. },
  273. "options": {
  274. "type": "EnumValueOptions",
  275. "id": 3
  276. }
  277. }
  278. },
  279. "ServiceDescriptorProto": {
  280. "fields": {
  281. "name": {
  282. "type": "string",
  283. "id": 1
  284. },
  285. "method": {
  286. "rule": "repeated",
  287. "type": "MethodDescriptorProto",
  288. "id": 2
  289. },
  290. "options": {
  291. "type": "ServiceOptions",
  292. "id": 3
  293. }
  294. }
  295. },
  296. "MethodDescriptorProto": {
  297. "fields": {
  298. "name": {
  299. "type": "string",
  300. "id": 1
  301. },
  302. "inputType": {
  303. "type": "string",
  304. "id": 2
  305. },
  306. "outputType": {
  307. "type": "string",
  308. "id": 3
  309. },
  310. "options": {
  311. "type": "MethodOptions",
  312. "id": 4
  313. },
  314. "clientStreaming": {
  315. "type": "bool",
  316. "id": 5
  317. },
  318. "serverStreaming": {
  319. "type": "bool",
  320. "id": 6
  321. }
  322. }
  323. },
  324. "FileOptions": {
  325. "fields": {
  326. "javaPackage": {
  327. "type": "string",
  328. "id": 1
  329. },
  330. "javaOuterClassname": {
  331. "type": "string",
  332. "id": 8
  333. },
  334. "javaMultipleFiles": {
  335. "type": "bool",
  336. "id": 10
  337. },
  338. "javaGenerateEqualsAndHash": {
  339. "type": "bool",
  340. "id": 20,
  341. "options": {
  342. "deprecated": true
  343. }
  344. },
  345. "javaStringCheckUtf8": {
  346. "type": "bool",
  347. "id": 27
  348. },
  349. "optimizeFor": {
  350. "type": "OptimizeMode",
  351. "id": 9,
  352. "options": {
  353. "default": "SPEED"
  354. }
  355. },
  356. "goPackage": {
  357. "type": "string",
  358. "id": 11
  359. },
  360. "ccGenericServices": {
  361. "type": "bool",
  362. "id": 16
  363. },
  364. "javaGenericServices": {
  365. "type": "bool",
  366. "id": 17
  367. },
  368. "pyGenericServices": {
  369. "type": "bool",
  370. "id": 18
  371. },
  372. "deprecated": {
  373. "type": "bool",
  374. "id": 23
  375. },
  376. "ccEnableArenas": {
  377. "type": "bool",
  378. "id": 31
  379. },
  380. "objcClassPrefix": {
  381. "type": "string",
  382. "id": 36
  383. },
  384. "csharpNamespace": {
  385. "type": "string",
  386. "id": 37
  387. },
  388. "uninterpretedOption": {
  389. "rule": "repeated",
  390. "type": "UninterpretedOption",
  391. "id": 999
  392. }
  393. },
  394. "extensions": [
  395. [
  396. 1000,
  397. 536870911
  398. ]
  399. ],
  400. "reserved": [
  401. [
  402. 38,
  403. 38
  404. ]
  405. ],
  406. "nested": {
  407. "OptimizeMode": {
  408. "values": {
  409. "SPEED": 1,
  410. "CODE_SIZE": 2,
  411. "LITE_RUNTIME": 3
  412. }
  413. }
  414. }
  415. },
  416. "MessageOptions": {
  417. "fields": {
  418. "messageSetWireFormat": {
  419. "type": "bool",
  420. "id": 1
  421. },
  422. "noStandardDescriptorAccessor": {
  423. "type": "bool",
  424. "id": 2
  425. },
  426. "deprecated": {
  427. "type": "bool",
  428. "id": 3
  429. },
  430. "mapEntry": {
  431. "type": "bool",
  432. "id": 7
  433. },
  434. "uninterpretedOption": {
  435. "rule": "repeated",
  436. "type": "UninterpretedOption",
  437. "id": 999
  438. }
  439. },
  440. "extensions": [
  441. [
  442. 1000,
  443. 536870911
  444. ]
  445. ],
  446. "reserved": [
  447. [
  448. 8,
  449. 8
  450. ]
  451. ]
  452. },
  453. "FieldOptions": {
  454. "fields": {
  455. "ctype": {
  456. "type": "CType",
  457. "id": 1,
  458. "options": {
  459. "default": "STRING"
  460. }
  461. },
  462. "packed": {
  463. "type": "bool",
  464. "id": 2
  465. },
  466. "jstype": {
  467. "type": "JSType",
  468. "id": 6,
  469. "options": {
  470. "default": "JS_NORMAL"
  471. }
  472. },
  473. "lazy": {
  474. "type": "bool",
  475. "id": 5
  476. },
  477. "deprecated": {
  478. "type": "bool",
  479. "id": 3
  480. },
  481. "weak": {
  482. "type": "bool",
  483. "id": 10
  484. },
  485. "uninterpretedOption": {
  486. "rule": "repeated",
  487. "type": "UninterpretedOption",
  488. "id": 999
  489. }
  490. },
  491. "extensions": [
  492. [
  493. 1000,
  494. 536870911
  495. ]
  496. ],
  497. "reserved": [
  498. [
  499. 4,
  500. 4
  501. ]
  502. ],
  503. "nested": {
  504. "CType": {
  505. "values": {
  506. "STRING": 0,
  507. "CORD": 1,
  508. "STRING_PIECE": 2
  509. }
  510. },
  511. "JSType": {
  512. "values": {
  513. "JS_NORMAL": 0,
  514. "JS_STRING": 1,
  515. "JS_NUMBER": 2
  516. }
  517. }
  518. }
  519. },
  520. "OneofOptions": {
  521. "fields": {
  522. "uninterpretedOption": {
  523. "rule": "repeated",
  524. "type": "UninterpretedOption",
  525. "id": 999
  526. }
  527. },
  528. "extensions": [
  529. [
  530. 1000,
  531. 536870911
  532. ]
  533. ]
  534. },
  535. "EnumOptions": {
  536. "fields": {
  537. "allowAlias": {
  538. "type": "bool",
  539. "id": 2
  540. },
  541. "deprecated": {
  542. "type": "bool",
  543. "id": 3
  544. },
  545. "uninterpretedOption": {
  546. "rule": "repeated",
  547. "type": "UninterpretedOption",
  548. "id": 999
  549. }
  550. },
  551. "extensions": [
  552. [
  553. 1000,
  554. 536870911
  555. ]
  556. ]
  557. },
  558. "EnumValueOptions": {
  559. "fields": {
  560. "deprecated": {
  561. "type": "bool",
  562. "id": 1
  563. },
  564. "uninterpretedOption": {
  565. "rule": "repeated",
  566. "type": "UninterpretedOption",
  567. "id": 999
  568. }
  569. },
  570. "extensions": [
  571. [
  572. 1000,
  573. 536870911
  574. ]
  575. ]
  576. },
  577. "ServiceOptions": {
  578. "fields": {
  579. "deprecated": {
  580. "type": "bool",
  581. "id": 33
  582. },
  583. "uninterpretedOption": {
  584. "rule": "repeated",
  585. "type": "UninterpretedOption",
  586. "id": 999
  587. }
  588. },
  589. "extensions": [
  590. [
  591. 1000,
  592. 536870911
  593. ]
  594. ]
  595. },
  596. "MethodOptions": {
  597. "fields": {
  598. "deprecated": {
  599. "type": "bool",
  600. "id": 33
  601. },
  602. "uninterpretedOption": {
  603. "rule": "repeated",
  604. "type": "UninterpretedOption",
  605. "id": 999
  606. }
  607. },
  608. "extensions": [
  609. [
  610. 1000,
  611. 536870911
  612. ]
  613. ]
  614. },
  615. "UninterpretedOption": {
  616. "fields": {
  617. "name": {
  618. "rule": "repeated",
  619. "type": "NamePart",
  620. "id": 2
  621. },
  622. "identifierValue": {
  623. "type": "string",
  624. "id": 3
  625. },
  626. "positiveIntValue": {
  627. "type": "uint64",
  628. "id": 4
  629. },
  630. "negativeIntValue": {
  631. "type": "int64",
  632. "id": 5
  633. },
  634. "doubleValue": {
  635. "type": "double",
  636. "id": 6
  637. },
  638. "stringValue": {
  639. "type": "bytes",
  640. "id": 7
  641. },
  642. "aggregateValue": {
  643. "type": "string",
  644. "id": 8
  645. }
  646. },
  647. "nested": {
  648. "NamePart": {
  649. "fields": {
  650. "namePart": {
  651. "rule": "required",
  652. "type": "string",
  653. "id": 1
  654. },
  655. "isExtension": {
  656. "rule": "required",
  657. "type": "bool",
  658. "id": 2
  659. }
  660. }
  661. }
  662. }
  663. },
  664. "SourceCodeInfo": {
  665. "fields": {
  666. "location": {
  667. "rule": "repeated",
  668. "type": "Location",
  669. "id": 1
  670. }
  671. },
  672. "nested": {
  673. "Location": {
  674. "fields": {
  675. "path": {
  676. "rule": "repeated",
  677. "type": "int32",
  678. "id": 1
  679. },
  680. "span": {
  681. "rule": "repeated",
  682. "type": "int32",
  683. "id": 2
  684. },
  685. "leadingComments": {
  686. "type": "string",
  687. "id": 3
  688. },
  689. "trailingComments": {
  690. "type": "string",
  691. "id": 4
  692. },
  693. "leadingDetachedComments": {
  694. "rule": "repeated",
  695. "type": "string",
  696. "id": 6
  697. }
  698. }
  699. }
  700. }
  701. },
  702. "GeneratedCodeInfo": {
  703. "fields": {
  704. "annotation": {
  705. "rule": "repeated",
  706. "type": "Annotation",
  707. "id": 1
  708. }
  709. },
  710. "nested": {
  711. "Annotation": {
  712. "fields": {
  713. "path": {
  714. "rule": "repeated",
  715. "type": "int32",
  716. "id": 1
  717. },
  718. "sourceFile": {
  719. "type": "string",
  720. "id": 2
  721. },
  722. "begin": {
  723. "type": "int32",
  724. "id": 3
  725. },
  726. "end": {
  727. "type": "int32",
  728. "id": 4
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735. }
  736. }
  737. }
  738. }
  739. }