PageRenderTime 70ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 1ms

/agent/browser/ie/pagetest/PageSpeed/include/third_party/protobuf/src/google/protobuf/descriptor.pb.h

http://webpagetest.googlecode.com/
C Header | 5256 lines | 4357 code | 604 blank | 295 comment | 350 complexity | 703eb0b32ee8bc0a107dc2491f1b18ea MD5 | raw file
Possible License(s): AGPL-1.0, Apache-2.0, GPL-3.0, LGPL-3.0, MIT, BSD-3-Clause, ISC, LGPL-2.1
  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 < 2004000
  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 2004000 < 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/unknown_field_set.h>
  21. #include <google/protobuf/generated_message_reflection.h>
  22. // @@protoc_insertion_point(includes)
  23. namespace google {
  24. namespace protobuf {
  25. // Internal implementation detail -- do not call these.
  26. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  27. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  28. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  29. class FileDescriptorSet;
  30. class FileDescriptorProto;
  31. class DescriptorProto;
  32. class DescriptorProto_ExtensionRange;
  33. class FieldDescriptorProto;
  34. class EnumDescriptorProto;
  35. class EnumValueDescriptorProto;
  36. class ServiceDescriptorProto;
  37. class MethodDescriptorProto;
  38. class FileOptions;
  39. class MessageOptions;
  40. class FieldOptions;
  41. class EnumOptions;
  42. class EnumValueOptions;
  43. class ServiceOptions;
  44. class MethodOptions;
  45. class UninterpretedOption;
  46. class UninterpretedOption_NamePart;
  47. class SourceCodeInfo;
  48. class SourceCodeInfo_Location;
  49. enum FieldDescriptorProto_Type {
  50. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  51. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  52. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  53. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  54. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  55. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  56. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  57. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  58. FieldDescriptorProto_Type_TYPE_STRING = 9,
  59. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  60. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  61. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  62. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  63. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  64. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  65. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  66. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  67. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  68. };
  69. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  70. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  71. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  72. const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  73. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  74. inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
  75. return ::google::protobuf::internal::NameOfEnum(
  76. FieldDescriptorProto_Type_descriptor(), value);
  77. }
  78. inline bool FieldDescriptorProto_Type_Parse(
  79. const ::std::string& name, FieldDescriptorProto_Type* value) {
  80. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  81. FieldDescriptorProto_Type_descriptor(), name, value);
  82. }
  83. enum FieldDescriptorProto_Label {
  84. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  85. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  86. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  87. };
  88. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  89. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  90. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  91. const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  92. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  93. inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
  94. return ::google::protobuf::internal::NameOfEnum(
  95. FieldDescriptorProto_Label_descriptor(), value);
  96. }
  97. inline bool FieldDescriptorProto_Label_Parse(
  98. const ::std::string& name, FieldDescriptorProto_Label* value) {
  99. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  100. FieldDescriptorProto_Label_descriptor(), name, value);
  101. }
  102. enum FileOptions_OptimizeMode {
  103. FileOptions_OptimizeMode_SPEED = 1,
  104. FileOptions_OptimizeMode_CODE_SIZE = 2,
  105. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  106. };
  107. LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  108. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  109. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  110. const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  111. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  112. inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
  113. return ::google::protobuf::internal::NameOfEnum(
  114. FileOptions_OptimizeMode_descriptor(), value);
  115. }
  116. inline bool FileOptions_OptimizeMode_Parse(
  117. const ::std::string& name, FileOptions_OptimizeMode* value) {
  118. return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  119. FileOptions_OptimizeMode_descriptor(), name, value);
  120. }
  121. enum FieldOptions_CType {
  122. FieldOptions_CType_STRING = 0,
  123. FieldOptions_CType_CORD = 1,
  124. FieldOptions_CType_STRING_PIECE = 2
  125. };
  126. LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  127. const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  128. const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  129. const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  130. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
  131. inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
  132. return ::google::protobuf::internal::NameOfEnum(
  133. FieldOptions_CType_descriptor(), value);
  134. }
  135. inline bool FieldOptions_CType_Parse(
  136. const ::std::string& name, FieldOptions_CType* value) {
  137. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
  138. FieldOptions_CType_descriptor(), name, value);
  139. }
  140. // ===================================================================
  141. class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message {
  142. public:
  143. FileDescriptorSet();
  144. virtual ~FileDescriptorSet();
  145. FileDescriptorSet(const FileDescriptorSet& from);
  146. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  147. CopyFrom(from);
  148. return *this;
  149. }
  150. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  151. return _unknown_fields_;
  152. }
  153. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  154. return &_unknown_fields_;
  155. }
  156. static const ::google::protobuf::Descriptor* descriptor();
  157. static const FileDescriptorSet& default_instance();
  158. void Swap(FileDescriptorSet* other);
  159. // implements Message ----------------------------------------------
  160. FileDescriptorSet* New() const;
  161. void CopyFrom(const ::google::protobuf::Message& from);
  162. void MergeFrom(const ::google::protobuf::Message& from);
  163. void CopyFrom(const FileDescriptorSet& from);
  164. void MergeFrom(const FileDescriptorSet& from);
  165. void Clear();
  166. bool IsInitialized() const;
  167. int ByteSize() const;
  168. bool MergePartialFromCodedStream(
  169. ::google::protobuf::io::CodedInputStream* input);
  170. void SerializeWithCachedSizes(
  171. ::google::protobuf::io::CodedOutputStream* output) const;
  172. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  173. int GetCachedSize() const { return _cached_size_; }
  174. private:
  175. void SharedCtor();
  176. void SharedDtor();
  177. void SetCachedSize(int size) const;
  178. public:
  179. ::google::protobuf::Metadata GetMetadata() const;
  180. // nested types ----------------------------------------------------
  181. // accessors -------------------------------------------------------
  182. // repeated .google.protobuf.FileDescriptorProto file = 1;
  183. inline int file_size() const;
  184. inline void clear_file();
  185. static const int kFileFieldNumber = 1;
  186. inline const ::google::protobuf::FileDescriptorProto& file(int index) const;
  187. inline ::google::protobuf::FileDescriptorProto* mutable_file(int index);
  188. inline ::google::protobuf::FileDescriptorProto* add_file();
  189. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  190. file() const;
  191. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  192. mutable_file();
  193. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  194. private:
  195. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  196. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
  197. mutable int _cached_size_;
  198. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  199. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  200. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  201. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  202. void InitAsDefaultInstance();
  203. static FileDescriptorSet* default_instance_;
  204. };
  205. // -------------------------------------------------------------------
  206. class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message {
  207. public:
  208. FileDescriptorProto();
  209. virtual ~FileDescriptorProto();
  210. FileDescriptorProto(const FileDescriptorProto& from);
  211. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  212. CopyFrom(from);
  213. return *this;
  214. }
  215. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  216. return _unknown_fields_;
  217. }
  218. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  219. return &_unknown_fields_;
  220. }
  221. static const ::google::protobuf::Descriptor* descriptor();
  222. static const FileDescriptorProto& default_instance();
  223. void Swap(FileDescriptorProto* other);
  224. // implements Message ----------------------------------------------
  225. FileDescriptorProto* New() const;
  226. void CopyFrom(const ::google::protobuf::Message& from);
  227. void MergeFrom(const ::google::protobuf::Message& from);
  228. void CopyFrom(const FileDescriptorProto& from);
  229. void MergeFrom(const FileDescriptorProto& from);
  230. void Clear();
  231. bool IsInitialized() const;
  232. int ByteSize() const;
  233. bool MergePartialFromCodedStream(
  234. ::google::protobuf::io::CodedInputStream* input);
  235. void SerializeWithCachedSizes(
  236. ::google::protobuf::io::CodedOutputStream* output) const;
  237. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  238. int GetCachedSize() const { return _cached_size_; }
  239. private:
  240. void SharedCtor();
  241. void SharedDtor();
  242. void SetCachedSize(int size) const;
  243. public:
  244. ::google::protobuf::Metadata GetMetadata() const;
  245. // nested types ----------------------------------------------------
  246. // accessors -------------------------------------------------------
  247. // optional string name = 1;
  248. inline bool has_name() const;
  249. inline void clear_name();
  250. static const int kNameFieldNumber = 1;
  251. inline const ::std::string& name() const;
  252. inline void set_name(const ::std::string& value);
  253. inline void set_name(const char* value);
  254. inline void set_name(const char* value, size_t size);
  255. inline ::std::string* mutable_name();
  256. inline ::std::string* release_name();
  257. // optional string package = 2;
  258. inline bool has_package() const;
  259. inline void clear_package();
  260. static const int kPackageFieldNumber = 2;
  261. inline const ::std::string& package() const;
  262. inline void set_package(const ::std::string& value);
  263. inline void set_package(const char* value);
  264. inline void set_package(const char* value, size_t size);
  265. inline ::std::string* mutable_package();
  266. inline ::std::string* release_package();
  267. // repeated string dependency = 3;
  268. inline int dependency_size() const;
  269. inline void clear_dependency();
  270. static const int kDependencyFieldNumber = 3;
  271. inline const ::std::string& dependency(int index) const;
  272. inline ::std::string* mutable_dependency(int index);
  273. inline void set_dependency(int index, const ::std::string& value);
  274. inline void set_dependency(int index, const char* value);
  275. inline void set_dependency(int index, const char* value, size_t size);
  276. inline ::std::string* add_dependency();
  277. inline void add_dependency(const ::std::string& value);
  278. inline void add_dependency(const char* value);
  279. inline void add_dependency(const char* value, size_t size);
  280. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
  281. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
  282. // repeated .google.protobuf.DescriptorProto message_type = 4;
  283. inline int message_type_size() const;
  284. inline void clear_message_type();
  285. static const int kMessageTypeFieldNumber = 4;
  286. inline const ::google::protobuf::DescriptorProto& message_type(int index) const;
  287. inline ::google::protobuf::DescriptorProto* mutable_message_type(int index);
  288. inline ::google::protobuf::DescriptorProto* add_message_type();
  289. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  290. message_type() const;
  291. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  292. mutable_message_type();
  293. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  294. inline int enum_type_size() const;
  295. inline void clear_enum_type();
  296. static const int kEnumTypeFieldNumber = 5;
  297. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  298. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  299. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  300. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  301. enum_type() const;
  302. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  303. mutable_enum_type();
  304. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  305. inline int service_size() const;
  306. inline void clear_service();
  307. static const int kServiceFieldNumber = 6;
  308. inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
  309. inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
  310. inline ::google::protobuf::ServiceDescriptorProto* add_service();
  311. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  312. service() const;
  313. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  314. mutable_service();
  315. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  316. inline int extension_size() const;
  317. inline void clear_extension();
  318. static const int kExtensionFieldNumber = 7;
  319. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  320. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  321. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  322. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  323. extension() const;
  324. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  325. mutable_extension();
  326. // optional .google.protobuf.FileOptions options = 8;
  327. inline bool has_options() const;
  328. inline void clear_options();
  329. static const int kOptionsFieldNumber = 8;
  330. inline const ::google::protobuf::FileOptions& options() const;
  331. inline ::google::protobuf::FileOptions* mutable_options();
  332. inline ::google::protobuf::FileOptions* release_options();
  333. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  334. inline bool has_source_code_info() const;
  335. inline void clear_source_code_info();
  336. static const int kSourceCodeInfoFieldNumber = 9;
  337. inline const ::google::protobuf::SourceCodeInfo& source_code_info() const;
  338. inline ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
  339. inline ::google::protobuf::SourceCodeInfo* release_source_code_info();
  340. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  341. private:
  342. inline void set_has_name();
  343. inline void clear_has_name();
  344. inline void set_has_package();
  345. inline void clear_has_package();
  346. inline void set_has_options();
  347. inline void clear_has_options();
  348. inline void set_has_source_code_info();
  349. inline void clear_has_source_code_info();
  350. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  351. ::std::string* name_;
  352. ::std::string* package_;
  353. ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
  354. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
  355. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  356. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
  357. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  358. ::google::protobuf::FileOptions* options_;
  359. ::google::protobuf::SourceCodeInfo* source_code_info_;
  360. mutable int _cached_size_;
  361. ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
  362. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  363. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  364. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  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. inline void set_has_start();
  425. inline void clear_has_start();
  426. inline void set_has_end();
  427. inline void clear_has_end();
  428. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  429. ::google::protobuf::int32 start_;
  430. ::google::protobuf::int32 end_;
  431. mutable int _cached_size_;
  432. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  433. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  434. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  435. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  436. void InitAsDefaultInstance();
  437. static DescriptorProto_ExtensionRange* default_instance_;
  438. };
  439. // -------------------------------------------------------------------
  440. class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
  441. public:
  442. DescriptorProto();
  443. virtual ~DescriptorProto();
  444. DescriptorProto(const DescriptorProto& from);
  445. inline DescriptorProto& operator=(const DescriptorProto& from) {
  446. CopyFrom(from);
  447. return *this;
  448. }
  449. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  450. return _unknown_fields_;
  451. }
  452. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  453. return &_unknown_fields_;
  454. }
  455. static const ::google::protobuf::Descriptor* descriptor();
  456. static const DescriptorProto& default_instance();
  457. void Swap(DescriptorProto* other);
  458. // implements Message ----------------------------------------------
  459. DescriptorProto* New() const;
  460. void CopyFrom(const ::google::protobuf::Message& from);
  461. void MergeFrom(const ::google::protobuf::Message& from);
  462. void CopyFrom(const DescriptorProto& from);
  463. void MergeFrom(const DescriptorProto& from);
  464. void Clear();
  465. bool IsInitialized() const;
  466. int ByteSize() const;
  467. bool MergePartialFromCodedStream(
  468. ::google::protobuf::io::CodedInputStream* input);
  469. void SerializeWithCachedSizes(
  470. ::google::protobuf::io::CodedOutputStream* output) const;
  471. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  472. int GetCachedSize() const { return _cached_size_; }
  473. private:
  474. void SharedCtor();
  475. void SharedDtor();
  476. void SetCachedSize(int size) const;
  477. public:
  478. ::google::protobuf::Metadata GetMetadata() const;
  479. // nested types ----------------------------------------------------
  480. typedef DescriptorProto_ExtensionRange ExtensionRange;
  481. // accessors -------------------------------------------------------
  482. // optional string name = 1;
  483. inline bool has_name() const;
  484. inline void clear_name();
  485. static const int kNameFieldNumber = 1;
  486. inline const ::std::string& name() const;
  487. inline void set_name(const ::std::string& value);
  488. inline void set_name(const char* value);
  489. inline void set_name(const char* value, size_t size);
  490. inline ::std::string* mutable_name();
  491. inline ::std::string* release_name();
  492. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  493. inline int field_size() const;
  494. inline void clear_field();
  495. static const int kFieldFieldNumber = 2;
  496. inline const ::google::protobuf::FieldDescriptorProto& field(int index) const;
  497. inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
  498. inline ::google::protobuf::FieldDescriptorProto* add_field();
  499. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  500. field() const;
  501. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  502. mutable_field();
  503. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  504. inline int extension_size() const;
  505. inline void clear_extension();
  506. static const int kExtensionFieldNumber = 6;
  507. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  508. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  509. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  510. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  511. extension() const;
  512. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  513. mutable_extension();
  514. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  515. inline int nested_type_size() const;
  516. inline void clear_nested_type();
  517. static const int kNestedTypeFieldNumber = 3;
  518. inline const ::google::protobuf::DescriptorProto& nested_type(int index) const;
  519. inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
  520. inline ::google::protobuf::DescriptorProto* add_nested_type();
  521. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  522. nested_type() const;
  523. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  524. mutable_nested_type();
  525. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  526. inline int enum_type_size() const;
  527. inline void clear_enum_type();
  528. static const int kEnumTypeFieldNumber = 4;
  529. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  530. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  531. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  532. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  533. enum_type() const;
  534. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  535. mutable_enum_type();
  536. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  537. inline int extension_range_size() const;
  538. inline void clear_extension_range();
  539. static const int kExtensionRangeFieldNumber = 5;
  540. inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
  541. inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  542. inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
  543. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  544. extension_range() const;
  545. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  546. mutable_extension_range();
  547. // optional .google.protobuf.MessageOptions options = 7;
  548. inline bool has_options() const;
  549. inline void clear_options();
  550. static const int kOptionsFieldNumber = 7;
  551. inline const ::google::protobuf::MessageOptions& options() const;
  552. inline ::google::protobuf::MessageOptions* mutable_options();
  553. inline ::google::protobuf::MessageOptions* release_options();
  554. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  555. private:
  556. inline void set_has_name();
  557. inline void clear_has_name();
  558. inline void set_has_options();
  559. inline void clear_has_options();
  560. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  561. ::std::string* name_;
  562. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
  563. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  564. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
  565. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  566. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
  567. ::google::protobuf::MessageOptions* options_;
  568. mutable int _cached_size_;
  569. ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  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. void InitAsDefaultInstance();
  574. static DescriptorProto* default_instance_;
  575. };
  576. // -------------------------------------------------------------------
  577. class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message {
  578. public:
  579. FieldDescriptorProto();
  580. virtual ~FieldDescriptorProto();
  581. FieldDescriptorProto(const FieldDescriptorProto& from);
  582. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  583. CopyFrom(from);
  584. return *this;
  585. }
  586. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  587. return _unknown_fields_;
  588. }
  589. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  590. return &_unknown_fields_;
  591. }
  592. static const ::google::protobuf::Descriptor* descriptor();
  593. static const FieldDescriptorProto& default_instance();
  594. void Swap(FieldDescriptorProto* other);
  595. // implements Message ----------------------------------------------
  596. FieldDescriptorProto* New() const;
  597. void CopyFrom(const ::google::protobuf::Message& from);
  598. void MergeFrom(const ::google::protobuf::Message& from);
  599. void CopyFrom(const FieldDescriptorProto& from);
  600. void MergeFrom(const FieldDescriptorProto& from);
  601. void Clear();
  602. bool IsInitialized() const;
  603. int ByteSize() const;
  604. bool MergePartialFromCodedStream(
  605. ::google::protobuf::io::CodedInputStream* input);
  606. void SerializeWithCachedSizes(
  607. ::google::protobuf::io::CodedOutputStream* output) const;
  608. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  609. int GetCachedSize() const { return _cached_size_; }
  610. private:
  611. void SharedCtor();
  612. void SharedDtor();
  613. void SetCachedSize(int size) const;
  614. public:
  615. ::google::protobuf::Metadata GetMetadata() const;
  616. // nested types ----------------------------------------------------
  617. typedef FieldDescriptorProto_Type Type;
  618. static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE;
  619. static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT;
  620. static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64;
  621. static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64;
  622. static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32;
  623. static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64;
  624. static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32;
  625. static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL;
  626. static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING;
  627. static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP;
  628. static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE;
  629. static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES;
  630. static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32;
  631. static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM;
  632. static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32;
  633. static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64;
  634. static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32;
  635. static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64;
  636. static inline bool Type_IsValid(int value) {
  637. return FieldDescriptorProto_Type_IsValid(value);
  638. }
  639. static const Type Type_MIN =
  640. FieldDescriptorProto_Type_Type_MIN;
  641. static const Type Type_MAX =
  642. FieldDescriptorProto_Type_Type_MAX;
  643. static const int Type_ARRAYSIZE =
  644. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  645. static inline const ::google::protobuf::EnumDescriptor*
  646. Type_descriptor() {
  647. return FieldDescriptorProto_Type_descriptor();
  648. }
  649. static inline const ::std::string& Type_Name(Type value) {
  650. return FieldDescriptorProto_Type_Name(value);
  651. }
  652. static inline bool Type_Parse(const ::std::string& name,
  653. Type* value) {
  654. return FieldDescriptorProto_Type_Parse(name, value);
  655. }
  656. typedef FieldDescriptorProto_Label Label;
  657. static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  658. static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED;
  659. static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED;
  660. static inline bool Label_IsValid(int value) {
  661. return FieldDescriptorProto_Label_IsValid(value);
  662. }
  663. static const Label Label_MIN =
  664. FieldDescriptorProto_Label_Label_MIN;
  665. static const Label Label_MAX =
  666. FieldDescriptorProto_Label_Label_MAX;
  667. static const int Label_ARRAYSIZE =
  668. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  669. static inline const ::google::protobuf::EnumDescriptor*
  670. Label_descriptor() {
  671. return FieldDescriptorProto_Label_descriptor();
  672. }
  673. static inline const ::std::string& Label_Name(Label value) {
  674. return FieldDescriptorProto_Label_Name(value);
  675. }
  676. static inline bool Label_Parse(const ::std::string& name,
  677. Label* value) {
  678. return FieldDescriptorProto_Label_Parse(name, value);
  679. }
  680. // accessors -------------------------------------------------------
  681. // optional string name = 1;
  682. inline bool has_name() const;
  683. inline void clear_name();
  684. static const int kNameFieldNumber = 1;
  685. inline const ::std::string& name() const;
  686. inline void set_name(const ::std::string& value);
  687. inline void set_name(const char* value);
  688. inline void set_name(const char* value, size_t size);
  689. inline ::std::string* mutable_name();
  690. inline ::std::string* release_name();
  691. // optional int32 number = 3;
  692. inline bool has_number() const;
  693. inline void clear_number();
  694. static const int kNumberFieldNumber = 3;
  695. inline ::google::protobuf::int32 number() const;
  696. inline void set_number(::google::protobuf::int32 value);
  697. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  698. inline bool has_label() const;
  699. inline void clear_label();
  700. static const int kLabelFieldNumber = 4;
  701. inline ::google::protobuf::FieldDescriptorProto_Label label() const;
  702. inline void set_label(::google::protobuf::FieldDescriptorProto_Label value);
  703. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  704. inline bool has_type() const;
  705. inline void clear_type();
  706. static const int kTypeFieldNumber = 5;
  707. inline ::google::protobuf::FieldDescriptorProto_Type type() const;
  708. inline void set_type(::google::protobuf::FieldDescriptorProto_Type value);
  709. // optional string type_name = 6;
  710. inline bool has_type_name() const;
  711. inline void clear_type_name();
  712. static const int kTypeNameFieldNumber = 6;
  713. inline const ::std::string& type_name() const;
  714. inline void set_type_name(const ::std::string& value);
  715. inline void set_type_name(const char* value);
  716. inline void set_type_name(const char* value, size_t size);
  717. inline ::std::string* mutable_type_name();
  718. inline ::std::string* release_type_name();
  719. // optional string extendee = 2;
  720. inline bool has_extendee() const;
  721. inline void clear_extendee();
  722. static const int kExtendeeFieldNumber = 2;
  723. inline const ::std::string& extendee() const;
  724. inline void set_extendee(const ::std::string& value);
  725. inline void set_extendee(const char* value);
  726. inline void set_extendee(const char* value, size_t size);
  727. inline ::std::string* mutable_extendee();
  728. inline ::std::string* release_extendee();
  729. // optional string default_value = 7;
  730. inline bool has_default_value() const;
  731. inline void clear_default_value();
  732. static const int kDefaultValueFieldNumber = 7;
  733. inline const ::std::string& default_value() const;
  734. inline void set_default_value(const ::std::string& value);
  735. inline void set_default_value(const char* value);
  736. inline void set_default_value(const char* value, size_t size);
  737. inline ::std::string* mutable_default_value();
  738. inline ::std::string* release_default_value();
  739. // optional .google.protobuf.FieldOptions options = 8;
  740. inline bool has_options() const;
  741. inline void clear_options();
  742. static const int kOptionsFieldNumber = 8;
  743. inline const ::google::protobuf::FieldOptions& options() const;
  744. inline ::google::protobuf::FieldOptions* mutable_options();
  745. inline ::google::protobuf::FieldOptions* release_options();
  746. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  747. private:
  748. inline void set_has_name();
  749. inline void clear_has_name();
  750. inline void set_has_number();
  751. inline void clear_has_number();
  752. inline void set_has_label();
  753. inline void clear_has_label();
  754. inline void set_has_type();
  755. inline void clear_has_type();
  756. inline void set_has_type_name();
  757. inline void clear_has_type_name();
  758. inline void set_has_extendee();
  759. inline void clear_has_extendee();
  760. inline void set_has_default_value();
  761. inline void clear_has_default_value();
  762. inline void set_has_options();
  763. inline void clear_has_options();
  764. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  765. ::std::string* name_;
  766. ::google::protobuf::int32 number_;
  767. int label_;
  768. ::std::string* type_name_;
  769. ::std::string* extendee_;
  770. ::std::string* default_value_;
  771. ::google::protobuf::FieldOptions* options_;
  772. int type_;
  773. mutable int _cached_size_;
  774. ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
  775. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  776. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  777. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  778. void InitAsDefaultInstance();
  779. static FieldDescriptorProto* default_instance_;
  780. };
  781. // -------------------------------------------------------------------
  782. class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message {
  783. public:
  784. EnumDescriptorProto();
  785. virtual ~EnumDescriptorProto();
  786. EnumDescriptorProto(const EnumDescriptorProto& from);
  787. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  788. CopyFrom(from);
  789. return *this;
  790. }
  791. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  792. return _unknown_fields_;
  793. }
  794. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  795. return &_unknown_fields_;
  796. }
  797. static const ::google::protobuf::Descriptor* descriptor();
  798. static const EnumDescriptorProto& default_instance();
  799. void Swap(EnumDescriptorProto* other);
  800. // implements Message ----------------------------------------------
  801. EnumDescriptorProto* New() const;
  802. void CopyFrom(const ::google::protobuf::Message& from);
  803. void MergeFrom(const ::google::protobuf::Message& from);
  804. void CopyFrom(const EnumDescriptorProto& from);
  805. void MergeFrom(const EnumDescriptorProto& from);
  806. void Clear();
  807. bool IsInitialized() const;
  808. int ByteSize() const;
  809. bool MergePartialFromCodedStream(
  810. ::google::protobuf::io::CodedInputStream* input);
  811. void SerializeWithCachedSizes(
  812. ::google::protobuf::io::CodedOutputStream* output) const;
  813. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  814. int GetCachedSize() const { return _cached_size_; }
  815. private:
  816. void SharedCtor();
  817. void SharedDtor();
  818. void SetCachedSize(int size) const;
  819. public:
  820. ::google::protobuf::Metadata GetMetadata() const;
  821. // nested types ----------------------------------------------------
  822. // accessors -------------------------------------------------------
  823. // optional string name = 1;
  824. inline bool has_name() const;
  825. inline void clear_name();
  826. static const int kNameFieldNumber = 1;
  827. inline const ::std::string& name() const;
  828. inline void set_name(const ::std::string& value);
  829. inline void set_name(const char* value);
  830. inline void set_name(const char* value, size_t size);
  831. inline ::std::string* mutable_name();
  832. inline ::std::string* release_name();
  833. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  834. inline int value_size() const;
  835. inline void clear_value();
  836. static const int kValueFieldNumber = 2;
  837. inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
  838. inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
  839. inline ::google::protobuf::EnumValueDescriptorProto* add_value();
  840. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  841. value() const;
  842. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  843. mutable_value();
  844. // optional .google.protobuf.EnumOptions options = 3;
  845. inline bool has_options() const;
  846. inline void clear_options();
  847. static const int kOptionsFieldNumber = 3;
  848. inline const ::google::protobuf::EnumOptions& options() const;
  849. inline ::google::protobuf::EnumOptions* mutable_options();
  850. inline ::google::protobuf::EnumOptions* release_options();
  851. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  852. private:
  853. inline void set_has_name();
  854. inline void clear_has_name();
  855. inline void set_has_options();
  856. inline void clear_has_options();
  857. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  858. ::std::string* name_;
  859. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
  860. ::google::protobuf::EnumOptions* options_;
  861. mutable int _cached_size_;
  862. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  863. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  864. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  865. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  866. void InitAsDefaultInstance();
  867. static EnumDescriptorProto* default_instance_;
  868. };
  869. // -------------------------------------------------------------------
  870. class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message {
  871. public:
  872. EnumValueDescriptorProto();
  873. virtual ~EnumValueDescriptorProto();
  874. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  875. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  876. CopyFrom(from);
  877. return *this;
  878. }
  879. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  880. return _unknown_fields_;
  881. }
  882. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  883. return &_unknown_fields_;
  884. }
  885. static const ::google::protobuf::Descriptor* descriptor();
  886. static const EnumValueDescriptorProto& default_instance();
  887. void Swap(EnumValueDescriptorProto* other);
  888. // implements Message ----------------------------------------------
  889. EnumValueDescriptorProto* New() const;
  890. void CopyFrom(const ::google::protobuf::Message& from);
  891. void MergeFrom(const ::google::protobuf::Message& from);
  892. void CopyFrom(const EnumValueDescriptorProto& from);
  893. void MergeFrom(const EnumValueDescriptorProto& from);
  894. void Clear();
  895. bool IsInitialized() const;
  896. int ByteSize() const;
  897. bool MergePartialFromCodedStream(
  898. ::google::protobuf::io::CodedInputStream* input);
  899. void SerializeWithCachedSizes(
  900. ::google::protobuf::io::CodedOutputStream* output) const;
  901. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  902. int GetCachedSize() const { return _cached_size_; }
  903. private:
  904. void SharedCtor();
  905. void SharedDtor();
  906. void SetCachedSize(int size) const;
  907. public:
  908. ::google::protobuf::Metadata GetMetadata() const;
  909. // nested types ----------------------------------------------------
  910. // accessors -------------------------------------------------------
  911. // optional string name = 1;
  912. inline bool has_name() const;
  913. inline void clear_name();
  914. static const int kNameFieldNumber = 1;
  915. inline const ::std::string& name() const;
  916. inline void set_name(const ::std::string& value);
  917. inline void set_name(const char* value);
  918. inline void set_name(const char* value, size_t size);
  919. inline ::std::string* mutable_name();
  920. inline ::std::string* release_name();
  921. // optional int32 number = 2;
  922. inline bool has_number() const;
  923. inline void clear_number();
  924. static const int kNumberFieldNumber = 2;
  925. inline ::google::protobuf::int32 number() const;
  926. inline void set_number(::google::protobuf::int32 value);
  927. // optional .google.protobuf.EnumValueOptions options = 3;
  928. inline bool has_options() const;
  929. inline void clear_options();
  930. static const int kOptionsFieldNumber = 3;
  931. inline const ::google::protobuf::EnumValueOptions& options() const;
  932. inline ::google::protobuf::EnumValueOptions* mutable_options();
  933. inline ::google::protobuf::EnumValueOptions* release_options();
  934. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  935. private:
  936. inline void set_has_name();
  937. inline void clear_has_name();
  938. inline void set_has_number();
  939. inline void clear_has_number();
  940. inline void set_has_options();
  941. inline void clear_has_options();
  942. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  943. ::std::string* name_;
  944. ::google::protobuf::EnumValueOptions* options_;
  945. ::google::protobuf::int32 number_;
  946. mutable int _cached_size_;
  947. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  948. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  949. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  950. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  951. void InitAsDefaultInstance();
  952. static EnumValueDescriptorProto* default_instance_;
  953. };
  954. // -------------------------------------------------------------------
  955. class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message {
  956. public:
  957. ServiceDescriptorProto();
  958. virtual ~ServiceDescriptorProto();
  959. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  960. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  961. CopyFrom(from);
  962. return *this;
  963. }
  964. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  965. return _unknown_fields_;
  966. }
  967. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  968. return &_unknown_fields_;
  969. }
  970. static const ::google::protobuf::Descriptor* descriptor();
  971. static const ServiceDescriptorProto& default_instance();
  972. void Swap(ServiceDescriptorProto* other);
  973. // implements Message ----------------------------------------------
  974. ServiceDescriptorProto* New() const;
  975. void CopyFrom(const ::google::protobuf::Message& from);
  976. void MergeFrom(const ::google::protobuf::Message& from);
  977. void CopyFrom(const ServiceDescriptorProto& from);
  978. void MergeFrom(const ServiceDescriptorProto& from);
  979. void Clear();
  980. bool IsInitialized() const;
  981. int ByteSize() const;
  982. bool MergePartialFromCodedStream(
  983. ::google::protobuf::io::CodedInputStream* input);
  984. void SerializeWithCachedSizes(
  985. ::google::protobuf::io::CodedOutputStream* output) const;
  986. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  987. int GetCachedSize() const { return _cached_size_; }
  988. private:
  989. void SharedCtor();
  990. void SharedDtor();
  991. void SetCachedSize(int size) const;
  992. public:
  993. ::google::protobuf::Metadata GetMetadata() const;
  994. // nested types ----------------------------------------------------
  995. // accessors -------------------------------------------------------
  996. // optional string name = 1;
  997. inline bool has_name() const;
  998. inline void clear_name();
  999. static const int kNameFieldNumber = 1;
  1000. inline const ::std::string& name() const;
  1001. inline void set_name(const ::std::string& value);
  1002. inline void set_name(const char* value);
  1003. inline void set_name(const char* value, size_t size);
  1004. inline ::std::string* mutable_name();
  1005. inline ::std::string* release_name();
  1006. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  1007. inline int method_size() const;
  1008. inline void clear_method();
  1009. static const int kMethodFieldNumber = 2;
  1010. inline const ::google::protobuf::MethodDescriptorProto& method(int index) const;
  1011. inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
  1012. inline ::google::protobuf::MethodDescriptorProto* add_method();
  1013. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  1014. method() const;
  1015. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  1016. mutable_method();
  1017. // optional .google.protobuf.ServiceOptions options = 3;
  1018. inline bool has_options() const;
  1019. inline void clear_options();
  1020. static const int kOptionsFieldNumber = 3;
  1021. inline const ::google::protobuf::ServiceOptions& options() const;
  1022. inline ::google::protobuf::ServiceOptions* mutable_options();
  1023. inline ::google::protobuf::ServiceOptions* release_options();
  1024. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  1025. private:
  1026. inline void set_has_name();
  1027. inline void clear_has_name();
  1028. inline void set_has_options();
  1029. inline void clear_has_options();
  1030. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1031. ::std::string* name_;
  1032. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
  1033. ::google::protobuf::ServiceOptions* options_;
  1034. mutable int _cached_size_;
  1035. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  1036. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1037. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1038. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1039. void InitAsDefaultInstance();
  1040. static ServiceDescriptorProto* default_instance_;
  1041. };
  1042. // -------------------------------------------------------------------
  1043. class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message {
  1044. public:
  1045. MethodDescriptorProto();
  1046. virtual ~MethodDescriptorProto();
  1047. MethodDescriptorProto(const MethodDescriptorProto& from);
  1048. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  1049. CopyFrom(from);
  1050. return *this;
  1051. }
  1052. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1053. return _unknown_fields_;
  1054. }
  1055. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1056. return &_unknown_fields_;
  1057. }
  1058. static const ::google::protobuf::Descriptor* descriptor();
  1059. static const MethodDescriptorProto& default_instance();
  1060. void Swap(MethodDescriptorProto* other);
  1061. // implements Message ----------------------------------------------
  1062. MethodDescriptorProto* New() const;
  1063. void CopyFrom(const ::google::protobuf::Message& from);
  1064. void MergeFrom(const ::google::protobuf::Message& from);
  1065. void CopyFrom(const MethodDescriptorProto& from);
  1066. void MergeFrom(const MethodDescriptorProto& from);
  1067. void Clear();
  1068. bool IsInitialized() const;
  1069. int ByteSize() const;
  1070. bool MergePartialFromCodedStream(
  1071. ::google::protobuf::io::CodedInputStream* input);
  1072. void SerializeWithCachedSizes(
  1073. ::google::protobuf::io::CodedOutputStream* output) const;
  1074. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1075. int GetCachedSize() const { return _cached_size_; }
  1076. private:
  1077. void SharedCtor();
  1078. void SharedDtor();
  1079. void SetCachedSize(int size) const;
  1080. public:
  1081. ::google::protobuf::Metadata GetMetadata() const;
  1082. // nested types ----------------------------------------------------
  1083. // accessors -------------------------------------------------------
  1084. // optional string name = 1;
  1085. inline bool has_name() const;
  1086. inline void clear_name();
  1087. static const int kNameFieldNumber = 1;
  1088. inline const ::std::string& name() const;
  1089. inline void set_name(const ::std::string& value);
  1090. inline void set_name(const char* value);
  1091. inline void set_name(const char* value, size_t size);
  1092. inline ::std::string* mutable_name();
  1093. inline ::std::string* release_name();
  1094. // optional string input_type = 2;
  1095. inline bool has_input_type() const;
  1096. inline void clear_input_type();
  1097. static const int kInputTypeFieldNumber = 2;
  1098. inline const ::std::string& input_type() const;
  1099. inline void set_input_type(const ::std::string& value);
  1100. inline void set_input_type(const char* value);
  1101. inline void set_input_type(const char* value, size_t size);
  1102. inline ::std::string* mutable_input_type();
  1103. inline ::std::string* release_input_type();
  1104. // optional string output_type = 3;
  1105. inline bool has_output_type() const;
  1106. inline void clear_output_type();
  1107. static const int kOutputTypeFieldNumber = 3;
  1108. inline const ::std::string& output_type() const;
  1109. inline void set_output_type(const ::std::string& value);
  1110. inline void set_output_type(const char* value);
  1111. inline void set_output_type(const char* value, size_t size);
  1112. inline ::std::string* mutable_output_type();
  1113. inline ::std::string* release_output_type();
  1114. // optional .google.protobuf.MethodOptions options = 4;
  1115. inline bool has_options() const;
  1116. inline void clear_options();
  1117. static const int kOptionsFieldNumber = 4;
  1118. inline const ::google::protobuf::MethodOptions& options() const;
  1119. inline ::google::protobuf::MethodOptions* mutable_options();
  1120. inline ::google::protobuf::MethodOptions* release_options();
  1121. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  1122. private:
  1123. inline void set_has_name();
  1124. inline void clear_has_name();
  1125. inline void set_has_input_type();
  1126. inline void clear_has_input_type();
  1127. inline void set_has_output_type();
  1128. inline void clear_has_output_type();
  1129. inline void set_has_options();
  1130. inline void clear_has_options();
  1131. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1132. ::std::string* name_;
  1133. ::std::string* input_type_;
  1134. ::std::string* output_type_;
  1135. ::google::protobuf::MethodOptions* options_;
  1136. mutable int _cached_size_;
  1137. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  1138. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1139. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1140. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1141. void InitAsDefaultInstance();
  1142. static MethodDescriptorProto* default_instance_;
  1143. };
  1144. // -------------------------------------------------------------------
  1145. class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
  1146. public:
  1147. FileOptions();
  1148. virtual ~FileOptions();
  1149. FileOptions(const FileOptions& from);
  1150. inline FileOptions& operator=(const FileOptions& from) {
  1151. CopyFrom(from);
  1152. return *this;
  1153. }
  1154. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1155. return _unknown_fields_;
  1156. }
  1157. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1158. return &_unknown_fields_;
  1159. }
  1160. static const ::google::protobuf::Descriptor* descriptor();
  1161. static const FileOptions& default_instance();
  1162. void Swap(FileOptions* other);
  1163. // implements Message ----------------------------------------------
  1164. FileOptions* New() const;
  1165. void CopyFrom(const ::google::protobuf::Message& from);
  1166. void MergeFrom(const ::google::protobuf::Message& from);
  1167. void CopyFrom(const FileOptions& from);
  1168. void MergeFrom(const FileOptions& from);
  1169. void Clear();
  1170. bool IsInitialized() const;
  1171. int ByteSize() const;
  1172. bool MergePartialFromCodedStream(
  1173. ::google::protobuf::io::CodedInputStream* input);
  1174. void SerializeWithCachedSizes(
  1175. ::google::protobuf::io::CodedOutputStream* output) const;
  1176. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1177. int GetCachedSize() const { return _cached_size_; }
  1178. private:
  1179. void SharedCtor();
  1180. void SharedDtor();
  1181. void SetCachedSize(int size) const;
  1182. public:
  1183. ::google::protobuf::Metadata GetMetadata() const;
  1184. // nested types ----------------------------------------------------
  1185. typedef FileOptions_OptimizeMode OptimizeMode;
  1186. static const OptimizeMode SPEED = FileOptions_OptimizeMode_SPEED;
  1187. static const OptimizeMode CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE;
  1188. static const OptimizeMode LITE_RUNTIME = FileOptions_OptimizeMode_LITE_RUNTIME;
  1189. static inline bool OptimizeMode_IsValid(int value) {
  1190. return FileOptions_OptimizeMode_IsValid(value);
  1191. }
  1192. static const OptimizeMode OptimizeMode_MIN =
  1193. FileOptions_OptimizeMode_OptimizeMode_MIN;
  1194. static const OptimizeMode OptimizeMode_MAX =
  1195. FileOptions_OptimizeMode_OptimizeMode_MAX;
  1196. static const int OptimizeMode_ARRAYSIZE =
  1197. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  1198. static inline const ::google::protobuf::EnumDescriptor*
  1199. OptimizeMode_descriptor() {
  1200. return FileOptions_OptimizeMode_descriptor();
  1201. }
  1202. static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
  1203. return FileOptions_OptimizeMode_Name(value);
  1204. }
  1205. static inline bool OptimizeMode_Parse(const ::std::string& name,
  1206. OptimizeMode* value) {
  1207. return FileOptions_OptimizeMode_Parse(name, value);
  1208. }
  1209. // accessors -------------------------------------------------------
  1210. // optional string java_package = 1;
  1211. inline bool has_java_package() const;
  1212. inline void clear_java_package();
  1213. static const int kJavaPackageFieldNumber = 1;
  1214. inline const ::std::string& java_package() const;
  1215. inline void set_java_package(const ::std::string& value);
  1216. inline void set_java_package(const char* value);
  1217. inline void set_java_package(const char* value, size_t size);
  1218. inline ::std::string* mutable_java_package();
  1219. inline ::std::string* release_java_package();
  1220. // optional string java_outer_classname = 8;
  1221. inline bool has_java_outer_classname() const;
  1222. inline void clear_java_outer_classname();
  1223. static const int kJavaOuterClassnameFieldNumber = 8;
  1224. inline const ::std::string& java_outer_classname() const;
  1225. inline void set_java_outer_classname(const ::std::string& value);
  1226. inline void set_java_outer_classname(const char* value);
  1227. inline void set_java_outer_classname(const char* value, size_t size);
  1228. inline ::std::string* mutable_java_outer_classname();
  1229. inline ::std::string* release_java_outer_classname();
  1230. // optional bool java_multiple_files = 10 [default = false];
  1231. inline bool has_java_multiple_files() const;
  1232. inline void clear_java_multiple_files();
  1233. static const int kJavaMultipleFilesFieldNumber = 10;
  1234. inline bool java_multiple_files() const;
  1235. inline void set_java_multiple_files(bool value);
  1236. // optional bool retain_unknown_fields = 11 [default = false];
  1237. inline bool has_retain_unknown_fields() const;
  1238. inline void clear_retain_unknown_fields();
  1239. static const int kRetainUnknownFieldsFieldNumber = 11;
  1240. inline bool retain_unknown_fields() const;
  1241. inline void set_retain_unknown_fields(bool value);
  1242. // optional bool java_generate_equals_and_hash = 20 [default = false];
  1243. inline bool has_java_generate_equals_and_hash() const;
  1244. inline void clear_java_generate_equals_and_hash();
  1245. static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
  1246. inline bool java_generate_equals_and_hash() const;
  1247. inline void set_java_generate_equals_and_hash(bool value);
  1248. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  1249. inline bool has_optimize_for() const;
  1250. inline void clear_optimize_for();
  1251. static const int kOptimizeForFieldNumber = 9;
  1252. inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
  1253. inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
  1254. // optional bool cc_generic_services = 16 [default = false];
  1255. inline bool has_cc_generic_services() const;
  1256. inline void clear_cc_generic_services();
  1257. static const int kCcGenericServicesFieldNumber = 16;
  1258. inline bool cc_generic_services() const;
  1259. inline void set_cc_generic_services(bool value);
  1260. // optional bool java_generic_services = 17 [default = false];
  1261. inline bool has_java_generic_services() const;
  1262. inline void clear_java_generic_services();
  1263. static const int kJavaGenericServicesFieldNumber = 17;
  1264. inline bool java_generic_services() const;
  1265. inline void set_java_generic_services(bool value);
  1266. // optional bool py_generic_services = 18 [default = false];
  1267. inline bool has_py_generic_services() const;
  1268. inline void clear_py_generic_services();
  1269. static const int kPyGenericServicesFieldNumber = 18;
  1270. inline bool py_generic_services() const;
  1271. inline void set_py_generic_services(bool value);
  1272. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1273. inline int uninterpreted_option_size() const;
  1274. inline void clear_uninterpreted_option();
  1275. static const int kUninterpretedOptionFieldNumber = 999;
  1276. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1277. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1278. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1279. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1280. uninterpreted_option() const;
  1281. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1282. mutable_uninterpreted_option();
  1283. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
  1284. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  1285. private:
  1286. inline void set_has_java_package();
  1287. inline void clear_has_java_package();
  1288. inline void set_has_java_outer_classname();
  1289. inline void clear_has_java_outer_classname();
  1290. inline void set_has_java_multiple_files();
  1291. inline void clear_has_java_multiple_files();
  1292. inline void set_has_retain_unknown_fields();
  1293. inline void clear_has_retain_unknown_fields();
  1294. inline void set_has_java_generate_equals_and_hash();
  1295. inline void clear_has_java_generate_equals_and_hash();
  1296. inline void set_has_optimize_for();
  1297. inline void clear_has_optimize_for();
  1298. inline void set_has_cc_generic_services();
  1299. inline void clear_has_cc_generic_services();
  1300. inline void set_has_java_generic_services();
  1301. inline void clear_has_java_generic_services();
  1302. inline void set_has_py_generic_services();
  1303. inline void clear_has_py_generic_services();
  1304. ::google::protobuf::internal::ExtensionSet _extensions_;
  1305. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1306. ::std::string* java_package_;
  1307. ::std::string* java_outer_classname_;
  1308. bool java_multiple_files_;
  1309. bool retain_unknown_fields_;
  1310. bool java_generate_equals_and_hash_;
  1311. bool cc_generic_services_;
  1312. int optimize_for_;
  1313. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1314. bool java_generic_services_;
  1315. bool py_generic_services_;
  1316. mutable int _cached_size_;
  1317. ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32];
  1318. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1319. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1320. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1321. void InitAsDefaultInstance();
  1322. static FileOptions* default_instance_;
  1323. };
  1324. // -------------------------------------------------------------------
  1325. class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message {
  1326. public:
  1327. MessageOptions();
  1328. virtual ~MessageOptions();
  1329. MessageOptions(const MessageOptions& from);
  1330. inline MessageOptions& operator=(const MessageOptions& from) {
  1331. CopyFrom(from);
  1332. return *this;
  1333. }
  1334. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1335. return _unknown_fields_;
  1336. }
  1337. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1338. return &_unknown_fields_;
  1339. }
  1340. static const ::google::protobuf::Descriptor* descriptor();
  1341. static const MessageOptions& default_instance();
  1342. void Swap(MessageOptions* other);
  1343. // implements Message ----------------------------------------------
  1344. MessageOptions* New() const;
  1345. void CopyFrom(const ::google::protobuf::Message& from);
  1346. void MergeFrom(const ::google::protobuf::Message& from);
  1347. void CopyFrom(const MessageOptions& from);
  1348. void MergeFrom(const MessageOptions& from);
  1349. void Clear();
  1350. bool IsInitialized() const;
  1351. int ByteSize() const;
  1352. bool MergePartialFromCodedStream(
  1353. ::google::protobuf::io::CodedInputStream* input);
  1354. void SerializeWithCachedSizes(
  1355. ::google::protobuf::io::CodedOutputStream* output) const;
  1356. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1357. int GetCachedSize() const { return _cached_size_; }
  1358. private:
  1359. void SharedCtor();
  1360. void SharedDtor();
  1361. void SetCachedSize(int size) const;
  1362. public:
  1363. ::google::protobuf::Metadata GetMetadata() const;
  1364. // nested types ----------------------------------------------------
  1365. // accessors -------------------------------------------------------
  1366. // optional bool message_set_wire_format = 1 [default = false];
  1367. inline bool has_message_set_wire_format() const;
  1368. inline void clear_message_set_wire_format();
  1369. static const int kMessageSetWireFormatFieldNumber = 1;
  1370. inline bool message_set_wire_format() const;
  1371. inline void set_message_set_wire_format(bool value);
  1372. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  1373. inline bool has_no_standard_descriptor_accessor() const;
  1374. inline void clear_no_standard_descriptor_accessor();
  1375. static const int kNoStandardDescriptorAccessorFieldNumber = 2;
  1376. inline bool no_standard_descriptor_accessor() const;
  1377. inline void set_no_standard_descriptor_accessor(bool value);
  1378. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1379. inline int uninterpreted_option_size() const;
  1380. inline void clear_uninterpreted_option();
  1381. static const int kUninterpretedOptionFieldNumber = 999;
  1382. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1383. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1384. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1385. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1386. uninterpreted_option() const;
  1387. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1388. mutable_uninterpreted_option();
  1389. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
  1390. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  1391. private:
  1392. inline void set_has_message_set_wire_format();
  1393. inline void clear_has_message_set_wire_format();
  1394. inline void set_has_no_standard_descriptor_accessor();
  1395. inline void clear_has_no_standard_descriptor_accessor();
  1396. ::google::protobuf::internal::ExtensionSet _extensions_;
  1397. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1398. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1399. bool message_set_wire_format_;
  1400. bool no_standard_descriptor_accessor_;
  1401. mutable int _cached_size_;
  1402. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  1403. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1404. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1405. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1406. void InitAsDefaultInstance();
  1407. static MessageOptions* default_instance_;
  1408. };
  1409. // -------------------------------------------------------------------
  1410. class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message {
  1411. public:
  1412. FieldOptions();
  1413. virtual ~FieldOptions();
  1414. FieldOptions(const FieldOptions& from);
  1415. inline FieldOptions& operator=(const FieldOptions& from) {
  1416. CopyFrom(from);
  1417. return *this;
  1418. }
  1419. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1420. return _unknown_fields_;
  1421. }
  1422. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1423. return &_unknown_fields_;
  1424. }
  1425. static const ::google::protobuf::Descriptor* descriptor();
  1426. static const FieldOptions& default_instance();
  1427. void Swap(FieldOptions* other);
  1428. // implements Message ----------------------------------------------
  1429. FieldOptions* New() const;
  1430. void CopyFrom(const ::google::protobuf::Message& from);
  1431. void MergeFrom(const ::google::protobuf::Message& from);
  1432. void CopyFrom(const FieldOptions& from);
  1433. void MergeFrom(const FieldOptions& from);
  1434. void Clear();
  1435. bool IsInitialized() const;
  1436. int ByteSize() const;
  1437. bool MergePartialFromCodedStream(
  1438. ::google::protobuf::io::CodedInputStream* input);
  1439. void SerializeWithCachedSizes(
  1440. ::google::protobuf::io::CodedOutputStream* output) const;
  1441. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1442. int GetCachedSize() const { return _cached_size_; }
  1443. private:
  1444. void SharedCtor();
  1445. void SharedDtor();
  1446. void SetCachedSize(int size) const;
  1447. public:
  1448. ::google::protobuf::Metadata GetMetadata() const;
  1449. // nested types ----------------------------------------------------
  1450. typedef FieldOptions_CType CType;
  1451. static const CType STRING = FieldOptions_CType_STRING;
  1452. static const CType CORD = FieldOptions_CType_CORD;
  1453. static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE;
  1454. static inline bool CType_IsValid(int value) {
  1455. return FieldOptions_CType_IsValid(value);
  1456. }
  1457. static const CType CType_MIN =
  1458. FieldOptions_CType_CType_MIN;
  1459. static const CType CType_MAX =
  1460. FieldOptions_CType_CType_MAX;
  1461. static const int CType_ARRAYSIZE =
  1462. FieldOptions_CType_CType_ARRAYSIZE;
  1463. static inline const ::google::protobuf::EnumDescriptor*
  1464. CType_descriptor() {
  1465. return FieldOptions_CType_descriptor();
  1466. }
  1467. static inline const ::std::string& CType_Name(CType value) {
  1468. return FieldOptions_CType_Name(value);
  1469. }
  1470. static inline bool CType_Parse(const ::std::string& name,
  1471. CType* value) {
  1472. return FieldOptions_CType_Parse(name, value);
  1473. }
  1474. // accessors -------------------------------------------------------
  1475. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  1476. inline bool has_ctype() const;
  1477. inline void clear_ctype();
  1478. static const int kCtypeFieldNumber = 1;
  1479. inline ::google::protobuf::FieldOptions_CType ctype() const;
  1480. inline void set_ctype(::google::protobuf::FieldOptions_CType value);
  1481. // optional bool packed = 2;
  1482. inline bool has_packed() const;
  1483. inline void clear_packed();
  1484. static const int kPackedFieldNumber = 2;
  1485. inline bool packed() const;
  1486. inline void set_packed(bool value);
  1487. // optional bool deprecated = 3 [default = false];
  1488. inline bool has_deprecated() const;
  1489. inline void clear_deprecated();
  1490. static const int kDeprecatedFieldNumber = 3;
  1491. inline bool deprecated() const;
  1492. inline void set_deprecated(bool value);
  1493. // optional string experimental_map_key = 9;
  1494. inline bool has_experimental_map_key() const;
  1495. inline void clear_experimental_map_key();
  1496. static const int kExperimentalMapKeyFieldNumber = 9;
  1497. inline const ::std::string& experimental_map_key() const;
  1498. inline void set_experimental_map_key(const ::std::string& value);
  1499. inline void set_experimental_map_key(const char* value);
  1500. inline void set_experimental_map_key(const char* value, size_t size);
  1501. inline ::std::string* mutable_experimental_map_key();
  1502. inline ::std::string* release_experimental_map_key();
  1503. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1504. inline int uninterpreted_option_size() const;
  1505. inline void clear_uninterpreted_option();
  1506. static const int kUninterpretedOptionFieldNumber = 999;
  1507. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1508. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1509. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1510. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1511. uninterpreted_option() const;
  1512. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1513. mutable_uninterpreted_option();
  1514. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
  1515. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  1516. private:
  1517. inline void set_has_ctype();
  1518. inline void clear_has_ctype();
  1519. inline void set_has_packed();
  1520. inline void clear_has_packed();
  1521. inline void set_has_deprecated();
  1522. inline void clear_has_deprecated();
  1523. inline void set_has_experimental_map_key();
  1524. inline void clear_has_experimental_map_key();
  1525. ::google::protobuf::internal::ExtensionSet _extensions_;
  1526. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1527. int ctype_;
  1528. bool packed_;
  1529. bool deprecated_;
  1530. ::std::string* experimental_map_key_;
  1531. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1532. mutable int _cached_size_;
  1533. ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  1534. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1535. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1536. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1537. void InitAsDefaultInstance();
  1538. static FieldOptions* default_instance_;
  1539. };
  1540. // -------------------------------------------------------------------
  1541. class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message {
  1542. public:
  1543. EnumOptions();
  1544. virtual ~EnumOptions();
  1545. EnumOptions(const EnumOptions& from);
  1546. inline EnumOptions& operator=(const EnumOptions& from) {
  1547. CopyFrom(from);
  1548. return *this;
  1549. }
  1550. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1551. return _unknown_fields_;
  1552. }
  1553. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1554. return &_unknown_fields_;
  1555. }
  1556. static const ::google::protobuf::Descriptor* descriptor();
  1557. static const EnumOptions& default_instance();
  1558. void Swap(EnumOptions* other);
  1559. // implements Message ----------------------------------------------
  1560. EnumOptions* New() const;
  1561. void CopyFrom(const ::google::protobuf::Message& from);
  1562. void MergeFrom(const ::google::protobuf::Message& from);
  1563. void CopyFrom(const EnumOptions& from);
  1564. void MergeFrom(const EnumOptions& from);
  1565. void Clear();
  1566. bool IsInitialized() const;
  1567. int ByteSize() const;
  1568. bool MergePartialFromCodedStream(
  1569. ::google::protobuf::io::CodedInputStream* input);
  1570. void SerializeWithCachedSizes(
  1571. ::google::protobuf::io::CodedOutputStream* output) const;
  1572. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1573. int GetCachedSize() const { return _cached_size_; }
  1574. private:
  1575. void SharedCtor();
  1576. void SharedDtor();
  1577. void SetCachedSize(int size) const;
  1578. public:
  1579. ::google::protobuf::Metadata GetMetadata() const;
  1580. // nested types ----------------------------------------------------
  1581. // accessors -------------------------------------------------------
  1582. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1583. inline int uninterpreted_option_size() const;
  1584. inline void clear_uninterpreted_option();
  1585. static const int kUninterpretedOptionFieldNumber = 999;
  1586. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1587. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1588. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1589. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1590. uninterpreted_option() const;
  1591. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1592. mutable_uninterpreted_option();
  1593. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
  1594. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  1595. private:
  1596. ::google::protobuf::internal::ExtensionSet _extensions_;
  1597. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1598. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1599. mutable int _cached_size_;
  1600. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  1601. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1602. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1603. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1604. void InitAsDefaultInstance();
  1605. static EnumOptions* default_instance_;
  1606. };
  1607. // -------------------------------------------------------------------
  1608. class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message {
  1609. public:
  1610. EnumValueOptions();
  1611. virtual ~EnumValueOptions();
  1612. EnumValueOptions(const EnumValueOptions& from);
  1613. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  1614. CopyFrom(from);
  1615. return *this;
  1616. }
  1617. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1618. return _unknown_fields_;
  1619. }
  1620. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1621. return &_unknown_fields_;
  1622. }
  1623. static const ::google::protobuf::Descriptor* descriptor();
  1624. static const EnumValueOptions& default_instance();
  1625. void Swap(EnumValueOptions* other);
  1626. // implements Message ----------------------------------------------
  1627. EnumValueOptions* New() const;
  1628. void CopyFrom(const ::google::protobuf::Message& from);
  1629. void MergeFrom(const ::google::protobuf::Message& from);
  1630. void CopyFrom(const EnumValueOptions& from);
  1631. void MergeFrom(const EnumValueOptions& from);
  1632. void Clear();
  1633. bool IsInitialized() const;
  1634. int ByteSize() const;
  1635. bool MergePartialFromCodedStream(
  1636. ::google::protobuf::io::CodedInputStream* input);
  1637. void SerializeWithCachedSizes(
  1638. ::google::protobuf::io::CodedOutputStream* output) const;
  1639. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1640. int GetCachedSize() const { return _cached_size_; }
  1641. private:
  1642. void SharedCtor();
  1643. void SharedDtor();
  1644. void SetCachedSize(int size) const;
  1645. public:
  1646. ::google::protobuf::Metadata GetMetadata() const;
  1647. // nested types ----------------------------------------------------
  1648. // accessors -------------------------------------------------------
  1649. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1650. inline int uninterpreted_option_size() const;
  1651. inline void clear_uninterpreted_option();
  1652. static const int kUninterpretedOptionFieldNumber = 999;
  1653. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1654. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1655. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1656. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1657. uninterpreted_option() const;
  1658. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1659. mutable_uninterpreted_option();
  1660. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
  1661. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  1662. private:
  1663. ::google::protobuf::internal::ExtensionSet _extensions_;
  1664. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1665. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1666. mutable int _cached_size_;
  1667. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  1668. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1669. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1670. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1671. void InitAsDefaultInstance();
  1672. static EnumValueOptions* default_instance_;
  1673. };
  1674. // -------------------------------------------------------------------
  1675. class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message {
  1676. public:
  1677. ServiceOptions();
  1678. virtual ~ServiceOptions();
  1679. ServiceOptions(const ServiceOptions& from);
  1680. inline ServiceOptions& operator=(const ServiceOptions& from) {
  1681. CopyFrom(from);
  1682. return *this;
  1683. }
  1684. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1685. return _unknown_fields_;
  1686. }
  1687. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1688. return &_unknown_fields_;
  1689. }
  1690. static const ::google::protobuf::Descriptor* descriptor();
  1691. static const ServiceOptions& default_instance();
  1692. void Swap(ServiceOptions* other);
  1693. // implements Message ----------------------------------------------
  1694. ServiceOptions* New() const;
  1695. void CopyFrom(const ::google::protobuf::Message& from);
  1696. void MergeFrom(const ::google::protobuf::Message& from);
  1697. void CopyFrom(const ServiceOptions& from);
  1698. void MergeFrom(const ServiceOptions& from);
  1699. void Clear();
  1700. bool IsInitialized() const;
  1701. int ByteSize() const;
  1702. bool MergePartialFromCodedStream(
  1703. ::google::protobuf::io::CodedInputStream* input);
  1704. void SerializeWithCachedSizes(
  1705. ::google::protobuf::io::CodedOutputStream* output) const;
  1706. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1707. int GetCachedSize() const { return _cached_size_; }
  1708. private:
  1709. void SharedCtor();
  1710. void SharedDtor();
  1711. void SetCachedSize(int size) const;
  1712. public:
  1713. ::google::protobuf::Metadata GetMetadata() const;
  1714. // nested types ----------------------------------------------------
  1715. // accessors -------------------------------------------------------
  1716. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1717. inline int uninterpreted_option_size() const;
  1718. inline void clear_uninterpreted_option();
  1719. static const int kUninterpretedOptionFieldNumber = 999;
  1720. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1721. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1722. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1723. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1724. uninterpreted_option() const;
  1725. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1726. mutable_uninterpreted_option();
  1727. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
  1728. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  1729. private:
  1730. ::google::protobuf::internal::ExtensionSet _extensions_;
  1731. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1732. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1733. mutable int _cached_size_;
  1734. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  1735. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1736. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1737. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1738. void InitAsDefaultInstance();
  1739. static ServiceOptions* default_instance_;
  1740. };
  1741. // -------------------------------------------------------------------
  1742. class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message {
  1743. public:
  1744. MethodOptions();
  1745. virtual ~MethodOptions();
  1746. MethodOptions(const MethodOptions& from);
  1747. inline MethodOptions& operator=(const MethodOptions& from) {
  1748. CopyFrom(from);
  1749. return *this;
  1750. }
  1751. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1752. return _unknown_fields_;
  1753. }
  1754. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1755. return &_unknown_fields_;
  1756. }
  1757. static const ::google::protobuf::Descriptor* descriptor();
  1758. static const MethodOptions& default_instance();
  1759. void Swap(MethodOptions* other);
  1760. // implements Message ----------------------------------------------
  1761. MethodOptions* New() const;
  1762. void CopyFrom(const ::google::protobuf::Message& from);
  1763. void MergeFrom(const ::google::protobuf::Message& from);
  1764. void CopyFrom(const MethodOptions& from);
  1765. void MergeFrom(const MethodOptions& from);
  1766. void Clear();
  1767. bool IsInitialized() const;
  1768. int ByteSize() const;
  1769. bool MergePartialFromCodedStream(
  1770. ::google::protobuf::io::CodedInputStream* input);
  1771. void SerializeWithCachedSizes(
  1772. ::google::protobuf::io::CodedOutputStream* output) const;
  1773. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1774. int GetCachedSize() const { return _cached_size_; }
  1775. private:
  1776. void SharedCtor();
  1777. void SharedDtor();
  1778. void SetCachedSize(int size) const;
  1779. public:
  1780. ::google::protobuf::Metadata GetMetadata() const;
  1781. // nested types ----------------------------------------------------
  1782. // accessors -------------------------------------------------------
  1783. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1784. inline int uninterpreted_option_size() const;
  1785. inline void clear_uninterpreted_option();
  1786. static const int kUninterpretedOptionFieldNumber = 999;
  1787. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1788. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1789. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1790. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1791. uninterpreted_option() const;
  1792. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1793. mutable_uninterpreted_option();
  1794. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
  1795. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  1796. private:
  1797. ::google::protobuf::internal::ExtensionSet _extensions_;
  1798. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1799. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1800. mutable int _cached_size_;
  1801. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  1802. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1803. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1804. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1805. void InitAsDefaultInstance();
  1806. static MethodOptions* default_instance_;
  1807. };
  1808. // -------------------------------------------------------------------
  1809. class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message {
  1810. public:
  1811. UninterpretedOption_NamePart();
  1812. virtual ~UninterpretedOption_NamePart();
  1813. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  1814. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  1815. CopyFrom(from);
  1816. return *this;
  1817. }
  1818. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1819. return _unknown_fields_;
  1820. }
  1821. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1822. return &_unknown_fields_;
  1823. }
  1824. static const ::google::protobuf::Descriptor* descriptor();
  1825. static const UninterpretedOption_NamePart& default_instance();
  1826. void Swap(UninterpretedOption_NamePart* other);
  1827. // implements Message ----------------------------------------------
  1828. UninterpretedOption_NamePart* New() const;
  1829. void CopyFrom(const ::google::protobuf::Message& from);
  1830. void MergeFrom(const ::google::protobuf::Message& from);
  1831. void CopyFrom(const UninterpretedOption_NamePart& from);
  1832. void MergeFrom(const UninterpretedOption_NamePart& from);
  1833. void Clear();
  1834. bool IsInitialized() const;
  1835. int ByteSize() const;
  1836. bool MergePartialFromCodedStream(
  1837. ::google::protobuf::io::CodedInputStream* input);
  1838. void SerializeWithCachedSizes(
  1839. ::google::protobuf::io::CodedOutputStream* output) const;
  1840. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1841. int GetCachedSize() const { return _cached_size_; }
  1842. private:
  1843. void SharedCtor();
  1844. void SharedDtor();
  1845. void SetCachedSize(int size) const;
  1846. public:
  1847. ::google::protobuf::Metadata GetMetadata() const;
  1848. // nested types ----------------------------------------------------
  1849. // accessors -------------------------------------------------------
  1850. // required string name_part = 1;
  1851. inline bool has_name_part() const;
  1852. inline void clear_name_part();
  1853. static const int kNamePartFieldNumber = 1;
  1854. inline const ::std::string& name_part() const;
  1855. inline void set_name_part(const ::std::string& value);
  1856. inline void set_name_part(const char* value);
  1857. inline void set_name_part(const char* value, size_t size);
  1858. inline ::std::string* mutable_name_part();
  1859. inline ::std::string* release_name_part();
  1860. // required bool is_extension = 2;
  1861. inline bool has_is_extension() const;
  1862. inline void clear_is_extension();
  1863. static const int kIsExtensionFieldNumber = 2;
  1864. inline bool is_extension() const;
  1865. inline void set_is_extension(bool value);
  1866. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  1867. private:
  1868. inline void set_has_name_part();
  1869. inline void clear_has_name_part();
  1870. inline void set_has_is_extension();
  1871. inline void clear_has_is_extension();
  1872. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1873. ::std::string* name_part_;
  1874. bool is_extension_;
  1875. mutable int _cached_size_;
  1876. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  1877. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1878. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1879. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1880. void InitAsDefaultInstance();
  1881. static UninterpretedOption_NamePart* default_instance_;
  1882. };
  1883. // -------------------------------------------------------------------
  1884. class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message {
  1885. public:
  1886. UninterpretedOption();
  1887. virtual ~UninterpretedOption();
  1888. UninterpretedOption(const UninterpretedOption& from);
  1889. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  1890. CopyFrom(from);
  1891. return *this;
  1892. }
  1893. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1894. return _unknown_fields_;
  1895. }
  1896. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1897. return &_unknown_fields_;
  1898. }
  1899. static const ::google::protobuf::Descriptor* descriptor();
  1900. static const UninterpretedOption& default_instance();
  1901. void Swap(UninterpretedOption* other);
  1902. // implements Message ----------------------------------------------
  1903. UninterpretedOption* New() const;
  1904. void CopyFrom(const ::google::protobuf::Message& from);
  1905. void MergeFrom(const ::google::protobuf::Message& from);
  1906. void CopyFrom(const UninterpretedOption& from);
  1907. void MergeFrom(const UninterpretedOption& from);
  1908. void Clear();
  1909. bool IsInitialized() const;
  1910. int ByteSize() const;
  1911. bool MergePartialFromCodedStream(
  1912. ::google::protobuf::io::CodedInputStream* input);
  1913. void SerializeWithCachedSizes(
  1914. ::google::protobuf::io::CodedOutputStream* output) const;
  1915. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1916. int GetCachedSize() const { return _cached_size_; }
  1917. private:
  1918. void SharedCtor();
  1919. void SharedDtor();
  1920. void SetCachedSize(int size) const;
  1921. public:
  1922. ::google::protobuf::Metadata GetMetadata() const;
  1923. // nested types ----------------------------------------------------
  1924. typedef UninterpretedOption_NamePart NamePart;
  1925. // accessors -------------------------------------------------------
  1926. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  1927. inline int name_size() const;
  1928. inline void clear_name();
  1929. static const int kNameFieldNumber = 2;
  1930. inline const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
  1931. inline ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
  1932. inline ::google::protobuf::UninterpretedOption_NamePart* add_name();
  1933. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  1934. name() const;
  1935. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  1936. mutable_name();
  1937. // optional string identifier_value = 3;
  1938. inline bool has_identifier_value() const;
  1939. inline void clear_identifier_value();
  1940. static const int kIdentifierValueFieldNumber = 3;
  1941. inline const ::std::string& identifier_value() const;
  1942. inline void set_identifier_value(const ::std::string& value);
  1943. inline void set_identifier_value(const char* value);
  1944. inline void set_identifier_value(const char* value, size_t size);
  1945. inline ::std::string* mutable_identifier_value();
  1946. inline ::std::string* release_identifier_value();
  1947. // optional uint64 positive_int_value = 4;
  1948. inline bool has_positive_int_value() const;
  1949. inline void clear_positive_int_value();
  1950. static const int kPositiveIntValueFieldNumber = 4;
  1951. inline ::google::protobuf::uint64 positive_int_value() const;
  1952. inline void set_positive_int_value(::google::protobuf::uint64 value);
  1953. // optional int64 negative_int_value = 5;
  1954. inline bool has_negative_int_value() const;
  1955. inline void clear_negative_int_value();
  1956. static const int kNegativeIntValueFieldNumber = 5;
  1957. inline ::google::protobuf::int64 negative_int_value() const;
  1958. inline void set_negative_int_value(::google::protobuf::int64 value);
  1959. // optional double double_value = 6;
  1960. inline bool has_double_value() const;
  1961. inline void clear_double_value();
  1962. static const int kDoubleValueFieldNumber = 6;
  1963. inline double double_value() const;
  1964. inline void set_double_value(double value);
  1965. // optional bytes string_value = 7;
  1966. inline bool has_string_value() const;
  1967. inline void clear_string_value();
  1968. static const int kStringValueFieldNumber = 7;
  1969. inline const ::std::string& string_value() const;
  1970. inline void set_string_value(const ::std::string& value);
  1971. inline void set_string_value(const char* value);
  1972. inline void set_string_value(const void* value, size_t size);
  1973. inline ::std::string* mutable_string_value();
  1974. inline ::std::string* release_string_value();
  1975. // optional string aggregate_value = 8;
  1976. inline bool has_aggregate_value() const;
  1977. inline void clear_aggregate_value();
  1978. static const int kAggregateValueFieldNumber = 8;
  1979. inline const ::std::string& aggregate_value() const;
  1980. inline void set_aggregate_value(const ::std::string& value);
  1981. inline void set_aggregate_value(const char* value);
  1982. inline void set_aggregate_value(const char* value, size_t size);
  1983. inline ::std::string* mutable_aggregate_value();
  1984. inline ::std::string* release_aggregate_value();
  1985. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  1986. private:
  1987. inline void set_has_identifier_value();
  1988. inline void clear_has_identifier_value();
  1989. inline void set_has_positive_int_value();
  1990. inline void clear_has_positive_int_value();
  1991. inline void set_has_negative_int_value();
  1992. inline void clear_has_negative_int_value();
  1993. inline void set_has_double_value();
  1994. inline void clear_has_double_value();
  1995. inline void set_has_string_value();
  1996. inline void clear_has_string_value();
  1997. inline void set_has_aggregate_value();
  1998. inline void clear_has_aggregate_value();
  1999. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2000. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
  2001. ::std::string* identifier_value_;
  2002. ::google::protobuf::uint64 positive_int_value_;
  2003. ::google::protobuf::int64 negative_int_value_;
  2004. double double_value_;
  2005. ::std::string* string_value_;
  2006. ::std::string* aggregate_value_;
  2007. mutable int _cached_size_;
  2008. ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  2009. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2010. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2011. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2012. void InitAsDefaultInstance();
  2013. static UninterpretedOption* default_instance_;
  2014. };
  2015. // -------------------------------------------------------------------
  2016. class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message {
  2017. public:
  2018. SourceCodeInfo_Location();
  2019. virtual ~SourceCodeInfo_Location();
  2020. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  2021. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  2022. CopyFrom(from);
  2023. return *this;
  2024. }
  2025. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2026. return _unknown_fields_;
  2027. }
  2028. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2029. return &_unknown_fields_;
  2030. }
  2031. static const ::google::protobuf::Descriptor* descriptor();
  2032. static const SourceCodeInfo_Location& default_instance();
  2033. void Swap(SourceCodeInfo_Location* other);
  2034. // implements Message ----------------------------------------------
  2035. SourceCodeInfo_Location* New() const;
  2036. void CopyFrom(const ::google::protobuf::Message& from);
  2037. void MergeFrom(const ::google::protobuf::Message& from);
  2038. void CopyFrom(const SourceCodeInfo_Location& from);
  2039. void MergeFrom(const SourceCodeInfo_Location& from);
  2040. void Clear();
  2041. bool IsInitialized() const;
  2042. int ByteSize() const;
  2043. bool MergePartialFromCodedStream(
  2044. ::google::protobuf::io::CodedInputStream* input);
  2045. void SerializeWithCachedSizes(
  2046. ::google::protobuf::io::CodedOutputStream* output) const;
  2047. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2048. int GetCachedSize() const { return _cached_size_; }
  2049. private:
  2050. void SharedCtor();
  2051. void SharedDtor();
  2052. void SetCachedSize(int size) const;
  2053. public:
  2054. ::google::protobuf::Metadata GetMetadata() const;
  2055. // nested types ----------------------------------------------------
  2056. // accessors -------------------------------------------------------
  2057. // repeated int32 path = 1 [packed = true];
  2058. inline int path_size() const;
  2059. inline void clear_path();
  2060. static const int kPathFieldNumber = 1;
  2061. inline ::google::protobuf::int32 path(int index) const;
  2062. inline void set_path(int index, ::google::protobuf::int32 value);
  2063. inline void add_path(::google::protobuf::int32 value);
  2064. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2065. path() const;
  2066. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2067. mutable_path();
  2068. // repeated int32 span = 2 [packed = true];
  2069. inline int span_size() const;
  2070. inline void clear_span();
  2071. static const int kSpanFieldNumber = 2;
  2072. inline ::google::protobuf::int32 span(int index) const;
  2073. inline void set_span(int index, ::google::protobuf::int32 value);
  2074. inline void add_span(::google::protobuf::int32 value);
  2075. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2076. span() const;
  2077. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2078. mutable_span();
  2079. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  2080. private:
  2081. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2082. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  2083. mutable int _path_cached_byte_size_;
  2084. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
  2085. mutable int _span_cached_byte_size_;
  2086. mutable int _cached_size_;
  2087. ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
  2088. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2089. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2090. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2091. void InitAsDefaultInstance();
  2092. static SourceCodeInfo_Location* default_instance_;
  2093. };
  2094. // -------------------------------------------------------------------
  2095. class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message {
  2096. public:
  2097. SourceCodeInfo();
  2098. virtual ~SourceCodeInfo();
  2099. SourceCodeInfo(const SourceCodeInfo& from);
  2100. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  2101. CopyFrom(from);
  2102. return *this;
  2103. }
  2104. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2105. return _unknown_fields_;
  2106. }
  2107. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2108. return &_unknown_fields_;
  2109. }
  2110. static const ::google::protobuf::Descriptor* descriptor();
  2111. static const SourceCodeInfo& default_instance();
  2112. void Swap(SourceCodeInfo* other);
  2113. // implements Message ----------------------------------------------
  2114. SourceCodeInfo* New() const;
  2115. void CopyFrom(const ::google::protobuf::Message& from);
  2116. void MergeFrom(const ::google::protobuf::Message& from);
  2117. void CopyFrom(const SourceCodeInfo& from);
  2118. void MergeFrom(const SourceCodeInfo& from);
  2119. void Clear();
  2120. bool IsInitialized() const;
  2121. int ByteSize() const;
  2122. bool MergePartialFromCodedStream(
  2123. ::google::protobuf::io::CodedInputStream* input);
  2124. void SerializeWithCachedSizes(
  2125. ::google::protobuf::io::CodedOutputStream* output) const;
  2126. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2127. int GetCachedSize() const { return _cached_size_; }
  2128. private:
  2129. void SharedCtor();
  2130. void SharedDtor();
  2131. void SetCachedSize(int size) const;
  2132. public:
  2133. ::google::protobuf::Metadata GetMetadata() const;
  2134. // nested types ----------------------------------------------------
  2135. typedef SourceCodeInfo_Location Location;
  2136. // accessors -------------------------------------------------------
  2137. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  2138. inline int location_size() const;
  2139. inline void clear_location();
  2140. static const int kLocationFieldNumber = 1;
  2141. inline const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
  2142. inline ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
  2143. inline ::google::protobuf::SourceCodeInfo_Location* add_location();
  2144. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  2145. location() const;
  2146. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  2147. mutable_location();
  2148. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  2149. private:
  2150. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2151. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
  2152. mutable int _cached_size_;
  2153. ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  2154. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2155. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2156. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2157. void InitAsDefaultInstance();
  2158. static SourceCodeInfo* default_instance_;
  2159. };
  2160. // ===================================================================
  2161. // ===================================================================
  2162. // FileDescriptorSet
  2163. // repeated .google.protobuf.FileDescriptorProto file = 1;
  2164. inline int FileDescriptorSet::file_size() const {
  2165. return file_.size();
  2166. }
  2167. inline void FileDescriptorSet::clear_file() {
  2168. file_.Clear();
  2169. }
  2170. inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  2171. return file_.Get(index);
  2172. }
  2173. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  2174. return file_.Mutable(index);
  2175. }
  2176. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
  2177. return file_.Add();
  2178. }
  2179. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  2180. FileDescriptorSet::file() const {
  2181. return file_;
  2182. }
  2183. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  2184. FileDescriptorSet::mutable_file() {
  2185. return &file_;
  2186. }
  2187. // -------------------------------------------------------------------
  2188. // FileDescriptorProto
  2189. // optional string name = 1;
  2190. inline bool FileDescriptorProto::has_name() const {
  2191. return (_has_bits_[0] & 0x00000001u) != 0;
  2192. }
  2193. inline void FileDescriptorProto::set_has_name() {
  2194. _has_bits_[0] |= 0x00000001u;
  2195. }
  2196. inline void FileDescriptorProto::clear_has_name() {
  2197. _has_bits_[0] &= ~0x00000001u;
  2198. }
  2199. inline void FileDescriptorProto::clear_name() {
  2200. if (name_ != &::google::protobuf::internal::kEmptyString) {
  2201. name_->clear();
  2202. }
  2203. clear_has_name();
  2204. }
  2205. inline const ::std::string& FileDescriptorProto::name() const {
  2206. return *name_;
  2207. }
  2208. inline void FileDescriptorProto::set_name(const ::std::string& value) {
  2209. set_has_name();
  2210. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2211. name_ = new ::std::string;
  2212. }
  2213. name_->assign(value);
  2214. }
  2215. inline void FileDescriptorProto::set_name(const char* value) {
  2216. set_has_name();
  2217. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2218. name_ = new ::std::string;
  2219. }
  2220. name_->assign(value);
  2221. }
  2222. inline void FileDescriptorProto::set_name(const char* value, size_t size) {
  2223. set_has_name();
  2224. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2225. name_ = new ::std::string;
  2226. }
  2227. name_->assign(reinterpret_cast<const char*>(value), size);
  2228. }
  2229. inline ::std::string* FileDescriptorProto::mutable_name() {
  2230. set_has_name();
  2231. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2232. name_ = new ::std::string;
  2233. }
  2234. return name_;
  2235. }
  2236. inline ::std::string* FileDescriptorProto::release_name() {
  2237. clear_has_name();
  2238. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2239. return NULL;
  2240. } else {
  2241. ::std::string* temp = name_;
  2242. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2243. return temp;
  2244. }
  2245. }
  2246. // optional string package = 2;
  2247. inline bool FileDescriptorProto::has_package() const {
  2248. return (_has_bits_[0] & 0x00000002u) != 0;
  2249. }
  2250. inline void FileDescriptorProto::set_has_package() {
  2251. _has_bits_[0] |= 0x00000002u;
  2252. }
  2253. inline void FileDescriptorProto::clear_has_package() {
  2254. _has_bits_[0] &= ~0x00000002u;
  2255. }
  2256. inline void FileDescriptorProto::clear_package() {
  2257. if (package_ != &::google::protobuf::internal::kEmptyString) {
  2258. package_->clear();
  2259. }
  2260. clear_has_package();
  2261. }
  2262. inline const ::std::string& FileDescriptorProto::package() const {
  2263. return *package_;
  2264. }
  2265. inline void FileDescriptorProto::set_package(const ::std::string& value) {
  2266. set_has_package();
  2267. if (package_ == &::google::protobuf::internal::kEmptyString) {
  2268. package_ = new ::std::string;
  2269. }
  2270. package_->assign(value);
  2271. }
  2272. inline void FileDescriptorProto::set_package(const char* value) {
  2273. set_has_package();
  2274. if (package_ == &::google::protobuf::internal::kEmptyString) {
  2275. package_ = new ::std::string;
  2276. }
  2277. package_->assign(value);
  2278. }
  2279. inline void FileDescriptorProto::set_package(const char* value, size_t size) {
  2280. set_has_package();
  2281. if (package_ == &::google::protobuf::internal::kEmptyString) {
  2282. package_ = new ::std::string;
  2283. }
  2284. package_->assign(reinterpret_cast<const char*>(value), size);
  2285. }
  2286. inline ::std::string* FileDescriptorProto::mutable_package() {
  2287. set_has_package();
  2288. if (package_ == &::google::protobuf::internal::kEmptyString) {
  2289. package_ = new ::std::string;
  2290. }
  2291. return package_;
  2292. }
  2293. inline ::std::string* FileDescriptorProto::release_package() {
  2294. clear_has_package();
  2295. if (package_ == &::google::protobuf::internal::kEmptyString) {
  2296. return NULL;
  2297. } else {
  2298. ::std::string* temp = package_;
  2299. package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2300. return temp;
  2301. }
  2302. }
  2303. // repeated string dependency = 3;
  2304. inline int FileDescriptorProto::dependency_size() const {
  2305. return dependency_.size();
  2306. }
  2307. inline void FileDescriptorProto::clear_dependency() {
  2308. dependency_.Clear();
  2309. }
  2310. inline const ::std::string& FileDescriptorProto::dependency(int index) const {
  2311. return dependency_.Get(index);
  2312. }
  2313. inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
  2314. return dependency_.Mutable(index);
  2315. }
  2316. inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
  2317. dependency_.Mutable(index)->assign(value);
  2318. }
  2319. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  2320. dependency_.Mutable(index)->assign(value);
  2321. }
  2322. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  2323. dependency_.Mutable(index)->assign(
  2324. reinterpret_cast<const char*>(value), size);
  2325. }
  2326. inline ::std::string* FileDescriptorProto::add_dependency() {
  2327. return dependency_.Add();
  2328. }
  2329. inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
  2330. dependency_.Add()->assign(value);
  2331. }
  2332. inline void FileDescriptorProto::add_dependency(const char* value) {
  2333. dependency_.Add()->assign(value);
  2334. }
  2335. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  2336. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  2337. }
  2338. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  2339. FileDescriptorProto::dependency() const {
  2340. return dependency_;
  2341. }
  2342. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  2343. FileDescriptorProto::mutable_dependency() {
  2344. return &dependency_;
  2345. }
  2346. // repeated .google.protobuf.DescriptorProto message_type = 4;
  2347. inline int FileDescriptorProto::message_type_size() const {
  2348. return message_type_.size();
  2349. }
  2350. inline void FileDescriptorProto::clear_message_type() {
  2351. message_type_.Clear();
  2352. }
  2353. inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  2354. return message_type_.Get(index);
  2355. }
  2356. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  2357. return message_type_.Mutable(index);
  2358. }
  2359. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
  2360. return message_type_.Add();
  2361. }
  2362. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  2363. FileDescriptorProto::message_type() const {
  2364. return message_type_;
  2365. }
  2366. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  2367. FileDescriptorProto::mutable_message_type() {
  2368. return &message_type_;
  2369. }
  2370. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  2371. inline int FileDescriptorProto::enum_type_size() const {
  2372. return enum_type_.size();
  2373. }
  2374. inline void FileDescriptorProto::clear_enum_type() {
  2375. enum_type_.Clear();
  2376. }
  2377. inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  2378. return enum_type_.Get(index);
  2379. }
  2380. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  2381. return enum_type_.Mutable(index);
  2382. }
  2383. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  2384. return enum_type_.Add();
  2385. }
  2386. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  2387. FileDescriptorProto::enum_type() const {
  2388. return enum_type_;
  2389. }
  2390. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  2391. FileDescriptorProto::mutable_enum_type() {
  2392. return &enum_type_;
  2393. }
  2394. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  2395. inline int FileDescriptorProto::service_size() const {
  2396. return service_.size();
  2397. }
  2398. inline void FileDescriptorProto::clear_service() {
  2399. service_.Clear();
  2400. }
  2401. inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  2402. return service_.Get(index);
  2403. }
  2404. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  2405. return service_.Mutable(index);
  2406. }
  2407. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  2408. return service_.Add();
  2409. }
  2410. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  2411. FileDescriptorProto::service() const {
  2412. return service_;
  2413. }
  2414. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  2415. FileDescriptorProto::mutable_service() {
  2416. return &service_;
  2417. }
  2418. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2419. inline int FileDescriptorProto::extension_size() const {
  2420. return extension_.size();
  2421. }
  2422. inline void FileDescriptorProto::clear_extension() {
  2423. extension_.Clear();
  2424. }
  2425. inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  2426. return extension_.Get(index);
  2427. }
  2428. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  2429. return extension_.Mutable(index);
  2430. }
  2431. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  2432. return extension_.Add();
  2433. }
  2434. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  2435. FileDescriptorProto::extension() const {
  2436. return extension_;
  2437. }
  2438. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  2439. FileDescriptorProto::mutable_extension() {
  2440. return &extension_;
  2441. }
  2442. // optional .google.protobuf.FileOptions options = 8;
  2443. inline bool FileDescriptorProto::has_options() const {
  2444. return (_has_bits_[0] & 0x00000080u) != 0;
  2445. }
  2446. inline void FileDescriptorProto::set_has_options() {
  2447. _has_bits_[0] |= 0x00000080u;
  2448. }
  2449. inline void FileDescriptorProto::clear_has_options() {
  2450. _has_bits_[0] &= ~0x00000080u;
  2451. }
  2452. inline void FileDescriptorProto::clear_options() {
  2453. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  2454. clear_has_options();
  2455. }
  2456. inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
  2457. return options_ != NULL ? *options_ : *default_instance_->options_;
  2458. }
  2459. inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
  2460. set_has_options();
  2461. if (options_ == NULL) options_ = new ::google::protobuf::FileOptions;
  2462. return options_;
  2463. }
  2464. inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
  2465. clear_has_options();
  2466. ::google::protobuf::FileOptions* temp = options_;
  2467. options_ = NULL;
  2468. return temp;
  2469. }
  2470. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2471. inline bool FileDescriptorProto::has_source_code_info() const {
  2472. return (_has_bits_[0] & 0x00000100u) != 0;
  2473. }
  2474. inline void FileDescriptorProto::set_has_source_code_info() {
  2475. _has_bits_[0] |= 0x00000100u;
  2476. }
  2477. inline void FileDescriptorProto::clear_has_source_code_info() {
  2478. _has_bits_[0] &= ~0x00000100u;
  2479. }
  2480. inline void FileDescriptorProto::clear_source_code_info() {
  2481. if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
  2482. clear_has_source_code_info();
  2483. }
  2484. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  2485. return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
  2486. }
  2487. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  2488. set_has_source_code_info();
  2489. if (source_code_info_ == NULL) source_code_info_ = new ::google::protobuf::SourceCodeInfo;
  2490. return source_code_info_;
  2491. }
  2492. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  2493. clear_has_source_code_info();
  2494. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  2495. source_code_info_ = NULL;
  2496. return temp;
  2497. }
  2498. // -------------------------------------------------------------------
  2499. // DescriptorProto_ExtensionRange
  2500. // optional int32 start = 1;
  2501. inline bool DescriptorProto_ExtensionRange::has_start() const {
  2502. return (_has_bits_[0] & 0x00000001u) != 0;
  2503. }
  2504. inline void DescriptorProto_ExtensionRange::set_has_start() {
  2505. _has_bits_[0] |= 0x00000001u;
  2506. }
  2507. inline void DescriptorProto_ExtensionRange::clear_has_start() {
  2508. _has_bits_[0] &= ~0x00000001u;
  2509. }
  2510. inline void DescriptorProto_ExtensionRange::clear_start() {
  2511. start_ = 0;
  2512. clear_has_start();
  2513. }
  2514. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
  2515. return start_;
  2516. }
  2517. inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
  2518. set_has_start();
  2519. start_ = value;
  2520. }
  2521. // optional int32 end = 2;
  2522. inline bool DescriptorProto_ExtensionRange::has_end() const {
  2523. return (_has_bits_[0] & 0x00000002u) != 0;
  2524. }
  2525. inline void DescriptorProto_ExtensionRange::set_has_end() {
  2526. _has_bits_[0] |= 0x00000002u;
  2527. }
  2528. inline void DescriptorProto_ExtensionRange::clear_has_end() {
  2529. _has_bits_[0] &= ~0x00000002u;
  2530. }
  2531. inline void DescriptorProto_ExtensionRange::clear_end() {
  2532. end_ = 0;
  2533. clear_has_end();
  2534. }
  2535. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
  2536. return end_;
  2537. }
  2538. inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
  2539. set_has_end();
  2540. end_ = value;
  2541. }
  2542. // -------------------------------------------------------------------
  2543. // DescriptorProto
  2544. // optional string name = 1;
  2545. inline bool DescriptorProto::has_name() const {
  2546. return (_has_bits_[0] & 0x00000001u) != 0;
  2547. }
  2548. inline void DescriptorProto::set_has_name() {
  2549. _has_bits_[0] |= 0x00000001u;
  2550. }
  2551. inline void DescriptorProto::clear_has_name() {
  2552. _has_bits_[0] &= ~0x00000001u;
  2553. }
  2554. inline void DescriptorProto::clear_name() {
  2555. if (name_ != &::google::protobuf::internal::kEmptyString) {
  2556. name_->clear();
  2557. }
  2558. clear_has_name();
  2559. }
  2560. inline const ::std::string& DescriptorProto::name() const {
  2561. return *name_;
  2562. }
  2563. inline void DescriptorProto::set_name(const ::std::string& value) {
  2564. set_has_name();
  2565. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2566. name_ = new ::std::string;
  2567. }
  2568. name_->assign(value);
  2569. }
  2570. inline void DescriptorProto::set_name(const char* value) {
  2571. set_has_name();
  2572. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2573. name_ = new ::std::string;
  2574. }
  2575. name_->assign(value);
  2576. }
  2577. inline void DescriptorProto::set_name(const char* value, size_t size) {
  2578. set_has_name();
  2579. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2580. name_ = new ::std::string;
  2581. }
  2582. name_->assign(reinterpret_cast<const char*>(value), size);
  2583. }
  2584. inline ::std::string* DescriptorProto::mutable_name() {
  2585. set_has_name();
  2586. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2587. name_ = new ::std::string;
  2588. }
  2589. return name_;
  2590. }
  2591. inline ::std::string* DescriptorProto::release_name() {
  2592. clear_has_name();
  2593. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2594. return NULL;
  2595. } else {
  2596. ::std::string* temp = name_;
  2597. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2598. return temp;
  2599. }
  2600. }
  2601. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  2602. inline int DescriptorProto::field_size() const {
  2603. return field_.size();
  2604. }
  2605. inline void DescriptorProto::clear_field() {
  2606. field_.Clear();
  2607. }
  2608. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
  2609. return field_.Get(index);
  2610. }
  2611. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  2612. return field_.Mutable(index);
  2613. }
  2614. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
  2615. return field_.Add();
  2616. }
  2617. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  2618. DescriptorProto::field() const {
  2619. return field_;
  2620. }
  2621. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  2622. DescriptorProto::mutable_field() {
  2623. return &field_;
  2624. }
  2625. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  2626. inline int DescriptorProto::extension_size() const {
  2627. return extension_.size();
  2628. }
  2629. inline void DescriptorProto::clear_extension() {
  2630. extension_.Clear();
  2631. }
  2632. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  2633. return extension_.Get(index);
  2634. }
  2635. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  2636. return extension_.Mutable(index);
  2637. }
  2638. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
  2639. return extension_.Add();
  2640. }
  2641. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  2642. DescriptorProto::extension() const {
  2643. return extension_;
  2644. }
  2645. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  2646. DescriptorProto::mutable_extension() {
  2647. return &extension_;
  2648. }
  2649. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  2650. inline int DescriptorProto::nested_type_size() const {
  2651. return nested_type_.size();
  2652. }
  2653. inline void DescriptorProto::clear_nested_type() {
  2654. nested_type_.Clear();
  2655. }
  2656. inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
  2657. return nested_type_.Get(index);
  2658. }
  2659. inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  2660. return nested_type_.Mutable(index);
  2661. }
  2662. inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
  2663. return nested_type_.Add();
  2664. }
  2665. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  2666. DescriptorProto::nested_type() const {
  2667. return nested_type_;
  2668. }
  2669. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  2670. DescriptorProto::mutable_nested_type() {
  2671. return &nested_type_;
  2672. }
  2673. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  2674. inline int DescriptorProto::enum_type_size() const {
  2675. return enum_type_.size();
  2676. }
  2677. inline void DescriptorProto::clear_enum_type() {
  2678. enum_type_.Clear();
  2679. }
  2680. inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  2681. return enum_type_.Get(index);
  2682. }
  2683. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  2684. return enum_type_.Mutable(index);
  2685. }
  2686. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  2687. return enum_type_.Add();
  2688. }
  2689. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  2690. DescriptorProto::enum_type() const {
  2691. return enum_type_;
  2692. }
  2693. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  2694. DescriptorProto::mutable_enum_type() {
  2695. return &enum_type_;
  2696. }
  2697. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  2698. inline int DescriptorProto::extension_range_size() const {
  2699. return extension_range_.size();
  2700. }
  2701. inline void DescriptorProto::clear_extension_range() {
  2702. extension_range_.Clear();
  2703. }
  2704. inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  2705. return extension_range_.Get(index);
  2706. }
  2707. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  2708. return extension_range_.Mutable(index);
  2709. }
  2710. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  2711. return extension_range_.Add();
  2712. }
  2713. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  2714. DescriptorProto::extension_range() const {
  2715. return extension_range_;
  2716. }
  2717. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  2718. DescriptorProto::mutable_extension_range() {
  2719. return &extension_range_;
  2720. }
  2721. // optional .google.protobuf.MessageOptions options = 7;
  2722. inline bool DescriptorProto::has_options() const {
  2723. return (_has_bits_[0] & 0x00000040u) != 0;
  2724. }
  2725. inline void DescriptorProto::set_has_options() {
  2726. _has_bits_[0] |= 0x00000040u;
  2727. }
  2728. inline void DescriptorProto::clear_has_options() {
  2729. _has_bits_[0] &= ~0x00000040u;
  2730. }
  2731. inline void DescriptorProto::clear_options() {
  2732. if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
  2733. clear_has_options();
  2734. }
  2735. inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
  2736. return options_ != NULL ? *options_ : *default_instance_->options_;
  2737. }
  2738. inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
  2739. set_has_options();
  2740. if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions;
  2741. return options_;
  2742. }
  2743. inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
  2744. clear_has_options();
  2745. ::google::protobuf::MessageOptions* temp = options_;
  2746. options_ = NULL;
  2747. return temp;
  2748. }
  2749. // -------------------------------------------------------------------
  2750. // FieldDescriptorProto
  2751. // optional string name = 1;
  2752. inline bool FieldDescriptorProto::has_name() const {
  2753. return (_has_bits_[0] & 0x00000001u) != 0;
  2754. }
  2755. inline void FieldDescriptorProto::set_has_name() {
  2756. _has_bits_[0] |= 0x00000001u;
  2757. }
  2758. inline void FieldDescriptorProto::clear_has_name() {
  2759. _has_bits_[0] &= ~0x00000001u;
  2760. }
  2761. inline void FieldDescriptorProto::clear_name() {
  2762. if (name_ != &::google::protobuf::internal::kEmptyString) {
  2763. name_->clear();
  2764. }
  2765. clear_has_name();
  2766. }
  2767. inline const ::std::string& FieldDescriptorProto::name() const {
  2768. return *name_;
  2769. }
  2770. inline void FieldDescriptorProto::set_name(const ::std::string& value) {
  2771. set_has_name();
  2772. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2773. name_ = new ::std::string;
  2774. }
  2775. name_->assign(value);
  2776. }
  2777. inline void FieldDescriptorProto::set_name(const char* value) {
  2778. set_has_name();
  2779. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2780. name_ = new ::std::string;
  2781. }
  2782. name_->assign(value);
  2783. }
  2784. inline void FieldDescriptorProto::set_name(const char* value, size_t size) {
  2785. set_has_name();
  2786. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2787. name_ = new ::std::string;
  2788. }
  2789. name_->assign(reinterpret_cast<const char*>(value), size);
  2790. }
  2791. inline ::std::string* FieldDescriptorProto::mutable_name() {
  2792. set_has_name();
  2793. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2794. name_ = new ::std::string;
  2795. }
  2796. return name_;
  2797. }
  2798. inline ::std::string* FieldDescriptorProto::release_name() {
  2799. clear_has_name();
  2800. if (name_ == &::google::protobuf::internal::kEmptyString) {
  2801. return NULL;
  2802. } else {
  2803. ::std::string* temp = name_;
  2804. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2805. return temp;
  2806. }
  2807. }
  2808. // optional int32 number = 3;
  2809. inline bool FieldDescriptorProto::has_number() const {
  2810. return (_has_bits_[0] & 0x00000002u) != 0;
  2811. }
  2812. inline void FieldDescriptorProto::set_has_number() {
  2813. _has_bits_[0] |= 0x00000002u;
  2814. }
  2815. inline void FieldDescriptorProto::clear_has_number() {
  2816. _has_bits_[0] &= ~0x00000002u;
  2817. }
  2818. inline void FieldDescriptorProto::clear_number() {
  2819. number_ = 0;
  2820. clear_has_number();
  2821. }
  2822. inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
  2823. return number_;
  2824. }
  2825. inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
  2826. set_has_number();
  2827. number_ = value;
  2828. }
  2829. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2830. inline bool FieldDescriptorProto::has_label() const {
  2831. return (_has_bits_[0] & 0x00000004u) != 0;
  2832. }
  2833. inline void FieldDescriptorProto::set_has_label() {
  2834. _has_bits_[0] |= 0x00000004u;
  2835. }
  2836. inline void FieldDescriptorProto::clear_has_label() {
  2837. _has_bits_[0] &= ~0x00000004u;
  2838. }
  2839. inline void FieldDescriptorProto::clear_label() {
  2840. label_ = 1;
  2841. clear_has_label();
  2842. }
  2843. inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  2844. return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
  2845. }
  2846. inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
  2847. GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
  2848. set_has_label();
  2849. label_ = value;
  2850. }
  2851. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2852. inline bool FieldDescriptorProto::has_type() const {
  2853. return (_has_bits_[0] & 0x00000008u) != 0;
  2854. }
  2855. inline void FieldDescriptorProto::set_has_type() {
  2856. _has_bits_[0] |= 0x00000008u;
  2857. }
  2858. inline void FieldDescriptorProto::clear_has_type() {
  2859. _has_bits_[0] &= ~0x00000008u;
  2860. }
  2861. inline void FieldDescriptorProto::clear_type() {
  2862. type_ = 1;
  2863. clear_has_type();
  2864. }
  2865. inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  2866. return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
  2867. }
  2868. inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
  2869. GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
  2870. set_has_type();
  2871. type_ = value;
  2872. }
  2873. // optional string type_name = 6;
  2874. inline bool FieldDescriptorProto::has_type_name() const {
  2875. return (_has_bits_[0] & 0x00000010u) != 0;
  2876. }
  2877. inline void FieldDescriptorProto::set_has_type_name() {
  2878. _has_bits_[0] |= 0x00000010u;
  2879. }
  2880. inline void FieldDescriptorProto::clear_has_type_name() {
  2881. _has_bits_[0] &= ~0x00000010u;
  2882. }
  2883. inline void FieldDescriptorProto::clear_type_name() {
  2884. if (type_name_ != &::google::protobuf::internal::kEmptyString) {
  2885. type_name_->clear();
  2886. }
  2887. clear_has_type_name();
  2888. }
  2889. inline const ::std::string& FieldDescriptorProto::type_name() const {
  2890. return *type_name_;
  2891. }
  2892. inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
  2893. set_has_type_name();
  2894. if (type_name_ == &::google::protobuf::internal::kEmptyString) {
  2895. type_name_ = new ::std::string;
  2896. }
  2897. type_name_->assign(value);
  2898. }
  2899. inline void FieldDescriptorProto::set_type_name(const char* value) {
  2900. set_has_type_name();
  2901. if (type_name_ == &::google::protobuf::internal::kEmptyString) {
  2902. type_name_ = new ::std::string;
  2903. }
  2904. type_name_->assign(value);
  2905. }
  2906. inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
  2907. set_has_type_name();
  2908. if (type_name_ == &::google::protobuf::internal::kEmptyString) {
  2909. type_name_ = new ::std::string;
  2910. }
  2911. type_name_->assign(reinterpret_cast<const char*>(value), size);
  2912. }
  2913. inline ::std::string* FieldDescriptorProto::mutable_type_name() {
  2914. set_has_type_name();
  2915. if (type_name_ == &::google::protobuf::internal::kEmptyString) {
  2916. type_name_ = new ::std::string;
  2917. }
  2918. return type_name_;
  2919. }
  2920. inline ::std::string* FieldDescriptorProto::release_type_name() {
  2921. clear_has_type_name();
  2922. if (type_name_ == &::google::protobuf::internal::kEmptyString) {
  2923. return NULL;
  2924. } else {
  2925. ::std::string* temp = type_name_;
  2926. type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2927. return temp;
  2928. }
  2929. }
  2930. // optional string extendee = 2;
  2931. inline bool FieldDescriptorProto::has_extendee() const {
  2932. return (_has_bits_[0] & 0x00000020u) != 0;
  2933. }
  2934. inline void FieldDescriptorProto::set_has_extendee() {
  2935. _has_bits_[0] |= 0x00000020u;
  2936. }
  2937. inline void FieldDescriptorProto::clear_has_extendee() {
  2938. _has_bits_[0] &= ~0x00000020u;
  2939. }
  2940. inline void FieldDescriptorProto::clear_extendee() {
  2941. if (extendee_ != &::google::protobuf::internal::kEmptyString) {
  2942. extendee_->clear();
  2943. }
  2944. clear_has_extendee();
  2945. }
  2946. inline const ::std::string& FieldDescriptorProto::extendee() const {
  2947. return *extendee_;
  2948. }
  2949. inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
  2950. set_has_extendee();
  2951. if (extendee_ == &::google::protobuf::internal::kEmptyString) {
  2952. extendee_ = new ::std::string;
  2953. }
  2954. extendee_->assign(value);
  2955. }
  2956. inline void FieldDescriptorProto::set_extendee(const char* value) {
  2957. set_has_extendee();
  2958. if (extendee_ == &::google::protobuf::internal::kEmptyString) {
  2959. extendee_ = new ::std::string;
  2960. }
  2961. extendee_->assign(value);
  2962. }
  2963. inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
  2964. set_has_extendee();
  2965. if (extendee_ == &::google::protobuf::internal::kEmptyString) {
  2966. extendee_ = new ::std::string;
  2967. }
  2968. extendee_->assign(reinterpret_cast<const char*>(value), size);
  2969. }
  2970. inline ::std::string* FieldDescriptorProto::mutable_extendee() {
  2971. set_has_extendee();
  2972. if (extendee_ == &::google::protobuf::internal::kEmptyString) {
  2973. extendee_ = new ::std::string;
  2974. }
  2975. return extendee_;
  2976. }
  2977. inline ::std::string* FieldDescriptorProto::release_extendee() {
  2978. clear_has_extendee();
  2979. if (extendee_ == &::google::protobuf::internal::kEmptyString) {
  2980. return NULL;
  2981. } else {
  2982. ::std::string* temp = extendee_;
  2983. extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  2984. return temp;
  2985. }
  2986. }
  2987. // optional string default_value = 7;
  2988. inline bool FieldDescriptorProto::has_default_value() const {
  2989. return (_has_bits_[0] & 0x00000040u) != 0;
  2990. }
  2991. inline void FieldDescriptorProto::set_has_default_value() {
  2992. _has_bits_[0] |= 0x00000040u;
  2993. }
  2994. inline void FieldDescriptorProto::clear_has_default_value() {
  2995. _has_bits_[0] &= ~0x00000040u;
  2996. }
  2997. inline void FieldDescriptorProto::clear_default_value() {
  2998. if (default_value_ != &::google::protobuf::internal::kEmptyString) {
  2999. default_value_->clear();
  3000. }
  3001. clear_has_default_value();
  3002. }
  3003. inline const ::std::string& FieldDescriptorProto::default_value() const {
  3004. return *default_value_;
  3005. }
  3006. inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
  3007. set_has_default_value();
  3008. if (default_value_ == &::google::protobuf::internal::kEmptyString) {
  3009. default_value_ = new ::std::string;
  3010. }
  3011. default_value_->assign(value);
  3012. }
  3013. inline void FieldDescriptorProto::set_default_value(const char* value) {
  3014. set_has_default_value();
  3015. if (default_value_ == &::google::protobuf::internal::kEmptyString) {
  3016. default_value_ = new ::std::string;
  3017. }
  3018. default_value_->assign(value);
  3019. }
  3020. inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
  3021. set_has_default_value();
  3022. if (default_value_ == &::google::protobuf::internal::kEmptyString) {
  3023. default_value_ = new ::std::string;
  3024. }
  3025. default_value_->assign(reinterpret_cast<const char*>(value), size);
  3026. }
  3027. inline ::std::string* FieldDescriptorProto::mutable_default_value() {
  3028. set_has_default_value();
  3029. if (default_value_ == &::google::protobuf::internal::kEmptyString) {
  3030. default_value_ = new ::std::string;
  3031. }
  3032. return default_value_;
  3033. }
  3034. inline ::std::string* FieldDescriptorProto::release_default_value() {
  3035. clear_has_default_value();
  3036. if (default_value_ == &::google::protobuf::internal::kEmptyString) {
  3037. return NULL;
  3038. } else {
  3039. ::std::string* temp = default_value_;
  3040. default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3041. return temp;
  3042. }
  3043. }
  3044. // optional .google.protobuf.FieldOptions options = 8;
  3045. inline bool FieldDescriptorProto::has_options() const {
  3046. return (_has_bits_[0] & 0x00000080u) != 0;
  3047. }
  3048. inline void FieldDescriptorProto::set_has_options() {
  3049. _has_bits_[0] |= 0x00000080u;
  3050. }
  3051. inline void FieldDescriptorProto::clear_has_options() {
  3052. _has_bits_[0] &= ~0x00000080u;
  3053. }
  3054. inline void FieldDescriptorProto::clear_options() {
  3055. if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
  3056. clear_has_options();
  3057. }
  3058. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
  3059. return options_ != NULL ? *options_ : *default_instance_->options_;
  3060. }
  3061. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
  3062. set_has_options();
  3063. if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions;
  3064. return options_;
  3065. }
  3066. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
  3067. clear_has_options();
  3068. ::google::protobuf::FieldOptions* temp = options_;
  3069. options_ = NULL;
  3070. return temp;
  3071. }
  3072. // -------------------------------------------------------------------
  3073. // EnumDescriptorProto
  3074. // optional string name = 1;
  3075. inline bool EnumDescriptorProto::has_name() const {
  3076. return (_has_bits_[0] & 0x00000001u) != 0;
  3077. }
  3078. inline void EnumDescriptorProto::set_has_name() {
  3079. _has_bits_[0] |= 0x00000001u;
  3080. }
  3081. inline void EnumDescriptorProto::clear_has_name() {
  3082. _has_bits_[0] &= ~0x00000001u;
  3083. }
  3084. inline void EnumDescriptorProto::clear_name() {
  3085. if (name_ != &::google::protobuf::internal::kEmptyString) {
  3086. name_->clear();
  3087. }
  3088. clear_has_name();
  3089. }
  3090. inline const ::std::string& EnumDescriptorProto::name() const {
  3091. return *name_;
  3092. }
  3093. inline void EnumDescriptorProto::set_name(const ::std::string& value) {
  3094. set_has_name();
  3095. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3096. name_ = new ::std::string;
  3097. }
  3098. name_->assign(value);
  3099. }
  3100. inline void EnumDescriptorProto::set_name(const char* value) {
  3101. set_has_name();
  3102. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3103. name_ = new ::std::string;
  3104. }
  3105. name_->assign(value);
  3106. }
  3107. inline void EnumDescriptorProto::set_name(const char* value, size_t size) {
  3108. set_has_name();
  3109. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3110. name_ = new ::std::string;
  3111. }
  3112. name_->assign(reinterpret_cast<const char*>(value), size);
  3113. }
  3114. inline ::std::string* EnumDescriptorProto::mutable_name() {
  3115. set_has_name();
  3116. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3117. name_ = new ::std::string;
  3118. }
  3119. return name_;
  3120. }
  3121. inline ::std::string* EnumDescriptorProto::release_name() {
  3122. clear_has_name();
  3123. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3124. return NULL;
  3125. } else {
  3126. ::std::string* temp = name_;
  3127. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3128. return temp;
  3129. }
  3130. }
  3131. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  3132. inline int EnumDescriptorProto::value_size() const {
  3133. return value_.size();
  3134. }
  3135. inline void EnumDescriptorProto::clear_value() {
  3136. value_.Clear();
  3137. }
  3138. inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  3139. return value_.Get(index);
  3140. }
  3141. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  3142. return value_.Mutable(index);
  3143. }
  3144. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  3145. return value_.Add();
  3146. }
  3147. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  3148. EnumDescriptorProto::value() const {
  3149. return value_;
  3150. }
  3151. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  3152. EnumDescriptorProto::mutable_value() {
  3153. return &value_;
  3154. }
  3155. // optional .google.protobuf.EnumOptions options = 3;
  3156. inline bool EnumDescriptorProto::has_options() const {
  3157. return (_has_bits_[0] & 0x00000004u) != 0;
  3158. }
  3159. inline void EnumDescriptorProto::set_has_options() {
  3160. _has_bits_[0] |= 0x00000004u;
  3161. }
  3162. inline void EnumDescriptorProto::clear_has_options() {
  3163. _has_bits_[0] &= ~0x00000004u;
  3164. }
  3165. inline void EnumDescriptorProto::clear_options() {
  3166. if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
  3167. clear_has_options();
  3168. }
  3169. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
  3170. return options_ != NULL ? *options_ : *default_instance_->options_;
  3171. }
  3172. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
  3173. set_has_options();
  3174. if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions;
  3175. return options_;
  3176. }
  3177. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
  3178. clear_has_options();
  3179. ::google::protobuf::EnumOptions* temp = options_;
  3180. options_ = NULL;
  3181. return temp;
  3182. }
  3183. // -------------------------------------------------------------------
  3184. // EnumValueDescriptorProto
  3185. // optional string name = 1;
  3186. inline bool EnumValueDescriptorProto::has_name() const {
  3187. return (_has_bits_[0] & 0x00000001u) != 0;
  3188. }
  3189. inline void EnumValueDescriptorProto::set_has_name() {
  3190. _has_bits_[0] |= 0x00000001u;
  3191. }
  3192. inline void EnumValueDescriptorProto::clear_has_name() {
  3193. _has_bits_[0] &= ~0x00000001u;
  3194. }
  3195. inline void EnumValueDescriptorProto::clear_name() {
  3196. if (name_ != &::google::protobuf::internal::kEmptyString) {
  3197. name_->clear();
  3198. }
  3199. clear_has_name();
  3200. }
  3201. inline const ::std::string& EnumValueDescriptorProto::name() const {
  3202. return *name_;
  3203. }
  3204. inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
  3205. set_has_name();
  3206. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3207. name_ = new ::std::string;
  3208. }
  3209. name_->assign(value);
  3210. }
  3211. inline void EnumValueDescriptorProto::set_name(const char* value) {
  3212. set_has_name();
  3213. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3214. name_ = new ::std::string;
  3215. }
  3216. name_->assign(value);
  3217. }
  3218. inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
  3219. set_has_name();
  3220. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3221. name_ = new ::std::string;
  3222. }
  3223. name_->assign(reinterpret_cast<const char*>(value), size);
  3224. }
  3225. inline ::std::string* EnumValueDescriptorProto::mutable_name() {
  3226. set_has_name();
  3227. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3228. name_ = new ::std::string;
  3229. }
  3230. return name_;
  3231. }
  3232. inline ::std::string* EnumValueDescriptorProto::release_name() {
  3233. clear_has_name();
  3234. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3235. return NULL;
  3236. } else {
  3237. ::std::string* temp = name_;
  3238. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3239. return temp;
  3240. }
  3241. }
  3242. // optional int32 number = 2;
  3243. inline bool EnumValueDescriptorProto::has_number() const {
  3244. return (_has_bits_[0] & 0x00000002u) != 0;
  3245. }
  3246. inline void EnumValueDescriptorProto::set_has_number() {
  3247. _has_bits_[0] |= 0x00000002u;
  3248. }
  3249. inline void EnumValueDescriptorProto::clear_has_number() {
  3250. _has_bits_[0] &= ~0x00000002u;
  3251. }
  3252. inline void EnumValueDescriptorProto::clear_number() {
  3253. number_ = 0;
  3254. clear_has_number();
  3255. }
  3256. inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
  3257. return number_;
  3258. }
  3259. inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
  3260. set_has_number();
  3261. number_ = value;
  3262. }
  3263. // optional .google.protobuf.EnumValueOptions options = 3;
  3264. inline bool EnumValueDescriptorProto::has_options() const {
  3265. return (_has_bits_[0] & 0x00000004u) != 0;
  3266. }
  3267. inline void EnumValueDescriptorProto::set_has_options() {
  3268. _has_bits_[0] |= 0x00000004u;
  3269. }
  3270. inline void EnumValueDescriptorProto::clear_has_options() {
  3271. _has_bits_[0] &= ~0x00000004u;
  3272. }
  3273. inline void EnumValueDescriptorProto::clear_options() {
  3274. if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
  3275. clear_has_options();
  3276. }
  3277. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
  3278. return options_ != NULL ? *options_ : *default_instance_->options_;
  3279. }
  3280. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  3281. set_has_options();
  3282. if (options_ == NULL) options_ = new ::google::protobuf::EnumValueOptions;
  3283. return options_;
  3284. }
  3285. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  3286. clear_has_options();
  3287. ::google::protobuf::EnumValueOptions* temp = options_;
  3288. options_ = NULL;
  3289. return temp;
  3290. }
  3291. // -------------------------------------------------------------------
  3292. // ServiceDescriptorProto
  3293. // optional string name = 1;
  3294. inline bool ServiceDescriptorProto::has_name() const {
  3295. return (_has_bits_[0] & 0x00000001u) != 0;
  3296. }
  3297. inline void ServiceDescriptorProto::set_has_name() {
  3298. _has_bits_[0] |= 0x00000001u;
  3299. }
  3300. inline void ServiceDescriptorProto::clear_has_name() {
  3301. _has_bits_[0] &= ~0x00000001u;
  3302. }
  3303. inline void ServiceDescriptorProto::clear_name() {
  3304. if (name_ != &::google::protobuf::internal::kEmptyString) {
  3305. name_->clear();
  3306. }
  3307. clear_has_name();
  3308. }
  3309. inline const ::std::string& ServiceDescriptorProto::name() const {
  3310. return *name_;
  3311. }
  3312. inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
  3313. set_has_name();
  3314. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3315. name_ = new ::std::string;
  3316. }
  3317. name_->assign(value);
  3318. }
  3319. inline void ServiceDescriptorProto::set_name(const char* value) {
  3320. set_has_name();
  3321. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3322. name_ = new ::std::string;
  3323. }
  3324. name_->assign(value);
  3325. }
  3326. inline void ServiceDescriptorProto::set_name(const char* value, size_t size) {
  3327. set_has_name();
  3328. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3329. name_ = new ::std::string;
  3330. }
  3331. name_->assign(reinterpret_cast<const char*>(value), size);
  3332. }
  3333. inline ::std::string* ServiceDescriptorProto::mutable_name() {
  3334. set_has_name();
  3335. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3336. name_ = new ::std::string;
  3337. }
  3338. return name_;
  3339. }
  3340. inline ::std::string* ServiceDescriptorProto::release_name() {
  3341. clear_has_name();
  3342. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3343. return NULL;
  3344. } else {
  3345. ::std::string* temp = name_;
  3346. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3347. return temp;
  3348. }
  3349. }
  3350. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3351. inline int ServiceDescriptorProto::method_size() const {
  3352. return method_.size();
  3353. }
  3354. inline void ServiceDescriptorProto::clear_method() {
  3355. method_.Clear();
  3356. }
  3357. inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  3358. return method_.Get(index);
  3359. }
  3360. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  3361. return method_.Mutable(index);
  3362. }
  3363. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  3364. return method_.Add();
  3365. }
  3366. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  3367. ServiceDescriptorProto::method() const {
  3368. return method_;
  3369. }
  3370. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  3371. ServiceDescriptorProto::mutable_method() {
  3372. return &method_;
  3373. }
  3374. // optional .google.protobuf.ServiceOptions options = 3;
  3375. inline bool ServiceDescriptorProto::has_options() const {
  3376. return (_has_bits_[0] & 0x00000004u) != 0;
  3377. }
  3378. inline void ServiceDescriptorProto::set_has_options() {
  3379. _has_bits_[0] |= 0x00000004u;
  3380. }
  3381. inline void ServiceDescriptorProto::clear_has_options() {
  3382. _has_bits_[0] &= ~0x00000004u;
  3383. }
  3384. inline void ServiceDescriptorProto::clear_options() {
  3385. if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
  3386. clear_has_options();
  3387. }
  3388. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
  3389. return options_ != NULL ? *options_ : *default_instance_->options_;
  3390. }
  3391. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  3392. set_has_options();
  3393. if (options_ == NULL) options_ = new ::google::protobuf::ServiceOptions;
  3394. return options_;
  3395. }
  3396. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
  3397. clear_has_options();
  3398. ::google::protobuf::ServiceOptions* temp = options_;
  3399. options_ = NULL;
  3400. return temp;
  3401. }
  3402. // -------------------------------------------------------------------
  3403. // MethodDescriptorProto
  3404. // optional string name = 1;
  3405. inline bool MethodDescriptorProto::has_name() const {
  3406. return (_has_bits_[0] & 0x00000001u) != 0;
  3407. }
  3408. inline void MethodDescriptorProto::set_has_name() {
  3409. _has_bits_[0] |= 0x00000001u;
  3410. }
  3411. inline void MethodDescriptorProto::clear_has_name() {
  3412. _has_bits_[0] &= ~0x00000001u;
  3413. }
  3414. inline void MethodDescriptorProto::clear_name() {
  3415. if (name_ != &::google::protobuf::internal::kEmptyString) {
  3416. name_->clear();
  3417. }
  3418. clear_has_name();
  3419. }
  3420. inline const ::std::string& MethodDescriptorProto::name() const {
  3421. return *name_;
  3422. }
  3423. inline void MethodDescriptorProto::set_name(const ::std::string& value) {
  3424. set_has_name();
  3425. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3426. name_ = new ::std::string;
  3427. }
  3428. name_->assign(value);
  3429. }
  3430. inline void MethodDescriptorProto::set_name(const char* value) {
  3431. set_has_name();
  3432. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3433. name_ = new ::std::string;
  3434. }
  3435. name_->assign(value);
  3436. }
  3437. inline void MethodDescriptorProto::set_name(const char* value, size_t size) {
  3438. set_has_name();
  3439. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3440. name_ = new ::std::string;
  3441. }
  3442. name_->assign(reinterpret_cast<const char*>(value), size);
  3443. }
  3444. inline ::std::string* MethodDescriptorProto::mutable_name() {
  3445. set_has_name();
  3446. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3447. name_ = new ::std::string;
  3448. }
  3449. return name_;
  3450. }
  3451. inline ::std::string* MethodDescriptorProto::release_name() {
  3452. clear_has_name();
  3453. if (name_ == &::google::protobuf::internal::kEmptyString) {
  3454. return NULL;
  3455. } else {
  3456. ::std::string* temp = name_;
  3457. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3458. return temp;
  3459. }
  3460. }
  3461. // optional string input_type = 2;
  3462. inline bool MethodDescriptorProto::has_input_type() const {
  3463. return (_has_bits_[0] & 0x00000002u) != 0;
  3464. }
  3465. inline void MethodDescriptorProto::set_has_input_type() {
  3466. _has_bits_[0] |= 0x00000002u;
  3467. }
  3468. inline void MethodDescriptorProto::clear_has_input_type() {
  3469. _has_bits_[0] &= ~0x00000002u;
  3470. }
  3471. inline void MethodDescriptorProto::clear_input_type() {
  3472. if (input_type_ != &::google::protobuf::internal::kEmptyString) {
  3473. input_type_->clear();
  3474. }
  3475. clear_has_input_type();
  3476. }
  3477. inline const ::std::string& MethodDescriptorProto::input_type() const {
  3478. return *input_type_;
  3479. }
  3480. inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
  3481. set_has_input_type();
  3482. if (input_type_ == &::google::protobuf::internal::kEmptyString) {
  3483. input_type_ = new ::std::string;
  3484. }
  3485. input_type_->assign(value);
  3486. }
  3487. inline void MethodDescriptorProto::set_input_type(const char* value) {
  3488. set_has_input_type();
  3489. if (input_type_ == &::google::protobuf::internal::kEmptyString) {
  3490. input_type_ = new ::std::string;
  3491. }
  3492. input_type_->assign(value);
  3493. }
  3494. inline void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
  3495. set_has_input_type();
  3496. if (input_type_ == &::google::protobuf::internal::kEmptyString) {
  3497. input_type_ = new ::std::string;
  3498. }
  3499. input_type_->assign(reinterpret_cast<const char*>(value), size);
  3500. }
  3501. inline ::std::string* MethodDescriptorProto::mutable_input_type() {
  3502. set_has_input_type();
  3503. if (input_type_ == &::google::protobuf::internal::kEmptyString) {
  3504. input_type_ = new ::std::string;
  3505. }
  3506. return input_type_;
  3507. }
  3508. inline ::std::string* MethodDescriptorProto::release_input_type() {
  3509. clear_has_input_type();
  3510. if (input_type_ == &::google::protobuf::internal::kEmptyString) {
  3511. return NULL;
  3512. } else {
  3513. ::std::string* temp = input_type_;
  3514. input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3515. return temp;
  3516. }
  3517. }
  3518. // optional string output_type = 3;
  3519. inline bool MethodDescriptorProto::has_output_type() const {
  3520. return (_has_bits_[0] & 0x00000004u) != 0;
  3521. }
  3522. inline void MethodDescriptorProto::set_has_output_type() {
  3523. _has_bits_[0] |= 0x00000004u;
  3524. }
  3525. inline void MethodDescriptorProto::clear_has_output_type() {
  3526. _has_bits_[0] &= ~0x00000004u;
  3527. }
  3528. inline void MethodDescriptorProto::clear_output_type() {
  3529. if (output_type_ != &::google::protobuf::internal::kEmptyString) {
  3530. output_type_->clear();
  3531. }
  3532. clear_has_output_type();
  3533. }
  3534. inline const ::std::string& MethodDescriptorProto::output_type() const {
  3535. return *output_type_;
  3536. }
  3537. inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
  3538. set_has_output_type();
  3539. if (output_type_ == &::google::protobuf::internal::kEmptyString) {
  3540. output_type_ = new ::std::string;
  3541. }
  3542. output_type_->assign(value);
  3543. }
  3544. inline void MethodDescriptorProto::set_output_type(const char* value) {
  3545. set_has_output_type();
  3546. if (output_type_ == &::google::protobuf::internal::kEmptyString) {
  3547. output_type_ = new ::std::string;
  3548. }
  3549. output_type_->assign(value);
  3550. }
  3551. inline void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
  3552. set_has_output_type();
  3553. if (output_type_ == &::google::protobuf::internal::kEmptyString) {
  3554. output_type_ = new ::std::string;
  3555. }
  3556. output_type_->assign(reinterpret_cast<const char*>(value), size);
  3557. }
  3558. inline ::std::string* MethodDescriptorProto::mutable_output_type() {
  3559. set_has_output_type();
  3560. if (output_type_ == &::google::protobuf::internal::kEmptyString) {
  3561. output_type_ = new ::std::string;
  3562. }
  3563. return output_type_;
  3564. }
  3565. inline ::std::string* MethodDescriptorProto::release_output_type() {
  3566. clear_has_output_type();
  3567. if (output_type_ == &::google::protobuf::internal::kEmptyString) {
  3568. return NULL;
  3569. } else {
  3570. ::std::string* temp = output_type_;
  3571. output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3572. return temp;
  3573. }
  3574. }
  3575. // optional .google.protobuf.MethodOptions options = 4;
  3576. inline bool MethodDescriptorProto::has_options() const {
  3577. return (_has_bits_[0] & 0x00000008u) != 0;
  3578. }
  3579. inline void MethodDescriptorProto::set_has_options() {
  3580. _has_bits_[0] |= 0x00000008u;
  3581. }
  3582. inline void MethodDescriptorProto::clear_has_options() {
  3583. _has_bits_[0] &= ~0x00000008u;
  3584. }
  3585. inline void MethodDescriptorProto::clear_options() {
  3586. if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
  3587. clear_has_options();
  3588. }
  3589. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
  3590. return options_ != NULL ? *options_ : *default_instance_->options_;
  3591. }
  3592. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
  3593. set_has_options();
  3594. if (options_ == NULL) options_ = new ::google::protobuf::MethodOptions;
  3595. return options_;
  3596. }
  3597. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
  3598. clear_has_options();
  3599. ::google::protobuf::MethodOptions* temp = options_;
  3600. options_ = NULL;
  3601. return temp;
  3602. }
  3603. // -------------------------------------------------------------------
  3604. // FileOptions
  3605. // optional string java_package = 1;
  3606. inline bool FileOptions::has_java_package() const {
  3607. return (_has_bits_[0] & 0x00000001u) != 0;
  3608. }
  3609. inline void FileOptions::set_has_java_package() {
  3610. _has_bits_[0] |= 0x00000001u;
  3611. }
  3612. inline void FileOptions::clear_has_java_package() {
  3613. _has_bits_[0] &= ~0x00000001u;
  3614. }
  3615. inline void FileOptions::clear_java_package() {
  3616. if (java_package_ != &::google::protobuf::internal::kEmptyString) {
  3617. java_package_->clear();
  3618. }
  3619. clear_has_java_package();
  3620. }
  3621. inline const ::std::string& FileOptions::java_package() const {
  3622. return *java_package_;
  3623. }
  3624. inline void FileOptions::set_java_package(const ::std::string& value) {
  3625. set_has_java_package();
  3626. if (java_package_ == &::google::protobuf::internal::kEmptyString) {
  3627. java_package_ = new ::std::string;
  3628. }
  3629. java_package_->assign(value);
  3630. }
  3631. inline void FileOptions::set_java_package(const char* value) {
  3632. set_has_java_package();
  3633. if (java_package_ == &::google::protobuf::internal::kEmptyString) {
  3634. java_package_ = new ::std::string;
  3635. }
  3636. java_package_->assign(value);
  3637. }
  3638. inline void FileOptions::set_java_package(const char* value, size_t size) {
  3639. set_has_java_package();
  3640. if (java_package_ == &::google::protobuf::internal::kEmptyString) {
  3641. java_package_ = new ::std::string;
  3642. }
  3643. java_package_->assign(reinterpret_cast<const char*>(value), size);
  3644. }
  3645. inline ::std::string* FileOptions::mutable_java_package() {
  3646. set_has_java_package();
  3647. if (java_package_ == &::google::protobuf::internal::kEmptyString) {
  3648. java_package_ = new ::std::string;
  3649. }
  3650. return java_package_;
  3651. }
  3652. inline ::std::string* FileOptions::release_java_package() {
  3653. clear_has_java_package();
  3654. if (java_package_ == &::google::protobuf::internal::kEmptyString) {
  3655. return NULL;
  3656. } else {
  3657. ::std::string* temp = java_package_;
  3658. java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3659. return temp;
  3660. }
  3661. }
  3662. // optional string java_outer_classname = 8;
  3663. inline bool FileOptions::has_java_outer_classname() const {
  3664. return (_has_bits_[0] & 0x00000002u) != 0;
  3665. }
  3666. inline void FileOptions::set_has_java_outer_classname() {
  3667. _has_bits_[0] |= 0x00000002u;
  3668. }
  3669. inline void FileOptions::clear_has_java_outer_classname() {
  3670. _has_bits_[0] &= ~0x00000002u;
  3671. }
  3672. inline void FileOptions::clear_java_outer_classname() {
  3673. if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) {
  3674. java_outer_classname_->clear();
  3675. }
  3676. clear_has_java_outer_classname();
  3677. }
  3678. inline const ::std::string& FileOptions::java_outer_classname() const {
  3679. return *java_outer_classname_;
  3680. }
  3681. inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
  3682. set_has_java_outer_classname();
  3683. if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
  3684. java_outer_classname_ = new ::std::string;
  3685. }
  3686. java_outer_classname_->assign(value);
  3687. }
  3688. inline void FileOptions::set_java_outer_classname(const char* value) {
  3689. set_has_java_outer_classname();
  3690. if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
  3691. java_outer_classname_ = new ::std::string;
  3692. }
  3693. java_outer_classname_->assign(value);
  3694. }
  3695. inline void FileOptions::set_java_outer_classname(const char* value, size_t size) {
  3696. set_has_java_outer_classname();
  3697. if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
  3698. java_outer_classname_ = new ::std::string;
  3699. }
  3700. java_outer_classname_->assign(reinterpret_cast<const char*>(value), size);
  3701. }
  3702. inline ::std::string* FileOptions::mutable_java_outer_classname() {
  3703. set_has_java_outer_classname();
  3704. if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
  3705. java_outer_classname_ = new ::std::string;
  3706. }
  3707. return java_outer_classname_;
  3708. }
  3709. inline ::std::string* FileOptions::release_java_outer_classname() {
  3710. clear_has_java_outer_classname();
  3711. if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
  3712. return NULL;
  3713. } else {
  3714. ::std::string* temp = java_outer_classname_;
  3715. java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  3716. return temp;
  3717. }
  3718. }
  3719. // optional bool java_multiple_files = 10 [default = false];
  3720. inline bool FileOptions::has_java_multiple_files() const {
  3721. return (_has_bits_[0] & 0x00000004u) != 0;
  3722. }
  3723. inline void FileOptions::set_has_java_multiple_files() {
  3724. _has_bits_[0] |= 0x00000004u;
  3725. }
  3726. inline void FileOptions::clear_has_java_multiple_files() {
  3727. _has_bits_[0] &= ~0x00000004u;
  3728. }
  3729. inline void FileOptions::clear_java_multiple_files() {
  3730. java_multiple_files_ = false;
  3731. clear_has_java_multiple_files();
  3732. }
  3733. inline bool FileOptions::java_multiple_files() const {
  3734. return java_multiple_files_;
  3735. }
  3736. inline void FileOptions::set_java_multiple_files(bool value) {
  3737. set_has_java_multiple_files();
  3738. java_multiple_files_ = value;
  3739. }
  3740. // optional bool retain_unknown_fields = 11 [default = false];
  3741. inline bool FileOptions::has_retain_unknown_fields() const {
  3742. return (_has_bits_[0] & 0x00000008u) != 0;
  3743. }
  3744. inline void FileOptions::set_has_retain_unknown_fields() {
  3745. _has_bits_[0] |= 0x00000008u;
  3746. }
  3747. inline void FileOptions::clear_has_retain_unknown_fields() {
  3748. _has_bits_[0] &= ~0x00000008u;
  3749. }
  3750. inline void FileOptions::clear_retain_unknown_fields() {
  3751. retain_unknown_fields_ = false;
  3752. clear_has_retain_unknown_fields();
  3753. }
  3754. inline bool FileOptions::retain_unknown_fields() const {
  3755. return retain_unknown_fields_;
  3756. }
  3757. inline void FileOptions::set_retain_unknown_fields(bool value) {
  3758. set_has_retain_unknown_fields();
  3759. retain_unknown_fields_ = value;
  3760. }
  3761. // optional bool java_generate_equals_and_hash = 20 [default = false];
  3762. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  3763. return (_has_bits_[0] & 0x00000010u) != 0;
  3764. }
  3765. inline void FileOptions::set_has_java_generate_equals_and_hash() {
  3766. _has_bits_[0] |= 0x00000010u;
  3767. }
  3768. inline void FileOptions::clear_has_java_generate_equals_and_hash() {
  3769. _has_bits_[0] &= ~0x00000010u;
  3770. }
  3771. inline void FileOptions::clear_java_generate_equals_and_hash() {
  3772. java_generate_equals_and_hash_ = false;
  3773. clear_has_java_generate_equals_and_hash();
  3774. }
  3775. inline bool FileOptions::java_generate_equals_and_hash() const {
  3776. return java_generate_equals_and_hash_;
  3777. }
  3778. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  3779. set_has_java_generate_equals_and_hash();
  3780. java_generate_equals_and_hash_ = value;
  3781. }
  3782. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3783. inline bool FileOptions::has_optimize_for() const {
  3784. return (_has_bits_[0] & 0x00000020u) != 0;
  3785. }
  3786. inline void FileOptions::set_has_optimize_for() {
  3787. _has_bits_[0] |= 0x00000020u;
  3788. }
  3789. inline void FileOptions::clear_has_optimize_for() {
  3790. _has_bits_[0] &= ~0x00000020u;
  3791. }
  3792. inline void FileOptions::clear_optimize_for() {
  3793. optimize_for_ = 1;
  3794. clear_has_optimize_for();
  3795. }
  3796. inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  3797. return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
  3798. }
  3799. inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
  3800. GOOGLE_DCHECK(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
  3801. set_has_optimize_for();
  3802. optimize_for_ = value;
  3803. }
  3804. // optional bool cc_generic_services = 16 [default = false];
  3805. inline bool FileOptions::has_cc_generic_services() const {
  3806. return (_has_bits_[0] & 0x00000040u) != 0;
  3807. }
  3808. inline void FileOptions::set_has_cc_generic_services() {
  3809. _has_bits_[0] |= 0x00000040u;
  3810. }
  3811. inline void FileOptions::clear_has_cc_generic_services() {
  3812. _has_bits_[0] &= ~0x00000040u;
  3813. }
  3814. inline void FileOptions::clear_cc_generic_services() {
  3815. cc_generic_services_ = false;
  3816. clear_has_cc_generic_services();
  3817. }
  3818. inline bool FileOptions::cc_generic_services() const {
  3819. return cc_generic_services_;
  3820. }
  3821. inline void FileOptions::set_cc_generic_services(bool value) {
  3822. set_has_cc_generic_services();
  3823. cc_generic_services_ = value;
  3824. }
  3825. // optional bool java_generic_services = 17 [default = false];
  3826. inline bool FileOptions::has_java_generic_services() const {
  3827. return (_has_bits_[0] & 0x00000080u) != 0;
  3828. }
  3829. inline void FileOptions::set_has_java_generic_services() {
  3830. _has_bits_[0] |= 0x00000080u;
  3831. }
  3832. inline void FileOptions::clear_has_java_generic_services() {
  3833. _has_bits_[0] &= ~0x00000080u;
  3834. }
  3835. inline void FileOptions::clear_java_generic_services() {
  3836. java_generic_services_ = false;
  3837. clear_has_java_generic_services();
  3838. }
  3839. inline bool FileOptions::java_generic_services() const {
  3840. return java_generic_services_;
  3841. }
  3842. inline void FileOptions::set_java_generic_services(bool value) {
  3843. set_has_java_generic_services();
  3844. java_generic_services_ = value;
  3845. }
  3846. // optional bool py_generic_services = 18 [default = false];
  3847. inline bool FileOptions::has_py_generic_services() const {
  3848. return (_has_bits_[0] & 0x00000100u) != 0;
  3849. }
  3850. inline void FileOptions::set_has_py_generic_services() {
  3851. _has_bits_[0] |= 0x00000100u;
  3852. }
  3853. inline void FileOptions::clear_has_py_generic_services() {
  3854. _has_bits_[0] &= ~0x00000100u;
  3855. }
  3856. inline void FileOptions::clear_py_generic_services() {
  3857. py_generic_services_ = false;
  3858. clear_has_py_generic_services();
  3859. }
  3860. inline bool FileOptions::py_generic_services() const {
  3861. return py_generic_services_;
  3862. }
  3863. inline void FileOptions::set_py_generic_services(bool value) {
  3864. set_has_py_generic_services();
  3865. py_generic_services_ = value;
  3866. }
  3867. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3868. inline int FileOptions::uninterpreted_option_size() const {
  3869. return uninterpreted_option_.size();
  3870. }
  3871. inline void FileOptions::clear_uninterpreted_option() {
  3872. uninterpreted_option_.Clear();
  3873. }
  3874. inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  3875. return uninterpreted_option_.Get(index);
  3876. }
  3877. inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  3878. return uninterpreted_option_.Mutable(index);
  3879. }
  3880. inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  3881. return uninterpreted_option_.Add();
  3882. }
  3883. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3884. FileOptions::uninterpreted_option() const {
  3885. return uninterpreted_option_;
  3886. }
  3887. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3888. FileOptions::mutable_uninterpreted_option() {
  3889. return &uninterpreted_option_;
  3890. }
  3891. // -------------------------------------------------------------------
  3892. // MessageOptions
  3893. // optional bool message_set_wire_format = 1 [default = false];
  3894. inline bool MessageOptions::has_message_set_wire_format() const {
  3895. return (_has_bits_[0] & 0x00000001u) != 0;
  3896. }
  3897. inline void MessageOptions::set_has_message_set_wire_format() {
  3898. _has_bits_[0] |= 0x00000001u;
  3899. }
  3900. inline void MessageOptions::clear_has_message_set_wire_format() {
  3901. _has_bits_[0] &= ~0x00000001u;
  3902. }
  3903. inline void MessageOptions::clear_message_set_wire_format() {
  3904. message_set_wire_format_ = false;
  3905. clear_has_message_set_wire_format();
  3906. }
  3907. inline bool MessageOptions::message_set_wire_format() const {
  3908. return message_set_wire_format_;
  3909. }
  3910. inline void MessageOptions::set_message_set_wire_format(bool value) {
  3911. set_has_message_set_wire_format();
  3912. message_set_wire_format_ = value;
  3913. }
  3914. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  3915. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  3916. return (_has_bits_[0] & 0x00000002u) != 0;
  3917. }
  3918. inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
  3919. _has_bits_[0] |= 0x00000002u;
  3920. }
  3921. inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
  3922. _has_bits_[0] &= ~0x00000002u;
  3923. }
  3924. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  3925. no_standard_descriptor_accessor_ = false;
  3926. clear_has_no_standard_descriptor_accessor();
  3927. }
  3928. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  3929. return no_standard_descriptor_accessor_;
  3930. }
  3931. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  3932. set_has_no_standard_descriptor_accessor();
  3933. no_standard_descriptor_accessor_ = value;
  3934. }
  3935. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3936. inline int MessageOptions::uninterpreted_option_size() const {
  3937. return uninterpreted_option_.size();
  3938. }
  3939. inline void MessageOptions::clear_uninterpreted_option() {
  3940. uninterpreted_option_.Clear();
  3941. }
  3942. inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  3943. return uninterpreted_option_.Get(index);
  3944. }
  3945. inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  3946. return uninterpreted_option_.Mutable(index);
  3947. }
  3948. inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  3949. return uninterpreted_option_.Add();
  3950. }
  3951. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3952. MessageOptions::uninterpreted_option() const {
  3953. return uninterpreted_option_;
  3954. }
  3955. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3956. MessageOptions::mutable_uninterpreted_option() {
  3957. return &uninterpreted_option_;
  3958. }
  3959. // -------------------------------------------------------------------
  3960. // FieldOptions
  3961. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  3962. inline bool FieldOptions::has_ctype() const {
  3963. return (_has_bits_[0] & 0x00000001u) != 0;
  3964. }
  3965. inline void FieldOptions::set_has_ctype() {
  3966. _has_bits_[0] |= 0x00000001u;
  3967. }
  3968. inline void FieldOptions::clear_has_ctype() {
  3969. _has_bits_[0] &= ~0x00000001u;
  3970. }
  3971. inline void FieldOptions::clear_ctype() {
  3972. ctype_ = 0;
  3973. clear_has_ctype();
  3974. }
  3975. inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
  3976. return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
  3977. }
  3978. inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
  3979. GOOGLE_DCHECK(::google::protobuf::FieldOptions_CType_IsValid(value));
  3980. set_has_ctype();
  3981. ctype_ = value;
  3982. }
  3983. // optional bool packed = 2;
  3984. inline bool FieldOptions::has_packed() const {
  3985. return (_has_bits_[0] & 0x00000002u) != 0;
  3986. }
  3987. inline void FieldOptions::set_has_packed() {
  3988. _has_bits_[0] |= 0x00000002u;
  3989. }
  3990. inline void FieldOptions::clear_has_packed() {
  3991. _has_bits_[0] &= ~0x00000002u;
  3992. }
  3993. inline void FieldOptions::clear_packed() {
  3994. packed_ = false;
  3995. clear_has_packed();
  3996. }
  3997. inline bool FieldOptions::packed() const {
  3998. return packed_;
  3999. }
  4000. inline void FieldOptions::set_packed(bool value) {
  4001. set_has_packed();
  4002. packed_ = value;
  4003. }
  4004. // optional bool deprecated = 3 [default = false];
  4005. inline bool FieldOptions::has_deprecated() const {
  4006. return (_has_bits_[0] & 0x00000004u) != 0;
  4007. }
  4008. inline void FieldOptions::set_has_deprecated() {
  4009. _has_bits_[0] |= 0x00000004u;
  4010. }
  4011. inline void FieldOptions::clear_has_deprecated() {
  4012. _has_bits_[0] &= ~0x00000004u;
  4013. }
  4014. inline void FieldOptions::clear_deprecated() {
  4015. deprecated_ = false;
  4016. clear_has_deprecated();
  4017. }
  4018. inline bool FieldOptions::deprecated() const {
  4019. return deprecated_;
  4020. }
  4021. inline void FieldOptions::set_deprecated(bool value) {
  4022. set_has_deprecated();
  4023. deprecated_ = value;
  4024. }
  4025. // optional string experimental_map_key = 9;
  4026. inline bool FieldOptions::has_experimental_map_key() const {
  4027. return (_has_bits_[0] & 0x00000008u) != 0;
  4028. }
  4029. inline void FieldOptions::set_has_experimental_map_key() {
  4030. _has_bits_[0] |= 0x00000008u;
  4031. }
  4032. inline void FieldOptions::clear_has_experimental_map_key() {
  4033. _has_bits_[0] &= ~0x00000008u;
  4034. }
  4035. inline void FieldOptions::clear_experimental_map_key() {
  4036. if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) {
  4037. experimental_map_key_->clear();
  4038. }
  4039. clear_has_experimental_map_key();
  4040. }
  4041. inline const ::std::string& FieldOptions::experimental_map_key() const {
  4042. return *experimental_map_key_;
  4043. }
  4044. inline void FieldOptions::set_experimental_map_key(const ::std::string& value) {
  4045. set_has_experimental_map_key();
  4046. if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
  4047. experimental_map_key_ = new ::std::string;
  4048. }
  4049. experimental_map_key_->assign(value);
  4050. }
  4051. inline void FieldOptions::set_experimental_map_key(const char* value) {
  4052. set_has_experimental_map_key();
  4053. if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
  4054. experimental_map_key_ = new ::std::string;
  4055. }
  4056. experimental_map_key_->assign(value);
  4057. }
  4058. inline void FieldOptions::set_experimental_map_key(const char* value, size_t size) {
  4059. set_has_experimental_map_key();
  4060. if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
  4061. experimental_map_key_ = new ::std::string;
  4062. }
  4063. experimental_map_key_->assign(reinterpret_cast<const char*>(value), size);
  4064. }
  4065. inline ::std::string* FieldOptions::mutable_experimental_map_key() {
  4066. set_has_experimental_map_key();
  4067. if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
  4068. experimental_map_key_ = new ::std::string;
  4069. }
  4070. return experimental_map_key_;
  4071. }
  4072. inline ::std::string* FieldOptions::release_experimental_map_key() {
  4073. clear_has_experimental_map_key();
  4074. if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
  4075. return NULL;
  4076. } else {
  4077. ::std::string* temp = experimental_map_key_;
  4078. experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  4079. return temp;
  4080. }
  4081. }
  4082. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4083. inline int FieldOptions::uninterpreted_option_size() const {
  4084. return uninterpreted_option_.size();
  4085. }
  4086. inline void FieldOptions::clear_uninterpreted_option() {
  4087. uninterpreted_option_.Clear();
  4088. }
  4089. inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  4090. return uninterpreted_option_.Get(index);
  4091. }
  4092. inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  4093. return uninterpreted_option_.Mutable(index);
  4094. }
  4095. inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  4096. return uninterpreted_option_.Add();
  4097. }
  4098. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4099. FieldOptions::uninterpreted_option() const {
  4100. return uninterpreted_option_;
  4101. }
  4102. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4103. FieldOptions::mutable_uninterpreted_option() {
  4104. return &uninterpreted_option_;
  4105. }
  4106. // -------------------------------------------------------------------
  4107. // EnumOptions
  4108. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4109. inline int EnumOptions::uninterpreted_option_size() const {
  4110. return uninterpreted_option_.size();
  4111. }
  4112. inline void EnumOptions::clear_uninterpreted_option() {
  4113. uninterpreted_option_.Clear();
  4114. }
  4115. inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  4116. return uninterpreted_option_.Get(index);
  4117. }
  4118. inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  4119. return uninterpreted_option_.Mutable(index);
  4120. }
  4121. inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  4122. return uninterpreted_option_.Add();
  4123. }
  4124. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4125. EnumOptions::uninterpreted_option() const {
  4126. return uninterpreted_option_;
  4127. }
  4128. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4129. EnumOptions::mutable_uninterpreted_option() {
  4130. return &uninterpreted_option_;
  4131. }
  4132. // -------------------------------------------------------------------
  4133. // EnumValueOptions
  4134. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4135. inline int EnumValueOptions::uninterpreted_option_size() const {
  4136. return uninterpreted_option_.size();
  4137. }
  4138. inline void EnumValueOptions::clear_uninterpreted_option() {
  4139. uninterpreted_option_.Clear();
  4140. }
  4141. inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  4142. return uninterpreted_option_.Get(index);
  4143. }
  4144. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  4145. return uninterpreted_option_.Mutable(index);
  4146. }
  4147. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  4148. return uninterpreted_option_.Add();
  4149. }
  4150. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4151. EnumValueOptions::uninterpreted_option() const {
  4152. return uninterpreted_option_;
  4153. }
  4154. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4155. EnumValueOptions::mutable_uninterpreted_option() {
  4156. return &uninterpreted_option_;
  4157. }
  4158. // -------------------------------------------------------------------
  4159. // ServiceOptions
  4160. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4161. inline int ServiceOptions::uninterpreted_option_size() const {
  4162. return uninterpreted_option_.size();
  4163. }
  4164. inline void ServiceOptions::clear_uninterpreted_option() {
  4165. uninterpreted_option_.Clear();
  4166. }
  4167. inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  4168. return uninterpreted_option_.Get(index);
  4169. }
  4170. inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  4171. return uninterpreted_option_.Mutable(index);
  4172. }
  4173. inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  4174. return uninterpreted_option_.Add();
  4175. }
  4176. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4177. ServiceOptions::uninterpreted_option() const {
  4178. return uninterpreted_option_;
  4179. }
  4180. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4181. ServiceOptions::mutable_uninterpreted_option() {
  4182. return &uninterpreted_option_;
  4183. }
  4184. // -------------------------------------------------------------------
  4185. // MethodOptions
  4186. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4187. inline int MethodOptions::uninterpreted_option_size() const {
  4188. return uninterpreted_option_.size();
  4189. }
  4190. inline void MethodOptions::clear_uninterpreted_option() {
  4191. uninterpreted_option_.Clear();
  4192. }
  4193. inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  4194. return uninterpreted_option_.Get(index);
  4195. }
  4196. inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  4197. return uninterpreted_option_.Mutable(index);
  4198. }
  4199. inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  4200. return uninterpreted_option_.Add();
  4201. }
  4202. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4203. MethodOptions::uninterpreted_option() const {
  4204. return uninterpreted_option_;
  4205. }
  4206. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4207. MethodOptions::mutable_uninterpreted_option() {
  4208. return &uninterpreted_option_;
  4209. }
  4210. // -------------------------------------------------------------------
  4211. // UninterpretedOption_NamePart
  4212. // required string name_part = 1;
  4213. inline bool UninterpretedOption_NamePart::has_name_part() const {
  4214. return (_has_bits_[0] & 0x00000001u) != 0;
  4215. }
  4216. inline void UninterpretedOption_NamePart::set_has_name_part() {
  4217. _has_bits_[0] |= 0x00000001u;
  4218. }
  4219. inline void UninterpretedOption_NamePart::clear_has_name_part() {
  4220. _has_bits_[0] &= ~0x00000001u;
  4221. }
  4222. inline void UninterpretedOption_NamePart::clear_name_part() {
  4223. if (name_part_ != &::google::protobuf::internal::kEmptyString) {
  4224. name_part_->clear();
  4225. }
  4226. clear_has_name_part();
  4227. }
  4228. inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
  4229. return *name_part_;
  4230. }
  4231. inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
  4232. set_has_name_part();
  4233. if (name_part_ == &::google::protobuf::internal::kEmptyString) {
  4234. name_part_ = new ::std::string;
  4235. }
  4236. name_part_->assign(value);
  4237. }
  4238. inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
  4239. set_has_name_part();
  4240. if (name_part_ == &::google::protobuf::internal::kEmptyString) {
  4241. name_part_ = new ::std::string;
  4242. }
  4243. name_part_->assign(value);
  4244. }
  4245. inline void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
  4246. set_has_name_part();
  4247. if (name_part_ == &::google::protobuf::internal::kEmptyString) {
  4248. name_part_ = new ::std::string;
  4249. }
  4250. name_part_->assign(reinterpret_cast<const char*>(value), size);
  4251. }
  4252. inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
  4253. set_has_name_part();
  4254. if (name_part_ == &::google::protobuf::internal::kEmptyString) {
  4255. name_part_ = new ::std::string;
  4256. }
  4257. return name_part_;
  4258. }
  4259. inline ::std::string* UninterpretedOption_NamePart::release_name_part() {
  4260. clear_has_name_part();
  4261. if (name_part_ == &::google::protobuf::internal::kEmptyString) {
  4262. return NULL;
  4263. } else {
  4264. ::std::string* temp = name_part_;
  4265. name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  4266. return temp;
  4267. }
  4268. }
  4269. // required bool is_extension = 2;
  4270. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  4271. return (_has_bits_[0] & 0x00000002u) != 0;
  4272. }
  4273. inline void UninterpretedOption_NamePart::set_has_is_extension() {
  4274. _has_bits_[0] |= 0x00000002u;
  4275. }
  4276. inline void UninterpretedOption_NamePart::clear_has_is_extension() {
  4277. _has_bits_[0] &= ~0x00000002u;
  4278. }
  4279. inline void UninterpretedOption_NamePart::clear_is_extension() {
  4280. is_extension_ = false;
  4281. clear_has_is_extension();
  4282. }
  4283. inline bool UninterpretedOption_NamePart::is_extension() const {
  4284. return is_extension_;
  4285. }
  4286. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  4287. set_has_is_extension();
  4288. is_extension_ = value;
  4289. }
  4290. // -------------------------------------------------------------------
  4291. // UninterpretedOption
  4292. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  4293. inline int UninterpretedOption::name_size() const {
  4294. return name_.size();
  4295. }
  4296. inline void UninterpretedOption::clear_name() {
  4297. name_.Clear();
  4298. }
  4299. inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  4300. return name_.Get(index);
  4301. }
  4302. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  4303. return name_.Mutable(index);
  4304. }
  4305. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  4306. return name_.Add();
  4307. }
  4308. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  4309. UninterpretedOption::name() const {
  4310. return name_;
  4311. }
  4312. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  4313. UninterpretedOption::mutable_name() {
  4314. return &name_;
  4315. }
  4316. // optional string identifier_value = 3;
  4317. inline bool UninterpretedOption::has_identifier_value() const {
  4318. return (_has_bits_[0] & 0x00000002u) != 0;
  4319. }
  4320. inline void UninterpretedOption::set_has_identifier_value() {
  4321. _has_bits_[0] |= 0x00000002u;
  4322. }
  4323. inline void UninterpretedOption::clear_has_identifier_value() {
  4324. _has_bits_[0] &= ~0x00000002u;
  4325. }
  4326. inline void UninterpretedOption::clear_identifier_value() {
  4327. if (identifier_value_ != &::google::protobuf::internal::kEmptyString) {
  4328. identifier_value_->clear();
  4329. }
  4330. clear_has_identifier_value();
  4331. }
  4332. inline const ::std::string& UninterpretedOption::identifier_value() const {
  4333. return *identifier_value_;
  4334. }
  4335. inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
  4336. set_has_identifier_value();
  4337. if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
  4338. identifier_value_ = new ::std::string;
  4339. }
  4340. identifier_value_->assign(value);
  4341. }
  4342. inline void UninterpretedOption::set_identifier_value(const char* value) {
  4343. set_has_identifier_value();
  4344. if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
  4345. identifier_value_ = new ::std::string;
  4346. }
  4347. identifier_value_->assign(value);
  4348. }
  4349. inline void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
  4350. set_has_identifier_value();
  4351. if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
  4352. identifier_value_ = new ::std::string;
  4353. }
  4354. identifier_value_->assign(reinterpret_cast<const char*>(value), size);
  4355. }
  4356. inline ::std::string* UninterpretedOption::mutable_identifier_value() {
  4357. set_has_identifier_value();
  4358. if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
  4359. identifier_value_ = new ::std::string;
  4360. }
  4361. return identifier_value_;
  4362. }
  4363. inline ::std::string* UninterpretedOption::release_identifier_value() {
  4364. clear_has_identifier_value();
  4365. if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
  4366. return NULL;
  4367. } else {
  4368. ::std::string* temp = identifier_value_;
  4369. identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  4370. return temp;
  4371. }
  4372. }
  4373. // optional uint64 positive_int_value = 4;
  4374. inline bool UninterpretedOption::has_positive_int_value() const {
  4375. return (_has_bits_[0] & 0x00000004u) != 0;
  4376. }
  4377. inline void UninterpretedOption::set_has_positive_int_value() {
  4378. _has_bits_[0] |= 0x00000004u;
  4379. }
  4380. inline void UninterpretedOption::clear_has_positive_int_value() {
  4381. _has_bits_[0] &= ~0x00000004u;
  4382. }
  4383. inline void UninterpretedOption::clear_positive_int_value() {
  4384. positive_int_value_ = GOOGLE_ULONGLONG(0);
  4385. clear_has_positive_int_value();
  4386. }
  4387. inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
  4388. return positive_int_value_;
  4389. }
  4390. inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
  4391. set_has_positive_int_value();
  4392. positive_int_value_ = value;
  4393. }
  4394. // optional int64 negative_int_value = 5;
  4395. inline bool UninterpretedOption::has_negative_int_value() const {
  4396. return (_has_bits_[0] & 0x00000008u) != 0;
  4397. }
  4398. inline void UninterpretedOption::set_has_negative_int_value() {
  4399. _has_bits_[0] |= 0x00000008u;
  4400. }
  4401. inline void UninterpretedOption::clear_has_negative_int_value() {
  4402. _has_bits_[0] &= ~0x00000008u;
  4403. }
  4404. inline void UninterpretedOption::clear_negative_int_value() {
  4405. negative_int_value_ = GOOGLE_LONGLONG(0);
  4406. clear_has_negative_int_value();
  4407. }
  4408. inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
  4409. return negative_int_value_;
  4410. }
  4411. inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
  4412. set_has_negative_int_value();
  4413. negative_int_value_ = value;
  4414. }
  4415. // optional double double_value = 6;
  4416. inline bool UninterpretedOption::has_double_value() const {
  4417. return (_has_bits_[0] & 0x00000010u) != 0;
  4418. }
  4419. inline void UninterpretedOption::set_has_double_value() {
  4420. _has_bits_[0] |= 0x00000010u;
  4421. }
  4422. inline void UninterpretedOption::clear_has_double_value() {
  4423. _has_bits_[0] &= ~0x00000010u;
  4424. }
  4425. inline void UninterpretedOption::clear_double_value() {
  4426. double_value_ = 0;
  4427. clear_has_double_value();
  4428. }
  4429. inline double UninterpretedOption::double_value() const {
  4430. return double_value_;
  4431. }
  4432. inline void UninterpretedOption::set_double_value(double value) {
  4433. set_has_double_value();
  4434. double_value_ = value;
  4435. }
  4436. // optional bytes string_value = 7;
  4437. inline bool UninterpretedOption::has_string_value() const {
  4438. return (_has_bits_[0] & 0x00000020u) != 0;
  4439. }
  4440. inline void UninterpretedOption::set_has_string_value() {
  4441. _has_bits_[0] |= 0x00000020u;
  4442. }
  4443. inline void UninterpretedOption::clear_has_string_value() {
  4444. _has_bits_[0] &= ~0x00000020u;
  4445. }
  4446. inline void UninterpretedOption::clear_string_value() {
  4447. if (string_value_ != &::google::protobuf::internal::kEmptyString) {
  4448. string_value_->clear();
  4449. }
  4450. clear_has_string_value();
  4451. }
  4452. inline const ::std::string& UninterpretedOption::string_value() const {
  4453. return *string_value_;
  4454. }
  4455. inline void UninterpretedOption::set_string_value(const ::std::string& value) {
  4456. set_has_string_value();
  4457. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  4458. string_value_ = new ::std::string;
  4459. }
  4460. string_value_->assign(value);
  4461. }
  4462. inline void UninterpretedOption::set_string_value(const char* value) {
  4463. set_has_string_value();
  4464. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  4465. string_value_ = new ::std::string;
  4466. }
  4467. string_value_->assign(value);
  4468. }
  4469. inline void UninterpretedOption::set_string_value(const void* value, size_t size) {
  4470. set_has_string_value();
  4471. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  4472. string_value_ = new ::std::string;
  4473. }
  4474. string_value_->assign(reinterpret_cast<const char*>(value), size);
  4475. }
  4476. inline ::std::string* UninterpretedOption::mutable_string_value() {
  4477. set_has_string_value();
  4478. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  4479. string_value_ = new ::std::string;
  4480. }
  4481. return string_value_;
  4482. }
  4483. inline ::std::string* UninterpretedOption::release_string_value() {
  4484. clear_has_string_value();
  4485. if (string_value_ == &::google::protobuf::internal::kEmptyString) {
  4486. return NULL;
  4487. } else {
  4488. ::std::string* temp = string_value_;
  4489. string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  4490. return temp;
  4491. }
  4492. }
  4493. // optional string aggregate_value = 8;
  4494. inline bool UninterpretedOption::has_aggregate_value() const {
  4495. return (_has_bits_[0] & 0x00000040u) != 0;
  4496. }
  4497. inline void UninterpretedOption::set_has_aggregate_value() {
  4498. _has_bits_[0] |= 0x00000040u;
  4499. }
  4500. inline void UninterpretedOption::clear_has_aggregate_value() {
  4501. _has_bits_[0] &= ~0x00000040u;
  4502. }
  4503. inline void UninterpretedOption::clear_aggregate_value() {
  4504. if (aggregate_value_ != &::google::protobuf::internal::kEmptyString) {
  4505. aggregate_value_->clear();
  4506. }
  4507. clear_has_aggregate_value();
  4508. }
  4509. inline const ::std::string& UninterpretedOption::aggregate_value() const {
  4510. return *aggregate_value_;
  4511. }
  4512. inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
  4513. set_has_aggregate_value();
  4514. if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) {
  4515. aggregate_value_ = new ::std::string;
  4516. }
  4517. aggregate_value_->assign(value);
  4518. }
  4519. inline void UninterpretedOption::set_aggregate_value(const char* value) {
  4520. set_has_aggregate_value();
  4521. if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) {
  4522. aggregate_value_ = new ::std::string;
  4523. }
  4524. aggregate_value_->assign(value);
  4525. }
  4526. inline void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
  4527. set_has_aggregate_value();
  4528. if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) {
  4529. aggregate_value_ = new ::std::string;
  4530. }
  4531. aggregate_value_->assign(reinterpret_cast<const char*>(value), size);
  4532. }
  4533. inline ::std::string* UninterpretedOption::mutable_aggregate_value() {
  4534. set_has_aggregate_value();
  4535. if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) {
  4536. aggregate_value_ = new ::std::string;
  4537. }
  4538. return aggregate_value_;
  4539. }
  4540. inline ::std::string* UninterpretedOption::release_aggregate_value() {
  4541. clear_has_aggregate_value();
  4542. if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) {
  4543. return NULL;
  4544. } else {
  4545. ::std::string* temp = aggregate_value_;
  4546. aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  4547. return temp;
  4548. }
  4549. }
  4550. // -------------------------------------------------------------------
  4551. // SourceCodeInfo_Location
  4552. // repeated int32 path = 1 [packed = true];
  4553. inline int SourceCodeInfo_Location::path_size() const {
  4554. return path_.size();
  4555. }
  4556. inline void SourceCodeInfo_Location::clear_path() {
  4557. path_.Clear();
  4558. }
  4559. inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
  4560. return path_.Get(index);
  4561. }
  4562. inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
  4563. path_.Set(index, value);
  4564. }
  4565. inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
  4566. path_.Add(value);
  4567. }
  4568. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4569. SourceCodeInfo_Location::path() const {
  4570. return path_;
  4571. }
  4572. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4573. SourceCodeInfo_Location::mutable_path() {
  4574. return &path_;
  4575. }
  4576. // repeated int32 span = 2 [packed = true];
  4577. inline int SourceCodeInfo_Location::span_size() const {
  4578. return span_.size();
  4579. }
  4580. inline void SourceCodeInfo_Location::clear_span() {
  4581. span_.Clear();
  4582. }
  4583. inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
  4584. return span_.Get(index);
  4585. }
  4586. inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
  4587. span_.Set(index, value);
  4588. }
  4589. inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
  4590. span_.Add(value);
  4591. }
  4592. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4593. SourceCodeInfo_Location::span() const {
  4594. return span_;
  4595. }
  4596. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4597. SourceCodeInfo_Location::mutable_span() {
  4598. return &span_;
  4599. }
  4600. // -------------------------------------------------------------------
  4601. // SourceCodeInfo
  4602. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  4603. inline int SourceCodeInfo::location_size() const {
  4604. return location_.size();
  4605. }
  4606. inline void SourceCodeInfo::clear_location() {
  4607. location_.Clear();
  4608. }
  4609. inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  4610. return location_.Get(index);
  4611. }
  4612. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  4613. return location_.Mutable(index);
  4614. }
  4615. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  4616. return location_.Add();
  4617. }
  4618. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  4619. SourceCodeInfo::location() const {
  4620. return location_;
  4621. }
  4622. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  4623. SourceCodeInfo::mutable_location() {
  4624. return &location_;
  4625. }
  4626. // @@protoc_insertion_point(namespace_scope)
  4627. } // namespace protobuf
  4628. } // namespace google
  4629. #ifndef SWIG
  4630. namespace google {
  4631. namespace protobuf {
  4632. template <>
  4633. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
  4634. return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
  4635. }
  4636. template <>
  4637. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
  4638. return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
  4639. }
  4640. template <>
  4641. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
  4642. return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
  4643. }
  4644. template <>
  4645. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() {
  4646. return ::google::protobuf::FieldOptions_CType_descriptor();
  4647. }
  4648. } // namespace google
  4649. } // namespace protobuf
  4650. #endif // SWIG
  4651. // @@protoc_insertion_point(global_scope)
  4652. #endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED