echo.pb.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: echo.proto
  3. #ifndef PROTOBUF_echo_2eproto__INCLUDED
  4. #define PROTOBUF_echo_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/service.h>
  25. #include <google/protobuf/unknown_field_set.h>
  26. // @@protoc_insertion_point(includes)
  27. namespace iv {
  28. // Internal implementation detail -- do not call these.
  29. void protobuf_AddDesc_echo_2eproto();
  30. void protobuf_AssignDesc_echo_2eproto();
  31. void protobuf_ShutdownFile_echo_2eproto();
  32. class EchoRequest;
  33. class EchoResponse;
  34. // ===================================================================
  35. class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoRequest) */ {
  36. public:
  37. EchoRequest();
  38. virtual ~EchoRequest();
  39. EchoRequest(const EchoRequest& from);
  40. inline EchoRequest& operator=(const EchoRequest& from) {
  41. CopyFrom(from);
  42. return *this;
  43. }
  44. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  45. return _internal_metadata_.unknown_fields();
  46. }
  47. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  48. return _internal_metadata_.mutable_unknown_fields();
  49. }
  50. static const ::google::protobuf::Descriptor* descriptor();
  51. static const EchoRequest& default_instance();
  52. void Swap(EchoRequest* other);
  53. // implements Message ----------------------------------------------
  54. inline EchoRequest* New() const { return New(NULL); }
  55. EchoRequest* New(::google::protobuf::Arena* arena) const;
  56. void CopyFrom(const ::google::protobuf::Message& from);
  57. void MergeFrom(const ::google::protobuf::Message& from);
  58. void CopyFrom(const EchoRequest& from);
  59. void MergeFrom(const EchoRequest& from);
  60. void Clear();
  61. bool IsInitialized() const;
  62. int ByteSize() const;
  63. bool MergePartialFromCodedStream(
  64. ::google::protobuf::io::CodedInputStream* input);
  65. void SerializeWithCachedSizes(
  66. ::google::protobuf::io::CodedOutputStream* output) const;
  67. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  68. bool deterministic, ::google::protobuf::uint8* output) const;
  69. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
  70. return InternalSerializeWithCachedSizesToArray(false, output);
  71. }
  72. int GetCachedSize() const { return _cached_size_; }
  73. private:
  74. void SharedCtor();
  75. void SharedDtor();
  76. void SetCachedSize(int size) const;
  77. void InternalSwap(EchoRequest* other);
  78. private:
  79. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  80. return _internal_metadata_.arena();
  81. }
  82. inline void* MaybeArenaPtr() const {
  83. return _internal_metadata_.raw_arena_ptr();
  84. }
  85. public:
  86. ::google::protobuf::Metadata GetMetadata() const;
  87. // nested types ----------------------------------------------------
  88. // accessors -------------------------------------------------------
  89. // required string msgname = 1;
  90. bool has_msgname() const;
  91. void clear_msgname();
  92. static const int kMsgnameFieldNumber = 1;
  93. const ::std::string& msgname() const;
  94. void set_msgname(const ::std::string& value);
  95. void set_msgname(const char* value);
  96. void set_msgname(const char* value, size_t size);
  97. ::std::string* mutable_msgname();
  98. ::std::string* release_msgname();
  99. void set_allocated_msgname(::std::string* msgname);
  100. // required int64 index = 2;
  101. bool has_index() const;
  102. void clear_index();
  103. static const int kIndexFieldNumber = 2;
  104. ::google::protobuf::int64 index() const;
  105. void set_index(::google::protobuf::int64 value);
  106. // required int32 nlen = 3;
  107. bool has_nlen() const;
  108. void clear_nlen();
  109. static const int kNlenFieldNumber = 3;
  110. ::google::protobuf::int32 nlen() const;
  111. void set_nlen(::google::protobuf::int32 value);
  112. // optional bytes xdata = 4;
  113. bool has_xdata() const;
  114. void clear_xdata();
  115. static const int kXdataFieldNumber = 4;
  116. const ::std::string& xdata() const;
  117. void set_xdata(const ::std::string& value);
  118. void set_xdata(const char* value);
  119. void set_xdata(const void* value, size_t size);
  120. ::std::string* mutable_xdata();
  121. ::std::string* release_xdata();
  122. void set_allocated_xdata(::std::string* xdata);
  123. // @@protoc_insertion_point(class_scope:iv.EchoRequest)
  124. private:
  125. inline void set_has_msgname();
  126. inline void clear_has_msgname();
  127. inline void set_has_index();
  128. inline void clear_has_index();
  129. inline void set_has_nlen();
  130. inline void clear_has_nlen();
  131. inline void set_has_xdata();
  132. inline void clear_has_xdata();
  133. // helper for ByteSize()
  134. int RequiredFieldsByteSizeFallback() const;
  135. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  136. ::google::protobuf::uint32 _has_bits_[1];
  137. mutable int _cached_size_;
  138. ::google::protobuf::internal::ArenaStringPtr msgname_;
  139. ::google::protobuf::int64 index_;
  140. ::google::protobuf::internal::ArenaStringPtr xdata_;
  141. ::google::protobuf::int32 nlen_;
  142. friend void protobuf_AddDesc_echo_2eproto();
  143. friend void protobuf_AssignDesc_echo_2eproto();
  144. friend void protobuf_ShutdownFile_echo_2eproto();
  145. void InitAsDefaultInstance();
  146. static EchoRequest* default_instance_;
  147. };
  148. // -------------------------------------------------------------------
  149. class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoResponse) */ {
  150. public:
  151. EchoResponse();
  152. virtual ~EchoResponse();
  153. EchoResponse(const EchoResponse& from);
  154. inline EchoResponse& operator=(const EchoResponse& from) {
  155. CopyFrom(from);
  156. return *this;
  157. }
  158. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  159. return _internal_metadata_.unknown_fields();
  160. }
  161. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  162. return _internal_metadata_.mutable_unknown_fields();
  163. }
  164. static const ::google::protobuf::Descriptor* descriptor();
  165. static const EchoResponse& default_instance();
  166. void Swap(EchoResponse* other);
  167. // implements Message ----------------------------------------------
  168. inline EchoResponse* New() const { return New(NULL); }
  169. EchoResponse* New(::google::protobuf::Arena* arena) const;
  170. void CopyFrom(const ::google::protobuf::Message& from);
  171. void MergeFrom(const ::google::protobuf::Message& from);
  172. void CopyFrom(const EchoResponse& from);
  173. void MergeFrom(const EchoResponse& from);
  174. void Clear();
  175. bool IsInitialized() const;
  176. int ByteSize() const;
  177. bool MergePartialFromCodedStream(
  178. ::google::protobuf::io::CodedInputStream* input);
  179. void SerializeWithCachedSizes(
  180. ::google::protobuf::io::CodedOutputStream* output) const;
  181. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  182. bool deterministic, ::google::protobuf::uint8* output) const;
  183. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
  184. return InternalSerializeWithCachedSizesToArray(false, output);
  185. }
  186. int GetCachedSize() const { return _cached_size_; }
  187. private:
  188. void SharedCtor();
  189. void SharedDtor();
  190. void SetCachedSize(int size) const;
  191. void InternalSwap(EchoResponse* other);
  192. private:
  193. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  194. return _internal_metadata_.arena();
  195. }
  196. inline void* MaybeArenaPtr() const {
  197. return _internal_metadata_.raw_arena_ptr();
  198. }
  199. public:
  200. ::google::protobuf::Metadata GetMetadata() const;
  201. // nested types ----------------------------------------------------
  202. // accessors -------------------------------------------------------
  203. // required string msgname = 1;
  204. bool has_msgname() const;
  205. void clear_msgname();
  206. static const int kMsgnameFieldNumber = 1;
  207. const ::std::string& msgname() const;
  208. void set_msgname(const ::std::string& value);
  209. void set_msgname(const char* value);
  210. void set_msgname(const char* value, size_t size);
  211. ::std::string* mutable_msgname();
  212. ::std::string* release_msgname();
  213. void set_allocated_msgname(::std::string* msgname);
  214. // required int64 index = 2;
  215. bool has_index() const;
  216. void clear_index();
  217. static const int kIndexFieldNumber = 2;
  218. ::google::protobuf::int64 index() const;
  219. void set_index(::google::protobuf::int64 value);
  220. // @@protoc_insertion_point(class_scope:iv.EchoResponse)
  221. private:
  222. inline void set_has_msgname();
  223. inline void clear_has_msgname();
  224. inline void set_has_index();
  225. inline void clear_has_index();
  226. // helper for ByteSize()
  227. int RequiredFieldsByteSizeFallback() const;
  228. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  229. ::google::protobuf::uint32 _has_bits_[1];
  230. mutable int _cached_size_;
  231. ::google::protobuf::internal::ArenaStringPtr msgname_;
  232. ::google::protobuf::int64 index_;
  233. friend void protobuf_AddDesc_echo_2eproto();
  234. friend void protobuf_AssignDesc_echo_2eproto();
  235. friend void protobuf_ShutdownFile_echo_2eproto();
  236. void InitAsDefaultInstance();
  237. static EchoResponse* default_instance_;
  238. };
  239. // ===================================================================
  240. class EchoService_Stub;
  241. class EchoService : public ::google::protobuf::Service {
  242. protected:
  243. // This class should be treated as an abstract interface.
  244. inline EchoService() {};
  245. public:
  246. virtual ~EchoService();
  247. typedef EchoService_Stub Stub;
  248. static const ::google::protobuf::ServiceDescriptor* descriptor();
  249. virtual void Echo(::google::protobuf::RpcController* controller,
  250. const ::iv::EchoRequest* request,
  251. ::iv::EchoResponse* response,
  252. ::google::protobuf::Closure* done);
  253. // implements Service ----------------------------------------------
  254. const ::google::protobuf::ServiceDescriptor* GetDescriptor();
  255. void CallMethod(const ::google::protobuf::MethodDescriptor* method,
  256. ::google::protobuf::RpcController* controller,
  257. const ::google::protobuf::Message* request,
  258. ::google::protobuf::Message* response,
  259. ::google::protobuf::Closure* done);
  260. const ::google::protobuf::Message& GetRequestPrototype(
  261. const ::google::protobuf::MethodDescriptor* method) const;
  262. const ::google::protobuf::Message& GetResponsePrototype(
  263. const ::google::protobuf::MethodDescriptor* method) const;
  264. private:
  265. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService);
  266. };
  267. class EchoService_Stub : public EchoService {
  268. public:
  269. EchoService_Stub(::google::protobuf::RpcChannel* channel);
  270. EchoService_Stub(::google::protobuf::RpcChannel* channel,
  271. ::google::protobuf::Service::ChannelOwnership ownership);
  272. ~EchoService_Stub();
  273. inline ::google::protobuf::RpcChannel* channel() { return channel_; }
  274. // implements EchoService ------------------------------------------
  275. void Echo(::google::protobuf::RpcController* controller,
  276. const ::iv::EchoRequest* request,
  277. ::iv::EchoResponse* response,
  278. ::google::protobuf::Closure* done);
  279. private:
  280. ::google::protobuf::RpcChannel* channel_;
  281. bool owns_channel_;
  282. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub);
  283. };
  284. // ===================================================================
  285. // ===================================================================
  286. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  287. // EchoRequest
  288. // required string msgname = 1;
  289. inline bool EchoRequest::has_msgname() const {
  290. return (_has_bits_[0] & 0x00000001u) != 0;
  291. }
  292. inline void EchoRequest::set_has_msgname() {
  293. _has_bits_[0] |= 0x00000001u;
  294. }
  295. inline void EchoRequest::clear_has_msgname() {
  296. _has_bits_[0] &= ~0x00000001u;
  297. }
  298. inline void EchoRequest::clear_msgname() {
  299. msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  300. clear_has_msgname();
  301. }
  302. inline const ::std::string& EchoRequest::msgname() const {
  303. // @@protoc_insertion_point(field_get:iv.EchoRequest.msgname)
  304. return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  305. }
  306. inline void EchoRequest::set_msgname(const ::std::string& value) {
  307. set_has_msgname();
  308. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  309. // @@protoc_insertion_point(field_set:iv.EchoRequest.msgname)
  310. }
  311. inline void EchoRequest::set_msgname(const char* value) {
  312. set_has_msgname();
  313. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  314. // @@protoc_insertion_point(field_set_char:iv.EchoRequest.msgname)
  315. }
  316. inline void EchoRequest::set_msgname(const char* value, size_t size) {
  317. set_has_msgname();
  318. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  319. ::std::string(reinterpret_cast<const char*>(value), size));
  320. // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.msgname)
  321. }
  322. inline ::std::string* EchoRequest::mutable_msgname() {
  323. set_has_msgname();
  324. // @@protoc_insertion_point(field_mutable:iv.EchoRequest.msgname)
  325. return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  326. }
  327. inline ::std::string* EchoRequest::release_msgname() {
  328. // @@protoc_insertion_point(field_release:iv.EchoRequest.msgname)
  329. clear_has_msgname();
  330. return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  331. }
  332. inline void EchoRequest::set_allocated_msgname(::std::string* msgname) {
  333. if (msgname != NULL) {
  334. set_has_msgname();
  335. } else {
  336. clear_has_msgname();
  337. }
  338. msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname);
  339. // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.msgname)
  340. }
  341. // required int64 index = 2;
  342. inline bool EchoRequest::has_index() const {
  343. return (_has_bits_[0] & 0x00000002u) != 0;
  344. }
  345. inline void EchoRequest::set_has_index() {
  346. _has_bits_[0] |= 0x00000002u;
  347. }
  348. inline void EchoRequest::clear_has_index() {
  349. _has_bits_[0] &= ~0x00000002u;
  350. }
  351. inline void EchoRequest::clear_index() {
  352. index_ = GOOGLE_LONGLONG(0);
  353. clear_has_index();
  354. }
  355. inline ::google::protobuf::int64 EchoRequest::index() const {
  356. // @@protoc_insertion_point(field_get:iv.EchoRequest.index)
  357. return index_;
  358. }
  359. inline void EchoRequest::set_index(::google::protobuf::int64 value) {
  360. set_has_index();
  361. index_ = value;
  362. // @@protoc_insertion_point(field_set:iv.EchoRequest.index)
  363. }
  364. // required int32 nlen = 3;
  365. inline bool EchoRequest::has_nlen() const {
  366. return (_has_bits_[0] & 0x00000004u) != 0;
  367. }
  368. inline void EchoRequest::set_has_nlen() {
  369. _has_bits_[0] |= 0x00000004u;
  370. }
  371. inline void EchoRequest::clear_has_nlen() {
  372. _has_bits_[0] &= ~0x00000004u;
  373. }
  374. inline void EchoRequest::clear_nlen() {
  375. nlen_ = 0;
  376. clear_has_nlen();
  377. }
  378. inline ::google::protobuf::int32 EchoRequest::nlen() const {
  379. // @@protoc_insertion_point(field_get:iv.EchoRequest.nlen)
  380. return nlen_;
  381. }
  382. inline void EchoRequest::set_nlen(::google::protobuf::int32 value) {
  383. set_has_nlen();
  384. nlen_ = value;
  385. // @@protoc_insertion_point(field_set:iv.EchoRequest.nlen)
  386. }
  387. // optional bytes xdata = 4;
  388. inline bool EchoRequest::has_xdata() const {
  389. return (_has_bits_[0] & 0x00000008u) != 0;
  390. }
  391. inline void EchoRequest::set_has_xdata() {
  392. _has_bits_[0] |= 0x00000008u;
  393. }
  394. inline void EchoRequest::clear_has_xdata() {
  395. _has_bits_[0] &= ~0x00000008u;
  396. }
  397. inline void EchoRequest::clear_xdata() {
  398. xdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  399. clear_has_xdata();
  400. }
  401. inline const ::std::string& EchoRequest::xdata() const {
  402. // @@protoc_insertion_point(field_get:iv.EchoRequest.xdata)
  403. return xdata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  404. }
  405. inline void EchoRequest::set_xdata(const ::std::string& value) {
  406. set_has_xdata();
  407. xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  408. // @@protoc_insertion_point(field_set:iv.EchoRequest.xdata)
  409. }
  410. inline void EchoRequest::set_xdata(const char* value) {
  411. set_has_xdata();
  412. xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  413. // @@protoc_insertion_point(field_set_char:iv.EchoRequest.xdata)
  414. }
  415. inline void EchoRequest::set_xdata(const void* value, size_t size) {
  416. set_has_xdata();
  417. xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  418. ::std::string(reinterpret_cast<const char*>(value), size));
  419. // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.xdata)
  420. }
  421. inline ::std::string* EchoRequest::mutable_xdata() {
  422. set_has_xdata();
  423. // @@protoc_insertion_point(field_mutable:iv.EchoRequest.xdata)
  424. return xdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  425. }
  426. inline ::std::string* EchoRequest::release_xdata() {
  427. // @@protoc_insertion_point(field_release:iv.EchoRequest.xdata)
  428. clear_has_xdata();
  429. return xdata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  430. }
  431. inline void EchoRequest::set_allocated_xdata(::std::string* xdata) {
  432. if (xdata != NULL) {
  433. set_has_xdata();
  434. } else {
  435. clear_has_xdata();
  436. }
  437. xdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xdata);
  438. // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.xdata)
  439. }
  440. // -------------------------------------------------------------------
  441. // EchoResponse
  442. // required string msgname = 1;
  443. inline bool EchoResponse::has_msgname() const {
  444. return (_has_bits_[0] & 0x00000001u) != 0;
  445. }
  446. inline void EchoResponse::set_has_msgname() {
  447. _has_bits_[0] |= 0x00000001u;
  448. }
  449. inline void EchoResponse::clear_has_msgname() {
  450. _has_bits_[0] &= ~0x00000001u;
  451. }
  452. inline void EchoResponse::clear_msgname() {
  453. msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  454. clear_has_msgname();
  455. }
  456. inline const ::std::string& EchoResponse::msgname() const {
  457. // @@protoc_insertion_point(field_get:iv.EchoResponse.msgname)
  458. return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  459. }
  460. inline void EchoResponse::set_msgname(const ::std::string& value) {
  461. set_has_msgname();
  462. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  463. // @@protoc_insertion_point(field_set:iv.EchoResponse.msgname)
  464. }
  465. inline void EchoResponse::set_msgname(const char* value) {
  466. set_has_msgname();
  467. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  468. // @@protoc_insertion_point(field_set_char:iv.EchoResponse.msgname)
  469. }
  470. inline void EchoResponse::set_msgname(const char* value, size_t size) {
  471. set_has_msgname();
  472. msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  473. ::std::string(reinterpret_cast<const char*>(value), size));
  474. // @@protoc_insertion_point(field_set_pointer:iv.EchoResponse.msgname)
  475. }
  476. inline ::std::string* EchoResponse::mutable_msgname() {
  477. set_has_msgname();
  478. // @@protoc_insertion_point(field_mutable:iv.EchoResponse.msgname)
  479. return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  480. }
  481. inline ::std::string* EchoResponse::release_msgname() {
  482. // @@protoc_insertion_point(field_release:iv.EchoResponse.msgname)
  483. clear_has_msgname();
  484. return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  485. }
  486. inline void EchoResponse::set_allocated_msgname(::std::string* msgname) {
  487. if (msgname != NULL) {
  488. set_has_msgname();
  489. } else {
  490. clear_has_msgname();
  491. }
  492. msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname);
  493. // @@protoc_insertion_point(field_set_allocated:iv.EchoResponse.msgname)
  494. }
  495. // required int64 index = 2;
  496. inline bool EchoResponse::has_index() const {
  497. return (_has_bits_[0] & 0x00000002u) != 0;
  498. }
  499. inline void EchoResponse::set_has_index() {
  500. _has_bits_[0] |= 0x00000002u;
  501. }
  502. inline void EchoResponse::clear_has_index() {
  503. _has_bits_[0] &= ~0x00000002u;
  504. }
  505. inline void EchoResponse::clear_index() {
  506. index_ = GOOGLE_LONGLONG(0);
  507. clear_has_index();
  508. }
  509. inline ::google::protobuf::int64 EchoResponse::index() const {
  510. // @@protoc_insertion_point(field_get:iv.EchoResponse.index)
  511. return index_;
  512. }
  513. inline void EchoResponse::set_index(::google::protobuf::int64 value) {
  514. set_has_index();
  515. index_ = value;
  516. // @@protoc_insertion_point(field_set:iv.EchoResponse.index)
  517. }
  518. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  519. // -------------------------------------------------------------------
  520. // @@protoc_insertion_point(namespace_scope)
  521. } // namespace iv
  522. // @@protoc_insertion_point(global_scope)
  523. #endif // PROTOBUF_echo_2eproto__INCLUDED