api.pb.h 51 KB

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