plugin.pb.h 76 KB

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