PageRenderTime 82ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 1ms

/src/google/protobuf/descriptor.pb.h

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