plugin.pb.h 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/compiler/plugin.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  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 3006001 < 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/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include <google/protobuf/descriptor.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto LIBPROTOC_EXPORT
  31. #ifdef major
  32. #undef major
  33. #endif
  34. #ifdef minor
  35. #undef minor
  36. #endif
  37. namespace protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto {
  38. // Internal implementation detail -- do not use these members.
  39. struct LIBPROTOC_EXPORT TableStruct {
  40. static const ::google::protobuf::internal::ParseTableField entries[];
  41. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  42. static const ::google::protobuf::internal::ParseTable schema[4];
  43. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  44. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  45. static const ::google::protobuf::uint32 offsets[];
  46. };
  47. void LIBPROTOC_EXPORT AddDescriptors();
  48. } // namespace protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  49. namespace google {
  50. namespace protobuf {
  51. namespace compiler {
  52. class CodeGeneratorRequest;
  53. class CodeGeneratorRequestDefaultTypeInternal;
  54. LIBPROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
  55. class CodeGeneratorResponse;
  56. class CodeGeneratorResponseDefaultTypeInternal;
  57. LIBPROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
  58. class CodeGeneratorResponse_File;
  59. class CodeGeneratorResponse_FileDefaultTypeInternal;
  60. LIBPROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
  61. class Version;
  62. class VersionDefaultTypeInternal;
  63. LIBPROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_;
  64. } // namespace compiler
  65. } // namespace protobuf
  66. } // namespace google
  67. namespace google {
  68. namespace protobuf {
  69. template<> LIBPROTOC_EXPORT ::google::protobuf::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage<::google::protobuf::compiler::CodeGeneratorRequest>(Arena*);
  70. template<> LIBPROTOC_EXPORT ::google::protobuf::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage<::google::protobuf::compiler::CodeGeneratorResponse>(Arena*);
  71. template<> LIBPROTOC_EXPORT ::google::protobuf::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage<::google::protobuf::compiler::CodeGeneratorResponse_File>(Arena*);
  72. template<> LIBPROTOC_EXPORT ::google::protobuf::compiler::Version* Arena::CreateMaybeMessage<::google::protobuf::compiler::Version>(Arena*);
  73. } // namespace protobuf
  74. } // namespace google
  75. namespace google {
  76. namespace protobuf {
  77. namespace compiler {
  78. // ===================================================================
  79. class LIBPROTOC_EXPORT Version : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ {
  80. public:
  81. Version();
  82. virtual ~Version();
  83. Version(const Version& from);
  84. inline Version& operator=(const Version& from) {
  85. CopyFrom(from);
  86. return *this;
  87. }
  88. #if LANG_CXX11
  89. Version(Version&& from) noexcept
  90. : Version() {
  91. *this = ::std::move(from);
  92. }
  93. inline Version& operator=(Version&& from) noexcept {
  94. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  95. if (this != &from) InternalSwap(&from);
  96. } else {
  97. CopyFrom(from);
  98. }
  99. return *this;
  100. }
  101. #endif
  102. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  103. return _internal_metadata_.unknown_fields();
  104. }
  105. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  106. return _internal_metadata_.mutable_unknown_fields();
  107. }
  108. static const ::google::protobuf::Descriptor* descriptor();
  109. static const Version& default_instance();
  110. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  111. static inline const Version* internal_default_instance() {
  112. return reinterpret_cast<const Version*>(
  113. &_Version_default_instance_);
  114. }
  115. static constexpr int kIndexInFileMessages =
  116. 0;
  117. void Swap(Version* other);
  118. friend void swap(Version& a, Version& b) {
  119. a.Swap(&b);
  120. }
  121. // implements Message ----------------------------------------------
  122. inline Version* New() const final {
  123. return CreateMaybeMessage<Version>(NULL);
  124. }
  125. Version* New(::google::protobuf::Arena* arena) const final {
  126. return CreateMaybeMessage<Version>(arena);
  127. }
  128. void CopyFrom(const ::google::protobuf::Message& from) final;
  129. void MergeFrom(const ::google::protobuf::Message& from) final;
  130. void CopyFrom(const Version& from);
  131. void MergeFrom(const Version& from);
  132. void Clear() final;
  133. bool IsInitialized() const final;
  134. size_t ByteSizeLong() const final;
  135. bool MergePartialFromCodedStream(
  136. ::google::protobuf::io::CodedInputStream* input) final;
  137. void SerializeWithCachedSizes(
  138. ::google::protobuf::io::CodedOutputStream* output) const final;
  139. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  140. bool deterministic, ::google::protobuf::uint8* target) const final;
  141. int GetCachedSize() const final { return _cached_size_.Get(); }
  142. private:
  143. void SharedCtor();
  144. void SharedDtor();
  145. void SetCachedSize(int size) const final;
  146. void InternalSwap(Version* other);
  147. private:
  148. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  149. return NULL;
  150. }
  151. inline void* MaybeArenaPtr() const {
  152. return NULL;
  153. }
  154. public:
  155. ::google::protobuf::Metadata GetMetadata() const final;
  156. // nested types ----------------------------------------------------
  157. // accessors -------------------------------------------------------
  158. // optional string suffix = 4;
  159. bool has_suffix() const;
  160. void clear_suffix();
  161. static const int kSuffixFieldNumber = 4;
  162. const ::std::string& suffix() const;
  163. void set_suffix(const ::std::string& value);
  164. #if LANG_CXX11
  165. void set_suffix(::std::string&& value);
  166. #endif
  167. void set_suffix(const char* value);
  168. void set_suffix(const char* value, size_t size);
  169. ::std::string* mutable_suffix();
  170. ::std::string* release_suffix();
  171. void set_allocated_suffix(::std::string* suffix);
  172. // optional int32 major = 1;
  173. bool has_major() const;
  174. void clear_major();
  175. static const int kMajorFieldNumber = 1;
  176. ::google::protobuf::int32 major() const;
  177. void set_major(::google::protobuf::int32 value);
  178. // optional int32 minor = 2;
  179. bool has_minor() const;
  180. void clear_minor();
  181. static const int kMinorFieldNumber = 2;
  182. ::google::protobuf::int32 minor() const;
  183. void set_minor(::google::protobuf::int32 value);
  184. // optional int32 patch = 3;
  185. bool has_patch() const;
  186. void clear_patch();
  187. static const int kPatchFieldNumber = 3;
  188. ::google::protobuf::int32 patch() const;
  189. void set_patch(::google::protobuf::int32 value);
  190. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
  191. private:
  192. void set_has_major();
  193. void clear_has_major();
  194. void set_has_minor();
  195. void clear_has_minor();
  196. void set_has_patch();
  197. void clear_has_patch();
  198. void set_has_suffix();
  199. void clear_has_suffix();
  200. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  201. ::google::protobuf::internal::HasBits<1> _has_bits_;
  202. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  203. ::google::protobuf::internal::ArenaStringPtr suffix_;
  204. ::google::protobuf::int32 major_;
  205. ::google::protobuf::int32 minor_;
  206. ::google::protobuf::int32 patch_;
  207. friend struct ::protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto::TableStruct;
  208. };
  209. // -------------------------------------------------------------------
  210. class LIBPROTOC_EXPORT CodeGeneratorRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ {
  211. public:
  212. CodeGeneratorRequest();
  213. virtual ~CodeGeneratorRequest();
  214. CodeGeneratorRequest(const CodeGeneratorRequest& from);
  215. inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
  216. CopyFrom(from);
  217. return *this;
  218. }
  219. #if LANG_CXX11
  220. CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept
  221. : CodeGeneratorRequest() {
  222. *this = ::std::move(from);
  223. }
  224. inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept {
  225. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  226. if (this != &from) InternalSwap(&from);
  227. } else {
  228. CopyFrom(from);
  229. }
  230. return *this;
  231. }
  232. #endif
  233. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  234. return _internal_metadata_.unknown_fields();
  235. }
  236. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  237. return _internal_metadata_.mutable_unknown_fields();
  238. }
  239. static const ::google::protobuf::Descriptor* descriptor();
  240. static const CodeGeneratorRequest& default_instance();
  241. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  242. static inline const CodeGeneratorRequest* internal_default_instance() {
  243. return reinterpret_cast<const CodeGeneratorRequest*>(
  244. &_CodeGeneratorRequest_default_instance_);
  245. }
  246. static constexpr int kIndexInFileMessages =
  247. 1;
  248. void Swap(CodeGeneratorRequest* other);
  249. friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b) {
  250. a.Swap(&b);
  251. }
  252. // implements Message ----------------------------------------------
  253. inline CodeGeneratorRequest* New() const final {
  254. return CreateMaybeMessage<CodeGeneratorRequest>(NULL);
  255. }
  256. CodeGeneratorRequest* New(::google::protobuf::Arena* arena) const final {
  257. return CreateMaybeMessage<CodeGeneratorRequest>(arena);
  258. }
  259. void CopyFrom(const ::google::protobuf::Message& from) final;
  260. void MergeFrom(const ::google::protobuf::Message& from) final;
  261. void CopyFrom(const CodeGeneratorRequest& from);
  262. void MergeFrom(const CodeGeneratorRequest& from);
  263. void Clear() final;
  264. bool IsInitialized() const final;
  265. size_t ByteSizeLong() const final;
  266. bool MergePartialFromCodedStream(
  267. ::google::protobuf::io::CodedInputStream* input) final;
  268. void SerializeWithCachedSizes(
  269. ::google::protobuf::io::CodedOutputStream* output) const final;
  270. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  271. bool deterministic, ::google::protobuf::uint8* target) const final;
  272. int GetCachedSize() const final { return _cached_size_.Get(); }
  273. private:
  274. void SharedCtor();
  275. void SharedDtor();
  276. void SetCachedSize(int size) const final;
  277. void InternalSwap(CodeGeneratorRequest* other);
  278. private:
  279. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  280. return NULL;
  281. }
  282. inline void* MaybeArenaPtr() const {
  283. return NULL;
  284. }
  285. public:
  286. ::google::protobuf::Metadata GetMetadata() const final;
  287. // nested types ----------------------------------------------------
  288. // accessors -------------------------------------------------------
  289. // repeated string file_to_generate = 1;
  290. int file_to_generate_size() const;
  291. void clear_file_to_generate();
  292. static const int kFileToGenerateFieldNumber = 1;
  293. const ::std::string& file_to_generate(int index) const;
  294. ::std::string* mutable_file_to_generate(int index);
  295. void set_file_to_generate(int index, const ::std::string& value);
  296. #if LANG_CXX11
  297. void set_file_to_generate(int index, ::std::string&& value);
  298. #endif
  299. void set_file_to_generate(int index, const char* value);
  300. void set_file_to_generate(int index, const char* value, size_t size);
  301. ::std::string* add_file_to_generate();
  302. void add_file_to_generate(const ::std::string& value);
  303. #if LANG_CXX11
  304. void add_file_to_generate(::std::string&& value);
  305. #endif
  306. void add_file_to_generate(const char* value);
  307. void add_file_to_generate(const char* value, size_t size);
  308. const ::google::protobuf::RepeatedPtrField< ::std::string>& file_to_generate() const;
  309. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_file_to_generate();
  310. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  311. int proto_file_size() const;
  312. void clear_proto_file();
  313. static const int kProtoFileFieldNumber = 15;
  314. ::google::protobuf::FileDescriptorProto* mutable_proto_file(int index);
  315. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  316. mutable_proto_file();
  317. const ::google::protobuf::FileDescriptorProto& proto_file(int index) const;
  318. ::google::protobuf::FileDescriptorProto* add_proto_file();
  319. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  320. proto_file() const;
  321. // optional string parameter = 2;
  322. bool has_parameter() const;
  323. void clear_parameter();
  324. static const int kParameterFieldNumber = 2;
  325. const ::std::string& parameter() const;
  326. void set_parameter(const ::std::string& value);
  327. #if LANG_CXX11
  328. void set_parameter(::std::string&& value);
  329. #endif
  330. void set_parameter(const char* value);
  331. void set_parameter(const char* value, size_t size);
  332. ::std::string* mutable_parameter();
  333. ::std::string* release_parameter();
  334. void set_allocated_parameter(::std::string* parameter);
  335. // optional .google.protobuf.compiler.Version compiler_version = 3;
  336. bool has_compiler_version() const;
  337. void clear_compiler_version();
  338. static const int kCompilerVersionFieldNumber = 3;
  339. private:
  340. const ::google::protobuf::compiler::Version& _internal_compiler_version() const;
  341. public:
  342. const ::google::protobuf::compiler::Version& compiler_version() const;
  343. ::google::protobuf::compiler::Version* release_compiler_version();
  344. ::google::protobuf::compiler::Version* mutable_compiler_version();
  345. void set_allocated_compiler_version(::google::protobuf::compiler::Version* compiler_version);
  346. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  347. private:
  348. void set_has_parameter();
  349. void clear_has_parameter();
  350. void set_has_compiler_version();
  351. void clear_has_compiler_version();
  352. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  353. ::google::protobuf::internal::HasBits<1> _has_bits_;
  354. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  355. ::google::protobuf::RepeatedPtrField< ::std::string> file_to_generate_;
  356. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > proto_file_;
  357. ::google::protobuf::internal::ArenaStringPtr parameter_;
  358. ::google::protobuf::compiler::Version* compiler_version_;
  359. friend struct ::protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto::TableStruct;
  360. };
  361. // -------------------------------------------------------------------
  362. class LIBPROTOC_EXPORT CodeGeneratorResponse_File : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ {
  363. public:
  364. CodeGeneratorResponse_File();
  365. virtual ~CodeGeneratorResponse_File();
  366. CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
  367. inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
  368. CopyFrom(from);
  369. return *this;
  370. }
  371. #if LANG_CXX11
  372. CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept
  373. : CodeGeneratorResponse_File() {
  374. *this = ::std::move(from);
  375. }
  376. inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept {
  377. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  378. if (this != &from) InternalSwap(&from);
  379. } else {
  380. CopyFrom(from);
  381. }
  382. return *this;
  383. }
  384. #endif
  385. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  386. return _internal_metadata_.unknown_fields();
  387. }
  388. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  389. return _internal_metadata_.mutable_unknown_fields();
  390. }
  391. static const ::google::protobuf::Descriptor* descriptor();
  392. static const CodeGeneratorResponse_File& default_instance();
  393. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  394. static inline const CodeGeneratorResponse_File* internal_default_instance() {
  395. return reinterpret_cast<const CodeGeneratorResponse_File*>(
  396. &_CodeGeneratorResponse_File_default_instance_);
  397. }
  398. static constexpr int kIndexInFileMessages =
  399. 2;
  400. void Swap(CodeGeneratorResponse_File* other);
  401. friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b) {
  402. a.Swap(&b);
  403. }
  404. // implements Message ----------------------------------------------
  405. inline CodeGeneratorResponse_File* New() const final {
  406. return CreateMaybeMessage<CodeGeneratorResponse_File>(NULL);
  407. }
  408. CodeGeneratorResponse_File* New(::google::protobuf::Arena* arena) const final {
  409. return CreateMaybeMessage<CodeGeneratorResponse_File>(arena);
  410. }
  411. void CopyFrom(const ::google::protobuf::Message& from) final;
  412. void MergeFrom(const ::google::protobuf::Message& from) final;
  413. void CopyFrom(const CodeGeneratorResponse_File& from);
  414. void MergeFrom(const CodeGeneratorResponse_File& from);
  415. void Clear() final;
  416. bool IsInitialized() const final;
  417. size_t ByteSizeLong() const final;
  418. bool MergePartialFromCodedStream(
  419. ::google::protobuf::io::CodedInputStream* input) final;
  420. void SerializeWithCachedSizes(
  421. ::google::protobuf::io::CodedOutputStream* output) const final;
  422. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  423. bool deterministic, ::google::protobuf::uint8* target) const final;
  424. int GetCachedSize() const final { return _cached_size_.Get(); }
  425. private:
  426. void SharedCtor();
  427. void SharedDtor();
  428. void SetCachedSize(int size) const final;
  429. void InternalSwap(CodeGeneratorResponse_File* other);
  430. private:
  431. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  432. return NULL;
  433. }
  434. inline void* MaybeArenaPtr() const {
  435. return NULL;
  436. }
  437. public:
  438. ::google::protobuf::Metadata GetMetadata() const final;
  439. // nested types ----------------------------------------------------
  440. // accessors -------------------------------------------------------
  441. // optional string name = 1;
  442. bool has_name() const;
  443. void clear_name();
  444. static const int kNameFieldNumber = 1;
  445. const ::std::string& name() const;
  446. void set_name(const ::std::string& value);
  447. #if LANG_CXX11
  448. void set_name(::std::string&& value);
  449. #endif
  450. void set_name(const char* value);
  451. void set_name(const char* value, size_t size);
  452. ::std::string* mutable_name();
  453. ::std::string* release_name();
  454. void set_allocated_name(::std::string* name);
  455. // optional string insertion_point = 2;
  456. bool has_insertion_point() const;
  457. void clear_insertion_point();
  458. static const int kInsertionPointFieldNumber = 2;
  459. const ::std::string& insertion_point() const;
  460. void set_insertion_point(const ::std::string& value);
  461. #if LANG_CXX11
  462. void set_insertion_point(::std::string&& value);
  463. #endif
  464. void set_insertion_point(const char* value);
  465. void set_insertion_point(const char* value, size_t size);
  466. ::std::string* mutable_insertion_point();
  467. ::std::string* release_insertion_point();
  468. void set_allocated_insertion_point(::std::string* insertion_point);
  469. // optional string content = 15;
  470. bool has_content() const;
  471. void clear_content();
  472. static const int kContentFieldNumber = 15;
  473. const ::std::string& content() const;
  474. void set_content(const ::std::string& value);
  475. #if LANG_CXX11
  476. void set_content(::std::string&& value);
  477. #endif
  478. void set_content(const char* value);
  479. void set_content(const char* value, size_t size);
  480. ::std::string* mutable_content();
  481. ::std::string* release_content();
  482. void set_allocated_content(::std::string* content);
  483. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  484. private:
  485. void set_has_name();
  486. void clear_has_name();
  487. void set_has_insertion_point();
  488. void clear_has_insertion_point();
  489. void set_has_content();
  490. void clear_has_content();
  491. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  492. ::google::protobuf::internal::HasBits<1> _has_bits_;
  493. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  494. ::google::protobuf::internal::ArenaStringPtr name_;
  495. ::google::protobuf::internal::ArenaStringPtr insertion_point_;
  496. ::google::protobuf::internal::ArenaStringPtr content_;
  497. friend struct ::protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto::TableStruct;
  498. };
  499. // -------------------------------------------------------------------
  500. class LIBPROTOC_EXPORT CodeGeneratorResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ {
  501. public:
  502. CodeGeneratorResponse();
  503. virtual ~CodeGeneratorResponse();
  504. CodeGeneratorResponse(const CodeGeneratorResponse& from);
  505. inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
  506. CopyFrom(from);
  507. return *this;
  508. }
  509. #if LANG_CXX11
  510. CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept
  511. : CodeGeneratorResponse() {
  512. *this = ::std::move(from);
  513. }
  514. inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept {
  515. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  516. if (this != &from) InternalSwap(&from);
  517. } else {
  518. CopyFrom(from);
  519. }
  520. return *this;
  521. }
  522. #endif
  523. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  524. return _internal_metadata_.unknown_fields();
  525. }
  526. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  527. return _internal_metadata_.mutable_unknown_fields();
  528. }
  529. static const ::google::protobuf::Descriptor* descriptor();
  530. static const CodeGeneratorResponse& default_instance();
  531. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  532. static inline const CodeGeneratorResponse* internal_default_instance() {
  533. return reinterpret_cast<const CodeGeneratorResponse*>(
  534. &_CodeGeneratorResponse_default_instance_);
  535. }
  536. static constexpr int kIndexInFileMessages =
  537. 3;
  538. void Swap(CodeGeneratorResponse* other);
  539. friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b) {
  540. a.Swap(&b);
  541. }
  542. // implements Message ----------------------------------------------
  543. inline CodeGeneratorResponse* New() const final {
  544. return CreateMaybeMessage<CodeGeneratorResponse>(NULL);
  545. }
  546. CodeGeneratorResponse* New(::google::protobuf::Arena* arena) const final {
  547. return CreateMaybeMessage<CodeGeneratorResponse>(arena);
  548. }
  549. void CopyFrom(const ::google::protobuf::Message& from) final;
  550. void MergeFrom(const ::google::protobuf::Message& from) final;
  551. void CopyFrom(const CodeGeneratorResponse& from);
  552. void MergeFrom(const CodeGeneratorResponse& from);
  553. void Clear() final;
  554. bool IsInitialized() const final;
  555. size_t ByteSizeLong() const final;
  556. bool MergePartialFromCodedStream(
  557. ::google::protobuf::io::CodedInputStream* input) final;
  558. void SerializeWithCachedSizes(
  559. ::google::protobuf::io::CodedOutputStream* output) const final;
  560. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  561. bool deterministic, ::google::protobuf::uint8* target) const final;
  562. int GetCachedSize() const final { return _cached_size_.Get(); }
  563. private:
  564. void SharedCtor();
  565. void SharedDtor();
  566. void SetCachedSize(int size) const final;
  567. void InternalSwap(CodeGeneratorResponse* other);
  568. private:
  569. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  570. return NULL;
  571. }
  572. inline void* MaybeArenaPtr() const {
  573. return NULL;
  574. }
  575. public:
  576. ::google::protobuf::Metadata GetMetadata() const final;
  577. // nested types ----------------------------------------------------
  578. typedef CodeGeneratorResponse_File File;
  579. // accessors -------------------------------------------------------
  580. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  581. int file_size() const;
  582. void clear_file();
  583. static const int kFileFieldNumber = 15;
  584. ::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index);
  585. ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
  586. mutable_file();
  587. const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const;
  588. ::google::protobuf::compiler::CodeGeneratorResponse_File* add_file();
  589. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
  590. file() const;
  591. // optional string error = 1;
  592. bool has_error() const;
  593. void clear_error();
  594. static const int kErrorFieldNumber = 1;
  595. const ::std::string& error() const;
  596. void set_error(const ::std::string& value);
  597. #if LANG_CXX11
  598. void set_error(::std::string&& value);
  599. #endif
  600. void set_error(const char* value);
  601. void set_error(const char* value, size_t size);
  602. ::std::string* mutable_error();
  603. ::std::string* release_error();
  604. void set_allocated_error(::std::string* error);
  605. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  606. private:
  607. void set_has_error();
  608. void clear_has_error();
  609. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  610. ::google::protobuf::internal::HasBits<1> _has_bits_;
  611. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  612. ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_;
  613. ::google::protobuf::internal::ArenaStringPtr error_;
  614. friend struct ::protobuf_google_2fprotobuf_2fcompiler_2fplugin_2eproto::TableStruct;
  615. };
  616. // ===================================================================
  617. // ===================================================================
  618. #ifdef __GNUC__
  619. #pragma GCC diagnostic push
  620. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  621. #endif // __GNUC__
  622. // Version
  623. // optional int32 major = 1;
  624. inline bool Version::has_major() const {
  625. return (_has_bits_[0] & 0x00000002u) != 0;
  626. }
  627. inline void Version::set_has_major() {
  628. _has_bits_[0] |= 0x00000002u;
  629. }
  630. inline void Version::clear_has_major() {
  631. _has_bits_[0] &= ~0x00000002u;
  632. }
  633. inline void Version::clear_major() {
  634. major_ = 0;
  635. clear_has_major();
  636. }
  637. inline ::google::protobuf::int32 Version::major() const {
  638. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
  639. return major_;
  640. }
  641. inline void Version::set_major(::google::protobuf::int32 value) {
  642. set_has_major();
  643. major_ = value;
  644. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major)
  645. }
  646. // optional int32 minor = 2;
  647. inline bool Version::has_minor() const {
  648. return (_has_bits_[0] & 0x00000004u) != 0;
  649. }
  650. inline void Version::set_has_minor() {
  651. _has_bits_[0] |= 0x00000004u;
  652. }
  653. inline void Version::clear_has_minor() {
  654. _has_bits_[0] &= ~0x00000004u;
  655. }
  656. inline void Version::clear_minor() {
  657. minor_ = 0;
  658. clear_has_minor();
  659. }
  660. inline ::google::protobuf::int32 Version::minor() const {
  661. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
  662. return minor_;
  663. }
  664. inline void Version::set_minor(::google::protobuf::int32 value) {
  665. set_has_minor();
  666. minor_ = value;
  667. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor)
  668. }
  669. // optional int32 patch = 3;
  670. inline bool Version::has_patch() const {
  671. return (_has_bits_[0] & 0x00000008u) != 0;
  672. }
  673. inline void Version::set_has_patch() {
  674. _has_bits_[0] |= 0x00000008u;
  675. }
  676. inline void Version::clear_has_patch() {
  677. _has_bits_[0] &= ~0x00000008u;
  678. }
  679. inline void Version::clear_patch() {
  680. patch_ = 0;
  681. clear_has_patch();
  682. }
  683. inline ::google::protobuf::int32 Version::patch() const {
  684. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch)
  685. return patch_;
  686. }
  687. inline void Version::set_patch(::google::protobuf::int32 value) {
  688. set_has_patch();
  689. patch_ = value;
  690. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch)
  691. }
  692. // optional string suffix = 4;
  693. inline bool Version::has_suffix() const {
  694. return (_has_bits_[0] & 0x00000001u) != 0;
  695. }
  696. inline void Version::set_has_suffix() {
  697. _has_bits_[0] |= 0x00000001u;
  698. }
  699. inline void Version::clear_has_suffix() {
  700. _has_bits_[0] &= ~0x00000001u;
  701. }
  702. inline void Version::clear_suffix() {
  703. suffix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  704. clear_has_suffix();
  705. }
  706. inline const ::std::string& Version::suffix() const {
  707. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
  708. return suffix_.GetNoArena();
  709. }
  710. inline void Version::set_suffix(const ::std::string& value) {
  711. set_has_suffix();
  712. suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  713. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
  714. }
  715. #if LANG_CXX11
  716. inline void Version::set_suffix(::std::string&& value) {
  717. set_has_suffix();
  718. suffix_.SetNoArena(
  719. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  720. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.Version.suffix)
  721. }
  722. #endif
  723. inline void Version::set_suffix(const char* value) {
  724. GOOGLE_DCHECK(value != NULL);
  725. set_has_suffix();
  726. suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  727. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.Version.suffix)
  728. }
  729. inline void Version::set_suffix(const char* value, size_t size) {
  730. set_has_suffix();
  731. suffix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  732. ::std::string(reinterpret_cast<const char*>(value), size));
  733. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.Version.suffix)
  734. }
  735. inline ::std::string* Version::mutable_suffix() {
  736. set_has_suffix();
  737. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix)
  738. return suffix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  739. }
  740. inline ::std::string* Version::release_suffix() {
  741. // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suffix)
  742. if (!has_suffix()) {
  743. return NULL;
  744. }
  745. clear_has_suffix();
  746. return suffix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  747. }
  748. inline void Version::set_allocated_suffix(::std::string* suffix) {
  749. if (suffix != NULL) {
  750. set_has_suffix();
  751. } else {
  752. clear_has_suffix();
  753. }
  754. suffix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), suffix);
  755. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Version.suffix)
  756. }
  757. // -------------------------------------------------------------------
  758. // CodeGeneratorRequest
  759. // repeated string file_to_generate = 1;
  760. inline int CodeGeneratorRequest::file_to_generate_size() const {
  761. return file_to_generate_.size();
  762. }
  763. inline void CodeGeneratorRequest::clear_file_to_generate() {
  764. file_to_generate_.Clear();
  765. }
  766. inline const ::std::string& CodeGeneratorRequest::file_to_generate(int index) const {
  767. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  768. return file_to_generate_.Get(index);
  769. }
  770. inline ::std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
  771. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  772. return file_to_generate_.Mutable(index);
  773. }
  774. inline void CodeGeneratorRequest::set_file_to_generate(int index, const ::std::string& value) {
  775. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  776. file_to_generate_.Mutable(index)->assign(value);
  777. }
  778. #if LANG_CXX11
  779. inline void CodeGeneratorRequest::set_file_to_generate(int index, ::std::string&& value) {
  780. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  781. file_to_generate_.Mutable(index)->assign(std::move(value));
  782. }
  783. #endif
  784. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
  785. GOOGLE_DCHECK(value != NULL);
  786. file_to_generate_.Mutable(index)->assign(value);
  787. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  788. }
  789. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
  790. file_to_generate_.Mutable(index)->assign(
  791. reinterpret_cast<const char*>(value), size);
  792. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  793. }
  794. inline ::std::string* CodeGeneratorRequest::add_file_to_generate() {
  795. // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  796. return file_to_generate_.Add();
  797. }
  798. inline void CodeGeneratorRequest::add_file_to_generate(const ::std::string& value) {
  799. file_to_generate_.Add()->assign(value);
  800. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  801. }
  802. #if LANG_CXX11
  803. inline void CodeGeneratorRequest::add_file_to_generate(::std::string&& value) {
  804. file_to_generate_.Add(std::move(value));
  805. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  806. }
  807. #endif
  808. inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
  809. GOOGLE_DCHECK(value != NULL);
  810. file_to_generate_.Add()->assign(value);
  811. // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  812. }
  813. inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
  814. file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
  815. // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  816. }
  817. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  818. CodeGeneratorRequest::file_to_generate() const {
  819. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  820. return file_to_generate_;
  821. }
  822. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  823. CodeGeneratorRequest::mutable_file_to_generate() {
  824. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  825. return &file_to_generate_;
  826. }
  827. // optional string parameter = 2;
  828. inline bool CodeGeneratorRequest::has_parameter() const {
  829. return (_has_bits_[0] & 0x00000001u) != 0;
  830. }
  831. inline void CodeGeneratorRequest::set_has_parameter() {
  832. _has_bits_[0] |= 0x00000001u;
  833. }
  834. inline void CodeGeneratorRequest::clear_has_parameter() {
  835. _has_bits_[0] &= ~0x00000001u;
  836. }
  837. inline void CodeGeneratorRequest::clear_parameter() {
  838. parameter_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  839. clear_has_parameter();
  840. }
  841. inline const ::std::string& CodeGeneratorRequest::parameter() const {
  842. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  843. return parameter_.GetNoArena();
  844. }
  845. inline void CodeGeneratorRequest::set_parameter(const ::std::string& value) {
  846. set_has_parameter();
  847. parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  848. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  849. }
  850. #if LANG_CXX11
  851. inline void CodeGeneratorRequest::set_parameter(::std::string&& value) {
  852. set_has_parameter();
  853. parameter_.SetNoArena(
  854. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  855. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  856. }
  857. #endif
  858. inline void CodeGeneratorRequest::set_parameter(const char* value) {
  859. GOOGLE_DCHECK(value != NULL);
  860. set_has_parameter();
  861. parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  862. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  863. }
  864. inline void CodeGeneratorRequest::set_parameter(const char* value, size_t size) {
  865. set_has_parameter();
  866. parameter_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  867. ::std::string(reinterpret_cast<const char*>(value), size));
  868. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  869. }
  870. inline ::std::string* CodeGeneratorRequest::mutable_parameter() {
  871. set_has_parameter();
  872. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  873. return parameter_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  874. }
  875. inline ::std::string* CodeGeneratorRequest::release_parameter() {
  876. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  877. if (!has_parameter()) {
  878. return NULL;
  879. }
  880. clear_has_parameter();
  881. return parameter_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  882. }
  883. inline void CodeGeneratorRequest::set_allocated_parameter(::std::string* parameter) {
  884. if (parameter != NULL) {
  885. set_has_parameter();
  886. } else {
  887. clear_has_parameter();
  888. }
  889. parameter_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parameter);
  890. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  891. }
  892. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  893. inline int CodeGeneratorRequest::proto_file_size() const {
  894. return proto_file_.size();
  895. }
  896. inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
  897. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  898. return proto_file_.Mutable(index);
  899. }
  900. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  901. CodeGeneratorRequest::mutable_proto_file() {
  902. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  903. return &proto_file_;
  904. }
  905. inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
  906. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  907. return proto_file_.Get(index);
  908. }
  909. inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
  910. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  911. return proto_file_.Add();
  912. }
  913. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  914. CodeGeneratorRequest::proto_file() const {
  915. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  916. return proto_file_;
  917. }
  918. // optional .google.protobuf.compiler.Version compiler_version = 3;
  919. inline bool CodeGeneratorRequest::has_compiler_version() const {
  920. return (_has_bits_[0] & 0x00000002u) != 0;
  921. }
  922. inline void CodeGeneratorRequest::set_has_compiler_version() {
  923. _has_bits_[0] |= 0x00000002u;
  924. }
  925. inline void CodeGeneratorRequest::clear_has_compiler_version() {
  926. _has_bits_[0] &= ~0x00000002u;
  927. }
  928. inline void CodeGeneratorRequest::clear_compiler_version() {
  929. if (compiler_version_ != NULL) compiler_version_->Clear();
  930. clear_has_compiler_version();
  931. }
  932. inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::_internal_compiler_version() const {
  933. return *compiler_version_;
  934. }
  935. inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compiler_version() const {
  936. const ::google::protobuf::compiler::Version* p = compiler_version_;
  937. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  938. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::compiler::Version*>(
  939. &::google::protobuf::compiler::_Version_default_instance_);
  940. }
  941. inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::release_compiler_version() {
  942. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  943. clear_has_compiler_version();
  944. ::google::protobuf::compiler::Version* temp = compiler_version_;
  945. compiler_version_ = NULL;
  946. return temp;
  947. }
  948. inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() {
  949. set_has_compiler_version();
  950. if (compiler_version_ == NULL) {
  951. auto* p = CreateMaybeMessage<::google::protobuf::compiler::Version>(GetArenaNoVirtual());
  952. compiler_version_ = p;
  953. }
  954. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  955. return compiler_version_;
  956. }
  957. inline void CodeGeneratorRequest::set_allocated_compiler_version(::google::protobuf::compiler::Version* compiler_version) {
  958. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  959. if (message_arena == NULL) {
  960. delete compiler_version_;
  961. }
  962. if (compiler_version) {
  963. ::google::protobuf::Arena* submessage_arena = NULL;
  964. if (message_arena != submessage_arena) {
  965. compiler_version = ::google::protobuf::internal::GetOwnedMessage(
  966. message_arena, compiler_version, submessage_arena);
  967. }
  968. set_has_compiler_version();
  969. } else {
  970. clear_has_compiler_version();
  971. }
  972. compiler_version_ = compiler_version;
  973. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  974. }
  975. // -------------------------------------------------------------------
  976. // CodeGeneratorResponse_File
  977. // optional string name = 1;
  978. inline bool CodeGeneratorResponse_File::has_name() const {
  979. return (_has_bits_[0] & 0x00000001u) != 0;
  980. }
  981. inline void CodeGeneratorResponse_File::set_has_name() {
  982. _has_bits_[0] |= 0x00000001u;
  983. }
  984. inline void CodeGeneratorResponse_File::clear_has_name() {
  985. _has_bits_[0] &= ~0x00000001u;
  986. }
  987. inline void CodeGeneratorResponse_File::clear_name() {
  988. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  989. clear_has_name();
  990. }
  991. inline const ::std::string& CodeGeneratorResponse_File::name() const {
  992. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  993. return name_.GetNoArena();
  994. }
  995. inline void CodeGeneratorResponse_File::set_name(const ::std::string& value) {
  996. set_has_name();
  997. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  998. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  999. }
  1000. #if LANG_CXX11
  1001. inline void CodeGeneratorResponse_File::set_name(::std::string&& value) {
  1002. set_has_name();
  1003. name_.SetNoArena(
  1004. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1005. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1006. }
  1007. #endif
  1008. inline void CodeGeneratorResponse_File::set_name(const char* value) {
  1009. GOOGLE_DCHECK(value != NULL);
  1010. set_has_name();
  1011. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1012. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1013. }
  1014. inline void CodeGeneratorResponse_File::set_name(const char* value, size_t size) {
  1015. set_has_name();
  1016. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1017. ::std::string(reinterpret_cast<const char*>(value), size));
  1018. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1019. }
  1020. inline ::std::string* CodeGeneratorResponse_File::mutable_name() {
  1021. set_has_name();
  1022. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1023. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1024. }
  1025. inline ::std::string* CodeGeneratorResponse_File::release_name() {
  1026. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1027. if (!has_name()) {
  1028. return NULL;
  1029. }
  1030. clear_has_name();
  1031. return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1032. }
  1033. inline void CodeGeneratorResponse_File::set_allocated_name(::std::string* name) {
  1034. if (name != NULL) {
  1035. set_has_name();
  1036. } else {
  1037. clear_has_name();
  1038. }
  1039. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  1040. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1041. }
  1042. // optional string insertion_point = 2;
  1043. inline bool CodeGeneratorResponse_File::has_insertion_point() const {
  1044. return (_has_bits_[0] & 0x00000002u) != 0;
  1045. }
  1046. inline void CodeGeneratorResponse_File::set_has_insertion_point() {
  1047. _has_bits_[0] |= 0x00000002u;
  1048. }
  1049. inline void CodeGeneratorResponse_File::clear_has_insertion_point() {
  1050. _has_bits_[0] &= ~0x00000002u;
  1051. }
  1052. inline void CodeGeneratorResponse_File::clear_insertion_point() {
  1053. insertion_point_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1054. clear_has_insertion_point();
  1055. }
  1056. inline const ::std::string& CodeGeneratorResponse_File::insertion_point() const {
  1057. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1058. return insertion_point_.GetNoArena();
  1059. }
  1060. inline void CodeGeneratorResponse_File::set_insertion_point(const ::std::string& value) {
  1061. set_has_insertion_point();
  1062. insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1063. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1064. }
  1065. #if LANG_CXX11
  1066. inline void CodeGeneratorResponse_File::set_insertion_point(::std::string&& value) {
  1067. set_has_insertion_point();
  1068. insertion_point_.SetNoArena(
  1069. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1070. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1071. }
  1072. #endif
  1073. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value) {
  1074. GOOGLE_DCHECK(value != NULL);
  1075. set_has_insertion_point();
  1076. insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1077. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1078. }
  1079. inline void CodeGeneratorResponse_File::set_insertion_point(const char* value, size_t size) {
  1080. set_has_insertion_point();
  1081. insertion_point_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1082. ::std::string(reinterpret_cast<const char*>(value), size));
  1083. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1084. }
  1085. inline ::std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
  1086. set_has_insertion_point();
  1087. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1088. return insertion_point_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1089. }
  1090. inline ::std::string* CodeGeneratorResponse_File::release_insertion_point() {
  1091. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1092. if (!has_insertion_point()) {
  1093. return NULL;
  1094. }
  1095. clear_has_insertion_point();
  1096. return insertion_point_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1097. }
  1098. inline void CodeGeneratorResponse_File::set_allocated_insertion_point(::std::string* insertion_point) {
  1099. if (insertion_point != NULL) {
  1100. set_has_insertion_point();
  1101. } else {
  1102. clear_has_insertion_point();
  1103. }
  1104. insertion_point_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), insertion_point);
  1105. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1106. }
  1107. // optional string content = 15;
  1108. inline bool CodeGeneratorResponse_File::has_content() const {
  1109. return (_has_bits_[0] & 0x00000004u) != 0;
  1110. }
  1111. inline void CodeGeneratorResponse_File::set_has_content() {
  1112. _has_bits_[0] |= 0x00000004u;
  1113. }
  1114. inline void CodeGeneratorResponse_File::clear_has_content() {
  1115. _has_bits_[0] &= ~0x00000004u;
  1116. }
  1117. inline void CodeGeneratorResponse_File::clear_content() {
  1118. content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1119. clear_has_content();
  1120. }
  1121. inline const ::std::string& CodeGeneratorResponse_File::content() const {
  1122. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1123. return content_.GetNoArena();
  1124. }
  1125. inline void CodeGeneratorResponse_File::set_content(const ::std::string& value) {
  1126. set_has_content();
  1127. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1128. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1129. }
  1130. #if LANG_CXX11
  1131. inline void CodeGeneratorResponse_File::set_content(::std::string&& value) {
  1132. set_has_content();
  1133. content_.SetNoArena(
  1134. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1135. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1136. }
  1137. #endif
  1138. inline void CodeGeneratorResponse_File::set_content(const char* value) {
  1139. GOOGLE_DCHECK(value != NULL);
  1140. set_has_content();
  1141. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1142. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1143. }
  1144. inline void CodeGeneratorResponse_File::set_content(const char* value, size_t size) {
  1145. set_has_content();
  1146. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1147. ::std::string(reinterpret_cast<const char*>(value), size));
  1148. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1149. }
  1150. inline ::std::string* CodeGeneratorResponse_File::mutable_content() {
  1151. set_has_content();
  1152. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1153. return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1154. }
  1155. inline ::std::string* CodeGeneratorResponse_File::release_content() {
  1156. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1157. if (!has_content()) {
  1158. return NULL;
  1159. }
  1160. clear_has_content();
  1161. return content_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1162. }
  1163. inline void CodeGeneratorResponse_File::set_allocated_content(::std::string* content) {
  1164. if (content != NULL) {
  1165. set_has_content();
  1166. } else {
  1167. clear_has_content();
  1168. }
  1169. content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
  1170. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1171. }
  1172. // -------------------------------------------------------------------
  1173. // CodeGeneratorResponse
  1174. // optional string error = 1;
  1175. inline bool CodeGeneratorResponse::has_error() const {
  1176. return (_has_bits_[0] & 0x00000001u) != 0;
  1177. }
  1178. inline void CodeGeneratorResponse::set_has_error() {
  1179. _has_bits_[0] |= 0x00000001u;
  1180. }
  1181. inline void CodeGeneratorResponse::clear_has_error() {
  1182. _has_bits_[0] &= ~0x00000001u;
  1183. }
  1184. inline void CodeGeneratorResponse::clear_error() {
  1185. error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1186. clear_has_error();
  1187. }
  1188. inline const ::std::string& CodeGeneratorResponse::error() const {
  1189. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
  1190. return error_.GetNoArena();
  1191. }
  1192. inline void CodeGeneratorResponse::set_error(const ::std::string& value) {
  1193. set_has_error();
  1194. error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1195. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
  1196. }
  1197. #if LANG_CXX11
  1198. inline void CodeGeneratorResponse::set_error(::std::string&& value) {
  1199. set_has_error();
  1200. error_.SetNoArena(
  1201. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1202. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.compiler.CodeGeneratorResponse.error)
  1203. }
  1204. #endif
  1205. inline void CodeGeneratorResponse::set_error(const char* value) {
  1206. GOOGLE_DCHECK(value != NULL);
  1207. set_has_error();
  1208. error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1209. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorResponse.error)
  1210. }
  1211. inline void CodeGeneratorResponse::set_error(const char* value, size_t size) {
  1212. set_has_error();
  1213. error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1214. ::std::string(reinterpret_cast<const char*>(value), size));
  1215. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorResponse.error)
  1216. }
  1217. inline ::std::string* CodeGeneratorResponse::mutable_error() {
  1218. set_has_error();
  1219. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
  1220. return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1221. }
  1222. inline ::std::string* CodeGeneratorResponse::release_error() {
  1223. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error)
  1224. if (!has_error()) {
  1225. return NULL;
  1226. }
  1227. clear_has_error();
  1228. return error_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1229. }
  1230. inline void CodeGeneratorResponse::set_allocated_error(::std::string* error) {
  1231. if (error != NULL) {
  1232. set_has_error();
  1233. } else {
  1234. clear_has_error();
  1235. }
  1236. error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error);
  1237. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
  1238. }
  1239. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1240. inline int CodeGeneratorResponse::file_size() const {
  1241. return file_.size();
  1242. }
  1243. inline void CodeGeneratorResponse::clear_file() {
  1244. file_.Clear();
  1245. }
  1246. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
  1247. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
  1248. return file_.Mutable(index);
  1249. }
  1250. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
  1251. CodeGeneratorResponse::mutable_file() {
  1252. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1253. return &file_;
  1254. }
  1255. inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
  1256. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
  1257. return file_.Get(index);
  1258. }
  1259. inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
  1260. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
  1261. return file_.Add();
  1262. }
  1263. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
  1264. CodeGeneratorResponse::file() const {
  1265. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1266. return file_;
  1267. }
  1268. #ifdef __GNUC__
  1269. #pragma GCC diagnostic pop
  1270. #endif // __GNUC__
  1271. // -------------------------------------------------------------------
  1272. // -------------------------------------------------------------------
  1273. // -------------------------------------------------------------------
  1274. // @@protoc_insertion_point(namespace_scope)
  1275. } // namespace compiler
  1276. } // namespace protobuf
  1277. } // namespace google
  1278. // @@protoc_insertion_point(global_scope)
  1279. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto