api.pb.h 51 KB

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