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

api.pb.h 52 kB

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