PageRenderTime 58ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 2ms

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

http://protobuf.googlecode.com/
C++ | 8146 lines | 6866 code | 916 blank | 364 comment | 1271 complexity | 494427771e4cac70ef6333bc04a93478 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "google/protobuf/descriptor.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace google {
  16. namespace protobuf {
  17. namespace {
  18. const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
  19. const ::google::protobuf::internal::GeneratedMessageReflection*
  20. FileDescriptorSet_reflection_ = NULL;
  21. const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
  22. const ::google::protobuf::internal::GeneratedMessageReflection*
  23. FileDescriptorProto_reflection_ = NULL;
  24. const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
  25. const ::google::protobuf::internal::GeneratedMessageReflection*
  26. DescriptorProto_reflection_ = NULL;
  27. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
  28. const ::google::protobuf::internal::GeneratedMessageReflection*
  29. DescriptorProto_ExtensionRange_reflection_ = NULL;
  30. const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
  31. const ::google::protobuf::internal::GeneratedMessageReflection*
  32. FieldDescriptorProto_reflection_ = NULL;
  33. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
  34. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
  35. const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
  36. const ::google::protobuf::internal::GeneratedMessageReflection*
  37. EnumDescriptorProto_reflection_ = NULL;
  38. const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. EnumValueDescriptorProto_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. ServiceDescriptorProto_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. MethodDescriptorProto_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. FileOptions_reflection_ = NULL;
  50. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
  51. const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
  52. const ::google::protobuf::internal::GeneratedMessageReflection*
  53. MessageOptions_reflection_ = NULL;
  54. const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
  55. const ::google::protobuf::internal::GeneratedMessageReflection*
  56. FieldOptions_reflection_ = NULL;
  57. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
  58. const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
  59. const ::google::protobuf::internal::GeneratedMessageReflection*
  60. EnumOptions_reflection_ = NULL;
  61. const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
  62. const ::google::protobuf::internal::GeneratedMessageReflection*
  63. EnumValueOptions_reflection_ = NULL;
  64. const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
  65. const ::google::protobuf::internal::GeneratedMessageReflection*
  66. ServiceOptions_reflection_ = NULL;
  67. const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
  68. const ::google::protobuf::internal::GeneratedMessageReflection*
  69. MethodOptions_reflection_ = NULL;
  70. const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
  71. const ::google::protobuf::internal::GeneratedMessageReflection*
  72. UninterpretedOption_reflection_ = NULL;
  73. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
  74. const ::google::protobuf::internal::GeneratedMessageReflection*
  75. UninterpretedOption_NamePart_reflection_ = NULL;
  76. const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
  77. const ::google::protobuf::internal::GeneratedMessageReflection*
  78. SourceCodeInfo_reflection_ = NULL;
  79. const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
  80. const ::google::protobuf::internal::GeneratedMessageReflection*
  81. SourceCodeInfo_Location_reflection_ = NULL;
  82. } // namespace
  83. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  84. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  85. const ::google::protobuf::FileDescriptor* file =
  86. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  87. "google/protobuf/descriptor.proto");
  88. GOOGLE_CHECK(file != NULL);
  89. FileDescriptorSet_descriptor_ = file->message_type(0);
  90. static const int FileDescriptorSet_offsets_[1] = {
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
  92. };
  93. FileDescriptorSet_reflection_ =
  94. new ::google::protobuf::internal::GeneratedMessageReflection(
  95. FileDescriptorSet_descriptor_,
  96. FileDescriptorSet::default_instance_,
  97. FileDescriptorSet_offsets_,
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown_fields_),
  100. -1,
  101. ::google::protobuf::DescriptorPool::generated_pool(),
  102. ::google::protobuf::MessageFactory::generated_factory(),
  103. sizeof(FileDescriptorSet));
  104. FileDescriptorProto_descriptor_ = file->message_type(1);
  105. static const int FileDescriptorProto_offsets_[11] = {
  106. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
  107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
  108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
  110. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
  111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
  112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
  117. };
  118. FileDescriptorProto_reflection_ =
  119. new ::google::protobuf::internal::GeneratedMessageReflection(
  120. FileDescriptorProto_descriptor_,
  121. FileDescriptorProto::default_instance_,
  122. FileDescriptorProto_offsets_,
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _unknown_fields_),
  125. -1,
  126. ::google::protobuf::DescriptorPool::generated_pool(),
  127. ::google::protobuf::MessageFactory::generated_factory(),
  128. sizeof(FileDescriptorProto));
  129. DescriptorProto_descriptor_ = file->message_type(2);
  130. static const int DescriptorProto_offsets_[7] = {
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
  138. };
  139. DescriptorProto_reflection_ =
  140. new ::google::protobuf::internal::GeneratedMessageReflection(
  141. DescriptorProto_descriptor_,
  142. DescriptorProto::default_instance_,
  143. DescriptorProto_offsets_,
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _unknown_fields_),
  146. -1,
  147. ::google::protobuf::DescriptorPool::generated_pool(),
  148. ::google::protobuf::MessageFactory::generated_factory(),
  149. sizeof(DescriptorProto));
  150. DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
  151. static const int DescriptorProto_ExtensionRange_offsets_[2] = {
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
  154. };
  155. DescriptorProto_ExtensionRange_reflection_ =
  156. new ::google::protobuf::internal::GeneratedMessageReflection(
  157. DescriptorProto_ExtensionRange_descriptor_,
  158. DescriptorProto_ExtensionRange::default_instance_,
  159. DescriptorProto_ExtensionRange_offsets_,
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
  161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _unknown_fields_),
  162. -1,
  163. ::google::protobuf::DescriptorPool::generated_pool(),
  164. ::google::protobuf::MessageFactory::generated_factory(),
  165. sizeof(DescriptorProto_ExtensionRange));
  166. FieldDescriptorProto_descriptor_ = file->message_type(3);
  167. static const int FieldDescriptorProto_offsets_[8] = {
  168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
  169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
  176. };
  177. FieldDescriptorProto_reflection_ =
  178. new ::google::protobuf::internal::GeneratedMessageReflection(
  179. FieldDescriptorProto_descriptor_,
  180. FieldDescriptorProto::default_instance_,
  181. FieldDescriptorProto_offsets_,
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _unknown_fields_),
  184. -1,
  185. ::google::protobuf::DescriptorPool::generated_pool(),
  186. ::google::protobuf::MessageFactory::generated_factory(),
  187. sizeof(FieldDescriptorProto));
  188. FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
  189. FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
  190. EnumDescriptorProto_descriptor_ = file->message_type(4);
  191. static const int EnumDescriptorProto_offsets_[3] = {
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
  195. };
  196. EnumDescriptorProto_reflection_ =
  197. new ::google::protobuf::internal::GeneratedMessageReflection(
  198. EnumDescriptorProto_descriptor_,
  199. EnumDescriptorProto::default_instance_,
  200. EnumDescriptorProto_offsets_,
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _unknown_fields_),
  203. -1,
  204. ::google::protobuf::DescriptorPool::generated_pool(),
  205. ::google::protobuf::MessageFactory::generated_factory(),
  206. sizeof(EnumDescriptorProto));
  207. EnumValueDescriptorProto_descriptor_ = file->message_type(5);
  208. static const int EnumValueDescriptorProto_offsets_[3] = {
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
  212. };
  213. EnumValueDescriptorProto_reflection_ =
  214. new ::google::protobuf::internal::GeneratedMessageReflection(
  215. EnumValueDescriptorProto_descriptor_,
  216. EnumValueDescriptorProto::default_instance_,
  217. EnumValueDescriptorProto_offsets_,
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _unknown_fields_),
  220. -1,
  221. ::google::protobuf::DescriptorPool::generated_pool(),
  222. ::google::protobuf::MessageFactory::generated_factory(),
  223. sizeof(EnumValueDescriptorProto));
  224. ServiceDescriptorProto_descriptor_ = file->message_type(6);
  225. static const int ServiceDescriptorProto_offsets_[3] = {
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
  227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
  229. };
  230. ServiceDescriptorProto_reflection_ =
  231. new ::google::protobuf::internal::GeneratedMessageReflection(
  232. ServiceDescriptorProto_descriptor_,
  233. ServiceDescriptorProto::default_instance_,
  234. ServiceDescriptorProto_offsets_,
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _unknown_fields_),
  237. -1,
  238. ::google::protobuf::DescriptorPool::generated_pool(),
  239. ::google::protobuf::MessageFactory::generated_factory(),
  240. sizeof(ServiceDescriptorProto));
  241. MethodDescriptorProto_descriptor_ = file->message_type(7);
  242. static const int MethodDescriptorProto_offsets_[4] = {
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
  247. };
  248. MethodDescriptorProto_reflection_ =
  249. new ::google::protobuf::internal::GeneratedMessageReflection(
  250. MethodDescriptorProto_descriptor_,
  251. MethodDescriptorProto::default_instance_,
  252. MethodDescriptorProto_offsets_,
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unknown_fields_),
  255. -1,
  256. ::google::protobuf::DescriptorPool::generated_pool(),
  257. ::google::protobuf::MessageFactory::generated_factory(),
  258. sizeof(MethodDescriptorProto));
  259. FileOptions_descriptor_ = file->message_type(8);
  260. static const int FileOptions_offsets_[10] = {
  261. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
  263. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
  266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
  267. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
  268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
  269. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
  271. };
  272. FileOptions_reflection_ =
  273. new ::google::protobuf::internal::GeneratedMessageReflection(
  274. FileOptions_descriptor_,
  275. FileOptions::default_instance_,
  276. FileOptions_offsets_,
  277. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
  278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _unknown_fields_),
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
  280. ::google::protobuf::DescriptorPool::generated_pool(),
  281. ::google::protobuf::MessageFactory::generated_factory(),
  282. sizeof(FileOptions));
  283. FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
  284. MessageOptions_descriptor_ = file->message_type(9);
  285. static const int MessageOptions_offsets_[3] = {
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
  289. };
  290. MessageOptions_reflection_ =
  291. new ::google::protobuf::internal::GeneratedMessageReflection(
  292. MessageOptions_descriptor_,
  293. MessageOptions::default_instance_,
  294. MessageOptions_offsets_,
  295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fields_),
  297. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
  298. ::google::protobuf::DescriptorPool::generated_pool(),
  299. ::google::protobuf::MessageFactory::generated_factory(),
  300. sizeof(MessageOptions));
  301. FieldOptions_descriptor_ = file->message_type(10);
  302. static const int FieldOptions_offsets_[7] = {
  303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
  305. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
  306. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
  307. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_map_key_),
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
  310. };
  311. FieldOptions_reflection_ =
  312. new ::google::protobuf::internal::GeneratedMessageReflection(
  313. FieldOptions_descriptor_,
  314. FieldOptions::default_instance_,
  315. FieldOptions_offsets_,
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
  317. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fields_),
  318. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
  319. ::google::protobuf::DescriptorPool::generated_pool(),
  320. ::google::protobuf::MessageFactory::generated_factory(),
  321. sizeof(FieldOptions));
  322. FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
  323. EnumOptions_descriptor_ = file->message_type(11);
  324. static const int EnumOptions_offsets_[2] = {
  325. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
  326. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
  327. };
  328. EnumOptions_reflection_ =
  329. new ::google::protobuf::internal::GeneratedMessageReflection(
  330. EnumOptions_descriptor_,
  331. EnumOptions::default_instance_,
  332. EnumOptions_offsets_,
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
  334. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_fields_),
  335. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
  336. ::google::protobuf::DescriptorPool::generated_pool(),
  337. ::google::protobuf::MessageFactory::generated_factory(),
  338. sizeof(EnumOptions));
  339. EnumValueOptions_descriptor_ = file->message_type(12);
  340. static const int EnumValueOptions_offsets_[1] = {
  341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
  342. };
  343. EnumValueOptions_reflection_ =
  344. new ::google::protobuf::internal::GeneratedMessageReflection(
  345. EnumValueOptions_descriptor_,
  346. EnumValueOptions::default_instance_,
  347. EnumValueOptions_offsets_,
  348. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
  349. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _unknown_fields_),
  350. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
  351. ::google::protobuf::DescriptorPool::generated_pool(),
  352. ::google::protobuf::MessageFactory::generated_factory(),
  353. sizeof(EnumValueOptions));
  354. ServiceOptions_descriptor_ = file->message_type(13);
  355. static const int ServiceOptions_offsets_[1] = {
  356. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
  357. };
  358. ServiceOptions_reflection_ =
  359. new ::google::protobuf::internal::GeneratedMessageReflection(
  360. ServiceOptions_descriptor_,
  361. ServiceOptions::default_instance_,
  362. ServiceOptions_offsets_,
  363. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
  364. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _unknown_fields_),
  365. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
  366. ::google::protobuf::DescriptorPool::generated_pool(),
  367. ::google::protobuf::MessageFactory::generated_factory(),
  368. sizeof(ServiceOptions));
  369. MethodOptions_descriptor_ = file->message_type(14);
  370. static const int MethodOptions_offsets_[1] = {
  371. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
  372. };
  373. MethodOptions_reflection_ =
  374. new ::google::protobuf::internal::GeneratedMessageReflection(
  375. MethodOptions_descriptor_,
  376. MethodOptions::default_instance_,
  377. MethodOptions_offsets_,
  378. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
  379. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _unknown_fields_),
  380. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
  381. ::google::protobuf::DescriptorPool::generated_pool(),
  382. ::google::protobuf::MessageFactory::generated_factory(),
  383. sizeof(MethodOptions));
  384. UninterpretedOption_descriptor_ = file->message_type(15);
  385. static const int UninterpretedOption_offsets_[7] = {
  386. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
  387. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
  388. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
  389. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
  390. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
  391. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
  392. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
  393. };
  394. UninterpretedOption_reflection_ =
  395. new ::google::protobuf::internal::GeneratedMessageReflection(
  396. UninterpretedOption_descriptor_,
  397. UninterpretedOption::default_instance_,
  398. UninterpretedOption_offsets_,
  399. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
  400. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _unknown_fields_),
  401. -1,
  402. ::google::protobuf::DescriptorPool::generated_pool(),
  403. ::google::protobuf::MessageFactory::generated_factory(),
  404. sizeof(UninterpretedOption));
  405. UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
  406. static const int UninterpretedOption_NamePart_offsets_[2] = {
  407. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
  408. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
  409. };
  410. UninterpretedOption_NamePart_reflection_ =
  411. new ::google::protobuf::internal::GeneratedMessageReflection(
  412. UninterpretedOption_NamePart_descriptor_,
  413. UninterpretedOption_NamePart::default_instance_,
  414. UninterpretedOption_NamePart_offsets_,
  415. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
  416. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _unknown_fields_),
  417. -1,
  418. ::google::protobuf::DescriptorPool::generated_pool(),
  419. ::google::protobuf::MessageFactory::generated_factory(),
  420. sizeof(UninterpretedOption_NamePart));
  421. SourceCodeInfo_descriptor_ = file->message_type(16);
  422. static const int SourceCodeInfo_offsets_[1] = {
  423. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
  424. };
  425. SourceCodeInfo_reflection_ =
  426. new ::google::protobuf::internal::GeneratedMessageReflection(
  427. SourceCodeInfo_descriptor_,
  428. SourceCodeInfo::default_instance_,
  429. SourceCodeInfo_offsets_,
  430. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
  431. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _unknown_fields_),
  432. -1,
  433. ::google::protobuf::DescriptorPool::generated_pool(),
  434. ::google::protobuf::MessageFactory::generated_factory(),
  435. sizeof(SourceCodeInfo));
  436. SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
  437. static const int SourceCodeInfo_Location_offsets_[4] = {
  438. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
  439. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
  440. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
  441. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
  442. };
  443. SourceCodeInfo_Location_reflection_ =
  444. new ::google::protobuf::internal::GeneratedMessageReflection(
  445. SourceCodeInfo_Location_descriptor_,
  446. SourceCodeInfo_Location::default_instance_,
  447. SourceCodeInfo_Location_offsets_,
  448. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
  449. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _unknown_fields_),
  450. -1,
  451. ::google::protobuf::DescriptorPool::generated_pool(),
  452. ::google::protobuf::MessageFactory::generated_factory(),
  453. sizeof(SourceCodeInfo_Location));
  454. }
  455. namespace {
  456. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  457. inline void protobuf_AssignDescriptorsOnce() {
  458. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  459. &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
  460. }
  461. void protobuf_RegisterTypes(const ::std::string&) {
  462. protobuf_AssignDescriptorsOnce();
  463. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  464. FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
  465. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  466. FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
  467. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  468. DescriptorProto_descriptor_, &DescriptorProto::default_instance());
  469. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  470. DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
  471. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  472. FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
  473. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  474. EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
  475. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  476. EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
  477. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  478. ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
  479. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  480. MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
  481. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  482. FileOptions_descriptor_, &FileOptions::default_instance());
  483. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  484. MessageOptions_descriptor_, &MessageOptions::default_instance());
  485. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  486. FieldOptions_descriptor_, &FieldOptions::default_instance());
  487. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  488. EnumOptions_descriptor_, &EnumOptions::default_instance());
  489. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  490. EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
  491. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  492. ServiceOptions_descriptor_, &ServiceOptions::default_instance());
  493. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  494. MethodOptions_descriptor_, &MethodOptions::default_instance());
  495. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  496. UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
  497. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  498. UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
  499. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  500. SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
  501. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  502. SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
  503. }
  504. } // namespace
  505. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
  506. delete FileDescriptorSet::default_instance_;
  507. delete FileDescriptorSet_reflection_;
  508. delete FileDescriptorProto::default_instance_;
  509. delete FileDescriptorProto_reflection_;
  510. delete DescriptorProto::default_instance_;
  511. delete DescriptorProto_reflection_;
  512. delete DescriptorProto_ExtensionRange::default_instance_;
  513. delete DescriptorProto_ExtensionRange_reflection_;
  514. delete FieldDescriptorProto::default_instance_;
  515. delete FieldDescriptorProto_reflection_;
  516. delete EnumDescriptorProto::default_instance_;
  517. delete EnumDescriptorProto_reflection_;
  518. delete EnumValueDescriptorProto::default_instance_;
  519. delete EnumValueDescriptorProto_reflection_;
  520. delete ServiceDescriptorProto::default_instance_;
  521. delete ServiceDescriptorProto_reflection_;
  522. delete MethodDescriptorProto::default_instance_;
  523. delete MethodDescriptorProto_reflection_;
  524. delete FileOptions::default_instance_;
  525. delete FileOptions_reflection_;
  526. delete MessageOptions::default_instance_;
  527. delete MessageOptions_reflection_;
  528. delete FieldOptions::default_instance_;
  529. delete FieldOptions_reflection_;
  530. delete EnumOptions::default_instance_;
  531. delete EnumOptions_reflection_;
  532. delete EnumValueOptions::default_instance_;
  533. delete EnumValueOptions_reflection_;
  534. delete ServiceOptions::default_instance_;
  535. delete ServiceOptions_reflection_;
  536. delete MethodOptions::default_instance_;
  537. delete MethodOptions_reflection_;
  538. delete UninterpretedOption::default_instance_;
  539. delete UninterpretedOption_reflection_;
  540. delete UninterpretedOption_NamePart::default_instance_;
  541. delete UninterpretedOption_NamePart_reflection_;
  542. delete SourceCodeInfo::default_instance_;
  543. delete SourceCodeInfo_reflection_;
  544. delete SourceCodeInfo_Location::default_instance_;
  545. delete SourceCodeInfo_Location_reflection_;
  546. }
  547. void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  548. static bool already_here = false;
  549. if (already_here) return;
  550. already_here = true;
  551. GOOGLE_PROTOBUF_VERIFY_VERSION;
  552. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  553. "\n google/protobuf/descriptor.proto\022\017goog"
  554. "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
  555. "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
  556. "roto\"\313\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
  557. "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
  558. "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
  559. "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
  560. "le.protobuf.DescriptorProto\0227\n\tenum_type"
  561. "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
  562. "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
  563. "ServiceDescriptorProto\0228\n\textension\030\007 \003("
  564. "\0132%.google.protobuf.FieldDescriptorProto"
  565. "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
  566. "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
  567. "le.protobuf.SourceCodeInfo\"\251\003\n\017Descripto"
  568. "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.go"
  569. "ogle.protobuf.FieldDescriptorProto\0228\n\tex"
  570. "tension\030\006 \003(\0132%.google.protobuf.FieldDes"
  571. "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog"
  572. "le.protobuf.DescriptorProto\0227\n\tenum_type"
  573. "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP"
  574. "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p"
  575. "rotobuf.DescriptorProto.ExtensionRange\0220"
  576. "\n\007options\030\007 \001(\0132\037.google.protobuf.Messag"
  577. "eOptions\032,\n\016ExtensionRange\022\r\n\005start\030\001 \001("
  578. "\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescriptorProto\022"
  579. "\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004"
  580. " \001(\0162+.google.protobuf.FieldDescriptorPr"
  581. "oto.Label\0228\n\004type\030\005 \001(\0162*.google.protobu"
  582. "f.FieldDescriptorProto.Type\022\021\n\ttype_name"
  583. "\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_valu"
  584. "e\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.google.protob"
  585. "uf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020"
  586. "\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYP"
  587. "E_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED"
  588. "64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n"
  589. "\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_M"
  590. "ESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020"
  591. "\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rT"
  592. "YPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_"
  593. "SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n"
  594. "\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001"
  595. "\n\023EnumDescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005v"
  596. "alue\030\002 \003(\0132).google.protobuf.EnumValueDe"
  597. "scriptorProto\022-\n\007options\030\003 \001(\0132\034.google."
  598. "protobuf.EnumOptions\"l\n\030EnumValueDescrip"
  599. "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222"
  600. "\n\007options\030\003 \001(\0132!.google.protobuf.EnumVa"
  601. "lueOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n"
  602. "\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.pro"
  603. "tobuf.MethodDescriptorProto\0220\n\007options\030\003"
  604. " \001(\0132\037.google.protobuf.ServiceOptions\"\177\n"
  605. "\025MethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\n"
  606. "input_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n"
  607. "\007options\030\004 \001(\0132\036.google.protobuf.MethodO"
  608. "ptions\"\351\003\n\013FileOptions\022\024\n\014java_package\030\001"
  609. " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja"
  610. "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g"
  611. "enerate_equals_and_hash\030\024 \001(\010:\005false\022F\n\014"
  612. "optimize_for\030\t \001(\0162).google.protobuf.Fil"
  613. "eOptions.OptimizeMode:\005SPEED\022\022\n\ngo_packa"
  614. "ge\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005f"
  615. "alse\022$\n\025java_generic_services\030\021 \001(\010:\005fal"
  616. "se\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022C"
  617. "\n\024uninterpreted_option\030\347\007 \003(\0132$.google.p"
  618. "rotobuf.UninterpretedOption\":\n\014OptimizeM"
  619. "ode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RU"
  620. "NTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016MessageOptions\022&\n"
  621. "\027message_set_wire_format\030\001 \001(\010:\005false\022.\n"
  622. "\037no_standard_descriptor_accessor\030\002 \001(\010:\005"
  623. "false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.g"
  624. "oogle.protobuf.UninterpretedOption*\t\010\350\007\020"
  625. "\200\200\200\200\002\"\276\002\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#."
  626. "google.protobuf.FieldOptions.CType:\006STRI"
  627. "NG\022\016\n\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 \001(\010:\005false\022"
  628. "\031\n\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experiment"
  629. "al_map_key\030\t \001(\t\022\023\n\004weak\030\n \001(\010:\005false\022C\n"
  630. "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr"
  631. "otobuf.UninterpretedOption\"/\n\005CType\022\n\n\006S"
  632. "TRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002*\t\010\350\007"
  633. "\020\200\200\200\200\002\"x\n\013EnumOptions\022\031\n\013allow_alias\030\002 \001"
  634. "(\010:\004true\022C\n\024uninterpreted_option\030\347\007 \003(\0132"
  635. "$.google.protobuf.UninterpretedOption*\t\010"
  636. "\350\007\020\200\200\200\200\002\"b\n\020EnumValueOptions\022C\n\024uninterp"
  637. "reted_option\030\347\007 \003(\0132$.google.protobuf.Un"
  638. "interpretedOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceO"
  639. "ptions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
  640. "google.protobuf.UninterpretedOption*\t\010\350\007"
  641. "\020\200\200\200\200\002\"_\n\rMethodOptions\022C\n\024uninterpreted"
  642. "_option\030\347\007 \003(\0132$.google.protobuf.Uninter"
  643. "pretedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterprete"
  644. "dOption\022;\n\004name\030\002 \003(\0132-.google.protobuf."
  645. "UninterpretedOption.NamePart\022\030\n\020identifi"
  646. "er_value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001"
  647. "(\004\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double"
  648. "_value\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017ag"
  649. "gregate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_"
  650. "part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\261\001\n\016Sou"
  651. "rceCodeInfo\022:\n\010location\030\001 \003(\0132(.google.p"
  652. "rotobuf.SourceCodeInfo.Location\032c\n\010Locat"
  653. "ion\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022"
  654. "\030\n\020leading_comments\030\003 \001(\t\022\031\n\021trailing_co"
  655. "mments\030\004 \001(\tB)\n\023com.google.protobufB\020Des"
  656. "criptorProtosH\001", 4135);
  657. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  658. "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
  659. FileDescriptorSet::default_instance_ = new FileDescriptorSet();
  660. FileDescriptorProto::default_instance_ = new FileDescriptorProto();
  661. DescriptorProto::default_instance_ = new DescriptorProto();
  662. DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
  663. FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
  664. EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
  665. EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
  666. ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
  667. MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
  668. FileOptions::default_instance_ = new FileOptions();
  669. MessageOptions::default_instance_ = new MessageOptions();
  670. FieldOptions::default_instance_ = new FieldOptions();
  671. EnumOptions::default_instance_ = new EnumOptions();
  672. EnumValueOptions::default_instance_ = new EnumValueOptions();
  673. ServiceOptions::default_instance_ = new ServiceOptions();
  674. MethodOptions::default_instance_ = new MethodOptions();
  675. UninterpretedOption::default_instance_ = new UninterpretedOption();
  676. UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
  677. SourceCodeInfo::default_instance_ = new SourceCodeInfo();
  678. SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
  679. FileDescriptorSet::default_instance_->InitAsDefaultInstance();
  680. FileDescriptorProto::default_instance_->InitAsDefaultInstance();
  681. DescriptorProto::default_instance_->InitAsDefaultInstance();
  682. DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
  683. FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
  684. EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
  685. EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
  686. ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
  687. MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
  688. FileOptions::default_instance_->InitAsDefaultInstance();
  689. MessageOptions::default_instance_->InitAsDefaultInstance();
  690. FieldOptions::default_instance_->InitAsDefaultInstance();
  691. EnumOptions::default_instance_->InitAsDefaultInstance();
  692. EnumValueOptions::default_instance_->InitAsDefaultInstance();
  693. ServiceOptions::default_instance_->InitAsDefaultInstance();
  694. MethodOptions::default_instance_->InitAsDefaultInstance();
  695. UninterpretedOption::default_instance_->InitAsDefaultInstance();
  696. UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
  697. SourceCodeInfo::default_instance_->InitAsDefaultInstance();
  698. SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
  699. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
  700. }
  701. // Force AddDescriptors() to be called at static initialization time.
  702. struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
  703. StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
  704. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  705. }
  706. } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
  707. // ===================================================================
  708. #ifndef _MSC_VER
  709. const int FileDescriptorSet::kFileFieldNumber;
  710. #endif // !_MSC_VER
  711. FileDescriptorSet::FileDescriptorSet()
  712. : ::google::protobuf::Message() {
  713. SharedCtor();
  714. }
  715. void FileDescriptorSet::InitAsDefaultInstance() {
  716. }
  717. FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
  718. : ::google::protobuf::Message() {
  719. SharedCtor();
  720. MergeFrom(from);
  721. }
  722. void FileDescriptorSet::SharedCtor() {
  723. _cached_size_ = 0;
  724. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  725. }
  726. FileDescriptorSet::~FileDescriptorSet() {
  727. SharedDtor();
  728. }
  729. void FileDescriptorSet::SharedDtor() {
  730. if (this != default_instance_) {
  731. }
  732. }
  733. void FileDescriptorSet::SetCachedSize(int size) const {
  734. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  735. _cached_size_ = size;
  736. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  737. }
  738. const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
  739. protobuf_AssignDescriptorsOnce();
  740. return FileDescriptorSet_descriptor_;
  741. }
  742. const FileDescriptorSet& FileDescriptorSet::default_instance() {
  743. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  744. return *default_instance_;
  745. }
  746. FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
  747. FileDescriptorSet* FileDescriptorSet::New() const {
  748. return new FileDescriptorSet;
  749. }
  750. void FileDescriptorSet::Clear() {
  751. file_.Clear();
  752. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  753. mutable_unknown_fields()->Clear();
  754. }
  755. bool FileDescriptorSet::MergePartialFromCodedStream(
  756. ::google::protobuf::io::CodedInputStream* input) {
  757. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  758. ::google::protobuf::uint32 tag;
  759. while ((tag = input->ReadTag()) != 0) {
  760. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  761. // repeated .google.protobuf.FileDescriptorProto file = 1;
  762. case 1: {
  763. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  764. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  765. parse_file:
  766. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  767. input, add_file()));
  768. } else {
  769. goto handle_uninterpreted;
  770. }
  771. if (input->ExpectTag(10)) goto parse_file;
  772. if (input->ExpectAtEnd()) return true;
  773. break;
  774. }
  775. default: {
  776. handle_uninterpreted:
  777. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  778. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  779. return true;
  780. }
  781. DO_(::google::protobuf::internal::WireFormat::SkipField(
  782. input, tag, mutable_unknown_fields()));
  783. break;
  784. }
  785. }
  786. }
  787. return true;
  788. #undef DO_
  789. }
  790. void FileDescriptorSet::SerializeWithCachedSizes(
  791. ::google::protobuf::io::CodedOutputStream* output) const {
  792. // repeated .google.protobuf.FileDescriptorProto file = 1;
  793. for (int i = 0; i < this->file_size(); i++) {
  794. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  795. 1, this->file(i), output);
  796. }
  797. if (!unknown_fields().empty()) {
  798. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  799. unknown_fields(), output);
  800. }
  801. }
  802. ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
  803. ::google::protobuf::uint8* target) const {
  804. // repeated .google.protobuf.FileDescriptorProto file = 1;
  805. for (int i = 0; i < this->file_size(); i++) {
  806. target = ::google::protobuf::internal::WireFormatLite::
  807. WriteMessageNoVirtualToArray(
  808. 1, this->file(i), target);
  809. }
  810. if (!unknown_fields().empty()) {
  811. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  812. unknown_fields(), target);
  813. }
  814. return target;
  815. }
  816. int FileDescriptorSet::ByteSize() const {
  817. int total_size = 0;
  818. // repeated .google.protobuf.FileDescriptorProto file = 1;
  819. total_size += 1 * this->file_size();
  820. for (int i = 0; i < this->file_size(); i++) {
  821. total_size +=
  822. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  823. this->file(i));
  824. }
  825. if (!unknown_fields().empty()) {
  826. total_size +=
  827. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  828. unknown_fields());
  829. }
  830. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  831. _cached_size_ = total_size;
  832. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  833. return total_size;
  834. }
  835. void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
  836. GOOGLE_CHECK_NE(&from, this);
  837. const FileDescriptorSet* source =
  838. ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorSet*>(
  839. &from);
  840. if (source == NULL) {
  841. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  842. } else {
  843. MergeFrom(*source);
  844. }
  845. }
  846. void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
  847. GOOGLE_CHECK_NE(&from, this);
  848. file_.MergeFrom(from.file_);
  849. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  850. }
  851. void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
  852. if (&from == this) return;
  853. Clear();
  854. MergeFrom(from);
  855. }
  856. void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
  857. if (&from == this) return;
  858. Clear();
  859. MergeFrom(from);
  860. }
  861. bool FileDescriptorSet::IsInitialized() const {
  862. for (int i = 0; i < file_size(); i++) {
  863. if (!this->file(i).IsInitialized()) return false;
  864. }
  865. return true;
  866. }
  867. void FileDescriptorSet::Swap(FileDescriptorSet* other) {
  868. if (other != this) {
  869. file_.Swap(&other->file_);
  870. std::swap(_has_bits_[0], other->_has_bits_[0]);
  871. _unknown_fields_.Swap(&other->_unknown_fields_);
  872. std::swap(_cached_size_, other->_cached_size_);
  873. }
  874. }
  875. ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
  876. protobuf_AssignDescriptorsOnce();
  877. ::google::protobuf::Metadata metadata;
  878. metadata.descriptor = FileDescriptorSet_descriptor_;
  879. metadata.reflection = FileDescriptorSet_reflection_;
  880. return metadata;
  881. }
  882. // ===================================================================
  883. #ifndef _MSC_VER
  884. const int FileDescriptorProto::kNameFieldNumber;
  885. const int FileDescriptorProto::kPackageFieldNumber;
  886. const int FileDescriptorProto::kDependencyFieldNumber;
  887. const int FileDescriptorProto::kPublicDependencyFieldNumber;
  888. const int FileDescriptorProto::kWeakDependencyFieldNumber;
  889. const int FileDescriptorProto::kMessageTypeFieldNumber;
  890. const int FileDescriptorProto::kEnumTypeFieldNumber;
  891. const int FileDescriptorProto::kServiceFieldNumber;
  892. const int FileDescriptorProto::kExtensionFieldNumber;
  893. const int FileDescriptorProto::kOptionsFieldNumber;
  894. const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
  895. #endif // !_MSC_VER
  896. FileDescriptorProto::FileDescriptorProto()
  897. : ::google::protobuf::Message() {
  898. SharedCtor();
  899. }
  900. void FileDescriptorProto::InitAsDefaultInstance() {
  901. options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
  902. source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
  903. }
  904. FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
  905. : ::google::protobuf::Message() {
  906. SharedCtor();
  907. MergeFrom(from);
  908. }
  909. void FileDescriptorProto::SharedCtor() {
  910. _cached_size_ = 0;
  911. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  912. package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  913. options_ = NULL;
  914. source_code_info_ = NULL;
  915. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  916. }
  917. FileDescriptorProto::~FileDescriptorProto() {
  918. SharedDtor();
  919. }
  920. void FileDescriptorProto::SharedDtor() {
  921. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  922. delete name_;
  923. }
  924. if (package_ != &::google::protobuf::internal::GetEmptyString()) {
  925. delete package_;
  926. }
  927. if (this != default_instance_) {
  928. delete options_;
  929. delete source_code_info_;
  930. }
  931. }
  932. void FileDescriptorProto::SetCachedSize(int size) const {
  933. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  934. _cached_size_ = size;
  935. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  936. }
  937. const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
  938. protobuf_AssignDescriptorsOnce();
  939. return FileDescriptorProto_descriptor_;
  940. }
  941. const FileDescriptorProto& FileDescriptorProto::default_instance() {
  942. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  943. return *default_instance_;
  944. }
  945. FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
  946. FileDescriptorProto* FileDescriptorProto::New() const {
  947. return new FileDescriptorProto;
  948. }
  949. void FileDescriptorProto::Clear() {
  950. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  951. if (has_name()) {
  952. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  953. name_->clear();
  954. }
  955. }
  956. if (has_package()) {
  957. if (package_ != &::google::protobuf::internal::GetEmptyString()) {
  958. package_->clear();
  959. }
  960. }
  961. }
  962. if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  963. if (has_options()) {
  964. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  965. }
  966. if (has_source_code_info()) {
  967. if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
  968. }
  969. }
  970. dependency_.Clear();
  971. public_dependency_.Clear();
  972. weak_dependency_.Clear();
  973. message_type_.Clear();
  974. enum_type_.Clear();
  975. service_.Clear();
  976. extension_.Clear();
  977. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  978. mutable_unknown_fields()->Clear();
  979. }
  980. bool FileDescriptorProto::MergePartialFromCodedStream(
  981. ::google::protobuf::io::CodedInputStream* input) {
  982. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  983. ::google::protobuf::uint32 tag;
  984. while ((tag = input->ReadTag()) != 0) {
  985. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  986. // optional string name = 1;
  987. case 1: {
  988. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  989. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  990. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  991. input, this->mutable_name()));
  992. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  993. this->name().data(), this->name().length(),
  994. ::google::protobuf::internal::WireFormat::PARSE);
  995. } else {
  996. goto handle_uninterpreted;
  997. }
  998. if (input->ExpectTag(18)) goto parse_package;
  999. break;
  1000. }
  1001. // optional string package = 2;
  1002. case 2: {
  1003. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1004. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1005. parse_package:
  1006. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1007. input, this->mutable_package()));
  1008. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1009. this->package().data(), this->package().length(),
  1010. ::google::protobuf::internal::WireFormat::PARSE);
  1011. } else {
  1012. goto handle_uninterpreted;
  1013. }
  1014. if (input->ExpectTag(26)) goto parse_dependency;
  1015. break;
  1016. }
  1017. // repeated string dependency = 3;
  1018. case 3: {
  1019. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1020. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1021. parse_dependency:
  1022. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1023. input, this->add_dependency()));
  1024. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1025. this->dependency(this->dependency_size() - 1).data(),
  1026. this->dependency(this->dependency_size() - 1).length(),
  1027. ::google::protobuf::internal::WireFormat::PARSE);
  1028. } else {
  1029. goto handle_uninterpreted;
  1030. }
  1031. if (input->ExpectTag(26)) goto parse_dependency;
  1032. if (input->ExpectTag(34)) goto parse_message_type;
  1033. break;
  1034. }
  1035. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1036. case 4: {
  1037. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1038. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1039. parse_message_type:
  1040. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1041. input, add_message_type()));
  1042. } else {
  1043. goto handle_uninterpreted;
  1044. }
  1045. if (input->ExpectTag(34)) goto parse_message_type;
  1046. if (input->ExpectTag(42)) goto parse_enum_type;
  1047. break;
  1048. }
  1049. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1050. case 5: {
  1051. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1052. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1053. parse_enum_type:
  1054. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1055. input, add_enum_type()));
  1056. } else {
  1057. goto handle_uninterpreted;
  1058. }
  1059. if (input->ExpectTag(42)) goto parse_enum_type;
  1060. if (input->ExpectTag(50)) goto parse_service;
  1061. break;
  1062. }
  1063. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1064. case 6: {
  1065. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1066. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1067. parse_service:
  1068. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1069. input, add_service()));
  1070. } else {
  1071. goto handle_uninterpreted;
  1072. }
  1073. if (input->ExpectTag(50)) goto parse_service;
  1074. if (input->ExpectTag(58)) goto parse_extension;
  1075. break;
  1076. }
  1077. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1078. case 7: {
  1079. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1080. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1081. parse_extension:
  1082. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1083. input, add_extension()));
  1084. } else {
  1085. goto handle_uninterpreted;
  1086. }
  1087. if (input->ExpectTag(58)) goto parse_extension;
  1088. if (input->ExpectTag(66)) goto parse_options;
  1089. break;
  1090. }
  1091. // optional .google.protobuf.FileOptions options = 8;
  1092. case 8: {
  1093. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1094. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1095. parse_options:
  1096. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1097. input, mutable_options()));
  1098. } else {
  1099. goto handle_uninterpreted;
  1100. }
  1101. if (input->ExpectTag(74)) goto parse_source_code_info;
  1102. break;
  1103. }
  1104. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1105. case 9: {
  1106. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1107. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1108. parse_source_code_info:
  1109. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1110. input, mutable_source_code_info()));
  1111. } else {
  1112. goto handle_uninterpreted;
  1113. }
  1114. if (input->ExpectTag(80)) goto parse_public_dependency;
  1115. break;
  1116. }
  1117. // repeated int32 public_dependency = 10;
  1118. case 10: {
  1119. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1120. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1121. parse_public_dependency:
  1122. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1123. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1124. 1, 80, input, this->mutable_public_dependency())));
  1125. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  1126. == ::google::protobuf::internal::WireFormatLite::
  1127. WIRETYPE_LENGTH_DELIMITED) {
  1128. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1129. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1130. input, this->mutable_public_dependency())));
  1131. } else {
  1132. goto handle_uninterpreted;
  1133. }
  1134. if (input->ExpectTag(80)) goto parse_public_dependency;
  1135. if (input->ExpectTag(88)) goto parse_weak_dependency;
  1136. break;
  1137. }
  1138. // repeated int32 weak_dependency = 11;
  1139. case 11: {
  1140. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1141. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1142. parse_weak_dependency:
  1143. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1144. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1145. 1, 88, input, this->mutable_weak_dependency())));
  1146. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  1147. == ::google::protobuf::internal::WireFormatLite::
  1148. WIRETYPE_LENGTH_DELIMITED) {
  1149. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1150. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1151. input, this->mutable_weak_dependency())));
  1152. } else {
  1153. goto handle_uninterpreted;
  1154. }
  1155. if (input->ExpectTag(88)) goto parse_weak_dependency;
  1156. if (input->ExpectAtEnd()) return true;
  1157. break;
  1158. }
  1159. default: {
  1160. handle_uninterpreted:
  1161. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1162. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1163. return true;
  1164. }
  1165. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1166. input, tag, mutable_unknown_fields()));
  1167. break;
  1168. }
  1169. }
  1170. }
  1171. return true;
  1172. #undef DO_
  1173. }
  1174. void FileDescriptorProto::SerializeWithCachedSizes(
  1175. ::google::protobuf::io::CodedOutputStream* output) const {
  1176. // optional string name = 1;
  1177. if (has_name()) {
  1178. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1179. this->name().data(), this->name().length(),
  1180. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1181. ::google::protobuf::internal::WireFormatLite::WriteString(
  1182. 1, this->name(), output);
  1183. }
  1184. // optional string package = 2;
  1185. if (has_package()) {
  1186. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1187. this->package().data(), this->package().length(),
  1188. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1189. ::google::protobuf::internal::WireFormatLite::WriteString(
  1190. 2, this->package(), output);
  1191. }
  1192. // repeated string dependency = 3;
  1193. for (int i = 0; i < this->dependency_size(); i++) {
  1194. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1195. this->dependency(i).data(), this->dependency(i).length(),
  1196. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1197. ::google::protobuf::internal::WireFormatLite::WriteString(
  1198. 3, this->dependency(i), output);
  1199. }
  1200. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1201. for (int i = 0; i < this->message_type_size(); i++) {
  1202. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1203. 4, this->message_type(i), output);
  1204. }
  1205. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1206. for (int i = 0; i < this->enum_type_size(); i++) {
  1207. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1208. 5, this->enum_type(i), output);
  1209. }
  1210. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1211. for (int i = 0; i < this->service_size(); i++) {
  1212. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1213. 6, this->service(i), output);
  1214. }
  1215. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1216. for (int i = 0; i < this->extension_size(); i++) {
  1217. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1218. 7, this->extension(i), output);
  1219. }
  1220. // optional .google.protobuf.FileOptions options = 8;
  1221. if (has_options()) {
  1222. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1223. 8, this->options(), output);
  1224. }
  1225. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1226. if (has_source_code_info()) {
  1227. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1228. 9, this->source_code_info(), output);
  1229. }
  1230. // repeated int32 public_dependency = 10;
  1231. for (int i = 0; i < this->public_dependency_size(); i++) {
  1232. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1233. 10, this->public_dependency(i), output);
  1234. }
  1235. // repeated int32 weak_dependency = 11;
  1236. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1237. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1238. 11, this->weak_dependency(i), output);
  1239. }
  1240. if (!unknown_fields().empty()) {
  1241. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1242. unknown_fields(), output);
  1243. }
  1244. }
  1245. ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
  1246. ::google::protobuf::uint8* target) const {
  1247. // optional string name = 1;
  1248. if (has_name()) {
  1249. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1250. this->name().data(), this->name().length(),
  1251. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1252. target =
  1253. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1254. 1, this->name(), target);
  1255. }
  1256. // optional string package = 2;
  1257. if (has_package()) {
  1258. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1259. this->package().data(), this->package().length(),
  1260. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1261. target =
  1262. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1263. 2, this->package(), target);
  1264. }
  1265. // repeated string dependency = 3;
  1266. for (int i = 0; i < this->dependency_size(); i++) {
  1267. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1268. this->dependency(i).data(), this->dependency(i).length(),
  1269. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1270. target = ::google::protobuf::internal::WireFormatLite::
  1271. WriteStringToArray(3, this->dependency(i), target);
  1272. }
  1273. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1274. for (int i = 0; i < this->message_type_size(); i++) {
  1275. target = ::google::protobuf::internal::WireFormatLite::
  1276. WriteMessageNoVirtualToArray(
  1277. 4, this->message_type(i), target);
  1278. }
  1279. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1280. for (int i = 0; i < this->enum_type_size(); i++) {
  1281. target = ::google::protobuf::internal::WireFormatLite::
  1282. WriteMessageNoVirtualToArray(
  1283. 5, this->enum_type(i), target);
  1284. }
  1285. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1286. for (int i = 0; i < this->service_size(); i++) {
  1287. target = ::google::protobuf::internal::WireFormatLite::
  1288. WriteMessageNoVirtualToArray(
  1289. 6, this->service(i), target);
  1290. }
  1291. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1292. for (int i = 0; i < this->extension_size(); i++) {
  1293. target = ::google::protobuf::internal::WireFormatLite::
  1294. WriteMessageNoVirtualToArray(
  1295. 7, this->extension(i), target);
  1296. }
  1297. // optional .google.protobuf.FileOptions options = 8;
  1298. if (has_options()) {
  1299. target = ::google::protobuf::internal::WireFormatLite::
  1300. WriteMessageNoVirtualToArray(
  1301. 8, this->options(), target);
  1302. }
  1303. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1304. if (has_source_code_info()) {
  1305. target = ::google::protobuf::internal::WireFormatLite::
  1306. WriteMessageNoVirtualToArray(
  1307. 9, this->source_code_info(), target);
  1308. }
  1309. // repeated int32 public_dependency = 10;
  1310. for (int i = 0; i < this->public_dependency_size(); i++) {
  1311. target = ::google::protobuf::internal::WireFormatLite::
  1312. WriteInt32ToArray(10, this->public_dependency(i), target);
  1313. }
  1314. // repeated int32 weak_dependency = 11;
  1315. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1316. target = ::google::protobuf::internal::WireFormatLite::
  1317. WriteInt32ToArray(11, this->weak_dependency(i), target);
  1318. }
  1319. if (!unknown_fields().empty()) {
  1320. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1321. unknown_fields(), target);
  1322. }
  1323. return target;
  1324. }
  1325. int FileDescriptorProto::ByteSize() const {
  1326. int total_size = 0;
  1327. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1328. // optional string name = 1;
  1329. if (has_name()) {
  1330. total_size += 1 +
  1331. ::google::protobuf::internal::WireFormatLite::StringSize(
  1332. this->name());
  1333. }
  1334. // optional string package = 2;
  1335. if (has_package()) {
  1336. total_size += 1 +
  1337. ::google::protobuf::internal::WireFormatLite::StringSize(
  1338. this->package());
  1339. }
  1340. }
  1341. if (_has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  1342. // optional .google.protobuf.FileOptions options = 8;
  1343. if (has_options()) {
  1344. total_size += 1 +
  1345. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1346. this->options());
  1347. }
  1348. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1349. if (has_source_code_info()) {
  1350. total_size += 1 +
  1351. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1352. this->source_code_info());
  1353. }
  1354. }
  1355. // repeated string dependency = 3;
  1356. total_size += 1 * this->dependency_size();
  1357. for (int i = 0; i < this->dependency_size(); i++) {
  1358. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  1359. this->dependency(i));
  1360. }
  1361. // repeated int32 public_dependency = 10;
  1362. {
  1363. int data_size = 0;
  1364. for (int i = 0; i < this->public_dependency_size(); i++) {
  1365. data_size += ::google::protobuf::internal::WireFormatLite::
  1366. Int32Size(this->public_dependency(i));
  1367. }
  1368. total_size += 1 * this->public_dependency_size() + data_size;
  1369. }
  1370. // repeated int32 weak_dependency = 11;
  1371. {
  1372. int data_size = 0;
  1373. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1374. data_size += ::google::protobuf::internal::WireFormatLite::
  1375. Int32Size(this->weak_dependency(i));
  1376. }
  1377. total_size += 1 * this->weak_dependency_size() + data_size;
  1378. }
  1379. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1380. total_size += 1 * this->message_type_size();
  1381. for (int i = 0; i < this->message_type_size(); i++) {
  1382. total_size +=
  1383. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1384. this->message_type(i));
  1385. }
  1386. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1387. total_size += 1 * this->enum_type_size();
  1388. for (int i = 0; i < this->enum_type_size(); i++) {
  1389. total_size +=
  1390. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1391. this->enum_type(i));
  1392. }
  1393. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1394. total_size += 1 * this->service_size();
  1395. for (int i = 0; i < this->service_size(); i++) {
  1396. total_size +=
  1397. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1398. this->service(i));
  1399. }
  1400. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1401. total_size += 1 * this->extension_size();
  1402. for (int i = 0; i < this->extension_size(); i++) {
  1403. total_size +=
  1404. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1405. this->extension(i));
  1406. }
  1407. if (!unknown_fields().empty()) {
  1408. total_size +=
  1409. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1410. unknown_fields());
  1411. }
  1412. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1413. _cached_size_ = total_size;
  1414. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1415. return total_size;
  1416. }
  1417. void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  1418. GOOGLE_CHECK_NE(&from, this);
  1419. const FileDescriptorProto* source =
  1420. ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorProto*>(
  1421. &from);
  1422. if (source == NULL) {
  1423. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1424. } else {
  1425. MergeFrom(*source);
  1426. }
  1427. }
  1428. void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
  1429. GOOGLE_CHECK_NE(&from, this);
  1430. dependency_.MergeFrom(from.dependency_);
  1431. public_dependency_.MergeFrom(from.public_dependency_);
  1432. weak_dependency_.MergeFrom(from.weak_dependency_);
  1433. message_type_.MergeFrom(from.message_type_);
  1434. enum_type_.MergeFrom(from.enum_type_);
  1435. service_.MergeFrom(from.service_);
  1436. extension_.MergeFrom(from.extension_);
  1437. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1438. if (from.has_name()) {
  1439. set_name(from.name());
  1440. }
  1441. if (from.has_package()) {
  1442. set_package(from.package());
  1443. }
  1444. }
  1445. if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  1446. if (from.has_options()) {
  1447. mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
  1448. }
  1449. if (from.has_source_code_info()) {
  1450. mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
  1451. }
  1452. }
  1453. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1454. }
  1455. void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  1456. if (&from == this) return;
  1457. Clear();
  1458. MergeFrom(from);
  1459. }
  1460. void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
  1461. if (&from == this) return;
  1462. Clear();
  1463. MergeFrom(from);
  1464. }
  1465. bool FileDescriptorProto::IsInitialized() const {
  1466. for (int i = 0; i < message_type_size(); i++) {
  1467. if (!this->message_type(i).IsInitialized()) return false;
  1468. }
  1469. for (int i = 0; i < enum_type_size(); i++) {
  1470. if (!this->enum_type(i).IsInitialized()) return false;
  1471. }
  1472. for (int i = 0; i < service_size(); i++) {
  1473. if (!this->service(i).IsInitialized()) return false;
  1474. }
  1475. for (int i = 0; i < extension_size(); i++) {
  1476. if (!this->extension(i).IsInitialized()) return false;
  1477. }
  1478. if (has_options()) {
  1479. if (!this->options().IsInitialized()) return false;
  1480. }
  1481. return true;
  1482. }
  1483. void FileDescriptorProto::Swap(FileDescriptorProto* other) {
  1484. if (other != this) {
  1485. std::swap(name_, other->name_);
  1486. std::swap(package_, other->package_);
  1487. dependency_.Swap(&other->dependency_);
  1488. public_dependency_.Swap(&other->public_dependency_);
  1489. weak_dependency_.Swap(&other->weak_dependency_);
  1490. message_type_.Swap(&other->message_type_);
  1491. enum_type_.Swap(&other->enum_type_);
  1492. service_.Swap(&other->service_);
  1493. extension_.Swap(&other->extension_);
  1494. std::swap(options_, other->options_);
  1495. std::swap(source_code_info_, other->source_code_info_);
  1496. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1497. _unknown_fields_.Swap(&other->_unknown_fields_);
  1498. std::swap(_cached_size_, other->_cached_size_);
  1499. }
  1500. }
  1501. ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
  1502. protobuf_AssignDescriptorsOnce();
  1503. ::google::protobuf::Metadata metadata;
  1504. metadata.descriptor = FileDescriptorProto_descriptor_;
  1505. metadata.reflection = FileDescriptorProto_reflection_;
  1506. return metadata;
  1507. }
  1508. // ===================================================================
  1509. #ifndef _MSC_VER
  1510. const int DescriptorProto_ExtensionRange::kStartFieldNumber;
  1511. const int DescriptorProto_ExtensionRange::kEndFieldNumber;
  1512. #endif // !_MSC_VER
  1513. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
  1514. : ::google::protobuf::Message() {
  1515. SharedCtor();
  1516. }
  1517. void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
  1518. }
  1519. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
  1520. : ::google::protobuf::Message() {
  1521. SharedCtor();
  1522. MergeFrom(from);
  1523. }
  1524. void DescriptorProto_ExtensionRange::SharedCtor() {
  1525. _cached_size_ = 0;
  1526. start_ = 0;
  1527. end_ = 0;
  1528. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1529. }
  1530. DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
  1531. SharedDtor();
  1532. }
  1533. void DescriptorProto_ExtensionRange::SharedDtor() {
  1534. if (this != default_instance_) {
  1535. }
  1536. }
  1537. void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
  1538. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1539. _cached_size_ = size;
  1540. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1541. }
  1542. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
  1543. protobuf_AssignDescriptorsOnce();
  1544. return DescriptorProto_ExtensionRange_descriptor_;
  1545. }
  1546. const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
  1547. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1548. return *default_instance_;
  1549. }
  1550. DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
  1551. DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New() const {
  1552. return new DescriptorProto_ExtensionRange;
  1553. }
  1554. void DescriptorProto_ExtensionRange::Clear() {
  1555. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1556. start_ = 0;
  1557. end_ = 0;
  1558. }
  1559. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1560. mutable_unknown_fields()->Clear();
  1561. }
  1562. bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
  1563. ::google::protobuf::io::CodedInputStream* input) {
  1564. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1565. ::google::protobuf::uint32 tag;
  1566. while ((tag = input->ReadTag()) != 0) {
  1567. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1568. // optional int32 start = 1;
  1569. case 1: {
  1570. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1571. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1572. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1573. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1574. input, &start_)));
  1575. set_has_start();
  1576. } else {
  1577. goto handle_uninterpreted;
  1578. }
  1579. if (input->ExpectTag(16)) goto parse_end;
  1580. break;
  1581. }
  1582. // optional int32 end = 2;
  1583. case 2: {
  1584. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1585. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  1586. parse_end:
  1587. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1588. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1589. input, &end_)));
  1590. set_has_end();
  1591. } else {
  1592. goto handle_uninterpreted;
  1593. }
  1594. if (input->ExpectAtEnd()) return true;
  1595. break;
  1596. }
  1597. default: {
  1598. handle_uninterpreted:
  1599. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1600. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1601. return true;
  1602. }
  1603. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1604. input, tag, mutable_unknown_fields()));
  1605. break;
  1606. }
  1607. }
  1608. }
  1609. return true;
  1610. #undef DO_
  1611. }
  1612. void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
  1613. ::google::protobuf::io::CodedOutputStream* output) const {
  1614. // optional int32 start = 1;
  1615. if (has_start()) {
  1616. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  1617. }
  1618. // optional int32 end = 2;
  1619. if (has_end()) {
  1620. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  1621. }
  1622. if (!unknown_fields().empty()) {
  1623. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1624. unknown_fields(), output);
  1625. }
  1626. }
  1627. ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
  1628. ::google::protobuf::uint8* target) const {
  1629. // optional int32 start = 1;
  1630. if (has_start()) {
  1631. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  1632. }
  1633. // optional int32 end = 2;
  1634. if (has_end()) {
  1635. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  1636. }
  1637. if (!unknown_fields().empty()) {
  1638. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1639. unknown_fields(), target);
  1640. }
  1641. return target;
  1642. }
  1643. int DescriptorProto_ExtensionRange::ByteSize() const {
  1644. int total_size = 0;
  1645. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1646. // optional int32 start = 1;
  1647. if (has_start()) {
  1648. total_size += 1 +
  1649. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1650. this->start());
  1651. }
  1652. // optional int32 end = 2;
  1653. if (has_end()) {
  1654. total_size += 1 +
  1655. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1656. this->end());
  1657. }
  1658. }
  1659. if (!unknown_fields().empty()) {
  1660. total_size +=
  1661. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1662. unknown_fields());
  1663. }
  1664. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1665. _cached_size_ = total_size;
  1666. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1667. return total_size;
  1668. }
  1669. void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
  1670. GOOGLE_CHECK_NE(&from, this);
  1671. const DescriptorProto_ExtensionRange* source =
  1672. ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto_ExtensionRange*>(
  1673. &from);
  1674. if (source == NULL) {
  1675. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1676. } else {
  1677. MergeFrom(*source);
  1678. }
  1679. }
  1680. void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
  1681. GOOGLE_CHECK_NE(&from, this);
  1682. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1683. if (from.has_start()) {
  1684. set_start(from.start());
  1685. }
  1686. if (from.has_end()) {
  1687. set_end(from.end());
  1688. }
  1689. }
  1690. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1691. }
  1692. void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
  1693. if (&from == this) return;
  1694. Clear();
  1695. MergeFrom(from);
  1696. }
  1697. void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
  1698. if (&from == this) return;
  1699. Clear();
  1700. MergeFrom(from);
  1701. }
  1702. bool DescriptorProto_ExtensionRange::IsInitialized() const {
  1703. return true;
  1704. }
  1705. void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
  1706. if (other != this) {
  1707. std::swap(start_, other->start_);
  1708. std::swap(end_, other->end_);
  1709. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1710. _unknown_fields_.Swap(&other->_unknown_fields_);
  1711. std::swap(_cached_size_, other->_cached_size_);
  1712. }
  1713. }
  1714. ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
  1715. protobuf_AssignDescriptorsOnce();
  1716. ::google::protobuf::Metadata metadata;
  1717. metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
  1718. metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
  1719. return metadata;
  1720. }
  1721. // -------------------------------------------------------------------
  1722. #ifndef _MSC_VER
  1723. const int DescriptorProto::kNameFieldNumber;
  1724. const int DescriptorProto::kFieldFieldNumber;
  1725. const int DescriptorProto::kExtensionFieldNumber;
  1726. const int DescriptorProto::kNestedTypeFieldNumber;
  1727. const int DescriptorProto::kEnumTypeFieldNumber;
  1728. const int DescriptorProto::kExtensionRangeFieldNumber;
  1729. const int DescriptorProto::kOptionsFieldNumber;
  1730. #endif // !_MSC_VER
  1731. DescriptorProto::DescriptorProto()
  1732. : ::google::protobuf::Message() {
  1733. SharedCtor();
  1734. }
  1735. void DescriptorProto::InitAsDefaultInstance() {
  1736. options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
  1737. }
  1738. DescriptorProto::DescriptorProto(const DescriptorProto& from)
  1739. : ::google::protobuf::Message() {
  1740. SharedCtor();
  1741. MergeFrom(from);
  1742. }
  1743. void DescriptorProto::SharedCtor() {
  1744. _cached_size_ = 0;
  1745. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  1746. options_ = NULL;
  1747. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1748. }
  1749. DescriptorProto::~DescriptorProto() {
  1750. SharedDtor();
  1751. }
  1752. void DescriptorProto::SharedDtor() {
  1753. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  1754. delete name_;
  1755. }
  1756. if (this != default_instance_) {
  1757. delete options_;
  1758. }
  1759. }
  1760. void DescriptorProto::SetCachedSize(int size) const {
  1761. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1762. _cached_size_ = size;
  1763. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1764. }
  1765. const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
  1766. protobuf_AssignDescriptorsOnce();
  1767. return DescriptorProto_descriptor_;
  1768. }
  1769. const DescriptorProto& DescriptorProto::default_instance() {
  1770. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1771. return *default_instance_;
  1772. }
  1773. DescriptorProto* DescriptorProto::default_instance_ = NULL;
  1774. DescriptorProto* DescriptorProto::New() const {
  1775. return new DescriptorProto;
  1776. }
  1777. void DescriptorProto::Clear() {
  1778. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1779. if (has_name()) {
  1780. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  1781. name_->clear();
  1782. }
  1783. }
  1784. if (has_options()) {
  1785. if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
  1786. }
  1787. }
  1788. field_.Clear();
  1789. extension_.Clear();
  1790. nested_type_.Clear();
  1791. enum_type_.Clear();
  1792. extension_range_.Clear();
  1793. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1794. mutable_unknown_fields()->Clear();
  1795. }
  1796. bool DescriptorProto::MergePartialFromCodedStream(
  1797. ::google::protobuf::io::CodedInputStream* input) {
  1798. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  1799. ::google::protobuf::uint32 tag;
  1800. while ((tag = input->ReadTag()) != 0) {
  1801. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1802. // optional string name = 1;
  1803. case 1: {
  1804. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1805. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1806. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1807. input, this->mutable_name()));
  1808. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1809. this->name().data(), this->name().length(),
  1810. ::google::protobuf::internal::WireFormat::PARSE);
  1811. } else {
  1812. goto handle_uninterpreted;
  1813. }
  1814. if (input->ExpectTag(18)) goto parse_field;
  1815. break;
  1816. }
  1817. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1818. case 2: {
  1819. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1820. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1821. parse_field:
  1822. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1823. input, add_field()));
  1824. } else {
  1825. goto handle_uninterpreted;
  1826. }
  1827. if (input->ExpectTag(18)) goto parse_field;
  1828. if (input->ExpectTag(26)) goto parse_nested_type;
  1829. break;
  1830. }
  1831. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1832. case 3: {
  1833. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1834. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1835. parse_nested_type:
  1836. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1837. input, add_nested_type()));
  1838. } else {
  1839. goto handle_uninterpreted;
  1840. }
  1841. if (input->ExpectTag(26)) goto parse_nested_type;
  1842. if (input->ExpectTag(34)) goto parse_enum_type;
  1843. break;
  1844. }
  1845. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1846. case 4: {
  1847. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1848. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1849. parse_enum_type:
  1850. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1851. input, add_enum_type()));
  1852. } else {
  1853. goto handle_uninterpreted;
  1854. }
  1855. if (input->ExpectTag(34)) goto parse_enum_type;
  1856. if (input->ExpectTag(42)) goto parse_extension_range;
  1857. break;
  1858. }
  1859. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1860. case 5: {
  1861. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1862. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1863. parse_extension_range:
  1864. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1865. input, add_extension_range()));
  1866. } else {
  1867. goto handle_uninterpreted;
  1868. }
  1869. if (input->ExpectTag(42)) goto parse_extension_range;
  1870. if (input->ExpectTag(50)) goto parse_extension;
  1871. break;
  1872. }
  1873. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1874. case 6: {
  1875. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1876. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1877. parse_extension:
  1878. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1879. input, add_extension()));
  1880. } else {
  1881. goto handle_uninterpreted;
  1882. }
  1883. if (input->ExpectTag(50)) goto parse_extension;
  1884. if (input->ExpectTag(58)) goto parse_options;
  1885. break;
  1886. }
  1887. // optional .google.protobuf.MessageOptions options = 7;
  1888. case 7: {
  1889. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1890. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  1891. parse_options:
  1892. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1893. input, mutable_options()));
  1894. } else {
  1895. goto handle_uninterpreted;
  1896. }
  1897. if (input->ExpectAtEnd()) return true;
  1898. break;
  1899. }
  1900. default: {
  1901. handle_uninterpreted:
  1902. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1903. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1904. return true;
  1905. }
  1906. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1907. input, tag, mutable_unknown_fields()));
  1908. break;
  1909. }
  1910. }
  1911. }
  1912. return true;
  1913. #undef DO_
  1914. }
  1915. void DescriptorProto::SerializeWithCachedSizes(
  1916. ::google::protobuf::io::CodedOutputStream* output) const {
  1917. // optional string name = 1;
  1918. if (has_name()) {
  1919. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1920. this->name().data(), this->name().length(),
  1921. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1922. ::google::protobuf::internal::WireFormatLite::WriteString(
  1923. 1, this->name(), output);
  1924. }
  1925. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1926. for (int i = 0; i < this->field_size(); i++) {
  1927. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1928. 2, this->field(i), output);
  1929. }
  1930. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1931. for (int i = 0; i < this->nested_type_size(); i++) {
  1932. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1933. 3, this->nested_type(i), output);
  1934. }
  1935. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1936. for (int i = 0; i < this->enum_type_size(); i++) {
  1937. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1938. 4, this->enum_type(i), output);
  1939. }
  1940. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1941. for (int i = 0; i < this->extension_range_size(); i++) {
  1942. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1943. 5, this->extension_range(i), output);
  1944. }
  1945. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1946. for (int i = 0; i < this->extension_size(); i++) {
  1947. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1948. 6, this->extension(i), output);
  1949. }
  1950. // optional .google.protobuf.MessageOptions options = 7;
  1951. if (has_options()) {
  1952. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1953. 7, this->options(), output);
  1954. }
  1955. if (!unknown_fields().empty()) {
  1956. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1957. unknown_fields(), output);
  1958. }
  1959. }
  1960. ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
  1961. ::google::protobuf::uint8* target) const {
  1962. // optional string name = 1;
  1963. if (has_name()) {
  1964. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  1965. this->name().data(), this->name().length(),
  1966. ::google::protobuf::internal::WireFormat::SERIALIZE);
  1967. target =
  1968. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1969. 1, this->name(), target);
  1970. }
  1971. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1972. for (int i = 0; i < this->field_size(); i++) {
  1973. target = ::google::protobuf::internal::WireFormatLite::
  1974. WriteMessageNoVirtualToArray(
  1975. 2, this->field(i), target);
  1976. }
  1977. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1978. for (int i = 0; i < this->nested_type_size(); i++) {
  1979. target = ::google::protobuf::internal::WireFormatLite::
  1980. WriteMessageNoVirtualToArray(
  1981. 3, this->nested_type(i), target);
  1982. }
  1983. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1984. for (int i = 0; i < this->enum_type_size(); i++) {
  1985. target = ::google::protobuf::internal::WireFormatLite::
  1986. WriteMessageNoVirtualToArray(
  1987. 4, this->enum_type(i), target);
  1988. }
  1989. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1990. for (int i = 0; i < this->extension_range_size(); i++) {
  1991. target = ::google::protobuf::internal::WireFormatLite::
  1992. WriteMessageNoVirtualToArray(
  1993. 5, this->extension_range(i), target);
  1994. }
  1995. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1996. for (int i = 0; i < this->extension_size(); i++) {
  1997. target = ::google::protobuf::internal::WireFormatLite::
  1998. WriteMessageNoVirtualToArray(
  1999. 6, this->extension(i), target);
  2000. }
  2001. // optional .google.protobuf.MessageOptions options = 7;
  2002. if (has_options()) {
  2003. target = ::google::protobuf::internal::WireFormatLite::
  2004. WriteMessageNoVirtualToArray(
  2005. 7, this->options(), target);
  2006. }
  2007. if (!unknown_fields().empty()) {
  2008. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2009. unknown_fields(), target);
  2010. }
  2011. return target;
  2012. }
  2013. int DescriptorProto::ByteSize() const {
  2014. int total_size = 0;
  2015. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2016. // optional string name = 1;
  2017. if (has_name()) {
  2018. total_size += 1 +
  2019. ::google::protobuf::internal::WireFormatLite::StringSize(
  2020. this->name());
  2021. }
  2022. // optional .google.protobuf.MessageOptions options = 7;
  2023. if (has_options()) {
  2024. total_size += 1 +
  2025. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2026. this->options());
  2027. }
  2028. }
  2029. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  2030. total_size += 1 * this->field_size();
  2031. for (int i = 0; i < this->field_size(); i++) {
  2032. total_size +=
  2033. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2034. this->field(i));
  2035. }
  2036. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  2037. total_size += 1 * this->extension_size();
  2038. for (int i = 0; i < this->extension_size(); i++) {
  2039. total_size +=
  2040. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2041. this->extension(i));
  2042. }
  2043. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  2044. total_size += 1 * this->nested_type_size();
  2045. for (int i = 0; i < this->nested_type_size(); i++) {
  2046. total_size +=
  2047. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2048. this->nested_type(i));
  2049. }
  2050. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  2051. total_size += 1 * this->enum_type_size();
  2052. for (int i = 0; i < this->enum_type_size(); i++) {
  2053. total_size +=
  2054. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2055. this->enum_type(i));
  2056. }
  2057. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  2058. total_size += 1 * this->extension_range_size();
  2059. for (int i = 0; i < this->extension_range_size(); i++) {
  2060. total_size +=
  2061. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2062. this->extension_range(i));
  2063. }
  2064. if (!unknown_fields().empty()) {
  2065. total_size +=
  2066. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2067. unknown_fields());
  2068. }
  2069. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2070. _cached_size_ = total_size;
  2071. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2072. return total_size;
  2073. }
  2074. void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  2075. GOOGLE_CHECK_NE(&from, this);
  2076. const DescriptorProto* source =
  2077. ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto*>(
  2078. &from);
  2079. if (source == NULL) {
  2080. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2081. } else {
  2082. MergeFrom(*source);
  2083. }
  2084. }
  2085. void DescriptorProto::MergeFrom(const DescriptorProto& from) {
  2086. GOOGLE_CHECK_NE(&from, this);
  2087. field_.MergeFrom(from.field_);
  2088. extension_.MergeFrom(from.extension_);
  2089. nested_type_.MergeFrom(from.nested_type_);
  2090. enum_type_.MergeFrom(from.enum_type_);
  2091. extension_range_.MergeFrom(from.extension_range_);
  2092. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2093. if (from.has_name()) {
  2094. set_name(from.name());
  2095. }
  2096. if (from.has_options()) {
  2097. mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
  2098. }
  2099. }
  2100. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2101. }
  2102. void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  2103. if (&from == this) return;
  2104. Clear();
  2105. MergeFrom(from);
  2106. }
  2107. void DescriptorProto::CopyFrom(const DescriptorProto& from) {
  2108. if (&from == this) return;
  2109. Clear();
  2110. MergeFrom(from);
  2111. }
  2112. bool DescriptorProto::IsInitialized() const {
  2113. for (int i = 0; i < field_size(); i++) {
  2114. if (!this->field(i).IsInitialized()) return false;
  2115. }
  2116. for (int i = 0; i < extension_size(); i++) {
  2117. if (!this->extension(i).IsInitialized()) return false;
  2118. }
  2119. for (int i = 0; i < nested_type_size(); i++) {
  2120. if (!this->nested_type(i).IsInitialized()) return false;
  2121. }
  2122. for (int i = 0; i < enum_type_size(); i++) {
  2123. if (!this->enum_type(i).IsInitialized()) return false;
  2124. }
  2125. if (has_options()) {
  2126. if (!this->options().IsInitialized()) return false;
  2127. }
  2128. return true;
  2129. }
  2130. void DescriptorProto::Swap(DescriptorProto* other) {
  2131. if (other != this) {
  2132. std::swap(name_, other->name_);
  2133. field_.Swap(&other->field_);
  2134. extension_.Swap(&other->extension_);
  2135. nested_type_.Swap(&other->nested_type_);
  2136. enum_type_.Swap(&other->enum_type_);
  2137. extension_range_.Swap(&other->extension_range_);
  2138. std::swap(options_, other->options_);
  2139. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2140. _unknown_fields_.Swap(&other->_unknown_fields_);
  2141. std::swap(_cached_size_, other->_cached_size_);
  2142. }
  2143. }
  2144. ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
  2145. protobuf_AssignDescriptorsOnce();
  2146. ::google::protobuf::Metadata metadata;
  2147. metadata.descriptor = DescriptorProto_descriptor_;
  2148. metadata.reflection = DescriptorProto_reflection_;
  2149. return metadata;
  2150. }
  2151. // ===================================================================
  2152. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
  2153. protobuf_AssignDescriptorsOnce();
  2154. return FieldDescriptorProto_Type_descriptor_;
  2155. }
  2156. bool FieldDescriptorProto_Type_IsValid(int value) {
  2157. switch(value) {
  2158. case 1:
  2159. case 2:
  2160. case 3:
  2161. case 4:
  2162. case 5:
  2163. case 6:
  2164. case 7:
  2165. case 8:
  2166. case 9:
  2167. case 10:
  2168. case 11:
  2169. case 12:
  2170. case 13:
  2171. case 14:
  2172. case 15:
  2173. case 16:
  2174. case 17:
  2175. case 18:
  2176. return true;
  2177. default:
  2178. return false;
  2179. }
  2180. }
  2181. #ifndef _MSC_VER
  2182. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
  2183. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
  2184. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
  2185. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
  2186. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
  2187. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
  2188. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
  2189. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
  2190. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
  2191. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
  2192. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
  2193. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
  2194. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
  2195. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
  2196. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
  2197. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
  2198. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
  2199. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
  2200. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
  2201. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
  2202. const int FieldDescriptorProto::Type_ARRAYSIZE;
  2203. #endif // _MSC_VER
  2204. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
  2205. protobuf_AssignDescriptorsOnce();
  2206. return FieldDescriptorProto_Label_descriptor_;
  2207. }
  2208. bool FieldDescriptorProto_Label_IsValid(int value) {
  2209. switch(value) {
  2210. case 1:
  2211. case 2:
  2212. case 3:
  2213. return true;
  2214. default:
  2215. return false;
  2216. }
  2217. }
  2218. #ifndef _MSC_VER
  2219. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
  2220. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
  2221. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
  2222. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
  2223. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
  2224. const int FieldDescriptorProto::Label_ARRAYSIZE;
  2225. #endif // _MSC_VER
  2226. #ifndef _MSC_VER
  2227. const int FieldDescriptorProto::kNameFieldNumber;
  2228. const int FieldDescriptorProto::kNumberFieldNumber;
  2229. const int FieldDescriptorProto::kLabelFieldNumber;
  2230. const int FieldDescriptorProto::kTypeFieldNumber;
  2231. const int FieldDescriptorProto::kTypeNameFieldNumber;
  2232. const int FieldDescriptorProto::kExtendeeFieldNumber;
  2233. const int FieldDescriptorProto::kDefaultValueFieldNumber;
  2234. const int FieldDescriptorProto::kOptionsFieldNumber;
  2235. #endif // !_MSC_VER
  2236. FieldDescriptorProto::FieldDescriptorProto()
  2237. : ::google::protobuf::Message() {
  2238. SharedCtor();
  2239. }
  2240. void FieldDescriptorProto::InitAsDefaultInstance() {
  2241. options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
  2242. }
  2243. FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
  2244. : ::google::protobuf::Message() {
  2245. SharedCtor();
  2246. MergeFrom(from);
  2247. }
  2248. void FieldDescriptorProto::SharedCtor() {
  2249. _cached_size_ = 0;
  2250. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  2251. number_ = 0;
  2252. label_ = 1;
  2253. type_ = 1;
  2254. type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  2255. extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  2256. default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  2257. options_ = NULL;
  2258. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2259. }
  2260. FieldDescriptorProto::~FieldDescriptorProto() {
  2261. SharedDtor();
  2262. }
  2263. void FieldDescriptorProto::SharedDtor() {
  2264. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  2265. delete name_;
  2266. }
  2267. if (type_name_ != &::google::protobuf::internal::GetEmptyString()) {
  2268. delete type_name_;
  2269. }
  2270. if (extendee_ != &::google::protobuf::internal::GetEmptyString()) {
  2271. delete extendee_;
  2272. }
  2273. if (default_value_ != &::google::protobuf::internal::GetEmptyString()) {
  2274. delete default_value_;
  2275. }
  2276. if (this != default_instance_) {
  2277. delete options_;
  2278. }
  2279. }
  2280. void FieldDescriptorProto::SetCachedSize(int size) const {
  2281. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2282. _cached_size_ = size;
  2283. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2284. }
  2285. const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
  2286. protobuf_AssignDescriptorsOnce();
  2287. return FieldDescriptorProto_descriptor_;
  2288. }
  2289. const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
  2290. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2291. return *default_instance_;
  2292. }
  2293. FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
  2294. FieldDescriptorProto* FieldDescriptorProto::New() const {
  2295. return new FieldDescriptorProto;
  2296. }
  2297. void FieldDescriptorProto::Clear() {
  2298. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2299. if (has_name()) {
  2300. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  2301. name_->clear();
  2302. }
  2303. }
  2304. number_ = 0;
  2305. label_ = 1;
  2306. type_ = 1;
  2307. if (has_type_name()) {
  2308. if (type_name_ != &::google::protobuf::internal::GetEmptyString()) {
  2309. type_name_->clear();
  2310. }
  2311. }
  2312. if (has_extendee()) {
  2313. if (extendee_ != &::google::protobuf::internal::GetEmptyString()) {
  2314. extendee_->clear();
  2315. }
  2316. }
  2317. if (has_default_value()) {
  2318. if (default_value_ != &::google::protobuf::internal::GetEmptyString()) {
  2319. default_value_->clear();
  2320. }
  2321. }
  2322. if (has_options()) {
  2323. if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
  2324. }
  2325. }
  2326. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2327. mutable_unknown_fields()->Clear();
  2328. }
  2329. bool FieldDescriptorProto::MergePartialFromCodedStream(
  2330. ::google::protobuf::io::CodedInputStream* input) {
  2331. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2332. ::google::protobuf::uint32 tag;
  2333. while ((tag = input->ReadTag()) != 0) {
  2334. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2335. // optional string name = 1;
  2336. case 1: {
  2337. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2338. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2339. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2340. input, this->mutable_name()));
  2341. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2342. this->name().data(), this->name().length(),
  2343. ::google::protobuf::internal::WireFormat::PARSE);
  2344. } else {
  2345. goto handle_uninterpreted;
  2346. }
  2347. if (input->ExpectTag(18)) goto parse_extendee;
  2348. break;
  2349. }
  2350. // optional string extendee = 2;
  2351. case 2: {
  2352. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2353. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2354. parse_extendee:
  2355. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2356. input, this->mutable_extendee()));
  2357. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2358. this->extendee().data(), this->extendee().length(),
  2359. ::google::protobuf::internal::WireFormat::PARSE);
  2360. } else {
  2361. goto handle_uninterpreted;
  2362. }
  2363. if (input->ExpectTag(24)) goto parse_number;
  2364. break;
  2365. }
  2366. // optional int32 number = 3;
  2367. case 3: {
  2368. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2369. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2370. parse_number:
  2371. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2372. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2373. input, &number_)));
  2374. set_has_number();
  2375. } else {
  2376. goto handle_uninterpreted;
  2377. }
  2378. if (input->ExpectTag(32)) goto parse_label;
  2379. break;
  2380. }
  2381. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2382. case 4: {
  2383. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2384. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2385. parse_label:
  2386. int value;
  2387. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2388. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2389. input, &value)));
  2390. if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
  2391. set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
  2392. } else {
  2393. mutable_unknown_fields()->AddVarint(4, value);
  2394. }
  2395. } else {
  2396. goto handle_uninterpreted;
  2397. }
  2398. if (input->ExpectTag(40)) goto parse_type;
  2399. break;
  2400. }
  2401. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2402. case 5: {
  2403. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2404. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  2405. parse_type:
  2406. int value;
  2407. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2408. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2409. input, &value)));
  2410. if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
  2411. set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
  2412. } else {
  2413. mutable_unknown_fields()->AddVarint(5, value);
  2414. }
  2415. } else {
  2416. goto handle_uninterpreted;
  2417. }
  2418. if (input->ExpectTag(50)) goto parse_type_name;
  2419. break;
  2420. }
  2421. // optional string type_name = 6;
  2422. case 6: {
  2423. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2424. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2425. parse_type_name:
  2426. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2427. input, this->mutable_type_name()));
  2428. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2429. this->type_name().data(), this->type_name().length(),
  2430. ::google::protobuf::internal::WireFormat::PARSE);
  2431. } else {
  2432. goto handle_uninterpreted;
  2433. }
  2434. if (input->ExpectTag(58)) goto parse_default_value;
  2435. break;
  2436. }
  2437. // optional string default_value = 7;
  2438. case 7: {
  2439. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2440. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2441. parse_default_value:
  2442. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2443. input, this->mutable_default_value()));
  2444. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2445. this->default_value().data(), this->default_value().length(),
  2446. ::google::protobuf::internal::WireFormat::PARSE);
  2447. } else {
  2448. goto handle_uninterpreted;
  2449. }
  2450. if (input->ExpectTag(66)) goto parse_options;
  2451. break;
  2452. }
  2453. // optional .google.protobuf.FieldOptions options = 8;
  2454. case 8: {
  2455. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2456. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2457. parse_options:
  2458. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2459. input, mutable_options()));
  2460. } else {
  2461. goto handle_uninterpreted;
  2462. }
  2463. if (input->ExpectAtEnd()) return true;
  2464. break;
  2465. }
  2466. default: {
  2467. handle_uninterpreted:
  2468. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2469. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2470. return true;
  2471. }
  2472. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2473. input, tag, mutable_unknown_fields()));
  2474. break;
  2475. }
  2476. }
  2477. }
  2478. return true;
  2479. #undef DO_
  2480. }
  2481. void FieldDescriptorProto::SerializeWithCachedSizes(
  2482. ::google::protobuf::io::CodedOutputStream* output) const {
  2483. // optional string name = 1;
  2484. if (has_name()) {
  2485. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2486. this->name().data(), this->name().length(),
  2487. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2488. ::google::protobuf::internal::WireFormatLite::WriteString(
  2489. 1, this->name(), output);
  2490. }
  2491. // optional string extendee = 2;
  2492. if (has_extendee()) {
  2493. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2494. this->extendee().data(), this->extendee().length(),
  2495. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2496. ::google::protobuf::internal::WireFormatLite::WriteString(
  2497. 2, this->extendee(), output);
  2498. }
  2499. // optional int32 number = 3;
  2500. if (has_number()) {
  2501. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
  2502. }
  2503. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2504. if (has_label()) {
  2505. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2506. 4, this->label(), output);
  2507. }
  2508. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2509. if (has_type()) {
  2510. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2511. 5, this->type(), output);
  2512. }
  2513. // optional string type_name = 6;
  2514. if (has_type_name()) {
  2515. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2516. this->type_name().data(), this->type_name().length(),
  2517. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2518. ::google::protobuf::internal::WireFormatLite::WriteString(
  2519. 6, this->type_name(), output);
  2520. }
  2521. // optional string default_value = 7;
  2522. if (has_default_value()) {
  2523. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2524. this->default_value().data(), this->default_value().length(),
  2525. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2526. ::google::protobuf::internal::WireFormatLite::WriteString(
  2527. 7, this->default_value(), output);
  2528. }
  2529. // optional .google.protobuf.FieldOptions options = 8;
  2530. if (has_options()) {
  2531. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2532. 8, this->options(), output);
  2533. }
  2534. if (!unknown_fields().empty()) {
  2535. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2536. unknown_fields(), output);
  2537. }
  2538. }
  2539. ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
  2540. ::google::protobuf::uint8* target) const {
  2541. // optional string name = 1;
  2542. if (has_name()) {
  2543. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2544. this->name().data(), this->name().length(),
  2545. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2546. target =
  2547. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2548. 1, this->name(), target);
  2549. }
  2550. // optional string extendee = 2;
  2551. if (has_extendee()) {
  2552. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2553. this->extendee().data(), this->extendee().length(),
  2554. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2555. target =
  2556. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2557. 2, this->extendee(), target);
  2558. }
  2559. // optional int32 number = 3;
  2560. if (has_number()) {
  2561. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
  2562. }
  2563. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2564. if (has_label()) {
  2565. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2566. 4, this->label(), target);
  2567. }
  2568. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2569. if (has_type()) {
  2570. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2571. 5, this->type(), target);
  2572. }
  2573. // optional string type_name = 6;
  2574. if (has_type_name()) {
  2575. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2576. this->type_name().data(), this->type_name().length(),
  2577. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2578. target =
  2579. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2580. 6, this->type_name(), target);
  2581. }
  2582. // optional string default_value = 7;
  2583. if (has_default_value()) {
  2584. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2585. this->default_value().data(), this->default_value().length(),
  2586. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2587. target =
  2588. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2589. 7, this->default_value(), target);
  2590. }
  2591. // optional .google.protobuf.FieldOptions options = 8;
  2592. if (has_options()) {
  2593. target = ::google::protobuf::internal::WireFormatLite::
  2594. WriteMessageNoVirtualToArray(
  2595. 8, this->options(), target);
  2596. }
  2597. if (!unknown_fields().empty()) {
  2598. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2599. unknown_fields(), target);
  2600. }
  2601. return target;
  2602. }
  2603. int FieldDescriptorProto::ByteSize() const {
  2604. int total_size = 0;
  2605. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2606. // optional string name = 1;
  2607. if (has_name()) {
  2608. total_size += 1 +
  2609. ::google::protobuf::internal::WireFormatLite::StringSize(
  2610. this->name());
  2611. }
  2612. // optional int32 number = 3;
  2613. if (has_number()) {
  2614. total_size += 1 +
  2615. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2616. this->number());
  2617. }
  2618. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2619. if (has_label()) {
  2620. total_size += 1 +
  2621. ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
  2622. }
  2623. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2624. if (has_type()) {
  2625. total_size += 1 +
  2626. ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
  2627. }
  2628. // optional string type_name = 6;
  2629. if (has_type_name()) {
  2630. total_size += 1 +
  2631. ::google::protobuf::internal::WireFormatLite::StringSize(
  2632. this->type_name());
  2633. }
  2634. // optional string extendee = 2;
  2635. if (has_extendee()) {
  2636. total_size += 1 +
  2637. ::google::protobuf::internal::WireFormatLite::StringSize(
  2638. this->extendee());
  2639. }
  2640. // optional string default_value = 7;
  2641. if (has_default_value()) {
  2642. total_size += 1 +
  2643. ::google::protobuf::internal::WireFormatLite::StringSize(
  2644. this->default_value());
  2645. }
  2646. // optional .google.protobuf.FieldOptions options = 8;
  2647. if (has_options()) {
  2648. total_size += 1 +
  2649. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2650. this->options());
  2651. }
  2652. }
  2653. if (!unknown_fields().empty()) {
  2654. total_size +=
  2655. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2656. unknown_fields());
  2657. }
  2658. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2659. _cached_size_ = total_size;
  2660. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2661. return total_size;
  2662. }
  2663. void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  2664. GOOGLE_CHECK_NE(&from, this);
  2665. const FieldDescriptorProto* source =
  2666. ::google::protobuf::internal::dynamic_cast_if_available<const FieldDescriptorProto*>(
  2667. &from);
  2668. if (source == NULL) {
  2669. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2670. } else {
  2671. MergeFrom(*source);
  2672. }
  2673. }
  2674. void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
  2675. GOOGLE_CHECK_NE(&from, this);
  2676. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2677. if (from.has_name()) {
  2678. set_name(from.name());
  2679. }
  2680. if (from.has_number()) {
  2681. set_number(from.number());
  2682. }
  2683. if (from.has_label()) {
  2684. set_label(from.label());
  2685. }
  2686. if (from.has_type()) {
  2687. set_type(from.type());
  2688. }
  2689. if (from.has_type_name()) {
  2690. set_type_name(from.type_name());
  2691. }
  2692. if (from.has_extendee()) {
  2693. set_extendee(from.extendee());
  2694. }
  2695. if (from.has_default_value()) {
  2696. set_default_value(from.default_value());
  2697. }
  2698. if (from.has_options()) {
  2699. mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
  2700. }
  2701. }
  2702. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2703. }
  2704. void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  2705. if (&from == this) return;
  2706. Clear();
  2707. MergeFrom(from);
  2708. }
  2709. void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
  2710. if (&from == this) return;
  2711. Clear();
  2712. MergeFrom(from);
  2713. }
  2714. bool FieldDescriptorProto::IsInitialized() const {
  2715. if (has_options()) {
  2716. if (!this->options().IsInitialized()) return false;
  2717. }
  2718. return true;
  2719. }
  2720. void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
  2721. if (other != this) {
  2722. std::swap(name_, other->name_);
  2723. std::swap(number_, other->number_);
  2724. std::swap(label_, other->label_);
  2725. std::swap(type_, other->type_);
  2726. std::swap(type_name_, other->type_name_);
  2727. std::swap(extendee_, other->extendee_);
  2728. std::swap(default_value_, other->default_value_);
  2729. std::swap(options_, other->options_);
  2730. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2731. _unknown_fields_.Swap(&other->_unknown_fields_);
  2732. std::swap(_cached_size_, other->_cached_size_);
  2733. }
  2734. }
  2735. ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
  2736. protobuf_AssignDescriptorsOnce();
  2737. ::google::protobuf::Metadata metadata;
  2738. metadata.descriptor = FieldDescriptorProto_descriptor_;
  2739. metadata.reflection = FieldDescriptorProto_reflection_;
  2740. return metadata;
  2741. }
  2742. // ===================================================================
  2743. #ifndef _MSC_VER
  2744. const int EnumDescriptorProto::kNameFieldNumber;
  2745. const int EnumDescriptorProto::kValueFieldNumber;
  2746. const int EnumDescriptorProto::kOptionsFieldNumber;
  2747. #endif // !_MSC_VER
  2748. EnumDescriptorProto::EnumDescriptorProto()
  2749. : ::google::protobuf::Message() {
  2750. SharedCtor();
  2751. }
  2752. void EnumDescriptorProto::InitAsDefaultInstance() {
  2753. options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
  2754. }
  2755. EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
  2756. : ::google::protobuf::Message() {
  2757. SharedCtor();
  2758. MergeFrom(from);
  2759. }
  2760. void EnumDescriptorProto::SharedCtor() {
  2761. _cached_size_ = 0;
  2762. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  2763. options_ = NULL;
  2764. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2765. }
  2766. EnumDescriptorProto::~EnumDescriptorProto() {
  2767. SharedDtor();
  2768. }
  2769. void EnumDescriptorProto::SharedDtor() {
  2770. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  2771. delete name_;
  2772. }
  2773. if (this != default_instance_) {
  2774. delete options_;
  2775. }
  2776. }
  2777. void EnumDescriptorProto::SetCachedSize(int size) const {
  2778. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2779. _cached_size_ = size;
  2780. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2781. }
  2782. const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
  2783. protobuf_AssignDescriptorsOnce();
  2784. return EnumDescriptorProto_descriptor_;
  2785. }
  2786. const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
  2787. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2788. return *default_instance_;
  2789. }
  2790. EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
  2791. EnumDescriptorProto* EnumDescriptorProto::New() const {
  2792. return new EnumDescriptorProto;
  2793. }
  2794. void EnumDescriptorProto::Clear() {
  2795. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2796. if (has_name()) {
  2797. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  2798. name_->clear();
  2799. }
  2800. }
  2801. if (has_options()) {
  2802. if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
  2803. }
  2804. }
  2805. value_.Clear();
  2806. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2807. mutable_unknown_fields()->Clear();
  2808. }
  2809. bool EnumDescriptorProto::MergePartialFromCodedStream(
  2810. ::google::protobuf::io::CodedInputStream* input) {
  2811. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  2812. ::google::protobuf::uint32 tag;
  2813. while ((tag = input->ReadTag()) != 0) {
  2814. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2815. // optional string name = 1;
  2816. case 1: {
  2817. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2818. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2819. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2820. input, this->mutable_name()));
  2821. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2822. this->name().data(), this->name().length(),
  2823. ::google::protobuf::internal::WireFormat::PARSE);
  2824. } else {
  2825. goto handle_uninterpreted;
  2826. }
  2827. if (input->ExpectTag(18)) goto parse_value;
  2828. break;
  2829. }
  2830. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2831. case 2: {
  2832. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2833. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2834. parse_value:
  2835. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2836. input, add_value()));
  2837. } else {
  2838. goto handle_uninterpreted;
  2839. }
  2840. if (input->ExpectTag(18)) goto parse_value;
  2841. if (input->ExpectTag(26)) goto parse_options;
  2842. break;
  2843. }
  2844. // optional .google.protobuf.EnumOptions options = 3;
  2845. case 3: {
  2846. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2847. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  2848. parse_options:
  2849. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2850. input, mutable_options()));
  2851. } else {
  2852. goto handle_uninterpreted;
  2853. }
  2854. if (input->ExpectAtEnd()) return true;
  2855. break;
  2856. }
  2857. default: {
  2858. handle_uninterpreted:
  2859. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2860. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2861. return true;
  2862. }
  2863. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2864. input, tag, mutable_unknown_fields()));
  2865. break;
  2866. }
  2867. }
  2868. }
  2869. return true;
  2870. #undef DO_
  2871. }
  2872. void EnumDescriptorProto::SerializeWithCachedSizes(
  2873. ::google::protobuf::io::CodedOutputStream* output) const {
  2874. // optional string name = 1;
  2875. if (has_name()) {
  2876. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2877. this->name().data(), this->name().length(),
  2878. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2879. ::google::protobuf::internal::WireFormatLite::WriteString(
  2880. 1, this->name(), output);
  2881. }
  2882. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2883. for (int i = 0; i < this->value_size(); i++) {
  2884. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2885. 2, this->value(i), output);
  2886. }
  2887. // optional .google.protobuf.EnumOptions options = 3;
  2888. if (has_options()) {
  2889. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2890. 3, this->options(), output);
  2891. }
  2892. if (!unknown_fields().empty()) {
  2893. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2894. unknown_fields(), output);
  2895. }
  2896. }
  2897. ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
  2898. ::google::protobuf::uint8* target) const {
  2899. // optional string name = 1;
  2900. if (has_name()) {
  2901. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  2902. this->name().data(), this->name().length(),
  2903. ::google::protobuf::internal::WireFormat::SERIALIZE);
  2904. target =
  2905. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2906. 1, this->name(), target);
  2907. }
  2908. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2909. for (int i = 0; i < this->value_size(); i++) {
  2910. target = ::google::protobuf::internal::WireFormatLite::
  2911. WriteMessageNoVirtualToArray(
  2912. 2, this->value(i), target);
  2913. }
  2914. // optional .google.protobuf.EnumOptions options = 3;
  2915. if (has_options()) {
  2916. target = ::google::protobuf::internal::WireFormatLite::
  2917. WriteMessageNoVirtualToArray(
  2918. 3, this->options(), target);
  2919. }
  2920. if (!unknown_fields().empty()) {
  2921. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2922. unknown_fields(), target);
  2923. }
  2924. return target;
  2925. }
  2926. int EnumDescriptorProto::ByteSize() const {
  2927. int total_size = 0;
  2928. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2929. // optional string name = 1;
  2930. if (has_name()) {
  2931. total_size += 1 +
  2932. ::google::protobuf::internal::WireFormatLite::StringSize(
  2933. this->name());
  2934. }
  2935. // optional .google.protobuf.EnumOptions options = 3;
  2936. if (has_options()) {
  2937. total_size += 1 +
  2938. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2939. this->options());
  2940. }
  2941. }
  2942. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2943. total_size += 1 * this->value_size();
  2944. for (int i = 0; i < this->value_size(); i++) {
  2945. total_size +=
  2946. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  2947. this->value(i));
  2948. }
  2949. if (!unknown_fields().empty()) {
  2950. total_size +=
  2951. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2952. unknown_fields());
  2953. }
  2954. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2955. _cached_size_ = total_size;
  2956. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2957. return total_size;
  2958. }
  2959. void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  2960. GOOGLE_CHECK_NE(&from, this);
  2961. const EnumDescriptorProto* source =
  2962. ::google::protobuf::internal::dynamic_cast_if_available<const EnumDescriptorProto*>(
  2963. &from);
  2964. if (source == NULL) {
  2965. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2966. } else {
  2967. MergeFrom(*source);
  2968. }
  2969. }
  2970. void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
  2971. GOOGLE_CHECK_NE(&from, this);
  2972. value_.MergeFrom(from.value_);
  2973. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2974. if (from.has_name()) {
  2975. set_name(from.name());
  2976. }
  2977. if (from.has_options()) {
  2978. mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
  2979. }
  2980. }
  2981. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2982. }
  2983. void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  2984. if (&from == this) return;
  2985. Clear();
  2986. MergeFrom(from);
  2987. }
  2988. void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
  2989. if (&from == this) return;
  2990. Clear();
  2991. MergeFrom(from);
  2992. }
  2993. bool EnumDescriptorProto::IsInitialized() const {
  2994. for (int i = 0; i < value_size(); i++) {
  2995. if (!this->value(i).IsInitialized()) return false;
  2996. }
  2997. if (has_options()) {
  2998. if (!this->options().IsInitialized()) return false;
  2999. }
  3000. return true;
  3001. }
  3002. void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
  3003. if (other != this) {
  3004. std::swap(name_, other->name_);
  3005. value_.Swap(&other->value_);
  3006. std::swap(options_, other->options_);
  3007. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3008. _unknown_fields_.Swap(&other->_unknown_fields_);
  3009. std::swap(_cached_size_, other->_cached_size_);
  3010. }
  3011. }
  3012. ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
  3013. protobuf_AssignDescriptorsOnce();
  3014. ::google::protobuf::Metadata metadata;
  3015. metadata.descriptor = EnumDescriptorProto_descriptor_;
  3016. metadata.reflection = EnumDescriptorProto_reflection_;
  3017. return metadata;
  3018. }
  3019. // ===================================================================
  3020. #ifndef _MSC_VER
  3021. const int EnumValueDescriptorProto::kNameFieldNumber;
  3022. const int EnumValueDescriptorProto::kNumberFieldNumber;
  3023. const int EnumValueDescriptorProto::kOptionsFieldNumber;
  3024. #endif // !_MSC_VER
  3025. EnumValueDescriptorProto::EnumValueDescriptorProto()
  3026. : ::google::protobuf::Message() {
  3027. SharedCtor();
  3028. }
  3029. void EnumValueDescriptorProto::InitAsDefaultInstance() {
  3030. options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
  3031. }
  3032. EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
  3033. : ::google::protobuf::Message() {
  3034. SharedCtor();
  3035. MergeFrom(from);
  3036. }
  3037. void EnumValueDescriptorProto::SharedCtor() {
  3038. _cached_size_ = 0;
  3039. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3040. number_ = 0;
  3041. options_ = NULL;
  3042. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3043. }
  3044. EnumValueDescriptorProto::~EnumValueDescriptorProto() {
  3045. SharedDtor();
  3046. }
  3047. void EnumValueDescriptorProto::SharedDtor() {
  3048. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3049. delete name_;
  3050. }
  3051. if (this != default_instance_) {
  3052. delete options_;
  3053. }
  3054. }
  3055. void EnumValueDescriptorProto::SetCachedSize(int size) const {
  3056. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3057. _cached_size_ = size;
  3058. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3059. }
  3060. const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
  3061. protobuf_AssignDescriptorsOnce();
  3062. return EnumValueDescriptorProto_descriptor_;
  3063. }
  3064. const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
  3065. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  3066. return *default_instance_;
  3067. }
  3068. EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
  3069. EnumValueDescriptorProto* EnumValueDescriptorProto::New() const {
  3070. return new EnumValueDescriptorProto;
  3071. }
  3072. void EnumValueDescriptorProto::Clear() {
  3073. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3074. if (has_name()) {
  3075. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3076. name_->clear();
  3077. }
  3078. }
  3079. number_ = 0;
  3080. if (has_options()) {
  3081. if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
  3082. }
  3083. }
  3084. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3085. mutable_unknown_fields()->Clear();
  3086. }
  3087. bool EnumValueDescriptorProto::MergePartialFromCodedStream(
  3088. ::google::protobuf::io::CodedInputStream* input) {
  3089. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3090. ::google::protobuf::uint32 tag;
  3091. while ((tag = input->ReadTag()) != 0) {
  3092. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3093. // optional string name = 1;
  3094. case 1: {
  3095. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3096. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3097. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3098. input, this->mutable_name()));
  3099. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3100. this->name().data(), this->name().length(),
  3101. ::google::protobuf::internal::WireFormat::PARSE);
  3102. } else {
  3103. goto handle_uninterpreted;
  3104. }
  3105. if (input->ExpectTag(16)) goto parse_number;
  3106. break;
  3107. }
  3108. // optional int32 number = 2;
  3109. case 2: {
  3110. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3111. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  3112. parse_number:
  3113. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3114. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3115. input, &number_)));
  3116. set_has_number();
  3117. } else {
  3118. goto handle_uninterpreted;
  3119. }
  3120. if (input->ExpectTag(26)) goto parse_options;
  3121. break;
  3122. }
  3123. // optional .google.protobuf.EnumValueOptions options = 3;
  3124. case 3: {
  3125. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3126. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3127. parse_options:
  3128. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3129. input, mutable_options()));
  3130. } else {
  3131. goto handle_uninterpreted;
  3132. }
  3133. if (input->ExpectAtEnd()) return true;
  3134. break;
  3135. }
  3136. default: {
  3137. handle_uninterpreted:
  3138. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3139. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3140. return true;
  3141. }
  3142. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3143. input, tag, mutable_unknown_fields()));
  3144. break;
  3145. }
  3146. }
  3147. }
  3148. return true;
  3149. #undef DO_
  3150. }
  3151. void EnumValueDescriptorProto::SerializeWithCachedSizes(
  3152. ::google::protobuf::io::CodedOutputStream* output) const {
  3153. // optional string name = 1;
  3154. if (has_name()) {
  3155. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3156. this->name().data(), this->name().length(),
  3157. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3158. ::google::protobuf::internal::WireFormatLite::WriteString(
  3159. 1, this->name(), output);
  3160. }
  3161. // optional int32 number = 2;
  3162. if (has_number()) {
  3163. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
  3164. }
  3165. // optional .google.protobuf.EnumValueOptions options = 3;
  3166. if (has_options()) {
  3167. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3168. 3, this->options(), output);
  3169. }
  3170. if (!unknown_fields().empty()) {
  3171. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3172. unknown_fields(), output);
  3173. }
  3174. }
  3175. ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
  3176. ::google::protobuf::uint8* target) const {
  3177. // optional string name = 1;
  3178. if (has_name()) {
  3179. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3180. this->name().data(), this->name().length(),
  3181. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3182. target =
  3183. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3184. 1, this->name(), target);
  3185. }
  3186. // optional int32 number = 2;
  3187. if (has_number()) {
  3188. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
  3189. }
  3190. // optional .google.protobuf.EnumValueOptions options = 3;
  3191. if (has_options()) {
  3192. target = ::google::protobuf::internal::WireFormatLite::
  3193. WriteMessageNoVirtualToArray(
  3194. 3, this->options(), target);
  3195. }
  3196. if (!unknown_fields().empty()) {
  3197. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3198. unknown_fields(), target);
  3199. }
  3200. return target;
  3201. }
  3202. int EnumValueDescriptorProto::ByteSize() const {
  3203. int total_size = 0;
  3204. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3205. // optional string name = 1;
  3206. if (has_name()) {
  3207. total_size += 1 +
  3208. ::google::protobuf::internal::WireFormatLite::StringSize(
  3209. this->name());
  3210. }
  3211. // optional int32 number = 2;
  3212. if (has_number()) {
  3213. total_size += 1 +
  3214. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3215. this->number());
  3216. }
  3217. // optional .google.protobuf.EnumValueOptions options = 3;
  3218. if (has_options()) {
  3219. total_size += 1 +
  3220. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3221. this->options());
  3222. }
  3223. }
  3224. if (!unknown_fields().empty()) {
  3225. total_size +=
  3226. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3227. unknown_fields());
  3228. }
  3229. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3230. _cached_size_ = total_size;
  3231. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3232. return total_size;
  3233. }
  3234. void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  3235. GOOGLE_CHECK_NE(&from, this);
  3236. const EnumValueDescriptorProto* source =
  3237. ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueDescriptorProto*>(
  3238. &from);
  3239. if (source == NULL) {
  3240. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3241. } else {
  3242. MergeFrom(*source);
  3243. }
  3244. }
  3245. void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
  3246. GOOGLE_CHECK_NE(&from, this);
  3247. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3248. if (from.has_name()) {
  3249. set_name(from.name());
  3250. }
  3251. if (from.has_number()) {
  3252. set_number(from.number());
  3253. }
  3254. if (from.has_options()) {
  3255. mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
  3256. }
  3257. }
  3258. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3259. }
  3260. void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  3261. if (&from == this) return;
  3262. Clear();
  3263. MergeFrom(from);
  3264. }
  3265. void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
  3266. if (&from == this) return;
  3267. Clear();
  3268. MergeFrom(from);
  3269. }
  3270. bool EnumValueDescriptorProto::IsInitialized() const {
  3271. if (has_options()) {
  3272. if (!this->options().IsInitialized()) return false;
  3273. }
  3274. return true;
  3275. }
  3276. void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
  3277. if (other != this) {
  3278. std::swap(name_, other->name_);
  3279. std::swap(number_, other->number_);
  3280. std::swap(options_, other->options_);
  3281. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3282. _unknown_fields_.Swap(&other->_unknown_fields_);
  3283. std::swap(_cached_size_, other->_cached_size_);
  3284. }
  3285. }
  3286. ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
  3287. protobuf_AssignDescriptorsOnce();
  3288. ::google::protobuf::Metadata metadata;
  3289. metadata.descriptor = EnumValueDescriptorProto_descriptor_;
  3290. metadata.reflection = EnumValueDescriptorProto_reflection_;
  3291. return metadata;
  3292. }
  3293. // ===================================================================
  3294. #ifndef _MSC_VER
  3295. const int ServiceDescriptorProto::kNameFieldNumber;
  3296. const int ServiceDescriptorProto::kMethodFieldNumber;
  3297. const int ServiceDescriptorProto::kOptionsFieldNumber;
  3298. #endif // !_MSC_VER
  3299. ServiceDescriptorProto::ServiceDescriptorProto()
  3300. : ::google::protobuf::Message() {
  3301. SharedCtor();
  3302. }
  3303. void ServiceDescriptorProto::InitAsDefaultInstance() {
  3304. options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
  3305. }
  3306. ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
  3307. : ::google::protobuf::Message() {
  3308. SharedCtor();
  3309. MergeFrom(from);
  3310. }
  3311. void ServiceDescriptorProto::SharedCtor() {
  3312. _cached_size_ = 0;
  3313. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3314. options_ = NULL;
  3315. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3316. }
  3317. ServiceDescriptorProto::~ServiceDescriptorProto() {
  3318. SharedDtor();
  3319. }
  3320. void ServiceDescriptorProto::SharedDtor() {
  3321. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3322. delete name_;
  3323. }
  3324. if (this != default_instance_) {
  3325. delete options_;
  3326. }
  3327. }
  3328. void ServiceDescriptorProto::SetCachedSize(int size) const {
  3329. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3330. _cached_size_ = size;
  3331. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3332. }
  3333. const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
  3334. protobuf_AssignDescriptorsOnce();
  3335. return ServiceDescriptorProto_descriptor_;
  3336. }
  3337. const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
  3338. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  3339. return *default_instance_;
  3340. }
  3341. ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
  3342. ServiceDescriptorProto* ServiceDescriptorProto::New() const {
  3343. return new ServiceDescriptorProto;
  3344. }
  3345. void ServiceDescriptorProto::Clear() {
  3346. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3347. if (has_name()) {
  3348. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3349. name_->clear();
  3350. }
  3351. }
  3352. if (has_options()) {
  3353. if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
  3354. }
  3355. }
  3356. method_.Clear();
  3357. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3358. mutable_unknown_fields()->Clear();
  3359. }
  3360. bool ServiceDescriptorProto::MergePartialFromCodedStream(
  3361. ::google::protobuf::io::CodedInputStream* input) {
  3362. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3363. ::google::protobuf::uint32 tag;
  3364. while ((tag = input->ReadTag()) != 0) {
  3365. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3366. // optional string name = 1;
  3367. case 1: {
  3368. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3369. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3370. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3371. input, this->mutable_name()));
  3372. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3373. this->name().data(), this->name().length(),
  3374. ::google::protobuf::internal::WireFormat::PARSE);
  3375. } else {
  3376. goto handle_uninterpreted;
  3377. }
  3378. if (input->ExpectTag(18)) goto parse_method;
  3379. break;
  3380. }
  3381. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3382. case 2: {
  3383. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3384. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3385. parse_method:
  3386. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3387. input, add_method()));
  3388. } else {
  3389. goto handle_uninterpreted;
  3390. }
  3391. if (input->ExpectTag(18)) goto parse_method;
  3392. if (input->ExpectTag(26)) goto parse_options;
  3393. break;
  3394. }
  3395. // optional .google.protobuf.ServiceOptions options = 3;
  3396. case 3: {
  3397. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3398. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3399. parse_options:
  3400. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3401. input, mutable_options()));
  3402. } else {
  3403. goto handle_uninterpreted;
  3404. }
  3405. if (input->ExpectAtEnd()) return true;
  3406. break;
  3407. }
  3408. default: {
  3409. handle_uninterpreted:
  3410. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3411. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3412. return true;
  3413. }
  3414. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3415. input, tag, mutable_unknown_fields()));
  3416. break;
  3417. }
  3418. }
  3419. }
  3420. return true;
  3421. #undef DO_
  3422. }
  3423. void ServiceDescriptorProto::SerializeWithCachedSizes(
  3424. ::google::protobuf::io::CodedOutputStream* output) const {
  3425. // optional string name = 1;
  3426. if (has_name()) {
  3427. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3428. this->name().data(), this->name().length(),
  3429. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3430. ::google::protobuf::internal::WireFormatLite::WriteString(
  3431. 1, this->name(), output);
  3432. }
  3433. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3434. for (int i = 0; i < this->method_size(); i++) {
  3435. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3436. 2, this->method(i), output);
  3437. }
  3438. // optional .google.protobuf.ServiceOptions options = 3;
  3439. if (has_options()) {
  3440. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3441. 3, this->options(), output);
  3442. }
  3443. if (!unknown_fields().empty()) {
  3444. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3445. unknown_fields(), output);
  3446. }
  3447. }
  3448. ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
  3449. ::google::protobuf::uint8* target) const {
  3450. // optional string name = 1;
  3451. if (has_name()) {
  3452. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3453. this->name().data(), this->name().length(),
  3454. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3455. target =
  3456. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3457. 1, this->name(), target);
  3458. }
  3459. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3460. for (int i = 0; i < this->method_size(); i++) {
  3461. target = ::google::protobuf::internal::WireFormatLite::
  3462. WriteMessageNoVirtualToArray(
  3463. 2, this->method(i), target);
  3464. }
  3465. // optional .google.protobuf.ServiceOptions options = 3;
  3466. if (has_options()) {
  3467. target = ::google::protobuf::internal::WireFormatLite::
  3468. WriteMessageNoVirtualToArray(
  3469. 3, this->options(), target);
  3470. }
  3471. if (!unknown_fields().empty()) {
  3472. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3473. unknown_fields(), target);
  3474. }
  3475. return target;
  3476. }
  3477. int ServiceDescriptorProto::ByteSize() const {
  3478. int total_size = 0;
  3479. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3480. // optional string name = 1;
  3481. if (has_name()) {
  3482. total_size += 1 +
  3483. ::google::protobuf::internal::WireFormatLite::StringSize(
  3484. this->name());
  3485. }
  3486. // optional .google.protobuf.ServiceOptions options = 3;
  3487. if (has_options()) {
  3488. total_size += 1 +
  3489. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3490. this->options());
  3491. }
  3492. }
  3493. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3494. total_size += 1 * this->method_size();
  3495. for (int i = 0; i < this->method_size(); i++) {
  3496. total_size +=
  3497. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3498. this->method(i));
  3499. }
  3500. if (!unknown_fields().empty()) {
  3501. total_size +=
  3502. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3503. unknown_fields());
  3504. }
  3505. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3506. _cached_size_ = total_size;
  3507. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3508. return total_size;
  3509. }
  3510. void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  3511. GOOGLE_CHECK_NE(&from, this);
  3512. const ServiceDescriptorProto* source =
  3513. ::google::protobuf::internal::dynamic_cast_if_available<const ServiceDescriptorProto*>(
  3514. &from);
  3515. if (source == NULL) {
  3516. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3517. } else {
  3518. MergeFrom(*source);
  3519. }
  3520. }
  3521. void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
  3522. GOOGLE_CHECK_NE(&from, this);
  3523. method_.MergeFrom(from.method_);
  3524. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3525. if (from.has_name()) {
  3526. set_name(from.name());
  3527. }
  3528. if (from.has_options()) {
  3529. mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
  3530. }
  3531. }
  3532. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3533. }
  3534. void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  3535. if (&from == this) return;
  3536. Clear();
  3537. MergeFrom(from);
  3538. }
  3539. void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
  3540. if (&from == this) return;
  3541. Clear();
  3542. MergeFrom(from);
  3543. }
  3544. bool ServiceDescriptorProto::IsInitialized() const {
  3545. for (int i = 0; i < method_size(); i++) {
  3546. if (!this->method(i).IsInitialized()) return false;
  3547. }
  3548. if (has_options()) {
  3549. if (!this->options().IsInitialized()) return false;
  3550. }
  3551. return true;
  3552. }
  3553. void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
  3554. if (other != this) {
  3555. std::swap(name_, other->name_);
  3556. method_.Swap(&other->method_);
  3557. std::swap(options_, other->options_);
  3558. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3559. _unknown_fields_.Swap(&other->_unknown_fields_);
  3560. std::swap(_cached_size_, other->_cached_size_);
  3561. }
  3562. }
  3563. ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
  3564. protobuf_AssignDescriptorsOnce();
  3565. ::google::protobuf::Metadata metadata;
  3566. metadata.descriptor = ServiceDescriptorProto_descriptor_;
  3567. metadata.reflection = ServiceDescriptorProto_reflection_;
  3568. return metadata;
  3569. }
  3570. // ===================================================================
  3571. #ifndef _MSC_VER
  3572. const int MethodDescriptorProto::kNameFieldNumber;
  3573. const int MethodDescriptorProto::kInputTypeFieldNumber;
  3574. const int MethodDescriptorProto::kOutputTypeFieldNumber;
  3575. const int MethodDescriptorProto::kOptionsFieldNumber;
  3576. #endif // !_MSC_VER
  3577. MethodDescriptorProto::MethodDescriptorProto()
  3578. : ::google::protobuf::Message() {
  3579. SharedCtor();
  3580. }
  3581. void MethodDescriptorProto::InitAsDefaultInstance() {
  3582. options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
  3583. }
  3584. MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
  3585. : ::google::protobuf::Message() {
  3586. SharedCtor();
  3587. MergeFrom(from);
  3588. }
  3589. void MethodDescriptorProto::SharedCtor() {
  3590. _cached_size_ = 0;
  3591. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3592. input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3593. output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3594. options_ = NULL;
  3595. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3596. }
  3597. MethodDescriptorProto::~MethodDescriptorProto() {
  3598. SharedDtor();
  3599. }
  3600. void MethodDescriptorProto::SharedDtor() {
  3601. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3602. delete name_;
  3603. }
  3604. if (input_type_ != &::google::protobuf::internal::GetEmptyString()) {
  3605. delete input_type_;
  3606. }
  3607. if (output_type_ != &::google::protobuf::internal::GetEmptyString()) {
  3608. delete output_type_;
  3609. }
  3610. if (this != default_instance_) {
  3611. delete options_;
  3612. }
  3613. }
  3614. void MethodDescriptorProto::SetCachedSize(int size) const {
  3615. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3616. _cached_size_ = size;
  3617. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3618. }
  3619. const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
  3620. protobuf_AssignDescriptorsOnce();
  3621. return MethodDescriptorProto_descriptor_;
  3622. }
  3623. const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
  3624. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  3625. return *default_instance_;
  3626. }
  3627. MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
  3628. MethodDescriptorProto* MethodDescriptorProto::New() const {
  3629. return new MethodDescriptorProto;
  3630. }
  3631. void MethodDescriptorProto::Clear() {
  3632. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3633. if (has_name()) {
  3634. if (name_ != &::google::protobuf::internal::GetEmptyString()) {
  3635. name_->clear();
  3636. }
  3637. }
  3638. if (has_input_type()) {
  3639. if (input_type_ != &::google::protobuf::internal::GetEmptyString()) {
  3640. input_type_->clear();
  3641. }
  3642. }
  3643. if (has_output_type()) {
  3644. if (output_type_ != &::google::protobuf::internal::GetEmptyString()) {
  3645. output_type_->clear();
  3646. }
  3647. }
  3648. if (has_options()) {
  3649. if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
  3650. }
  3651. }
  3652. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3653. mutable_unknown_fields()->Clear();
  3654. }
  3655. bool MethodDescriptorProto::MergePartialFromCodedStream(
  3656. ::google::protobuf::io::CodedInputStream* input) {
  3657. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  3658. ::google::protobuf::uint32 tag;
  3659. while ((tag = input->ReadTag()) != 0) {
  3660. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3661. // optional string name = 1;
  3662. case 1: {
  3663. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3664. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3665. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3666. input, this->mutable_name()));
  3667. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3668. this->name().data(), this->name().length(),
  3669. ::google::protobuf::internal::WireFormat::PARSE);
  3670. } else {
  3671. goto handle_uninterpreted;
  3672. }
  3673. if (input->ExpectTag(18)) goto parse_input_type;
  3674. break;
  3675. }
  3676. // optional string input_type = 2;
  3677. case 2: {
  3678. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3679. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3680. parse_input_type:
  3681. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3682. input, this->mutable_input_type()));
  3683. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3684. this->input_type().data(), this->input_type().length(),
  3685. ::google::protobuf::internal::WireFormat::PARSE);
  3686. } else {
  3687. goto handle_uninterpreted;
  3688. }
  3689. if (input->ExpectTag(26)) goto parse_output_type;
  3690. break;
  3691. }
  3692. // optional string output_type = 3;
  3693. case 3: {
  3694. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3695. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3696. parse_output_type:
  3697. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3698. input, this->mutable_output_type()));
  3699. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3700. this->output_type().data(), this->output_type().length(),
  3701. ::google::protobuf::internal::WireFormat::PARSE);
  3702. } else {
  3703. goto handle_uninterpreted;
  3704. }
  3705. if (input->ExpectTag(34)) goto parse_options;
  3706. break;
  3707. }
  3708. // optional .google.protobuf.MethodOptions options = 4;
  3709. case 4: {
  3710. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3711. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  3712. parse_options:
  3713. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  3714. input, mutable_options()));
  3715. } else {
  3716. goto handle_uninterpreted;
  3717. }
  3718. if (input->ExpectAtEnd()) return true;
  3719. break;
  3720. }
  3721. default: {
  3722. handle_uninterpreted:
  3723. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  3724. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  3725. return true;
  3726. }
  3727. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3728. input, tag, mutable_unknown_fields()));
  3729. break;
  3730. }
  3731. }
  3732. }
  3733. return true;
  3734. #undef DO_
  3735. }
  3736. void MethodDescriptorProto::SerializeWithCachedSizes(
  3737. ::google::protobuf::io::CodedOutputStream* output) const {
  3738. // optional string name = 1;
  3739. if (has_name()) {
  3740. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3741. this->name().data(), this->name().length(),
  3742. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3743. ::google::protobuf::internal::WireFormatLite::WriteString(
  3744. 1, this->name(), output);
  3745. }
  3746. // optional string input_type = 2;
  3747. if (has_input_type()) {
  3748. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3749. this->input_type().data(), this->input_type().length(),
  3750. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3751. ::google::protobuf::internal::WireFormatLite::WriteString(
  3752. 2, this->input_type(), output);
  3753. }
  3754. // optional string output_type = 3;
  3755. if (has_output_type()) {
  3756. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3757. this->output_type().data(), this->output_type().length(),
  3758. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3759. ::google::protobuf::internal::WireFormatLite::WriteString(
  3760. 3, this->output_type(), output);
  3761. }
  3762. // optional .google.protobuf.MethodOptions options = 4;
  3763. if (has_options()) {
  3764. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3765. 4, this->options(), output);
  3766. }
  3767. if (!unknown_fields().empty()) {
  3768. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3769. unknown_fields(), output);
  3770. }
  3771. }
  3772. ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
  3773. ::google::protobuf::uint8* target) const {
  3774. // optional string name = 1;
  3775. if (has_name()) {
  3776. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3777. this->name().data(), this->name().length(),
  3778. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3779. target =
  3780. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3781. 1, this->name(), target);
  3782. }
  3783. // optional string input_type = 2;
  3784. if (has_input_type()) {
  3785. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3786. this->input_type().data(), this->input_type().length(),
  3787. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3788. target =
  3789. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3790. 2, this->input_type(), target);
  3791. }
  3792. // optional string output_type = 3;
  3793. if (has_output_type()) {
  3794. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  3795. this->output_type().data(), this->output_type().length(),
  3796. ::google::protobuf::internal::WireFormat::SERIALIZE);
  3797. target =
  3798. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3799. 3, this->output_type(), target);
  3800. }
  3801. // optional .google.protobuf.MethodOptions options = 4;
  3802. if (has_options()) {
  3803. target = ::google::protobuf::internal::WireFormatLite::
  3804. WriteMessageNoVirtualToArray(
  3805. 4, this->options(), target);
  3806. }
  3807. if (!unknown_fields().empty()) {
  3808. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3809. unknown_fields(), target);
  3810. }
  3811. return target;
  3812. }
  3813. int MethodDescriptorProto::ByteSize() const {
  3814. int total_size = 0;
  3815. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3816. // optional string name = 1;
  3817. if (has_name()) {
  3818. total_size += 1 +
  3819. ::google::protobuf::internal::WireFormatLite::StringSize(
  3820. this->name());
  3821. }
  3822. // optional string input_type = 2;
  3823. if (has_input_type()) {
  3824. total_size += 1 +
  3825. ::google::protobuf::internal::WireFormatLite::StringSize(
  3826. this->input_type());
  3827. }
  3828. // optional string output_type = 3;
  3829. if (has_output_type()) {
  3830. total_size += 1 +
  3831. ::google::protobuf::internal::WireFormatLite::StringSize(
  3832. this->output_type());
  3833. }
  3834. // optional .google.protobuf.MethodOptions options = 4;
  3835. if (has_options()) {
  3836. total_size += 1 +
  3837. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3838. this->options());
  3839. }
  3840. }
  3841. if (!unknown_fields().empty()) {
  3842. total_size +=
  3843. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3844. unknown_fields());
  3845. }
  3846. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3847. _cached_size_ = total_size;
  3848. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3849. return total_size;
  3850. }
  3851. void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  3852. GOOGLE_CHECK_NE(&from, this);
  3853. const MethodDescriptorProto* source =
  3854. ::google::protobuf::internal::dynamic_cast_if_available<const MethodDescriptorProto*>(
  3855. &from);
  3856. if (source == NULL) {
  3857. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3858. } else {
  3859. MergeFrom(*source);
  3860. }
  3861. }
  3862. void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
  3863. GOOGLE_CHECK_NE(&from, this);
  3864. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3865. if (from.has_name()) {
  3866. set_name(from.name());
  3867. }
  3868. if (from.has_input_type()) {
  3869. set_input_type(from.input_type());
  3870. }
  3871. if (from.has_output_type()) {
  3872. set_output_type(from.output_type());
  3873. }
  3874. if (from.has_options()) {
  3875. mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
  3876. }
  3877. }
  3878. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3879. }
  3880. void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  3881. if (&from == this) return;
  3882. Clear();
  3883. MergeFrom(from);
  3884. }
  3885. void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
  3886. if (&from == this) return;
  3887. Clear();
  3888. MergeFrom(from);
  3889. }
  3890. bool MethodDescriptorProto::IsInitialized() const {
  3891. if (has_options()) {
  3892. if (!this->options().IsInitialized()) return false;
  3893. }
  3894. return true;
  3895. }
  3896. void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
  3897. if (other != this) {
  3898. std::swap(name_, other->name_);
  3899. std::swap(input_type_, other->input_type_);
  3900. std::swap(output_type_, other->output_type_);
  3901. std::swap(options_, other->options_);
  3902. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3903. _unknown_fields_.Swap(&other->_unknown_fields_);
  3904. std::swap(_cached_size_, other->_cached_size_);
  3905. }
  3906. }
  3907. ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
  3908. protobuf_AssignDescriptorsOnce();
  3909. ::google::protobuf::Metadata metadata;
  3910. metadata.descriptor = MethodDescriptorProto_descriptor_;
  3911. metadata.reflection = MethodDescriptorProto_reflection_;
  3912. return metadata;
  3913. }
  3914. // ===================================================================
  3915. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
  3916. protobuf_AssignDescriptorsOnce();
  3917. return FileOptions_OptimizeMode_descriptor_;
  3918. }
  3919. bool FileOptions_OptimizeMode_IsValid(int value) {
  3920. switch(value) {
  3921. case 1:
  3922. case 2:
  3923. case 3:
  3924. return true;
  3925. default:
  3926. return false;
  3927. }
  3928. }
  3929. #ifndef _MSC_VER
  3930. const FileOptions_OptimizeMode FileOptions::SPEED;
  3931. const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
  3932. const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
  3933. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
  3934. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
  3935. const int FileOptions::OptimizeMode_ARRAYSIZE;
  3936. #endif // _MSC_VER
  3937. #ifndef _MSC_VER
  3938. const int FileOptions::kJavaPackageFieldNumber;
  3939. const int FileOptions::kJavaOuterClassnameFieldNumber;
  3940. const int FileOptions::kJavaMultipleFilesFieldNumber;
  3941. const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
  3942. const int FileOptions::kOptimizeForFieldNumber;
  3943. const int FileOptions::kGoPackageFieldNumber;
  3944. const int FileOptions::kCcGenericServicesFieldNumber;
  3945. const int FileOptions::kJavaGenericServicesFieldNumber;
  3946. const int FileOptions::kPyGenericServicesFieldNumber;
  3947. const int FileOptions::kUninterpretedOptionFieldNumber;
  3948. #endif // !_MSC_VER
  3949. FileOptions::FileOptions()
  3950. : ::google::protobuf::Message() {
  3951. SharedCtor();
  3952. }
  3953. void FileOptions::InitAsDefaultInstance() {
  3954. }
  3955. FileOptions::FileOptions(const FileOptions& from)
  3956. : ::google::protobuf::Message() {
  3957. SharedCtor();
  3958. MergeFrom(from);
  3959. }
  3960. void FileOptions::SharedCtor() {
  3961. _cached_size_ = 0;
  3962. java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3963. java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3964. java_multiple_files_ = false;
  3965. java_generate_equals_and_hash_ = false;
  3966. optimize_for_ = 1;
  3967. go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  3968. cc_generic_services_ = false;
  3969. java_generic_services_ = false;
  3970. py_generic_services_ = false;
  3971. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3972. }
  3973. FileOptions::~FileOptions() {
  3974. SharedDtor();
  3975. }
  3976. void FileOptions::SharedDtor() {
  3977. if (java_package_ != &::google::protobuf::internal::GetEmptyString()) {
  3978. delete java_package_;
  3979. }
  3980. if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyString()) {
  3981. delete java_outer_classname_;
  3982. }
  3983. if (go_package_ != &::google::protobuf::internal::GetEmptyString()) {
  3984. delete go_package_;
  3985. }
  3986. if (this != default_instance_) {
  3987. }
  3988. }
  3989. void FileOptions::SetCachedSize(int size) const {
  3990. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3991. _cached_size_ = size;
  3992. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3993. }
  3994. const ::google::protobuf::Descriptor* FileOptions::descriptor() {
  3995. protobuf_AssignDescriptorsOnce();
  3996. return FileOptions_descriptor_;
  3997. }
  3998. const FileOptions& FileOptions::default_instance() {
  3999. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  4000. return *default_instance_;
  4001. }
  4002. FileOptions* FileOptions::default_instance_ = NULL;
  4003. FileOptions* FileOptions::New() const {
  4004. return new FileOptions;
  4005. }
  4006. void FileOptions::Clear() {
  4007. _extensions_.Clear();
  4008. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4009. if (has_java_package()) {
  4010. if (java_package_ != &::google::protobuf::internal::GetEmptyString()) {
  4011. java_package_->clear();
  4012. }
  4013. }
  4014. if (has_java_outer_classname()) {
  4015. if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyString()) {
  4016. java_outer_classname_->clear();
  4017. }
  4018. }
  4019. java_multiple_files_ = false;
  4020. java_generate_equals_and_hash_ = false;
  4021. optimize_for_ = 1;
  4022. if (has_go_package()) {
  4023. if (go_package_ != &::google::protobuf::internal::GetEmptyString()) {
  4024. go_package_->clear();
  4025. }
  4026. }
  4027. cc_generic_services_ = false;
  4028. java_generic_services_ = false;
  4029. }
  4030. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  4031. py_generic_services_ = false;
  4032. }
  4033. uninterpreted_option_.Clear();
  4034. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4035. mutable_unknown_fields()->Clear();
  4036. }
  4037. bool FileOptions::MergePartialFromCodedStream(
  4038. ::google::protobuf::io::CodedInputStream* input) {
  4039. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4040. ::google::protobuf::uint32 tag;
  4041. while ((tag = input->ReadTag()) != 0) {
  4042. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4043. // optional string java_package = 1;
  4044. case 1: {
  4045. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4046. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4047. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4048. input, this->mutable_java_package()));
  4049. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4050. this->java_package().data(), this->java_package().length(),
  4051. ::google::protobuf::internal::WireFormat::PARSE);
  4052. } else {
  4053. goto handle_uninterpreted;
  4054. }
  4055. if (input->ExpectTag(66)) goto parse_java_outer_classname;
  4056. break;
  4057. }
  4058. // optional string java_outer_classname = 8;
  4059. case 8: {
  4060. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4061. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4062. parse_java_outer_classname:
  4063. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4064. input, this->mutable_java_outer_classname()));
  4065. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4066. this->java_outer_classname().data(), this->java_outer_classname().length(),
  4067. ::google::protobuf::internal::WireFormat::PARSE);
  4068. } else {
  4069. goto handle_uninterpreted;
  4070. }
  4071. if (input->ExpectTag(72)) goto parse_optimize_for;
  4072. break;
  4073. }
  4074. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4075. case 9: {
  4076. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4077. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4078. parse_optimize_for:
  4079. int value;
  4080. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4081. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4082. input, &value)));
  4083. if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
  4084. set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
  4085. } else {
  4086. mutable_unknown_fields()->AddVarint(9, value);
  4087. }
  4088. } else {
  4089. goto handle_uninterpreted;
  4090. }
  4091. if (input->ExpectTag(80)) goto parse_java_multiple_files;
  4092. break;
  4093. }
  4094. // optional bool java_multiple_files = 10 [default = false];
  4095. case 10: {
  4096. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4097. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4098. parse_java_multiple_files:
  4099. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4100. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4101. input, &java_multiple_files_)));
  4102. set_has_java_multiple_files();
  4103. } else {
  4104. goto handle_uninterpreted;
  4105. }
  4106. if (input->ExpectTag(90)) goto parse_go_package;
  4107. break;
  4108. }
  4109. // optional string go_package = 11;
  4110. case 11: {
  4111. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4112. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4113. parse_go_package:
  4114. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4115. input, this->mutable_go_package()));
  4116. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4117. this->go_package().data(), this->go_package().length(),
  4118. ::google::protobuf::internal::WireFormat::PARSE);
  4119. } else {
  4120. goto handle_uninterpreted;
  4121. }
  4122. if (input->ExpectTag(128)) goto parse_cc_generic_services;
  4123. break;
  4124. }
  4125. // optional bool cc_generic_services = 16 [default = false];
  4126. case 16: {
  4127. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4128. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4129. parse_cc_generic_services:
  4130. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4131. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4132. input, &cc_generic_services_)));
  4133. set_has_cc_generic_services();
  4134. } else {
  4135. goto handle_uninterpreted;
  4136. }
  4137. if (input->ExpectTag(136)) goto parse_java_generic_services;
  4138. break;
  4139. }
  4140. // optional bool java_generic_services = 17 [default = false];
  4141. case 17: {
  4142. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4143. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4144. parse_java_generic_services:
  4145. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4146. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4147. input, &java_generic_services_)));
  4148. set_has_java_generic_services();
  4149. } else {
  4150. goto handle_uninterpreted;
  4151. }
  4152. if (input->ExpectTag(144)) goto parse_py_generic_services;
  4153. break;
  4154. }
  4155. // optional bool py_generic_services = 18 [default = false];
  4156. case 18: {
  4157. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4158. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4159. parse_py_generic_services:
  4160. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4161. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4162. input, &py_generic_services_)));
  4163. set_has_py_generic_services();
  4164. } else {
  4165. goto handle_uninterpreted;
  4166. }
  4167. if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
  4168. break;
  4169. }
  4170. // optional bool java_generate_equals_and_hash = 20 [default = false];
  4171. case 20: {
  4172. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4173. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4174. parse_java_generate_equals_and_hash:
  4175. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4176. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4177. input, &java_generate_equals_and_hash_)));
  4178. set_has_java_generate_equals_and_hash();
  4179. } else {
  4180. goto handle_uninterpreted;
  4181. }
  4182. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4183. break;
  4184. }
  4185. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4186. case 999: {
  4187. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4188. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4189. parse_uninterpreted_option:
  4190. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4191. input, add_uninterpreted_option()));
  4192. } else {
  4193. goto handle_uninterpreted;
  4194. }
  4195. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4196. if (input->ExpectAtEnd()) return true;
  4197. break;
  4198. }
  4199. default: {
  4200. handle_uninterpreted:
  4201. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4202. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4203. return true;
  4204. }
  4205. if ((8000u <= tag)) {
  4206. DO_(_extensions_.ParseField(tag, input, default_instance_,
  4207. mutable_unknown_fields()));
  4208. continue;
  4209. }
  4210. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4211. input, tag, mutable_unknown_fields()));
  4212. break;
  4213. }
  4214. }
  4215. }
  4216. return true;
  4217. #undef DO_
  4218. }
  4219. void FileOptions::SerializeWithCachedSizes(
  4220. ::google::protobuf::io::CodedOutputStream* output) const {
  4221. // optional string java_package = 1;
  4222. if (has_java_package()) {
  4223. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4224. this->java_package().data(), this->java_package().length(),
  4225. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4226. ::google::protobuf::internal::WireFormatLite::WriteString(
  4227. 1, this->java_package(), output);
  4228. }
  4229. // optional string java_outer_classname = 8;
  4230. if (has_java_outer_classname()) {
  4231. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4232. this->java_outer_classname().data(), this->java_outer_classname().length(),
  4233. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4234. ::google::protobuf::internal::WireFormatLite::WriteString(
  4235. 8, this->java_outer_classname(), output);
  4236. }
  4237. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4238. if (has_optimize_for()) {
  4239. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4240. 9, this->optimize_for(), output);
  4241. }
  4242. // optional bool java_multiple_files = 10 [default = false];
  4243. if (has_java_multiple_files()) {
  4244. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
  4245. }
  4246. // optional string go_package = 11;
  4247. if (has_go_package()) {
  4248. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4249. this->go_package().data(), this->go_package().length(),
  4250. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4251. ::google::protobuf::internal::WireFormatLite::WriteString(
  4252. 11, this->go_package(), output);
  4253. }
  4254. // optional bool cc_generic_services = 16 [default = false];
  4255. if (has_cc_generic_services()) {
  4256. ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
  4257. }
  4258. // optional bool java_generic_services = 17 [default = false];
  4259. if (has_java_generic_services()) {
  4260. ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
  4261. }
  4262. // optional bool py_generic_services = 18 [default = false];
  4263. if (has_py_generic_services()) {
  4264. ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
  4265. }
  4266. // optional bool java_generate_equals_and_hash = 20 [default = false];
  4267. if (has_java_generate_equals_and_hash()) {
  4268. ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
  4269. }
  4270. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4271. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4272. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4273. 999, this->uninterpreted_option(i), output);
  4274. }
  4275. // Extension range [1000, 536870912)
  4276. _extensions_.SerializeWithCachedSizes(
  4277. 1000, 536870912, output);
  4278. if (!unknown_fields().empty()) {
  4279. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4280. unknown_fields(), output);
  4281. }
  4282. }
  4283. ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
  4284. ::google::protobuf::uint8* target) const {
  4285. // optional string java_package = 1;
  4286. if (has_java_package()) {
  4287. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4288. this->java_package().data(), this->java_package().length(),
  4289. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4290. target =
  4291. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4292. 1, this->java_package(), target);
  4293. }
  4294. // optional string java_outer_classname = 8;
  4295. if (has_java_outer_classname()) {
  4296. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4297. this->java_outer_classname().data(), this->java_outer_classname().length(),
  4298. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4299. target =
  4300. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4301. 8, this->java_outer_classname(), target);
  4302. }
  4303. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4304. if (has_optimize_for()) {
  4305. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4306. 9, this->optimize_for(), target);
  4307. }
  4308. // optional bool java_multiple_files = 10 [default = false];
  4309. if (has_java_multiple_files()) {
  4310. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
  4311. }
  4312. // optional string go_package = 11;
  4313. if (has_go_package()) {
  4314. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4315. this->go_package().data(), this->go_package().length(),
  4316. ::google::protobuf::internal::WireFormat::SERIALIZE);
  4317. target =
  4318. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4319. 11, this->go_package(), target);
  4320. }
  4321. // optional bool cc_generic_services = 16 [default = false];
  4322. if (has_cc_generic_services()) {
  4323. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
  4324. }
  4325. // optional bool java_generic_services = 17 [default = false];
  4326. if (has_java_generic_services()) {
  4327. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
  4328. }
  4329. // optional bool py_generic_services = 18 [default = false];
  4330. if (has_py_generic_services()) {
  4331. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
  4332. }
  4333. // optional bool java_generate_equals_and_hash = 20 [default = false];
  4334. if (has_java_generate_equals_and_hash()) {
  4335. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
  4336. }
  4337. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4338. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4339. target = ::google::protobuf::internal::WireFormatLite::
  4340. WriteMessageNoVirtualToArray(
  4341. 999, this->uninterpreted_option(i), target);
  4342. }
  4343. // Extension range [1000, 536870912)
  4344. target = _extensions_.SerializeWithCachedSizesToArray(
  4345. 1000, 536870912, target);
  4346. if (!unknown_fields().empty()) {
  4347. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4348. unknown_fields(), target);
  4349. }
  4350. return target;
  4351. }
  4352. int FileOptions::ByteSize() const {
  4353. int total_size = 0;
  4354. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4355. // optional string java_package = 1;
  4356. if (has_java_package()) {
  4357. total_size += 1 +
  4358. ::google::protobuf::internal::WireFormatLite::StringSize(
  4359. this->java_package());
  4360. }
  4361. // optional string java_outer_classname = 8;
  4362. if (has_java_outer_classname()) {
  4363. total_size += 1 +
  4364. ::google::protobuf::internal::WireFormatLite::StringSize(
  4365. this->java_outer_classname());
  4366. }
  4367. // optional bool java_multiple_files = 10 [default = false];
  4368. if (has_java_multiple_files()) {
  4369. total_size += 1 + 1;
  4370. }
  4371. // optional bool java_generate_equals_and_hash = 20 [default = false];
  4372. if (has_java_generate_equals_and_hash()) {
  4373. total_size += 2 + 1;
  4374. }
  4375. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4376. if (has_optimize_for()) {
  4377. total_size += 1 +
  4378. ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
  4379. }
  4380. // optional string go_package = 11;
  4381. if (has_go_package()) {
  4382. total_size += 1 +
  4383. ::google::protobuf::internal::WireFormatLite::StringSize(
  4384. this->go_package());
  4385. }
  4386. // optional bool cc_generic_services = 16 [default = false];
  4387. if (has_cc_generic_services()) {
  4388. total_size += 2 + 1;
  4389. }
  4390. // optional bool java_generic_services = 17 [default = false];
  4391. if (has_java_generic_services()) {
  4392. total_size += 2 + 1;
  4393. }
  4394. }
  4395. if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  4396. // optional bool py_generic_services = 18 [default = false];
  4397. if (has_py_generic_services()) {
  4398. total_size += 2 + 1;
  4399. }
  4400. }
  4401. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4402. total_size += 2 * this->uninterpreted_option_size();
  4403. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4404. total_size +=
  4405. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  4406. this->uninterpreted_option(i));
  4407. }
  4408. total_size += _extensions_.ByteSize();
  4409. if (!unknown_fields().empty()) {
  4410. total_size +=
  4411. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4412. unknown_fields());
  4413. }
  4414. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4415. _cached_size_ = total_size;
  4416. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4417. return total_size;
  4418. }
  4419. void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
  4420. GOOGLE_CHECK_NE(&from, this);
  4421. const FileOptions* source =
  4422. ::google::protobuf::internal::dynamic_cast_if_available<const FileOptions*>(
  4423. &from);
  4424. if (source == NULL) {
  4425. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4426. } else {
  4427. MergeFrom(*source);
  4428. }
  4429. }
  4430. void FileOptions::MergeFrom(const FileOptions& from) {
  4431. GOOGLE_CHECK_NE(&from, this);
  4432. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  4433. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4434. if (from.has_java_package()) {
  4435. set_java_package(from.java_package());
  4436. }
  4437. if (from.has_java_outer_classname()) {
  4438. set_java_outer_classname(from.java_outer_classname());
  4439. }
  4440. if (from.has_java_multiple_files()) {
  4441. set_java_multiple_files(from.java_multiple_files());
  4442. }
  4443. if (from.has_java_generate_equals_and_hash()) {
  4444. set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
  4445. }
  4446. if (from.has_optimize_for()) {
  4447. set_optimize_for(from.optimize_for());
  4448. }
  4449. if (from.has_go_package()) {
  4450. set_go_package(from.go_package());
  4451. }
  4452. if (from.has_cc_generic_services()) {
  4453. set_cc_generic_services(from.cc_generic_services());
  4454. }
  4455. if (from.has_java_generic_services()) {
  4456. set_java_generic_services(from.java_generic_services());
  4457. }
  4458. }
  4459. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  4460. if (from.has_py_generic_services()) {
  4461. set_py_generic_services(from.py_generic_services());
  4462. }
  4463. }
  4464. _extensions_.MergeFrom(from._extensions_);
  4465. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4466. }
  4467. void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
  4468. if (&from == this) return;
  4469. Clear();
  4470. MergeFrom(from);
  4471. }
  4472. void FileOptions::CopyFrom(const FileOptions& from) {
  4473. if (&from == this) return;
  4474. Clear();
  4475. MergeFrom(from);
  4476. }
  4477. bool FileOptions::IsInitialized() const {
  4478. for (int i = 0; i < uninterpreted_option_size(); i++) {
  4479. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  4480. }
  4481. if (!_extensions_.IsInitialized()) return false; return true;
  4482. }
  4483. void FileOptions::Swap(FileOptions* other) {
  4484. if (other != this) {
  4485. std::swap(java_package_, other->java_package_);
  4486. std::swap(java_outer_classname_, other->java_outer_classname_);
  4487. std::swap(java_multiple_files_, other->java_multiple_files_);
  4488. std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
  4489. std::swap(optimize_for_, other->optimize_for_);
  4490. std::swap(go_package_, other->go_package_);
  4491. std::swap(cc_generic_services_, other->cc_generic_services_);
  4492. std::swap(java_generic_services_, other->java_generic_services_);
  4493. std::swap(py_generic_services_, other->py_generic_services_);
  4494. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  4495. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4496. _unknown_fields_.Swap(&other->_unknown_fields_);
  4497. std::swap(_cached_size_, other->_cached_size_);
  4498. _extensions_.Swap(&other->_extensions_);
  4499. }
  4500. }
  4501. ::google::protobuf::Metadata FileOptions::GetMetadata() const {
  4502. protobuf_AssignDescriptorsOnce();
  4503. ::google::protobuf::Metadata metadata;
  4504. metadata.descriptor = FileOptions_descriptor_;
  4505. metadata.reflection = FileOptions_reflection_;
  4506. return metadata;
  4507. }
  4508. // ===================================================================
  4509. #ifndef _MSC_VER
  4510. const int MessageOptions::kMessageSetWireFormatFieldNumber;
  4511. const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
  4512. const int MessageOptions::kUninterpretedOptionFieldNumber;
  4513. #endif // !_MSC_VER
  4514. MessageOptions::MessageOptions()
  4515. : ::google::protobuf::Message() {
  4516. SharedCtor();
  4517. }
  4518. void MessageOptions::InitAsDefaultInstance() {
  4519. }
  4520. MessageOptions::MessageOptions(const MessageOptions& from)
  4521. : ::google::protobuf::Message() {
  4522. SharedCtor();
  4523. MergeFrom(from);
  4524. }
  4525. void MessageOptions::SharedCtor() {
  4526. _cached_size_ = 0;
  4527. message_set_wire_format_ = false;
  4528. no_standard_descriptor_accessor_ = false;
  4529. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4530. }
  4531. MessageOptions::~MessageOptions() {
  4532. SharedDtor();
  4533. }
  4534. void MessageOptions::SharedDtor() {
  4535. if (this != default_instance_) {
  4536. }
  4537. }
  4538. void MessageOptions::SetCachedSize(int size) const {
  4539. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4540. _cached_size_ = size;
  4541. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4542. }
  4543. const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
  4544. protobuf_AssignDescriptorsOnce();
  4545. return MessageOptions_descriptor_;
  4546. }
  4547. const MessageOptions& MessageOptions::default_instance() {
  4548. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  4549. return *default_instance_;
  4550. }
  4551. MessageOptions* MessageOptions::default_instance_ = NULL;
  4552. MessageOptions* MessageOptions::New() const {
  4553. return new MessageOptions;
  4554. }
  4555. void MessageOptions::Clear() {
  4556. _extensions_.Clear();
  4557. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4558. message_set_wire_format_ = false;
  4559. no_standard_descriptor_accessor_ = false;
  4560. }
  4561. uninterpreted_option_.Clear();
  4562. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4563. mutable_unknown_fields()->Clear();
  4564. }
  4565. bool MessageOptions::MergePartialFromCodedStream(
  4566. ::google::protobuf::io::CodedInputStream* input) {
  4567. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4568. ::google::protobuf::uint32 tag;
  4569. while ((tag = input->ReadTag()) != 0) {
  4570. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4571. // optional bool message_set_wire_format = 1 [default = false];
  4572. case 1: {
  4573. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4574. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4575. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4576. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4577. input, &message_set_wire_format_)));
  4578. set_has_message_set_wire_format();
  4579. } else {
  4580. goto handle_uninterpreted;
  4581. }
  4582. if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
  4583. break;
  4584. }
  4585. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4586. case 2: {
  4587. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4588. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4589. parse_no_standard_descriptor_accessor:
  4590. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4591. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4592. input, &no_standard_descriptor_accessor_)));
  4593. set_has_no_standard_descriptor_accessor();
  4594. } else {
  4595. goto handle_uninterpreted;
  4596. }
  4597. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4598. break;
  4599. }
  4600. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4601. case 999: {
  4602. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4603. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4604. parse_uninterpreted_option:
  4605. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4606. input, add_uninterpreted_option()));
  4607. } else {
  4608. goto handle_uninterpreted;
  4609. }
  4610. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4611. if (input->ExpectAtEnd()) return true;
  4612. break;
  4613. }
  4614. default: {
  4615. handle_uninterpreted:
  4616. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4617. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4618. return true;
  4619. }
  4620. if ((8000u <= tag)) {
  4621. DO_(_extensions_.ParseField(tag, input, default_instance_,
  4622. mutable_unknown_fields()));
  4623. continue;
  4624. }
  4625. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4626. input, tag, mutable_unknown_fields()));
  4627. break;
  4628. }
  4629. }
  4630. }
  4631. return true;
  4632. #undef DO_
  4633. }
  4634. void MessageOptions::SerializeWithCachedSizes(
  4635. ::google::protobuf::io::CodedOutputStream* output) const {
  4636. // optional bool message_set_wire_format = 1 [default = false];
  4637. if (has_message_set_wire_format()) {
  4638. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
  4639. }
  4640. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4641. if (has_no_standard_descriptor_accessor()) {
  4642. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
  4643. }
  4644. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4645. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4646. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4647. 999, this->uninterpreted_option(i), output);
  4648. }
  4649. // Extension range [1000, 536870912)
  4650. _extensions_.SerializeWithCachedSizes(
  4651. 1000, 536870912, output);
  4652. if (!unknown_fields().empty()) {
  4653. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4654. unknown_fields(), output);
  4655. }
  4656. }
  4657. ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
  4658. ::google::protobuf::uint8* target) const {
  4659. // optional bool message_set_wire_format = 1 [default = false];
  4660. if (has_message_set_wire_format()) {
  4661. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
  4662. }
  4663. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4664. if (has_no_standard_descriptor_accessor()) {
  4665. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
  4666. }
  4667. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4668. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4669. target = ::google::protobuf::internal::WireFormatLite::
  4670. WriteMessageNoVirtualToArray(
  4671. 999, this->uninterpreted_option(i), target);
  4672. }
  4673. // Extension range [1000, 536870912)
  4674. target = _extensions_.SerializeWithCachedSizesToArray(
  4675. 1000, 536870912, target);
  4676. if (!unknown_fields().empty()) {
  4677. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4678. unknown_fields(), target);
  4679. }
  4680. return target;
  4681. }
  4682. int MessageOptions::ByteSize() const {
  4683. int total_size = 0;
  4684. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4685. // optional bool message_set_wire_format = 1 [default = false];
  4686. if (has_message_set_wire_format()) {
  4687. total_size += 1 + 1;
  4688. }
  4689. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4690. if (has_no_standard_descriptor_accessor()) {
  4691. total_size += 1 + 1;
  4692. }
  4693. }
  4694. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4695. total_size += 2 * this->uninterpreted_option_size();
  4696. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  4697. total_size +=
  4698. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  4699. this->uninterpreted_option(i));
  4700. }
  4701. total_size += _extensions_.ByteSize();
  4702. if (!unknown_fields().empty()) {
  4703. total_size +=
  4704. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4705. unknown_fields());
  4706. }
  4707. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4708. _cached_size_ = total_size;
  4709. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4710. return total_size;
  4711. }
  4712. void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
  4713. GOOGLE_CHECK_NE(&from, this);
  4714. const MessageOptions* source =
  4715. ::google::protobuf::internal::dynamic_cast_if_available<const MessageOptions*>(
  4716. &from);
  4717. if (source == NULL) {
  4718. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4719. } else {
  4720. MergeFrom(*source);
  4721. }
  4722. }
  4723. void MessageOptions::MergeFrom(const MessageOptions& from) {
  4724. GOOGLE_CHECK_NE(&from, this);
  4725. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  4726. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4727. if (from.has_message_set_wire_format()) {
  4728. set_message_set_wire_format(from.message_set_wire_format());
  4729. }
  4730. if (from.has_no_standard_descriptor_accessor()) {
  4731. set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
  4732. }
  4733. }
  4734. _extensions_.MergeFrom(from._extensions_);
  4735. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4736. }
  4737. void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
  4738. if (&from == this) return;
  4739. Clear();
  4740. MergeFrom(from);
  4741. }
  4742. void MessageOptions::CopyFrom(const MessageOptions& from) {
  4743. if (&from == this) return;
  4744. Clear();
  4745. MergeFrom(from);
  4746. }
  4747. bool MessageOptions::IsInitialized() const {
  4748. for (int i = 0; i < uninterpreted_option_size(); i++) {
  4749. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  4750. }
  4751. if (!_extensions_.IsInitialized()) return false; return true;
  4752. }
  4753. void MessageOptions::Swap(MessageOptions* other) {
  4754. if (other != this) {
  4755. std::swap(message_set_wire_format_, other->message_set_wire_format_);
  4756. std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
  4757. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  4758. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4759. _unknown_fields_.Swap(&other->_unknown_fields_);
  4760. std::swap(_cached_size_, other->_cached_size_);
  4761. _extensions_.Swap(&other->_extensions_);
  4762. }
  4763. }
  4764. ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
  4765. protobuf_AssignDescriptorsOnce();
  4766. ::google::protobuf::Metadata metadata;
  4767. metadata.descriptor = MessageOptions_descriptor_;
  4768. metadata.reflection = MessageOptions_reflection_;
  4769. return metadata;
  4770. }
  4771. // ===================================================================
  4772. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
  4773. protobuf_AssignDescriptorsOnce();
  4774. return FieldOptions_CType_descriptor_;
  4775. }
  4776. bool FieldOptions_CType_IsValid(int value) {
  4777. switch(value) {
  4778. case 0:
  4779. case 1:
  4780. case 2:
  4781. return true;
  4782. default:
  4783. return false;
  4784. }
  4785. }
  4786. #ifndef _MSC_VER
  4787. const FieldOptions_CType FieldOptions::STRING;
  4788. const FieldOptions_CType FieldOptions::CORD;
  4789. const FieldOptions_CType FieldOptions::STRING_PIECE;
  4790. const FieldOptions_CType FieldOptions::CType_MIN;
  4791. const FieldOptions_CType FieldOptions::CType_MAX;
  4792. const int FieldOptions::CType_ARRAYSIZE;
  4793. #endif // _MSC_VER
  4794. #ifndef _MSC_VER
  4795. const int FieldOptions::kCtypeFieldNumber;
  4796. const int FieldOptions::kPackedFieldNumber;
  4797. const int FieldOptions::kLazyFieldNumber;
  4798. const int FieldOptions::kDeprecatedFieldNumber;
  4799. const int FieldOptions::kExperimentalMapKeyFieldNumber;
  4800. const int FieldOptions::kWeakFieldNumber;
  4801. const int FieldOptions::kUninterpretedOptionFieldNumber;
  4802. #endif // !_MSC_VER
  4803. FieldOptions::FieldOptions()
  4804. : ::google::protobuf::Message() {
  4805. SharedCtor();
  4806. }
  4807. void FieldOptions::InitAsDefaultInstance() {
  4808. }
  4809. FieldOptions::FieldOptions(const FieldOptions& from)
  4810. : ::google::protobuf::Message() {
  4811. SharedCtor();
  4812. MergeFrom(from);
  4813. }
  4814. void FieldOptions::SharedCtor() {
  4815. _cached_size_ = 0;
  4816. ctype_ = 0;
  4817. packed_ = false;
  4818. lazy_ = false;
  4819. deprecated_ = false;
  4820. experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  4821. weak_ = false;
  4822. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4823. }
  4824. FieldOptions::~FieldOptions() {
  4825. SharedDtor();
  4826. }
  4827. void FieldOptions::SharedDtor() {
  4828. if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyString()) {
  4829. delete experimental_map_key_;
  4830. }
  4831. if (this != default_instance_) {
  4832. }
  4833. }
  4834. void FieldOptions::SetCachedSize(int size) const {
  4835. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4836. _cached_size_ = size;
  4837. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4838. }
  4839. const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
  4840. protobuf_AssignDescriptorsOnce();
  4841. return FieldOptions_descriptor_;
  4842. }
  4843. const FieldOptions& FieldOptions::default_instance() {
  4844. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  4845. return *default_instance_;
  4846. }
  4847. FieldOptions* FieldOptions::default_instance_ = NULL;
  4848. FieldOptions* FieldOptions::New() const {
  4849. return new FieldOptions;
  4850. }
  4851. void FieldOptions::Clear() {
  4852. _extensions_.Clear();
  4853. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4854. ctype_ = 0;
  4855. packed_ = false;
  4856. lazy_ = false;
  4857. deprecated_ = false;
  4858. if (has_experimental_map_key()) {
  4859. if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyString()) {
  4860. experimental_map_key_->clear();
  4861. }
  4862. }
  4863. weak_ = false;
  4864. }
  4865. uninterpreted_option_.Clear();
  4866. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4867. mutable_unknown_fields()->Clear();
  4868. }
  4869. bool FieldOptions::MergePartialFromCodedStream(
  4870. ::google::protobuf::io::CodedInputStream* input) {
  4871. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  4872. ::google::protobuf::uint32 tag;
  4873. while ((tag = input->ReadTag()) != 0) {
  4874. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4875. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  4876. case 1: {
  4877. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4878. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4879. int value;
  4880. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4881. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4882. input, &value)));
  4883. if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
  4884. set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
  4885. } else {
  4886. mutable_unknown_fields()->AddVarint(1, value);
  4887. }
  4888. } else {
  4889. goto handle_uninterpreted;
  4890. }
  4891. if (input->ExpectTag(16)) goto parse_packed;
  4892. break;
  4893. }
  4894. // optional bool packed = 2;
  4895. case 2: {
  4896. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4897. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4898. parse_packed:
  4899. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4900. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4901. input, &packed_)));
  4902. set_has_packed();
  4903. } else {
  4904. goto handle_uninterpreted;
  4905. }
  4906. if (input->ExpectTag(24)) goto parse_deprecated;
  4907. break;
  4908. }
  4909. // optional bool deprecated = 3 [default = false];
  4910. case 3: {
  4911. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4912. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4913. parse_deprecated:
  4914. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4915. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4916. input, &deprecated_)));
  4917. set_has_deprecated();
  4918. } else {
  4919. goto handle_uninterpreted;
  4920. }
  4921. if (input->ExpectTag(40)) goto parse_lazy;
  4922. break;
  4923. }
  4924. // optional bool lazy = 5 [default = false];
  4925. case 5: {
  4926. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4927. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4928. parse_lazy:
  4929. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4930. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4931. input, &lazy_)));
  4932. set_has_lazy();
  4933. } else {
  4934. goto handle_uninterpreted;
  4935. }
  4936. if (input->ExpectTag(74)) goto parse_experimental_map_key;
  4937. break;
  4938. }
  4939. // optional string experimental_map_key = 9;
  4940. case 9: {
  4941. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4942. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4943. parse_experimental_map_key:
  4944. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4945. input, this->mutable_experimental_map_key()));
  4946. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  4947. this->experimental_map_key().data(), this->experimental_map_key().length(),
  4948. ::google::protobuf::internal::WireFormat::PARSE);
  4949. } else {
  4950. goto handle_uninterpreted;
  4951. }
  4952. if (input->ExpectTag(80)) goto parse_weak;
  4953. break;
  4954. }
  4955. // optional bool weak = 10 [default = false];
  4956. case 10: {
  4957. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4958. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  4959. parse_weak:
  4960. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4961. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  4962. input, &weak_)));
  4963. set_has_weak();
  4964. } else {
  4965. goto handle_uninterpreted;
  4966. }
  4967. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4968. break;
  4969. }
  4970. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4971. case 999: {
  4972. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4973. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  4974. parse_uninterpreted_option:
  4975. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4976. input, add_uninterpreted_option()));
  4977. } else {
  4978. goto handle_uninterpreted;
  4979. }
  4980. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  4981. if (input->ExpectAtEnd()) return true;
  4982. break;
  4983. }
  4984. default: {
  4985. handle_uninterpreted:
  4986. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4987. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4988. return true;
  4989. }
  4990. if ((8000u <= tag)) {
  4991. DO_(_extensions_.ParseField(tag, input, default_instance_,
  4992. mutable_unknown_fields()));
  4993. continue;
  4994. }
  4995. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4996. input, tag, mutable_unknown_fields()));
  4997. break;
  4998. }
  4999. }
  5000. }
  5001. return true;
  5002. #undef DO_
  5003. }
  5004. void FieldOptions::SerializeWithCachedSizes(
  5005. ::google::protobuf::io::CodedOutputStream* output) const {
  5006. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  5007. if (has_ctype()) {
  5008. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  5009. 1, this->ctype(), output);
  5010. }
  5011. // optional bool packed = 2;
  5012. if (has_packed()) {
  5013. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
  5014. }
  5015. // optional bool deprecated = 3 [default = false];
  5016. if (has_deprecated()) {
  5017. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  5018. }
  5019. // optional bool lazy = 5 [default = false];
  5020. if (has_lazy()) {
  5021. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
  5022. }
  5023. // optional string experimental_map_key = 9;
  5024. if (has_experimental_map_key()) {
  5025. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  5026. this->experimental_map_key().data(), this->experimental_map_key().length(),
  5027. ::google::protobuf::internal::WireFormat::SERIALIZE);
  5028. ::google::protobuf::internal::WireFormatLite::WriteString(
  5029. 9, this->experimental_map_key(), output);
  5030. }
  5031. // optional bool weak = 10 [default = false];
  5032. if (has_weak()) {
  5033. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
  5034. }
  5035. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5036. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5037. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5038. 999, this->uninterpreted_option(i), output);
  5039. }
  5040. // Extension range [1000, 536870912)
  5041. _extensions_.SerializeWithCachedSizes(
  5042. 1000, 536870912, output);
  5043. if (!unknown_fields().empty()) {
  5044. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5045. unknown_fields(), output);
  5046. }
  5047. }
  5048. ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
  5049. ::google::protobuf::uint8* target) const {
  5050. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  5051. if (has_ctype()) {
  5052. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  5053. 1, this->ctype(), target);
  5054. }
  5055. // optional bool packed = 2;
  5056. if (has_packed()) {
  5057. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
  5058. }
  5059. // optional bool deprecated = 3 [default = false];
  5060. if (has_deprecated()) {
  5061. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  5062. }
  5063. // optional bool lazy = 5 [default = false];
  5064. if (has_lazy()) {
  5065. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
  5066. }
  5067. // optional string experimental_map_key = 9;
  5068. if (has_experimental_map_key()) {
  5069. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  5070. this->experimental_map_key().data(), this->experimental_map_key().length(),
  5071. ::google::protobuf::internal::WireFormat::SERIALIZE);
  5072. target =
  5073. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  5074. 9, this->experimental_map_key(), target);
  5075. }
  5076. // optional bool weak = 10 [default = false];
  5077. if (has_weak()) {
  5078. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
  5079. }
  5080. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5081. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5082. target = ::google::protobuf::internal::WireFormatLite::
  5083. WriteMessageNoVirtualToArray(
  5084. 999, this->uninterpreted_option(i), target);
  5085. }
  5086. // Extension range [1000, 536870912)
  5087. target = _extensions_.SerializeWithCachedSizesToArray(
  5088. 1000, 536870912, target);
  5089. if (!unknown_fields().empty()) {
  5090. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5091. unknown_fields(), target);
  5092. }
  5093. return target;
  5094. }
  5095. int FieldOptions::ByteSize() const {
  5096. int total_size = 0;
  5097. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5098. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  5099. if (has_ctype()) {
  5100. total_size += 1 +
  5101. ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
  5102. }
  5103. // optional bool packed = 2;
  5104. if (has_packed()) {
  5105. total_size += 1 + 1;
  5106. }
  5107. // optional bool lazy = 5 [default = false];
  5108. if (has_lazy()) {
  5109. total_size += 1 + 1;
  5110. }
  5111. // optional bool deprecated = 3 [default = false];
  5112. if (has_deprecated()) {
  5113. total_size += 1 + 1;
  5114. }
  5115. // optional string experimental_map_key = 9;
  5116. if (has_experimental_map_key()) {
  5117. total_size += 1 +
  5118. ::google::protobuf::internal::WireFormatLite::StringSize(
  5119. this->experimental_map_key());
  5120. }
  5121. // optional bool weak = 10 [default = false];
  5122. if (has_weak()) {
  5123. total_size += 1 + 1;
  5124. }
  5125. }
  5126. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5127. total_size += 2 * this->uninterpreted_option_size();
  5128. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5129. total_size +=
  5130. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5131. this->uninterpreted_option(i));
  5132. }
  5133. total_size += _extensions_.ByteSize();
  5134. if (!unknown_fields().empty()) {
  5135. total_size +=
  5136. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5137. unknown_fields());
  5138. }
  5139. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5140. _cached_size_ = total_size;
  5141. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5142. return total_size;
  5143. }
  5144. void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
  5145. GOOGLE_CHECK_NE(&from, this);
  5146. const FieldOptions* source =
  5147. ::google::protobuf::internal::dynamic_cast_if_available<const FieldOptions*>(
  5148. &from);
  5149. if (source == NULL) {
  5150. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5151. } else {
  5152. MergeFrom(*source);
  5153. }
  5154. }
  5155. void FieldOptions::MergeFrom(const FieldOptions& from) {
  5156. GOOGLE_CHECK_NE(&from, this);
  5157. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  5158. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5159. if (from.has_ctype()) {
  5160. set_ctype(from.ctype());
  5161. }
  5162. if (from.has_packed()) {
  5163. set_packed(from.packed());
  5164. }
  5165. if (from.has_lazy()) {
  5166. set_lazy(from.lazy());
  5167. }
  5168. if (from.has_deprecated()) {
  5169. set_deprecated(from.deprecated());
  5170. }
  5171. if (from.has_experimental_map_key()) {
  5172. set_experimental_map_key(from.experimental_map_key());
  5173. }
  5174. if (from.has_weak()) {
  5175. set_weak(from.weak());
  5176. }
  5177. }
  5178. _extensions_.MergeFrom(from._extensions_);
  5179. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5180. }
  5181. void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
  5182. if (&from == this) return;
  5183. Clear();
  5184. MergeFrom(from);
  5185. }
  5186. void FieldOptions::CopyFrom(const FieldOptions& from) {
  5187. if (&from == this) return;
  5188. Clear();
  5189. MergeFrom(from);
  5190. }
  5191. bool FieldOptions::IsInitialized() const {
  5192. for (int i = 0; i < uninterpreted_option_size(); i++) {
  5193. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  5194. }
  5195. if (!_extensions_.IsInitialized()) return false; return true;
  5196. }
  5197. void FieldOptions::Swap(FieldOptions* other) {
  5198. if (other != this) {
  5199. std::swap(ctype_, other->ctype_);
  5200. std::swap(packed_, other->packed_);
  5201. std::swap(lazy_, other->lazy_);
  5202. std::swap(deprecated_, other->deprecated_);
  5203. std::swap(experimental_map_key_, other->experimental_map_key_);
  5204. std::swap(weak_, other->weak_);
  5205. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  5206. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5207. _unknown_fields_.Swap(&other->_unknown_fields_);
  5208. std::swap(_cached_size_, other->_cached_size_);
  5209. _extensions_.Swap(&other->_extensions_);
  5210. }
  5211. }
  5212. ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
  5213. protobuf_AssignDescriptorsOnce();
  5214. ::google::protobuf::Metadata metadata;
  5215. metadata.descriptor = FieldOptions_descriptor_;
  5216. metadata.reflection = FieldOptions_reflection_;
  5217. return metadata;
  5218. }
  5219. // ===================================================================
  5220. #ifndef _MSC_VER
  5221. const int EnumOptions::kAllowAliasFieldNumber;
  5222. const int EnumOptions::kUninterpretedOptionFieldNumber;
  5223. #endif // !_MSC_VER
  5224. EnumOptions::EnumOptions()
  5225. : ::google::protobuf::Message() {
  5226. SharedCtor();
  5227. }
  5228. void EnumOptions::InitAsDefaultInstance() {
  5229. }
  5230. EnumOptions::EnumOptions(const EnumOptions& from)
  5231. : ::google::protobuf::Message() {
  5232. SharedCtor();
  5233. MergeFrom(from);
  5234. }
  5235. void EnumOptions::SharedCtor() {
  5236. _cached_size_ = 0;
  5237. allow_alias_ = true;
  5238. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5239. }
  5240. EnumOptions::~EnumOptions() {
  5241. SharedDtor();
  5242. }
  5243. void EnumOptions::SharedDtor() {
  5244. if (this != default_instance_) {
  5245. }
  5246. }
  5247. void EnumOptions::SetCachedSize(int size) const {
  5248. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5249. _cached_size_ = size;
  5250. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5251. }
  5252. const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
  5253. protobuf_AssignDescriptorsOnce();
  5254. return EnumOptions_descriptor_;
  5255. }
  5256. const EnumOptions& EnumOptions::default_instance() {
  5257. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5258. return *default_instance_;
  5259. }
  5260. EnumOptions* EnumOptions::default_instance_ = NULL;
  5261. EnumOptions* EnumOptions::New() const {
  5262. return new EnumOptions;
  5263. }
  5264. void EnumOptions::Clear() {
  5265. _extensions_.Clear();
  5266. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5267. allow_alias_ = true;
  5268. }
  5269. uninterpreted_option_.Clear();
  5270. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5271. mutable_unknown_fields()->Clear();
  5272. }
  5273. bool EnumOptions::MergePartialFromCodedStream(
  5274. ::google::protobuf::io::CodedInputStream* input) {
  5275. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5276. ::google::protobuf::uint32 tag;
  5277. while ((tag = input->ReadTag()) != 0) {
  5278. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5279. // optional bool allow_alias = 2 [default = true];
  5280. case 2: {
  5281. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5282. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  5283. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5284. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  5285. input, &allow_alias_)));
  5286. set_has_allow_alias();
  5287. } else {
  5288. goto handle_uninterpreted;
  5289. }
  5290. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  5291. break;
  5292. }
  5293. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5294. case 999: {
  5295. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5296. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5297. parse_uninterpreted_option:
  5298. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5299. input, add_uninterpreted_option()));
  5300. } else {
  5301. goto handle_uninterpreted;
  5302. }
  5303. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  5304. if (input->ExpectAtEnd()) return true;
  5305. break;
  5306. }
  5307. default: {
  5308. handle_uninterpreted:
  5309. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5310. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5311. return true;
  5312. }
  5313. if ((8000u <= tag)) {
  5314. DO_(_extensions_.ParseField(tag, input, default_instance_,
  5315. mutable_unknown_fields()));
  5316. continue;
  5317. }
  5318. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5319. input, tag, mutable_unknown_fields()));
  5320. break;
  5321. }
  5322. }
  5323. }
  5324. return true;
  5325. #undef DO_
  5326. }
  5327. void EnumOptions::SerializeWithCachedSizes(
  5328. ::google::protobuf::io::CodedOutputStream* output) const {
  5329. // optional bool allow_alias = 2 [default = true];
  5330. if (has_allow_alias()) {
  5331. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
  5332. }
  5333. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5334. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5335. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5336. 999, this->uninterpreted_option(i), output);
  5337. }
  5338. // Extension range [1000, 536870912)
  5339. _extensions_.SerializeWithCachedSizes(
  5340. 1000, 536870912, output);
  5341. if (!unknown_fields().empty()) {
  5342. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5343. unknown_fields(), output);
  5344. }
  5345. }
  5346. ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
  5347. ::google::protobuf::uint8* target) const {
  5348. // optional bool allow_alias = 2 [default = true];
  5349. if (has_allow_alias()) {
  5350. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
  5351. }
  5352. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5353. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5354. target = ::google::protobuf::internal::WireFormatLite::
  5355. WriteMessageNoVirtualToArray(
  5356. 999, this->uninterpreted_option(i), target);
  5357. }
  5358. // Extension range [1000, 536870912)
  5359. target = _extensions_.SerializeWithCachedSizesToArray(
  5360. 1000, 536870912, target);
  5361. if (!unknown_fields().empty()) {
  5362. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5363. unknown_fields(), target);
  5364. }
  5365. return target;
  5366. }
  5367. int EnumOptions::ByteSize() const {
  5368. int total_size = 0;
  5369. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5370. // optional bool allow_alias = 2 [default = true];
  5371. if (has_allow_alias()) {
  5372. total_size += 1 + 1;
  5373. }
  5374. }
  5375. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5376. total_size += 2 * this->uninterpreted_option_size();
  5377. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5378. total_size +=
  5379. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5380. this->uninterpreted_option(i));
  5381. }
  5382. total_size += _extensions_.ByteSize();
  5383. if (!unknown_fields().empty()) {
  5384. total_size +=
  5385. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5386. unknown_fields());
  5387. }
  5388. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5389. _cached_size_ = total_size;
  5390. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5391. return total_size;
  5392. }
  5393. void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
  5394. GOOGLE_CHECK_NE(&from, this);
  5395. const EnumOptions* source =
  5396. ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>(
  5397. &from);
  5398. if (source == NULL) {
  5399. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5400. } else {
  5401. MergeFrom(*source);
  5402. }
  5403. }
  5404. void EnumOptions::MergeFrom(const EnumOptions& from) {
  5405. GOOGLE_CHECK_NE(&from, this);
  5406. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  5407. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5408. if (from.has_allow_alias()) {
  5409. set_allow_alias(from.allow_alias());
  5410. }
  5411. }
  5412. _extensions_.MergeFrom(from._extensions_);
  5413. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5414. }
  5415. void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
  5416. if (&from == this) return;
  5417. Clear();
  5418. MergeFrom(from);
  5419. }
  5420. void EnumOptions::CopyFrom(const EnumOptions& from) {
  5421. if (&from == this) return;
  5422. Clear();
  5423. MergeFrom(from);
  5424. }
  5425. bool EnumOptions::IsInitialized() const {
  5426. for (int i = 0; i < uninterpreted_option_size(); i++) {
  5427. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  5428. }
  5429. if (!_extensions_.IsInitialized()) return false; return true;
  5430. }
  5431. void EnumOptions::Swap(EnumOptions* other) {
  5432. if (other != this) {
  5433. std::swap(allow_alias_, other->allow_alias_);
  5434. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  5435. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5436. _unknown_fields_.Swap(&other->_unknown_fields_);
  5437. std::swap(_cached_size_, other->_cached_size_);
  5438. _extensions_.Swap(&other->_extensions_);
  5439. }
  5440. }
  5441. ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
  5442. protobuf_AssignDescriptorsOnce();
  5443. ::google::protobuf::Metadata metadata;
  5444. metadata.descriptor = EnumOptions_descriptor_;
  5445. metadata.reflection = EnumOptions_reflection_;
  5446. return metadata;
  5447. }
  5448. // ===================================================================
  5449. #ifndef _MSC_VER
  5450. const int EnumValueOptions::kUninterpretedOptionFieldNumber;
  5451. #endif // !_MSC_VER
  5452. EnumValueOptions::EnumValueOptions()
  5453. : ::google::protobuf::Message() {
  5454. SharedCtor();
  5455. }
  5456. void EnumValueOptions::InitAsDefaultInstance() {
  5457. }
  5458. EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
  5459. : ::google::protobuf::Message() {
  5460. SharedCtor();
  5461. MergeFrom(from);
  5462. }
  5463. void EnumValueOptions::SharedCtor() {
  5464. _cached_size_ = 0;
  5465. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5466. }
  5467. EnumValueOptions::~EnumValueOptions() {
  5468. SharedDtor();
  5469. }
  5470. void EnumValueOptions::SharedDtor() {
  5471. if (this != default_instance_) {
  5472. }
  5473. }
  5474. void EnumValueOptions::SetCachedSize(int size) const {
  5475. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5476. _cached_size_ = size;
  5477. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5478. }
  5479. const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
  5480. protobuf_AssignDescriptorsOnce();
  5481. return EnumValueOptions_descriptor_;
  5482. }
  5483. const EnumValueOptions& EnumValueOptions::default_instance() {
  5484. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5485. return *default_instance_;
  5486. }
  5487. EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
  5488. EnumValueOptions* EnumValueOptions::New() const {
  5489. return new EnumValueOptions;
  5490. }
  5491. void EnumValueOptions::Clear() {
  5492. _extensions_.Clear();
  5493. uninterpreted_option_.Clear();
  5494. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5495. mutable_unknown_fields()->Clear();
  5496. }
  5497. bool EnumValueOptions::MergePartialFromCodedStream(
  5498. ::google::protobuf::io::CodedInputStream* input) {
  5499. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5500. ::google::protobuf::uint32 tag;
  5501. while ((tag = input->ReadTag()) != 0) {
  5502. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5503. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5504. case 999: {
  5505. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5506. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5507. parse_uninterpreted_option:
  5508. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5509. input, add_uninterpreted_option()));
  5510. } else {
  5511. goto handle_uninterpreted;
  5512. }
  5513. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  5514. if (input->ExpectAtEnd()) return true;
  5515. break;
  5516. }
  5517. default: {
  5518. handle_uninterpreted:
  5519. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5520. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5521. return true;
  5522. }
  5523. if ((8000u <= tag)) {
  5524. DO_(_extensions_.ParseField(tag, input, default_instance_,
  5525. mutable_unknown_fields()));
  5526. continue;
  5527. }
  5528. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5529. input, tag, mutable_unknown_fields()));
  5530. break;
  5531. }
  5532. }
  5533. }
  5534. return true;
  5535. #undef DO_
  5536. }
  5537. void EnumValueOptions::SerializeWithCachedSizes(
  5538. ::google::protobuf::io::CodedOutputStream* output) const {
  5539. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5540. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5541. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5542. 999, this->uninterpreted_option(i), output);
  5543. }
  5544. // Extension range [1000, 536870912)
  5545. _extensions_.SerializeWithCachedSizes(
  5546. 1000, 536870912, output);
  5547. if (!unknown_fields().empty()) {
  5548. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5549. unknown_fields(), output);
  5550. }
  5551. }
  5552. ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
  5553. ::google::protobuf::uint8* target) const {
  5554. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5555. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5556. target = ::google::protobuf::internal::WireFormatLite::
  5557. WriteMessageNoVirtualToArray(
  5558. 999, this->uninterpreted_option(i), target);
  5559. }
  5560. // Extension range [1000, 536870912)
  5561. target = _extensions_.SerializeWithCachedSizesToArray(
  5562. 1000, 536870912, target);
  5563. if (!unknown_fields().empty()) {
  5564. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5565. unknown_fields(), target);
  5566. }
  5567. return target;
  5568. }
  5569. int EnumValueOptions::ByteSize() const {
  5570. int total_size = 0;
  5571. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5572. total_size += 2 * this->uninterpreted_option_size();
  5573. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5574. total_size +=
  5575. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5576. this->uninterpreted_option(i));
  5577. }
  5578. total_size += _extensions_.ByteSize();
  5579. if (!unknown_fields().empty()) {
  5580. total_size +=
  5581. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5582. unknown_fields());
  5583. }
  5584. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5585. _cached_size_ = total_size;
  5586. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5587. return total_size;
  5588. }
  5589. void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
  5590. GOOGLE_CHECK_NE(&from, this);
  5591. const EnumValueOptions* source =
  5592. ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueOptions*>(
  5593. &from);
  5594. if (source == NULL) {
  5595. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5596. } else {
  5597. MergeFrom(*source);
  5598. }
  5599. }
  5600. void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
  5601. GOOGLE_CHECK_NE(&from, this);
  5602. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  5603. _extensions_.MergeFrom(from._extensions_);
  5604. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5605. }
  5606. void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
  5607. if (&from == this) return;
  5608. Clear();
  5609. MergeFrom(from);
  5610. }
  5611. void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
  5612. if (&from == this) return;
  5613. Clear();
  5614. MergeFrom(from);
  5615. }
  5616. bool EnumValueOptions::IsInitialized() const {
  5617. for (int i = 0; i < uninterpreted_option_size(); i++) {
  5618. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  5619. }
  5620. if (!_extensions_.IsInitialized()) return false; return true;
  5621. }
  5622. void EnumValueOptions::Swap(EnumValueOptions* other) {
  5623. if (other != this) {
  5624. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  5625. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5626. _unknown_fields_.Swap(&other->_unknown_fields_);
  5627. std::swap(_cached_size_, other->_cached_size_);
  5628. _extensions_.Swap(&other->_extensions_);
  5629. }
  5630. }
  5631. ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
  5632. protobuf_AssignDescriptorsOnce();
  5633. ::google::protobuf::Metadata metadata;
  5634. metadata.descriptor = EnumValueOptions_descriptor_;
  5635. metadata.reflection = EnumValueOptions_reflection_;
  5636. return metadata;
  5637. }
  5638. // ===================================================================
  5639. #ifndef _MSC_VER
  5640. const int ServiceOptions::kUninterpretedOptionFieldNumber;
  5641. #endif // !_MSC_VER
  5642. ServiceOptions::ServiceOptions()
  5643. : ::google::protobuf::Message() {
  5644. SharedCtor();
  5645. }
  5646. void ServiceOptions::InitAsDefaultInstance() {
  5647. }
  5648. ServiceOptions::ServiceOptions(const ServiceOptions& from)
  5649. : ::google::protobuf::Message() {
  5650. SharedCtor();
  5651. MergeFrom(from);
  5652. }
  5653. void ServiceOptions::SharedCtor() {
  5654. _cached_size_ = 0;
  5655. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5656. }
  5657. ServiceOptions::~ServiceOptions() {
  5658. SharedDtor();
  5659. }
  5660. void ServiceOptions::SharedDtor() {
  5661. if (this != default_instance_) {
  5662. }
  5663. }
  5664. void ServiceOptions::SetCachedSize(int size) const {
  5665. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5666. _cached_size_ = size;
  5667. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5668. }
  5669. const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
  5670. protobuf_AssignDescriptorsOnce();
  5671. return ServiceOptions_descriptor_;
  5672. }
  5673. const ServiceOptions& ServiceOptions::default_instance() {
  5674. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5675. return *default_instance_;
  5676. }
  5677. ServiceOptions* ServiceOptions::default_instance_ = NULL;
  5678. ServiceOptions* ServiceOptions::New() const {
  5679. return new ServiceOptions;
  5680. }
  5681. void ServiceOptions::Clear() {
  5682. _extensions_.Clear();
  5683. uninterpreted_option_.Clear();
  5684. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5685. mutable_unknown_fields()->Clear();
  5686. }
  5687. bool ServiceOptions::MergePartialFromCodedStream(
  5688. ::google::protobuf::io::CodedInputStream* input) {
  5689. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5690. ::google::protobuf::uint32 tag;
  5691. while ((tag = input->ReadTag()) != 0) {
  5692. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5693. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5694. case 999: {
  5695. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5696. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5697. parse_uninterpreted_option:
  5698. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5699. input, add_uninterpreted_option()));
  5700. } else {
  5701. goto handle_uninterpreted;
  5702. }
  5703. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  5704. if (input->ExpectAtEnd()) return true;
  5705. break;
  5706. }
  5707. default: {
  5708. handle_uninterpreted:
  5709. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5710. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5711. return true;
  5712. }
  5713. if ((8000u <= tag)) {
  5714. DO_(_extensions_.ParseField(tag, input, default_instance_,
  5715. mutable_unknown_fields()));
  5716. continue;
  5717. }
  5718. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5719. input, tag, mutable_unknown_fields()));
  5720. break;
  5721. }
  5722. }
  5723. }
  5724. return true;
  5725. #undef DO_
  5726. }
  5727. void ServiceOptions::SerializeWithCachedSizes(
  5728. ::google::protobuf::io::CodedOutputStream* output) const {
  5729. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5730. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5731. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5732. 999, this->uninterpreted_option(i), output);
  5733. }
  5734. // Extension range [1000, 536870912)
  5735. _extensions_.SerializeWithCachedSizes(
  5736. 1000, 536870912, output);
  5737. if (!unknown_fields().empty()) {
  5738. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5739. unknown_fields(), output);
  5740. }
  5741. }
  5742. ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
  5743. ::google::protobuf::uint8* target) const {
  5744. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5745. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5746. target = ::google::protobuf::internal::WireFormatLite::
  5747. WriteMessageNoVirtualToArray(
  5748. 999, this->uninterpreted_option(i), target);
  5749. }
  5750. // Extension range [1000, 536870912)
  5751. target = _extensions_.SerializeWithCachedSizesToArray(
  5752. 1000, 536870912, target);
  5753. if (!unknown_fields().empty()) {
  5754. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5755. unknown_fields(), target);
  5756. }
  5757. return target;
  5758. }
  5759. int ServiceOptions::ByteSize() const {
  5760. int total_size = 0;
  5761. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5762. total_size += 2 * this->uninterpreted_option_size();
  5763. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5764. total_size +=
  5765. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5766. this->uninterpreted_option(i));
  5767. }
  5768. total_size += _extensions_.ByteSize();
  5769. if (!unknown_fields().empty()) {
  5770. total_size +=
  5771. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5772. unknown_fields());
  5773. }
  5774. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5775. _cached_size_ = total_size;
  5776. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5777. return total_size;
  5778. }
  5779. void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
  5780. GOOGLE_CHECK_NE(&from, this);
  5781. const ServiceOptions* source =
  5782. ::google::protobuf::internal::dynamic_cast_if_available<const ServiceOptions*>(
  5783. &from);
  5784. if (source == NULL) {
  5785. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5786. } else {
  5787. MergeFrom(*source);
  5788. }
  5789. }
  5790. void ServiceOptions::MergeFrom(const ServiceOptions& from) {
  5791. GOOGLE_CHECK_NE(&from, this);
  5792. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  5793. _extensions_.MergeFrom(from._extensions_);
  5794. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5795. }
  5796. void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
  5797. if (&from == this) return;
  5798. Clear();
  5799. MergeFrom(from);
  5800. }
  5801. void ServiceOptions::CopyFrom(const ServiceOptions& from) {
  5802. if (&from == this) return;
  5803. Clear();
  5804. MergeFrom(from);
  5805. }
  5806. bool ServiceOptions::IsInitialized() const {
  5807. for (int i = 0; i < uninterpreted_option_size(); i++) {
  5808. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  5809. }
  5810. if (!_extensions_.IsInitialized()) return false; return true;
  5811. }
  5812. void ServiceOptions::Swap(ServiceOptions* other) {
  5813. if (other != this) {
  5814. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  5815. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5816. _unknown_fields_.Swap(&other->_unknown_fields_);
  5817. std::swap(_cached_size_, other->_cached_size_);
  5818. _extensions_.Swap(&other->_extensions_);
  5819. }
  5820. }
  5821. ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
  5822. protobuf_AssignDescriptorsOnce();
  5823. ::google::protobuf::Metadata metadata;
  5824. metadata.descriptor = ServiceOptions_descriptor_;
  5825. metadata.reflection = ServiceOptions_reflection_;
  5826. return metadata;
  5827. }
  5828. // ===================================================================
  5829. #ifndef _MSC_VER
  5830. const int MethodOptions::kUninterpretedOptionFieldNumber;
  5831. #endif // !_MSC_VER
  5832. MethodOptions::MethodOptions()
  5833. : ::google::protobuf::Message() {
  5834. SharedCtor();
  5835. }
  5836. void MethodOptions::InitAsDefaultInstance() {
  5837. }
  5838. MethodOptions::MethodOptions(const MethodOptions& from)
  5839. : ::google::protobuf::Message() {
  5840. SharedCtor();
  5841. MergeFrom(from);
  5842. }
  5843. void MethodOptions::SharedCtor() {
  5844. _cached_size_ = 0;
  5845. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5846. }
  5847. MethodOptions::~MethodOptions() {
  5848. SharedDtor();
  5849. }
  5850. void MethodOptions::SharedDtor() {
  5851. if (this != default_instance_) {
  5852. }
  5853. }
  5854. void MethodOptions::SetCachedSize(int size) const {
  5855. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5856. _cached_size_ = size;
  5857. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5858. }
  5859. const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
  5860. protobuf_AssignDescriptorsOnce();
  5861. return MethodOptions_descriptor_;
  5862. }
  5863. const MethodOptions& MethodOptions::default_instance() {
  5864. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5865. return *default_instance_;
  5866. }
  5867. MethodOptions* MethodOptions::default_instance_ = NULL;
  5868. MethodOptions* MethodOptions::New() const {
  5869. return new MethodOptions;
  5870. }
  5871. void MethodOptions::Clear() {
  5872. _extensions_.Clear();
  5873. uninterpreted_option_.Clear();
  5874. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5875. mutable_unknown_fields()->Clear();
  5876. }
  5877. bool MethodOptions::MergePartialFromCodedStream(
  5878. ::google::protobuf::io::CodedInputStream* input) {
  5879. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  5880. ::google::protobuf::uint32 tag;
  5881. while ((tag = input->ReadTag()) != 0) {
  5882. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5883. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5884. case 999: {
  5885. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5886. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  5887. parse_uninterpreted_option:
  5888. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5889. input, add_uninterpreted_option()));
  5890. } else {
  5891. goto handle_uninterpreted;
  5892. }
  5893. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  5894. if (input->ExpectAtEnd()) return true;
  5895. break;
  5896. }
  5897. default: {
  5898. handle_uninterpreted:
  5899. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5900. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5901. return true;
  5902. }
  5903. if ((8000u <= tag)) {
  5904. DO_(_extensions_.ParseField(tag, input, default_instance_,
  5905. mutable_unknown_fields()));
  5906. continue;
  5907. }
  5908. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5909. input, tag, mutable_unknown_fields()));
  5910. break;
  5911. }
  5912. }
  5913. }
  5914. return true;
  5915. #undef DO_
  5916. }
  5917. void MethodOptions::SerializeWithCachedSizes(
  5918. ::google::protobuf::io::CodedOutputStream* output) const {
  5919. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5920. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5921. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5922. 999, this->uninterpreted_option(i), output);
  5923. }
  5924. // Extension range [1000, 536870912)
  5925. _extensions_.SerializeWithCachedSizes(
  5926. 1000, 536870912, output);
  5927. if (!unknown_fields().empty()) {
  5928. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5929. unknown_fields(), output);
  5930. }
  5931. }
  5932. ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
  5933. ::google::protobuf::uint8* target) const {
  5934. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5935. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5936. target = ::google::protobuf::internal::WireFormatLite::
  5937. WriteMessageNoVirtualToArray(
  5938. 999, this->uninterpreted_option(i), target);
  5939. }
  5940. // Extension range [1000, 536870912)
  5941. target = _extensions_.SerializeWithCachedSizesToArray(
  5942. 1000, 536870912, target);
  5943. if (!unknown_fields().empty()) {
  5944. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5945. unknown_fields(), target);
  5946. }
  5947. return target;
  5948. }
  5949. int MethodOptions::ByteSize() const {
  5950. int total_size = 0;
  5951. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5952. total_size += 2 * this->uninterpreted_option_size();
  5953. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  5954. total_size +=
  5955. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5956. this->uninterpreted_option(i));
  5957. }
  5958. total_size += _extensions_.ByteSize();
  5959. if (!unknown_fields().empty()) {
  5960. total_size +=
  5961. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5962. unknown_fields());
  5963. }
  5964. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5965. _cached_size_ = total_size;
  5966. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5967. return total_size;
  5968. }
  5969. void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
  5970. GOOGLE_CHECK_NE(&from, this);
  5971. const MethodOptions* source =
  5972. ::google::protobuf::internal::dynamic_cast_if_available<const MethodOptions*>(
  5973. &from);
  5974. if (source == NULL) {
  5975. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5976. } else {
  5977. MergeFrom(*source);
  5978. }
  5979. }
  5980. void MethodOptions::MergeFrom(const MethodOptions& from) {
  5981. GOOGLE_CHECK_NE(&from, this);
  5982. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  5983. _extensions_.MergeFrom(from._extensions_);
  5984. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5985. }
  5986. void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
  5987. if (&from == this) return;
  5988. Clear();
  5989. MergeFrom(from);
  5990. }
  5991. void MethodOptions::CopyFrom(const MethodOptions& from) {
  5992. if (&from == this) return;
  5993. Clear();
  5994. MergeFrom(from);
  5995. }
  5996. bool MethodOptions::IsInitialized() const {
  5997. for (int i = 0; i < uninterpreted_option_size(); i++) {
  5998. if (!this->uninterpreted_option(i).IsInitialized()) return false;
  5999. }
  6000. if (!_extensions_.IsInitialized()) return false; return true;
  6001. }
  6002. void MethodOptions::Swap(MethodOptions* other) {
  6003. if (other != this) {
  6004. uninterpreted_option_.Swap(&other->uninterpreted_option_);
  6005. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6006. _unknown_fields_.Swap(&other->_unknown_fields_);
  6007. std::swap(_cached_size_, other->_cached_size_);
  6008. _extensions_.Swap(&other->_extensions_);
  6009. }
  6010. }
  6011. ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
  6012. protobuf_AssignDescriptorsOnce();
  6013. ::google::protobuf::Metadata metadata;
  6014. metadata.descriptor = MethodOptions_descriptor_;
  6015. metadata.reflection = MethodOptions_reflection_;
  6016. return metadata;
  6017. }
  6018. // ===================================================================
  6019. #ifndef _MSC_VER
  6020. const int UninterpretedOption_NamePart::kNamePartFieldNumber;
  6021. const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
  6022. #endif // !_MSC_VER
  6023. UninterpretedOption_NamePart::UninterpretedOption_NamePart()
  6024. : ::google::protobuf::Message() {
  6025. SharedCtor();
  6026. }
  6027. void UninterpretedOption_NamePart::InitAsDefaultInstance() {
  6028. }
  6029. UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
  6030. : ::google::protobuf::Message() {
  6031. SharedCtor();
  6032. MergeFrom(from);
  6033. }
  6034. void UninterpretedOption_NamePart::SharedCtor() {
  6035. _cached_size_ = 0;
  6036. name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6037. is_extension_ = false;
  6038. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6039. }
  6040. UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
  6041. SharedDtor();
  6042. }
  6043. void UninterpretedOption_NamePart::SharedDtor() {
  6044. if (name_part_ != &::google::protobuf::internal::GetEmptyString()) {
  6045. delete name_part_;
  6046. }
  6047. if (this != default_instance_) {
  6048. }
  6049. }
  6050. void UninterpretedOption_NamePart::SetCachedSize(int size) const {
  6051. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6052. _cached_size_ = size;
  6053. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6054. }
  6055. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
  6056. protobuf_AssignDescriptorsOnce();
  6057. return UninterpretedOption_NamePart_descriptor_;
  6058. }
  6059. const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
  6060. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  6061. return *default_instance_;
  6062. }
  6063. UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
  6064. UninterpretedOption_NamePart* UninterpretedOption_NamePart::New() const {
  6065. return new UninterpretedOption_NamePart;
  6066. }
  6067. void UninterpretedOption_NamePart::Clear() {
  6068. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6069. if (has_name_part()) {
  6070. if (name_part_ != &::google::protobuf::internal::GetEmptyString()) {
  6071. name_part_->clear();
  6072. }
  6073. }
  6074. is_extension_ = false;
  6075. }
  6076. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6077. mutable_unknown_fields()->Clear();
  6078. }
  6079. bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
  6080. ::google::protobuf::io::CodedInputStream* input) {
  6081. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6082. ::google::protobuf::uint32 tag;
  6083. while ((tag = input->ReadTag()) != 0) {
  6084. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6085. // required string name_part = 1;
  6086. case 1: {
  6087. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6088. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6089. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6090. input, this->mutable_name_part()));
  6091. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6092. this->name_part().data(), this->name_part().length(),
  6093. ::google::protobuf::internal::WireFormat::PARSE);
  6094. } else {
  6095. goto handle_uninterpreted;
  6096. }
  6097. if (input->ExpectTag(16)) goto parse_is_extension;
  6098. break;
  6099. }
  6100. // required bool is_extension = 2;
  6101. case 2: {
  6102. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6103. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6104. parse_is_extension:
  6105. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6106. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  6107. input, &is_extension_)));
  6108. set_has_is_extension();
  6109. } else {
  6110. goto handle_uninterpreted;
  6111. }
  6112. if (input->ExpectAtEnd()) return true;
  6113. break;
  6114. }
  6115. default: {
  6116. handle_uninterpreted:
  6117. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6118. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6119. return true;
  6120. }
  6121. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6122. input, tag, mutable_unknown_fields()));
  6123. break;
  6124. }
  6125. }
  6126. }
  6127. return true;
  6128. #undef DO_
  6129. }
  6130. void UninterpretedOption_NamePart::SerializeWithCachedSizes(
  6131. ::google::protobuf::io::CodedOutputStream* output) const {
  6132. // required string name_part = 1;
  6133. if (has_name_part()) {
  6134. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6135. this->name_part().data(), this->name_part().length(),
  6136. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6137. ::google::protobuf::internal::WireFormatLite::WriteString(
  6138. 1, this->name_part(), output);
  6139. }
  6140. // required bool is_extension = 2;
  6141. if (has_is_extension()) {
  6142. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
  6143. }
  6144. if (!unknown_fields().empty()) {
  6145. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6146. unknown_fields(), output);
  6147. }
  6148. }
  6149. ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
  6150. ::google::protobuf::uint8* target) const {
  6151. // required string name_part = 1;
  6152. if (has_name_part()) {
  6153. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6154. this->name_part().data(), this->name_part().length(),
  6155. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6156. target =
  6157. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6158. 1, this->name_part(), target);
  6159. }
  6160. // required bool is_extension = 2;
  6161. if (has_is_extension()) {
  6162. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
  6163. }
  6164. if (!unknown_fields().empty()) {
  6165. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6166. unknown_fields(), target);
  6167. }
  6168. return target;
  6169. }
  6170. int UninterpretedOption_NamePart::ByteSize() const {
  6171. int total_size = 0;
  6172. if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6173. // required string name_part = 1;
  6174. if (has_name_part()) {
  6175. total_size += 1 +
  6176. ::google::protobuf::internal::WireFormatLite::StringSize(
  6177. this->name_part());
  6178. }
  6179. // required bool is_extension = 2;
  6180. if (has_is_extension()) {
  6181. total_size += 1 + 1;
  6182. }
  6183. }
  6184. if (!unknown_fields().empty()) {
  6185. total_size +=
  6186. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6187. unknown_fields());
  6188. }
  6189. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6190. _cached_size_ = total_size;
  6191. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6192. return total_size;
  6193. }
  6194. void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
  6195. GOOGLE_CHECK_NE(&from, this);
  6196. const UninterpretedOption_NamePart* source =
  6197. ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption_NamePart*>(
  6198. &from);
  6199. if (source == NULL) {
  6200. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6201. } else {
  6202. MergeFrom(*source);
  6203. }
  6204. }
  6205. void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
  6206. GOOGLE_CHECK_NE(&from, this);
  6207. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6208. if (from.has_name_part()) {
  6209. set_name_part(from.name_part());
  6210. }
  6211. if (from.has_is_extension()) {
  6212. set_is_extension(from.is_extension());
  6213. }
  6214. }
  6215. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6216. }
  6217. void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
  6218. if (&from == this) return;
  6219. Clear();
  6220. MergeFrom(from);
  6221. }
  6222. void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
  6223. if (&from == this) return;
  6224. Clear();
  6225. MergeFrom(from);
  6226. }
  6227. bool UninterpretedOption_NamePart::IsInitialized() const {
  6228. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  6229. return true;
  6230. }
  6231. void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
  6232. if (other != this) {
  6233. std::swap(name_part_, other->name_part_);
  6234. std::swap(is_extension_, other->is_extension_);
  6235. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6236. _unknown_fields_.Swap(&other->_unknown_fields_);
  6237. std::swap(_cached_size_, other->_cached_size_);
  6238. }
  6239. }
  6240. ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
  6241. protobuf_AssignDescriptorsOnce();
  6242. ::google::protobuf::Metadata metadata;
  6243. metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
  6244. metadata.reflection = UninterpretedOption_NamePart_reflection_;
  6245. return metadata;
  6246. }
  6247. // -------------------------------------------------------------------
  6248. #ifndef _MSC_VER
  6249. const int UninterpretedOption::kNameFieldNumber;
  6250. const int UninterpretedOption::kIdentifierValueFieldNumber;
  6251. const int UninterpretedOption::kPositiveIntValueFieldNumber;
  6252. const int UninterpretedOption::kNegativeIntValueFieldNumber;
  6253. const int UninterpretedOption::kDoubleValueFieldNumber;
  6254. const int UninterpretedOption::kStringValueFieldNumber;
  6255. const int UninterpretedOption::kAggregateValueFieldNumber;
  6256. #endif // !_MSC_VER
  6257. UninterpretedOption::UninterpretedOption()
  6258. : ::google::protobuf::Message() {
  6259. SharedCtor();
  6260. }
  6261. void UninterpretedOption::InitAsDefaultInstance() {
  6262. }
  6263. UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
  6264. : ::google::protobuf::Message() {
  6265. SharedCtor();
  6266. MergeFrom(from);
  6267. }
  6268. void UninterpretedOption::SharedCtor() {
  6269. _cached_size_ = 0;
  6270. identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6271. positive_int_value_ = GOOGLE_ULONGLONG(0);
  6272. negative_int_value_ = GOOGLE_LONGLONG(0);
  6273. double_value_ = 0;
  6274. string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6275. aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6276. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6277. }
  6278. UninterpretedOption::~UninterpretedOption() {
  6279. SharedDtor();
  6280. }
  6281. void UninterpretedOption::SharedDtor() {
  6282. if (identifier_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6283. delete identifier_value_;
  6284. }
  6285. if (string_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6286. delete string_value_;
  6287. }
  6288. if (aggregate_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6289. delete aggregate_value_;
  6290. }
  6291. if (this != default_instance_) {
  6292. }
  6293. }
  6294. void UninterpretedOption::SetCachedSize(int size) const {
  6295. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6296. _cached_size_ = size;
  6297. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6298. }
  6299. const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
  6300. protobuf_AssignDescriptorsOnce();
  6301. return UninterpretedOption_descriptor_;
  6302. }
  6303. const UninterpretedOption& UninterpretedOption::default_instance() {
  6304. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  6305. return *default_instance_;
  6306. }
  6307. UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
  6308. UninterpretedOption* UninterpretedOption::New() const {
  6309. return new UninterpretedOption;
  6310. }
  6311. void UninterpretedOption::Clear() {
  6312. if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  6313. if (has_identifier_value()) {
  6314. if (identifier_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6315. identifier_value_->clear();
  6316. }
  6317. }
  6318. positive_int_value_ = GOOGLE_ULONGLONG(0);
  6319. negative_int_value_ = GOOGLE_LONGLONG(0);
  6320. double_value_ = 0;
  6321. if (has_string_value()) {
  6322. if (string_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6323. string_value_->clear();
  6324. }
  6325. }
  6326. if (has_aggregate_value()) {
  6327. if (aggregate_value_ != &::google::protobuf::internal::GetEmptyString()) {
  6328. aggregate_value_->clear();
  6329. }
  6330. }
  6331. }
  6332. name_.Clear();
  6333. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6334. mutable_unknown_fields()->Clear();
  6335. }
  6336. bool UninterpretedOption::MergePartialFromCodedStream(
  6337. ::google::protobuf::io::CodedInputStream* input) {
  6338. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6339. ::google::protobuf::uint32 tag;
  6340. while ((tag = input->ReadTag()) != 0) {
  6341. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6342. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6343. case 2: {
  6344. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6345. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6346. parse_name:
  6347. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6348. input, add_name()));
  6349. } else {
  6350. goto handle_uninterpreted;
  6351. }
  6352. if (input->ExpectTag(18)) goto parse_name;
  6353. if (input->ExpectTag(26)) goto parse_identifier_value;
  6354. break;
  6355. }
  6356. // optional string identifier_value = 3;
  6357. case 3: {
  6358. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6359. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6360. parse_identifier_value:
  6361. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6362. input, this->mutable_identifier_value()));
  6363. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6364. this->identifier_value().data(), this->identifier_value().length(),
  6365. ::google::protobuf::internal::WireFormat::PARSE);
  6366. } else {
  6367. goto handle_uninterpreted;
  6368. }
  6369. if (input->ExpectTag(32)) goto parse_positive_int_value;
  6370. break;
  6371. }
  6372. // optional uint64 positive_int_value = 4;
  6373. case 4: {
  6374. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6375. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6376. parse_positive_int_value:
  6377. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6378. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  6379. input, &positive_int_value_)));
  6380. set_has_positive_int_value();
  6381. } else {
  6382. goto handle_uninterpreted;
  6383. }
  6384. if (input->ExpectTag(40)) goto parse_negative_int_value;
  6385. break;
  6386. }
  6387. // optional int64 negative_int_value = 5;
  6388. case 5: {
  6389. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6390. ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
  6391. parse_negative_int_value:
  6392. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6393. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  6394. input, &negative_int_value_)));
  6395. set_has_negative_int_value();
  6396. } else {
  6397. goto handle_uninterpreted;
  6398. }
  6399. if (input->ExpectTag(49)) goto parse_double_value;
  6400. break;
  6401. }
  6402. // optional double double_value = 6;
  6403. case 6: {
  6404. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6405. ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
  6406. parse_double_value:
  6407. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6408. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  6409. input, &double_value_)));
  6410. set_has_double_value();
  6411. } else {
  6412. goto handle_uninterpreted;
  6413. }
  6414. if (input->ExpectTag(58)) goto parse_string_value;
  6415. break;
  6416. }
  6417. // optional bytes string_value = 7;
  6418. case 7: {
  6419. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6420. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6421. parse_string_value:
  6422. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  6423. input, this->mutable_string_value()));
  6424. } else {
  6425. goto handle_uninterpreted;
  6426. }
  6427. if (input->ExpectTag(66)) goto parse_aggregate_value;
  6428. break;
  6429. }
  6430. // optional string aggregate_value = 8;
  6431. case 8: {
  6432. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6433. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6434. parse_aggregate_value:
  6435. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6436. input, this->mutable_aggregate_value()));
  6437. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6438. this->aggregate_value().data(), this->aggregate_value().length(),
  6439. ::google::protobuf::internal::WireFormat::PARSE);
  6440. } else {
  6441. goto handle_uninterpreted;
  6442. }
  6443. if (input->ExpectAtEnd()) return true;
  6444. break;
  6445. }
  6446. default: {
  6447. handle_uninterpreted:
  6448. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6449. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6450. return true;
  6451. }
  6452. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6453. input, tag, mutable_unknown_fields()));
  6454. break;
  6455. }
  6456. }
  6457. }
  6458. return true;
  6459. #undef DO_
  6460. }
  6461. void UninterpretedOption::SerializeWithCachedSizes(
  6462. ::google::protobuf::io::CodedOutputStream* output) const {
  6463. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6464. for (int i = 0; i < this->name_size(); i++) {
  6465. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6466. 2, this->name(i), output);
  6467. }
  6468. // optional string identifier_value = 3;
  6469. if (has_identifier_value()) {
  6470. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6471. this->identifier_value().data(), this->identifier_value().length(),
  6472. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6473. ::google::protobuf::internal::WireFormatLite::WriteString(
  6474. 3, this->identifier_value(), output);
  6475. }
  6476. // optional uint64 positive_int_value = 4;
  6477. if (has_positive_int_value()) {
  6478. ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
  6479. }
  6480. // optional int64 negative_int_value = 5;
  6481. if (has_negative_int_value()) {
  6482. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
  6483. }
  6484. // optional double double_value = 6;
  6485. if (has_double_value()) {
  6486. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
  6487. }
  6488. // optional bytes string_value = 7;
  6489. if (has_string_value()) {
  6490. ::google::protobuf::internal::WireFormatLite::WriteBytes(
  6491. 7, this->string_value(), output);
  6492. }
  6493. // optional string aggregate_value = 8;
  6494. if (has_aggregate_value()) {
  6495. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6496. this->aggregate_value().data(), this->aggregate_value().length(),
  6497. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6498. ::google::protobuf::internal::WireFormatLite::WriteString(
  6499. 8, this->aggregate_value(), output);
  6500. }
  6501. if (!unknown_fields().empty()) {
  6502. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6503. unknown_fields(), output);
  6504. }
  6505. }
  6506. ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
  6507. ::google::protobuf::uint8* target) const {
  6508. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6509. for (int i = 0; i < this->name_size(); i++) {
  6510. target = ::google::protobuf::internal::WireFormatLite::
  6511. WriteMessageNoVirtualToArray(
  6512. 2, this->name(i), target);
  6513. }
  6514. // optional string identifier_value = 3;
  6515. if (has_identifier_value()) {
  6516. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6517. this->identifier_value().data(), this->identifier_value().length(),
  6518. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6519. target =
  6520. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6521. 3, this->identifier_value(), target);
  6522. }
  6523. // optional uint64 positive_int_value = 4;
  6524. if (has_positive_int_value()) {
  6525. target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
  6526. }
  6527. // optional int64 negative_int_value = 5;
  6528. if (has_negative_int_value()) {
  6529. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
  6530. }
  6531. // optional double double_value = 6;
  6532. if (has_double_value()) {
  6533. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
  6534. }
  6535. // optional bytes string_value = 7;
  6536. if (has_string_value()) {
  6537. target =
  6538. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  6539. 7, this->string_value(), target);
  6540. }
  6541. // optional string aggregate_value = 8;
  6542. if (has_aggregate_value()) {
  6543. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6544. this->aggregate_value().data(), this->aggregate_value().length(),
  6545. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6546. target =
  6547. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6548. 8, this->aggregate_value(), target);
  6549. }
  6550. if (!unknown_fields().empty()) {
  6551. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6552. unknown_fields(), target);
  6553. }
  6554. return target;
  6555. }
  6556. int UninterpretedOption::ByteSize() const {
  6557. int total_size = 0;
  6558. if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  6559. // optional string identifier_value = 3;
  6560. if (has_identifier_value()) {
  6561. total_size += 1 +
  6562. ::google::protobuf::internal::WireFormatLite::StringSize(
  6563. this->identifier_value());
  6564. }
  6565. // optional uint64 positive_int_value = 4;
  6566. if (has_positive_int_value()) {
  6567. total_size += 1 +
  6568. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  6569. this->positive_int_value());
  6570. }
  6571. // optional int64 negative_int_value = 5;
  6572. if (has_negative_int_value()) {
  6573. total_size += 1 +
  6574. ::google::protobuf::internal::WireFormatLite::Int64Size(
  6575. this->negative_int_value());
  6576. }
  6577. // optional double double_value = 6;
  6578. if (has_double_value()) {
  6579. total_size += 1 + 8;
  6580. }
  6581. // optional bytes string_value = 7;
  6582. if (has_string_value()) {
  6583. total_size += 1 +
  6584. ::google::protobuf::internal::WireFormatLite::BytesSize(
  6585. this->string_value());
  6586. }
  6587. // optional string aggregate_value = 8;
  6588. if (has_aggregate_value()) {
  6589. total_size += 1 +
  6590. ::google::protobuf::internal::WireFormatLite::StringSize(
  6591. this->aggregate_value());
  6592. }
  6593. }
  6594. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6595. total_size += 1 * this->name_size();
  6596. for (int i = 0; i < this->name_size(); i++) {
  6597. total_size +=
  6598. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  6599. this->name(i));
  6600. }
  6601. if (!unknown_fields().empty()) {
  6602. total_size +=
  6603. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6604. unknown_fields());
  6605. }
  6606. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6607. _cached_size_ = total_size;
  6608. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6609. return total_size;
  6610. }
  6611. void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
  6612. GOOGLE_CHECK_NE(&from, this);
  6613. const UninterpretedOption* source =
  6614. ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption*>(
  6615. &from);
  6616. if (source == NULL) {
  6617. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6618. } else {
  6619. MergeFrom(*source);
  6620. }
  6621. }
  6622. void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
  6623. GOOGLE_CHECK_NE(&from, this);
  6624. name_.MergeFrom(from.name_);
  6625. if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  6626. if (from.has_identifier_value()) {
  6627. set_identifier_value(from.identifier_value());
  6628. }
  6629. if (from.has_positive_int_value()) {
  6630. set_positive_int_value(from.positive_int_value());
  6631. }
  6632. if (from.has_negative_int_value()) {
  6633. set_negative_int_value(from.negative_int_value());
  6634. }
  6635. if (from.has_double_value()) {
  6636. set_double_value(from.double_value());
  6637. }
  6638. if (from.has_string_value()) {
  6639. set_string_value(from.string_value());
  6640. }
  6641. if (from.has_aggregate_value()) {
  6642. set_aggregate_value(from.aggregate_value());
  6643. }
  6644. }
  6645. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6646. }
  6647. void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
  6648. if (&from == this) return;
  6649. Clear();
  6650. MergeFrom(from);
  6651. }
  6652. void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
  6653. if (&from == this) return;
  6654. Clear();
  6655. MergeFrom(from);
  6656. }
  6657. bool UninterpretedOption::IsInitialized() const {
  6658. for (int i = 0; i < name_size(); i++) {
  6659. if (!this->name(i).IsInitialized()) return false;
  6660. }
  6661. return true;
  6662. }
  6663. void UninterpretedOption::Swap(UninterpretedOption* other) {
  6664. if (other != this) {
  6665. name_.Swap(&other->name_);
  6666. std::swap(identifier_value_, other->identifier_value_);
  6667. std::swap(positive_int_value_, other->positive_int_value_);
  6668. std::swap(negative_int_value_, other->negative_int_value_);
  6669. std::swap(double_value_, other->double_value_);
  6670. std::swap(string_value_, other->string_value_);
  6671. std::swap(aggregate_value_, other->aggregate_value_);
  6672. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6673. _unknown_fields_.Swap(&other->_unknown_fields_);
  6674. std::swap(_cached_size_, other->_cached_size_);
  6675. }
  6676. }
  6677. ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
  6678. protobuf_AssignDescriptorsOnce();
  6679. ::google::protobuf::Metadata metadata;
  6680. metadata.descriptor = UninterpretedOption_descriptor_;
  6681. metadata.reflection = UninterpretedOption_reflection_;
  6682. return metadata;
  6683. }
  6684. // ===================================================================
  6685. #ifndef _MSC_VER
  6686. const int SourceCodeInfo_Location::kPathFieldNumber;
  6687. const int SourceCodeInfo_Location::kSpanFieldNumber;
  6688. const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
  6689. const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
  6690. #endif // !_MSC_VER
  6691. SourceCodeInfo_Location::SourceCodeInfo_Location()
  6692. : ::google::protobuf::Message() {
  6693. SharedCtor();
  6694. }
  6695. void SourceCodeInfo_Location::InitAsDefaultInstance() {
  6696. }
  6697. SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
  6698. : ::google::protobuf::Message() {
  6699. SharedCtor();
  6700. MergeFrom(from);
  6701. }
  6702. void SourceCodeInfo_Location::SharedCtor() {
  6703. _cached_size_ = 0;
  6704. leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6705. trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
  6706. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6707. }
  6708. SourceCodeInfo_Location::~SourceCodeInfo_Location() {
  6709. SharedDtor();
  6710. }
  6711. void SourceCodeInfo_Location::SharedDtor() {
  6712. if (leading_comments_ != &::google::protobuf::internal::GetEmptyString()) {
  6713. delete leading_comments_;
  6714. }
  6715. if (trailing_comments_ != &::google::protobuf::internal::GetEmptyString()) {
  6716. delete trailing_comments_;
  6717. }
  6718. if (this != default_instance_) {
  6719. }
  6720. }
  6721. void SourceCodeInfo_Location::SetCachedSize(int size) const {
  6722. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6723. _cached_size_ = size;
  6724. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6725. }
  6726. const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
  6727. protobuf_AssignDescriptorsOnce();
  6728. return SourceCodeInfo_Location_descriptor_;
  6729. }
  6730. const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
  6731. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  6732. return *default_instance_;
  6733. }
  6734. SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
  6735. SourceCodeInfo_Location* SourceCodeInfo_Location::New() const {
  6736. return new SourceCodeInfo_Location;
  6737. }
  6738. void SourceCodeInfo_Location::Clear() {
  6739. if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
  6740. if (has_leading_comments()) {
  6741. if (leading_comments_ != &::google::protobuf::internal::GetEmptyString()) {
  6742. leading_comments_->clear();
  6743. }
  6744. }
  6745. if (has_trailing_comments()) {
  6746. if (trailing_comments_ != &::google::protobuf::internal::GetEmptyString()) {
  6747. trailing_comments_->clear();
  6748. }
  6749. }
  6750. }
  6751. path_.Clear();
  6752. span_.Clear();
  6753. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6754. mutable_unknown_fields()->Clear();
  6755. }
  6756. bool SourceCodeInfo_Location::MergePartialFromCodedStream(
  6757. ::google::protobuf::io::CodedInputStream* input) {
  6758. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  6759. ::google::protobuf::uint32 tag;
  6760. while ((tag = input->ReadTag()) != 0) {
  6761. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6762. // repeated int32 path = 1 [packed = true];
  6763. case 1: {
  6764. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6765. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6766. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  6767. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6768. input, this->mutable_path())));
  6769. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  6770. == ::google::protobuf::internal::WireFormatLite::
  6771. WIRETYPE_VARINT) {
  6772. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  6773. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6774. 1, 10, input, this->mutable_path())));
  6775. } else {
  6776. goto handle_uninterpreted;
  6777. }
  6778. if (input->ExpectTag(18)) goto parse_span;
  6779. break;
  6780. }
  6781. // repeated int32 span = 2 [packed = true];
  6782. case 2: {
  6783. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6784. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6785. parse_span:
  6786. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  6787. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6788. input, this->mutable_span())));
  6789. } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
  6790. == ::google::protobuf::internal::WireFormatLite::
  6791. WIRETYPE_VARINT) {
  6792. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  6793. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  6794. 1, 18, input, this->mutable_span())));
  6795. } else {
  6796. goto handle_uninterpreted;
  6797. }
  6798. if (input->ExpectTag(26)) goto parse_leading_comments;
  6799. break;
  6800. }
  6801. // optional string leading_comments = 3;
  6802. case 3: {
  6803. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6804. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6805. parse_leading_comments:
  6806. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6807. input, this->mutable_leading_comments()));
  6808. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6809. this->leading_comments().data(), this->leading_comments().length(),
  6810. ::google::protobuf::internal::WireFormat::PARSE);
  6811. } else {
  6812. goto handle_uninterpreted;
  6813. }
  6814. if (input->ExpectTag(34)) goto parse_trailing_comments;
  6815. break;
  6816. }
  6817. // optional string trailing_comments = 4;
  6818. case 4: {
  6819. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6820. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  6821. parse_trailing_comments:
  6822. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6823. input, this->mutable_trailing_comments()));
  6824. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6825. this->trailing_comments().data(), this->trailing_comments().length(),
  6826. ::google::protobuf::internal::WireFormat::PARSE);
  6827. } else {
  6828. goto handle_uninterpreted;
  6829. }
  6830. if (input->ExpectAtEnd()) return true;
  6831. break;
  6832. }
  6833. default: {
  6834. handle_uninterpreted:
  6835. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6836. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6837. return true;
  6838. }
  6839. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6840. input, tag, mutable_unknown_fields()));
  6841. break;
  6842. }
  6843. }
  6844. }
  6845. return true;
  6846. #undef DO_
  6847. }
  6848. void SourceCodeInfo_Location::SerializeWithCachedSizes(
  6849. ::google::protobuf::io::CodedOutputStream* output) const {
  6850. // repeated int32 path = 1 [packed = true];
  6851. if (this->path_size() > 0) {
  6852. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  6853. output->WriteVarint32(_path_cached_byte_size_);
  6854. }
  6855. for (int i = 0; i < this->path_size(); i++) {
  6856. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  6857. this->path(i), output);
  6858. }
  6859. // repeated int32 span = 2 [packed = true];
  6860. if (this->span_size() > 0) {
  6861. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  6862. output->WriteVarint32(_span_cached_byte_size_);
  6863. }
  6864. for (int i = 0; i < this->span_size(); i++) {
  6865. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  6866. this->span(i), output);
  6867. }
  6868. // optional string leading_comments = 3;
  6869. if (has_leading_comments()) {
  6870. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6871. this->leading_comments().data(), this->leading_comments().length(),
  6872. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6873. ::google::protobuf::internal::WireFormatLite::WriteString(
  6874. 3, this->leading_comments(), output);
  6875. }
  6876. // optional string trailing_comments = 4;
  6877. if (has_trailing_comments()) {
  6878. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6879. this->trailing_comments().data(), this->trailing_comments().length(),
  6880. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6881. ::google::protobuf::internal::WireFormatLite::WriteString(
  6882. 4, this->trailing_comments(), output);
  6883. }
  6884. if (!unknown_fields().empty()) {
  6885. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6886. unknown_fields(), output);
  6887. }
  6888. }
  6889. ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
  6890. ::google::protobuf::uint8* target) const {
  6891. // repeated int32 path = 1 [packed = true];
  6892. if (this->path_size() > 0) {
  6893. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  6894. 1,
  6895. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  6896. target);
  6897. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  6898. _path_cached_byte_size_, target);
  6899. }
  6900. for (int i = 0; i < this->path_size(); i++) {
  6901. target = ::google::protobuf::internal::WireFormatLite::
  6902. WriteInt32NoTagToArray(this->path(i), target);
  6903. }
  6904. // repeated int32 span = 2 [packed = true];
  6905. if (this->span_size() > 0) {
  6906. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  6907. 2,
  6908. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  6909. target);
  6910. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  6911. _span_cached_byte_size_, target);
  6912. }
  6913. for (int i = 0; i < this->span_size(); i++) {
  6914. target = ::google::protobuf::internal::WireFormatLite::
  6915. WriteInt32NoTagToArray(this->span(i), target);
  6916. }
  6917. // optional string leading_comments = 3;
  6918. if (has_leading_comments()) {
  6919. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6920. this->leading_comments().data(), this->leading_comments().length(),
  6921. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6922. target =
  6923. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6924. 3, this->leading_comments(), target);
  6925. }
  6926. // optional string trailing_comments = 4;
  6927. if (has_trailing_comments()) {
  6928. ::google::protobuf::internal::WireFormat::VerifyUTF8String(
  6929. this->trailing_comments().data(), this->trailing_comments().length(),
  6930. ::google::protobuf::internal::WireFormat::SERIALIZE);
  6931. target =
  6932. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6933. 4, this->trailing_comments(), target);
  6934. }
  6935. if (!unknown_fields().empty()) {
  6936. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6937. unknown_fields(), target);
  6938. }
  6939. return target;
  6940. }
  6941. int SourceCodeInfo_Location::ByteSize() const {
  6942. int total_size = 0;
  6943. if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
  6944. // optional string leading_comments = 3;
  6945. if (has_leading_comments()) {
  6946. total_size += 1 +
  6947. ::google::protobuf::internal::WireFormatLite::StringSize(
  6948. this->leading_comments());
  6949. }
  6950. // optional string trailing_comments = 4;
  6951. if (has_trailing_comments()) {
  6952. total_size += 1 +
  6953. ::google::protobuf::internal::WireFormatLite::StringSize(
  6954. this->trailing_comments());
  6955. }
  6956. }
  6957. // repeated int32 path = 1 [packed = true];
  6958. {
  6959. int data_size = 0;
  6960. for (int i = 0; i < this->path_size(); i++) {
  6961. data_size += ::google::protobuf::internal::WireFormatLite::
  6962. Int32Size(this->path(i));
  6963. }
  6964. if (data_size > 0) {
  6965. total_size += 1 +
  6966. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  6967. }
  6968. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6969. _path_cached_byte_size_ = data_size;
  6970. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6971. total_size += data_size;
  6972. }
  6973. // repeated int32 span = 2 [packed = true];
  6974. {
  6975. int data_size = 0;
  6976. for (int i = 0; i < this->span_size(); i++) {
  6977. data_size += ::google::protobuf::internal::WireFormatLite::
  6978. Int32Size(this->span(i));
  6979. }
  6980. if (data_size > 0) {
  6981. total_size += 1 +
  6982. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  6983. }
  6984. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6985. _span_cached_byte_size_ = data_size;
  6986. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6987. total_size += data_size;
  6988. }
  6989. if (!unknown_fields().empty()) {
  6990. total_size +=
  6991. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6992. unknown_fields());
  6993. }
  6994. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6995. _cached_size_ = total_size;
  6996. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6997. return total_size;
  6998. }
  6999. void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
  7000. GOOGLE_CHECK_NE(&from, this);
  7001. const SourceCodeInfo_Location* source =
  7002. ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo_Location*>(
  7003. &from);
  7004. if (source == NULL) {
  7005. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7006. } else {
  7007. MergeFrom(*source);
  7008. }
  7009. }
  7010. void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
  7011. GOOGLE_CHECK_NE(&from, this);
  7012. path_.MergeFrom(from.path_);
  7013. span_.MergeFrom(from.span_);
  7014. if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
  7015. if (from.has_leading_comments()) {
  7016. set_leading_comments(from.leading_comments());
  7017. }
  7018. if (from.has_trailing_comments()) {
  7019. set_trailing_comments(from.trailing_comments());
  7020. }
  7021. }
  7022. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7023. }
  7024. void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
  7025. if (&from == this) return;
  7026. Clear();
  7027. MergeFrom(from);
  7028. }
  7029. void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
  7030. if (&from == this) return;
  7031. Clear();
  7032. MergeFrom(from);
  7033. }
  7034. bool SourceCodeInfo_Location::IsInitialized() const {
  7035. return true;
  7036. }
  7037. void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
  7038. if (other != this) {
  7039. path_.Swap(&other->path_);
  7040. span_.Swap(&other->span_);
  7041. std::swap(leading_comments_, other->leading_comments_);
  7042. std::swap(trailing_comments_, other->trailing_comments_);
  7043. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7044. _unknown_fields_.Swap(&other->_unknown_fields_);
  7045. std::swap(_cached_size_, other->_cached_size_);
  7046. }
  7047. }
  7048. ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
  7049. protobuf_AssignDescriptorsOnce();
  7050. ::google::protobuf::Metadata metadata;
  7051. metadata.descriptor = SourceCodeInfo_Location_descriptor_;
  7052. metadata.reflection = SourceCodeInfo_Location_reflection_;
  7053. return metadata;
  7054. }
  7055. // -------------------------------------------------------------------
  7056. #ifndef _MSC_VER
  7057. const int SourceCodeInfo::kLocationFieldNumber;
  7058. #endif // !_MSC_VER
  7059. SourceCodeInfo::SourceCodeInfo()
  7060. : ::google::protobuf::Message() {
  7061. SharedCtor();
  7062. }
  7063. void SourceCodeInfo::InitAsDefaultInstance() {
  7064. }
  7065. SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
  7066. : ::google::protobuf::Message() {
  7067. SharedCtor();
  7068. MergeFrom(from);
  7069. }
  7070. void SourceCodeInfo::SharedCtor() {
  7071. _cached_size_ = 0;
  7072. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7073. }
  7074. SourceCodeInfo::~SourceCodeInfo() {
  7075. SharedDtor();
  7076. }
  7077. void SourceCodeInfo::SharedDtor() {
  7078. if (this != default_instance_) {
  7079. }
  7080. }
  7081. void SourceCodeInfo::SetCachedSize(int size) const {
  7082. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7083. _cached_size_ = size;
  7084. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7085. }
  7086. const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
  7087. protobuf_AssignDescriptorsOnce();
  7088. return SourceCodeInfo_descriptor_;
  7089. }
  7090. const SourceCodeInfo& SourceCodeInfo::default_instance() {
  7091. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  7092. return *default_instance_;
  7093. }
  7094. SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
  7095. SourceCodeInfo* SourceCodeInfo::New() const {
  7096. return new SourceCodeInfo;
  7097. }
  7098. void SourceCodeInfo::Clear() {
  7099. location_.Clear();
  7100. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7101. mutable_unknown_fields()->Clear();
  7102. }
  7103. bool SourceCodeInfo::MergePartialFromCodedStream(
  7104. ::google::protobuf::io::CodedInputStream* input) {
  7105. #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
  7106. ::google::protobuf::uint32 tag;
  7107. while ((tag = input->ReadTag()) != 0) {
  7108. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7109. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7110. case 1: {
  7111. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7112. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  7113. parse_location:
  7114. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  7115. input, add_location()));
  7116. } else {
  7117. goto handle_uninterpreted;
  7118. }
  7119. if (input->ExpectTag(10)) goto parse_location;
  7120. if (input->ExpectAtEnd()) return true;
  7121. break;
  7122. }
  7123. default: {
  7124. handle_uninterpreted:
  7125. if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7126. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7127. return true;
  7128. }
  7129. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7130. input, tag, mutable_unknown_fields()));
  7131. break;
  7132. }
  7133. }
  7134. }
  7135. return true;
  7136. #undef DO_
  7137. }
  7138. void SourceCodeInfo::SerializeWithCachedSizes(
  7139. ::google::protobuf::io::CodedOutputStream* output) const {
  7140. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7141. for (int i = 0; i < this->location_size(); i++) {
  7142. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7143. 1, this->location(i), output);
  7144. }
  7145. if (!unknown_fields().empty()) {
  7146. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7147. unknown_fields(), output);
  7148. }
  7149. }
  7150. ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
  7151. ::google::protobuf::uint8* target) const {
  7152. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7153. for (int i = 0; i < this->location_size(); i++) {
  7154. target = ::google::protobuf::internal::WireFormatLite::
  7155. WriteMessageNoVirtualToArray(
  7156. 1, this->location(i), target);
  7157. }
  7158. if (!unknown_fields().empty()) {
  7159. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7160. unknown_fields(), target);
  7161. }
  7162. return target;
  7163. }
  7164. int SourceCodeInfo::ByteSize() const {
  7165. int total_size = 0;
  7166. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7167. total_size += 1 * this->location_size();
  7168. for (int i = 0; i < this->location_size(); i++) {
  7169. total_size +=
  7170. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  7171. this->location(i));
  7172. }
  7173. if (!unknown_fields().empty()) {
  7174. total_size +=
  7175. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7176. unknown_fields());
  7177. }
  7178. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7179. _cached_size_ = total_size;
  7180. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7181. return total_size;
  7182. }
  7183. void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  7184. GOOGLE_CHECK_NE(&from, this);
  7185. const SourceCodeInfo* source =
  7186. ::google::protobuf::internal::dynamic_cast_if_available<const SourceCodeInfo*>(
  7187. &from);
  7188. if (source == NULL) {
  7189. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7190. } else {
  7191. MergeFrom(*source);
  7192. }
  7193. }
  7194. void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
  7195. GOOGLE_CHECK_NE(&from, this);
  7196. location_.MergeFrom(from.location_);
  7197. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7198. }
  7199. void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  7200. if (&from == this) return;
  7201. Clear();
  7202. MergeFrom(from);
  7203. }
  7204. void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
  7205. if (&from == this) return;
  7206. Clear();
  7207. MergeFrom(from);
  7208. }
  7209. bool SourceCodeInfo::IsInitialized() const {
  7210. return true;
  7211. }
  7212. void SourceCodeInfo::Swap(SourceCodeInfo* other) {
  7213. if (other != this) {
  7214. location_.Swap(&other->location_);
  7215. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7216. _unknown_fields_.Swap(&other->_unknown_fields_);
  7217. std::swap(_cached_size_, other->_cached_size_);
  7218. }
  7219. }
  7220. ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
  7221. protobuf_AssignDescriptorsOnce();
  7222. ::google::protobuf::Metadata metadata;
  7223. metadata.descriptor = SourceCodeInfo_descriptor_;
  7224. metadata.reflection = SourceCodeInfo_reflection_;
  7225. return metadata;
  7226. }
  7227. // @@protoc_insertion_point(namespace_scope)
  7228. } // namespace protobuf
  7229. } // namespace google
  7230. // @@protoc_insertion_point(global_scope)