plugin.pb.h 79 KB

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