plugin.pb.h 82 KB

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