PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/src/protobuf/src/google/protobuf/descriptor.pb.cc

http://decs.googlecode.com/
C++ | 1504 lines | 1319 code | 136 blank | 49 comment | 156 complexity | d0bee00de29346dc31930159d8563d74 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. #include "google/protobuf/descriptor.pb.h"
  3. #include <google/protobuf/stubs/once.h>
  4. #include <google/protobuf/descriptor.h>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/reflection_ops.h>
  7. #include <google/protobuf/wire_format_inl.h>
  8. namespace google {
  9. namespace protobuf {
  10. namespace {
  11. const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
  12. const ::google::protobuf::internal::GeneratedMessageReflection*
  13. FileDescriptorSet_reflection_ = NULL;
  14. const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
  15. const ::google::protobuf::internal::GeneratedMessageReflection*
  16. FileDescriptorProto_reflection_ = NULL;
  17. const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
  18. const ::google::protobuf::internal::GeneratedMessageReflection*
  19. DescriptorProto_reflection_ = NULL;
  20. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
  21. const ::google::protobuf::internal::GeneratedMessageReflection*
  22. DescriptorProto_ExtensionRange_reflection_ = NULL;
  23. const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
  24. const ::google::protobuf::internal::GeneratedMessageReflection*
  25. FieldDescriptorProto_reflection_ = NULL;
  26. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
  27. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
  28. const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
  29. const ::google::protobuf::internal::GeneratedMessageReflection*
  30. EnumDescriptorProto_reflection_ = NULL;
  31. const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
  32. const ::google::protobuf::internal::GeneratedMessageReflection*
  33. EnumValueDescriptorProto_reflection_ = NULL;
  34. const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
  35. const ::google::protobuf::internal::GeneratedMessageReflection*
  36. ServiceDescriptorProto_reflection_ = NULL;
  37. const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
  38. const ::google::protobuf::internal::GeneratedMessageReflection*
  39. MethodDescriptorProto_reflection_ = NULL;
  40. const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
  41. const ::google::protobuf::internal::GeneratedMessageReflection*
  42. FileOptions_reflection_ = NULL;
  43. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
  44. const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. MessageOptions_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. FieldOptions_reflection_ = NULL;
  50. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
  51. const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
  52. const ::google::protobuf::internal::GeneratedMessageReflection*
  53. EnumOptions_reflection_ = NULL;
  54. const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
  55. const ::google::protobuf::internal::GeneratedMessageReflection*
  56. EnumValueOptions_reflection_ = NULL;
  57. const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
  58. const ::google::protobuf::internal::GeneratedMessageReflection*
  59. ServiceOptions_reflection_ = NULL;
  60. const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
  61. const ::google::protobuf::internal::GeneratedMessageReflection*
  62. MethodOptions_reflection_ = NULL;
  63. const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
  64. const ::google::protobuf::internal::GeneratedMessageReflection*
  65. UninterpretedOption_reflection_ = NULL;
  66. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
  67. const ::google::protobuf::internal::GeneratedMessageReflection*
  68. UninterpretedOption_NamePart_reflection_ = NULL;
  69. } // namespace
  70. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  71. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  72. const ::google::protobuf::FileDescriptor* file =
  73. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  74. "google/protobuf/descriptor.proto");
  75. GOOGLE_CHECK(file != NULL);
  76. FileDescriptorSet_descriptor_ = file->message_type(0);
  77. static const int FileDescriptorSet_offsets_[1] = {
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
  79. };
  80. FileDescriptorSet_reflection_ =
  81. new ::google::protobuf::internal::GeneratedMessageReflection(
  82. FileDescriptorSet_descriptor_,
  83. FileDescriptorSet::default_instance_,
  84. FileDescriptorSet_offsets_,
  85. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown_fields_),
  87. -1,
  88. ::google::protobuf::DescriptorPool::generated_pool(),
  89. ::google::protobuf::MessageFactory::generated_factory(),
  90. sizeof(FileDescriptorSet));
  91. FileDescriptorProto_descriptor_ = file->message_type(1);
  92. static const int FileDescriptorProto_offsets_[8] = {
  93. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
  101. };
  102. FileDescriptorProto_reflection_ =
  103. new ::google::protobuf::internal::GeneratedMessageReflection(
  104. FileDescriptorProto_descriptor_,
  105. FileDescriptorProto::default_instance_,
  106. FileDescriptorProto_offsets_,
  107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _unknown_fields_),
  109. -1,
  110. ::google::protobuf::DescriptorPool::generated_pool(),
  111. ::google::protobuf::MessageFactory::generated_factory(),
  112. sizeof(FileDescriptorProto));
  113. DescriptorProto_descriptor_ = file->message_type(2);
  114. static const int DescriptorProto_offsets_[7] = {
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
  122. };
  123. DescriptorProto_reflection_ =
  124. new ::google::protobuf::internal::GeneratedMessageReflection(
  125. DescriptorProto_descriptor_,
  126. DescriptorProto::default_instance_,
  127. DescriptorProto_offsets_,
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _unknown_fields_),
  130. -1,
  131. ::google::protobuf::DescriptorPool::generated_pool(),
  132. ::google::protobuf::MessageFactory::generated_factory(),
  133. sizeof(DescriptorProto));
  134. DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
  135. static const int DescriptorProto_ExtensionRange_offsets_[2] = {
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
  138. };
  139. DescriptorProto_ExtensionRange_reflection_ =
  140. new ::google::protobuf::internal::GeneratedMessageReflection(
  141. DescriptorProto_ExtensionRange_descriptor_,
  142. DescriptorProto_ExtensionRange::default_instance_,
  143. DescriptorProto_ExtensionRange_offsets_,
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _unknown_fields_),
  146. -1,
  147. ::google::protobuf::DescriptorPool::generated_pool(),
  148. ::google::protobuf::MessageFactory::generated_factory(),
  149. sizeof(DescriptorProto_ExtensionRange));
  150. FieldDescriptorProto_descriptor_ = file->message_type(3);
  151. static const int FieldDescriptorProto_offsets_[8] = {
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
  160. };
  161. FieldDescriptorProto_reflection_ =
  162. new ::google::protobuf::internal::GeneratedMessageReflection(
  163. FieldDescriptorProto_descriptor_,
  164. FieldDescriptorProto::default_instance_,
  165. FieldDescriptorProto_offsets_,
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
  167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _unknown_fields_),
  168. -1,
  169. ::google::protobuf::DescriptorPool::generated_pool(),
  170. ::google::protobuf::MessageFactory::generated_factory(),
  171. sizeof(FieldDescriptorProto));
  172. FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
  173. FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
  174. EnumDescriptorProto_descriptor_ = file->message_type(4);
  175. static const int EnumDescriptorProto_offsets_[3] = {
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
  179. };
  180. EnumDescriptorProto_reflection_ =
  181. new ::google::protobuf::internal::GeneratedMessageReflection(
  182. EnumDescriptorProto_descriptor_,
  183. EnumDescriptorProto::default_instance_,
  184. EnumDescriptorProto_offsets_,
  185. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _unknown_fields_),
  187. -1,
  188. ::google::protobuf::DescriptorPool::generated_pool(),
  189. ::google::protobuf::MessageFactory::generated_factory(),
  190. sizeof(EnumDescriptorProto));
  191. EnumValueDescriptorProto_descriptor_ = file->message_type(5);
  192. static const int EnumValueDescriptorProto_offsets_[3] = {
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
  196. };
  197. EnumValueDescriptorProto_reflection_ =
  198. new ::google::protobuf::internal::GeneratedMessageReflection(
  199. EnumValueDescriptorProto_descriptor_,
  200. EnumValueDescriptorProto::default_instance_,
  201. EnumValueDescriptorProto_offsets_,
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _unknown_fields_),
  204. -1,
  205. ::google::protobuf::DescriptorPool::generated_pool(),
  206. ::google::protobuf::MessageFactory::generated_factory(),
  207. sizeof(EnumValueDescriptorProto));
  208. ServiceDescriptorProto_descriptor_ = file->message_type(6);
  209. static const int ServiceDescriptorProto_offsets_[3] = {
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
  213. };
  214. ServiceDescriptorProto_reflection_ =
  215. new ::google::protobuf::internal::GeneratedMessageReflection(
  216. ServiceDescriptorProto_descriptor_,
  217. ServiceDescriptorProto::default_instance_,
  218. ServiceDescriptorProto_offsets_,
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _unknown_fields_),
  221. -1,
  222. ::google::protobuf::DescriptorPool::generated_pool(),
  223. ::google::protobuf::MessageFactory::generated_factory(),
  224. sizeof(ServiceDescriptorProto));
  225. MethodDescriptorProto_descriptor_ = file->message_type(7);
  226. static const int MethodDescriptorProto_offsets_[4] = {
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
  231. };
  232. MethodDescriptorProto_reflection_ =
  233. new ::google::protobuf::internal::GeneratedMessageReflection(
  234. MethodDescriptorProto_descriptor_,
  235. MethodDescriptorProto::default_instance_,
  236. MethodDescriptorProto_offsets_,
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unknown_fields_),
  239. -1,
  240. ::google::protobuf::DescriptorPool::generated_pool(),
  241. ::google::protobuf::MessageFactory::generated_factory(),
  242. sizeof(MethodDescriptorProto));
  243. FileOptions_descriptor_ = file->message_type(8);
  244. static const int FileOptions_offsets_[5] = {
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
  250. };
  251. FileOptions_reflection_ =
  252. new ::google::protobuf::internal::GeneratedMessageReflection(
  253. FileOptions_descriptor_,
  254. FileOptions::default_instance_,
  255. FileOptions_offsets_,
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _unknown_fields_),
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
  259. ::google::protobuf::DescriptorPool::generated_pool(),
  260. ::google::protobuf::MessageFactory::generated_factory(),
  261. sizeof(FileOptions));
  262. FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
  263. MessageOptions_descriptor_ = file->message_type(9);
  264. static const int MessageOptions_offsets_[2] = {
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
  266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
  267. };
  268. MessageOptions_reflection_ =
  269. new ::google::protobuf::internal::GeneratedMessageReflection(
  270. MessageOptions_descriptor_,
  271. MessageOptions::default_instance_,
  272. MessageOptions_offsets_,
  273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
  274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fields_),
  275. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
  276. ::google::protobuf::DescriptorPool::generated_pool(),
  277. ::google::protobuf::MessageFactory::generated_factory(),
  278. sizeof(MessageOptions));
  279. FieldOptions_descriptor_ = file->message_type(10);
  280. static const int FieldOptions_offsets_[5] = {
  281. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
  282. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
  284. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_map_key_),
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
  286. };
  287. FieldOptions_reflection_ =
  288. new ::google::protobuf::internal::GeneratedMessageReflection(
  289. FieldOptions_descriptor_,
  290. FieldOptions::default_instance_,
  291. FieldOptions_offsets_,
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
  293. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fields_),
  294. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
  295. ::google::protobuf::DescriptorPool::generated_pool(),
  296. ::google::protobuf::MessageFactory::generated_factory(),
  297. sizeof(FieldOptions));
  298. FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
  299. EnumOptions_descriptor_ = file->message_type(11);
  300. static const int EnumOptions_offsets_[1] = {
  301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
  302. };
  303. EnumOptions_reflection_ =
  304. new ::google::protobuf::internal::GeneratedMessageReflection(
  305. EnumOptions_descriptor_,
  306. EnumOptions::default_instance_,
  307. EnumOptions_offsets_,
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_fields_),
  310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
  311. ::google::protobuf::DescriptorPool::generated_pool(),
  312. ::google::protobuf::MessageFactory::generated_factory(),
  313. sizeof(EnumOptions));
  314. EnumValueOptions_descriptor_ = file->message_type(12);
  315. static const int EnumValueOptions_offsets_[1] = {
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
  317. };
  318. EnumValueOptions_reflection_ =
  319. new ::google::protobuf::internal::GeneratedMessageReflection(
  320. EnumValueOptions_descriptor_,
  321. EnumValueOptions::default_instance_,
  322. EnumValueOptions_offsets_,
  323. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
  324. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _unknown_fields_),
  325. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
  326. ::google::protobuf::DescriptorPool::generated_pool(),
  327. ::google::protobuf::MessageFactory::generated_factory(),
  328. sizeof(EnumValueOptions));
  329. ServiceOptions_descriptor_ = file->message_type(13);
  330. static const int ServiceOptions_offsets_[1] = {
  331. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
  332. };
  333. ServiceOptions_reflection_ =
  334. new ::google::protobuf::internal::GeneratedMessageReflection(
  335. ServiceOptions_descriptor_,
  336. ServiceOptions::default_instance_,
  337. ServiceOptions_offsets_,
  338. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
  339. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _unknown_fields_),
  340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
  341. ::google::protobuf::DescriptorPool::generated_pool(),
  342. ::google::protobuf::MessageFactory::generated_factory(),
  343. sizeof(ServiceOptions));
  344. MethodOptions_descriptor_ = file->message_type(14);
  345. static const int MethodOptions_offsets_[1] = {
  346. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
  347. };
  348. MethodOptions_reflection_ =
  349. new ::google::protobuf::internal::GeneratedMessageReflection(
  350. MethodOptions_descriptor_,
  351. MethodOptions::default_instance_,
  352. MethodOptions_offsets_,
  353. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
  354. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _unknown_fields_),
  355. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
  356. ::google::protobuf::DescriptorPool::generated_pool(),
  357. ::google::protobuf::MessageFactory::generated_factory(),
  358. sizeof(MethodOptions));
  359. UninterpretedOption_descriptor_ = file->message_type(15);
  360. static const int UninterpretedOption_offsets_[6] = {
  361. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
  362. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
  363. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
  364. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
  365. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
  366. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
  367. };
  368. UninterpretedOption_reflection_ =
  369. new ::google::protobuf::internal::GeneratedMessageReflection(
  370. UninterpretedOption_descriptor_,
  371. UninterpretedOption::default_instance_,
  372. UninterpretedOption_offsets_,
  373. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
  374. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _unknown_fields_),
  375. -1,
  376. ::google::protobuf::DescriptorPool::generated_pool(),
  377. ::google::protobuf::MessageFactory::generated_factory(),
  378. sizeof(UninterpretedOption));
  379. UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
  380. static const int UninterpretedOption_NamePart_offsets_[2] = {
  381. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
  382. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
  383. };
  384. UninterpretedOption_NamePart_reflection_ =
  385. new ::google::protobuf::internal::GeneratedMessageReflection(
  386. UninterpretedOption_NamePart_descriptor_,
  387. UninterpretedOption_NamePart::default_instance_,
  388. UninterpretedOption_NamePart_offsets_,
  389. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
  390. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _unknown_fields_),
  391. -1,
  392. ::google::protobuf::DescriptorPool::generated_pool(),
  393. ::google::protobuf::MessageFactory::generated_factory(),
  394. sizeof(UninterpretedOption_NamePart));
  395. }
  396. namespace {
  397. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  398. inline void protobuf_AssignDescriptorsOnce() {
  399. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  400. &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
  401. }
  402. void protobuf_RegisterTypes() {
  403. protobuf_AssignDescriptorsOnce();
  404. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  405. FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
  406. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  407. FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
  408. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  409. DescriptorProto_descriptor_, &DescriptorProto::default_instance());
  410. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  411. DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
  412. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  413. FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
  414. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  415. EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
  416. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  417. EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
  418. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  419. ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
  420. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  421. MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
  422. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  423. FileOptions_descriptor_, &FileOptions::default_instance());
  424. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  425. MessageOptions_descriptor_, &MessageOptions::default_instance());
  426. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  427. FieldOptions_descriptor_, &FieldOptions::default_instance());
  428. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  429. EnumOptions_descriptor_, &EnumOptions::default_instance());
  430. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  431. EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
  432. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  433. ServiceOptions_descriptor_, &ServiceOptions::default_instance());
  434. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  435. MethodOptions_descriptor_, &MethodOptions::default_instance());
  436. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  437. UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
  438. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  439. UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
  440. }
  441. } // namespace
  442. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
  443. delete FileDescriptorSet::default_instance_;
  444. delete FileDescriptorSet_reflection_;
  445. delete FileDescriptorProto::default_instance_;
  446. delete FileDescriptorProto_reflection_;
  447. delete DescriptorProto::default_instance_;
  448. delete DescriptorProto_reflection_;
  449. delete DescriptorProto_ExtensionRange::default_instance_;
  450. delete DescriptorProto_ExtensionRange_reflection_;
  451. delete FieldDescriptorProto::default_instance_;
  452. delete FieldDescriptorProto_reflection_;
  453. delete EnumDescriptorProto::default_instance_;
  454. delete EnumDescriptorProto_reflection_;
  455. delete EnumValueDescriptorProto::default_instance_;
  456. delete EnumValueDescriptorProto_reflection_;
  457. delete ServiceDescriptorProto::default_instance_;
  458. delete ServiceDescriptorProto_reflection_;
  459. delete MethodDescriptorProto::default_instance_;
  460. delete MethodDescriptorProto_reflection_;
  461. delete FileOptions::default_instance_;
  462. delete FileOptions_reflection_;
  463. delete MessageOptions::default_instance_;
  464. delete MessageOptions_reflection_;
  465. delete FieldOptions::default_instance_;
  466. delete FieldOptions_reflection_;
  467. delete EnumOptions::default_instance_;
  468. delete EnumOptions_reflection_;
  469. delete EnumValueOptions::default_instance_;
  470. delete EnumValueOptions_reflection_;
  471. delete ServiceOptions::default_instance_;
  472. delete ServiceOptions_reflection_;
  473. delete MethodOptions::default_instance_;
  474. delete MethodOptions_reflection_;
  475. delete UninterpretedOption::default_instance_;
  476. delete UninterpretedOption_reflection_;
  477. delete UninterpretedOption_NamePart::default_instance_;
  478. delete UninterpretedOption_NamePart_reflection_;
  479. }
  480. void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  481. static bool already_here = false;
  482. if (already_here) return;
  483. already_here = true;
  484. GOOGLE_PROTOBUF_VERIFY_VERSION;
  485. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  486. "\n google/protobuf/descriptor.proto\022\017goog"
  487. "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
  488. "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
  489. "roto\"\334\002\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
  490. "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
  491. "6\n\014message_type\030\004 \003(\0132 .google.protobuf."
  492. "DescriptorProto\0227\n\tenum_type\030\005 \003(\0132$.goo"
  493. "gle.protobuf.EnumDescriptorProto\0228\n\007serv"
  494. "ice\030\006 \003(\0132\'.google.protobuf.ServiceDescr"
  495. "iptorProto\0228\n\textension\030\007 \003(\0132%.google.p"
  496. "rotobuf.FieldDescriptorProto\022-\n\007options\030"
  497. "\010 \001(\0132\034.google.protobuf.FileOptions\"\251\003\n\017"
  498. "DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002"
  499. " \003(\0132%.google.protobuf.FieldDescriptorPr"
  500. "oto\0228\n\textension\030\006 \003(\0132%.google.protobuf"
  501. ".FieldDescriptorProto\0225\n\013nested_type\030\003 \003"
  502. "(\0132 .google.protobuf.DescriptorProto\0227\n\t"
  503. "enum_type\030\004 \003(\0132$.google.protobuf.EnumDe"
  504. "scriptorProto\022H\n\017extension_range\030\005 \003(\0132/"
  505. ".google.protobuf.DescriptorProto.Extensi"
  506. "onRange\0220\n\007options\030\007 \001(\0132\037.google.protob"
  507. "uf.MessageOptions\032,\n\016ExtensionRange\022\r\n\005s"
  508. "tart\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescrip"
  509. "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:"
  510. "\n\005label\030\004 \001(\0162+.google.protobuf.FieldDes"
  511. "criptorProto.Label\0228\n\004type\030\005 \001(\0162*.googl"
  512. "e.protobuf.FieldDescriptorProto.Type\022\021\n\t"
  513. "type_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdef"
  514. "ault_value\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.goog"
  515. "le.protobuf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYP"
  516. "E_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64"
  517. "\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014T"
  518. "YPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_"
  519. "BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022"
  520. "\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYP"
  521. "E_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED"
  522. "32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021"
  523. "\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTI"
  524. "ONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPE"
  525. "ATED\020\003\"\214\001\n\023EnumDescriptorProto\022\014\n\004name\030\001"
  526. " \001(\t\0228\n\005value\030\002 \003(\0132).google.protobuf.En"
  527. "umValueDescriptorProto\022-\n\007options\030\003 \001(\0132"
  528. "\034.google.protobuf.EnumOptions\"l\n\030EnumVal"
  529. "ueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006numbe"
  530. "r\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.protob"
  531. "uf.EnumValueOptions\"\220\001\n\026ServiceDescripto"
  532. "rProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.g"
  533. "oogle.protobuf.MethodDescriptorProto\0220\n\007"
  534. "options\030\003 \001(\0132\037.google.protobuf.ServiceO"
  535. "ptions\"\177\n\025MethodDescriptorProto\022\014\n\004name\030"
  536. "\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output_type"
  537. "\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.protobu"
  538. "f.MethodOptions\"\247\002\n\013FileOptions\022\024\n\014java_"
  539. "package\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 "
  540. "\001(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022"
  541. "F\n\014optimize_for\030\t \001(\0162).google.protobuf."
  542. "FileOptions.OptimizeMode:\005SPEED\022C\n\024unint"
  543. "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
  544. ".UninterpretedOption\"(\n\014OptimizeMode\022\t\n\005"
  545. "SPEED\020\001\022\r\n\tCODE_SIZE\020\002*\t\010\350\007\020\200\200\200\200\002\"\210\001\n\016Me"
  546. "ssageOptions\022&\n\027message_set_wire_format\030"
  547. "\001 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 "
  548. "\003(\0132$.google.protobuf.UninterpretedOptio"
  549. "n*\t\010\350\007\020\200\200\200\200\002\"\200\002\n\014FieldOptions\0222\n\005ctype\030\001"
  550. " \001(\0162#.google.protobuf.FieldOptions.CTyp"
  551. "e\022\016\n\006packed\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005f"
  552. "alse\022\034\n\024experimental_map_key\030\t \001(\t\022C\n\024un"
  553. "interpreted_option\030\347\007 \003(\0132$.google.proto"
  554. "buf.UninterpretedOption\"#\n\005CType\022\010\n\004CORD"
  555. "\020\001\022\020\n\014STRING_PIECE\020\002*\t\010\350\007\020\200\200\200\200\002\"]\n\013EnumO"
  556. "ptions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
  557. "google.protobuf.UninterpretedOption*\t\010\350\007"
  558. "\020\200\200\200\200\002\"b\n\020EnumValueOptions\022C\n\024uninterpre"
  559. "ted_option\030\347\007 \003(\0132$.google.protobuf.Unin"
  560. "terpretedOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceOpt"
  561. "ions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
  562. "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
  563. "\200\200\200\002\"_\n\rMethodOptions\022C\n\024uninterpreted_o"
  564. "ption\030\347\007 \003(\0132$.google.protobuf.Uninterpr"
  565. "etedOption*\t\010\350\007\020\200\200\200\200\002\"\205\002\n\023UninterpretedO"
  566. "ption\022;\n\004name\030\002 \003(\0132-.google.protobuf.Un"
  567. "interpretedOption.NamePart\022\030\n\020identifier"
  568. "_value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004"
  569. "\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_v"
  570. "alue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\0323\n\010Name"
  571. "Part\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_extension\030"
  572. "\002 \002(\010B)\n\023com.google.protobufB\020Descriptor"
  573. "ProtosH\001", 3488);
  574. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  575. "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
  576. FileDescriptorSet::default_instance_ = new FileDescriptorSet();
  577. FileDescriptorProto::default_instance_ = new FileDescriptorProto();
  578. DescriptorProto::default_instance_ = new DescriptorProto();
  579. DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
  580. FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
  581. EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
  582. EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
  583. ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
  584. MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
  585. FileOptions::default_instance_ = new FileOptions();
  586. MessageOptions::default_instance_ = new MessageOptions();
  587. FieldOptions::default_instance_ = new FieldOptions();
  588. EnumOptions::default_instance_ = new EnumOptions();
  589. EnumValueOptions::default_instance_ = new EnumValueOptions();
  590. ServiceOptions::default_instance_ = new ServiceOptions();
  591. MethodOptions::default_instance_ = new MethodOptions();
  592. UninterpretedOption::default_instance_ = new UninterpretedOption();
  593. UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
  594. FileDescriptorSet::default_instance_->InitAsDefaultInstance();
  595. FileDescriptorProto::default_instance_->InitAsDefaultInstance();
  596. DescriptorProto::default_instance_->InitAsDefaultInstance();
  597. DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
  598. FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
  599. EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
  600. EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
  601. ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
  602. MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
  603. FileOptions::default_instance_->InitAsDefaultInstance();
  604. MessageOptions::default_instance_->InitAsDefaultInstance();
  605. FieldOptions::default_instance_->InitAsDefaultInstance();
  606. EnumOptions::default_instance_->InitAsDefaultInstance();
  607. EnumValueOptions::default_instance_->InitAsDefaultInstance();
  608. ServiceOptions::default_instance_->InitAsDefaultInstance();
  609. MethodOptions::default_instance_->InitAsDefaultInstance();
  610. UninterpretedOption::default_instance_->InitAsDefaultInstance();
  611. UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
  612. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
  613. }
  614. // Force AddDescriptors() to be called at static initialization time.
  615. struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
  616. StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
  617. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  618. }
  619. } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
  620. // ===================================================================
  621. #ifndef _MSC_VER
  622. const int FileDescriptorSet::kFileFieldNumber;
  623. #endif // !_MSC_VER
  624. FileDescriptorSet::FileDescriptorSet()
  625. : ::google::protobuf::Message() {
  626. SharedCtor();
  627. }
  628. void FileDescriptorSet::InitAsDefaultInstance() {}
  629. FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
  630. : ::google::protobuf::Message() {
  631. SharedCtor();
  632. MergeFrom(from);
  633. }
  634. void FileDescriptorSet::SharedCtor() {
  635. _cached_size_ = 0;
  636. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  637. }
  638. FileDescriptorSet::~FileDescriptorSet() {
  639. SharedDtor();
  640. }
  641. void FileDescriptorSet::SharedDtor() {
  642. if (this != default_instance_) {
  643. }
  644. }
  645. const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
  646. protobuf_AssignDescriptorsOnce();
  647. return FileDescriptorSet_descriptor_;
  648. }
  649. const FileDescriptorSet& FileDescriptorSet::default_instance() {
  650. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); return *default_instance_;
  651. }
  652. FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
  653. FileDescriptorSet* FileDescriptorSet::New() const {
  654. return new FileDescriptorSet;
  655. }
  656. void FileDescriptorSet::Clear() {
  657. file_.Clear();
  658. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  659. mutable_unknown_fields()->Clear();
  660. }
  661. bool FileDescriptorSet::MergePartialFromCodedStream(
  662. ::google::protobuf::io::CodedInputStream* input) {
  663. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  664. ::google::protobuf::uint32 tag;
  665. while ((tag = input->ReadTag()) != 0) {
  666. switch (::google::protobuf::internal::WireFormat::GetTagFieldNumber(tag)) {
  667. // repeated .google.protobuf.FileDescriptorProto file = 1;
  668. case 1: {
  669. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  670. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  671. goto handle_uninterpreted;
  672. }
  673. parse_file:
  674. DO_(::google::protobuf::internal::WireFormat::ReadMessageNoVirtual(
  675. input, add_file()));
  676. if (input->ExpectTag(10)) goto parse_file;
  677. if (input->ExpectAtEnd()) return true;
  678. break;
  679. }
  680. default: {
  681. handle_uninterpreted:
  682. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) ==
  683. ::google::protobuf::internal::WireFormat::WIRETYPE_END_GROUP) {
  684. return true;
  685. }
  686. DO_(::google::protobuf::internal::WireFormat::SkipField(
  687. input, tag, mutable_unknown_fields()));
  688. break;
  689. }
  690. }
  691. }
  692. return true;
  693. #undef DO_
  694. }
  695. void FileDescriptorSet::SerializeWithCachedSizes(
  696. ::google::protobuf::io::CodedOutputStream* output) const {
  697. ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
  698. if (raw_buffer != NULL) {
  699. FileDescriptorSet::SerializeWithCachedSizesToArray(raw_buffer);
  700. return;
  701. }
  702. // repeated .google.protobuf.FileDescriptorProto file = 1;
  703. for (int i = 0; i < this->file_size(); i++) {
  704. ::google::protobuf::internal::WireFormat::WriteMessageNoVirtual(1, this->file(i), output);
  705. }
  706. if (!unknown_fields().empty()) {
  707. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  708. unknown_fields(), output);
  709. }
  710. }
  711. ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
  712. ::google::protobuf::uint8* target) const {
  713. // repeated .google.protobuf.FileDescriptorProto file = 1;
  714. for (int i = 0; i < this->file_size(); i++) {
  715. target = ::google::protobuf::internal::WireFormat::WriteMessageNoVirtualToArray(1, this->file(i), target);
  716. }
  717. if (!unknown_fields().empty()) {
  718. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  719. unknown_fields(), target);
  720. }
  721. return target;
  722. }
  723. int FileDescriptorSet::ByteSize() const {
  724. int total_size = 0;
  725. // repeated .google.protobuf.FileDescriptorProto file = 1;
  726. total_size += 1 * this->file_size();
  727. for (int i = 0; i < this->file_size(); i++) {
  728. total_size +=
  729. ::google::protobuf::internal::WireFormat::MessageSizeNoVirtual(
  730. this->file(i));
  731. }
  732. if (!unknown_fields().empty()) {
  733. total_size +=
  734. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  735. unknown_fields());
  736. }
  737. _cached_size_ = total_size;
  738. return total_size;
  739. }
  740. void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
  741. GOOGLE_CHECK_NE(&from, this);
  742. const FileDescriptorSet* source =
  743. ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorSet*>(
  744. &from);
  745. if (source == NULL) {
  746. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  747. } else {
  748. MergeFrom(*source);
  749. }
  750. }
  751. void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
  752. GOOGLE_CHECK_NE(&from, this);
  753. file_.MergeFrom(from.file_);
  754. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  755. }
  756. void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
  757. if (&from == this) return;
  758. Clear();
  759. MergeFrom(from);
  760. }
  761. void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
  762. if (&from == this) return;
  763. Clear();
  764. MergeFrom(from);
  765. }
  766. void FileDescriptorSet::Swap(FileDescriptorSet* other) {
  767. if (other != this) {
  768. file_.Swap(&other->file_);
  769. std::swap(_has_bits_[0], other->_has_bits_[0]);
  770. _unknown_fields_.Swap(&other->_unknown_fields_);
  771. std::swap(_cached_size_, other->_cached_size_);
  772. }
  773. }
  774. bool FileDescriptorSet::IsInitialized() const {
  775. for (int i = 0; i < file_size(); i++) {
  776. if (!this->file(i).IsInitialized()) return false;
  777. }
  778. return true;
  779. }
  780. const ::google::protobuf::Descriptor* FileDescriptorSet::GetDescriptor() const {
  781. return descriptor();
  782. }
  783. const ::google::protobuf::Reflection* FileDescriptorSet::GetReflection() const {
  784. protobuf_AssignDescriptorsOnce();
  785. return FileDescriptorSet_reflection_;
  786. }
  787. // ===================================================================
  788. const ::std::string FileDescriptorProto::_default_name_;
  789. const ::std::string FileDescriptorProto::_default_package_;
  790. #ifndef _MSC_VER
  791. const int FileDescriptorProto::kNameFieldNumber;
  792. const int FileDescriptorProto::kPackageFieldNumber;
  793. const int FileDescriptorProto::kDependencyFieldNumber;
  794. const int FileDescriptorProto::kMessageTypeFieldNumber;
  795. const int FileDescriptorProto::kEnumTypeFieldNumber;
  796. const int FileDescriptorProto::kServiceFieldNumber;
  797. const int FileDescriptorProto::kExtensionFieldNumber;
  798. const int FileDescriptorProto::kOptionsFieldNumber;
  799. #endif // !_MSC_VER
  800. FileDescriptorProto::FileDescriptorProto()
  801. : ::google::protobuf::Message() {
  802. SharedCtor();
  803. }
  804. void FileDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
  805. }
  806. FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
  807. : ::google::protobuf::Message() {
  808. SharedCtor();
  809. MergeFrom(from);
  810. }
  811. void FileDescriptorProto::SharedCtor() {
  812. _cached_size_ = 0;
  813. name_ = const_cast< ::std::string*>(&_default_name_);
  814. package_ = const_cast< ::std::string*>(&_default_package_);
  815. options_ = NULL;
  816. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  817. }
  818. FileDescriptorProto::~FileDescriptorProto() {
  819. SharedDtor();
  820. }
  821. void FileDescriptorProto::SharedDtor() {
  822. if (name_ != &_default_name_) {
  823. delete name_;
  824. }
  825. if (package_ != &_default_package_) {
  826. delete package_;
  827. }
  828. if (this != default_instance_) {
  829. delete options_;
  830. }
  831. }
  832. const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
  833. protobuf_AssignDescriptorsOnce();
  834. return FileDescriptorProto_descriptor_;
  835. }
  836. const FileDescriptorProto& FileDescriptorProto::default_instance() {
  837. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); return *default_instance_;
  838. }
  839. FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
  840. FileDescriptorProto* FileDescriptorProto::New() const {
  841. return new FileDescriptorProto;
  842. }
  843. void FileDescriptorProto::Clear() {
  844. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  845. if (_has_bit(0)) {
  846. if (name_ != &_default_name_) {
  847. name_->clear();
  848. }
  849. }
  850. if (_has_bit(1)) {
  851. if (package_ != &_default_package_) {
  852. package_->clear();
  853. }
  854. }
  855. if (_has_bit(7)) {
  856. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  857. }
  858. }
  859. dependency_.Clear();
  860. message_type_.Clear();
  861. enum_type_.Clear();
  862. service_.Clear();
  863. extension_.Clear();
  864. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  865. mutable_unknown_fields()->Clear();
  866. }
  867. bool FileDescriptorProto::MergePartialFromCodedStream(
  868. ::google::protobuf::io::CodedInputStream* input) {
  869. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  870. ::google::protobuf::uint32 tag;
  871. while ((tag = input->ReadTag()) != 0) {
  872. switch (::google::protobuf::internal::WireFormat::GetTagFieldNumber(tag)) {
  873. // optional string name = 1;
  874. case 1: {
  875. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  876. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  877. goto handle_uninterpreted;
  878. }
  879. DO_(::google::protobuf::internal::WireFormat::ReadString(input, mutable_name()));
  880. if (input->ExpectTag(18)) goto parse_package;
  881. break;
  882. }
  883. // optional string package = 2;
  884. case 2: {
  885. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  886. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  887. goto handle_uninterpreted;
  888. }
  889. parse_package:
  890. DO_(::google::protobuf::internal::WireFormat::ReadString(input, mutable_package()));
  891. if (input->ExpectTag(26)) goto parse_dependency;
  892. break;
  893. }
  894. // repeated string dependency = 3;
  895. case 3: {
  896. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  897. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  898. goto handle_uninterpreted;
  899. }
  900. parse_dependency:
  901. DO_(::google::protobuf::internal::WireFormat::ReadString(
  902. input, add_dependency()));
  903. if (input->ExpectTag(26)) goto parse_dependency;
  904. if (input->ExpectTag(34)) goto parse_message_type;
  905. break;
  906. }
  907. // repeated .google.protobuf.DescriptorProto message_type = 4;
  908. case 4: {
  909. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  910. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  911. goto handle_uninterpreted;
  912. }
  913. parse_message_type:
  914. DO_(::google::protobuf::internal::WireFormat::ReadMessageNoVirtual(
  915. input, add_message_type()));
  916. if (input->ExpectTag(34)) goto parse_message_type;
  917. if (input->ExpectTag(42)) goto parse_enum_type;
  918. break;
  919. }
  920. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  921. case 5: {
  922. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  923. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  924. goto handle_uninterpreted;
  925. }
  926. parse_enum_type:
  927. DO_(::google::protobuf::internal::WireFormat::ReadMessageNoVirtual(
  928. input, add_enum_type()));
  929. if (input->ExpectTag(42)) goto parse_enum_type;
  930. if (input->ExpectTag(50)) goto parse_service;
  931. break;
  932. }
  933. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  934. case 6: {
  935. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  936. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  937. goto handle_uninterpreted;
  938. }
  939. parse_service:
  940. DO_(::google::protobuf::internal::WireFormat::ReadMessageNoVirtual(
  941. input, add_service()));
  942. if (input->ExpectTag(50)) goto parse_service;
  943. if (input->ExpectTag(58)) goto parse_extension;
  944. break;
  945. }
  946. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  947. case 7: {
  948. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  949. ::google::protobuf::internal::WireFormat::WIRETYPE_LENGTH_DELIMITED) {
  950. goto handle_uninterpreted;
  951. }
  952. parse_extension:
  953. DO_(::google::protobuf::internal::WireFormat::ReadMessageNoVirtual(
  954. input, add_extension()));
  955. if (input->ExpectTag(58)) goto parse_extension;
  956. if (input->ExpectTag(66)) goto parse_options;
  957. break;
  958. }
  959. // optional .google.protobuf.FileOptions options = 8;
  960. case 8: {
  961. if (::google::protobuf::internal::WireFormat::GetTagWireType(tag) !=
  962. ::google::protobuf::inter

Large files files are truncated, but you can click here to view the full file