PageRenderTime 54ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/OsmAnd/jni/protobuf/google/protobuf/descriptor.pb.h

https://code.google.com/
C Header | 1636 lines | 1258 code | 260 blank | 118 comment | 10 complexity | 51c9b85a77343169a600792101d55962 MD5 | raw file
Possible License(s): MIT

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

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2003000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace google {
  23. namespace protobuf {
  24. // Internal implementation detail -- do not call these.
  25. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  26. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  27. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  28. class FileDescriptorSet;
  29. class FileDescriptorProto;
  30. class DescriptorProto;
  31. class DescriptorProto_ExtensionRange;
  32. class FieldDescriptorProto;
  33. class EnumDescriptorProto;
  34. class EnumValueDescriptorProto;
  35. class ServiceDescriptorProto;
  36. class MethodDescriptorProto;
  37. class FileOptions;
  38. class MessageOptions;
  39. class FieldOptions;
  40. class EnumOptions;
  41. class EnumValueOptions;
  42. class ServiceOptions;
  43. class MethodOptions;
  44. class UninterpretedOption;
  45. class UninterpretedOption_NamePart;
  46. enum FieldDescriptorProto_Type {
  47. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  48. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  49. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  50. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  51. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  52. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  53. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  54. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  55. FieldDescriptorProto_Type_TYPE_STRING = 9,
  56. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  57. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  58. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  59. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  60. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  61. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  62. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  63. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  64. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  65. };
  66. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  67. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  68. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  69. const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  70. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  71. inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
  72. return ::google::protobuf::internal::NameOfEnum(
  73. FieldDescriptorProto_Type_descriptor(), value);
  74. }
  75. inline bool FieldDescriptorProto_Type_Parse(
  76. const ::std::string& name, FieldDescriptorProto_Type* value) {
  77. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  78. FieldDescriptorProto_Type_descriptor(), name, value);
  79. }
  80. enum FieldDescriptorProto_Label {
  81. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  82. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  83. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  84. };
  85. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  86. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  87. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  88. const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  89. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  90. inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
  91. return ::google::protobuf::internal::NameOfEnum(
  92. FieldDescriptorProto_Label_descriptor(), value);
  93. }
  94. inline bool FieldDescriptorProto_Label_Parse(
  95. const ::std::string& name, FieldDescriptorProto_Label* value) {
  96. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  97. FieldDescriptorProto_Label_descriptor(), name, value);
  98. }
  99. enum FileOptions_OptimizeMode {
  100. FileOptions_OptimizeMode_SPEED = 1,
  101. FileOptions_OptimizeMode_CODE_SIZE = 2,
  102. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  103. };
  104. LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  105. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  106. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  107. const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  108. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  109. inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
  110. return ::google::protobuf::internal::NameOfEnum(
  111. FileOptions_OptimizeMode_descriptor(), value);
  112. }
  113. inline bool FileOptions_OptimizeMode_Parse(
  114. const ::std::string& name, FileOptions_OptimizeMode* value) {
  115. return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  116. FileOptions_OptimizeMode_descriptor(), name, value);
  117. }
  118. enum FieldOptions_CType {
  119. FieldOptions_CType_STRING = 0,
  120. FieldOptions_CType_CORD = 1,
  121. FieldOptions_CType_STRING_PIECE = 2
  122. };
  123. LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  124. const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  125. const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  126. const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  127. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
  128. inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
  129. return ::google::protobuf::internal::NameOfEnum(
  130. FieldOptions_CType_descriptor(), value);
  131. }
  132. inline bool FieldOptions_CType_Parse(
  133. const ::std::string& name, FieldOptions_CType* value) {
  134. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
  135. FieldOptions_CType_descriptor(), name, value);
  136. }
  137. // ===================================================================
  138. class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message {
  139. public:
  140. FileDescriptorSet();
  141. virtual ~FileDescriptorSet();
  142. FileDescriptorSet(const FileDescriptorSet& from);
  143. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  144. CopyFrom(from);
  145. return *this;
  146. }
  147. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  148. return _unknown_fields_;
  149. }
  150. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  151. return &_unknown_fields_;
  152. }
  153. static const ::google::protobuf::Descriptor* descriptor();
  154. static const FileDescriptorSet& default_instance();
  155. void Swap(FileDescriptorSet* other);
  156. // implements Message ----------------------------------------------
  157. FileDescriptorSet* New() const;
  158. void CopyFrom(const ::google::protobuf::Message& from);
  159. void MergeFrom(const ::google::protobuf::Message& from);
  160. void CopyFrom(const FileDescriptorSet& from);
  161. void MergeFrom(const FileDescriptorSet& from);
  162. void Clear();
  163. bool IsInitialized() const;
  164. int ByteSize() const;
  165. bool MergePartialFromCodedStream(
  166. ::google::protobuf::io::CodedInputStream* input);
  167. void SerializeWithCachedSizes(
  168. ::google::protobuf::io::CodedOutputStream* output) const;
  169. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  170. int GetCachedSize() const { return _cached_size_; }
  171. private:
  172. void SharedCtor();
  173. void SharedDtor();
  174. void SetCachedSize(int size) const;
  175. public:
  176. ::google::protobuf::Metadata GetMetadata() const;
  177. // nested types ----------------------------------------------------
  178. // accessors -------------------------------------------------------
  179. // repeated .google.protobuf.FileDescriptorProto file = 1;
  180. inline int file_size() const;
  181. inline void clear_file();
  182. static const int kFileFieldNumber = 1;
  183. inline const ::google::protobuf::FileDescriptorProto& file(int index) const;
  184. inline ::google::protobuf::FileDescriptorProto* mutable_file(int index);
  185. inline ::google::protobuf::FileDescriptorProto* add_file();
  186. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  187. file() const;
  188. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  189. mutable_file();
  190. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  191. private:
  192. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  193. mutable int _cached_size_;
  194. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
  195. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  196. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  197. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  198. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  199. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  200. inline bool _has_bit(int index) const {
  201. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  202. }
  203. inline void _set_bit(int index) {
  204. _has_bits_[index / 32] |= (1u << (index % 32));
  205. }
  206. inline void _clear_bit(int index) {
  207. _has_bits_[index / 32] &= ~(1u << (index % 32));
  208. }
  209. void InitAsDefaultInstance();
  210. static FileDescriptorSet* default_instance_;
  211. };
  212. // -------------------------------------------------------------------
  213. class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message {
  214. public:
  215. FileDescriptorProto();
  216. virtual ~FileDescriptorProto();
  217. FileDescriptorProto(const FileDescriptorProto& from);
  218. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  219. CopyFrom(from);
  220. return *this;
  221. }
  222. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  223. return _unknown_fields_;
  224. }
  225. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  226. return &_unknown_fields_;
  227. }
  228. static const ::google::protobuf::Descriptor* descriptor();
  229. static const FileDescriptorProto& default_instance();
  230. void Swap(FileDescriptorProto* other);
  231. // implements Message ----------------------------------------------
  232. FileDescriptorProto* New() const;
  233. void CopyFrom(const ::google::protobuf::Message& from);
  234. void MergeFrom(const ::google::protobuf::Message& from);
  235. void CopyFrom(const FileDescriptorProto& from);
  236. void MergeFrom(const FileDescriptorProto& from);
  237. void Clear();
  238. bool IsInitialized() const;
  239. int ByteSize() const;
  240. bool MergePartialFromCodedStream(
  241. ::google::protobuf::io::CodedInputStream* input);
  242. void SerializeWithCachedSizes(
  243. ::google::protobuf::io::CodedOutputStream* output) const;
  244. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  245. int GetCachedSize() const { return _cached_size_; }
  246. private:
  247. void SharedCtor();
  248. void SharedDtor();
  249. void SetCachedSize(int size) const;
  250. public:
  251. ::google::protobuf::Metadata GetMetadata() const;
  252. // nested types ----------------------------------------------------
  253. // accessors -------------------------------------------------------
  254. // optional string name = 1;
  255. inline bool has_name() const;
  256. inline void clear_name();
  257. static const int kNameFieldNumber = 1;
  258. inline const ::std::string& name() const;
  259. inline void set_name(const ::std::string& value);
  260. inline void set_name(const char* value);
  261. inline void set_name(const char* value, size_t size);
  262. inline ::std::string* mutable_name();
  263. // optional string package = 2;
  264. inline bool has_package() const;
  265. inline void clear_package();
  266. static const int kPackageFieldNumber = 2;
  267. inline const ::std::string& package() const;
  268. inline void set_package(const ::std::string& value);
  269. inline void set_package(const char* value);
  270. inline void set_package(const char* value, size_t size);
  271. inline ::std::string* mutable_package();
  272. // repeated string dependency = 3;
  273. inline int dependency_size() const;
  274. inline void clear_dependency();
  275. static const int kDependencyFieldNumber = 3;
  276. inline const ::std::string& dependency(int index) const;
  277. inline ::std::string* mutable_dependency(int index);
  278. inline void set_dependency(int index, const ::std::string& value);
  279. inline void set_dependency(int index, const char* value);
  280. inline void set_dependency(int index, const char* value, size_t size);
  281. inline ::std::string* add_dependency();
  282. inline void add_dependency(const ::std::string& value);
  283. inline void add_dependency(const char* value);
  284. inline void add_dependency(const char* value, size_t size);
  285. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
  286. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
  287. // repeated .google.protobuf.DescriptorProto message_type = 4;
  288. inline int message_type_size() const;
  289. inline void clear_message_type();
  290. static const int kMessageTypeFieldNumber = 4;
  291. inline const ::google::protobuf::DescriptorProto& message_type(int index) const;
  292. inline ::google::protobuf::DescriptorProto* mutable_message_type(int index);
  293. inline ::google::protobuf::DescriptorProto* add_message_type();
  294. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  295. message_type() const;
  296. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  297. mutable_message_type();
  298. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  299. inline int enum_type_size() const;
  300. inline void clear_enum_type();
  301. static const int kEnumTypeFieldNumber = 5;
  302. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  303. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  304. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  305. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  306. enum_type() const;
  307. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  308. mutable_enum_type();
  309. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  310. inline int service_size() const;
  311. inline void clear_service();
  312. static const int kServiceFieldNumber = 6;
  313. inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
  314. inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
  315. inline ::google::protobuf::ServiceDescriptorProto* add_service();
  316. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  317. service() const;
  318. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  319. mutable_service();
  320. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  321. inline int extension_size() const;
  322. inline void clear_extension();
  323. static const int kExtensionFieldNumber = 7;
  324. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  325. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  326. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  327. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  328. extension() const;
  329. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  330. mutable_extension();
  331. // optional .google.protobuf.FileOptions options = 8;
  332. inline bool has_options() const;
  333. inline void clear_options();
  334. static const int kOptionsFieldNumber = 8;
  335. inline const ::google::protobuf::FileOptions& options() const;
  336. inline ::google::protobuf::FileOptions* mutable_options();
  337. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  338. private:
  339. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  340. mutable int _cached_size_;
  341. ::std::string* name_;
  342. static const ::std::string _default_name_;
  343. ::std::string* package_;
  344. static const ::std::string _default_package_;
  345. ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
  346. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
  347. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  348. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
  349. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  350. ::google::protobuf::FileOptions* options_;
  351. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  352. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  353. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  354. ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
  355. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  356. inline bool _has_bit(int index) const {
  357. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  358. }
  359. inline void _set_bit(int index) {
  360. _has_bits_[index / 32] |= (1u << (index % 32));
  361. }
  362. inline void _clear_bit(int index) {
  363. _has_bits_[index / 32] &= ~(1u << (index % 32));
  364. }
  365. void InitAsDefaultInstance();
  366. static FileDescriptorProto* default_instance_;
  367. };
  368. // -------------------------------------------------------------------
  369. class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message {
  370. public:
  371. DescriptorProto_ExtensionRange();
  372. virtual ~DescriptorProto_ExtensionRange();
  373. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  374. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  375. CopyFrom(from);
  376. return *this;
  377. }
  378. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  379. return _unknown_fields_;
  380. }
  381. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  382. return &_unknown_fields_;
  383. }
  384. static const ::google::protobuf::Descriptor* descriptor();
  385. static const DescriptorProto_ExtensionRange& default_instance();
  386. void Swap(DescriptorProto_ExtensionRange* other);
  387. // implements Message ----------------------------------------------
  388. DescriptorProto_ExtensionRange* New() const;
  389. void CopyFrom(const ::google::protobuf::Message& from);
  390. void MergeFrom(const ::google::protobuf::Message& from);
  391. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  392. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  393. void Clear();
  394. bool IsInitialized() const;
  395. int ByteSize() const;
  396. bool MergePartialFromCodedStream(
  397. ::google::protobuf::io::CodedInputStream* input);
  398. void SerializeWithCachedSizes(
  399. ::google::protobuf::io::CodedOutputStream* output) const;
  400. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  401. int GetCachedSize() const { return _cached_size_; }
  402. private:
  403. void SharedCtor();
  404. void SharedDtor();
  405. void SetCachedSize(int size) const;
  406. public:
  407. ::google::protobuf::Metadata GetMetadata() const;
  408. // nested types ----------------------------------------------------
  409. // accessors -------------------------------------------------------
  410. // optional int32 start = 1;
  411. inline bool has_start() const;
  412. inline void clear_start();
  413. static const int kStartFieldNumber = 1;
  414. inline ::google::protobuf::int32 start() const;
  415. inline void set_start(::google::protobuf::int32 value);
  416. // optional int32 end = 2;
  417. inline bool has_end() const;
  418. inline void clear_end();
  419. static const int kEndFieldNumber = 2;
  420. inline ::google::protobuf::int32 end() const;
  421. inline void set_end(::google::protobuf::int32 value);
  422. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  423. private:
  424. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  425. mutable int _cached_size_;
  426. ::google::protobuf::int32 start_;
  427. ::google::protobuf::int32 end_;
  428. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  429. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  430. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  431. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  432. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  433. inline bool _has_bit(int index) const {
  434. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  435. }
  436. inline void _set_bit(int index) {
  437. _has_bits_[index / 32] |= (1u << (index % 32));
  438. }
  439. inline void _clear_bit(int index) {
  440. _has_bits_[index / 32] &= ~(1u << (index % 32));
  441. }
  442. void InitAsDefaultInstance();
  443. static DescriptorProto_ExtensionRange* default_instance_;
  444. };
  445. // -------------------------------------------------------------------
  446. class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
  447. public:
  448. DescriptorProto();
  449. virtual ~DescriptorProto();
  450. DescriptorProto(const DescriptorProto& from);
  451. inline DescriptorProto& operator=(const DescriptorProto& from) {
  452. CopyFrom(from);
  453. return *this;
  454. }
  455. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  456. return _unknown_fields_;
  457. }
  458. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  459. return &_unknown_fields_;
  460. }
  461. static const ::google::protobuf::Descriptor* descriptor();
  462. static const DescriptorProto& default_instance();
  463. void Swap(DescriptorProto* other);
  464. // implements Message ----------------------------------------------
  465. DescriptorProto* New() const;
  466. void CopyFrom(const ::google::protobuf::Message& from);
  467. void MergeFrom(const ::google::protobuf::Message& from);
  468. void CopyFrom(const DescriptorProto& from);
  469. void MergeFrom(const DescriptorProto& from);
  470. void Clear();
  471. bool IsInitialized() const;
  472. int ByteSize() const;
  473. bool MergePartialFromCodedStream(
  474. ::google::protobuf::io::CodedInputStream* input);
  475. void SerializeWithCachedSizes(
  476. ::google::protobuf::io::CodedOutputStream* output) const;
  477. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  478. int GetCachedSize() const { return _cached_size_; }
  479. private:
  480. void SharedCtor();
  481. void SharedDtor();
  482. void SetCachedSize(int size) const;
  483. public:
  484. ::google::protobuf::Metadata GetMetadata() const;
  485. // nested types ----------------------------------------------------
  486. typedef DescriptorProto_ExtensionRange ExtensionRange;
  487. // accessors -------------------------------------------------------
  488. // optional string name = 1;
  489. inline bool has_name() const;
  490. inline void clear_name();
  491. static const int kNameFieldNumber = 1;
  492. inline const ::std::string& name() const;
  493. inline void set_name(const ::std::string& value);
  494. inline void set_name(const char* value);
  495. inline void set_name(const char* value, size_t size);
  496. inline ::std::string* mutable_name();
  497. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  498. inline int field_size() const;
  499. inline void clear_field();
  500. static const int kFieldFieldNumber = 2;
  501. inline const ::google::protobuf::FieldDescriptorProto& field(int index) const;
  502. inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
  503. inline ::google::protobuf::FieldDescriptorProto* add_field();
  504. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  505. field() const;
  506. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  507. mutable_field();
  508. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  509. inline int extension_size() const;
  510. inline void clear_extension();
  511. static const int kExtensionFieldNumber = 6;
  512. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  513. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  514. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  515. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  516. extension() const;
  517. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  518. mutable_extension();
  519. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  520. inline int nested_type_size() const;
  521. inline void clear_nested_type();
  522. static const int kNestedTypeFieldNumber = 3;
  523. inline const ::google::protobuf::DescriptorProto& nested_type(int index) const;
  524. inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
  525. inline ::google::protobuf::DescriptorProto* add_nested_type();
  526. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  527. nested_type() const;
  528. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  529. mutable_nested_type();
  530. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  531. inline int enum_type_size() const;
  532. inline void clear_enum_type();
  533. static const int kEnumTypeFieldNumber = 4;
  534. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  535. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  536. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  537. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  538. enum_type() const;
  539. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  540. mutable_enum_type();
  541. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  542. inline int extension_range_size() const;
  543. inline void clear_extension_range();
  544. static const int kExtensionRangeFieldNumber = 5;
  545. inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
  546. inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  547. inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
  548. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  549. extension_range() const;
  550. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  551. mutable_extension_range();
  552. // optional .google.protobuf.MessageOptions options = 7;
  553. inline bool has_options() const;
  554. inline void clear_options();
  555. static const int kOptionsFieldNumber = 7;
  556. inline const ::google::protobuf::MessageOptions& options() const;
  557. inline ::google::protobuf::MessageOptions* mutable_options();
  558. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  559. private:
  560. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  561. mutable int _cached_size_;
  562. ::std::string* name_;
  563. static const ::std::string _default_name_;
  564. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
  565. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  566. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
  567. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  568. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
  569. ::google::protobuf::MessageOptions* options_;
  570. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  571. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  572. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  573. ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  574. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  575. inline bool _has_bit(int index) const {
  576. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  577. }
  578. inline void _set_bit(int index) {
  579. _has_bits_[index / 32] |= (1u << (index % 32));
  580. }
  581. inline void _clear_bit(int index) {
  582. _has_bits_[index / 32] &= ~(1u << (index % 32));
  583. }
  584. void InitAsDefaultInstance();
  585. static DescriptorProto* default_instance_;
  586. };
  587. // -------------------------------------------------------------------
  588. class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message {
  589. public:
  590. FieldDescriptorProto();
  591. virtual ~FieldDescriptorProto();
  592. FieldDescriptorProto(const FieldDescriptorProto& from);
  593. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  594. CopyFrom(from);
  595. return *this;
  596. }
  597. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  598. return _unknown_fields_;
  599. }
  600. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  601. return &_unknown_fields_;
  602. }
  603. static const ::google::protobuf::Descriptor* descriptor();
  604. static const FieldDescriptorProto& default_instance();
  605. void Swap(FieldDescriptorProto* other);
  606. // implements Message ----------------------------------------------
  607. FieldDescriptorProto* New() const;
  608. void CopyFrom(const ::google::protobuf::Message& from);
  609. void MergeFrom(const ::google::protobuf::Message& from);
  610. void CopyFrom(const FieldDescriptorProto& from);
  611. void MergeFrom(const FieldDescriptorProto& from);
  612. void Clear();
  613. bool IsInitialized() const;
  614. int ByteSize() const;
  615. bool MergePartialFromCodedStream(
  616. ::google::protobuf::io::CodedInputStream* input);
  617. void SerializeWithCachedSizes(
  618. ::google::protobuf::io::CodedOutputStream* output) const;
  619. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  620. int GetCachedSize() const { return _cached_size_; }
  621. private:
  622. void SharedCtor();
  623. void SharedDtor();
  624. void SetCachedSize(int size) const;
  625. public:
  626. ::google::protobuf::Metadata GetMetadata() const;
  627. // nested types ----------------------------------------------------
  628. typedef FieldDescriptorProto_Type Type;
  629. static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE;
  630. static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT;
  631. static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64;
  632. static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64;
  633. static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32;
  634. static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64;
  635. static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32;
  636. static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL;
  637. static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING;
  638. static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP;
  639. static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE;
  640. static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES;
  641. static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32;
  642. static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM;
  643. static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32;
  644. static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64;
  645. static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32;
  646. static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64;
  647. static inline bool Type_IsValid(int value) {
  648. return FieldDescriptorProto_Type_IsValid(value);
  649. }
  650. static const Type Type_MIN =
  651. FieldDescriptorProto_Type_Type_MIN;
  652. static const Type Type_MAX =
  653. FieldDescriptorProto_Type_Type_MAX;
  654. static const int Type_ARRAYSIZE =
  655. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  656. static inline const ::google::protobuf::EnumDescriptor*
  657. Type_descriptor() {
  658. return FieldDescriptorProto_Type_descriptor();
  659. }
  660. static inline const ::std::string& Type_Name(Type value) {
  661. return FieldDescriptorProto_Type_Name(value);
  662. }
  663. static inline bool Type_Parse(const ::std::string& name,
  664. Type* value) {
  665. return FieldDescriptorProto_Type_Parse(name, value);
  666. }
  667. typedef FieldDescriptorProto_Label Label;
  668. static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  669. static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED;
  670. static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED;
  671. static inline bool Label_IsValid(int value) {
  672. return FieldDescriptorProto_Label_IsValid(value);
  673. }
  674. static const Label Label_MIN =
  675. FieldDescriptorProto_Label_Label_MIN;
  676. static const Label Label_MAX =
  677. FieldDescriptorProto_Label_Label_MAX;
  678. static const int Label_ARRAYSIZE =
  679. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  680. static inline const ::google::protobuf::EnumDescriptor*
  681. Label_descriptor() {
  682. return FieldDescriptorProto_Label_descriptor();
  683. }
  684. static inline const ::std::string& Label_Name(Label value) {
  685. return FieldDescriptorProto_Label_Name(value);
  686. }
  687. static inline bool Label_Parse(const ::std::string& name,
  688. Label* value) {
  689. return FieldDescriptorProto_Label_Parse(name, value);
  690. }
  691. // accessors -------------------------------------------------------
  692. // optional string name = 1;
  693. inline bool has_name() const;
  694. inline void clear_name();
  695. static const int kNameFieldNumber = 1;
  696. inline const ::std::string& name() const;
  697. inline void set_name(const ::std::string& value);
  698. inline void set_name(const char* value);
  699. inline void set_name(const char* value, size_t size);
  700. inline ::std::string* mutable_name();
  701. // optional int32 number = 3;
  702. inline bool has_number() const;
  703. inline void clear_number();
  704. static const int kNumberFieldNumber = 3;
  705. inline ::google::protobuf::int32 number() const;
  706. inline void set_number(::google::protobuf::int32 value);
  707. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  708. inline bool has_label() const;
  709. inline void clear_label();
  710. static const int kLabelFieldNumber = 4;
  711. inline ::google::protobuf::FieldDescriptorProto_Label label() const;
  712. inline void set_label(::google::protobuf::FieldDescriptorProto_Label value);
  713. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  714. inline bool has_type() const;
  715. inline void clear_type();
  716. static const int kTypeFieldNumber = 5;
  717. inline ::google::protobuf::FieldDescriptorProto_Type type() const;
  718. inline void set_type(::google::protobuf::FieldDescriptorProto_Type value);
  719. // optional string type_name = 6;
  720. inline bool has_type_name() const;
  721. inline void clear_type_name();
  722. static const int kTypeNameFieldNumber = 6;
  723. inline const ::std::string& type_name() const;
  724. inline void set_type_name(const ::std::string& value);
  725. inline void set_type_name(const char* value);
  726. inline void set_type_name(const char* value, size_t size);
  727. inline ::std::string* mutable_type_name();
  728. // optional string extendee = 2;
  729. inline bool has_extendee() const;
  730. inline void clear_extendee();
  731. static const int kExtendeeFieldNumber = 2;
  732. inline const ::std::string& extendee() const;
  733. inline void set_extendee(const ::std::string& value);
  734. inline void set_extendee(const char* value);
  735. inline void set_extendee(const char* value, size_t size);
  736. inline ::std::string* mutable_extendee();
  737. // optional string default_value = 7;
  738. inline bool has_default_value() const;
  739. inline void clear_default_value();
  740. static const int kDefaultValueFieldNumber = 7;
  741. inline const ::std::string& default_value() const;
  742. inline void set_default_value(const ::std::string& value);
  743. inline void set_default_value(const char* value);
  744. inline void set_default_value(const char* value, size_t size);
  745. inline ::std::string* mutable_default_value();
  746. // optional .google.protobuf.FieldOptions options = 8;
  747. inline bool has_options() const;
  748. inline void clear_options();
  749. static const int kOptionsFieldNumber = 8;
  750. inline const ::google::protobuf::FieldOptions& options() const;
  751. inline ::google::protobuf::FieldOptions* mutable_options();
  752. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  753. private:
  754. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  755. mutable int _cached_size_;
  756. ::std::string* name_;
  757. static const ::std::string _default_name_;
  758. ::google::protobuf::int32 number_;
  759. int label_;
  760. int type_;
  761. ::std::string* type_name_;
  762. static const ::std::string _default_type_name_;
  763. ::std::string* extendee_;
  764. static const ::std::string _default_extendee_;
  765. ::std::string* default_value_;
  766. static const ::std::string _default_default_value_;
  767. ::google::protobuf::FieldOptions* options_;
  768. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  769. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  770. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  771. ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
  772. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  773. inline bool _has_bit(int index) const {
  774. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  775. }
  776. inline void _set_bit(int index) {
  777. _has_bits_[index / 32] |= (1u << (index % 32));
  778. }
  779. inline void _clear_bit(int index) {
  780. _has_bits_[index / 32] &= ~(1u << (index % 32));
  781. }
  782. void InitAsDefaultInstance();
  783. static FieldDescriptorProto* default_instance_;
  784. };
  785. // -------------------------------------------------------------------
  786. class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message {
  787. public:
  788. EnumDescriptorProto();
  789. virtual ~EnumDescriptorProto();
  790. EnumDescriptorProto(const EnumDescriptorProto& from);
  791. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  792. CopyFrom(from);
  793. return *this;
  794. }
  795. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  796. return _unknown_fields_;
  797. }
  798. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  799. return &_unknown_fields_;
  800. }
  801. static const ::google::protobuf::Descriptor* descriptor();
  802. static const EnumDescriptorProto& default_instance();
  803. void Swap(EnumDescriptorProto* other);
  804. // implements Message ----------------------------------------------
  805. EnumDescriptorProto* New() const;
  806. void CopyFrom(const ::google::protobuf::Message& from);
  807. void MergeFrom(const ::google::protobuf::Message& from);
  808. void CopyFrom(const EnumDescriptorProto& from);
  809. void MergeFrom(const EnumDescriptorProto& from);
  810. void Clear();
  811. bool IsInitialized() const;
  812. int ByteSize() const;
  813. bool MergePartialFromCodedStream(
  814. ::google::protobuf::io::CodedInputStream* input);
  815. void SerializeWithCachedSizes(
  816. ::google::protobuf::io::CodedOutputStream* output) const;
  817. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  818. int GetCachedSize() const { return _cached_size_; }
  819. private:
  820. void SharedCtor();
  821. void SharedDtor();
  822. void SetCachedSize(int size) const;
  823. public:
  824. ::google::protobuf::Metadata GetMetadata() const;
  825. // nested types ----------------------------------------------------
  826. // accessors -------------------------------------------------------
  827. // optional string name = 1;
  828. inline bool has_name() const;
  829. inline void clear_name();
  830. static const int kNameFieldNumber = 1;
  831. inline const ::std::string& name() const;
  832. inline void set_name(const ::std::string& value);
  833. inline void set_name(const char* value);
  834. inline void set_name(const char* value, size_t size);
  835. inline ::std::string* mutable_name();
  836. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  837. inline int value_size() const;
  838. inline void clear_value();
  839. static const int kValueFieldNumber = 2;
  840. inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
  841. inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
  842. inline ::google::protobuf::EnumValueDescriptorProto* add_value();
  843. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  844. value() const;
  845. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  846. mutable_value();
  847. // optional .google.protobuf.EnumOptions options = 3;
  848. inline bool has_options() const;
  849. inline void clear_options();
  850. static const int kOptionsFieldNumber = 3;
  851. inline const ::google::protobuf::EnumOptions& options() const;
  852. inline ::google::protobuf::EnumOptions* mutable_options();
  853. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  854. private:
  855. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  856. mutable int _cached_size_;
  857. ::std::string* name_;
  858. static const ::std::string _default_name_;
  859. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
  860. ::google::protobuf::EnumOptions* options_;
  861. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  862. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  863. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  864. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  865. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  866. inline bool _has_bit(int index) const {
  867. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  868. }
  869. inline void _set_bit(int index) {
  870. _has_bits_[index / 32] |= (1u << (index % 32));
  871. }
  872. inline void _clear_bit(int index) {
  873. _has_bits_[index / 32] &= ~(1u << (index % 32));
  874. }
  875. void InitAsDefaultInstance();
  876. static EnumDescriptorProto* default_instance_;
  877. };
  878. // -------------------------------------------------------------------
  879. class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message {
  880. public:
  881. EnumValueDescriptorProto();
  882. virtual ~EnumValueDescriptorProto();
  883. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  884. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  885. CopyFrom(from);
  886. return *this;
  887. }
  888. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  889. return _unknown_fields_;
  890. }
  891. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  892. return &_unknown_fields_;
  893. }
  894. static const ::google::protobuf::Descriptor* descriptor();
  895. static const EnumValueDescriptorProto& default_instance();
  896. void Swap(EnumValueDescriptorProto* other);
  897. // implements Message ----------------------------------------------
  898. EnumValueDescriptorProto* New() const;
  899. void CopyFrom(const ::google::protobuf::Message& from);
  900. void MergeFrom(const ::google::protobuf::Message& from);
  901. void CopyFrom(const EnumValueDescriptorProto& from);
  902. void MergeFrom(const EnumValueDescriptorProto& from);
  903. void Clear();
  904. bool IsInitialized() const;
  905. int ByteSize() const;
  906. bool MergePartialFromCodedStream(
  907. ::google::protobuf::io::CodedInputStream* input);
  908. void SerializeWithCachedSizes(
  909. ::google::protobuf::io::CodedOutputStream* output) const;
  910. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  911. int GetCachedSize() const { return _cached_size_; }
  912. private:
  913. void SharedCtor();
  914. void SharedDtor();
  915. void SetCachedSize(int size) const;
  916. public:
  917. ::google::protobuf::Metadata GetMetadata() const;
  918. // nested types ----------------------------------------------------
  919. // accessors -------------------------------------------------------
  920. // optional string name = 1;
  921. inline bool has_name() const;
  922. inline void clear_name();
  923. static const int kNameFieldNumber = 1;
  924. inline const ::std::string& name() const;
  925. inline void set_name(const ::std::string& value);
  926. inline void set_name(const char* value);
  927. inline void set_name(const char* value, size_t size);
  928. inline ::std::string* mutable_name();
  929. // optional int32 number = 2;
  930. inline bool has_number() const;
  931. inline void clear_number();
  932. static const int kNumberFieldNumber = 2;
  933. inline ::google::protobuf::int32 number() const;
  934. inline void set_number(::google::protobuf::int32 value);
  935. // optional .google.protobuf.EnumValueOptions options = 3;
  936. inline bool has_options() const;
  937. inline void clear_options();
  938. static const int kOptionsFieldNumber = 3;
  939. inline const ::google::protobuf::EnumValueOptions& options() const;
  940. inline ::google::protobuf::EnumValueOptions* mutable_options();
  941. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  942. private:
  943. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  944. mutable int _cached_size_;
  945. ::std::string* name_;
  946. static const ::std::string _default_name_;
  947. ::google::protobuf::int32 number_;
  948. ::google::protobuf::EnumValueOptions* options_;
  949. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  950. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  951. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  952. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  953. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  954. inline bool _has_bit(int index) const {
  955. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  956. }
  957. inline void _set_bit(int index) {
  958. _has_bits_[index / 32] |= (1u << (index % 32));
  959. }
  960. inline void _clear_bit(int index) {
  961. _has_bits_[index / 32] &= ~(1u << (index % 32));
  962. }
  963. void InitAsDefaultInstance();
  964. static EnumValueDescriptorProto* default_instance_;
  965. };
  966. // -------------------------------------------------------------------
  967. class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message {
  968. public:
  969. ServiceDescriptorProto();
  970. virtual ~ServiceDescriptorProto();
  971. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  972. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  973. CopyFrom(from);
  974. return *this;
  975. }
  976. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  977. return _unknown_fields_;
  978. }
  979. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  980. return &_unknown_fields_;
  981. }
  982. static const ::google::protobuf::Descriptor* descriptor();
  983. static const ServiceDescriptorProto& default_instance();
  984. void Swap(ServiceDescriptorProto* other);
  985. // implements Message ----------------------------------------------
  986. ServiceDescriptorProto* New() const;
  987. void CopyFrom(const ::google::protobuf::Message& from);
  988. void MergeFrom(const ::google::protobuf::Message& from);
  989. void CopyFrom(const ServiceDescriptorProto& from);
  990. void MergeFrom(const ServiceDescriptorProto& from);
  991. void Clear();
  992. bool IsInitialized() const;
  993. int ByteSize() const;
  994. bool MergePartialFromCodedStream(
  995. ::google::protobuf::io::CodedInputStream* input);
  996. void SerializeWithCachedSizes(
  997. ::google::protobuf::io::CodedOutputStream* output) const;
  998. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  999. int GetCachedSize() const { return _cached_size_; }
  1000. private:
  1001. void SharedCtor();
  1002. void SharedDtor();
  1003. void SetCachedSize(int size) const;
  1004. public:
  1005. ::google::protobuf::Metadata GetMetadata() const;
  1006. // nested types ----------------------------------------------------
  1007. // accessors -------------------------------------------------------
  1008. // optional string name = 1;
  1009. inline bool has_name() const;
  1010. inline void clear_name();
  1011. static const int kNameFieldNumber = 1;
  1012. inline const ::std::string& name() const;
  1013. inline void set_name(const ::std::string& value);
  1014. inline void set_name(const char* value);
  1015. inline void set_name(const char* value, size_t size);
  1016. inline ::std::string* mutable_name();
  1017. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  1018. inline int method_size() const;
  1019. inline void clear_method();
  1020. static const int kMethodFieldNumber = 2;
  1021. inline const ::google::protobuf::MethodDescriptorProto& method(int index) const;
  1022. inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
  1023. inline ::google::protobuf::MethodDescriptorProto* add_method();
  1024. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  1025. method() const;
  1026. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  1027. mutable_method();
  1028. // optional .google.protobuf.ServiceOptions options = 3;
  1029. inline bool has_options() const;
  1030. inline void clear_options();
  1031. static const int kOptionsFieldNumber = 3;
  1032. inline const ::google::protobuf::ServiceOptions& options() const;
  1033. inline ::google::protobuf::ServiceOptions* mutable_options();
  1034. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  1035. private:
  1036. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1037. mutable int _cached_size_;
  1038. ::std::string* name_;
  1039. static const ::std::string _default_name_;
  1040. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
  1041. ::google::protobuf::ServiceOptions* options_;
  1042. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_goog

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