plugin.pb.h 75 KB

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