api.pb.h 51 KB

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