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

plugin.pb.h 79 kB

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