plugin.pb.h 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831
  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 < 3018000
  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 3018001 < 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_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/generated_enum_reflection.h>
  30. #include <google/protobuf/unknown_field_set.h>
  31. #include <google/protobuf/descriptor.pb.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fcompiler_2fplugin_2eproto PROTOC_EXPORT
  35. #ifdef major
  36. #undef major
  37. #endif
  38. #ifdef minor
  39. #undef minor
  40. #endif
  41. PROTOBUF_NAMESPACE_OPEN
  42. namespace internal {
  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. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  49. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  51. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  52. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
  53. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  54. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  55. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  56. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  57. };
  58. PROTOC_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  59. PROTOBUF_NAMESPACE_OPEN
  60. namespace compiler {
  61. class CodeGeneratorRequest;
  62. struct CodeGeneratorRequestDefaultTypeInternal;
  63. PROTOC_EXPORT extern CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_;
  64. class CodeGeneratorResponse;
  65. struct CodeGeneratorResponseDefaultTypeInternal;
  66. PROTOC_EXPORT extern CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_;
  67. class CodeGeneratorResponse_File;
  68. struct CodeGeneratorResponse_FileDefaultTypeInternal;
  69. PROTOC_EXPORT extern CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_;
  70. class Version;
  71. struct VersionDefaultTypeInternal;
  72. PROTOC_EXPORT extern VersionDefaultTypeInternal _Version_default_instance_;
  73. } // namespace compiler
  74. PROTOBUF_NAMESPACE_CLOSE
  75. PROTOBUF_NAMESPACE_OPEN
  76. template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorRequest>(Arena*);
  77. template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse>(Arena*);
  78. template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File>(Arena*);
  79. template<> PROTOC_EXPORT ::PROTOBUF_NAMESPACE_ID::compiler::Version* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(Arena*);
  80. PROTOBUF_NAMESPACE_CLOSE
  81. PROTOBUF_NAMESPACE_OPEN
  82. namespace compiler {
  83. enum CodeGeneratorResponse_Feature : int {
  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. static_assert(::std::is_same<T, CodeGeneratorResponse_Feature>::value ||
  95. ::std::is_integral<T>::value,
  96. "Incorrect type passed to function CodeGeneratorResponse_Feature_Name.");
  97. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  98. CodeGeneratorResponse_Feature_descriptor(), enum_t_value);
  99. }
  100. inline bool CodeGeneratorResponse_Feature_Parse(
  101. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CodeGeneratorResponse_Feature* value) {
  102. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CodeGeneratorResponse_Feature>(
  103. CodeGeneratorResponse_Feature_descriptor(), name, value);
  104. }
  105. // ===================================================================
  106. class PROTOC_EXPORT Version final :
  107. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.Version) */ {
  108. public:
  109. inline Version() : Version(nullptr) {}
  110. ~Version() override;
  111. explicit constexpr Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  112. Version(const Version& from);
  113. Version(Version&& from) noexcept
  114. : Version() {
  115. *this = ::std::move(from);
  116. }
  117. inline Version& operator=(const Version& from) {
  118. CopyFrom(from);
  119. return *this;
  120. }
  121. inline Version& operator=(Version&& from) noexcept {
  122. if (this == &from) return *this;
  123. if (GetOwningArena() == from.GetOwningArena()
  124. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  125. && GetOwningArena() != nullptr
  126. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  127. ) {
  128. InternalSwap(&from);
  129. } else {
  130. CopyFrom(from);
  131. }
  132. return *this;
  133. }
  134. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  135. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  136. }
  137. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  138. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  139. }
  140. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  141. return GetDescriptor();
  142. }
  143. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  144. return default_instance().GetMetadata().descriptor;
  145. }
  146. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  147. return default_instance().GetMetadata().reflection;
  148. }
  149. static const Version& default_instance() {
  150. return *internal_default_instance();
  151. }
  152. static inline const Version* internal_default_instance() {
  153. return reinterpret_cast<const Version*>(
  154. &_Version_default_instance_);
  155. }
  156. static constexpr int kIndexInFileMessages =
  157. 0;
  158. friend void swap(Version& a, Version& b) {
  159. a.Swap(&b);
  160. }
  161. inline void Swap(Version* other) {
  162. if (other == this) return;
  163. if (GetOwningArena() == other->GetOwningArena()) {
  164. InternalSwap(other);
  165. } else {
  166. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  167. }
  168. }
  169. void UnsafeArenaSwap(Version* other) {
  170. if (other == this) return;
  171. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  172. InternalSwap(other);
  173. }
  174. // implements Message ----------------------------------------------
  175. inline Version* New() const final {
  176. return new Version();
  177. }
  178. Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  179. return CreateMaybeMessage<Version>(arena);
  180. }
  181. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  182. void CopyFrom(const Version& from);
  183. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  184. void MergeFrom(const Version& from);
  185. private:
  186. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  187. public:
  188. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  189. bool IsInitialized() const final;
  190. size_t ByteSizeLong() const final;
  191. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  192. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  193. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  194. int GetCachedSize() const final { return _cached_size_.Get(); }
  195. private:
  196. void SharedCtor();
  197. void SharedDtor();
  198. void SetCachedSize(int size) const final;
  199. void InternalSwap(Version* other);
  200. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  201. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  202. return "google.protobuf.compiler.Version";
  203. }
  204. protected:
  205. explicit Version(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  206. bool is_message_owned = false);
  207. private:
  208. static void ArenaDtor(void* object);
  209. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  210. public:
  211. static const ClassData _class_data_;
  212. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  213. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  214. // nested types ----------------------------------------------------
  215. // accessors -------------------------------------------------------
  216. enum : int {
  217. kSuffixFieldNumber = 4,
  218. kMajorFieldNumber = 1,
  219. kMinorFieldNumber = 2,
  220. kPatchFieldNumber = 3,
  221. };
  222. // optional string suffix = 4;
  223. bool has_suffix() const;
  224. private:
  225. bool _internal_has_suffix() const;
  226. public:
  227. void clear_suffix();
  228. const std::string& suffix() const;
  229. template <typename ArgT0 = const std::string&, typename... ArgT>
  230. void set_suffix(ArgT0&& arg0, ArgT... args);
  231. std::string* mutable_suffix();
  232. PROTOBUF_MUST_USE_RESULT std::string* release_suffix();
  233. void set_allocated_suffix(std::string* suffix);
  234. private:
  235. const std::string& _internal_suffix() const;
  236. inline PROTOBUF_ALWAYS_INLINE void _internal_set_suffix(const std::string& value);
  237. std::string* _internal_mutable_suffix();
  238. public:
  239. // optional int32 major = 1;
  240. bool has_major() const;
  241. private:
  242. bool _internal_has_major() const;
  243. public:
  244. void clear_major();
  245. ::PROTOBUF_NAMESPACE_ID::int32 major() const;
  246. void set_major(::PROTOBUF_NAMESPACE_ID::int32 value);
  247. private:
  248. ::PROTOBUF_NAMESPACE_ID::int32 _internal_major() const;
  249. void _internal_set_major(::PROTOBUF_NAMESPACE_ID::int32 value);
  250. public:
  251. // optional int32 minor = 2;
  252. bool has_minor() const;
  253. private:
  254. bool _internal_has_minor() const;
  255. public:
  256. void clear_minor();
  257. ::PROTOBUF_NAMESPACE_ID::int32 minor() const;
  258. void set_minor(::PROTOBUF_NAMESPACE_ID::int32 value);
  259. private:
  260. ::PROTOBUF_NAMESPACE_ID::int32 _internal_minor() const;
  261. void _internal_set_minor(::PROTOBUF_NAMESPACE_ID::int32 value);
  262. public:
  263. // optional int32 patch = 3;
  264. bool has_patch() const;
  265. private:
  266. bool _internal_has_patch() const;
  267. public:
  268. void clear_patch();
  269. ::PROTOBUF_NAMESPACE_ID::int32 patch() const;
  270. void set_patch(::PROTOBUF_NAMESPACE_ID::int32 value);
  271. private:
  272. ::PROTOBUF_NAMESPACE_ID::int32 _internal_patch() const;
  273. void _internal_set_patch(::PROTOBUF_NAMESPACE_ID::int32 value);
  274. public:
  275. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
  276. private:
  277. class _Internal;
  278. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  279. typedef void InternalArenaConstructable_;
  280. typedef void DestructorSkippable_;
  281. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  282. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  283. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr suffix_;
  284. ::PROTOBUF_NAMESPACE_ID::int32 major_;
  285. ::PROTOBUF_NAMESPACE_ID::int32 minor_;
  286. ::PROTOBUF_NAMESPACE_ID::int32 patch_;
  287. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  288. };
  289. // -------------------------------------------------------------------
  290. class PROTOC_EXPORT CodeGeneratorRequest final :
  291. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorRequest) */ {
  292. public:
  293. inline CodeGeneratorRequest() : CodeGeneratorRequest(nullptr) {}
  294. ~CodeGeneratorRequest() override;
  295. explicit constexpr CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  296. CodeGeneratorRequest(const CodeGeneratorRequest& from);
  297. CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept
  298. : CodeGeneratorRequest() {
  299. *this = ::std::move(from);
  300. }
  301. inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) {
  302. CopyFrom(from);
  303. return *this;
  304. }
  305. inline CodeGeneratorRequest& operator=(CodeGeneratorRequest&& from) noexcept {
  306. if (this == &from) return *this;
  307. if (GetOwningArena() == from.GetOwningArena()
  308. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  309. && GetOwningArena() != nullptr
  310. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  311. ) {
  312. InternalSwap(&from);
  313. } else {
  314. CopyFrom(from);
  315. }
  316. return *this;
  317. }
  318. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  319. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  320. }
  321. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  322. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  323. }
  324. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  325. return GetDescriptor();
  326. }
  327. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  328. return default_instance().GetMetadata().descriptor;
  329. }
  330. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  331. return default_instance().GetMetadata().reflection;
  332. }
  333. static const CodeGeneratorRequest& default_instance() {
  334. return *internal_default_instance();
  335. }
  336. static inline const CodeGeneratorRequest* internal_default_instance() {
  337. return reinterpret_cast<const CodeGeneratorRequest*>(
  338. &_CodeGeneratorRequest_default_instance_);
  339. }
  340. static constexpr int kIndexInFileMessages =
  341. 1;
  342. friend void swap(CodeGeneratorRequest& a, CodeGeneratorRequest& b) {
  343. a.Swap(&b);
  344. }
  345. inline void Swap(CodeGeneratorRequest* other) {
  346. if (other == this) return;
  347. if (GetOwningArena() == other->GetOwningArena()) {
  348. InternalSwap(other);
  349. } else {
  350. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  351. }
  352. }
  353. void UnsafeArenaSwap(CodeGeneratorRequest* other) {
  354. if (other == this) return;
  355. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  356. InternalSwap(other);
  357. }
  358. // implements Message ----------------------------------------------
  359. inline CodeGeneratorRequest* New() const final {
  360. return new CodeGeneratorRequest();
  361. }
  362. CodeGeneratorRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  363. return CreateMaybeMessage<CodeGeneratorRequest>(arena);
  364. }
  365. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  366. void CopyFrom(const CodeGeneratorRequest& from);
  367. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  368. void MergeFrom(const CodeGeneratorRequest& from);
  369. private:
  370. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  371. public:
  372. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  373. bool IsInitialized() const final;
  374. size_t ByteSizeLong() const final;
  375. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  376. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  377. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  378. int GetCachedSize() const final { return _cached_size_.Get(); }
  379. private:
  380. void SharedCtor();
  381. void SharedDtor();
  382. void SetCachedSize(int size) const final;
  383. void InternalSwap(CodeGeneratorRequest* other);
  384. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  385. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  386. return "google.protobuf.compiler.CodeGeneratorRequest";
  387. }
  388. protected:
  389. explicit CodeGeneratorRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  390. bool is_message_owned = false);
  391. private:
  392. static void ArenaDtor(void* object);
  393. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  394. public:
  395. static const ClassData _class_data_;
  396. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  397. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  398. // nested types ----------------------------------------------------
  399. // accessors -------------------------------------------------------
  400. enum : int {
  401. kFileToGenerateFieldNumber = 1,
  402. kProtoFileFieldNumber = 15,
  403. kParameterFieldNumber = 2,
  404. kCompilerVersionFieldNumber = 3,
  405. };
  406. // repeated string file_to_generate = 1;
  407. int file_to_generate_size() const;
  408. private:
  409. int _internal_file_to_generate_size() const;
  410. public:
  411. void clear_file_to_generate();
  412. const std::string& file_to_generate(int index) const;
  413. std::string* mutable_file_to_generate(int index);
  414. void set_file_to_generate(int index, const std::string& value);
  415. void set_file_to_generate(int index, std::string&& value);
  416. void set_file_to_generate(int index, const char* value);
  417. void set_file_to_generate(int index, const char* value, size_t size);
  418. std::string* add_file_to_generate();
  419. void add_file_to_generate(const std::string& value);
  420. void add_file_to_generate(std::string&& value);
  421. void add_file_to_generate(const char* value);
  422. void add_file_to_generate(const char* value, size_t size);
  423. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& file_to_generate() const;
  424. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_file_to_generate();
  425. private:
  426. const std::string& _internal_file_to_generate(int index) const;
  427. std::string* _internal_add_file_to_generate();
  428. public:
  429. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  430. int proto_file_size() const;
  431. private:
  432. int _internal_proto_file_size() const;
  433. public:
  434. void clear_proto_file();
  435. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_proto_file(int index);
  436. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  437. mutable_proto_file();
  438. private:
  439. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_proto_file(int index) const;
  440. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_proto_file();
  441. public:
  442. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& proto_file(int index) const;
  443. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_proto_file();
  444. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  445. proto_file() const;
  446. // optional string parameter = 2;
  447. bool has_parameter() const;
  448. private:
  449. bool _internal_has_parameter() const;
  450. public:
  451. void clear_parameter();
  452. const std::string& parameter() const;
  453. template <typename ArgT0 = const std::string&, typename... ArgT>
  454. void set_parameter(ArgT0&& arg0, ArgT... args);
  455. std::string* mutable_parameter();
  456. PROTOBUF_MUST_USE_RESULT std::string* release_parameter();
  457. void set_allocated_parameter(std::string* parameter);
  458. private:
  459. const std::string& _internal_parameter() const;
  460. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parameter(const std::string& value);
  461. std::string* _internal_mutable_parameter();
  462. public:
  463. // optional .google.protobuf.compiler.Version compiler_version = 3;
  464. bool has_compiler_version() const;
  465. private:
  466. bool _internal_has_compiler_version() const;
  467. public:
  468. void clear_compiler_version();
  469. const ::PROTOBUF_NAMESPACE_ID::compiler::Version& compiler_version() const;
  470. PROTOBUF_MUST_USE_RESULT ::PROTOBUF_NAMESPACE_ID::compiler::Version* release_compiler_version();
  471. ::PROTOBUF_NAMESPACE_ID::compiler::Version* mutable_compiler_version();
  472. void set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version);
  473. private:
  474. const ::PROTOBUF_NAMESPACE_ID::compiler::Version& _internal_compiler_version() const;
  475. ::PROTOBUF_NAMESPACE_ID::compiler::Version* _internal_mutable_compiler_version();
  476. public:
  477. void unsafe_arena_set_allocated_compiler_version(
  478. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version);
  479. ::PROTOBUF_NAMESPACE_ID::compiler::Version* unsafe_arena_release_compiler_version();
  480. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
  481. private:
  482. class _Internal;
  483. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  484. typedef void InternalArenaConstructable_;
  485. typedef void DestructorSkippable_;
  486. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  487. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  488. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> file_to_generate_;
  489. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > proto_file_;
  490. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parameter_;
  491. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version_;
  492. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  493. };
  494. // -------------------------------------------------------------------
  495. class PROTOC_EXPORT CodeGeneratorResponse_File final :
  496. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse.File) */ {
  497. public:
  498. inline CodeGeneratorResponse_File() : CodeGeneratorResponse_File(nullptr) {}
  499. ~CodeGeneratorResponse_File() override;
  500. explicit constexpr CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  501. CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from);
  502. CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept
  503. : CodeGeneratorResponse_File() {
  504. *this = ::std::move(from);
  505. }
  506. inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) {
  507. CopyFrom(from);
  508. return *this;
  509. }
  510. inline CodeGeneratorResponse_File& operator=(CodeGeneratorResponse_File&& from) noexcept {
  511. if (this == &from) return *this;
  512. if (GetOwningArena() == from.GetOwningArena()
  513. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  514. && GetOwningArena() != nullptr
  515. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  516. ) {
  517. InternalSwap(&from);
  518. } else {
  519. CopyFrom(from);
  520. }
  521. return *this;
  522. }
  523. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  524. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  525. }
  526. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  527. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  528. }
  529. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  530. return GetDescriptor();
  531. }
  532. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  533. return default_instance().GetMetadata().descriptor;
  534. }
  535. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  536. return default_instance().GetMetadata().reflection;
  537. }
  538. static const CodeGeneratorResponse_File& default_instance() {
  539. return *internal_default_instance();
  540. }
  541. static inline const CodeGeneratorResponse_File* internal_default_instance() {
  542. return reinterpret_cast<const CodeGeneratorResponse_File*>(
  543. &_CodeGeneratorResponse_File_default_instance_);
  544. }
  545. static constexpr int kIndexInFileMessages =
  546. 2;
  547. friend void swap(CodeGeneratorResponse_File& a, CodeGeneratorResponse_File& b) {
  548. a.Swap(&b);
  549. }
  550. inline void Swap(CodeGeneratorResponse_File* other) {
  551. if (other == this) return;
  552. if (GetOwningArena() == other->GetOwningArena()) {
  553. InternalSwap(other);
  554. } else {
  555. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  556. }
  557. }
  558. void UnsafeArenaSwap(CodeGeneratorResponse_File* other) {
  559. if (other == this) return;
  560. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  561. InternalSwap(other);
  562. }
  563. // implements Message ----------------------------------------------
  564. inline CodeGeneratorResponse_File* New() const final {
  565. return new CodeGeneratorResponse_File();
  566. }
  567. CodeGeneratorResponse_File* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  568. return CreateMaybeMessage<CodeGeneratorResponse_File>(arena);
  569. }
  570. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  571. void CopyFrom(const CodeGeneratorResponse_File& from);
  572. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  573. void MergeFrom(const CodeGeneratorResponse_File& from);
  574. private:
  575. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  576. public:
  577. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  578. bool IsInitialized() const final;
  579. size_t ByteSizeLong() const final;
  580. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  581. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  582. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  583. int GetCachedSize() const final { return _cached_size_.Get(); }
  584. private:
  585. void SharedCtor();
  586. void SharedDtor();
  587. void SetCachedSize(int size) const final;
  588. void InternalSwap(CodeGeneratorResponse_File* other);
  589. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  590. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  591. return "google.protobuf.compiler.CodeGeneratorResponse.File";
  592. }
  593. protected:
  594. explicit CodeGeneratorResponse_File(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  595. bool is_message_owned = false);
  596. private:
  597. static void ArenaDtor(void* object);
  598. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  599. public:
  600. static const ClassData _class_data_;
  601. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  602. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  603. // nested types ----------------------------------------------------
  604. // accessors -------------------------------------------------------
  605. enum : int {
  606. kNameFieldNumber = 1,
  607. kInsertionPointFieldNumber = 2,
  608. kContentFieldNumber = 15,
  609. kGeneratedCodeInfoFieldNumber = 16,
  610. };
  611. // optional string name = 1;
  612. bool has_name() const;
  613. private:
  614. bool _internal_has_name() const;
  615. public:
  616. void clear_name();
  617. const std::string& name() const;
  618. template <typename ArgT0 = const std::string&, typename... ArgT>
  619. void set_name(ArgT0&& arg0, ArgT... args);
  620. std::string* mutable_name();
  621. PROTOBUF_MUST_USE_RESULT std::string* release_name();
  622. void set_allocated_name(std::string* name);
  623. private:
  624. const std::string& _internal_name() const;
  625. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  626. std::string* _internal_mutable_name();
  627. public:
  628. // optional string insertion_point = 2;
  629. bool has_insertion_point() const;
  630. private:
  631. bool _internal_has_insertion_point() const;
  632. public:
  633. void clear_insertion_point();
  634. const std::string& insertion_point() const;
  635. template <typename ArgT0 = const std::string&, typename... ArgT>
  636. void set_insertion_point(ArgT0&& arg0, ArgT... args);
  637. std::string* mutable_insertion_point();
  638. PROTOBUF_MUST_USE_RESULT std::string* release_insertion_point();
  639. void set_allocated_insertion_point(std::string* insertion_point);
  640. private:
  641. const std::string& _internal_insertion_point() const;
  642. inline PROTOBUF_ALWAYS_INLINE void _internal_set_insertion_point(const std::string& value);
  643. std::string* _internal_mutable_insertion_point();
  644. public:
  645. // optional string content = 15;
  646. bool has_content() const;
  647. private:
  648. bool _internal_has_content() const;
  649. public:
  650. void clear_content();
  651. const std::string& content() const;
  652. template <typename ArgT0 = const std::string&, typename... ArgT>
  653. void set_content(ArgT0&& arg0, ArgT... args);
  654. std::string* mutable_content();
  655. PROTOBUF_MUST_USE_RESULT std::string* release_content();
  656. void set_allocated_content(std::string* content);
  657. private:
  658. const std::string& _internal_content() const;
  659. inline PROTOBUF_ALWAYS_INLINE void _internal_set_content(const std::string& value);
  660. std::string* _internal_mutable_content();
  661. public:
  662. // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
  663. bool has_generated_code_info() const;
  664. private:
  665. bool _internal_has_generated_code_info() const;
  666. public:
  667. void clear_generated_code_info();
  668. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& generated_code_info() const;
  669. PROTOBUF_MUST_USE_RESULT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* release_generated_code_info();
  670. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* mutable_generated_code_info();
  671. void set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info);
  672. private:
  673. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& _internal_generated_code_info() const;
  674. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _internal_mutable_generated_code_info();
  675. public:
  676. void unsafe_arena_set_allocated_generated_code_info(
  677. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info);
  678. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* unsafe_arena_release_generated_code_info();
  679. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
  680. private:
  681. class _Internal;
  682. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  683. typedef void InternalArenaConstructable_;
  684. typedef void DestructorSkippable_;
  685. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  686. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  687. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  688. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr insertion_point_;
  689. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_;
  690. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info_;
  691. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  692. };
  693. // -------------------------------------------------------------------
  694. class PROTOC_EXPORT CodeGeneratorResponse final :
  695. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.compiler.CodeGeneratorResponse) */ {
  696. public:
  697. inline CodeGeneratorResponse() : CodeGeneratorResponse(nullptr) {}
  698. ~CodeGeneratorResponse() override;
  699. explicit constexpr CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  700. CodeGeneratorResponse(const CodeGeneratorResponse& from);
  701. CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept
  702. : CodeGeneratorResponse() {
  703. *this = ::std::move(from);
  704. }
  705. inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) {
  706. CopyFrom(from);
  707. return *this;
  708. }
  709. inline CodeGeneratorResponse& operator=(CodeGeneratorResponse&& from) noexcept {
  710. if (this == &from) return *this;
  711. if (GetOwningArena() == from.GetOwningArena()
  712. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  713. && GetOwningArena() != nullptr
  714. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  715. ) {
  716. InternalSwap(&from);
  717. } else {
  718. CopyFrom(from);
  719. }
  720. return *this;
  721. }
  722. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  723. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  724. }
  725. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  726. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  727. }
  728. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  729. return GetDescriptor();
  730. }
  731. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  732. return default_instance().GetMetadata().descriptor;
  733. }
  734. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  735. return default_instance().GetMetadata().reflection;
  736. }
  737. static const CodeGeneratorResponse& default_instance() {
  738. return *internal_default_instance();
  739. }
  740. static inline const CodeGeneratorResponse* internal_default_instance() {
  741. return reinterpret_cast<const CodeGeneratorResponse*>(
  742. &_CodeGeneratorResponse_default_instance_);
  743. }
  744. static constexpr int kIndexInFileMessages =
  745. 3;
  746. friend void swap(CodeGeneratorResponse& a, CodeGeneratorResponse& b) {
  747. a.Swap(&b);
  748. }
  749. inline void Swap(CodeGeneratorResponse* other) {
  750. if (other == this) return;
  751. if (GetOwningArena() == other->GetOwningArena()) {
  752. InternalSwap(other);
  753. } else {
  754. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  755. }
  756. }
  757. void UnsafeArenaSwap(CodeGeneratorResponse* other) {
  758. if (other == this) return;
  759. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  760. InternalSwap(other);
  761. }
  762. // implements Message ----------------------------------------------
  763. inline CodeGeneratorResponse* New() const final {
  764. return new CodeGeneratorResponse();
  765. }
  766. CodeGeneratorResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  767. return CreateMaybeMessage<CodeGeneratorResponse>(arena);
  768. }
  769. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  770. void CopyFrom(const CodeGeneratorResponse& from);
  771. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  772. void MergeFrom(const CodeGeneratorResponse& from);
  773. private:
  774. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  775. public:
  776. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  777. bool IsInitialized() const final;
  778. size_t ByteSizeLong() const final;
  779. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  780. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  781. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  782. int GetCachedSize() const final { return _cached_size_.Get(); }
  783. private:
  784. void SharedCtor();
  785. void SharedDtor();
  786. void SetCachedSize(int size) const final;
  787. void InternalSwap(CodeGeneratorResponse* other);
  788. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  789. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  790. return "google.protobuf.compiler.CodeGeneratorResponse";
  791. }
  792. protected:
  793. explicit CodeGeneratorResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  794. bool is_message_owned = false);
  795. private:
  796. static void ArenaDtor(void* object);
  797. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  798. public:
  799. static const ClassData _class_data_;
  800. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  801. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  802. // nested types ----------------------------------------------------
  803. typedef CodeGeneratorResponse_File File;
  804. typedef CodeGeneratorResponse_Feature Feature;
  805. static constexpr Feature FEATURE_NONE =
  806. CodeGeneratorResponse_Feature_FEATURE_NONE;
  807. static constexpr Feature FEATURE_PROTO3_OPTIONAL =
  808. CodeGeneratorResponse_Feature_FEATURE_PROTO3_OPTIONAL;
  809. static inline bool Feature_IsValid(int value) {
  810. return CodeGeneratorResponse_Feature_IsValid(value);
  811. }
  812. static constexpr Feature Feature_MIN =
  813. CodeGeneratorResponse_Feature_Feature_MIN;
  814. static constexpr Feature Feature_MAX =
  815. CodeGeneratorResponse_Feature_Feature_MAX;
  816. static constexpr int Feature_ARRAYSIZE =
  817. CodeGeneratorResponse_Feature_Feature_ARRAYSIZE;
  818. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  819. Feature_descriptor() {
  820. return CodeGeneratorResponse_Feature_descriptor();
  821. }
  822. template<typename T>
  823. static inline const std::string& Feature_Name(T enum_t_value) {
  824. static_assert(::std::is_same<T, Feature>::value ||
  825. ::std::is_integral<T>::value,
  826. "Incorrect type passed to function Feature_Name.");
  827. return CodeGeneratorResponse_Feature_Name(enum_t_value);
  828. }
  829. static inline bool Feature_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  830. Feature* value) {
  831. return CodeGeneratorResponse_Feature_Parse(name, value);
  832. }
  833. // accessors -------------------------------------------------------
  834. enum : int {
  835. kFileFieldNumber = 15,
  836. kErrorFieldNumber = 1,
  837. kSupportedFeaturesFieldNumber = 2,
  838. };
  839. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  840. int file_size() const;
  841. private:
  842. int _internal_file_size() const;
  843. public:
  844. void clear_file();
  845. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* mutable_file(int index);
  846. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >*
  847. mutable_file();
  848. private:
  849. const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& _internal_file(int index) const;
  850. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _internal_add_file();
  851. public:
  852. const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& file(int index) const;
  853. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* add_file();
  854. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >&
  855. file() const;
  856. // optional string error = 1;
  857. bool has_error() const;
  858. private:
  859. bool _internal_has_error() const;
  860. public:
  861. void clear_error();
  862. const std::string& error() const;
  863. template <typename ArgT0 = const std::string&, typename... ArgT>
  864. void set_error(ArgT0&& arg0, ArgT... args);
  865. std::string* mutable_error();
  866. PROTOBUF_MUST_USE_RESULT std::string* release_error();
  867. void set_allocated_error(std::string* error);
  868. private:
  869. const std::string& _internal_error() const;
  870. inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value);
  871. std::string* _internal_mutable_error();
  872. public:
  873. // optional uint64 supported_features = 2;
  874. bool has_supported_features() const;
  875. private:
  876. bool _internal_has_supported_features() const;
  877. public:
  878. void clear_supported_features();
  879. ::PROTOBUF_NAMESPACE_ID::uint64 supported_features() const;
  880. void set_supported_features(::PROTOBUF_NAMESPACE_ID::uint64 value);
  881. private:
  882. ::PROTOBUF_NAMESPACE_ID::uint64 _internal_supported_features() const;
  883. void _internal_set_supported_features(::PROTOBUF_NAMESPACE_ID::uint64 value);
  884. public:
  885. // @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
  886. private:
  887. class _Internal;
  888. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  889. typedef void InternalArenaConstructable_;
  890. typedef void DestructorSkippable_;
  891. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  892. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  893. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File > file_;
  894. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_;
  895. ::PROTOBUF_NAMESPACE_ID::uint64 supported_features_;
  896. friend struct ::TableStruct_google_2fprotobuf_2fcompiler_2fplugin_2eproto;
  897. };
  898. // ===================================================================
  899. // ===================================================================
  900. #ifdef __GNUC__
  901. #pragma GCC diagnostic push
  902. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  903. #endif // __GNUC__
  904. // Version
  905. // optional int32 major = 1;
  906. inline bool Version::_internal_has_major() const {
  907. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  908. return value;
  909. }
  910. inline bool Version::has_major() const {
  911. return _internal_has_major();
  912. }
  913. inline void Version::clear_major() {
  914. major_ = 0;
  915. _has_bits_[0] &= ~0x00000002u;
  916. }
  917. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_major() const {
  918. return major_;
  919. }
  920. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::major() const {
  921. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.major)
  922. return _internal_major();
  923. }
  924. inline void Version::_internal_set_major(::PROTOBUF_NAMESPACE_ID::int32 value) {
  925. _has_bits_[0] |= 0x00000002u;
  926. major_ = value;
  927. }
  928. inline void Version::set_major(::PROTOBUF_NAMESPACE_ID::int32 value) {
  929. _internal_set_major(value);
  930. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.major)
  931. }
  932. // optional int32 minor = 2;
  933. inline bool Version::_internal_has_minor() const {
  934. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  935. return value;
  936. }
  937. inline bool Version::has_minor() const {
  938. return _internal_has_minor();
  939. }
  940. inline void Version::clear_minor() {
  941. minor_ = 0;
  942. _has_bits_[0] &= ~0x00000004u;
  943. }
  944. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_minor() const {
  945. return minor_;
  946. }
  947. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::minor() const {
  948. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.minor)
  949. return _internal_minor();
  950. }
  951. inline void Version::_internal_set_minor(::PROTOBUF_NAMESPACE_ID::int32 value) {
  952. _has_bits_[0] |= 0x00000004u;
  953. minor_ = value;
  954. }
  955. inline void Version::set_minor(::PROTOBUF_NAMESPACE_ID::int32 value) {
  956. _internal_set_minor(value);
  957. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.minor)
  958. }
  959. // optional int32 patch = 3;
  960. inline bool Version::_internal_has_patch() const {
  961. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  962. return value;
  963. }
  964. inline bool Version::has_patch() const {
  965. return _internal_has_patch();
  966. }
  967. inline void Version::clear_patch() {
  968. patch_ = 0;
  969. _has_bits_[0] &= ~0x00000008u;
  970. }
  971. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::_internal_patch() const {
  972. return patch_;
  973. }
  974. inline ::PROTOBUF_NAMESPACE_ID::int32 Version::patch() const {
  975. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.patch)
  976. return _internal_patch();
  977. }
  978. inline void Version::_internal_set_patch(::PROTOBUF_NAMESPACE_ID::int32 value) {
  979. _has_bits_[0] |= 0x00000008u;
  980. patch_ = value;
  981. }
  982. inline void Version::set_patch(::PROTOBUF_NAMESPACE_ID::int32 value) {
  983. _internal_set_patch(value);
  984. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.patch)
  985. }
  986. // optional string suffix = 4;
  987. inline bool Version::_internal_has_suffix() const {
  988. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  989. return value;
  990. }
  991. inline bool Version::has_suffix() const {
  992. return _internal_has_suffix();
  993. }
  994. inline void Version::clear_suffix() {
  995. suffix_.ClearToEmpty();
  996. _has_bits_[0] &= ~0x00000001u;
  997. }
  998. inline const std::string& Version::suffix() const {
  999. // @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
  1000. return _internal_suffix();
  1001. }
  1002. template <typename ArgT0, typename... ArgT>
  1003. inline PROTOBUF_ALWAYS_INLINE
  1004. void Version::set_suffix(ArgT0&& arg0, ArgT... args) {
  1005. _has_bits_[0] |= 0x00000001u;
  1006. suffix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1007. // @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
  1008. }
  1009. inline std::string* Version::mutable_suffix() {
  1010. std::string* _s = _internal_mutable_suffix();
  1011. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix)
  1012. return _s;
  1013. }
  1014. inline const std::string& Version::_internal_suffix() const {
  1015. return suffix_.Get();
  1016. }
  1017. inline void Version::_internal_set_suffix(const std::string& value) {
  1018. _has_bits_[0] |= 0x00000001u;
  1019. suffix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1020. }
  1021. inline std::string* Version::_internal_mutable_suffix() {
  1022. _has_bits_[0] |= 0x00000001u;
  1023. return suffix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1024. }
  1025. inline std::string* Version::release_suffix() {
  1026. // @@protoc_insertion_point(field_release:google.protobuf.compiler.Version.suffix)
  1027. if (!_internal_has_suffix()) {
  1028. return nullptr;
  1029. }
  1030. _has_bits_[0] &= ~0x00000001u;
  1031. return suffix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1032. }
  1033. inline void Version::set_allocated_suffix(std::string* suffix) {
  1034. if (suffix != nullptr) {
  1035. _has_bits_[0] |= 0x00000001u;
  1036. } else {
  1037. _has_bits_[0] &= ~0x00000001u;
  1038. }
  1039. suffix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), suffix,
  1040. GetArenaForAllocation());
  1041. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.Version.suffix)
  1042. }
  1043. // -------------------------------------------------------------------
  1044. // CodeGeneratorRequest
  1045. // repeated string file_to_generate = 1;
  1046. inline int CodeGeneratorRequest::_internal_file_to_generate_size() const {
  1047. return file_to_generate_.size();
  1048. }
  1049. inline int CodeGeneratorRequest::file_to_generate_size() const {
  1050. return _internal_file_to_generate_size();
  1051. }
  1052. inline void CodeGeneratorRequest::clear_file_to_generate() {
  1053. file_to_generate_.Clear();
  1054. }
  1055. inline std::string* CodeGeneratorRequest::add_file_to_generate() {
  1056. std::string* _s = _internal_add_file_to_generate();
  1057. // @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1058. return _s;
  1059. }
  1060. inline const std::string& CodeGeneratorRequest::_internal_file_to_generate(int index) const {
  1061. return file_to_generate_.Get(index);
  1062. }
  1063. inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const {
  1064. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1065. return _internal_file_to_generate(index);
  1066. }
  1067. inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
  1068. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1069. return file_to_generate_.Mutable(index);
  1070. }
  1071. inline void CodeGeneratorRequest::set_file_to_generate(int index, const std::string& value) {
  1072. file_to_generate_.Mutable(index)->assign(value);
  1073. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1074. }
  1075. inline void CodeGeneratorRequest::set_file_to_generate(int index, std::string&& value) {
  1076. file_to_generate_.Mutable(index)->assign(std::move(value));
  1077. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1078. }
  1079. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value) {
  1080. GOOGLE_DCHECK(value != nullptr);
  1081. file_to_generate_.Mutable(index)->assign(value);
  1082. // @@protoc_insertion_point(field_set_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1083. }
  1084. inline void CodeGeneratorRequest::set_file_to_generate(int index, const char* value, size_t size) {
  1085. file_to_generate_.Mutable(index)->assign(
  1086. reinterpret_cast<const char*>(value), size);
  1087. // @@protoc_insertion_point(field_set_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1088. }
  1089. inline std::string* CodeGeneratorRequest::_internal_add_file_to_generate() {
  1090. return file_to_generate_.Add();
  1091. }
  1092. inline void CodeGeneratorRequest::add_file_to_generate(const std::string& value) {
  1093. file_to_generate_.Add()->assign(value);
  1094. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1095. }
  1096. inline void CodeGeneratorRequest::add_file_to_generate(std::string&& value) {
  1097. file_to_generate_.Add(std::move(value));
  1098. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1099. }
  1100. inline void CodeGeneratorRequest::add_file_to_generate(const char* value) {
  1101. GOOGLE_DCHECK(value != nullptr);
  1102. file_to_generate_.Add()->assign(value);
  1103. // @@protoc_insertion_point(field_add_char:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1104. }
  1105. inline void CodeGeneratorRequest::add_file_to_generate(const char* value, size_t size) {
  1106. file_to_generate_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1107. // @@protoc_insertion_point(field_add_pointer:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1108. }
  1109. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1110. CodeGeneratorRequest::file_to_generate() const {
  1111. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1112. return file_to_generate_;
  1113. }
  1114. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1115. CodeGeneratorRequest::mutable_file_to_generate() {
  1116. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
  1117. return &file_to_generate_;
  1118. }
  1119. // optional string parameter = 2;
  1120. inline bool CodeGeneratorRequest::_internal_has_parameter() const {
  1121. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1122. return value;
  1123. }
  1124. inline bool CodeGeneratorRequest::has_parameter() const {
  1125. return _internal_has_parameter();
  1126. }
  1127. inline void CodeGeneratorRequest::clear_parameter() {
  1128. parameter_.ClearToEmpty();
  1129. _has_bits_[0] &= ~0x00000001u;
  1130. }
  1131. inline const std::string& CodeGeneratorRequest::parameter() const {
  1132. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1133. return _internal_parameter();
  1134. }
  1135. template <typename ArgT0, typename... ArgT>
  1136. inline PROTOBUF_ALWAYS_INLINE
  1137. void CodeGeneratorRequest::set_parameter(ArgT0&& arg0, ArgT... args) {
  1138. _has_bits_[0] |= 0x00000001u;
  1139. parameter_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1140. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1141. }
  1142. inline std::string* CodeGeneratorRequest::mutable_parameter() {
  1143. std::string* _s = _internal_mutable_parameter();
  1144. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1145. return _s;
  1146. }
  1147. inline const std::string& CodeGeneratorRequest::_internal_parameter() const {
  1148. return parameter_.Get();
  1149. }
  1150. inline void CodeGeneratorRequest::_internal_set_parameter(const std::string& value) {
  1151. _has_bits_[0] |= 0x00000001u;
  1152. parameter_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1153. }
  1154. inline std::string* CodeGeneratorRequest::_internal_mutable_parameter() {
  1155. _has_bits_[0] |= 0x00000001u;
  1156. return parameter_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1157. }
  1158. inline std::string* CodeGeneratorRequest::release_parameter() {
  1159. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1160. if (!_internal_has_parameter()) {
  1161. return nullptr;
  1162. }
  1163. _has_bits_[0] &= ~0x00000001u;
  1164. return parameter_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1165. }
  1166. inline void CodeGeneratorRequest::set_allocated_parameter(std::string* parameter) {
  1167. if (parameter != nullptr) {
  1168. _has_bits_[0] |= 0x00000001u;
  1169. } else {
  1170. _has_bits_[0] &= ~0x00000001u;
  1171. }
  1172. parameter_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parameter,
  1173. GetArenaForAllocation());
  1174. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.parameter)
  1175. }
  1176. // repeated .google.protobuf.FileDescriptorProto proto_file = 15;
  1177. inline int CodeGeneratorRequest::_internal_proto_file_size() const {
  1178. return proto_file_.size();
  1179. }
  1180. inline int CodeGeneratorRequest::proto_file_size() const {
  1181. return _internal_proto_file_size();
  1182. }
  1183. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
  1184. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1185. return proto_file_.Mutable(index);
  1186. }
  1187. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  1188. CodeGeneratorRequest::mutable_proto_file() {
  1189. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1190. return &proto_file_;
  1191. }
  1192. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::_internal_proto_file(int index) const {
  1193. return proto_file_.Get(index);
  1194. }
  1195. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
  1196. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1197. return _internal_proto_file(index);
  1198. }
  1199. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::_internal_add_proto_file() {
  1200. return proto_file_.Add();
  1201. }
  1202. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
  1203. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_proto_file();
  1204. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1205. return _add;
  1206. }
  1207. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  1208. CodeGeneratorRequest::proto_file() const {
  1209. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
  1210. return proto_file_;
  1211. }
  1212. // optional .google.protobuf.compiler.Version compiler_version = 3;
  1213. inline bool CodeGeneratorRequest::_internal_has_compiler_version() const {
  1214. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1215. PROTOBUF_ASSUME(!value || compiler_version_ != nullptr);
  1216. return value;
  1217. }
  1218. inline bool CodeGeneratorRequest::has_compiler_version() const {
  1219. return _internal_has_compiler_version();
  1220. }
  1221. inline void CodeGeneratorRequest::clear_compiler_version() {
  1222. if (compiler_version_ != nullptr) compiler_version_->Clear();
  1223. _has_bits_[0] &= ~0x00000002u;
  1224. }
  1225. inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::_internal_compiler_version() const {
  1226. const ::PROTOBUF_NAMESPACE_ID::compiler::Version* p = compiler_version_;
  1227. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::compiler::Version&>(
  1228. ::PROTOBUF_NAMESPACE_ID::compiler::_Version_default_instance_);
  1229. }
  1230. inline const ::PROTOBUF_NAMESPACE_ID::compiler::Version& CodeGeneratorRequest::compiler_version() const {
  1231. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1232. return _internal_compiler_version();
  1233. }
  1234. inline void CodeGeneratorRequest::unsafe_arena_set_allocated_compiler_version(
  1235. ::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version) {
  1236. if (GetArenaForAllocation() == nullptr) {
  1237. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(compiler_version_);
  1238. }
  1239. compiler_version_ = compiler_version;
  1240. if (compiler_version) {
  1241. _has_bits_[0] |= 0x00000002u;
  1242. } else {
  1243. _has_bits_[0] &= ~0x00000002u;
  1244. }
  1245. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1246. }
  1247. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::release_compiler_version() {
  1248. _has_bits_[0] &= ~0x00000002u;
  1249. ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = compiler_version_;
  1250. compiler_version_ = nullptr;
  1251. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1252. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1253. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1254. if (GetArenaForAllocation() == nullptr) { delete old; }
  1255. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1256. if (GetArenaForAllocation() != nullptr) {
  1257. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1258. }
  1259. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1260. return temp;
  1261. }
  1262. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::unsafe_arena_release_compiler_version() {
  1263. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1264. _has_bits_[0] &= ~0x00000002u;
  1265. ::PROTOBUF_NAMESPACE_ID::compiler::Version* temp = compiler_version_;
  1266. compiler_version_ = nullptr;
  1267. return temp;
  1268. }
  1269. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::_internal_mutable_compiler_version() {
  1270. _has_bits_[0] |= 0x00000002u;
  1271. if (compiler_version_ == nullptr) {
  1272. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::compiler::Version>(GetArenaForAllocation());
  1273. compiler_version_ = p;
  1274. }
  1275. return compiler_version_;
  1276. }
  1277. inline ::PROTOBUF_NAMESPACE_ID::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() {
  1278. ::PROTOBUF_NAMESPACE_ID::compiler::Version* _msg = _internal_mutable_compiler_version();
  1279. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1280. return _msg;
  1281. }
  1282. inline void CodeGeneratorRequest::set_allocated_compiler_version(::PROTOBUF_NAMESPACE_ID::compiler::Version* compiler_version) {
  1283. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1284. if (message_arena == nullptr) {
  1285. delete compiler_version_;
  1286. }
  1287. if (compiler_version) {
  1288. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1289. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::compiler::Version>::GetOwningArena(compiler_version);
  1290. if (message_arena != submessage_arena) {
  1291. compiler_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1292. message_arena, compiler_version, submessage_arena);
  1293. }
  1294. _has_bits_[0] |= 0x00000002u;
  1295. } else {
  1296. _has_bits_[0] &= ~0x00000002u;
  1297. }
  1298. compiler_version_ = compiler_version;
  1299. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
  1300. }
  1301. // -------------------------------------------------------------------
  1302. // CodeGeneratorResponse_File
  1303. // optional string name = 1;
  1304. inline bool CodeGeneratorResponse_File::_internal_has_name() const {
  1305. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1306. return value;
  1307. }
  1308. inline bool CodeGeneratorResponse_File::has_name() const {
  1309. return _internal_has_name();
  1310. }
  1311. inline void CodeGeneratorResponse_File::clear_name() {
  1312. name_.ClearToEmpty();
  1313. _has_bits_[0] &= ~0x00000001u;
  1314. }
  1315. inline const std::string& CodeGeneratorResponse_File::name() const {
  1316. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1317. return _internal_name();
  1318. }
  1319. template <typename ArgT0, typename... ArgT>
  1320. inline PROTOBUF_ALWAYS_INLINE
  1321. void CodeGeneratorResponse_File::set_name(ArgT0&& arg0, ArgT... args) {
  1322. _has_bits_[0] |= 0x00000001u;
  1323. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1324. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1325. }
  1326. inline std::string* CodeGeneratorResponse_File::mutable_name() {
  1327. std::string* _s = _internal_mutable_name();
  1328. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1329. return _s;
  1330. }
  1331. inline const std::string& CodeGeneratorResponse_File::_internal_name() const {
  1332. return name_.Get();
  1333. }
  1334. inline void CodeGeneratorResponse_File::_internal_set_name(const std::string& value) {
  1335. _has_bits_[0] |= 0x00000001u;
  1336. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1337. }
  1338. inline std::string* CodeGeneratorResponse_File::_internal_mutable_name() {
  1339. _has_bits_[0] |= 0x00000001u;
  1340. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1341. }
  1342. inline std::string* CodeGeneratorResponse_File::release_name() {
  1343. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1344. if (!_internal_has_name()) {
  1345. return nullptr;
  1346. }
  1347. _has_bits_[0] &= ~0x00000001u;
  1348. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1349. }
  1350. inline void CodeGeneratorResponse_File::set_allocated_name(std::string* name) {
  1351. if (name != nullptr) {
  1352. _has_bits_[0] |= 0x00000001u;
  1353. } else {
  1354. _has_bits_[0] &= ~0x00000001u;
  1355. }
  1356. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1357. GetArenaForAllocation());
  1358. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.name)
  1359. }
  1360. // optional string insertion_point = 2;
  1361. inline bool CodeGeneratorResponse_File::_internal_has_insertion_point() const {
  1362. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1363. return value;
  1364. }
  1365. inline bool CodeGeneratorResponse_File::has_insertion_point() const {
  1366. return _internal_has_insertion_point();
  1367. }
  1368. inline void CodeGeneratorResponse_File::clear_insertion_point() {
  1369. insertion_point_.ClearToEmpty();
  1370. _has_bits_[0] &= ~0x00000002u;
  1371. }
  1372. inline const std::string& CodeGeneratorResponse_File::insertion_point() const {
  1373. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1374. return _internal_insertion_point();
  1375. }
  1376. template <typename ArgT0, typename... ArgT>
  1377. inline PROTOBUF_ALWAYS_INLINE
  1378. void CodeGeneratorResponse_File::set_insertion_point(ArgT0&& arg0, ArgT... args) {
  1379. _has_bits_[0] |= 0x00000002u;
  1380. insertion_point_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1381. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1382. }
  1383. inline std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
  1384. std::string* _s = _internal_mutable_insertion_point();
  1385. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1386. return _s;
  1387. }
  1388. inline const std::string& CodeGeneratorResponse_File::_internal_insertion_point() const {
  1389. return insertion_point_.Get();
  1390. }
  1391. inline void CodeGeneratorResponse_File::_internal_set_insertion_point(const std::string& value) {
  1392. _has_bits_[0] |= 0x00000002u;
  1393. insertion_point_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1394. }
  1395. inline std::string* CodeGeneratorResponse_File::_internal_mutable_insertion_point() {
  1396. _has_bits_[0] |= 0x00000002u;
  1397. return insertion_point_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1398. }
  1399. inline std::string* CodeGeneratorResponse_File::release_insertion_point() {
  1400. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1401. if (!_internal_has_insertion_point()) {
  1402. return nullptr;
  1403. }
  1404. _has_bits_[0] &= ~0x00000002u;
  1405. return insertion_point_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1406. }
  1407. inline void CodeGeneratorResponse_File::set_allocated_insertion_point(std::string* insertion_point) {
  1408. if (insertion_point != nullptr) {
  1409. _has_bits_[0] |= 0x00000002u;
  1410. } else {
  1411. _has_bits_[0] &= ~0x00000002u;
  1412. }
  1413. insertion_point_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), insertion_point,
  1414. GetArenaForAllocation());
  1415. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
  1416. }
  1417. // optional string content = 15;
  1418. inline bool CodeGeneratorResponse_File::_internal_has_content() const {
  1419. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  1420. return value;
  1421. }
  1422. inline bool CodeGeneratorResponse_File::has_content() const {
  1423. return _internal_has_content();
  1424. }
  1425. inline void CodeGeneratorResponse_File::clear_content() {
  1426. content_.ClearToEmpty();
  1427. _has_bits_[0] &= ~0x00000004u;
  1428. }
  1429. inline const std::string& CodeGeneratorResponse_File::content() const {
  1430. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1431. return _internal_content();
  1432. }
  1433. template <typename ArgT0, typename... ArgT>
  1434. inline PROTOBUF_ALWAYS_INLINE
  1435. void CodeGeneratorResponse_File::set_content(ArgT0&& arg0, ArgT... args) {
  1436. _has_bits_[0] |= 0x00000004u;
  1437. content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1438. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1439. }
  1440. inline std::string* CodeGeneratorResponse_File::mutable_content() {
  1441. std::string* _s = _internal_mutable_content();
  1442. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1443. return _s;
  1444. }
  1445. inline const std::string& CodeGeneratorResponse_File::_internal_content() const {
  1446. return content_.Get();
  1447. }
  1448. inline void CodeGeneratorResponse_File::_internal_set_content(const std::string& value) {
  1449. _has_bits_[0] |= 0x00000004u;
  1450. content_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1451. }
  1452. inline std::string* CodeGeneratorResponse_File::_internal_mutable_content() {
  1453. _has_bits_[0] |= 0x00000004u;
  1454. return content_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1455. }
  1456. inline std::string* CodeGeneratorResponse_File::release_content() {
  1457. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1458. if (!_internal_has_content()) {
  1459. return nullptr;
  1460. }
  1461. _has_bits_[0] &= ~0x00000004u;
  1462. return content_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1463. }
  1464. inline void CodeGeneratorResponse_File::set_allocated_content(std::string* content) {
  1465. if (content != nullptr) {
  1466. _has_bits_[0] |= 0x00000004u;
  1467. } else {
  1468. _has_bits_[0] &= ~0x00000004u;
  1469. }
  1470. content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content,
  1471. GetArenaForAllocation());
  1472. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.content)
  1473. }
  1474. // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
  1475. inline bool CodeGeneratorResponse_File::_internal_has_generated_code_info() const {
  1476. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  1477. PROTOBUF_ASSUME(!value || generated_code_info_ != nullptr);
  1478. return value;
  1479. }
  1480. inline bool CodeGeneratorResponse_File::has_generated_code_info() const {
  1481. return _internal_has_generated_code_info();
  1482. }
  1483. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::_internal_generated_code_info() const {
  1484. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* p = generated_code_info_;
  1485. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo&>(
  1486. ::PROTOBUF_NAMESPACE_ID::_GeneratedCodeInfo_default_instance_);
  1487. }
  1488. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo& CodeGeneratorResponse_File::generated_code_info() const {
  1489. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1490. return _internal_generated_code_info();
  1491. }
  1492. inline void CodeGeneratorResponse_File::unsafe_arena_set_allocated_generated_code_info(
  1493. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info) {
  1494. if (GetArenaForAllocation() == nullptr) {
  1495. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(generated_code_info_);
  1496. }
  1497. generated_code_info_ = generated_code_info;
  1498. if (generated_code_info) {
  1499. _has_bits_[0] |= 0x00000008u;
  1500. } else {
  1501. _has_bits_[0] &= ~0x00000008u;
  1502. }
  1503. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1504. }
  1505. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::release_generated_code_info() {
  1506. _has_bits_[0] &= ~0x00000008u;
  1507. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = generated_code_info_;
  1508. generated_code_info_ = nullptr;
  1509. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1510. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1511. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1512. if (GetArenaForAllocation() == nullptr) { delete old; }
  1513. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1514. if (GetArenaForAllocation() != nullptr) {
  1515. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1516. }
  1517. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1518. return temp;
  1519. }
  1520. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::unsafe_arena_release_generated_code_info() {
  1521. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1522. _has_bits_[0] &= ~0x00000008u;
  1523. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* temp = generated_code_info_;
  1524. generated_code_info_ = nullptr;
  1525. return temp;
  1526. }
  1527. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::_internal_mutable_generated_code_info() {
  1528. _has_bits_[0] |= 0x00000008u;
  1529. if (generated_code_info_ == nullptr) {
  1530. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(GetArenaForAllocation());
  1531. generated_code_info_ = p;
  1532. }
  1533. return generated_code_info_;
  1534. }
  1535. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* CodeGeneratorResponse_File::mutable_generated_code_info() {
  1536. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* _msg = _internal_mutable_generated_code_info();
  1537. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1538. return _msg;
  1539. }
  1540. inline void CodeGeneratorResponse_File::set_allocated_generated_code_info(::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* generated_code_info) {
  1541. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1542. if (message_arena == nullptr) {
  1543. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(generated_code_info_);
  1544. }
  1545. if (generated_code_info) {
  1546. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1547. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
  1548. ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
  1549. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(generated_code_info));
  1550. if (message_arena != submessage_arena) {
  1551. generated_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1552. message_arena, generated_code_info, submessage_arena);
  1553. }
  1554. _has_bits_[0] |= 0x00000008u;
  1555. } else {
  1556. _has_bits_[0] &= ~0x00000008u;
  1557. }
  1558. generated_code_info_ = generated_code_info;
  1559. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
  1560. }
  1561. // -------------------------------------------------------------------
  1562. // CodeGeneratorResponse
  1563. // optional string error = 1;
  1564. inline bool CodeGeneratorResponse::_internal_has_error() const {
  1565. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  1566. return value;
  1567. }
  1568. inline bool CodeGeneratorResponse::has_error() const {
  1569. return _internal_has_error();
  1570. }
  1571. inline void CodeGeneratorResponse::clear_error() {
  1572. error_.ClearToEmpty();
  1573. _has_bits_[0] &= ~0x00000001u;
  1574. }
  1575. inline const std::string& CodeGeneratorResponse::error() const {
  1576. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
  1577. return _internal_error();
  1578. }
  1579. template <typename ArgT0, typename... ArgT>
  1580. inline PROTOBUF_ALWAYS_INLINE
  1581. void CodeGeneratorResponse::set_error(ArgT0&& arg0, ArgT... args) {
  1582. _has_bits_[0] |= 0x00000001u;
  1583. error_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1584. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
  1585. }
  1586. inline std::string* CodeGeneratorResponse::mutable_error() {
  1587. std::string* _s = _internal_mutable_error();
  1588. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
  1589. return _s;
  1590. }
  1591. inline const std::string& CodeGeneratorResponse::_internal_error() const {
  1592. return error_.Get();
  1593. }
  1594. inline void CodeGeneratorResponse::_internal_set_error(const std::string& value) {
  1595. _has_bits_[0] |= 0x00000001u;
  1596. error_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1597. }
  1598. inline std::string* CodeGeneratorResponse::_internal_mutable_error() {
  1599. _has_bits_[0] |= 0x00000001u;
  1600. return error_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1601. }
  1602. inline std::string* CodeGeneratorResponse::release_error() {
  1603. // @@protoc_insertion_point(field_release:google.protobuf.compiler.CodeGeneratorResponse.error)
  1604. if (!_internal_has_error()) {
  1605. return nullptr;
  1606. }
  1607. _has_bits_[0] &= ~0x00000001u;
  1608. return error_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1609. }
  1610. inline void CodeGeneratorResponse::set_allocated_error(std::string* error) {
  1611. if (error != nullptr) {
  1612. _has_bits_[0] |= 0x00000001u;
  1613. } else {
  1614. _has_bits_[0] &= ~0x00000001u;
  1615. }
  1616. error_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), error,
  1617. GetArenaForAllocation());
  1618. // @@protoc_insertion_point(field_set_allocated:google.protobuf.compiler.CodeGeneratorResponse.error)
  1619. }
  1620. // optional uint64 supported_features = 2;
  1621. inline bool CodeGeneratorResponse::_internal_has_supported_features() const {
  1622. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  1623. return value;
  1624. }
  1625. inline bool CodeGeneratorResponse::has_supported_features() const {
  1626. return _internal_has_supported_features();
  1627. }
  1628. inline void CodeGeneratorResponse::clear_supported_features() {
  1629. supported_features_ = uint64_t{0u};
  1630. _has_bits_[0] &= ~0x00000002u;
  1631. }
  1632. inline ::PROTOBUF_NAMESPACE_ID::uint64 CodeGeneratorResponse::_internal_supported_features() const {
  1633. return supported_features_;
  1634. }
  1635. inline ::PROTOBUF_NAMESPACE_ID::uint64 CodeGeneratorResponse::supported_features() const {
  1636. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.supported_features)
  1637. return _internal_supported_features();
  1638. }
  1639. inline void CodeGeneratorResponse::_internal_set_supported_features(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  1640. _has_bits_[0] |= 0x00000002u;
  1641. supported_features_ = value;
  1642. }
  1643. inline void CodeGeneratorResponse::set_supported_features(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  1644. _internal_set_supported_features(value);
  1645. // @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.supported_features)
  1646. }
  1647. // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
  1648. inline int CodeGeneratorResponse::_internal_file_size() const {
  1649. return file_.size();
  1650. }
  1651. inline int CodeGeneratorResponse::file_size() const {
  1652. return _internal_file_size();
  1653. }
  1654. inline void CodeGeneratorResponse::clear_file() {
  1655. file_.Clear();
  1656. }
  1657. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
  1658. // @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
  1659. return file_.Mutable(index);
  1660. }
  1661. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >*
  1662. CodeGeneratorResponse::mutable_file() {
  1663. // @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1664. return &file_;
  1665. }
  1666. inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::_internal_file(int index) const {
  1667. return file_.Get(index);
  1668. }
  1669. inline const ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
  1670. // @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
  1671. return _internal_file(index);
  1672. }
  1673. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::_internal_add_file() {
  1674. return file_.Add();
  1675. }
  1676. inline ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
  1677. ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File* _add = _internal_add_file();
  1678. // @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
  1679. return _add;
  1680. }
  1681. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_File >&
  1682. CodeGeneratorResponse::file() const {
  1683. // @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
  1684. return file_;
  1685. }
  1686. #ifdef __GNUC__
  1687. #pragma GCC diagnostic pop
  1688. #endif // __GNUC__
  1689. // -------------------------------------------------------------------
  1690. // -------------------------------------------------------------------
  1691. // -------------------------------------------------------------------
  1692. // @@protoc_insertion_point(namespace_scope)
  1693. } // namespace compiler
  1694. PROTOBUF_NAMESPACE_CLOSE
  1695. PROTOBUF_NAMESPACE_OPEN
  1696. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature> : ::std::true_type {};
  1697. template <>
  1698. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature>() {
  1699. return ::PROTOBUF_NAMESPACE_ID::compiler::CodeGeneratorResponse_Feature_descriptor();
  1700. }
  1701. PROTOBUF_NAMESPACE_CLOSE
  1702. // @@protoc_insertion_point(global_scope)
  1703. #include <google/protobuf/port_undef.inc>
  1704. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fcompiler_2fplugin_2eproto