api.pb.h 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/api.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include <google/protobuf/source_context.pb.h>
  29. #include <google/protobuf/type.pb.h>
  30. // @@protoc_insertion_point(includes)
  31. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fapi_2eproto LIBPROTOBUF_EXPORT
  32. namespace protobuf_google_2fprotobuf_2fapi_2eproto {
  33. // Internal implementation detail -- do not use these members.
  34. struct LIBPROTOBUF_EXPORT TableStruct {
  35. static const ::google::protobuf::internal::ParseTableField entries[];
  36. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  37. static const ::google::protobuf::internal::ParseTable schema[3];
  38. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  39. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  40. static const ::google::protobuf::uint32 offsets[];
  41. };
  42. void LIBPROTOBUF_EXPORT AddDescriptors();
  43. } // namespace protobuf_google_2fprotobuf_2fapi_2eproto
  44. namespace google {
  45. namespace protobuf {
  46. class Api;
  47. class ApiDefaultTypeInternal;
  48. LIBPROTOBUF_EXPORT extern ApiDefaultTypeInternal _Api_default_instance_;
  49. class Method;
  50. class MethodDefaultTypeInternal;
  51. LIBPROTOBUF_EXPORT extern MethodDefaultTypeInternal _Method_default_instance_;
  52. class Mixin;
  53. class MixinDefaultTypeInternal;
  54. LIBPROTOBUF_EXPORT extern MixinDefaultTypeInternal _Mixin_default_instance_;
  55. } // namespace protobuf
  56. } // namespace google
  57. namespace google {
  58. namespace protobuf {
  59. template<> LIBPROTOBUF_EXPORT ::google::protobuf::Api* Arena::CreateMaybeMessage<::google::protobuf::Api>(Arena*);
  60. template<> LIBPROTOBUF_EXPORT ::google::protobuf::Method* Arena::CreateMaybeMessage<::google::protobuf::Method>(Arena*);
  61. template<> LIBPROTOBUF_EXPORT ::google::protobuf::Mixin* Arena::CreateMaybeMessage<::google::protobuf::Mixin>(Arena*);
  62. } // namespace protobuf
  63. } // namespace google
  64. namespace google {
  65. namespace protobuf {
  66. // ===================================================================
  67. class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Api) */ {
  68. public:
  69. Api();
  70. virtual ~Api();
  71. Api(const Api& from);
  72. inline Api& operator=(const Api& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. #if LANG_CXX11
  77. Api(Api&& from) noexcept
  78. : Api() {
  79. *this = ::std::move(from);
  80. }
  81. inline Api& operator=(Api&& from) noexcept {
  82. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  83. if (this != &from) InternalSwap(&from);
  84. } else {
  85. CopyFrom(from);
  86. }
  87. return *this;
  88. }
  89. #endif
  90. static const ::google::protobuf::Descriptor* descriptor();
  91. static const Api& default_instance();
  92. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  93. static inline const Api* internal_default_instance() {
  94. return reinterpret_cast<const Api*>(
  95. &_Api_default_instance_);
  96. }
  97. static constexpr int kIndexInFileMessages =
  98. 0;
  99. void Swap(Api* other);
  100. friend void swap(Api& a, Api& b) {
  101. a.Swap(&b);
  102. }
  103. // implements Message ----------------------------------------------
  104. inline Api* New() const final {
  105. return CreateMaybeMessage<Api>(NULL);
  106. }
  107. Api* New(::google::protobuf::Arena* arena) const final {
  108. return CreateMaybeMessage<Api>(arena);
  109. }
  110. void CopyFrom(const ::google::protobuf::Message& from) final;
  111. void MergeFrom(const ::google::protobuf::Message& from) final;
  112. void CopyFrom(const Api& from);
  113. void MergeFrom(const Api& from);
  114. void Clear() final;
  115. bool IsInitialized() const final;
  116. size_t ByteSizeLong() const final;
  117. bool MergePartialFromCodedStream(
  118. ::google::protobuf::io::CodedInputStream* input) final;
  119. void SerializeWithCachedSizes(
  120. ::google::protobuf::io::CodedOutputStream* output) const final;
  121. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  122. bool deterministic, ::google::protobuf::uint8* target) const final;
  123. int GetCachedSize() const final { return _cached_size_.Get(); }
  124. private:
  125. void SharedCtor();
  126. void SharedDtor();
  127. void SetCachedSize(int size) const final;
  128. void InternalSwap(Api* other);
  129. private:
  130. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  131. return NULL;
  132. }
  133. inline void* MaybeArenaPtr() const {
  134. return NULL;
  135. }
  136. public:
  137. ::google::protobuf::Metadata GetMetadata() const final;
  138. // nested types ----------------------------------------------------
  139. // accessors -------------------------------------------------------
  140. // repeated .google.protobuf.Method methods = 2;
  141. int methods_size() const;
  142. void clear_methods();
  143. static const int kMethodsFieldNumber = 2;
  144. ::google::protobuf::Method* mutable_methods(int index);
  145. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
  146. mutable_methods();
  147. const ::google::protobuf::Method& methods(int index) const;
  148. ::google::protobuf::Method* add_methods();
  149. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
  150. methods() const;
  151. // repeated .google.protobuf.Option options = 3;
  152. int options_size() const;
  153. void clear_options();
  154. static const int kOptionsFieldNumber = 3;
  155. ::google::protobuf::Option* mutable_options(int index);
  156. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  157. mutable_options();
  158. const ::google::protobuf::Option& options(int index) const;
  159. ::google::protobuf::Option* add_options();
  160. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  161. options() const;
  162. // repeated .google.protobuf.Mixin mixins = 6;
  163. int mixins_size() const;
  164. void clear_mixins();
  165. static const int kMixinsFieldNumber = 6;
  166. ::google::protobuf::Mixin* mutable_mixins(int index);
  167. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
  168. mutable_mixins();
  169. const ::google::protobuf::Mixin& mixins(int index) const;
  170. ::google::protobuf::Mixin* add_mixins();
  171. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
  172. mixins() const;
  173. // string name = 1;
  174. void clear_name();
  175. static const int kNameFieldNumber = 1;
  176. const ::std::string& name() const;
  177. void set_name(const ::std::string& value);
  178. #if LANG_CXX11
  179. void set_name(::std::string&& value);
  180. #endif
  181. void set_name(const char* value);
  182. void set_name(const char* value, size_t size);
  183. ::std::string* mutable_name();
  184. ::std::string* release_name();
  185. void set_allocated_name(::std::string* name);
  186. // string version = 4;
  187. void clear_version();
  188. static const int kVersionFieldNumber = 4;
  189. const ::std::string& version() const;
  190. void set_version(const ::std::string& value);
  191. #if LANG_CXX11
  192. void set_version(::std::string&& value);
  193. #endif
  194. void set_version(const char* value);
  195. void set_version(const char* value, size_t size);
  196. ::std::string* mutable_version();
  197. ::std::string* release_version();
  198. void set_allocated_version(::std::string* version);
  199. // .google.protobuf.SourceContext source_context = 5;
  200. bool has_source_context() const;
  201. void clear_source_context();
  202. static const int kSourceContextFieldNumber = 5;
  203. private:
  204. const ::google::protobuf::SourceContext& _internal_source_context() const;
  205. public:
  206. const ::google::protobuf::SourceContext& source_context() const;
  207. ::google::protobuf::SourceContext* release_source_context();
  208. ::google::protobuf::SourceContext* mutable_source_context();
  209. void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
  210. // .google.protobuf.Syntax syntax = 7;
  211. void clear_syntax();
  212. static const int kSyntaxFieldNumber = 7;
  213. ::google::protobuf::Syntax syntax() const;
  214. void set_syntax(::google::protobuf::Syntax value);
  215. // @@protoc_insertion_point(class_scope:google.protobuf.Api)
  216. private:
  217. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  218. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_;
  219. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  220. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin > mixins_;
  221. ::google::protobuf::internal::ArenaStringPtr name_;
  222. ::google::protobuf::internal::ArenaStringPtr version_;
  223. ::google::protobuf::SourceContext* source_context_;
  224. int syntax_;
  225. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  226. friend struct ::protobuf_google_2fprotobuf_2fapi_2eproto::TableStruct;
  227. };
  228. // -------------------------------------------------------------------
  229. class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Method) */ {
  230. public:
  231. Method();
  232. virtual ~Method();
  233. Method(const Method& from);
  234. inline Method& operator=(const Method& from) {
  235. CopyFrom(from);
  236. return *this;
  237. }
  238. #if LANG_CXX11
  239. Method(Method&& from) noexcept
  240. : Method() {
  241. *this = ::std::move(from);
  242. }
  243. inline Method& operator=(Method&& from) noexcept {
  244. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  245. if (this != &from) InternalSwap(&from);
  246. } else {
  247. CopyFrom(from);
  248. }
  249. return *this;
  250. }
  251. #endif
  252. static const ::google::protobuf::Descriptor* descriptor();
  253. static const Method& default_instance();
  254. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  255. static inline const Method* internal_default_instance() {
  256. return reinterpret_cast<const Method*>(
  257. &_Method_default_instance_);
  258. }
  259. static constexpr int kIndexInFileMessages =
  260. 1;
  261. void Swap(Method* other);
  262. friend void swap(Method& a, Method& b) {
  263. a.Swap(&b);
  264. }
  265. // implements Message ----------------------------------------------
  266. inline Method* New() const final {
  267. return CreateMaybeMessage<Method>(NULL);
  268. }
  269. Method* New(::google::protobuf::Arena* arena) const final {
  270. return CreateMaybeMessage<Method>(arena);
  271. }
  272. void CopyFrom(const ::google::protobuf::Message& from) final;
  273. void MergeFrom(const ::google::protobuf::Message& from) final;
  274. void CopyFrom(const Method& from);
  275. void MergeFrom(const Method& from);
  276. void Clear() final;
  277. bool IsInitialized() const final;
  278. size_t ByteSizeLong() const final;
  279. bool MergePartialFromCodedStream(
  280. ::google::protobuf::io::CodedInputStream* input) final;
  281. void SerializeWithCachedSizes(
  282. ::google::protobuf::io::CodedOutputStream* output) const final;
  283. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  284. bool deterministic, ::google::protobuf::uint8* target) const final;
  285. int GetCachedSize() const final { return _cached_size_.Get(); }
  286. private:
  287. void SharedCtor();
  288. void SharedDtor();
  289. void SetCachedSize(int size) const final;
  290. void InternalSwap(Method* other);
  291. private:
  292. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  293. return NULL;
  294. }
  295. inline void* MaybeArenaPtr() const {
  296. return NULL;
  297. }
  298. public:
  299. ::google::protobuf::Metadata GetMetadata() const final;
  300. // nested types ----------------------------------------------------
  301. // accessors -------------------------------------------------------
  302. // repeated .google.protobuf.Option options = 6;
  303. int options_size() const;
  304. void clear_options();
  305. static const int kOptionsFieldNumber = 6;
  306. ::google::protobuf::Option* mutable_options(int index);
  307. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  308. mutable_options();
  309. const ::google::protobuf::Option& options(int index) const;
  310. ::google::protobuf::Option* add_options();
  311. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  312. options() const;
  313. // string name = 1;
  314. void clear_name();
  315. static const int kNameFieldNumber = 1;
  316. const ::std::string& name() const;
  317. void set_name(const ::std::string& value);
  318. #if LANG_CXX11
  319. void set_name(::std::string&& value);
  320. #endif
  321. void set_name(const char* value);
  322. void set_name(const char* value, size_t size);
  323. ::std::string* mutable_name();
  324. ::std::string* release_name();
  325. void set_allocated_name(::std::string* name);
  326. // string request_type_url = 2;
  327. void clear_request_type_url();
  328. static const int kRequestTypeUrlFieldNumber = 2;
  329. const ::std::string& request_type_url() const;
  330. void set_request_type_url(const ::std::string& value);
  331. #if LANG_CXX11
  332. void set_request_type_url(::std::string&& value);
  333. #endif
  334. void set_request_type_url(const char* value);
  335. void set_request_type_url(const char* value, size_t size);
  336. ::std::string* mutable_request_type_url();
  337. ::std::string* release_request_type_url();
  338. void set_allocated_request_type_url(::std::string* request_type_url);
  339. // string response_type_url = 4;
  340. void clear_response_type_url();
  341. static const int kResponseTypeUrlFieldNumber = 4;
  342. const ::std::string& response_type_url() const;
  343. void set_response_type_url(const ::std::string& value);
  344. #if LANG_CXX11
  345. void set_response_type_url(::std::string&& value);
  346. #endif
  347. void set_response_type_url(const char* value);
  348. void set_response_type_url(const char* value, size_t size);
  349. ::std::string* mutable_response_type_url();
  350. ::std::string* release_response_type_url();
  351. void set_allocated_response_type_url(::std::string* response_type_url);
  352. // bool request_streaming = 3;
  353. void clear_request_streaming();
  354. static const int kRequestStreamingFieldNumber = 3;
  355. bool request_streaming() const;
  356. void set_request_streaming(bool value);
  357. // bool response_streaming = 5;
  358. void clear_response_streaming();
  359. static const int kResponseStreamingFieldNumber = 5;
  360. bool response_streaming() const;
  361. void set_response_streaming(bool value);
  362. // .google.protobuf.Syntax syntax = 7;
  363. void clear_syntax();
  364. static const int kSyntaxFieldNumber = 7;
  365. ::google::protobuf::Syntax syntax() const;
  366. void set_syntax(::google::protobuf::Syntax value);
  367. // @@protoc_insertion_point(class_scope:google.protobuf.Method)
  368. private:
  369. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  370. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  371. ::google::protobuf::internal::ArenaStringPtr name_;
  372. ::google::protobuf::internal::ArenaStringPtr request_type_url_;
  373. ::google::protobuf::internal::ArenaStringPtr response_type_url_;
  374. bool request_streaming_;
  375. bool response_streaming_;
  376. int syntax_;
  377. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  378. friend struct ::protobuf_google_2fprotobuf_2fapi_2eproto::TableStruct;
  379. };
  380. // -------------------------------------------------------------------
  381. class LIBPROTOBUF_EXPORT Mixin : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Mixin) */ {
  382. public:
  383. Mixin();
  384. virtual ~Mixin();
  385. Mixin(const Mixin& from);
  386. inline Mixin& operator=(const Mixin& from) {
  387. CopyFrom(from);
  388. return *this;
  389. }
  390. #if LANG_CXX11
  391. Mixin(Mixin&& from) noexcept
  392. : Mixin() {
  393. *this = ::std::move(from);
  394. }
  395. inline Mixin& operator=(Mixin&& from) noexcept {
  396. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  397. if (this != &from) InternalSwap(&from);
  398. } else {
  399. CopyFrom(from);
  400. }
  401. return *this;
  402. }
  403. #endif
  404. static const ::google::protobuf::Descriptor* descriptor();
  405. static const Mixin& default_instance();
  406. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  407. static inline const Mixin* internal_default_instance() {
  408. return reinterpret_cast<const Mixin*>(
  409. &_Mixin_default_instance_);
  410. }
  411. static constexpr int kIndexInFileMessages =
  412. 2;
  413. void Swap(Mixin* other);
  414. friend void swap(Mixin& a, Mixin& b) {
  415. a.Swap(&b);
  416. }
  417. // implements Message ----------------------------------------------
  418. inline Mixin* New() const final {
  419. return CreateMaybeMessage<Mixin>(NULL);
  420. }
  421. Mixin* New(::google::protobuf::Arena* arena) const final {
  422. return CreateMaybeMessage<Mixin>(arena);
  423. }
  424. void CopyFrom(const ::google::protobuf::Message& from) final;
  425. void MergeFrom(const ::google::protobuf::Message& from) final;
  426. void CopyFrom(const Mixin& from);
  427. void MergeFrom(const Mixin& from);
  428. void Clear() final;
  429. bool IsInitialized() const final;
  430. size_t ByteSizeLong() const final;
  431. bool MergePartialFromCodedStream(
  432. ::google::protobuf::io::CodedInputStream* input) final;
  433. void SerializeWithCachedSizes(
  434. ::google::protobuf::io::CodedOutputStream* output) const final;
  435. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  436. bool deterministic, ::google::protobuf::uint8* target) const final;
  437. int GetCachedSize() const final { return _cached_size_.Get(); }
  438. private:
  439. void SharedCtor();
  440. void SharedDtor();
  441. void SetCachedSize(int size) const final;
  442. void InternalSwap(Mixin* other);
  443. private:
  444. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  445. return NULL;
  446. }
  447. inline void* MaybeArenaPtr() const {
  448. return NULL;
  449. }
  450. public:
  451. ::google::protobuf::Metadata GetMetadata() const final;
  452. // nested types ----------------------------------------------------
  453. // accessors -------------------------------------------------------
  454. // string name = 1;
  455. void clear_name();
  456. static const int kNameFieldNumber = 1;
  457. const ::std::string& name() const;
  458. void set_name(const ::std::string& value);
  459. #if LANG_CXX11
  460. void set_name(::std::string&& value);
  461. #endif
  462. void set_name(const char* value);
  463. void set_name(const char* value, size_t size);
  464. ::std::string* mutable_name();
  465. ::std::string* release_name();
  466. void set_allocated_name(::std::string* name);
  467. // string root = 2;
  468. void clear_root();
  469. static const int kRootFieldNumber = 2;
  470. const ::std::string& root() const;
  471. void set_root(const ::std::string& value);
  472. #if LANG_CXX11
  473. void set_root(::std::string&& value);
  474. #endif
  475. void set_root(const char* value);
  476. void set_root(const char* value, size_t size);
  477. ::std::string* mutable_root();
  478. ::std::string* release_root();
  479. void set_allocated_root(::std::string* root);
  480. // @@protoc_insertion_point(class_scope:google.protobuf.Mixin)
  481. private:
  482. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  483. ::google::protobuf::internal::ArenaStringPtr name_;
  484. ::google::protobuf::internal::ArenaStringPtr root_;
  485. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  486. friend struct ::protobuf_google_2fprotobuf_2fapi_2eproto::TableStruct;
  487. };
  488. // ===================================================================
  489. // ===================================================================
  490. #ifdef __GNUC__
  491. #pragma GCC diagnostic push
  492. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  493. #endif // __GNUC__
  494. // Api
  495. // string name = 1;
  496. inline void Api::clear_name() {
  497. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  498. }
  499. inline const ::std::string& Api::name() const {
  500. // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
  501. return name_.GetNoArena();
  502. }
  503. inline void Api::set_name(const ::std::string& value) {
  504. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  505. // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
  506. }
  507. #if LANG_CXX11
  508. inline void Api::set_name(::std::string&& value) {
  509. name_.SetNoArena(
  510. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  511. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.name)
  512. }
  513. #endif
  514. inline void Api::set_name(const char* value) {
  515. GOOGLE_DCHECK(value != NULL);
  516. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  517. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
  518. }
  519. inline void Api::set_name(const char* value, size_t size) {
  520. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  521. ::std::string(reinterpret_cast<const char*>(value), size));
  522. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
  523. }
  524. inline ::std::string* Api::mutable_name() {
  525. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
  526. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  527. }
  528. inline ::std::string* Api::release_name() {
  529. // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
  530. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  531. }
  532. inline void Api::set_allocated_name(::std::string* name) {
  533. if (name != NULL) {
  534. } else {
  535. }
  536. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  537. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
  538. }
  539. // repeated .google.protobuf.Method methods = 2;
  540. inline int Api::methods_size() const {
  541. return methods_.size();
  542. }
  543. inline void Api::clear_methods() {
  544. methods_.Clear();
  545. }
  546. inline ::google::protobuf::Method* Api::mutable_methods(int index) {
  547. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
  548. return methods_.Mutable(index);
  549. }
  550. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
  551. Api::mutable_methods() {
  552. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
  553. return &methods_;
  554. }
  555. inline const ::google::protobuf::Method& Api::methods(int index) const {
  556. // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
  557. return methods_.Get(index);
  558. }
  559. inline ::google::protobuf::Method* Api::add_methods() {
  560. // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
  561. return methods_.Add();
  562. }
  563. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
  564. Api::methods() const {
  565. // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
  566. return methods_;
  567. }
  568. // repeated .google.protobuf.Option options = 3;
  569. inline int Api::options_size() const {
  570. return options_.size();
  571. }
  572. inline ::google::protobuf::Option* Api::mutable_options(int index) {
  573. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
  574. return options_.Mutable(index);
  575. }
  576. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  577. Api::mutable_options() {
  578. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
  579. return &options_;
  580. }
  581. inline const ::google::protobuf::Option& Api::options(int index) const {
  582. // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
  583. return options_.Get(index);
  584. }
  585. inline ::google::protobuf::Option* Api::add_options() {
  586. // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
  587. return options_.Add();
  588. }
  589. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  590. Api::options() const {
  591. // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
  592. return options_;
  593. }
  594. // string version = 4;
  595. inline void Api::clear_version() {
  596. version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  597. }
  598. inline const ::std::string& Api::version() const {
  599. // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
  600. return version_.GetNoArena();
  601. }
  602. inline void Api::set_version(const ::std::string& value) {
  603. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  604. // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
  605. }
  606. #if LANG_CXX11
  607. inline void Api::set_version(::std::string&& value) {
  608. version_.SetNoArena(
  609. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  610. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.version)
  611. }
  612. #endif
  613. inline void Api::set_version(const char* value) {
  614. GOOGLE_DCHECK(value != NULL);
  615. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  616. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
  617. }
  618. inline void Api::set_version(const char* value, size_t size) {
  619. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  620. ::std::string(reinterpret_cast<const char*>(value), size));
  621. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
  622. }
  623. inline ::std::string* Api::mutable_version() {
  624. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
  625. return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  626. }
  627. inline ::std::string* Api::release_version() {
  628. // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
  629. return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  630. }
  631. inline void Api::set_allocated_version(::std::string* version) {
  632. if (version != NULL) {
  633. } else {
  634. }
  635. version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
  636. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
  637. }
  638. // .google.protobuf.SourceContext source_context = 5;
  639. inline bool Api::has_source_context() const {
  640. return this != internal_default_instance() && source_context_ != NULL;
  641. }
  642. inline const ::google::protobuf::SourceContext& Api::_internal_source_context() const {
  643. return *source_context_;
  644. }
  645. inline const ::google::protobuf::SourceContext& Api::source_context() const {
  646. const ::google::protobuf::SourceContext* p = source_context_;
  647. // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
  648. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceContext*>(
  649. &::google::protobuf::_SourceContext_default_instance_);
  650. }
  651. inline ::google::protobuf::SourceContext* Api::release_source_context() {
  652. // @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
  653. ::google::protobuf::SourceContext* temp = source_context_;
  654. source_context_ = NULL;
  655. return temp;
  656. }
  657. inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
  658. if (source_context_ == NULL) {
  659. auto* p = CreateMaybeMessage<::google::protobuf::SourceContext>(GetArenaNoVirtual());
  660. source_context_ = p;
  661. }
  662. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
  663. return source_context_;
  664. }
  665. inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
  666. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  667. if (message_arena == NULL) {
  668. delete reinterpret_cast< ::google::protobuf::MessageLite*>(source_context_);
  669. }
  670. if (source_context) {
  671. ::google::protobuf::Arena* submessage_arena = NULL;
  672. if (message_arena != submessage_arena) {
  673. source_context = ::google::protobuf::internal::GetOwnedMessage(
  674. message_arena, source_context, submessage_arena);
  675. }
  676. } else {
  677. }
  678. source_context_ = source_context;
  679. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
  680. }
  681. // repeated .google.protobuf.Mixin mixins = 6;
  682. inline int Api::mixins_size() const {
  683. return mixins_.size();
  684. }
  685. inline void Api::clear_mixins() {
  686. mixins_.Clear();
  687. }
  688. inline ::google::protobuf::Mixin* Api::mutable_mixins(int index) {
  689. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
  690. return mixins_.Mutable(index);
  691. }
  692. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
  693. Api::mutable_mixins() {
  694. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
  695. return &mixins_;
  696. }
  697. inline const ::google::protobuf::Mixin& Api::mixins(int index) const {
  698. // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
  699. return mixins_.Get(index);
  700. }
  701. inline ::google::protobuf::Mixin* Api::add_mixins() {
  702. // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
  703. return mixins_.Add();
  704. }
  705. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
  706. Api::mixins() const {
  707. // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
  708. return mixins_;
  709. }
  710. // .google.protobuf.Syntax syntax = 7;
  711. inline void Api::clear_syntax() {
  712. syntax_ = 0;
  713. }
  714. inline ::google::protobuf::Syntax Api::syntax() const {
  715. // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
  716. return static_cast< ::google::protobuf::Syntax >(syntax_);
  717. }
  718. inline void Api::set_syntax(::google::protobuf::Syntax value) {
  719. syntax_ = value;
  720. // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
  721. }
  722. // -------------------------------------------------------------------
  723. // Method
  724. // string name = 1;
  725. inline void Method::clear_name() {
  726. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  727. }
  728. inline const ::std::string& Method::name() const {
  729. // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
  730. return name_.GetNoArena();
  731. }
  732. inline void Method::set_name(const ::std::string& value) {
  733. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  734. // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
  735. }
  736. #if LANG_CXX11
  737. inline void Method::set_name(::std::string&& value) {
  738. name_.SetNoArena(
  739. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  740. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.name)
  741. }
  742. #endif
  743. inline void Method::set_name(const char* value) {
  744. GOOGLE_DCHECK(value != NULL);
  745. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  746. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
  747. }
  748. inline void Method::set_name(const char* value, size_t size) {
  749. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  750. ::std::string(reinterpret_cast<const char*>(value), size));
  751. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
  752. }
  753. inline ::std::string* Method::mutable_name() {
  754. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
  755. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  756. }
  757. inline ::std::string* Method::release_name() {
  758. // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
  759. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  760. }
  761. inline void Method::set_allocated_name(::std::string* name) {
  762. if (name != NULL) {
  763. } else {
  764. }
  765. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  766. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
  767. }
  768. // string request_type_url = 2;
  769. inline void Method::clear_request_type_url() {
  770. request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  771. }
  772. inline const ::std::string& Method::request_type_url() const {
  773. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
  774. return request_type_url_.GetNoArena();
  775. }
  776. inline void Method::set_request_type_url(const ::std::string& value) {
  777. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  778. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
  779. }
  780. #if LANG_CXX11
  781. inline void Method::set_request_type_url(::std::string&& value) {
  782. request_type_url_.SetNoArena(
  783. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  784. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.request_type_url)
  785. }
  786. #endif
  787. inline void Method::set_request_type_url(const char* value) {
  788. GOOGLE_DCHECK(value != NULL);
  789. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  790. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
  791. }
  792. inline void Method::set_request_type_url(const char* value, size_t size) {
  793. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  794. ::std::string(reinterpret_cast<const char*>(value), size));
  795. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
  796. }
  797. inline ::std::string* Method::mutable_request_type_url() {
  798. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
  799. return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  800. }
  801. inline ::std::string* Method::release_request_type_url() {
  802. // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
  803. return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  804. }
  805. inline void Method::set_allocated_request_type_url(::std::string* request_type_url) {
  806. if (request_type_url != NULL) {
  807. } else {
  808. }
  809. request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
  810. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
  811. }
  812. // bool request_streaming = 3;
  813. inline void Method::clear_request_streaming() {
  814. request_streaming_ = false;
  815. }
  816. inline bool Method::request_streaming() const {
  817. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
  818. return request_streaming_;
  819. }
  820. inline void Method::set_request_streaming(bool value) {
  821. request_streaming_ = value;
  822. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
  823. }
  824. // string response_type_url = 4;
  825. inline void Method::clear_response_type_url() {
  826. response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  827. }
  828. inline const ::std::string& Method::response_type_url() const {
  829. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
  830. return response_type_url_.GetNoArena();
  831. }
  832. inline void Method::set_response_type_url(const ::std::string& value) {
  833. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  834. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
  835. }
  836. #if LANG_CXX11
  837. inline void Method::set_response_type_url(::std::string&& value) {
  838. response_type_url_.SetNoArena(
  839. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  840. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.response_type_url)
  841. }
  842. #endif
  843. inline void Method::set_response_type_url(const char* value) {
  844. GOOGLE_DCHECK(value != NULL);
  845. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  846. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
  847. }
  848. inline void Method::set_response_type_url(const char* value, size_t size) {
  849. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  850. ::std::string(reinterpret_cast<const char*>(value), size));
  851. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
  852. }
  853. inline ::std::string* Method::mutable_response_type_url() {
  854. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
  855. return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  856. }
  857. inline ::std::string* Method::release_response_type_url() {
  858. // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
  859. return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  860. }
  861. inline void Method::set_allocated_response_type_url(::std::string* response_type_url) {
  862. if (response_type_url != NULL) {
  863. } else {
  864. }
  865. response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
  866. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
  867. }
  868. // bool response_streaming = 5;
  869. inline void Method::clear_response_streaming() {
  870. response_streaming_ = false;
  871. }
  872. inline bool Method::response_streaming() const {
  873. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
  874. return response_streaming_;
  875. }
  876. inline void Method::set_response_streaming(bool value) {
  877. response_streaming_ = value;
  878. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
  879. }
  880. // repeated .google.protobuf.Option options = 6;
  881. inline int Method::options_size() const {
  882. return options_.size();
  883. }
  884. inline ::google::protobuf::Option* Method::mutable_options(int index) {
  885. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
  886. return options_.Mutable(index);
  887. }
  888. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  889. Method::mutable_options() {
  890. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
  891. return &options_;
  892. }
  893. inline const ::google::protobuf::Option& Method::options(int index) const {
  894. // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
  895. return options_.Get(index);
  896. }
  897. inline ::google::protobuf::Option* Method::add_options() {
  898. // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
  899. return options_.Add();
  900. }
  901. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  902. Method::options() const {
  903. // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
  904. return options_;
  905. }
  906. // .google.protobuf.Syntax syntax = 7;
  907. inline void Method::clear_syntax() {
  908. syntax_ = 0;
  909. }
  910. inline ::google::protobuf::Syntax Method::syntax() const {
  911. // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
  912. return static_cast< ::google::protobuf::Syntax >(syntax_);
  913. }
  914. inline void Method::set_syntax(::google::protobuf::Syntax value) {
  915. syntax_ = value;
  916. // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
  917. }
  918. // -------------------------------------------------------------------
  919. // Mixin
  920. // string name = 1;
  921. inline void Mixin::clear_name() {
  922. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  923. }
  924. inline const ::std::string& Mixin::name() const {
  925. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
  926. return name_.GetNoArena();
  927. }
  928. inline void Mixin::set_name(const ::std::string& value) {
  929. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  930. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
  931. }
  932. #if LANG_CXX11
  933. inline void Mixin::set_name(::std::string&& value) {
  934. name_.SetNoArena(
  935. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  936. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.name)
  937. }
  938. #endif
  939. inline void Mixin::set_name(const char* value) {
  940. GOOGLE_DCHECK(value != NULL);
  941. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  942. // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
  943. }
  944. inline void Mixin::set_name(const char* value, size_t size) {
  945. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  946. ::std::string(reinterpret_cast<const char*>(value), size));
  947. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
  948. }
  949. inline ::std::string* Mixin::mutable_name() {
  950. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
  951. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  952. }
  953. inline ::std::string* Mixin::release_name() {
  954. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
  955. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  956. }
  957. inline void Mixin::set_allocated_name(::std::string* name) {
  958. if (name != NULL) {
  959. } else {
  960. }
  961. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  962. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
  963. }
  964. // string root = 2;
  965. inline void Mixin::clear_root() {
  966. root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  967. }
  968. inline const ::std::string& Mixin::root() const {
  969. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
  970. return root_.GetNoArena();
  971. }
  972. inline void Mixin::set_root(const ::std::string& value) {
  973. root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  974. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
  975. }
  976. #if LANG_CXX11
  977. inline void Mixin::set_root(::std::string&& value) {
  978. root_.SetNoArena(
  979. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  980. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.root)
  981. }
  982. #endif
  983. inline void Mixin::set_root(const char* value) {
  984. GOOGLE_DCHECK(value != NULL);
  985. root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  986. // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
  987. }
  988. inline void Mixin::set_root(const char* value, size_t size) {
  989. root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  990. ::std::string(reinterpret_cast<const char*>(value), size));
  991. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
  992. }
  993. inline ::std::string* Mixin::mutable_root() {
  994. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
  995. return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  996. }
  997. inline ::std::string* Mixin::release_root() {
  998. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
  999. return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1000. }
  1001. inline void Mixin::set_allocated_root(::std::string* root) {
  1002. if (root != NULL) {
  1003. } else {
  1004. }
  1005. root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root);
  1006. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
  1007. }
  1008. #ifdef __GNUC__
  1009. #pragma GCC diagnostic pop
  1010. #endif // __GNUC__
  1011. // -------------------------------------------------------------------
  1012. // -------------------------------------------------------------------
  1013. // @@protoc_insertion_point(namespace_scope)
  1014. } // namespace protobuf
  1015. } // namespace google
  1016. // @@protoc_insertion_point(global_scope)
  1017. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto