You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin.pb.h 91 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/compiler/plugin.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/message.h>
  26. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  27. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  28. #include <google/protobuf/generated_enum_reflection.h>
  29. #include <google/protobuf/unknown_field_set.h>
  30. #include <google/protobuf/descriptor.pb.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto PROTOC_EXPORT
  34. #ifdef major
  35. #undef major
  36. #endif
  37. #ifdef minor
  38. #undef minor
  39. #endif
  40. PROTOBUF_NAMESPACE_OPEN
  41. namespace internal
  42. {
  43. class AnyMetadata;
  44. } // namespace internal
  45. PROTOBUF_NAMESPACE_CLOSE
  46. // Internal implementation detail -- do not use these members.
  47. struct PROTOC_EXPORT TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto
  48. {
  49. static const uint32_t offsets[];
  50. };
  51. PROTOC_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  52. PROTOBUF_NAMESPACE_OPEN
  53. namespace compiler
  54. {
  55. class CodeGeneratorRequest;
  56. struct CodeGeneratorRequestDefaultTypeInternal;
  57. PROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
  58. class CodeGeneratorResponse;
  59. struct CodeGeneratorResponseDefaultTypeInternal;
  60. PROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
  61. class CodeGeneratorResponse_File;
  62. struct CodeGeneratorResponse_FileDefaultTypeInternal;
  63. PROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
  64. class Version;
  65. struct VersionDefaultTypeInternal;
  66. PROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_;
  67. } // namespace compiler
  68. PROTOBUF_NAMESPACE_CLOSE
  69. PROTOBUF_NAMESPACE_OPEN
  70. template<>
  71. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest>(Arena*);
  72. template<>
  73. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse>(Arena*);
  74. template<>
  75. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>(Arena*);
  76. template<>
  77. PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(Arena*);
  78. PROTOBUF_NAMESPACE_CLOSE
  79. PROTOBUF_NAMESPACE_OPEN
  80. namespace compiler
  81. {
  82. enum CodeGeneratorResponse_Feature : int
  83. {
  84. CodeGeneratorResponse_Feature_FEATURE_NONE = 0,
  85. CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL = 1
  86. };
  87. PROTOC_EXPORT bool CodeGeneratorResponse_Feature_IsValid(int value);
  88. constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse_Feature_Feature_MIN = CodeGeneratorResponse_Feature_FEATURE_NONE;
  89. constexpr CodeGeneratorResponse_Feature CodeGeneratorResponse_Feature_Feature_MAX = CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL;
  90. constexpr int CodeGeneratorResponse_Feature_Feature_ARRAYSIZE = CodeGeneratorResponse_Feature_Feature_MAX + 1;
  91. PROTOC_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CodeGeneratorResponse_Feature_descriptor();
  92. template<typename T>
  93. inline const std::string& CodeGeneratorResponse_Feature_Name(T enum_t_value)
  94. {
  95. static_assert(::std::is_same<T, CodeGeneratorResponse_Feature>::value || ::std::is_integral<T>::value, "Incorrect type passed to function CodeGeneratorResponse_Feature_Name.");
  96. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  97. CodeGeneratorResponse_Feature_descriptor(), enum_t_value
  98. );
  99. }
  100. inline bool CodeGeneratorResponse_Feature_Parse(
  101. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CodeGeneratorResponse_Feature* value
  102. )
  103. {
  104. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CodeGeneratorResponse_Feature>(
  105. CodeGeneratorResponse_Feature_descriptor(), name, value
  106. );
  107. }
  108. // ===================================================================
  109. class PROTOC_EXPORT Version final :
  110. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */
  111. {
  112. public:
  113. inline Version() :
  114. Version(nullptr)
  115. {
  116. }
  117. ~Version() override;
  118. explicit PROTOBUF_CONSTEXPR Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  119. Version(const Version& from);
  120. Version(Version&& from) noexcept
  121. :
  122. Version()
  123. {
  124. *this = ::std::move(from);
  125. }
  126. inline Version& operator=(const Version& from)
  127. {
  128. CopyFrom(from);
  129. return *this;
  130. }
  131. inline Version& operator=(Version&& from) noexcept
  132. {
  133. if (this == &from)
  134. return *this;
  135. if (GetOwningArena() == from.GetOwningArena()
  136. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  137. && GetOwningArena() != nullptr
  138. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  139. )
  140. {
  141. InternalSwap(&from);
  142. }
  143. else
  144. {
  145. CopyFrom(from);
  146. }
  147. return *this;
  148. }
  149. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  150. {
  151. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  152. }
  153. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  154. {
  155. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  156. }
  157. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  158. {
  159. return GetDescriptor();
  160. }
  161. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  162. {
  163. return default_instance().GetMetadata().descriptor;
  164. }
  165. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  166. {
  167. return default_instance().GetMetadata().reflection;
  168. }
  169. static const Version& default_instance()
  170. {
  171. return *internal_default_instance();
  172. }
  173. static inline const Version* internal_default_instance()
  174. {
  175. return reinterpret_cast<const Version*>(
  176. &_Version_default_instance_
  177. );
  178. }
  179. static constexpr int kIndexInFileMessages =
  180. 0;
  181. friend void swap(Version& a, Version& b)
  182. {
  183. a.Swap(&b);
  184. }
  185. inline void Swap(Version* other)
  186. {
  187. if (other == this)
  188. return;
  189. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  190. if (GetOwningArena() != nullptr &&
  191. GetOwningArena() == other->GetOwningArena())
  192. {
  193. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  194. if (GetOwningArena() == other->GetOwningArena())
  195. {
  196. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  197. InternalSwap(other);
  198. }
  199. else
  200. {
  201. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  202. }
  203. }
  204. void UnsafeArenaSwap(Version* other)
  205. {
  206. if (other == this)
  207. return;
  208. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  209. InternalSwap(other);
  210. }
  211. // implements Message ----------------------------------------------
  212. Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  213. {
  214. return CreateMaybeMessage<Version>(arena);
  215. }
  216. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  217. void CopyFrom(const Version& from);
  218. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  219. void MergeFrom(const Version& from)
  220. {
  221. Version::MergeImpl(*this, from);
  222. }
  223. private:
  224. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  225. public:
  226. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  227. bool IsInitialized() const final;
  228. size_t ByteSizeLong() const final;
  229. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  230. uint8_t* _InternalSerialize(
  231. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  232. ) const final;
  233. int GetCachedSize() const final
  234. {
  235. return _impl_._cached_size_.Get();
  236. }
  237. private:
  238. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  239. void SharedDtor();
  240. void SetCachedSize(int size) const final;
  241. void InternalSwap(Version* other);
  242. private:
  243. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  244. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  245. {
  246. return "google.protobuf.compiler.Version";
  247. }
  248. protected:
  249. explicit Version(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  250. public:
  251. static const ClassData _class_data_;
  252. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  253. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  254. // nested types ----------------------------------------------------
  255. // accessors -------------------------------------------------------
  256. enum : int
  257. {
  258. kSuffixFieldNumber = 4,
  259. kMajorFieldNumber = 1,
  260. kMinorFieldNumber = 2,
  261. kPatchFieldNumber = 3,
  262. };
  263. // optional string suffix = 4;
  264. bool has_suffix() const;
  265. private:
  266. bool _internal_has_suffix() const;
  267. public:
  268. void clear_suffix();
  269. const std::string& suffix() const;
  270. template<typename ArgT0 = const std::string&, typename... ArgT>
  271. void set_suffix(ArgT0&& arg0, ArgT... args);
  272. std::string* mutable_suffix();
  273. PROTOBUF_NODISCARD std::string* release_suffix();
  274. void set_allocated_suffix(std::string* suffix);
  275. private:
  276. const std::string& _internal_suffix() const;
  277. inline PROTOBUF_ALWAYS_INLINE void _internal_set_suffix(const std::string& value);
  278. std::string* _internal_mutable_suffix();
  279. public:
  280. // optional int32 major = 1;
  281. bool has_major() const;
  282. private:
  283. bool _internal_has_major() const;
  284. public:
  285. void clear_major();
  286. int32_t major() const;
  287. void set_major(int32_t value);
  288. private:
  289. int32_t _internal_major() const;
  290. void _internal_set_major(int32_t value);
  291. public:
  292. // optional int32 minor = 2;
  293. bool has_minor() const;
  294. private:
  295. bool _internal_has_minor() const;
  296. public:
  297. void clear_minor();
  298. int32_t minor() const;
  299. void set_minor(int32_t value);
  300. private:
  301. int32_t _internal_minor() const;
  302. void _internal_set_minor(int32_t value);
  303. public:
  304. // optional int32 patch = 3;
  305. bool has_patch() const;
  306. private:
  307. bool _internal_has_patch() const;
  308. public:
  309. void clear_patch();
  310. int32_t patch() const;
  311. void set_patch(int32_t value);
  312. private:
  313. int32_t _internal_patch() const;
  314. void _internal_set_patch(int32_t value);
  315. public:
  316. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
  317. private:
  318. class _Internal;
  319. template<typename T>
  320. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  321. typedef void InternalArenaConstructable_;
  322. typedef void DestructorSkippable_;
  323. struct Impl_
  324. {
  325. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  326. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  327. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr suffix_;
  328. int32_t major_;
  329. int32_t minor_;
  330. int32_t patch_;
  331. };
  332. union
  333. {
  334. Impl_ _impl_;
  335. };
  336. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  337. };
  338. // -------------------------------------------------------------------
  339. class PROTOC_EXPORT CodeGeneratorRequest final :
  340. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */
  341. {
  342. public:
  343. inline CodeGeneratorRequest() :
  344. CodeGeneratorRequest(nullptr)
  345. {
  346. }
  347. ~CodeGeneratorRequest() override;
  348. explicit PROTOBUF_CONSTEXPR CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  349. CodeGeneratorRequest(const CodeGeneratorRequest& from);
  350. CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept
  351. :
  352. CodeGeneratorRequest()
  353. {
  354. *this = ::std::move(from);
  355. }
  356. inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from)
  357. {
  358. CopyFrom(from);
  359. return *this;
  360. }
  361. inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept
  362. {
  363. if (this == &from)
  364. return *this;
  365. if (GetOwningArena() == from.GetOwningArena()
  366. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  367. && GetOwningArena() != nullptr
  368. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  369. )
  370. {
  371. InternalSwap(&from);
  372. }
  373. else
  374. {
  375. CopyFrom(from);
  376. }
  377. return *this;
  378. }
  379. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  380. {
  381. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  382. }
  383. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  384. {
  385. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  386. }
  387. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  388. {
  389. return GetDescriptor();
  390. }
  391. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  392. {
  393. return default_instance().GetMetadata().descriptor;
  394. }
  395. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  396. {
  397. return default_instance().GetMetadata().reflection;
  398. }
  399. static const CodeGeneratorRequest& default_instance()
  400. {
  401. return *internal_default_instance();
  402. }
  403. static inline const CodeGeneratorRequest* internal_default_instance()
  404. {
  405. return reinterpret_cast<const CodeGeneratorRequest*>(
  406. &_CodeGeneratorRequest_default_instance_
  407. );
  408. }
  409. static constexpr int kIndexInFileMessages =
  410. 1;
  411. friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b)
  412. {
  413. a.Swap(&b);
  414. }
  415. inline void Swap(CodeGeneratorRequest* other)
  416. {
  417. if (other == this)
  418. return;
  419. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  420. if (GetOwningArena() != nullptr &&
  421. GetOwningArena() == other->GetOwningArena())
  422. {
  423. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  424. if (GetOwningArena() == other->GetOwningArena())
  425. {
  426. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  427. InternalSwap(other);
  428. }
  429. else
  430. {
  431. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  432. }
  433. }
  434. void UnsafeArenaSwap(CodeGeneratorRequest* other)
  435. {
  436. if (other == this)
  437. return;
  438. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  439. InternalSwap(other);
  440. }
  441. // implements Message ----------------------------------------------
  442. CodeGeneratorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  443. {
  444. return CreateMaybeMessage<CodeGeneratorRequest>(arena);
  445. }
  446. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  447. void CopyFrom(const CodeGeneratorRequest& from);
  448. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  449. void MergeFrom(const CodeGeneratorRequest& from)
  450. {
  451. CodeGeneratorRequest::MergeImpl(*this, from);
  452. }
  453. private:
  454. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  455. public:
  456. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  457. bool IsInitialized() const final;
  458. size_t ByteSizeLong() const final;
  459. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  460. uint8_t* _InternalSerialize(
  461. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  462. ) const final;
  463. int GetCachedSize() const final
  464. {
  465. return _impl_._cached_size_.Get();
  466. }
  467. private:
  468. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  469. void SharedDtor();
  470. void SetCachedSize(int size) const final;
  471. void InternalSwap(CodeGeneratorRequest* other);
  472. private:
  473. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  474. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  475. {
  476. return "google.protobuf.compiler.CodeGeneratorRequest";
  477. }
  478. protected:
  479. explicit CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  480. public:
  481. static const ClassData _class_data_;
  482. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  483. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  484. // nested types ----------------------------------------------------
  485. // accessors -------------------------------------------------------
  486. enum : int
  487. {
  488. kFileToGenerateFieldNumber = 1,
  489. kProtoFileFieldNumber = 15,
  490. kParameterFieldNumber = 2,
  491. kCompilerVersionFieldNumber = 3,
  492. };
  493. // repeated string file_to_generate = 1;
  494. int file_to_generate_size() const;
  495. private:
  496. int _internal_file_to_generate_size() const;
  497. public:
  498. void clear_file_to_generate();
  499. const std::string& file_to_generate(int index) const;
  500. std::string* mutable_file_to_generate(int index);
  501. void set_file_to_generate(int index, const std::string& value);
  502. void set_file_to_generate(int index, std::string&& value);
  503. void set_file_to_generate(int index, const char* value);
  504. void set_file_to_generate(int index, const char* value, size_t size);
  505. std::string* add_file_to_generate();
  506. void add_file_to_generate(const std::string& value);
  507. void add_file_to_generate(std::string&& value);
  508. void add_file_to_generate(const char* value);
  509. void add_file_to_generate(const char* value, size_t size);
  510. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& file_to_generate() const;
  511. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_file_to_generate();
  512. private:
  513. const std::string& _internal_file_to_generate(int index) const;
  514. std::string* _internal_add_file_to_generate();
  515. public:
  516. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  517. int proto_file_size() const;
  518. private:
  519. int _internal_proto_file_size() const;
  520. public:
  521. void clear_proto_file();
  522. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_proto_file(int index);
  523. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>*
  524. mutable_proto_file();
  525. private:
  526. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_proto_file(int index) const;
  527. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_proto_file();
  528. public:
  529. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& proto_file(int index) const;
  530. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_proto_file();
  531. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>&
  532. proto_file() const;
  533. // optional string parameter = 2;
  534. bool has_parameter() const;
  535. private:
  536. bool _internal_has_parameter() const;
  537. public:
  538. void clear_parameter();
  539. const std::string& parameter() const;
  540. template<typename ArgT0 = const std::string&, typename... ArgT>
  541. void set_parameter(ArgT0&& arg0, ArgT... args);
  542. std::string* mutable_parameter();
  543. PROTOBUF_NODISCARD std::string* release_parameter();
  544. void set_allocated_parameter(std::string* parameter);
  545. private:
  546. const std::string& _internal_parameter() const;
  547. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parameter(const std::string& value);
  548. std::string* _internal_mutable_parameter();
  549. public:
  550. // optional .google.protobuf.compiler.Version compiler_version = 3;
  551. bool has_compiler_version() const;
  552. private:
  553. bool _internal_has_compiler_version() const;
  554. public:
  555. void clear_compiler_version();
  556. const ::PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version() const;
  557. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::compiler::Version* release_compiler_version();
  558. ::PROTOBUF_NAMESPACE_ID::compiler::Version* mutable_compiler_version();
  559. void set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version);
  560. private:
  561. const ::PROTOBUF_NAMESPACE_ID::compiler::Version& _internal_compiler_version() const;
  562. ::PROTOBUF_NAMESPACE_ID::compiler::Version* _internal_mutable_compiler_version();
  563. public:
  564. void unsafe_arena_set_allocated_compiler_version(
  565. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version
  566. );
  567. ::PROTOBUF_NAMESPACE_ID::compiler::Version* unsafe_arena_release_compiler_version();
  568. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  569. private:
  570. class _Internal;
  571. template<typename T>
  572. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  573. typedef void InternalArenaConstructable_;
  574. typedef void DestructorSkippable_;
  575. struct Impl_
  576. {
  577. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  578. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  579. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> file_to_generate_;
  580. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto> proto_file_;
  581. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameter_;
  582. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version_;
  583. };
  584. union
  585. {
  586. Impl_ _impl_;
  587. };
  588. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  589. };
  590. // -------------------------------------------------------------------
  591. class PROTOC_EXPORT CodeGeneratorResponse_File final :
  592. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */
  593. {
  594. public:
  595. inline CodeGeneratorResponse_File() :
  596. CodeGeneratorResponse_File(nullptr)
  597. {
  598. }
  599. ~CodeGeneratorResponse_File() override;
  600. explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  601. CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
  602. CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept
  603. :
  604. CodeGeneratorResponse_File()
  605. {
  606. *this = ::std::move(from);
  607. }
  608. inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from)
  609. {
  610. CopyFrom(from);
  611. return *this;
  612. }
  613. inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept
  614. {
  615. if (this == &from)
  616. return *this;
  617. if (GetOwningArena() == from.GetOwningArena()
  618. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  619. && GetOwningArena() != nullptr
  620. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  621. )
  622. {
  623. InternalSwap(&from);
  624. }
  625. else
  626. {
  627. CopyFrom(from);
  628. }
  629. return *this;
  630. }
  631. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  632. {
  633. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  634. }
  635. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  636. {
  637. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  638. }
  639. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  640. {
  641. return GetDescriptor();
  642. }
  643. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  644. {
  645. return default_instance().GetMetadata().descriptor;
  646. }
  647. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  648. {
  649. return default_instance().GetMetadata().reflection;
  650. }
  651. static const CodeGeneratorResponse_File& default_instance()
  652. {
  653. return *internal_default_instance();
  654. }
  655. static inline const CodeGeneratorResponse_File* internal_default_instance()
  656. {
  657. return reinterpret_cast<const CodeGeneratorResponse_File*>(
  658. &_CodeGeneratorResponse_File_default_instance_
  659. );
  660. }
  661. static constexpr int kIndexInFileMessages =
  662. 2;
  663. friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b)
  664. {
  665. a.Swap(&b);
  666. }
  667. inline void Swap(CodeGeneratorResponse_File* other)
  668. {
  669. if (other == this)
  670. return;
  671. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  672. if (GetOwningArena() != nullptr &&
  673. GetOwningArena() == other->GetOwningArena())
  674. {
  675. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  676. if (GetOwningArena() == other->GetOwningArena())
  677. {
  678. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  679. InternalSwap(other);
  680. }
  681. else
  682. {
  683. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  684. }
  685. }
  686. void UnsafeArenaSwap(CodeGeneratorResponse_File* other)
  687. {
  688. if (other == this)
  689. return;
  690. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  691. InternalSwap(other);
  692. }
  693. // implements Message ----------------------------------------------
  694. CodeGeneratorResponse_File* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  695. {
  696. return CreateMaybeMessage<CodeGeneratorResponse_File>(arena);
  697. }
  698. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  699. void CopyFrom(const CodeGeneratorResponse_File& from);
  700. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  701. void MergeFrom(const CodeGeneratorResponse_File& from)
  702. {
  703. CodeGeneratorResponse_File::MergeImpl(*this, from);
  704. }
  705. private:
  706. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  707. public:
  708. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  709. bool IsInitialized() const final;
  710. size_t ByteSizeLong() const final;
  711. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  712. uint8_t* _InternalSerialize(
  713. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  714. ) const final;
  715. int GetCachedSize() const final
  716. {
  717. return _impl_._cached_size_.Get();
  718. }
  719. private:
  720. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  721. void SharedDtor();
  722. void SetCachedSize(int size) const final;
  723. void InternalSwap(CodeGeneratorResponse_File* other);
  724. private:
  725. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  726. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  727. {
  728. return "google.protobuf.compiler.CodeGeneratorResponse.File";
  729. }
  730. protected:
  731. explicit CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  732. public:
  733. static const ClassData _class_data_;
  734. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  735. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  736. // nested types ----------------------------------------------------
  737. // accessors -------------------------------------------------------
  738. enum : int
  739. {
  740. kNameFieldNumber = 1,
  741. kInsertionPointFieldNumber = 2,
  742. kContentFieldNumber = 15,
  743. kGeneratedCodeInfoFieldNumber = 16,
  744. };
  745. // optional string name = 1;
  746. bool has_name() const;
  747. private:
  748. bool _internal_has_name() const;
  749. public:
  750. void clear_name();
  751. const std::string& name() const;
  752. template<typename ArgT0 = const std::string&, typename... ArgT>
  753. void set_name(ArgT0&& arg0, ArgT... args);
  754. std::string* mutable_name();
  755. PROTOBUF_NODISCARD std::string* release_name();
  756. void set_allocated_name(std::string* name);
  757. private:
  758. const std::string& _internal_name() const;
  759. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  760. std::string* _internal_mutable_name();
  761. public:
  762. // optional string insertion_point = 2;
  763. bool has_insertion_point() const;
  764. private:
  765. bool _internal_has_insertion_point() const;
  766. public:
  767. void clear_insertion_point();
  768. const std::string& insertion_point() const;
  769. template<typename ArgT0 = const std::string&, typename... ArgT>
  770. void set_insertion_point(ArgT0&& arg0, ArgT... args);
  771. std::string* mutable_insertion_point();
  772. PROTOBUF_NODISCARD std::string* release_insertion_point();
  773. void set_allocated_insertion_point(std::string* insertion_point);
  774. private:
  775. const std::string& _internal_insertion_point() const;
  776. inline PROTOBUF_ALWAYS_INLINE void _internal_set_insertion_point(const std::string& value);
  777. std::string* _internal_mutable_insertion_point();
  778. public:
  779. // optional string content = 15;
  780. bool has_content() const;
  781. private:
  782. bool _internal_has_content() const;
  783. public:
  784. void clear_content();
  785. const std::string& content() const;
  786. template<typename ArgT0 = const std::string&, typename... ArgT>
  787. void set_content(ArgT0&& arg0, ArgT... args);
  788. std::string* mutable_content();
  789. PROTOBUF_NODISCARD std::string* release_content();
  790. void set_allocated_content(std::string* content);
  791. private:
  792. const std::string& _internal_content() const;
  793. inline PROTOBUF_ALWAYS_INLINE void _internal_set_content(const std::string& value);
  794. std::string* _internal_mutable_content();
  795. public:
  796. // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
  797. bool has_generated_code_info() const;
  798. private:
  799. bool _internal_has_generated_code_info() const;
  800. public:
  801. void clear_generated_code_info();
  802. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& generated_code_info() const;
  803. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* release_generated_code_info();
  804. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* mutable_generated_code_info();
  805. void set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info);
  806. private:
  807. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& _internal_generated_code_info() const;
  808. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _internal_mutable_generated_code_info();
  809. public:
  810. void unsafe_arena_set_allocated_generated_code_info(
  811. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info
  812. );
  813. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* unsafe_arena_release_generated_code_info();
  814. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  815. private:
  816. class _Internal;
  817. template<typename T>
  818. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  819. typedef void InternalArenaConstructable_;
  820. typedef void DestructorSkippable_;
  821. struct Impl_
  822. {
  823. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  824. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  825. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  826. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr insertion_point_;
  827. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_;
  828. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info_;
  829. };
  830. union
  831. {
  832. Impl_ _impl_;
  833. };
  834. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  835. };
  836. // -------------------------------------------------------------------
  837. class PROTOC_EXPORT CodeGeneratorResponse final :
  838. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */
  839. {
  840. public:
  841. inline CodeGeneratorResponse() :
  842. CodeGeneratorResponse(nullptr)
  843. {
  844. }
  845. ~CodeGeneratorResponse() override;
  846. explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  847. CodeGeneratorResponse(const CodeGeneratorResponse& from);
  848. CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept
  849. :
  850. CodeGeneratorResponse()
  851. {
  852. *this = ::std::move(from);
  853. }
  854. inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from)
  855. {
  856. CopyFrom(from);
  857. return *this;
  858. }
  859. inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept
  860. {
  861. if (this == &from)
  862. return *this;
  863. if (GetOwningArena() == from.GetOwningArena()
  864. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  865. && GetOwningArena() != nullptr
  866. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  867. )
  868. {
  869. InternalSwap(&from);
  870. }
  871. else
  872. {
  873. CopyFrom(from);
  874. }
  875. return *this;
  876. }
  877. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  878. {
  879. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  880. }
  881. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  882. {
  883. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  884. }
  885. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  886. {
  887. return GetDescriptor();
  888. }
  889. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  890. {
  891. return default_instance().GetMetadata().descriptor;
  892. }
  893. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  894. {
  895. return default_instance().GetMetadata().reflection;
  896. }
  897. static const CodeGeneratorResponse& default_instance()
  898. {
  899. return *internal_default_instance();
  900. }
  901. static inline const CodeGeneratorResponse* internal_default_instance()
  902. {
  903. return reinterpret_cast<const CodeGeneratorResponse*>(
  904. &_CodeGeneratorResponse_default_instance_
  905. );
  906. }
  907. static constexpr int kIndexInFileMessages =
  908. 3;
  909. friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b)
  910. {
  911. a.Swap(&b);
  912. }
  913. inline void Swap(CodeGeneratorResponse* other)
  914. {
  915. if (other == this)
  916. return;
  917. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  918. if (GetOwningArena() != nullptr &&
  919. GetOwningArena() == other->GetOwningArena())
  920. {
  921. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  922. if (GetOwningArena() == other->GetOwningArena())
  923. {
  924. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  925. InternalSwap(other);
  926. }
  927. else
  928. {
  929. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  930. }
  931. }
  932. void UnsafeArenaSwap(CodeGeneratorResponse* other)
  933. {
  934. if (other == this)
  935. return;
  936. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  937. InternalSwap(other);
  938. }
  939. // implements Message ----------------------------------------------
  940. CodeGeneratorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  941. {
  942. return CreateMaybeMessage<CodeGeneratorResponse>(arena);
  943. }
  944. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  945. void CopyFrom(const CodeGeneratorResponse& from);
  946. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  947. void MergeFrom(const CodeGeneratorResponse& from)
  948. {
  949. CodeGeneratorResponse::MergeImpl(*this, from);
  950. }
  951. private:
  952. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  953. public:
  954. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  955. bool IsInitialized() const final;
  956. size_t ByteSizeLong() const final;
  957. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  958. uint8_t* _InternalSerialize(
  959. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  960. ) const final;
  961. int GetCachedSize() const final
  962. {
  963. return _impl_._cached_size_.Get();
  964. }
  965. private:
  966. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  967. void SharedDtor();
  968. void SetCachedSize(int size) const final;
  969. void InternalSwap(CodeGeneratorResponse* other);
  970. private:
  971. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  972. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  973. {
  974. return "google.protobuf.compiler.CodeGeneratorResponse";
  975. }
  976. protected:
  977. explicit CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  978. public:
  979. static const ClassData _class_data_;
  980. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  981. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  982. // nested types ----------------------------------------------------
  983. typedef CodeGeneratorResponse_File File;
  984. typedef CodeGeneratorResponse_Feature Feature;
  985. static constexpr Feature FEATURE_NONE =
  986. CodeGeneratorResponse_Feature_FEATURE_NONE;
  987. static constexpr Feature FEATURE_PROTO3_OPTIONAL =
  988. CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL;
  989. static inline bool Feature_IsValid(int value)
  990. {
  991. return CodeGeneratorResponse_Feature_IsValid(value);
  992. }
  993. static constexpr Feature Feature_MIN =
  994. CodeGeneratorResponse_Feature_Feature_MIN;
  995. static constexpr Feature Feature_MAX =
  996. CodeGeneratorResponse_Feature_Feature_MAX;
  997. static constexpr int Feature_ARRAYSIZE =
  998. CodeGeneratorResponse_Feature_Feature_ARRAYSIZE;
  999. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1000. Feature_descriptor()
  1001. {
  1002. return CodeGeneratorResponse_Feature_descriptor();
  1003. }
  1004. template<typename T>
  1005. static inline const std::string& Feature_Name(T enum_t_value)
  1006. {
  1007. static_assert(::std::is_same<T, Feature>::value || ::std::is_integral<T>::value, "Incorrect type passed to function Feature_Name.");
  1008. return CodeGeneratorResponse_Feature_Name(enum_t_value);
  1009. }
  1010. static inline bool Feature_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Feature* value)
  1011. {
  1012. return CodeGeneratorResponse_Feature_Parse(name, value);
  1013. }
  1014. // accessors -------------------------------------------------------
  1015. enum : int
  1016. {
  1017. kFileFieldNumber = 15,
  1018. kErrorFieldNumber = 1,
  1019. kSupportedFeaturesFieldNumber = 2,
  1020. };
  1021. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1022. int file_size() const;
  1023. private:
  1024. int _internal_file_size() const;
  1025. public:
  1026. void clear_file();
  1027. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* mutable_file(int index);
  1028. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>*
  1029. mutable_file();
  1030. private:
  1031. const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& _internal_file(int index) const;
  1032. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _internal_add_file();
  1033. public:
  1034. const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& file(int index) const;
  1035. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* add_file();
  1036. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>&
  1037. file() const;
  1038. // optional string error = 1;
  1039. bool has_error() const;
  1040. private:
  1041. bool _internal_has_error() const;
  1042. public:
  1043. void clear_error();
  1044. const std::string& error() const;
  1045. template<typename ArgT0 = const std::string&, typename... ArgT>
  1046. void set_error(ArgT0&& arg0, ArgT... args);
  1047. std::string* mutable_error();
  1048. PROTOBUF_NODISCARD std::string* release_error();
  1049. void set_allocated_error(std::string* error);
  1050. private:
  1051. const std::string& _internal_error() const;
  1052. inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value);
  1053. std::string* _internal_mutable_error();
  1054. public:
  1055. // optional uint64 supported_features = 2;
  1056. bool has_supported_features() const;
  1057. private:
  1058. bool _internal_has_supported_features() const;
  1059. public:
  1060. void clear_supported_features();
  1061. uint64_t supported_features() const;
  1062. void set_supported_features(uint64_t value);
  1063. private:
  1064. uint64_t _internal_supported_features() const;
  1065. void _internal_set_supported_features(uint64_t value);
  1066. public:
  1067. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  1068. private:
  1069. class _Internal;
  1070. template<typename T>
  1071. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1072. typedef void InternalArenaConstructable_;
  1073. typedef void DestructorSkippable_;
  1074. struct Impl_
  1075. {
  1076. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1077. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1078. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File> file_;
  1079. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_;
  1080. uint64_t supported_features_;
  1081. };
  1082. union
  1083. {
  1084. Impl_ _impl_;
  1085. };
  1086. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  1087. };
  1088. // ===================================================================
  1089. // ===================================================================
  1090. #ifdef __GNUC__
  1091. #pragma GCC diagnostic push
  1092. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1093. #endif // __GNUC__
  1094. // Version
  1095. // optional int32 major = 1;
  1096. inline bool Version::_internal_has_major() const
  1097. {
  1098. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1099. return value;
  1100. }
  1101. inline bool Version::has_major() const
  1102. {
  1103. return _internal_has_major();
  1104. }
  1105. inline void Version::clear_major()
  1106. {
  1107. _impl_.major_ = 0;
  1108. _impl_._has_bits_[0] &= ~0x00000002u;
  1109. }
  1110. inline int32_t Version::_internal_major() const
  1111. {
  1112. return _impl_.major_;
  1113. }
  1114. inline int32_t Version::major() const
  1115. {
  1116. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
  1117. return _internal_major();
  1118. }
  1119. inline void Version::_internal_set_major(int32_t value)
  1120. {
  1121. _impl_._has_bits_[0] |= 0x00000002u;
  1122. _impl_.major_ = value;
  1123. }
  1124. inline void Version::set_major(int32_t value)
  1125. {
  1126. _internal_set_major(value);
  1127. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major)
  1128. }
  1129. // optional int32 minor = 2;
  1130. inline bool Version::_internal_has_minor() const
  1131. {
  1132. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  1133. return value;
  1134. }
  1135. inline bool Version::has_minor() const
  1136. {
  1137. return _internal_has_minor();
  1138. }
  1139. inline void Version::clear_minor()
  1140. {
  1141. _impl_.minor_ = 0;
  1142. _impl_._has_bits_[0] &= ~0x00000004u;
  1143. }
  1144. inline int32_t Version::_internal_minor() const
  1145. {
  1146. return _impl_.minor_;
  1147. }
  1148. inline int32_t Version::minor() const
  1149. {
  1150. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
  1151. return _internal_minor();
  1152. }
  1153. inline void Version::_internal_set_minor(int32_t value)
  1154. {
  1155. _impl_._has_bits_[0] |= 0x00000004u;
  1156. _impl_.minor_ = value;
  1157. }
  1158. inline void Version::set_minor(int32_t value)
  1159. {
  1160. _internal_set_minor(value);
  1161. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor)
  1162. }
  1163. // optional int32 patch = 3;
  1164. inline bool Version::_internal_has_patch() const
  1165. {
  1166. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  1167. return value;
  1168. }
  1169. inline bool Version::has_patch() const
  1170. {
  1171. return _internal_has_patch();
  1172. }
  1173. inline void Version::clear_patch()
  1174. {
  1175. _impl_.patch_ = 0;
  1176. _impl_._has_bits_[0] &= ~0x00000008u;
  1177. }
  1178. inline int32_t Version::_internal_patch() const
  1179. {
  1180. return _impl_.patch_;
  1181. }
  1182. inline int32_t Version::patch() const
  1183. {
  1184. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch)
  1185. return _internal_patch();
  1186. }
  1187. inline void Version::_internal_set_patch(int32_t value)
  1188. {
  1189. _impl_._has_bits_[0] |= 0x00000008u;
  1190. _impl_.patch_ = value;
  1191. }
  1192. inline void Version::set_patch(int32_t value)
  1193. {
  1194. _internal_set_patch(value);
  1195. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch)
  1196. }
  1197. // optional string suffix = 4;
  1198. inline bool Version::_internal_has_suffix() const
  1199. {
  1200. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1201. return value;
  1202. }
  1203. inline bool Version::has_suffix() const
  1204. {
  1205. return _internal_has_suffix();
  1206. }
  1207. inline void Version::clear_suffix()
  1208. {
  1209. _impl_.suffix_.ClearToEmpty();
  1210. _impl_._has_bits_[0] &= ~0x00000001u;
  1211. }
  1212. inline const std::string& Version::suffix() const
  1213. {
  1214. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
  1215. return _internal_suffix();
  1216. }
  1217. template<typename ArgT0, typename... ArgT>
  1218. inline PROTOBUF_ALWAYS_INLINE void Version::set_suffix(ArgT0&& arg0, ArgT... args)
  1219. {
  1220. _impl_._has_bits_[0] |= 0x00000001u;
  1221. _impl_.suffix_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1222. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
  1223. }
  1224. inline std::string* Version::mutable_suffix()
  1225. {
  1226. std::string* _s = _internal_mutable_suffix();
  1227. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix)
  1228. return _s;
  1229. }
  1230. inline const std::string& Version::_internal_suffix() const
  1231. {
  1232. return _impl_.suffix_.Get();
  1233. }
  1234. inline void Version::_internal_set_suffix(const std::string& value)
  1235. {
  1236. _impl_._has_bits_[0] |= 0x00000001u;
  1237. _impl_.suffix_.Set(value, GetArenaForAllocation());
  1238. }
  1239. inline std::string* Version::_internal_mutable_suffix()
  1240. {
  1241. _impl_._has_bits_[0] |= 0x00000001u;
  1242. return _impl_.suffix_.Mutable(GetArenaForAllocation());
  1243. }
  1244. inline std::string* Version::release_suffix()
  1245. {
  1246. // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suffix)
  1247. if (!_internal_has_suffix())
  1248. {
  1249. return nullptr;
  1250. }
  1251. _impl_._has_bits_[0] &= ~0x00000001u;
  1252. auto* p = _impl_.suffix_.Release();
  1253. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1254. if (_impl_.suffix_.IsDefault())
  1255. {
  1256. _impl_.suffix_.Set("", GetArenaForAllocation());
  1257. }
  1258. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1259. return p;
  1260. }
  1261. inline void Version::set_allocated_suffix(std::string* suffix)
  1262. {
  1263. if (suffix != nullptr)
  1264. {
  1265. _impl_._has_bits_[0] |= 0x00000001u;
  1266. }
  1267. else
  1268. {
  1269. _impl_._has_bits_[0] &= ~0x00000001u;
  1270. }
  1271. _impl_.suffix_.SetAllocated(suffix, GetArenaForAllocation());
  1272. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1273. if (_impl_.suffix_.IsDefault())
  1274. {
  1275. _impl_.suffix_.Set("", GetArenaForAllocation());
  1276. }
  1277. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1278. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Version.suffix)
  1279. }
  1280. // -------------------------------------------------------------------
  1281. // CodeGeneratorRequest
  1282. // repeated string file_to_generate = 1;
  1283. inline int CodeGeneratorRequest::_internal_file_to_generate_size() const
  1284. {
  1285. return _impl_.file_to_generate_.size();
  1286. }
  1287. inline int CodeGeneratorRequest::file_to_generate_size() const
  1288. {
  1289. return _internal_file_to_generate_size();
  1290. }
  1291. inline void CodeGeneratorRequest::clear_file_to_generate()
  1292. {
  1293. _impl_.file_to_generate_.Clear();
  1294. }
  1295. inline std::string* CodeGeneratorRequest::add_file_to_generate()
  1296. {
  1297. std::string* _s = _internal_add_file_to_generate();
  1298. // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1299. return _s;
  1300. }
  1301. inline const std::string& CodeGeneratorRequest::_internal_file_to_generate(int index) const
  1302. {
  1303. return _impl_.file_to_generate_.Get(index);
  1304. }
  1305. inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const
  1306. {
  1307. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1308. return _internal_file_to_generate(index);
  1309. }
  1310. inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index)
  1311. {
  1312. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1313. return _impl_.file_to_generate_.Mutable(index);
  1314. }
  1315. inline void CodeGeneratorRequest::set_file_to_generate(int index, const std::string& value)
  1316. {
  1317. _impl_.file_to_generate_.Mutable(index)->assign(value);
  1318. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1319. }
  1320. inline void CodeGeneratorRequest::set_file_to_generate(int index, std::string&& value)
  1321. {
  1322. _impl_.file_to_generate_.Mutable(index)->assign(std::move(value));
  1323. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1324. }
  1325. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value)
  1326. {
  1327. GOOGLE_DCHECK(value != nullptr);
  1328. _impl_.file_to_generate_.Mutable(index)->assign(value);
  1329. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1330. }
  1331. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size)
  1332. {
  1333. _impl_.file_to_generate_.Mutable(index)->assign(
  1334. reinterpret_cast<const char*>(value), size
  1335. );
  1336. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1337. }
  1338. inline std::string* CodeGeneratorRequest::_internal_add_file_to_generate()
  1339. {
  1340. return _impl_.file_to_generate_.Add();
  1341. }
  1342. inline void CodeGeneratorRequest::add_file_to_generate(const std::string& value)
  1343. {
  1344. _impl_.file_to_generate_.Add()->assign(value);
  1345. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1346. }
  1347. inline void CodeGeneratorRequest::add_file_to_generate(std::string&& value)
  1348. {
  1349. _impl_.file_to_generate_.Add(std::move(value));
  1350. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1351. }
  1352. inline void CodeGeneratorRequest::add_file_to_generate(const char* value)
  1353. {
  1354. GOOGLE_DCHECK(value != nullptr);
  1355. _impl_.file_to_generate_.Add()->assign(value);
  1356. // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1357. }
  1358. inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size)
  1359. {
  1360. _impl_.file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1361. // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1362. }
  1363. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1364. CodeGeneratorRequest::file_to_generate() const
  1365. {
  1366. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1367. return _impl_.file_to_generate_;
  1368. }
  1369. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1370. CodeGeneratorRequest::mutable_file_to_generate()
  1371. {
  1372. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1373. return &_impl_.file_to_generate_;
  1374. }
  1375. // optional string parameter = 2;
  1376. inline bool CodeGeneratorRequest::_internal_has_parameter() const
  1377. {
  1378. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1379. return value;
  1380. }
  1381. inline bool CodeGeneratorRequest::has_parameter() const
  1382. {
  1383. return _internal_has_parameter();
  1384. }
  1385. inline void CodeGeneratorRequest::clear_parameter()
  1386. {
  1387. _impl_.parameter_.ClearToEmpty();
  1388. _impl_._has_bits_[0] &= ~0x00000001u;
  1389. }
  1390. inline const std::string& CodeGeneratorRequest::parameter() const
  1391. {
  1392. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1393. return _internal_parameter();
  1394. }
  1395. template<typename ArgT0, typename... ArgT>
  1396. inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorRequest::set_parameter(ArgT0&& arg0, ArgT... args)
  1397. {
  1398. _impl_._has_bits_[0] |= 0x00000001u;
  1399. _impl_.parameter_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1400. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1401. }
  1402. inline std::string* CodeGeneratorRequest::mutable_parameter()
  1403. {
  1404. std::string* _s = _internal_mutable_parameter();
  1405. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1406. return _s;
  1407. }
  1408. inline const std::string& CodeGeneratorRequest::_internal_parameter() const
  1409. {
  1410. return _impl_.parameter_.Get();
  1411. }
  1412. inline void CodeGeneratorRequest::_internal_set_parameter(const std::string& value)
  1413. {
  1414. _impl_._has_bits_[0] |= 0x00000001u;
  1415. _impl_.parameter_.Set(value, GetArenaForAllocation());
  1416. }
  1417. inline std::string* CodeGeneratorRequest::_internal_mutable_parameter()
  1418. {
  1419. _impl_._has_bits_[0] |= 0x00000001u;
  1420. return _impl_.parameter_.Mutable(GetArenaForAllocation());
  1421. }
  1422. inline std::string* CodeGeneratorRequest::release_parameter()
  1423. {
  1424. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1425. if (!_internal_has_parameter())
  1426. {
  1427. return nullptr;
  1428. }
  1429. _impl_._has_bits_[0] &= ~0x00000001u;
  1430. auto* p = _impl_.parameter_.Release();
  1431. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1432. if (_impl_.parameter_.IsDefault())
  1433. {
  1434. _impl_.parameter_.Set("", GetArenaForAllocation());
  1435. }
  1436. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1437. return p;
  1438. }
  1439. inline void CodeGeneratorRequest::set_allocated_parameter(std::string* parameter)
  1440. {
  1441. if (parameter != nullptr)
  1442. {
  1443. _impl_._has_bits_[0] |= 0x00000001u;
  1444. }
  1445. else
  1446. {
  1447. _impl_._has_bits_[0] &= ~0x00000001u;
  1448. }
  1449. _impl_.parameter_.SetAllocated(parameter, GetArenaForAllocation());
  1450. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1451. if (_impl_.parameter_.IsDefault())
  1452. {
  1453. _impl_.parameter_.Set("", GetArenaForAllocation());
  1454. }
  1455. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1456. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1457. }
  1458. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  1459. inline int CodeGeneratorRequest::_internal_proto_file_size() const
  1460. {
  1461. return _impl_.proto_file_.size();
  1462. }
  1463. inline int CodeGeneratorRequest::proto_file_size() const
  1464. {
  1465. return _internal_proto_file_size();
  1466. }
  1467. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index)
  1468. {
  1469. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1470. return _impl_.proto_file_.Mutable(index);
  1471. }
  1472. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>*
  1473. CodeGeneratorRequest::mutable_proto_file()
  1474. {
  1475. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1476. return &_impl_.proto_file_;
  1477. }
  1478. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::_internal_proto_file(int index) const
  1479. {
  1480. return _impl_.proto_file_.Get(index);
  1481. }
  1482. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const
  1483. {
  1484. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1485. return _internal_proto_file(index);
  1486. }
  1487. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::_internal_add_proto_file()
  1488. {
  1489. return _impl_.proto_file_.Add();
  1490. }
  1491. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::add_proto_file()
  1492. {
  1493. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_proto_file();
  1494. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1495. return _add;
  1496. }
  1497. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>&
  1498. CodeGeneratorRequest::proto_file() const
  1499. {
  1500. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1501. return _impl_.proto_file_;
  1502. }
  1503. // optional .google.protobuf.compiler.Version compiler_version = 3;
  1504. inline bool CodeGeneratorRequest::_internal_has_compiler_version() const
  1505. {
  1506. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1507. PROTOBUF_ASSUME(!value || _impl_.compiler_version_ != nullptr);
  1508. return value;
  1509. }
  1510. inline bool CodeGeneratorRequest::has_compiler_version() const
  1511. {
  1512. return _internal_has_compiler_version();
  1513. }
  1514. inline void CodeGeneratorRequest::clear_compiler_version()
  1515. {
  1516. if (_impl_.compiler_version_ != nullptr)
  1517. _impl_.compiler_version_->Clear();
  1518. _impl_._has_bits_[0] &= ~0x00000002u;
  1519. }
  1520. inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::_internal_compiler_version() const
  1521. {
  1522. const ::PROTOBUF_NAMESPACE_ID::compiler::Version* p = _impl_.compiler_version_;
  1523. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::compiler::Version&>(::PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_);
  1524. }
  1525. inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::compiler_version() const
  1526. {
  1527. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1528. return _internal_compiler_version();
  1529. }
  1530. inline void CodeGeneratorRequest::unsafe_arena_set_allocated_compiler_version(
  1531. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version
  1532. )
  1533. {
  1534. if (GetArenaForAllocation() == nullptr)
  1535. {
  1536. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.compiler_version_);
  1537. }
  1538. _impl_.compiler_version_ = compiler_version;
  1539. if (compiler_version)
  1540. {
  1541. _impl_._has_bits_[0] |= 0x00000002u;
  1542. }
  1543. else
  1544. {
  1545. _impl_._has_bits_[0] &= ~0x00000002u;
  1546. }
  1547. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1548. }
  1549. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::release_compiler_version()
  1550. {
  1551. _impl_._has_bits_[0] &= ~0x00000002u;
  1552. ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = _impl_.compiler_version_;
  1553. _impl_.compiler_version_ = nullptr;
  1554. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1555. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1556. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1557. if (GetArenaForAllocation() == nullptr)
  1558. {
  1559. delete old;
  1560. }
  1561. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1562. if (GetArenaForAllocation() != nullptr)
  1563. {
  1564. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1565. }
  1566. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1567. return temp;
  1568. }
  1569. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::unsafe_arena_release_compiler_version()
  1570. {
  1571. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1572. _impl_._has_bits_[0] &= ~0x00000002u;
  1573. ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = _impl_.compiler_version_;
  1574. _impl_.compiler_version_ = nullptr;
  1575. return temp;
  1576. }
  1577. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::_internal_mutable_compiler_version()
  1578. {
  1579. _impl_._has_bits_[0] |= 0x00000002u;
  1580. if (_impl_.compiler_version_ == nullptr)
  1581. {
  1582. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(GetArenaForAllocation());
  1583. _impl_.compiler_version_ = p;
  1584. }
  1585. return _impl_.compiler_version_;
  1586. }
  1587. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::mutable_compiler_version()
  1588. {
  1589. ::PROTOBUF_NAMESPACE_ID::compiler::Version* _msg = _internal_mutable_compiler_version();
  1590. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1591. return _msg;
  1592. }
  1593. inline void CodeGeneratorRequest::set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version)
  1594. {
  1595. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1596. if (message_arena == nullptr)
  1597. {
  1598. delete _impl_.compiler_version_;
  1599. }
  1600. if (compiler_version)
  1601. {
  1602. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1603. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(compiler_version);
  1604. if (message_arena != submessage_arena)
  1605. {
  1606. compiler_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1607. message_arena, compiler_version, submessage_arena
  1608. );
  1609. }
  1610. _impl_._has_bits_[0] |= 0x00000002u;
  1611. }
  1612. else
  1613. {
  1614. _impl_._has_bits_[0] &= ~0x00000002u;
  1615. }
  1616. _impl_.compiler_version_ = compiler_version;
  1617. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1618. }
  1619. // -------------------------------------------------------------------
  1620. // CodeGeneratorResponse_File
  1621. // optional string name = 1;
  1622. inline bool CodeGeneratorResponse_File::_internal_has_name() const
  1623. {
  1624. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1625. return value;
  1626. }
  1627. inline bool CodeGeneratorResponse_File::has_name() const
  1628. {
  1629. return _internal_has_name();
  1630. }
  1631. inline void CodeGeneratorResponse_File::clear_name()
  1632. {
  1633. _impl_.name_.ClearToEmpty();
  1634. _impl_._has_bits_[0] &= ~0x00000001u;
  1635. }
  1636. inline const std::string& CodeGeneratorResponse_File::name() const
  1637. {
  1638. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1639. return _internal_name();
  1640. }
  1641. template<typename ArgT0, typename... ArgT>
  1642. inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_name(ArgT0&& arg0, ArgT... args)
  1643. {
  1644. _impl_._has_bits_[0] |= 0x00000001u;
  1645. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1646. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1647. }
  1648. inline std::string* CodeGeneratorResponse_File::mutable_name()
  1649. {
  1650. std::string* _s = _internal_mutable_name();
  1651. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1652. return _s;
  1653. }
  1654. inline const std::string& CodeGeneratorResponse_File::_internal_name() const
  1655. {
  1656. return _impl_.name_.Get();
  1657. }
  1658. inline void CodeGeneratorResponse_File::_internal_set_name(const std::string& value)
  1659. {
  1660. _impl_._has_bits_[0] |= 0x00000001u;
  1661. _impl_.name_.Set(value, GetArenaForAllocation());
  1662. }
  1663. inline std::string* CodeGeneratorResponse_File::_internal_mutable_name()
  1664. {
  1665. _impl_._has_bits_[0] |= 0x00000001u;
  1666. return _impl_.name_.Mutable(GetArenaForAllocation());
  1667. }
  1668. inline std::string* CodeGeneratorResponse_File::release_name()
  1669. {
  1670. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1671. if (!_internal_has_name())
  1672. {
  1673. return nullptr;
  1674. }
  1675. _impl_._has_bits_[0] &= ~0x00000001u;
  1676. auto* p = _impl_.name_.Release();
  1677. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1678. if (_impl_.name_.IsDefault())
  1679. {
  1680. _impl_.name_.Set("", GetArenaForAllocation());
  1681. }
  1682. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1683. return p;
  1684. }
  1685. inline void CodeGeneratorResponse_File::set_allocated_name(std::string* name)
  1686. {
  1687. if (name != nullptr)
  1688. {
  1689. _impl_._has_bits_[0] |= 0x00000001u;
  1690. }
  1691. else
  1692. {
  1693. _impl_._has_bits_[0] &= ~0x00000001u;
  1694. }
  1695. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  1696. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1697. if (_impl_.name_.IsDefault())
  1698. {
  1699. _impl_.name_.Set("", GetArenaForAllocation());
  1700. }
  1701. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1702. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1703. }
  1704. // optional string insertion_point = 2;
  1705. inline bool CodeGeneratorResponse_File::_internal_has_insertion_point() const
  1706. {
  1707. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1708. return value;
  1709. }
  1710. inline bool CodeGeneratorResponse_File::has_insertion_point() const
  1711. {
  1712. return _internal_has_insertion_point();
  1713. }
  1714. inline void CodeGeneratorResponse_File::clear_insertion_point()
  1715. {
  1716. _impl_.insertion_point_.ClearToEmpty();
  1717. _impl_._has_bits_[0] &= ~0x00000002u;
  1718. }
  1719. inline const std::string& CodeGeneratorResponse_File::insertion_point() const
  1720. {
  1721. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1722. return _internal_insertion_point();
  1723. }
  1724. template<typename ArgT0, typename... ArgT>
  1725. inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_insertion_point(ArgT0&& arg0, ArgT... args)
  1726. {
  1727. _impl_._has_bits_[0] |= 0x00000002u;
  1728. _impl_.insertion_point_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1729. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1730. }
  1731. inline std::string* CodeGeneratorResponse_File::mutable_insertion_point()
  1732. {
  1733. std::string* _s = _internal_mutable_insertion_point();
  1734. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1735. return _s;
  1736. }
  1737. inline const std::string& CodeGeneratorResponse_File::_internal_insertion_point() const
  1738. {
  1739. return _impl_.insertion_point_.Get();
  1740. }
  1741. inline void CodeGeneratorResponse_File::_internal_set_insertion_point(const std::string& value)
  1742. {
  1743. _impl_._has_bits_[0] |= 0x00000002u;
  1744. _impl_.insertion_point_.Set(value, GetArenaForAllocation());
  1745. }
  1746. inline std::string* CodeGeneratorResponse_File::_internal_mutable_insertion_point()
  1747. {
  1748. _impl_._has_bits_[0] |= 0x00000002u;
  1749. return _impl_.insertion_point_.Mutable(GetArenaForAllocation());
  1750. }
  1751. inline std::string* CodeGeneratorResponse_File::release_insertion_point()
  1752. {
  1753. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1754. if (!_internal_has_insertion_point())
  1755. {
  1756. return nullptr;
  1757. }
  1758. _impl_._has_bits_[0] &= ~0x00000002u;
  1759. auto* p = _impl_.insertion_point_.Release();
  1760. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1761. if (_impl_.insertion_point_.IsDefault())
  1762. {
  1763. _impl_.insertion_point_.Set("", GetArenaForAllocation());
  1764. }
  1765. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1766. return p;
  1767. }
  1768. inline void CodeGeneratorResponse_File::set_allocated_insertion_point(std::string* insertion_point)
  1769. {
  1770. if (insertion_point != nullptr)
  1771. {
  1772. _impl_._has_bits_[0] |= 0x00000002u;
  1773. }
  1774. else
  1775. {
  1776. _impl_._has_bits_[0] &= ~0x00000002u;
  1777. }
  1778. _impl_.insertion_point_.SetAllocated(insertion_point, GetArenaForAllocation());
  1779. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1780. if (_impl_.insertion_point_.IsDefault())
  1781. {
  1782. _impl_.insertion_point_.Set("", GetArenaForAllocation());
  1783. }
  1784. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1785. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1786. }
  1787. // optional string content = 15;
  1788. inline bool CodeGeneratorResponse_File::_internal_has_content() const
  1789. {
  1790. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  1791. return value;
  1792. }
  1793. inline bool CodeGeneratorResponse_File::has_content() const
  1794. {
  1795. return _internal_has_content();
  1796. }
  1797. inline void CodeGeneratorResponse_File::clear_content()
  1798. {
  1799. _impl_.content_.ClearToEmpty();
  1800. _impl_._has_bits_[0] &= ~0x00000004u;
  1801. }
  1802. inline const std::string& CodeGeneratorResponse_File::content() const
  1803. {
  1804. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1805. return _internal_content();
  1806. }
  1807. template<typename ArgT0, typename... ArgT>
  1808. inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_content(ArgT0&& arg0, ArgT... args)
  1809. {
  1810. _impl_._has_bits_[0] |= 0x00000004u;
  1811. _impl_.content_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1812. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1813. }
  1814. inline std::string* CodeGeneratorResponse_File::mutable_content()
  1815. {
  1816. std::string* _s = _internal_mutable_content();
  1817. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1818. return _s;
  1819. }
  1820. inline const std::string& CodeGeneratorResponse_File::_internal_content() const
  1821. {
  1822. return _impl_.content_.Get();
  1823. }
  1824. inline void CodeGeneratorResponse_File::_internal_set_content(const std::string& value)
  1825. {
  1826. _impl_._has_bits_[0] |= 0x00000004u;
  1827. _impl_.content_.Set(value, GetArenaForAllocation());
  1828. }
  1829. inline std::string* CodeGeneratorResponse_File::_internal_mutable_content()
  1830. {
  1831. _impl_._has_bits_[0] |= 0x00000004u;
  1832. return _impl_.content_.Mutable(GetArenaForAllocation());
  1833. }
  1834. inline std::string* CodeGeneratorResponse_File::release_content()
  1835. {
  1836. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1837. if (!_internal_has_content())
  1838. {
  1839. return nullptr;
  1840. }
  1841. _impl_._has_bits_[0] &= ~0x00000004u;
  1842. auto* p = _impl_.content_.Release();
  1843. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1844. if (_impl_.content_.IsDefault())
  1845. {
  1846. _impl_.content_.Set("", GetArenaForAllocation());
  1847. }
  1848. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1849. return p;
  1850. }
  1851. inline void CodeGeneratorResponse_File::set_allocated_content(std::string* content)
  1852. {
  1853. if (content != nullptr)
  1854. {
  1855. _impl_._has_bits_[0] |= 0x00000004u;
  1856. }
  1857. else
  1858. {
  1859. _impl_._has_bits_[0] &= ~0x00000004u;
  1860. }
  1861. _impl_.content_.SetAllocated(content, GetArenaForAllocation());
  1862. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1863. if (_impl_.content_.IsDefault())
  1864. {
  1865. _impl_.content_.Set("", GetArenaForAllocation());
  1866. }
  1867. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1868. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1869. }
  1870. // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
  1871. inline bool CodeGeneratorResponse_File::_internal_has_generated_code_info() const
  1872. {
  1873. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  1874. PROTOBUF_ASSUME(!value || _impl_.generated_code_info_ != nullptr);
  1875. return value;
  1876. }
  1877. inline bool CodeGeneratorResponse_File::has_generated_code_info() const
  1878. {
  1879. return _internal_has_generated_code_info();
  1880. }
  1881. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::_internal_generated_code_info() const
  1882. {
  1883. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* p = _impl_.generated_code_info_;
  1884. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo&>(::PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_);
  1885. }
  1886. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::generated_code_info() const
  1887. {
  1888. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1889. return _internal_generated_code_info();
  1890. }
  1891. inline void CodeGeneratorResponse_File::unsafe_arena_set_allocated_generated_code_info(
  1892. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info
  1893. )
  1894. {
  1895. if (GetArenaForAllocation() == nullptr)
  1896. {
  1897. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.generated_code_info_);
  1898. }
  1899. _impl_.generated_code_info_ = generated_code_info;
  1900. if (generated_code_info)
  1901. {
  1902. _impl_._has_bits_[0] |= 0x00000008u;
  1903. }
  1904. else
  1905. {
  1906. _impl_._has_bits_[0] &= ~0x00000008u;
  1907. }
  1908. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1909. }
  1910. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::release_generated_code_info()
  1911. {
  1912. _impl_._has_bits_[0] &= ~0x00000008u;
  1913. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = _impl_.generated_code_info_;
  1914. _impl_.generated_code_info_ = nullptr;
  1915. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1916. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1917. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1918. if (GetArenaForAllocation() == nullptr)
  1919. {
  1920. delete old;
  1921. }
  1922. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1923. if (GetArenaForAllocation() != nullptr)
  1924. {
  1925. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1926. }
  1927. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1928. return temp;
  1929. }
  1930. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::unsafe_arena_release_generated_code_info()
  1931. {
  1932. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1933. _impl_._has_bits_[0] &= ~0x00000008u;
  1934. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = _impl_.generated_code_info_;
  1935. _impl_.generated_code_info_ = nullptr;
  1936. return temp;
  1937. }
  1938. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::_internal_mutable_generated_code_info()
  1939. {
  1940. _impl_._has_bits_[0] |= 0x00000008u;
  1941. if (_impl_.generated_code_info_ == nullptr)
  1942. {
  1943. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(GetArenaForAllocation());
  1944. _impl_.generated_code_info_ = p;
  1945. }
  1946. return _impl_.generated_code_info_;
  1947. }
  1948. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::mutable_generated_code_info()
  1949. {
  1950. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _msg = _internal_mutable_generated_code_info();
  1951. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1952. return _msg;
  1953. }
  1954. inline void CodeGeneratorResponse_File::set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info)
  1955. {
  1956. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1957. if (message_arena == nullptr)
  1958. {
  1959. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.generated_code_info_);
  1960. }
  1961. if (generated_code_info)
  1962. {
  1963. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1964. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
  1965. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(generated_code_info)
  1966. );
  1967. if (message_arena != submessage_arena)
  1968. {
  1969. generated_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1970. message_arena, generated_code_info, submessage_arena
  1971. );
  1972. }
  1973. _impl_._has_bits_[0] |= 0x00000008u;
  1974. }
  1975. else
  1976. {
  1977. _impl_._has_bits_[0] &= ~0x00000008u;
  1978. }
  1979. _impl_.generated_code_info_ = generated_code_info;
  1980. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1981. }
  1982. // -------------------------------------------------------------------
  1983. // CodeGeneratorResponse
  1984. // optional string error = 1;
  1985. inline bool CodeGeneratorResponse::_internal_has_error() const
  1986. {
  1987. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1988. return value;
  1989. }
  1990. inline bool CodeGeneratorResponse::has_error() const
  1991. {
  1992. return _internal_has_error();
  1993. }
  1994. inline void CodeGeneratorResponse::clear_error()
  1995. {
  1996. _impl_.error_.ClearToEmpty();
  1997. _impl_._has_bits_[0] &= ~0x00000001u;
  1998. }
  1999. inline const std::string& CodeGeneratorResponse::error() const
  2000. {
  2001. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
  2002. return _internal_error();
  2003. }
  2004. template<typename ArgT0, typename... ArgT>
  2005. inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse::set_error(ArgT0&& arg0, ArgT... args)
  2006. {
  2007. _impl_._has_bits_[0] |= 0x00000001u;
  2008. _impl_.error_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  2009. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
  2010. }
  2011. inline std::string* CodeGeneratorResponse::mutable_error()
  2012. {
  2013. std::string* _s = _internal_mutable_error();
  2014. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
  2015. return _s;
  2016. }
  2017. inline const std::string& CodeGeneratorResponse::_internal_error() const
  2018. {
  2019. return _impl_.error_.Get();
  2020. }
  2021. inline void CodeGeneratorResponse::_internal_set_error(const std::string& value)
  2022. {
  2023. _impl_._has_bits_[0] |= 0x00000001u;
  2024. _impl_.error_.Set(value, GetArenaForAllocation());
  2025. }
  2026. inline std::string* CodeGeneratorResponse::_internal_mutable_error()
  2027. {
  2028. _impl_._has_bits_[0] |= 0x00000001u;
  2029. return _impl_.error_.Mutable(GetArenaForAllocation());
  2030. }
  2031. inline std::string* CodeGeneratorResponse::release_error()
  2032. {
  2033. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error)
  2034. if (!_internal_has_error())
  2035. {
  2036. return nullptr;
  2037. }
  2038. _impl_._has_bits_[0] &= ~0x00000001u;
  2039. auto* p = _impl_.error_.Release();
  2040. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2041. if (_impl_.error_.IsDefault())
  2042. {
  2043. _impl_.error_.Set("", GetArenaForAllocation());
  2044. }
  2045. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2046. return p;
  2047. }
  2048. inline void CodeGeneratorResponse::set_allocated_error(std::string* error)
  2049. {
  2050. if (error != nullptr)
  2051. {
  2052. _impl_._has_bits_[0] |= 0x00000001u;
  2053. }
  2054. else
  2055. {
  2056. _impl_._has_bits_[0] &= ~0x00000001u;
  2057. }
  2058. _impl_.error_.SetAllocated(error, GetArenaForAllocation());
  2059. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2060. if (_impl_.error_.IsDefault())
  2061. {
  2062. _impl_.error_.Set("", GetArenaForAllocation());
  2063. }
  2064. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2065. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
  2066. }
  2067. // optional uint64 supported_features = 2;
  2068. inline bool CodeGeneratorResponse::_internal_has_supported_features() const
  2069. {
  2070. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  2071. return value;
  2072. }
  2073. inline bool CodeGeneratorResponse::has_supported_features() const
  2074. {
  2075. return _internal_has_supported_features();
  2076. }
  2077. inline void CodeGeneratorResponse::clear_supported_features()
  2078. {
  2079. _impl_.supported_features_ = uint64_t{0u};
  2080. _impl_._has_bits_[0] &= ~0x00000002u;
  2081. }
  2082. inline uint64_t CodeGeneratorResponse::_internal_supported_features() const
  2083. {
  2084. return _impl_.supported_features_;
  2085. }
  2086. inline uint64_t CodeGeneratorResponse::supported_features() const
  2087. {
  2088. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.supported_features)
  2089. return _internal_supported_features();
  2090. }
  2091. inline void CodeGeneratorResponse::_internal_set_supported_features(uint64_t value)
  2092. {
  2093. _impl_._has_bits_[0] |= 0x00000002u;
  2094. _impl_.supported_features_ = value;
  2095. }
  2096. inline void CodeGeneratorResponse::set_supported_features(uint64_t value)
  2097. {
  2098. _internal_set_supported_features(value);
  2099. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.supported_features)
  2100. }
  2101. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  2102. inline int CodeGeneratorResponse::_internal_file_size() const
  2103. {
  2104. return _impl_.file_.size();
  2105. }
  2106. inline int CodeGeneratorResponse::file_size() const
  2107. {
  2108. return _internal_file_size();
  2109. }
  2110. inline void CodeGeneratorResponse::clear_file()
  2111. {
  2112. _impl_.file_.Clear();
  2113. }
  2114. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index)
  2115. {
  2116. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
  2117. return _impl_.file_.Mutable(index);
  2118. }
  2119. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>*
  2120. CodeGeneratorResponse::mutable_file()
  2121. {
  2122. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  2123. return &_impl_.file_;
  2124. }
  2125. inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::_internal_file(int index) const
  2126. {
  2127. return _impl_.file_.Get(index);
  2128. }
  2129. inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const
  2130. {
  2131. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
  2132. return _internal_file(index);
  2133. }
  2134. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::_internal_add_file()
  2135. {
  2136. return _impl_.file_.Add();
  2137. }
  2138. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file()
  2139. {
  2140. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _add = _internal_add_file();
  2141. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
  2142. return _add;
  2143. }
  2144. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>&
  2145. CodeGeneratorResponse::file() const
  2146. {
  2147. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  2148. return _impl_.file_;
  2149. }
  2150. #ifdef __GNUC__
  2151. #pragma GCC diagnostic pop
  2152. #endif // __GNUC__
  2153. // -------------------------------------------------------------------
  2154. // -------------------------------------------------------------------
  2155. // -------------------------------------------------------------------
  2156. // @@protoc_insertion_point(namespace_scope)
  2157. } // namespace compiler
  2158. PROTOBUF_NAMESPACE_CLOSE
  2159. PROTOBUF_NAMESPACE_OPEN
  2160. template<>
  2161. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature> : ::std::true_type
  2162. {
  2163. };
  2164. template<>
  2165. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature>()
  2166. {
  2167. return ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature_descriptor();
  2168. }
  2169. PROTOBUF_NAMESPACE_CLOSE
  2170. // @@protoc_insertion_point(global_scope)
  2171. #include <google/protobuf/port_undef.inc>
  2172. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto