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

api.pb.h 54 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/api.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/message.h>
  26. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  27. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  28. #include <google/protobuf/unknown_field_set.h>
  29. #include <google/protobuf/source_context.pb.h>
  30. #include <google/protobuf/type.pb.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto PROTOBUF_EXPORT
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal
  36. {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fapi_2eproto
  42. {
  43. static const uint32_t offsets[];
  44. };
  45. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto;
  46. PROTOBUF_NAMESPACE_OPEN
  47. class Api;
  48. struct ApiDefaultTypeInternal;
  49. PROTOBUF_EXPORT extern ApiDefaultTypeInternal _Api_default_instance_;
  50. class Method;
  51. struct MethodDefaultTypeInternal;
  52. PROTOBUF_EXPORT extern MethodDefaultTypeInternal _Method_default_instance_;
  53. class Mixin;
  54. struct MixinDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern MixinDefaultTypeInternal _Mixin_default_instance_;
  56. PROTOBUF_NAMESPACE_CLOSE
  57. PROTOBUF_NAMESPACE_OPEN
  58. template<>
  59. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Api* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Api>(Arena*);
  60. template<>
  61. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Method* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Method>(Arena*);
  62. template<>
  63. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::Mixin* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Mixin>(Arena*);
  64. PROTOBUF_NAMESPACE_CLOSE
  65. PROTOBUF_NAMESPACE_OPEN
  66. // ===================================================================
  67. class PROTOBUF_EXPORT Api final :
  68. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Api) */
  69. {
  70. public:
  71. inline Api() :
  72. Api(nullptr)
  73. {
  74. }
  75. ~Api() override;
  76. explicit PROTOBUF_CONSTEXPR Api(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  77. Api(const Api& from);
  78. Api(Api&& from) noexcept
  79. :
  80. Api()
  81. {
  82. *this = ::std::move(from);
  83. }
  84. inline Api& operator=(const Api& from)
  85. {
  86. CopyFrom(from);
  87. return *this;
  88. }
  89. inline Api& operator=(Api&& from) noexcept
  90. {
  91. if (this == &from)
  92. return *this;
  93. if (GetOwningArena() == from.GetOwningArena()
  94. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  95. && GetOwningArena() != nullptr
  96. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  97. )
  98. {
  99. InternalSwap(&from);
  100. }
  101. else
  102. {
  103. CopyFrom(from);
  104. }
  105. return *this;
  106. }
  107. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  108. {
  109. return GetDescriptor();
  110. }
  111. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  112. {
  113. return default_instance().GetMetadata().descriptor;
  114. }
  115. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  116. {
  117. return default_instance().GetMetadata().reflection;
  118. }
  119. static const Api& default_instance()
  120. {
  121. return *internal_default_instance();
  122. }
  123. static inline const Api* internal_default_instance()
  124. {
  125. return reinterpret_cast<const Api*>(
  126. &_Api_default_instance_
  127. );
  128. }
  129. static constexpr int kIndexInFileMessages =
  130. 0;
  131. friend void swap(Api& a, Api& b)
  132. {
  133. a.Swap(&b);
  134. }
  135. inline void Swap(Api* other)
  136. {
  137. if (other == this)
  138. return;
  139. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  140. if (GetOwningArena() != nullptr &&
  141. GetOwningArena() == other->GetOwningArena())
  142. {
  143. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  144. if (GetOwningArena() == other->GetOwningArena())
  145. {
  146. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  147. InternalSwap(other);
  148. }
  149. else
  150. {
  151. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  152. }
  153. }
  154. void UnsafeArenaSwap(Api* other)
  155. {
  156. if (other == this)
  157. return;
  158. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  159. InternalSwap(other);
  160. }
  161. // implements Message ----------------------------------------------
  162. Api* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  163. {
  164. return CreateMaybeMessage<Api>(arena);
  165. }
  166. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  167. void CopyFrom(const Api& from);
  168. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  169. void MergeFrom(const Api& from)
  170. {
  171. Api::MergeImpl(*this, from);
  172. }
  173. private:
  174. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  175. public:
  176. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  177. bool IsInitialized() const final;
  178. size_t ByteSizeLong() const final;
  179. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  180. uint8_t* _InternalSerialize(
  181. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  182. ) const final;
  183. int GetCachedSize() const final
  184. {
  185. return _impl_._cached_size_.Get();
  186. }
  187. private:
  188. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  189. void SharedDtor();
  190. void SetCachedSize(int size) const final;
  191. void InternalSwap(Api* other);
  192. private:
  193. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  194. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  195. {
  196. return "google.protobuf.Api";
  197. }
  198. protected:
  199. explicit Api(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  200. public:
  201. static const ClassData _class_data_;
  202. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  203. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  204. // nested types ----------------------------------------------------
  205. // accessors -------------------------------------------------------
  206. enum : int
  207. {
  208. kMethodsFieldNumber = 2,
  209. kOptionsFieldNumber = 3,
  210. kMixinsFieldNumber = 6,
  211. kNameFieldNumber = 1,
  212. kVersionFieldNumber = 4,
  213. kSourceContextFieldNumber = 5,
  214. kSyntaxFieldNumber = 7,
  215. };
  216. // repeated .google.protobuf.Method methods = 2;
  217. int methods_size() const;
  218. private:
  219. int _internal_methods_size() const;
  220. public:
  221. void clear_methods();
  222. ::PROTOBUF_NAMESPACE_ID::Method* mutable_methods(int index);
  223. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Method>*
  224. mutable_methods();
  225. private:
  226. const ::PROTOBUF_NAMESPACE_ID::Method& _internal_methods(int index) const;
  227. ::PROTOBUF_NAMESPACE_ID::Method* _internal_add_methods();
  228. public:
  229. const ::PROTOBUF_NAMESPACE_ID::Method& methods(int index) const;
  230. ::PROTOBUF_NAMESPACE_ID::Method* add_methods();
  231. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Method>&
  232. methods() const;
  233. // repeated .google.protobuf.Option options = 3;
  234. int options_size() const;
  235. private:
  236. int _internal_options_size() const;
  237. public:
  238. void clear_options();
  239. ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
  240. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>*
  241. mutable_options();
  242. private:
  243. const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
  244. ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
  245. public:
  246. const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
  247. ::PROTOBUF_NAMESPACE_ID::Option* add_options();
  248. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>&
  249. options() const;
  250. // repeated .google.protobuf.Mixin mixins = 6;
  251. int mixins_size() const;
  252. private:
  253. int _internal_mixins_size() const;
  254. public:
  255. void clear_mixins();
  256. ::PROTOBUF_NAMESPACE_ID::Mixin* mutable_mixins(int index);
  257. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Mixin>*
  258. mutable_mixins();
  259. private:
  260. const ::PROTOBUF_NAMESPACE_ID::Mixin& _internal_mixins(int index) const;
  261. ::PROTOBUF_NAMESPACE_ID::Mixin* _internal_add_mixins();
  262. public:
  263. const ::PROTOBUF_NAMESPACE_ID::Mixin& mixins(int index) const;
  264. ::PROTOBUF_NAMESPACE_ID::Mixin* add_mixins();
  265. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Mixin>&
  266. mixins() const;
  267. // string name = 1;
  268. void clear_name();
  269. const std::string& name() const;
  270. template<typename ArgT0 = const std::string&, typename... ArgT>
  271. void set_name(ArgT0&& arg0, ArgT... args);
  272. std::string* mutable_name();
  273. PROTOBUF_NODISCARD std::string* release_name();
  274. void set_allocated_name(std::string* name);
  275. private:
  276. const std::string& _internal_name() const;
  277. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  278. std::string* _internal_mutable_name();
  279. public:
  280. // string version = 4;
  281. void clear_version();
  282. const std::string& version() const;
  283. template<typename ArgT0 = const std::string&, typename... ArgT>
  284. void set_version(ArgT0&& arg0, ArgT... args);
  285. std::string* mutable_version();
  286. PROTOBUF_NODISCARD std::string* release_version();
  287. void set_allocated_version(std::string* version);
  288. private:
  289. const std::string& _internal_version() const;
  290. inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value);
  291. std::string* _internal_mutable_version();
  292. public:
  293. // .google.protobuf.SourceContext source_context = 5;
  294. bool has_source_context() const;
  295. private:
  296. bool _internal_has_source_context() const;
  297. public:
  298. void clear_source_context();
  299. const ::PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const;
  300. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context();
  301. ::PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context();
  302. void set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
  303. private:
  304. const ::PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const;
  305. ::PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context();
  306. public:
  307. void unsafe_arena_set_allocated_source_context(
  308. ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context
  309. );
  310. ::PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context();
  311. // .google.protobuf.Syntax syntax = 7;
  312. void clear_syntax();
  313. ::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
  314. void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
  315. private:
  316. ::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
  317. void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
  318. public:
  319. // @@protoc_insertion_point(class_scope:google.protobuf.Api)
  320. private:
  321. class _Internal;
  322. template<typename T>
  323. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  324. typedef void InternalArenaConstructable_;
  325. typedef void DestructorSkippable_;
  326. struct Impl_
  327. {
  328. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Method> methods_;
  329. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option> options_;
  330. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Mixin> mixins_;
  331. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  332. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_;
  333. ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context_;
  334. int syntax_;
  335. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  336. };
  337. union
  338. {
  339. Impl_ _impl_;
  340. };
  341. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  342. };
  343. // -------------------------------------------------------------------
  344. class PROTOBUF_EXPORT Method final :
  345. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Method) */
  346. {
  347. public:
  348. inline Method() :
  349. Method(nullptr)
  350. {
  351. }
  352. ~Method() override;
  353. explicit PROTOBUF_CONSTEXPR Method(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  354. Method(const Method& from);
  355. Method(Method&& from) noexcept
  356. :
  357. Method()
  358. {
  359. *this = ::std::move(from);
  360. }
  361. inline Method& operator=(const Method& from)
  362. {
  363. CopyFrom(from);
  364. return *this;
  365. }
  366. inline Method& operator=(Method&& from) noexcept
  367. {
  368. if (this == &from)
  369. return *this;
  370. if (GetOwningArena() == from.GetOwningArena()
  371. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  372. && GetOwningArena() != nullptr
  373. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  374. )
  375. {
  376. InternalSwap(&from);
  377. }
  378. else
  379. {
  380. CopyFrom(from);
  381. }
  382. return *this;
  383. }
  384. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  385. {
  386. return GetDescriptor();
  387. }
  388. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  389. {
  390. return default_instance().GetMetadata().descriptor;
  391. }
  392. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  393. {
  394. return default_instance().GetMetadata().reflection;
  395. }
  396. static const Method& default_instance()
  397. {
  398. return *internal_default_instance();
  399. }
  400. static inline const Method* internal_default_instance()
  401. {
  402. return reinterpret_cast<const Method*>(
  403. &_Method_default_instance_
  404. );
  405. }
  406. static constexpr int kIndexInFileMessages =
  407. 1;
  408. friend void swap(Method& a, Method& b)
  409. {
  410. a.Swap(&b);
  411. }
  412. inline void Swap(Method* other)
  413. {
  414. if (other == this)
  415. return;
  416. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  417. if (GetOwningArena() != nullptr &&
  418. GetOwningArena() == other->GetOwningArena())
  419. {
  420. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  421. if (GetOwningArena() == other->GetOwningArena())
  422. {
  423. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  424. InternalSwap(other);
  425. }
  426. else
  427. {
  428. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  429. }
  430. }
  431. void UnsafeArenaSwap(Method* other)
  432. {
  433. if (other == this)
  434. return;
  435. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  436. InternalSwap(other);
  437. }
  438. // implements Message ----------------------------------------------
  439. Method* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  440. {
  441. return CreateMaybeMessage<Method>(arena);
  442. }
  443. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  444. void CopyFrom(const Method& from);
  445. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  446. void MergeFrom(const Method& from)
  447. {
  448. Method::MergeImpl(*this, from);
  449. }
  450. private:
  451. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  452. public:
  453. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  454. bool IsInitialized() const final;
  455. size_t ByteSizeLong() const final;
  456. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  457. uint8_t* _InternalSerialize(
  458. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  459. ) const final;
  460. int GetCachedSize() const final
  461. {
  462. return _impl_._cached_size_.Get();
  463. }
  464. private:
  465. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  466. void SharedDtor();
  467. void SetCachedSize(int size) const final;
  468. void InternalSwap(Method* other);
  469. private:
  470. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  471. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  472. {
  473. return "google.protobuf.Method";
  474. }
  475. protected:
  476. explicit Method(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  477. public:
  478. static const ClassData _class_data_;
  479. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  480. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  481. // nested types ----------------------------------------------------
  482. // accessors -------------------------------------------------------
  483. enum : int
  484. {
  485. kOptionsFieldNumber = 6,
  486. kNameFieldNumber = 1,
  487. kRequestTypeUrlFieldNumber = 2,
  488. kResponseTypeUrlFieldNumber = 4,
  489. kRequestStreamingFieldNumber = 3,
  490. kResponseStreamingFieldNumber = 5,
  491. kSyntaxFieldNumber = 7,
  492. };
  493. // repeated .google.protobuf.Option options = 6;
  494. int options_size() const;
  495. private:
  496. int _internal_options_size() const;
  497. public:
  498. void clear_options();
  499. ::PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
  500. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>*
  501. mutable_options();
  502. private:
  503. const ::PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
  504. ::PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
  505. public:
  506. const ::PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
  507. ::PROTOBUF_NAMESPACE_ID::Option* add_options();
  508. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>&
  509. options() const;
  510. // string name = 1;
  511. void clear_name();
  512. const std::string& name() const;
  513. template<typename ArgT0 = const std::string&, typename... ArgT>
  514. void set_name(ArgT0&& arg0, ArgT... args);
  515. std::string* mutable_name();
  516. PROTOBUF_NODISCARD std::string* release_name();
  517. void set_allocated_name(std::string* name);
  518. private:
  519. const std::string& _internal_name() const;
  520. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  521. std::string* _internal_mutable_name();
  522. public:
  523. // string request_type_url = 2;
  524. void clear_request_type_url();
  525. const std::string& request_type_url() const;
  526. template<typename ArgT0 = const std::string&, typename... ArgT>
  527. void set_request_type_url(ArgT0&& arg0, ArgT... args);
  528. std::string* mutable_request_type_url();
  529. PROTOBUF_NODISCARD std::string* release_request_type_url();
  530. void set_allocated_request_type_url(std::string* request_type_url);
  531. private:
  532. const std::string& _internal_request_type_url() const;
  533. inline PROTOBUF_ALWAYS_INLINE void _internal_set_request_type_url(const std::string& value);
  534. std::string* _internal_mutable_request_type_url();
  535. public:
  536. // string response_type_url = 4;
  537. void clear_response_type_url();
  538. const std::string& response_type_url() const;
  539. template<typename ArgT0 = const std::string&, typename... ArgT>
  540. void set_response_type_url(ArgT0&& arg0, ArgT... args);
  541. std::string* mutable_response_type_url();
  542. PROTOBUF_NODISCARD std::string* release_response_type_url();
  543. void set_allocated_response_type_url(std::string* response_type_url);
  544. private:
  545. const std::string& _internal_response_type_url() const;
  546. inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_type_url(const std::string& value);
  547. std::string* _internal_mutable_response_type_url();
  548. public:
  549. // bool request_streaming = 3;
  550. void clear_request_streaming();
  551. bool request_streaming() const;
  552. void set_request_streaming(bool value);
  553. private:
  554. bool _internal_request_streaming() const;
  555. void _internal_set_request_streaming(bool value);
  556. public:
  557. // bool response_streaming = 5;
  558. void clear_response_streaming();
  559. bool response_streaming() const;
  560. void set_response_streaming(bool value);
  561. private:
  562. bool _internal_response_streaming() const;
  563. void _internal_set_response_streaming(bool value);
  564. public:
  565. // .google.protobuf.Syntax syntax = 7;
  566. void clear_syntax();
  567. ::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
  568. void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
  569. private:
  570. ::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
  571. void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
  572. public:
  573. // @@protoc_insertion_point(class_scope:google.protobuf.Method)
  574. private:
  575. class _Internal;
  576. template<typename T>
  577. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  578. typedef void InternalArenaConstructable_;
  579. typedef void DestructorSkippable_;
  580. struct Impl_
  581. {
  582. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option> options_;
  583. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  584. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_type_url_;
  585. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_type_url_;
  586. bool request_streaming_;
  587. bool response_streaming_;
  588. int syntax_;
  589. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  590. };
  591. union
  592. {
  593. Impl_ _impl_;
  594. };
  595. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  596. };
  597. // -------------------------------------------------------------------
  598. class PROTOBUF_EXPORT Mixin final :
  599. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Mixin) */
  600. {
  601. public:
  602. inline Mixin() :
  603. Mixin(nullptr)
  604. {
  605. }
  606. ~Mixin() override;
  607. explicit PROTOBUF_CONSTEXPR Mixin(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  608. Mixin(const Mixin& from);
  609. Mixin(Mixin&& from) noexcept
  610. :
  611. Mixin()
  612. {
  613. *this = ::std::move(from);
  614. }
  615. inline Mixin& operator=(const Mixin& from)
  616. {
  617. CopyFrom(from);
  618. return *this;
  619. }
  620. inline Mixin& operator=(Mixin&& from) noexcept
  621. {
  622. if (this == &from)
  623. return *this;
  624. if (GetOwningArena() == from.GetOwningArena()
  625. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  626. && GetOwningArena() != nullptr
  627. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  628. )
  629. {
  630. InternalSwap(&from);
  631. }
  632. else
  633. {
  634. CopyFrom(from);
  635. }
  636. return *this;
  637. }
  638. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  639. {
  640. return GetDescriptor();
  641. }
  642. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  643. {
  644. return default_instance().GetMetadata().descriptor;
  645. }
  646. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  647. {
  648. return default_instance().GetMetadata().reflection;
  649. }
  650. static const Mixin& default_instance()
  651. {
  652. return *internal_default_instance();
  653. }
  654. static inline const Mixin* internal_default_instance()
  655. {
  656. return reinterpret_cast<const Mixin*>(
  657. &_Mixin_default_instance_
  658. );
  659. }
  660. static constexpr int kIndexInFileMessages =
  661. 2;
  662. friend void swap(Mixin& a, Mixin& b)
  663. {
  664. a.Swap(&b);
  665. }
  666. inline void Swap(Mixin* other)
  667. {
  668. if (other == this)
  669. return;
  670. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  671. if (GetOwningArena() != nullptr &&
  672. GetOwningArena() == other->GetOwningArena())
  673. {
  674. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  675. if (GetOwningArena() == other->GetOwningArena())
  676. {
  677. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  678. InternalSwap(other);
  679. }
  680. else
  681. {
  682. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  683. }
  684. }
  685. void UnsafeArenaSwap(Mixin* other)
  686. {
  687. if (other == this)
  688. return;
  689. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  690. InternalSwap(other);
  691. }
  692. // implements Message ----------------------------------------------
  693. Mixin* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  694. {
  695. return CreateMaybeMessage<Mixin>(arena);
  696. }
  697. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  698. void CopyFrom(const Mixin& from);
  699. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  700. void MergeFrom(const Mixin& from)
  701. {
  702. Mixin::MergeImpl(*this, from);
  703. }
  704. private:
  705. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  706. public:
  707. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  708. bool IsInitialized() const final;
  709. size_t ByteSizeLong() const final;
  710. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  711. uint8_t* _InternalSerialize(
  712. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  713. ) const final;
  714. int GetCachedSize() const final
  715. {
  716. return _impl_._cached_size_.Get();
  717. }
  718. private:
  719. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  720. void SharedDtor();
  721. void SetCachedSize(int size) const final;
  722. void InternalSwap(Mixin* other);
  723. private:
  724. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  725. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  726. {
  727. return "google.protobuf.Mixin";
  728. }
  729. protected:
  730. explicit Mixin(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  731. public:
  732. static const ClassData _class_data_;
  733. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  734. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  735. // nested types ----------------------------------------------------
  736. // accessors -------------------------------------------------------
  737. enum : int
  738. {
  739. kNameFieldNumber = 1,
  740. kRootFieldNumber = 2,
  741. };
  742. // string name = 1;
  743. void clear_name();
  744. const std::string& name() const;
  745. template<typename ArgT0 = const std::string&, typename... ArgT>
  746. void set_name(ArgT0&& arg0, ArgT... args);
  747. std::string* mutable_name();
  748. PROTOBUF_NODISCARD std::string* release_name();
  749. void set_allocated_name(std::string* name);
  750. private:
  751. const std::string& _internal_name() const;
  752. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  753. std::string* _internal_mutable_name();
  754. public:
  755. // string root = 2;
  756. void clear_root();
  757. const std::string& root() const;
  758. template<typename ArgT0 = const std::string&, typename... ArgT>
  759. void set_root(ArgT0&& arg0, ArgT... args);
  760. std::string* mutable_root();
  761. PROTOBUF_NODISCARD std::string* release_root();
  762. void set_allocated_root(std::string* root);
  763. private:
  764. const std::string& _internal_root() const;
  765. inline PROTOBUF_ALWAYS_INLINE void _internal_set_root(const std::string& value);
  766. std::string* _internal_mutable_root();
  767. public:
  768. // @@protoc_insertion_point(class_scope:google.protobuf.Mixin)
  769. private:
  770. class _Internal;
  771. template<typename T>
  772. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  773. typedef void InternalArenaConstructable_;
  774. typedef void DestructorSkippable_;
  775. struct Impl_
  776. {
  777. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  778. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr root_;
  779. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  780. };
  781. union
  782. {
  783. Impl_ _impl_;
  784. };
  785. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  786. };
  787. // ===================================================================
  788. // ===================================================================
  789. #ifdef __GNUC__
  790. #pragma GCC diagnostic push
  791. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  792. #endif // __GNUC__
  793. // Api
  794. // string name = 1;
  795. inline void Api::clear_name()
  796. {
  797. _impl_.name_.ClearToEmpty();
  798. }
  799. inline const std::string& Api::name() const
  800. {
  801. // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
  802. return _internal_name();
  803. }
  804. template<typename ArgT0, typename... ArgT>
  805. inline PROTOBUF_ALWAYS_INLINE void Api::set_name(ArgT0&& arg0, ArgT... args)
  806. {
  807. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  808. // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
  809. }
  810. inline std::string* Api::mutable_name()
  811. {
  812. std::string* _s = _internal_mutable_name();
  813. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
  814. return _s;
  815. }
  816. inline const std::string& Api::_internal_name() const
  817. {
  818. return _impl_.name_.Get();
  819. }
  820. inline void Api::_internal_set_name(const std::string& value)
  821. {
  822. _impl_.name_.Set(value, GetArenaForAllocation());
  823. }
  824. inline std::string* Api::_internal_mutable_name()
  825. {
  826. return _impl_.name_.Mutable(GetArenaForAllocation());
  827. }
  828. inline std::string* Api::release_name()
  829. {
  830. // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
  831. return _impl_.name_.Release();
  832. }
  833. inline void Api::set_allocated_name(std::string* name)
  834. {
  835. if (name != nullptr)
  836. {
  837. }
  838. else
  839. {
  840. }
  841. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  842. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  843. if (_impl_.name_.IsDefault())
  844. {
  845. _impl_.name_.Set("", GetArenaForAllocation());
  846. }
  847. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  848. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
  849. }
  850. // repeated .google.protobuf.Method methods = 2;
  851. inline int Api::_internal_methods_size() const
  852. {
  853. return _impl_.methods_.size();
  854. }
  855. inline int Api::methods_size() const
  856. {
  857. return _internal_methods_size();
  858. }
  859. inline void Api::clear_methods()
  860. {
  861. _impl_.methods_.Clear();
  862. }
  863. inline ::PROTOBUF_NAMESPACE_ID::Method* Api::mutable_methods(int index)
  864. {
  865. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
  866. return _impl_.methods_.Mutable(index);
  867. }
  868. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Method>*
  869. Api::mutable_methods()
  870. {
  871. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
  872. return &_impl_.methods_;
  873. }
  874. inline const ::PROTOBUF_NAMESPACE_ID::Method& Api::_internal_methods(int index) const
  875. {
  876. return _impl_.methods_.Get(index);
  877. }
  878. inline const ::PROTOBUF_NAMESPACE_ID::Method& Api::methods(int index) const
  879. {
  880. // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
  881. return _internal_methods(index);
  882. }
  883. inline ::PROTOBUF_NAMESPACE_ID::Method* Api::_internal_add_methods()
  884. {
  885. return _impl_.methods_.Add();
  886. }
  887. inline ::PROTOBUF_NAMESPACE_ID::Method* Api::add_methods()
  888. {
  889. ::PROTOBUF_NAMESPACE_ID::Method* _add = _internal_add_methods();
  890. // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
  891. return _add;
  892. }
  893. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Method>&
  894. Api::methods() const
  895. {
  896. // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
  897. return _impl_.methods_;
  898. }
  899. // repeated .google.protobuf.Option options = 3;
  900. inline int Api::_internal_options_size() const
  901. {
  902. return _impl_.options_.size();
  903. }
  904. inline int Api::options_size() const
  905. {
  906. return _internal_options_size();
  907. }
  908. inline ::PROTOBUF_NAMESPACE_ID::Option* Api::mutable_options(int index)
  909. {
  910. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
  911. return _impl_.options_.Mutable(index);
  912. }
  913. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>*
  914. Api::mutable_options()
  915. {
  916. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
  917. return &_impl_.options_;
  918. }
  919. inline const ::PROTOBUF_NAMESPACE_ID::Option& Api::_internal_options(int index) const
  920. {
  921. return _impl_.options_.Get(index);
  922. }
  923. inline const ::PROTOBUF_NAMESPACE_ID::Option& Api::options(int index) const
  924. {
  925. // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
  926. return _internal_options(index);
  927. }
  928. inline ::PROTOBUF_NAMESPACE_ID::Option* Api::_internal_add_options()
  929. {
  930. return _impl_.options_.Add();
  931. }
  932. inline ::PROTOBUF_NAMESPACE_ID::Option* Api::add_options()
  933. {
  934. ::PROTOBUF_NAMESPACE_ID::Option* _add = _internal_add_options();
  935. // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
  936. return _add;
  937. }
  938. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>&
  939. Api::options() const
  940. {
  941. // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
  942. return _impl_.options_;
  943. }
  944. // string version = 4;
  945. inline void Api::clear_version()
  946. {
  947. _impl_.version_.ClearToEmpty();
  948. }
  949. inline const std::string& Api::version() const
  950. {
  951. // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
  952. return _internal_version();
  953. }
  954. template<typename ArgT0, typename... ArgT>
  955. inline PROTOBUF_ALWAYS_INLINE void Api::set_version(ArgT0&& arg0, ArgT... args)
  956. {
  957. _impl_.version_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  958. // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
  959. }
  960. inline std::string* Api::mutable_version()
  961. {
  962. std::string* _s = _internal_mutable_version();
  963. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
  964. return _s;
  965. }
  966. inline const std::string& Api::_internal_version() const
  967. {
  968. return _impl_.version_.Get();
  969. }
  970. inline void Api::_internal_set_version(const std::string& value)
  971. {
  972. _impl_.version_.Set(value, GetArenaForAllocation());
  973. }
  974. inline std::string* Api::_internal_mutable_version()
  975. {
  976. return _impl_.version_.Mutable(GetArenaForAllocation());
  977. }
  978. inline std::string* Api::release_version()
  979. {
  980. // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
  981. return _impl_.version_.Release();
  982. }
  983. inline void Api::set_allocated_version(std::string* version)
  984. {
  985. if (version != nullptr)
  986. {
  987. }
  988. else
  989. {
  990. }
  991. _impl_.version_.SetAllocated(version, GetArenaForAllocation());
  992. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  993. if (_impl_.version_.IsDefault())
  994. {
  995. _impl_.version_.Set("", GetArenaForAllocation());
  996. }
  997. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  998. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
  999. }
  1000. // .google.protobuf.SourceContext source_context = 5;
  1001. inline bool Api::_internal_has_source_context() const
  1002. {
  1003. return this != internal_default_instance() && _impl_.source_context_ != nullptr;
  1004. }
  1005. inline bool Api::has_source_context() const
  1006. {
  1007. return _internal_has_source_context();
  1008. }
  1009. inline const ::PROTOBUF_NAMESPACE_ID::SourceContext& Api::_internal_source_context() const
  1010. {
  1011. const ::PROTOBUF_NAMESPACE_ID::SourceContext* p = _impl_.source_context_;
  1012. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::SourceContext&>(::PROTOBUF_NAMESPACE_ID::_SourceContext_default_instance_);
  1013. }
  1014. inline const ::PROTOBUF_NAMESPACE_ID::SourceContext& Api::source_context() const
  1015. {
  1016. // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
  1017. return _internal_source_context();
  1018. }
  1019. inline void Api::unsafe_arena_set_allocated_source_context(
  1020. ::PROTOBUF_NAMESPACE_ID::SourceContext* source_context
  1021. )
  1022. {
  1023. if (GetArenaForAllocation() == nullptr)
  1024. {
  1025. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_context_);
  1026. }
  1027. _impl_.source_context_ = source_context;
  1028. if (source_context)
  1029. {
  1030. }
  1031. else
  1032. {
  1033. }
  1034. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Api.source_context)
  1035. }
  1036. inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Api::release_source_context()
  1037. {
  1038. ::PROTOBUF_NAMESPACE_ID::SourceContext* temp = _impl_.source_context_;
  1039. _impl_.source_context_ = nullptr;
  1040. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1041. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  1042. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1043. if (GetArenaForAllocation() == nullptr)
  1044. {
  1045. delete old;
  1046. }
  1047. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1048. if (GetArenaForAllocation() != nullptr)
  1049. {
  1050. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  1051. }
  1052. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1053. return temp;
  1054. }
  1055. inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Api::unsafe_arena_release_source_context()
  1056. {
  1057. // @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
  1058. ::PROTOBUF_NAMESPACE_ID::SourceContext* temp = _impl_.source_context_;
  1059. _impl_.source_context_ = nullptr;
  1060. return temp;
  1061. }
  1062. inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Api::_internal_mutable_source_context()
  1063. {
  1064. if (_impl_.source_context_ == nullptr)
  1065. {
  1066. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceContext>(GetArenaForAllocation());
  1067. _impl_.source_context_ = p;
  1068. }
  1069. return _impl_.source_context_;
  1070. }
  1071. inline ::PROTOBUF_NAMESPACE_ID::SourceContext* Api::mutable_source_context()
  1072. {
  1073. ::PROTOBUF_NAMESPACE_ID::SourceContext* _msg = _internal_mutable_source_context();
  1074. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
  1075. return _msg;
  1076. }
  1077. inline void Api::set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceContext* source_context)
  1078. {
  1079. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  1080. if (message_arena == nullptr)
  1081. {
  1082. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_context_);
  1083. }
  1084. if (source_context)
  1085. {
  1086. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1087. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
  1088. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context)
  1089. );
  1090. if (message_arena != submessage_arena)
  1091. {
  1092. source_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1093. message_arena, source_context, submessage_arena
  1094. );
  1095. }
  1096. }
  1097. else
  1098. {
  1099. }
  1100. _impl_.source_context_ = source_context;
  1101. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
  1102. }
  1103. // repeated .google.protobuf.Mixin mixins = 6;
  1104. inline int Api::_internal_mixins_size() const
  1105. {
  1106. return _impl_.mixins_.size();
  1107. }
  1108. inline int Api::mixins_size() const
  1109. {
  1110. return _internal_mixins_size();
  1111. }
  1112. inline void Api::clear_mixins()
  1113. {
  1114. _impl_.mixins_.Clear();
  1115. }
  1116. inline ::PROTOBUF_NAMESPACE_ID::Mixin* Api::mutable_mixins(int index)
  1117. {
  1118. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
  1119. return _impl_.mixins_.Mutable(index);
  1120. }
  1121. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Mixin>*
  1122. Api::mutable_mixins()
  1123. {
  1124. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
  1125. return &_impl_.mixins_;
  1126. }
  1127. inline const ::PROTOBUF_NAMESPACE_ID::Mixin& Api::_internal_mixins(int index) const
  1128. {
  1129. return _impl_.mixins_.Get(index);
  1130. }
  1131. inline const ::PROTOBUF_NAMESPACE_ID::Mixin& Api::mixins(int index) const
  1132. {
  1133. // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
  1134. return _internal_mixins(index);
  1135. }
  1136. inline ::PROTOBUF_NAMESPACE_ID::Mixin* Api::_internal_add_mixins()
  1137. {
  1138. return _impl_.mixins_.Add();
  1139. }
  1140. inline ::PROTOBUF_NAMESPACE_ID::Mixin* Api::add_mixins()
  1141. {
  1142. ::PROTOBUF_NAMESPACE_ID::Mixin* _add = _internal_add_mixins();
  1143. // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
  1144. return _add;
  1145. }
  1146. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Mixin>&
  1147. Api::mixins() const
  1148. {
  1149. // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
  1150. return _impl_.mixins_;
  1151. }
  1152. // .google.protobuf.Syntax syntax = 7;
  1153. inline void Api::clear_syntax()
  1154. {
  1155. _impl_.syntax_ = 0;
  1156. }
  1157. inline ::PROTOBUF_NAMESPACE_ID::Syntax Api::_internal_syntax() const
  1158. {
  1159. return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
  1160. }
  1161. inline ::PROTOBUF_NAMESPACE_ID::Syntax Api::syntax() const
  1162. {
  1163. // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
  1164. return _internal_syntax();
  1165. }
  1166. inline void Api::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value)
  1167. {
  1168. _impl_.syntax_ = value;
  1169. }
  1170. inline void Api::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value)
  1171. {
  1172. _internal_set_syntax(value);
  1173. // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
  1174. }
  1175. // -------------------------------------------------------------------
  1176. // Method
  1177. // string name = 1;
  1178. inline void Method::clear_name()
  1179. {
  1180. _impl_.name_.ClearToEmpty();
  1181. }
  1182. inline const std::string& Method::name() const
  1183. {
  1184. // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
  1185. return _internal_name();
  1186. }
  1187. template<typename ArgT0, typename... ArgT>
  1188. inline PROTOBUF_ALWAYS_INLINE void Method::set_name(ArgT0&& arg0, ArgT... args)
  1189. {
  1190. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1191. // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
  1192. }
  1193. inline std::string* Method::mutable_name()
  1194. {
  1195. std::string* _s = _internal_mutable_name();
  1196. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
  1197. return _s;
  1198. }
  1199. inline const std::string& Method::_internal_name() const
  1200. {
  1201. return _impl_.name_.Get();
  1202. }
  1203. inline void Method::_internal_set_name(const std::string& value)
  1204. {
  1205. _impl_.name_.Set(value, GetArenaForAllocation());
  1206. }
  1207. inline std::string* Method::_internal_mutable_name()
  1208. {
  1209. return _impl_.name_.Mutable(GetArenaForAllocation());
  1210. }
  1211. inline std::string* Method::release_name()
  1212. {
  1213. // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
  1214. return _impl_.name_.Release();
  1215. }
  1216. inline void Method::set_allocated_name(std::string* name)
  1217. {
  1218. if (name != nullptr)
  1219. {
  1220. }
  1221. else
  1222. {
  1223. }
  1224. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  1225. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1226. if (_impl_.name_.IsDefault())
  1227. {
  1228. _impl_.name_.Set("", GetArenaForAllocation());
  1229. }
  1230. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1231. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
  1232. }
  1233. // string request_type_url = 2;
  1234. inline void Method::clear_request_type_url()
  1235. {
  1236. _impl_.request_type_url_.ClearToEmpty();
  1237. }
  1238. inline const std::string& Method::request_type_url() const
  1239. {
  1240. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
  1241. return _internal_request_type_url();
  1242. }
  1243. template<typename ArgT0, typename... ArgT>
  1244. inline PROTOBUF_ALWAYS_INLINE void Method::set_request_type_url(ArgT0&& arg0, ArgT... args)
  1245. {
  1246. _impl_.request_type_url_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1247. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
  1248. }
  1249. inline std::string* Method::mutable_request_type_url()
  1250. {
  1251. std::string* _s = _internal_mutable_request_type_url();
  1252. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
  1253. return _s;
  1254. }
  1255. inline const std::string& Method::_internal_request_type_url() const
  1256. {
  1257. return _impl_.request_type_url_.Get();
  1258. }
  1259. inline void Method::_internal_set_request_type_url(const std::string& value)
  1260. {
  1261. _impl_.request_type_url_.Set(value, GetArenaForAllocation());
  1262. }
  1263. inline std::string* Method::_internal_mutable_request_type_url()
  1264. {
  1265. return _impl_.request_type_url_.Mutable(GetArenaForAllocation());
  1266. }
  1267. inline std::string* Method::release_request_type_url()
  1268. {
  1269. // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
  1270. return _impl_.request_type_url_.Release();
  1271. }
  1272. inline void Method::set_allocated_request_type_url(std::string* request_type_url)
  1273. {
  1274. if (request_type_url != nullptr)
  1275. {
  1276. }
  1277. else
  1278. {
  1279. }
  1280. _impl_.request_type_url_.SetAllocated(request_type_url, GetArenaForAllocation());
  1281. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1282. if (_impl_.request_type_url_.IsDefault())
  1283. {
  1284. _impl_.request_type_url_.Set("", GetArenaForAllocation());
  1285. }
  1286. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1287. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
  1288. }
  1289. // bool request_streaming = 3;
  1290. inline void Method::clear_request_streaming()
  1291. {
  1292. _impl_.request_streaming_ = false;
  1293. }
  1294. inline bool Method::_internal_request_streaming() const
  1295. {
  1296. return _impl_.request_streaming_;
  1297. }
  1298. inline bool Method::request_streaming() const
  1299. {
  1300. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
  1301. return _internal_request_streaming();
  1302. }
  1303. inline void Method::_internal_set_request_streaming(bool value)
  1304. {
  1305. _impl_.request_streaming_ = value;
  1306. }
  1307. inline void Method::set_request_streaming(bool value)
  1308. {
  1309. _internal_set_request_streaming(value);
  1310. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
  1311. }
  1312. // string response_type_url = 4;
  1313. inline void Method::clear_response_type_url()
  1314. {
  1315. _impl_.response_type_url_.ClearToEmpty();
  1316. }
  1317. inline const std::string& Method::response_type_url() const
  1318. {
  1319. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
  1320. return _internal_response_type_url();
  1321. }
  1322. template<typename ArgT0, typename... ArgT>
  1323. inline PROTOBUF_ALWAYS_INLINE void Method::set_response_type_url(ArgT0&& arg0, ArgT... args)
  1324. {
  1325. _impl_.response_type_url_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1326. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
  1327. }
  1328. inline std::string* Method::mutable_response_type_url()
  1329. {
  1330. std::string* _s = _internal_mutable_response_type_url();
  1331. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
  1332. return _s;
  1333. }
  1334. inline const std::string& Method::_internal_response_type_url() const
  1335. {
  1336. return _impl_.response_type_url_.Get();
  1337. }
  1338. inline void Method::_internal_set_response_type_url(const std::string& value)
  1339. {
  1340. _impl_.response_type_url_.Set(value, GetArenaForAllocation());
  1341. }
  1342. inline std::string* Method::_internal_mutable_response_type_url()
  1343. {
  1344. return _impl_.response_type_url_.Mutable(GetArenaForAllocation());
  1345. }
  1346. inline std::string* Method::release_response_type_url()
  1347. {
  1348. // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
  1349. return _impl_.response_type_url_.Release();
  1350. }
  1351. inline void Method::set_allocated_response_type_url(std::string* response_type_url)
  1352. {
  1353. if (response_type_url != nullptr)
  1354. {
  1355. }
  1356. else
  1357. {
  1358. }
  1359. _impl_.response_type_url_.SetAllocated(response_type_url, GetArenaForAllocation());
  1360. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1361. if (_impl_.response_type_url_.IsDefault())
  1362. {
  1363. _impl_.response_type_url_.Set("", GetArenaForAllocation());
  1364. }
  1365. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1366. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
  1367. }
  1368. // bool response_streaming = 5;
  1369. inline void Method::clear_response_streaming()
  1370. {
  1371. _impl_.response_streaming_ = false;
  1372. }
  1373. inline bool Method::_internal_response_streaming() const
  1374. {
  1375. return _impl_.response_streaming_;
  1376. }
  1377. inline bool Method::response_streaming() const
  1378. {
  1379. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
  1380. return _internal_response_streaming();
  1381. }
  1382. inline void Method::_internal_set_response_streaming(bool value)
  1383. {
  1384. _impl_.response_streaming_ = value;
  1385. }
  1386. inline void Method::set_response_streaming(bool value)
  1387. {
  1388. _internal_set_response_streaming(value);
  1389. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
  1390. }
  1391. // repeated .google.protobuf.Option options = 6;
  1392. inline int Method::_internal_options_size() const
  1393. {
  1394. return _impl_.options_.size();
  1395. }
  1396. inline int Method::options_size() const
  1397. {
  1398. return _internal_options_size();
  1399. }
  1400. inline ::PROTOBUF_NAMESPACE_ID::Option* Method::mutable_options(int index)
  1401. {
  1402. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
  1403. return _impl_.options_.Mutable(index);
  1404. }
  1405. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>*
  1406. Method::mutable_options()
  1407. {
  1408. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
  1409. return &_impl_.options_;
  1410. }
  1411. inline const ::PROTOBUF_NAMESPACE_ID::Option& Method::_internal_options(int index) const
  1412. {
  1413. return _impl_.options_.Get(index);
  1414. }
  1415. inline const ::PROTOBUF_NAMESPACE_ID::Option& Method::options(int index) const
  1416. {
  1417. // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
  1418. return _internal_options(index);
  1419. }
  1420. inline ::PROTOBUF_NAMESPACE_ID::Option* Method::_internal_add_options()
  1421. {
  1422. return _impl_.options_.Add();
  1423. }
  1424. inline ::PROTOBUF_NAMESPACE_ID::Option* Method::add_options()
  1425. {
  1426. ::PROTOBUF_NAMESPACE_ID::Option* _add = _internal_add_options();
  1427. // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
  1428. return _add;
  1429. }
  1430. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::Option>&
  1431. Method::options() const
  1432. {
  1433. // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
  1434. return _impl_.options_;
  1435. }
  1436. // .google.protobuf.Syntax syntax = 7;
  1437. inline void Method::clear_syntax()
  1438. {
  1439. _impl_.syntax_ = 0;
  1440. }
  1441. inline ::PROTOBUF_NAMESPACE_ID::Syntax Method::_internal_syntax() const
  1442. {
  1443. return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
  1444. }
  1445. inline ::PROTOBUF_NAMESPACE_ID::Syntax Method::syntax() const
  1446. {
  1447. // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
  1448. return _internal_syntax();
  1449. }
  1450. inline void Method::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value)
  1451. {
  1452. _impl_.syntax_ = value;
  1453. }
  1454. inline void Method::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value)
  1455. {
  1456. _internal_set_syntax(value);
  1457. // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
  1458. }
  1459. // -------------------------------------------------------------------
  1460. // Mixin
  1461. // string name = 1;
  1462. inline void Mixin::clear_name()
  1463. {
  1464. _impl_.name_.ClearToEmpty();
  1465. }
  1466. inline const std::string& Mixin::name() const
  1467. {
  1468. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
  1469. return _internal_name();
  1470. }
  1471. template<typename ArgT0, typename... ArgT>
  1472. inline PROTOBUF_ALWAYS_INLINE void Mixin::set_name(ArgT0&& arg0, ArgT... args)
  1473. {
  1474. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1475. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
  1476. }
  1477. inline std::string* Mixin::mutable_name()
  1478. {
  1479. std::string* _s = _internal_mutable_name();
  1480. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
  1481. return _s;
  1482. }
  1483. inline const std::string& Mixin::_internal_name() const
  1484. {
  1485. return _impl_.name_.Get();
  1486. }
  1487. inline void Mixin::_internal_set_name(const std::string& value)
  1488. {
  1489. _impl_.name_.Set(value, GetArenaForAllocation());
  1490. }
  1491. inline std::string* Mixin::_internal_mutable_name()
  1492. {
  1493. return _impl_.name_.Mutable(GetArenaForAllocation());
  1494. }
  1495. inline std::string* Mixin::release_name()
  1496. {
  1497. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
  1498. return _impl_.name_.Release();
  1499. }
  1500. inline void Mixin::set_allocated_name(std::string* name)
  1501. {
  1502. if (name != nullptr)
  1503. {
  1504. }
  1505. else
  1506. {
  1507. }
  1508. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  1509. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1510. if (_impl_.name_.IsDefault())
  1511. {
  1512. _impl_.name_.Set("", GetArenaForAllocation());
  1513. }
  1514. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1515. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
  1516. }
  1517. // string root = 2;
  1518. inline void Mixin::clear_root()
  1519. {
  1520. _impl_.root_.ClearToEmpty();
  1521. }
  1522. inline const std::string& Mixin::root() const
  1523. {
  1524. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
  1525. return _internal_root();
  1526. }
  1527. template<typename ArgT0, typename... ArgT>
  1528. inline PROTOBUF_ALWAYS_INLINE void Mixin::set_root(ArgT0&& arg0, ArgT... args)
  1529. {
  1530. _impl_.root_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  1531. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
  1532. }
  1533. inline std::string* Mixin::mutable_root()
  1534. {
  1535. std::string* _s = _internal_mutable_root();
  1536. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
  1537. return _s;
  1538. }
  1539. inline const std::string& Mixin::_internal_root() const
  1540. {
  1541. return _impl_.root_.Get();
  1542. }
  1543. inline void Mixin::_internal_set_root(const std::string& value)
  1544. {
  1545. _impl_.root_.Set(value, GetArenaForAllocation());
  1546. }
  1547. inline std::string* Mixin::_internal_mutable_root()
  1548. {
  1549. return _impl_.root_.Mutable(GetArenaForAllocation());
  1550. }
  1551. inline std::string* Mixin::release_root()
  1552. {
  1553. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
  1554. return _impl_.root_.Release();
  1555. }
  1556. inline void Mixin::set_allocated_root(std::string* root)
  1557. {
  1558. if (root != nullptr)
  1559. {
  1560. }
  1561. else
  1562. {
  1563. }
  1564. _impl_.root_.SetAllocated(root, GetArenaForAllocation());
  1565. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1566. if (_impl_.root_.IsDefault())
  1567. {
  1568. _impl_.root_.Set("", GetArenaForAllocation());
  1569. }
  1570. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1571. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
  1572. }
  1573. #ifdef __GNUC__
  1574. #pragma GCC diagnostic pop
  1575. #endif // __GNUC__
  1576. // -------------------------------------------------------------------
  1577. // -------------------------------------------------------------------
  1578. // @@protoc_insertion_point(namespace_scope)
  1579. PROTOBUF_NAMESPACE_CLOSE
  1580. // @@protoc_insertion_point(global_scope)
  1581. #include <google/protobuf/port_undef.inc>
  1582. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto