Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. package google.protobuf;
  2.  
  3. message FileDescriptorSet {
  4. repeated FileDescriptorProto file = 1;
  5. }
  6.  
  7. message FileDescriptorProto {
  8. optional string name = 1;
  9. optional string package = 2;
  10. repeated string dependency = 3;
  11. repeated int32 public_dependency = 10;
  12. repeated int32 weak_dependency = 11;
  13. repeated DescriptorProto message_type = 4;
  14. repeated EnumDescriptorProto enum_type = 5;
  15. repeated ServiceDescriptorProto service = 6;
  16. repeated FieldDescriptorProto extension = 7;
  17. optional FileOptions options = 8;
  18. optional SourceCodeInfo source_code_info = 9;
  19. optional string syntax = 12;
  20. }
  21.  
  22. message DescriptorProto {
  23. message ExtensionRange {
  24. optional int32 start = 1;
  25. optional int32 end = 2;
  26. }
  27.  
  28. message ReservedRange {
  29. optional int32 start = 1;
  30. optional int32 end = 2;
  31. }
  32.  
  33. optional string name = 1;
  34. repeated FieldDescriptorProto field = 2;
  35. repeated FieldDescriptorProto extension = 6;
  36. repeated DescriptorProto nested_type = 3;
  37. repeated EnumDescriptorProto enum_type = 4;
  38. repeated ExtensionRange extension_range = 5;
  39. repeated OneofDescriptorProto oneof_decl = 8;
  40. optional MessageOptions options = 7;
  41. repeated ReservedRange reserved_range = 9;
  42. repeated string reserved_name = 10;
  43. }
  44.  
  45. message FieldDescriptorProto {
  46.  
  47. enum Type {
  48. TYPE_DOUBLE = 1;
  49. TYPE_FLOAT = 2;
  50. TYPE_INT64 = 3;
  51. TYPE_UINT64 = 4;
  52. TYPE_INT32 = 5;
  53. TYPE_FIXED64 = 6;
  54. TYPE_FIXED32 = 7;
  55. TYPE_BOOL = 8;
  56. TYPE_STRING = 9;
  57. TYPE_GROUP = 10;
  58. TYPE_MESSAGE = 11;
  59. TYPE_BYTES = 12;
  60. TYPE_UINT32 = 13;
  61. TYPE_ENUM = 14;
  62. TYPE_SFIXED32 = 15;
  63. TYPE_SFIXED64 = 16;
  64. TYPE_SINT32 = 17;
  65. TYPE_SINT64 = 18;
  66. }
  67.  
  68. enum Label {
  69. LABEL_OPTIONAL = 1;
  70. LABEL_REQUIRED = 2;
  71. LABEL_REPEATED = 3;
  72. }
  73. optional string name = 1;
  74. optional int32 number = 3;
  75. optional Label label = 4;
  76. optional Type type = 5;
  77. optional string type_name = 6;
  78. optional string extendee = 2;
  79. optional string default_value = 7;
  80. optional int32 oneof_index = 9;
  81. optional string json_name = 10;
  82. optional FieldOptions options = 8;
  83. }
  84.  
  85. message OneofDescriptorProto {
  86. optional string name = 1;
  87. }
  88.  
  89. message EnumDescriptorProto {
  90. optional string name = 1;
  91. repeated EnumValueDescriptorProto value = 2;
  92. optional EnumOptions options = 3;
  93. }
  94.  
  95. message EnumValueDescriptorProto {
  96. optional string name = 1;
  97. optional int32 number = 2;
  98. optional EnumValueOptions options = 3;
  99. }
  100.  
  101. message ServiceDescriptorProto {
  102. optional string name = 1;
  103. repeated MethodDescriptorProto method = 2;
  104. optional ServiceOptions options = 3;
  105. }
  106.  
  107. message MethodDescriptorProto {
  108. optional string name = 1;
  109. optional string input_type = 2;
  110. optional string output_type = 3;
  111. optional MethodOptions options = 4;
  112. optional bool client_streaming = 5 [default = false];
  113. optional bool server_streaming = 6 [default = false];
  114. }
  115.  
  116. message FileOptions {
  117.  
  118. enum OptimizeMode {
  119. SPEED = 1;
  120. CODE_SIZE = 2;
  121. LITE_RUNTIME = 3;
  122. }
  123. optional string java_package = 1;
  124. optional string java_outer_classname = 8;
  125. optional bool java_multiple_files = 10 [default = false];
  126. optional bool java_generate_equals_and_hash = 20 [default = false];
  127. optional bool java_string_check_utf8 = 27 [default = false];
  128. optional OptimizeMode optimize_for = 9;
  129. optional string go_package = 11;
  130. optional bool cc_generic_services = 16 [default = false];
  131. optional bool java_generic_services = 17 [default = false];
  132. optional bool py_generic_services = 18 [default = false];
  133. optional bool deprecated = 23 [default = false];
  134. optional bool cc_enable_arenas = 31 [default = false];
  135. optional string objc_class_prefix = 36;
  136. optional string csharp_namespace = 37;
  137. optional bool javanano_use_deprecated_package = 38;
  138. repeated UninterpretedOption uninterpreted_option = 999;
  139. }
  140.  
  141. message MessageOptions {
  142. optional bool message_set_wire_format = 1 [default = false];
  143. optional bool no_standard_descriptor_accessor = 2 [default = false];
  144. optional bool deprecated = 3 [default = false];
  145. optional bool map_entry = 7;
  146. repeated UninterpretedOption uninterpreted_option = 999;
  147. }
  148.  
  149. message FieldOptions {
  150.  
  151. enum CType {
  152. STRING = 0;
  153. CORD = 1;
  154. STRING_PIECE = 2;
  155. }
  156.  
  157. enum JSType {
  158. JS_NORMAL = 0;
  159. JS_STRING = 1;
  160. JS_NUMBER = 2;
  161. }
  162. optional CType ctype = 1;
  163. optional bool packed = 2;
  164. optional JSType jstype = 6;
  165. optional bool lazy = 5 [default = false];
  166. optional bool deprecated = 3 [default = false];
  167. optional bool weak = 10 [default = false];
  168. repeated UninterpretedOption uninterpreted_option = 999;
  169. }
  170.  
  171. message EnumOptions {
  172. optional bool allow_alias = 2;
  173. optional bool deprecated = 3 [default = false];
  174. repeated UninterpretedOption uninterpreted_option = 999;
  175. }
  176.  
  177. message EnumValueOptions {
  178. optional bool deprecated = 1 [default = false];
  179. repeated UninterpretedOption uninterpreted_option = 999;
  180. }
  181.  
  182. message ServiceOptions {
  183. optional bool deprecated = 33 [default = false];
  184. repeated UninterpretedOption uninterpreted_option = 999;
  185. }
  186.  
  187. message MethodOptions {
  188. optional bool deprecated = 33 [default = false];
  189. repeated UninterpretedOption uninterpreted_option = 999;
  190. }
  191.  
  192. message UninterpretedOption {
  193. message NamePart {
  194. required string name_part = 1;
  195. required bool is_extension = 2;
  196. }
  197.  
  198. repeated NamePart name = 2;
  199. optional string identifier_value = 3;
  200. optional uint64 positive_int_value = 4;
  201. optional int64 negative_int_value = 5;
  202. optional double double_value = 6;
  203. optional bytes string_value = 7;
  204. optional string aggregate_value = 8;
  205. }
  206.  
  207. message SourceCodeInfo {
  208. message Location {
  209. repeated int32 path = 1;
  210. repeated int32 span = 2;
  211. optional string leading_comments = 3;
  212. optional string trailing_comments = 4;
  213. repeated string leading_detached_comments = 6;
  214. }
  215.  
  216. repeated Location location = 1;
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement