api.pb.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/api.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3000000
  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 3000000 < 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/arena.h>
  18. #include <google/protobuf/arenastring.h>
  19. #include <google/protobuf/generated_message_util.h>
  20. #include <google/protobuf/metadata.h>
  21. #include <google/protobuf/message.h>
  22. #include <google/protobuf/repeated_field.h>
  23. #include <google/protobuf/extension_set.h>
  24. #include <google/protobuf/unknown_field_set.h>
  25. #include "google/protobuf/source_context.pb.h"
  26. #include "google/protobuf/type.pb.h"
  27. // @@protoc_insertion_point(includes)
  28. namespace google {
  29. namespace protobuf {
  30. // Internal implementation detail -- do not call these.
  31. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
  32. void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
  33. void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
  34. class Api;
  35. class Method;
  36. // ===================================================================
  37. class LIBPROTOBUF_EXPORT Api : public ::google::protobuf::Message {
  38. public:
  39. Api();
  40. virtual ~Api();
  41. Api(const Api& from);
  42. inline Api& operator=(const Api& from) {
  43. CopyFrom(from);
  44. return *this;
  45. }
  46. static const ::google::protobuf::Descriptor* descriptor();
  47. static const Api& default_instance();
  48. void Swap(Api* other);
  49. // implements Message ----------------------------------------------
  50. inline Api* New() const { return New(NULL); }
  51. Api* New(::google::protobuf::Arena* arena) const;
  52. void CopyFrom(const ::google::protobuf::Message& from);
  53. void MergeFrom(const ::google::protobuf::Message& from);
  54. void CopyFrom(const Api& from);
  55. void MergeFrom(const Api& from);
  56. void Clear();
  57. bool IsInitialized() const;
  58. int ByteSize() const;
  59. bool MergePartialFromCodedStream(
  60. ::google::protobuf::io::CodedInputStream* input);
  61. void SerializeWithCachedSizes(
  62. ::google::protobuf::io::CodedOutputStream* output) const;
  63. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  64. int GetCachedSize() const { return _cached_size_; }
  65. private:
  66. void SharedCtor();
  67. void SharedDtor();
  68. void SetCachedSize(int size) const;
  69. void InternalSwap(Api* other);
  70. private:
  71. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  72. return _internal_metadata_.arena();
  73. }
  74. inline void* MaybeArenaPtr() const {
  75. return _internal_metadata_.raw_arena_ptr();
  76. }
  77. public:
  78. ::google::protobuf::Metadata GetMetadata() const;
  79. // nested types ----------------------------------------------------
  80. // accessors -------------------------------------------------------
  81. // optional string name = 1;
  82. void clear_name();
  83. static const int kNameFieldNumber = 1;
  84. const ::std::string& name() const;
  85. void set_name(const ::std::string& value);
  86. void set_name(const char* value);
  87. void set_name(const char* value, size_t size);
  88. ::std::string* mutable_name();
  89. ::std::string* release_name();
  90. void set_allocated_name(::std::string* name);
  91. // repeated .google.protobuf.Method methods = 2;
  92. int methods_size() const;
  93. void clear_methods();
  94. static const int kMethodsFieldNumber = 2;
  95. const ::google::protobuf::Method& methods(int index) const;
  96. ::google::protobuf::Method* mutable_methods(int index);
  97. ::google::protobuf::Method* add_methods();
  98. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
  99. methods() const;
  100. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
  101. mutable_methods();
  102. // repeated .google.protobuf.Option options = 3;
  103. int options_size() const;
  104. void clear_options();
  105. static const int kOptionsFieldNumber = 3;
  106. const ::google::protobuf::Option& options(int index) const;
  107. ::google::protobuf::Option* mutable_options(int index);
  108. ::google::protobuf::Option* add_options();
  109. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  110. options() const;
  111. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  112. mutable_options();
  113. // optional string version = 4;
  114. void clear_version();
  115. static const int kVersionFieldNumber = 4;
  116. const ::std::string& version() const;
  117. void set_version(const ::std::string& value);
  118. void set_version(const char* value);
  119. void set_version(const char* value, size_t size);
  120. ::std::string* mutable_version();
  121. ::std::string* release_version();
  122. void set_allocated_version(::std::string* version);
  123. // optional .google.protobuf.SourceContext source_context = 5;
  124. bool has_source_context() const;
  125. void clear_source_context();
  126. static const int kSourceContextFieldNumber = 5;
  127. const ::google::protobuf::SourceContext& source_context() const;
  128. ::google::protobuf::SourceContext* mutable_source_context();
  129. ::google::protobuf::SourceContext* release_source_context();
  130. void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
  131. // @@protoc_insertion_point(class_scope:google.protobuf.Api)
  132. private:
  133. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  134. bool _is_default_instance_;
  135. ::google::protobuf::internal::ArenaStringPtr name_;
  136. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method > methods_;
  137. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  138. ::google::protobuf::internal::ArenaStringPtr version_;
  139. ::google::protobuf::SourceContext* source_context_;
  140. mutable int _cached_size_;
  141. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
  142. friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
  143. friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
  144. void InitAsDefaultInstance();
  145. static Api* default_instance_;
  146. };
  147. // -------------------------------------------------------------------
  148. class LIBPROTOBUF_EXPORT Method : public ::google::protobuf::Message {
  149. public:
  150. Method();
  151. virtual ~Method();
  152. Method(const Method& from);
  153. inline Method& operator=(const Method& from) {
  154. CopyFrom(from);
  155. return *this;
  156. }
  157. static const ::google::protobuf::Descriptor* descriptor();
  158. static const Method& default_instance();
  159. void Swap(Method* other);
  160. // implements Message ----------------------------------------------
  161. inline Method* New() const { return New(NULL); }
  162. Method* New(::google::protobuf::Arena* arena) const;
  163. void CopyFrom(const ::google::protobuf::Message& from);
  164. void MergeFrom(const ::google::protobuf::Message& from);
  165. void CopyFrom(const Method& from);
  166. void MergeFrom(const Method& from);
  167. void Clear();
  168. bool IsInitialized() const;
  169. int ByteSize() const;
  170. bool MergePartialFromCodedStream(
  171. ::google::protobuf::io::CodedInputStream* input);
  172. void SerializeWithCachedSizes(
  173. ::google::protobuf::io::CodedOutputStream* output) const;
  174. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  175. int GetCachedSize() const { return _cached_size_; }
  176. private:
  177. void SharedCtor();
  178. void SharedDtor();
  179. void SetCachedSize(int size) const;
  180. void InternalSwap(Method* other);
  181. private:
  182. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  183. return _internal_metadata_.arena();
  184. }
  185. inline void* MaybeArenaPtr() const {
  186. return _internal_metadata_.raw_arena_ptr();
  187. }
  188. public:
  189. ::google::protobuf::Metadata GetMetadata() const;
  190. // nested types ----------------------------------------------------
  191. // accessors -------------------------------------------------------
  192. // optional string name = 1;
  193. void clear_name();
  194. static const int kNameFieldNumber = 1;
  195. const ::std::string& name() const;
  196. void set_name(const ::std::string& value);
  197. void set_name(const char* value);
  198. void set_name(const char* value, size_t size);
  199. ::std::string* mutable_name();
  200. ::std::string* release_name();
  201. void set_allocated_name(::std::string* name);
  202. // optional string request_type_url = 2;
  203. void clear_request_type_url();
  204. static const int kRequestTypeUrlFieldNumber = 2;
  205. const ::std::string& request_type_url() const;
  206. void set_request_type_url(const ::std::string& value);
  207. void set_request_type_url(const char* value);
  208. void set_request_type_url(const char* value, size_t size);
  209. ::std::string* mutable_request_type_url();
  210. ::std::string* release_request_type_url();
  211. void set_allocated_request_type_url(::std::string* request_type_url);
  212. // optional bool request_streaming = 3;
  213. void clear_request_streaming();
  214. static const int kRequestStreamingFieldNumber = 3;
  215. bool request_streaming() const;
  216. void set_request_streaming(bool value);
  217. // optional string response_type_url = 4;
  218. void clear_response_type_url();
  219. static const int kResponseTypeUrlFieldNumber = 4;
  220. const ::std::string& response_type_url() const;
  221. void set_response_type_url(const ::std::string& value);
  222. void set_response_type_url(const char* value);
  223. void set_response_type_url(const char* value, size_t size);
  224. ::std::string* mutable_response_type_url();
  225. ::std::string* release_response_type_url();
  226. void set_allocated_response_type_url(::std::string* response_type_url);
  227. // optional bool response_streaming = 5;
  228. void clear_response_streaming();
  229. static const int kResponseStreamingFieldNumber = 5;
  230. bool response_streaming() const;
  231. void set_response_streaming(bool value);
  232. // repeated .google.protobuf.Option options = 6;
  233. int options_size() const;
  234. void clear_options();
  235. static const int kOptionsFieldNumber = 6;
  236. const ::google::protobuf::Option& options(int index) const;
  237. ::google::protobuf::Option* mutable_options(int index);
  238. ::google::protobuf::Option* add_options();
  239. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  240. options() const;
  241. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  242. mutable_options();
  243. // @@protoc_insertion_point(class_scope:google.protobuf.Method)
  244. private:
  245. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  246. bool _is_default_instance_;
  247. ::google::protobuf::internal::ArenaStringPtr name_;
  248. ::google::protobuf::internal::ArenaStringPtr request_type_url_;
  249. ::google::protobuf::internal::ArenaStringPtr response_type_url_;
  250. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  251. bool request_streaming_;
  252. bool response_streaming_;
  253. mutable int _cached_size_;
  254. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
  255. friend void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto();
  256. friend void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto();
  257. void InitAsDefaultInstance();
  258. static Method* default_instance_;
  259. };
  260. // ===================================================================
  261. // ===================================================================
  262. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  263. // Api
  264. // optional string name = 1;
  265. inline void Api::clear_name() {
  266. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  267. }
  268. inline const ::std::string& Api::name() const {
  269. // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
  270. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  271. }
  272. inline void Api::set_name(const ::std::string& value) {
  273. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  274. // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
  275. }
  276. inline void Api::set_name(const char* value) {
  277. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  278. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
  279. }
  280. inline void Api::set_name(const char* value, size_t size) {
  281. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  282. ::std::string(reinterpret_cast<const char*>(value), size));
  283. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
  284. }
  285. inline ::std::string* Api::mutable_name() {
  286. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
  287. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  288. }
  289. inline ::std::string* Api::release_name() {
  290. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  291. }
  292. inline void Api::set_allocated_name(::std::string* name) {
  293. if (name != NULL) {
  294. } else {
  295. }
  296. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  297. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
  298. }
  299. // repeated .google.protobuf.Method methods = 2;
  300. inline int Api::methods_size() const {
  301. return methods_.size();
  302. }
  303. inline void Api::clear_methods() {
  304. methods_.Clear();
  305. }
  306. inline const ::google::protobuf::Method& Api::methods(int index) const {
  307. // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
  308. return methods_.Get(index);
  309. }
  310. inline ::google::protobuf::Method* Api::mutable_methods(int index) {
  311. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
  312. return methods_.Mutable(index);
  313. }
  314. inline ::google::protobuf::Method* Api::add_methods() {
  315. // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
  316. return methods_.Add();
  317. }
  318. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
  319. Api::methods() const {
  320. // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
  321. return methods_;
  322. }
  323. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
  324. Api::mutable_methods() {
  325. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
  326. return &methods_;
  327. }
  328. // repeated .google.protobuf.Option options = 3;
  329. inline int Api::options_size() const {
  330. return options_.size();
  331. }
  332. inline void Api::clear_options() {
  333. options_.Clear();
  334. }
  335. inline const ::google::protobuf::Option& Api::options(int index) const {
  336. // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
  337. return options_.Get(index);
  338. }
  339. inline ::google::protobuf::Option* Api::mutable_options(int index) {
  340. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
  341. return options_.Mutable(index);
  342. }
  343. inline ::google::protobuf::Option* Api::add_options() {
  344. // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
  345. return options_.Add();
  346. }
  347. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  348. Api::options() const {
  349. // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
  350. return options_;
  351. }
  352. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  353. Api::mutable_options() {
  354. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
  355. return &options_;
  356. }
  357. // optional string version = 4;
  358. inline void Api::clear_version() {
  359. version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  360. }
  361. inline const ::std::string& Api::version() const {
  362. // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
  363. return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  364. }
  365. inline void Api::set_version(const ::std::string& value) {
  366. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  367. // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
  368. }
  369. inline void Api::set_version(const char* value) {
  370. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  371. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
  372. }
  373. inline void Api::set_version(const char* value, size_t size) {
  374. version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  375. ::std::string(reinterpret_cast<const char*>(value), size));
  376. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
  377. }
  378. inline ::std::string* Api::mutable_version() {
  379. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
  380. return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  381. }
  382. inline ::std::string* Api::release_version() {
  383. return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  384. }
  385. inline void Api::set_allocated_version(::std::string* version) {
  386. if (version != NULL) {
  387. } else {
  388. }
  389. version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
  390. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
  391. }
  392. // optional .google.protobuf.SourceContext source_context = 5;
  393. inline bool Api::has_source_context() const {
  394. return !_is_default_instance_ && source_context_ != NULL;
  395. }
  396. inline void Api::clear_source_context() {
  397. if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
  398. source_context_ = NULL;
  399. }
  400. inline const ::google::protobuf::SourceContext& Api::source_context() const {
  401. // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
  402. return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
  403. }
  404. inline ::google::protobuf::SourceContext* Api::mutable_source_context() {
  405. if (source_context_ == NULL) {
  406. source_context_ = new ::google::protobuf::SourceContext;
  407. }
  408. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
  409. return source_context_;
  410. }
  411. inline ::google::protobuf::SourceContext* Api::release_source_context() {
  412. ::google::protobuf::SourceContext* temp = source_context_;
  413. source_context_ = NULL;
  414. return temp;
  415. }
  416. inline void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
  417. delete source_context_;
  418. source_context_ = source_context;
  419. if (source_context) {
  420. } else {
  421. }
  422. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
  423. }
  424. // -------------------------------------------------------------------
  425. // Method
  426. // optional string name = 1;
  427. inline void Method::clear_name() {
  428. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  429. }
  430. inline const ::std::string& Method::name() const {
  431. // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
  432. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  433. }
  434. inline void Method::set_name(const ::std::string& value) {
  435. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  436. // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
  437. }
  438. inline void Method::set_name(const char* value) {
  439. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  440. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
  441. }
  442. inline void Method::set_name(const char* value, size_t size) {
  443. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  444. ::std::string(reinterpret_cast<const char*>(value), size));
  445. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
  446. }
  447. inline ::std::string* Method::mutable_name() {
  448. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
  449. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  450. }
  451. inline ::std::string* Method::release_name() {
  452. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  453. }
  454. inline void Method::set_allocated_name(::std::string* name) {
  455. if (name != NULL) {
  456. } else {
  457. }
  458. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  459. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
  460. }
  461. // optional string request_type_url = 2;
  462. inline void Method::clear_request_type_url() {
  463. request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  464. }
  465. inline const ::std::string& Method::request_type_url() const {
  466. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
  467. return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  468. }
  469. inline void Method::set_request_type_url(const ::std::string& value) {
  470. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  471. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
  472. }
  473. inline void Method::set_request_type_url(const char* value) {
  474. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  475. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
  476. }
  477. inline void Method::set_request_type_url(const char* value, size_t size) {
  478. request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  479. ::std::string(reinterpret_cast<const char*>(value), size));
  480. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
  481. }
  482. inline ::std::string* Method::mutable_request_type_url() {
  483. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
  484. return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  485. }
  486. inline ::std::string* Method::release_request_type_url() {
  487. return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  488. }
  489. inline void Method::set_allocated_request_type_url(::std::string* request_type_url) {
  490. if (request_type_url != NULL) {
  491. } else {
  492. }
  493. request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
  494. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
  495. }
  496. // optional bool request_streaming = 3;
  497. inline void Method::clear_request_streaming() {
  498. request_streaming_ = false;
  499. }
  500. inline bool Method::request_streaming() const {
  501. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
  502. return request_streaming_;
  503. }
  504. inline void Method::set_request_streaming(bool value) {
  505. request_streaming_ = value;
  506. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
  507. }
  508. // optional string response_type_url = 4;
  509. inline void Method::clear_response_type_url() {
  510. response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  511. }
  512. inline const ::std::string& Method::response_type_url() const {
  513. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
  514. return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  515. }
  516. inline void Method::set_response_type_url(const ::std::string& value) {
  517. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  518. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
  519. }
  520. inline void Method::set_response_type_url(const char* value) {
  521. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  522. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
  523. }
  524. inline void Method::set_response_type_url(const char* value, size_t size) {
  525. response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  526. ::std::string(reinterpret_cast<const char*>(value), size));
  527. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
  528. }
  529. inline ::std::string* Method::mutable_response_type_url() {
  530. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
  531. return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  532. }
  533. inline ::std::string* Method::release_response_type_url() {
  534. return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  535. }
  536. inline void Method::set_allocated_response_type_url(::std::string* response_type_url) {
  537. if (response_type_url != NULL) {
  538. } else {
  539. }
  540. response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
  541. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
  542. }
  543. // optional bool response_streaming = 5;
  544. inline void Method::clear_response_streaming() {
  545. response_streaming_ = false;
  546. }
  547. inline bool Method::response_streaming() const {
  548. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
  549. return response_streaming_;
  550. }
  551. inline void Method::set_response_streaming(bool value) {
  552. response_streaming_ = value;
  553. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
  554. }
  555. // repeated .google.protobuf.Option options = 6;
  556. inline int Method::options_size() const {
  557. return options_.size();
  558. }
  559. inline void Method::clear_options() {
  560. options_.Clear();
  561. }
  562. inline const ::google::protobuf::Option& Method::options(int index) const {
  563. // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
  564. return options_.Get(index);
  565. }
  566. inline ::google::protobuf::Option* Method::mutable_options(int index) {
  567. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
  568. return options_.Mutable(index);
  569. }
  570. inline ::google::protobuf::Option* Method::add_options() {
  571. // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
  572. return options_.Add();
  573. }
  574. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  575. Method::options() const {
  576. // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
  577. return options_;
  578. }
  579. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  580. Method::mutable_options() {
  581. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
  582. return &options_;
  583. }
  584. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  585. // -------------------------------------------------------------------
  586. // @@protoc_insertion_point(namespace_scope)
  587. } // namespace protobuf
  588. } // namespace google
  589. // @@protoc_insertion_point(global_scope)
  590. #endif // PROTOBUF_google_2fprotobuf_2fapi_2eproto__INCLUDED