/Cpp/Source/ProtoBufRemote/RpcMessage.pb.h

https://code.google.com/p/protobuf-remote/ · C Header · 1050 lines · 832 code · 139 blank · 79 comment · 69 complexity · ee9ae8c3b21a481b5acf1a0c7662333f MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: RpcMessage.proto
  3. #ifndef PROTOBUF_RpcMessage_2eproto__INCLUDED
  4. #define PROTOBUF_RpcMessage_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2003000
  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 2003000 < 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/generated_message_util.h>
  18. #include <google/protobuf/repeated_field.h>
  19. #include <google/protobuf/extension_set.h>
  20. #include <google/protobuf/generated_message_reflection.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace ProtoBufRemote {
  23. // Internal implementation detail -- do not call these.
  24. void protobuf_AddDesc_RpcMessage_2eproto();
  25. void protobuf_AssignDesc_RpcMessage_2eproto();
  26. void protobuf_ShutdownFile_RpcMessage_2eproto();
  27. class RpcMessage;
  28. class RpcMessage_Call;
  29. class RpcMessage_Result;
  30. class RpcMessage_Parameter;
  31. // ===================================================================
  32. class RpcMessage_Call : public ::google::protobuf::Message {
  33. public:
  34. RpcMessage_Call();
  35. virtual ~RpcMessage_Call();
  36. RpcMessage_Call(const RpcMessage_Call& from);
  37. inline RpcMessage_Call& operator=(const RpcMessage_Call& from) {
  38. CopyFrom(from);
  39. return *this;
  40. }
  41. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  42. return _unknown_fields_;
  43. }
  44. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  45. return &_unknown_fields_;
  46. }
  47. static const ::google::protobuf::Descriptor* descriptor();
  48. static const RpcMessage_Call& default_instance();
  49. void Swap(RpcMessage_Call* other);
  50. // implements Message ----------------------------------------------
  51. RpcMessage_Call* New() const;
  52. void CopyFrom(const ::google::protobuf::Message& from);
  53. void MergeFrom(const ::google::protobuf::Message& from);
  54. void CopyFrom(const RpcMessage_Call& from);
  55. void MergeFrom(const RpcMessage_Call& 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. public:
  70. ::google::protobuf::Metadata GetMetadata() const;
  71. // nested types ----------------------------------------------------
  72. // accessors -------------------------------------------------------
  73. // required string service = 1;
  74. inline bool has_service() const;
  75. inline void clear_service();
  76. static const int kServiceFieldNumber = 1;
  77. inline const ::std::string& service() const;
  78. inline void set_service(const ::std::string& value);
  79. inline void set_service(const char* value);
  80. inline void set_service(const char* value, size_t size);
  81. inline ::std::string* mutable_service();
  82. // required string method = 2;
  83. inline bool has_method() const;
  84. inline void clear_method();
  85. static const int kMethodFieldNumber = 2;
  86. inline const ::std::string& method() const;
  87. inline void set_method(const ::std::string& value);
  88. inline void set_method(const char* value);
  89. inline void set_method(const char* value, size_t size);
  90. inline ::std::string* mutable_method();
  91. // repeated .ProtoBufRemote.RpcMessage.Parameter parameters = 3;
  92. inline int parameters_size() const;
  93. inline void clear_parameters();
  94. static const int kParametersFieldNumber = 3;
  95. inline const ::ProtoBufRemote::RpcMessage_Parameter& parameters(int index) const;
  96. inline ::ProtoBufRemote::RpcMessage_Parameter* mutable_parameters(int index);
  97. inline ::ProtoBufRemote::RpcMessage_Parameter* add_parameters();
  98. inline const ::google::protobuf::RepeatedPtrField< ::ProtoBufRemote::RpcMessage_Parameter >&
  99. parameters() const;
  100. inline ::google::protobuf::RepeatedPtrField< ::ProtoBufRemote::RpcMessage_Parameter >*
  101. mutable_parameters();
  102. // required bool expects_result = 4;
  103. inline bool has_expects_result() const;
  104. inline void clear_expects_result();
  105. static const int kExpectsResultFieldNumber = 4;
  106. inline bool expects_result() const;
  107. inline void set_expects_result(bool value);
  108. // @@protoc_insertion_point(class_scope:ProtoBufRemote.RpcMessage.Call)
  109. private:
  110. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  111. mutable int _cached_size_;
  112. ::std::string* service_;
  113. static const ::std::string _default_service_;
  114. ::std::string* method_;
  115. static const ::std::string _default_method_;
  116. ::google::protobuf::RepeatedPtrField< ::ProtoBufRemote::RpcMessage_Parameter > parameters_;
  117. bool expects_result_;
  118. friend void protobuf_AddDesc_RpcMessage_2eproto();
  119. friend void protobuf_AssignDesc_RpcMessage_2eproto();
  120. friend void protobuf_ShutdownFile_RpcMessage_2eproto();
  121. ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  122. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  123. inline bool _has_bit(int index) const {
  124. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  125. }
  126. inline void _set_bit(int index) {
  127. _has_bits_[index / 32] |= (1u << (index % 32));
  128. }
  129. inline void _clear_bit(int index) {
  130. _has_bits_[index / 32] &= ~(1u << (index % 32));
  131. }
  132. void InitAsDefaultInstance();
  133. static RpcMessage_Call* default_instance_;
  134. };
  135. // -------------------------------------------------------------------
  136. class RpcMessage_Result : public ::google::protobuf::Message {
  137. public:
  138. RpcMessage_Result();
  139. virtual ~RpcMessage_Result();
  140. RpcMessage_Result(const RpcMessage_Result& from);
  141. inline RpcMessage_Result& operator=(const RpcMessage_Result& from) {
  142. CopyFrom(from);
  143. return *this;
  144. }
  145. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  146. return _unknown_fields_;
  147. }
  148. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  149. return &_unknown_fields_;
  150. }
  151. static const ::google::protobuf::Descriptor* descriptor();
  152. static const RpcMessage_Result& default_instance();
  153. void Swap(RpcMessage_Result* other);
  154. // implements Message ----------------------------------------------
  155. RpcMessage_Result* New() const;
  156. void CopyFrom(const ::google::protobuf::Message& from);
  157. void MergeFrom(const ::google::protobuf::Message& from);
  158. void CopyFrom(const RpcMessage_Result& from);
  159. void MergeFrom(const RpcMessage_Result& from);
  160. void Clear();
  161. bool IsInitialized() const;
  162. int ByteSize() const;
  163. bool MergePartialFromCodedStream(
  164. ::google::protobuf::io::CodedInputStream* input);
  165. void SerializeWithCachedSizes(
  166. ::google::protobuf::io::CodedOutputStream* output) const;
  167. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  168. int GetCachedSize() const { return _cached_size_; }
  169. private:
  170. void SharedCtor();
  171. void SharedDtor();
  172. void SetCachedSize(int size) const;
  173. public:
  174. ::google::protobuf::Metadata GetMetadata() const;
  175. // nested types ----------------------------------------------------
  176. // accessors -------------------------------------------------------
  177. // optional bool is_failed = 1;
  178. inline bool has_is_failed() const;
  179. inline void clear_is_failed();
  180. static const int kIsFailedFieldNumber = 1;
  181. inline bool is_failed() const;
  182. inline void set_is_failed(bool value);
  183. // optional string error_message = 2;
  184. inline bool has_error_message() const;
  185. inline void clear_error_message();
  186. static const int kErrorMessageFieldNumber = 2;
  187. inline const ::std::string& error_message() const;
  188. inline void set_error_message(const ::std::string& value);
  189. inline void set_error_message(const char* value);
  190. inline void set_error_message(const char* value, size_t size);
  191. inline ::std::string* mutable_error_message();
  192. // optional .ProtoBufRemote.RpcMessage.Parameter call_result = 3;
  193. inline bool has_call_result() const;
  194. inline void clear_call_result();
  195. static const int kCallResultFieldNumber = 3;
  196. inline const ::ProtoBufRemote::RpcMessage_Parameter& call_result() const;
  197. inline ::ProtoBufRemote::RpcMessage_Parameter* mutable_call_result();
  198. // @@protoc_insertion_point(class_scope:ProtoBufRemote.RpcMessage.Result)
  199. private:
  200. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  201. mutable int _cached_size_;
  202. bool is_failed_;
  203. ::std::string* error_message_;
  204. static const ::std::string _default_error_message_;
  205. ::ProtoBufRemote::RpcMessage_Parameter* call_result_;
  206. friend void protobuf_AddDesc_RpcMessage_2eproto();
  207. friend void protobuf_AssignDesc_RpcMessage_2eproto();
  208. friend void protobuf_ShutdownFile_RpcMessage_2eproto();
  209. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  210. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  211. inline bool _has_bit(int index) const {
  212. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  213. }
  214. inline void _set_bit(int index) {
  215. _has_bits_[index / 32] |= (1u << (index % 32));
  216. }
  217. inline void _clear_bit(int index) {
  218. _has_bits_[index / 32] &= ~(1u << (index % 32));
  219. }
  220. void InitAsDefaultInstance();
  221. static RpcMessage_Result* default_instance_;
  222. };
  223. // -------------------------------------------------------------------
  224. class RpcMessage_Parameter : public ::google::protobuf::Message {
  225. public:
  226. RpcMessage_Parameter();
  227. virtual ~RpcMessage_Parameter();
  228. RpcMessage_Parameter(const RpcMessage_Parameter& from);
  229. inline RpcMessage_Parameter& operator=(const RpcMessage_Parameter& from) {
  230. CopyFrom(from);
  231. return *this;
  232. }
  233. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  234. return _unknown_fields_;
  235. }
  236. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  237. return &_unknown_fields_;
  238. }
  239. static const ::google::protobuf::Descriptor* descriptor();
  240. static const RpcMessage_Parameter& default_instance();
  241. void Swap(RpcMessage_Parameter* other);
  242. // implements Message ----------------------------------------------
  243. RpcMessage_Parameter* New() const;
  244. void CopyFrom(const ::google::protobuf::Message& from);
  245. void MergeFrom(const ::google::protobuf::Message& from);
  246. void CopyFrom(const RpcMessage_Parameter& from);
  247. void MergeFrom(const RpcMessage_Parameter& from);
  248. void Clear();
  249. bool IsInitialized() const;
  250. int ByteSize() const;
  251. bool MergePartialFromCodedStream(
  252. ::google::protobuf::io::CodedInputStream* input);
  253. void SerializeWithCachedSizes(
  254. ::google::protobuf::io::CodedOutputStream* output) const;
  255. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  256. int GetCachedSize() const { return _cached_size_; }
  257. private:
  258. void SharedCtor();
  259. void SharedDtor();
  260. void SetCachedSize(int size) const;
  261. public:
  262. ::google::protobuf::Metadata GetMetadata() const;
  263. // nested types ----------------------------------------------------
  264. // accessors -------------------------------------------------------
  265. // optional bytes proto_param = 1;
  266. inline bool has_proto_param() const;
  267. inline void clear_proto_param();
  268. static const int kProtoParamFieldNumber = 1;
  269. inline const ::std::string& proto_param() const;
  270. inline void set_proto_param(const ::std::string& value);
  271. inline void set_proto_param(const char* value);
  272. inline void set_proto_param(const void* value, size_t size);
  273. inline ::std::string* mutable_proto_param();
  274. // optional string string_param = 2;
  275. inline bool has_string_param() const;
  276. inline void clear_string_param();
  277. static const int kStringParamFieldNumber = 2;
  278. inline const ::std::string& string_param() const;
  279. inline void set_string_param(const ::std::string& value);
  280. inline void set_string_param(const char* value);
  281. inline void set_string_param(const char* value, size_t size);
  282. inline ::std::string* mutable_string_param();
  283. // optional sint32 int_param = 3;
  284. inline bool has_int_param() const;
  285. inline void clear_int_param();
  286. static const int kIntParamFieldNumber = 3;
  287. inline ::google::protobuf::int32 int_param() const;
  288. inline void set_int_param(::google::protobuf::int32 value);
  289. // optional uint32 uint_param = 4;
  290. inline bool has_uint_param() const;
  291. inline void clear_uint_param();
  292. static const int kUintParamFieldNumber = 4;
  293. inline ::google::protobuf::uint32 uint_param() const;
  294. inline void set_uint_param(::google::protobuf::uint32 value);
  295. // optional sint64 int64_param = 5;
  296. inline bool has_int64_param() const;
  297. inline void clear_int64_param();
  298. static const int kInt64ParamFieldNumber = 5;
  299. inline ::google::protobuf::int64 int64_param() const;
  300. inline void set_int64_param(::google::protobuf::int64 value);
  301. // optional uint64 uint64_param = 6;
  302. inline bool has_uint64_param() const;
  303. inline void clear_uint64_param();
  304. static const int kUint64ParamFieldNumber = 6;
  305. inline ::google::protobuf::uint64 uint64_param() const;
  306. inline void set_uint64_param(::google::protobuf::uint64 value);
  307. // optional bool bool_param = 7;
  308. inline bool has_bool_param() const;
  309. inline void clear_bool_param();
  310. static const int kBoolParamFieldNumber = 7;
  311. inline bool bool_param() const;
  312. inline void set_bool_param(bool value);
  313. // optional float float_param = 8;
  314. inline bool has_float_param() const;
  315. inline void clear_float_param();
  316. static const int kFloatParamFieldNumber = 8;
  317. inline float float_param() const;
  318. inline void set_float_param(float value);
  319. // optional double double_param = 9;
  320. inline bool has_double_param() const;
  321. inline void clear_double_param();
  322. static const int kDoubleParamFieldNumber = 9;
  323. inline double double_param() const;
  324. inline void set_double_param(double value);
  325. // optional bool is_null = 10;
  326. inline bool has_is_null() const;
  327. inline void clear_is_null();
  328. static const int kIsNullFieldNumber = 10;
  329. inline bool is_null() const;
  330. inline void set_is_null(bool value);
  331. // @@protoc_insertion_point(class_scope:ProtoBufRemote.RpcMessage.Parameter)
  332. private:
  333. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  334. mutable int _cached_size_;
  335. ::std::string* proto_param_;
  336. static const ::std::string _default_proto_param_;
  337. ::std::string* string_param_;
  338. static const ::std::string _default_string_param_;
  339. ::google::protobuf::int32 int_param_;
  340. ::google::protobuf::uint32 uint_param_;
  341. ::google::protobuf::int64 int64_param_;
  342. ::google::protobuf::uint64 uint64_param_;
  343. bool bool_param_;
  344. float float_param_;
  345. double double_param_;
  346. bool is_null_;
  347. friend void protobuf_AddDesc_RpcMessage_2eproto();
  348. friend void protobuf_AssignDesc_RpcMessage_2eproto();
  349. friend void protobuf_ShutdownFile_RpcMessage_2eproto();
  350. ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32];
  351. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  352. inline bool _has_bit(int index) const {
  353. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  354. }
  355. inline void _set_bit(int index) {
  356. _has_bits_[index / 32] |= (1u << (index % 32));
  357. }
  358. inline void _clear_bit(int index) {
  359. _has_bits_[index / 32] &= ~(1u << (index % 32));
  360. }
  361. void InitAsDefaultInstance();
  362. static RpcMessage_Parameter* default_instance_;
  363. };
  364. // -------------------------------------------------------------------
  365. class RpcMessage : public ::google::protobuf::Message {
  366. public:
  367. RpcMessage();
  368. virtual ~RpcMessage();
  369. RpcMessage(const RpcMessage& from);
  370. inline RpcMessage& operator=(const RpcMessage& from) {
  371. CopyFrom(from);
  372. return *this;
  373. }
  374. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  375. return _unknown_fields_;
  376. }
  377. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  378. return &_unknown_fields_;
  379. }
  380. static const ::google::protobuf::Descriptor* descriptor();
  381. static const RpcMessage& default_instance();
  382. void Swap(RpcMessage* other);
  383. // implements Message ----------------------------------------------
  384. RpcMessage* New() const;
  385. void CopyFrom(const ::google::protobuf::Message& from);
  386. void MergeFrom(const ::google::protobuf::Message& from);
  387. void CopyFrom(const RpcMessage& from);
  388. void MergeFrom(const RpcMessage& from);
  389. void Clear();
  390. bool IsInitialized() const;
  391. int ByteSize() const;
  392. bool MergePartialFromCodedStream(
  393. ::google::protobuf::io::CodedInputStream* input);
  394. void SerializeWithCachedSizes(
  395. ::google::protobuf::io::CodedOutputStream* output) const;
  396. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  397. int GetCachedSize() const { return _cached_size_; }
  398. private:
  399. void SharedCtor();
  400. void SharedDtor();
  401. void SetCachedSize(int size) const;
  402. public:
  403. ::google::protobuf::Metadata GetMetadata() const;
  404. // nested types ----------------------------------------------------
  405. typedef RpcMessage_Call Call;
  406. typedef RpcMessage_Result Result;
  407. typedef RpcMessage_Parameter Parameter;
  408. // accessors -------------------------------------------------------
  409. // required int32 id = 1;
  410. inline bool has_id() const;
  411. inline void clear_id();
  412. static const int kIdFieldNumber = 1;
  413. inline ::google::protobuf::int32 id() const;
  414. inline void set_id(::google::protobuf::int32 value);
  415. // optional .ProtoBufRemote.RpcMessage.Call call_message = 2;
  416. inline bool has_call_message() const;
  417. inline void clear_call_message();
  418. static const int kCallMessageFieldNumber = 2;
  419. inline const ::ProtoBufRemote::RpcMessage_Call& call_message() const;
  420. inline ::ProtoBufRemote::RpcMessage_Call* mutable_call_message();
  421. // optional .ProtoBufRemote.RpcMessage.Result result_message = 3;
  422. inline bool has_result_message() const;
  423. inline void clear_result_message();
  424. static const int kResultMessageFieldNumber = 3;
  425. inline const ::ProtoBufRemote::RpcMessage_Result& result_message() const;
  426. inline ::ProtoBufRemote::RpcMessage_Result* mutable_result_message();
  427. // @@protoc_insertion_point(class_scope:ProtoBufRemote.RpcMessage)
  428. private:
  429. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  430. mutable int _cached_size_;
  431. ::google::protobuf::int32 id_;
  432. ::ProtoBufRemote::RpcMessage_Call* call_message_;
  433. ::ProtoBufRemote::RpcMessage_Result* result_message_;
  434. friend void protobuf_AddDesc_RpcMessage_2eproto();
  435. friend void protobuf_AssignDesc_RpcMessage_2eproto();
  436. friend void protobuf_ShutdownFile_RpcMessage_2eproto();
  437. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  438. // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
  439. inline bool _has_bit(int index) const {
  440. return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
  441. }
  442. inline void _set_bit(int index) {
  443. _has_bits_[index / 32] |= (1u << (index % 32));
  444. }
  445. inline void _clear_bit(int index) {
  446. _has_bits_[index / 32] &= ~(1u << (index % 32));
  447. }
  448. void InitAsDefaultInstance();
  449. static RpcMessage* default_instance_;
  450. };
  451. // ===================================================================
  452. // ===================================================================
  453. // RpcMessage_Call
  454. // required string service = 1;
  455. inline bool RpcMessage_Call::has_service() const {
  456. return _has_bit(0);
  457. }
  458. inline void RpcMessage_Call::clear_service() {
  459. if (service_ != &_default_service_) {
  460. service_->clear();
  461. }
  462. _clear_bit(0);
  463. }
  464. inline const ::std::string& RpcMessage_Call::service() const {
  465. return *service_;
  466. }
  467. inline void RpcMessage_Call::set_service(const ::std::string& value) {
  468. _set_bit(0);
  469. if (service_ == &_default_service_) {
  470. service_ = new ::std::string;
  471. }
  472. service_->assign(value);
  473. }
  474. inline void RpcMessage_Call::set_service(const char* value) {
  475. _set_bit(0);
  476. if (service_ == &_default_service_) {
  477. service_ = new ::std::string;
  478. }
  479. service_->assign(value);
  480. }
  481. inline void RpcMessage_Call::set_service(const char* value, size_t size) {
  482. _set_bit(0);
  483. if (service_ == &_default_service_) {
  484. service_ = new ::std::string;
  485. }
  486. service_->assign(reinterpret_cast<const char*>(value), size);
  487. }
  488. inline ::std::string* RpcMessage_Call::mutable_service() {
  489. _set_bit(0);
  490. if (service_ == &_default_service_) {
  491. service_ = new ::std::string;
  492. }
  493. return service_;
  494. }
  495. // required string method = 2;
  496. inline bool RpcMessage_Call::has_method() const {
  497. return _has_bit(1);
  498. }
  499. inline void RpcMessage_Call::clear_method() {
  500. if (method_ != &_default_method_) {
  501. method_->clear();
  502. }
  503. _clear_bit(1);
  504. }
  505. inline const ::std::string& RpcMessage_Call::method() const {
  506. return *method_;
  507. }
  508. inline void RpcMessage_Call::set_method(const ::std::string& value) {
  509. _set_bit(1);
  510. if (method_ == &_default_method_) {
  511. method_ = new ::std::string;
  512. }
  513. method_->assign(value);
  514. }
  515. inline void RpcMessage_Call::set_method(const char* value) {
  516. _set_bit(1);
  517. if (method_ == &_default_method_) {
  518. method_ = new ::std::string;
  519. }
  520. method_->assign(value);
  521. }
  522. inline void RpcMessage_Call::set_method(const char* value, size_t size) {
  523. _set_bit(1);
  524. if (method_ == &_default_method_) {
  525. method_ = new ::std::string;
  526. }
  527. method_->assign(reinterpret_cast<const char*>(value), size);
  528. }
  529. inline ::std::string* RpcMessage_Call::mutable_method() {
  530. _set_bit(1);
  531. if (method_ == &_default_method_) {
  532. method_ = new ::std::string;
  533. }
  534. return method_;
  535. }
  536. // repeated .ProtoBufRemote.RpcMessage.Parameter parameters = 3;
  537. inline int RpcMessage_Call::parameters_size() const {
  538. return parameters_.size();
  539. }
  540. inline void RpcMessage_Call::clear_parameters() {
  541. parameters_.Clear();
  542. }
  543. inline const ::ProtoBufRemote::RpcMessage_Parameter& RpcMessage_Call::parameters(int index) const {
  544. return parameters_.Get(index);
  545. }
  546. inline ::ProtoBufRemote::RpcMessage_Parameter* RpcMessage_Call::mutable_parameters(int index) {
  547. return parameters_.Mutable(index);
  548. }
  549. inline ::ProtoBufRemote::RpcMessage_Parameter* RpcMessage_Call::add_parameters() {
  550. return parameters_.Add();
  551. }
  552. inline const ::google::protobuf::RepeatedPtrField< ::ProtoBufRemote::RpcMessage_Parameter >&
  553. RpcMessage_Call::parameters() const {
  554. return parameters_;
  555. }
  556. inline ::google::protobuf::RepeatedPtrField< ::ProtoBufRemote::RpcMessage_Parameter >*
  557. RpcMessage_Call::mutable_parameters() {
  558. return &parameters_;
  559. }
  560. // required bool expects_result = 4;
  561. inline bool RpcMessage_Call::has_expects_result() const {
  562. return _has_bit(3);
  563. }
  564. inline void RpcMessage_Call::clear_expects_result() {
  565. expects_result_ = false;
  566. _clear_bit(3);
  567. }
  568. inline bool RpcMessage_Call::expects_result() const {
  569. return expects_result_;
  570. }
  571. inline void RpcMessage_Call::set_expects_result(bool value) {
  572. _set_bit(3);
  573. expects_result_ = value;
  574. }
  575. // -------------------------------------------------------------------
  576. // RpcMessage_Result
  577. // optional bool is_failed = 1;
  578. inline bool RpcMessage_Result::has_is_failed() const {
  579. return _has_bit(0);
  580. }
  581. inline void RpcMessage_Result::clear_is_failed() {
  582. is_failed_ = false;
  583. _clear_bit(0);
  584. }
  585. inline bool RpcMessage_Result::is_failed() const {
  586. return is_failed_;
  587. }
  588. inline void RpcMessage_Result::set_is_failed(bool value) {
  589. _set_bit(0);
  590. is_failed_ = value;
  591. }
  592. // optional string error_message = 2;
  593. inline bool RpcMessage_Result::has_error_message() const {
  594. return _has_bit(1);
  595. }
  596. inline void RpcMessage_Result::clear_error_message() {
  597. if (error_message_ != &_default_error_message_) {
  598. error_message_->clear();
  599. }
  600. _clear_bit(1);
  601. }
  602. inline const ::std::string& RpcMessage_Result::error_message() const {
  603. return *error_message_;
  604. }
  605. inline void RpcMessage_Result::set_error_message(const ::std::string& value) {
  606. _set_bit(1);
  607. if (error_message_ == &_default_error_message_) {
  608. error_message_ = new ::std::string;
  609. }
  610. error_message_->assign(value);
  611. }
  612. inline void RpcMessage_Result::set_error_message(const char* value) {
  613. _set_bit(1);
  614. if (error_message_ == &_default_error_message_) {
  615. error_message_ = new ::std::string;
  616. }
  617. error_message_->assign(value);
  618. }
  619. inline void RpcMessage_Result::set_error_message(const char* value, size_t size) {
  620. _set_bit(1);
  621. if (error_message_ == &_default_error_message_) {
  622. error_message_ = new ::std::string;
  623. }
  624. error_message_->assign(reinterpret_cast<const char*>(value), size);
  625. }
  626. inline ::std::string* RpcMessage_Result::mutable_error_message() {
  627. _set_bit(1);
  628. if (error_message_ == &_default_error_message_) {
  629. error_message_ = new ::std::string;
  630. }
  631. return error_message_;
  632. }
  633. // optional .ProtoBufRemote.RpcMessage.Parameter call_result = 3;
  634. inline bool RpcMessage_Result::has_call_result() const {
  635. return _has_bit(2);
  636. }
  637. inline void RpcMessage_Result::clear_call_result() {
  638. if (call_result_ != NULL) call_result_->::ProtoBufRemote::RpcMessage_Parameter::Clear();
  639. _clear_bit(2);
  640. }
  641. inline const ::ProtoBufRemote::RpcMessage_Parameter& RpcMessage_Result::call_result() const {
  642. return call_result_ != NULL ? *call_result_ : *default_instance_->call_result_;
  643. }
  644. inline ::ProtoBufRemote::RpcMessage_Parameter* RpcMessage_Result::mutable_call_result() {
  645. _set_bit(2);
  646. if (call_result_ == NULL) call_result_ = new ::ProtoBufRemote::RpcMessage_Parameter;
  647. return call_result_;
  648. }
  649. // -------------------------------------------------------------------
  650. // RpcMessage_Parameter
  651. // optional bytes proto_param = 1;
  652. inline bool RpcMessage_Parameter::has_proto_param() const {
  653. return _has_bit(0);
  654. }
  655. inline void RpcMessage_Parameter::clear_proto_param() {
  656. if (proto_param_ != &_default_proto_param_) {
  657. proto_param_->clear();
  658. }
  659. _clear_bit(0);
  660. }
  661. inline const ::std::string& RpcMessage_Parameter::proto_param() const {
  662. return *proto_param_;
  663. }
  664. inline void RpcMessage_Parameter::set_proto_param(const ::std::string& value) {
  665. _set_bit(0);
  666. if (proto_param_ == &_default_proto_param_) {
  667. proto_param_ = new ::std::string;
  668. }
  669. proto_param_->assign(value);
  670. }
  671. inline void RpcMessage_Parameter::set_proto_param(const char* value) {
  672. _set_bit(0);
  673. if (proto_param_ == &_default_proto_param_) {
  674. proto_param_ = new ::std::string;
  675. }
  676. proto_param_->assign(value);
  677. }
  678. inline void RpcMessage_Parameter::set_proto_param(const void* value, size_t size) {
  679. _set_bit(0);
  680. if (proto_param_ == &_default_proto_param_) {
  681. proto_param_ = new ::std::string;
  682. }
  683. proto_param_->assign(reinterpret_cast<const char*>(value), size);
  684. }
  685. inline ::std::string* RpcMessage_Parameter::mutable_proto_param() {
  686. _set_bit(0);
  687. if (proto_param_ == &_default_proto_param_) {
  688. proto_param_ = new ::std::string;
  689. }
  690. return proto_param_;
  691. }
  692. // optional string string_param = 2;
  693. inline bool RpcMessage_Parameter::has_string_param() const {
  694. return _has_bit(1);
  695. }
  696. inline void RpcMessage_Parameter::clear_string_param() {
  697. if (string_param_ != &_default_string_param_) {
  698. string_param_->clear();
  699. }
  700. _clear_bit(1);
  701. }
  702. inline const ::std::string& RpcMessage_Parameter::string_param() const {
  703. return *string_param_;
  704. }
  705. inline void RpcMessage_Parameter::set_string_param(const ::std::string& value) {
  706. _set_bit(1);
  707. if (string_param_ == &_default_string_param_) {
  708. string_param_ = new ::std::string;
  709. }
  710. string_param_->assign(value);
  711. }
  712. inline void RpcMessage_Parameter::set_string_param(const char* value) {
  713. _set_bit(1);
  714. if (string_param_ == &_default_string_param_) {
  715. string_param_ = new ::std::string;
  716. }
  717. string_param_->assign(value);
  718. }
  719. inline void RpcMessage_Parameter::set_string_param(const char* value, size_t size) {
  720. _set_bit(1);
  721. if (string_param_ == &_default_string_param_) {
  722. string_param_ = new ::std::string;
  723. }
  724. string_param_->assign(reinterpret_cast<const char*>(value), size);
  725. }
  726. inline ::std::string* RpcMessage_Parameter::mutable_string_param() {
  727. _set_bit(1);
  728. if (string_param_ == &_default_string_param_) {
  729. string_param_ = new ::std::string;
  730. }
  731. return string_param_;
  732. }
  733. // optional sint32 int_param = 3;
  734. inline bool RpcMessage_Parameter::has_int_param() const {
  735. return _has_bit(2);
  736. }
  737. inline void RpcMessage_Parameter::clear_int_param() {
  738. int_param_ = 0;
  739. _clear_bit(2);
  740. }
  741. inline ::google::protobuf::int32 RpcMessage_Parameter::int_param() const {
  742. return int_param_;
  743. }
  744. inline void RpcMessage_Parameter::set_int_param(::google::protobuf::int32 value) {
  745. _set_bit(2);
  746. int_param_ = value;
  747. }
  748. // optional uint32 uint_param = 4;
  749. inline bool RpcMessage_Parameter::has_uint_param() const {
  750. return _has_bit(3);
  751. }
  752. inline void RpcMessage_Parameter::clear_uint_param() {
  753. uint_param_ = 0u;
  754. _clear_bit(3);
  755. }
  756. inline ::google::protobuf::uint32 RpcMessage_Parameter::uint_param() const {
  757. return uint_param_;
  758. }
  759. inline void RpcMessage_Parameter::set_uint_param(::google::protobuf::uint32 value) {
  760. _set_bit(3);
  761. uint_param_ = value;
  762. }
  763. // optional sint64 int64_param = 5;
  764. inline bool RpcMessage_Parameter::has_int64_param() const {
  765. return _has_bit(4);
  766. }
  767. inline void RpcMessage_Parameter::clear_int64_param() {
  768. int64_param_ = GOOGLE_LONGLONG(0);
  769. _clear_bit(4);
  770. }
  771. inline ::google::protobuf::int64 RpcMessage_Parameter::int64_param() const {
  772. return int64_param_;
  773. }
  774. inline void RpcMessage_Parameter::set_int64_param(::google::protobuf::int64 value) {
  775. _set_bit(4);
  776. int64_param_ = value;
  777. }
  778. // optional uint64 uint64_param = 6;
  779. inline bool RpcMessage_Parameter::has_uint64_param() const {
  780. return _has_bit(5);
  781. }
  782. inline void RpcMessage_Parameter::clear_uint64_param() {
  783. uint64_param_ = GOOGLE_ULONGLONG(0);
  784. _clear_bit(5);
  785. }
  786. inline ::google::protobuf::uint64 RpcMessage_Parameter::uint64_param() const {
  787. return uint64_param_;
  788. }
  789. inline void RpcMessage_Parameter::set_uint64_param(::google::protobuf::uint64 value) {
  790. _set_bit(5);
  791. uint64_param_ = value;
  792. }
  793. // optional bool bool_param = 7;
  794. inline bool RpcMessage_Parameter::has_bool_param() const {
  795. return _has_bit(6);
  796. }
  797. inline void RpcMessage_Parameter::clear_bool_param() {
  798. bool_param_ = false;
  799. _clear_bit(6);
  800. }
  801. inline bool RpcMessage_Parameter::bool_param() const {
  802. return bool_param_;
  803. }
  804. inline void RpcMessage_Parameter::set_bool_param(bool value) {
  805. _set_bit(6);
  806. bool_param_ = value;
  807. }
  808. // optional float float_param = 8;
  809. inline bool RpcMessage_Parameter::has_float_param() const {
  810. return _has_bit(7);
  811. }
  812. inline void RpcMessage_Parameter::clear_float_param() {
  813. float_param_ = 0;
  814. _clear_bit(7);
  815. }
  816. inline float RpcMessage_Parameter::float_param() const {
  817. return float_param_;
  818. }
  819. inline void RpcMessage_Parameter::set_float_param(float value) {
  820. _set_bit(7);
  821. float_param_ = value;
  822. }
  823. // optional double double_param = 9;
  824. inline bool RpcMessage_Parameter::has_double_param() const {
  825. return _has_bit(8);
  826. }
  827. inline void RpcMessage_Parameter::clear_double_param() {
  828. double_param_ = 0;
  829. _clear_bit(8);
  830. }
  831. inline double RpcMessage_Parameter::double_param() const {
  832. return double_param_;
  833. }
  834. inline void RpcMessage_Parameter::set_double_param(double value) {
  835. _set_bit(8);
  836. double_param_ = value;
  837. }
  838. // optional bool is_null = 10;
  839. inline bool RpcMessage_Parameter::has_is_null() const {
  840. return _has_bit(9);
  841. }
  842. inline void RpcMessage_Parameter::clear_is_null() {
  843. is_null_ = false;
  844. _clear_bit(9);
  845. }
  846. inline bool RpcMessage_Parameter::is_null() const {
  847. return is_null_;
  848. }
  849. inline void RpcMessage_Parameter::set_is_null(bool value) {
  850. _set_bit(9);
  851. is_null_ = value;
  852. }
  853. // -------------------------------------------------------------------
  854. // RpcMessage
  855. // required int32 id = 1;
  856. inline bool RpcMessage::has_id() const {
  857. return _has_bit(0);
  858. }
  859. inline void RpcMessage::clear_id() {
  860. id_ = 0;
  861. _clear_bit(0);
  862. }
  863. inline ::google::protobuf::int32 RpcMessage::id() const {
  864. return id_;
  865. }
  866. inline void RpcMessage::set_id(::google::protobuf::int32 value) {
  867. _set_bit(0);
  868. id_ = value;
  869. }
  870. // optional .ProtoBufRemote.RpcMessage.Call call_message = 2;
  871. inline bool RpcMessage::has_call_message() const {
  872. return _has_bit(1);
  873. }
  874. inline void RpcMessage::clear_call_message() {
  875. if (call_message_ != NULL) call_message_->::ProtoBufRemote::RpcMessage_Call::Clear();
  876. _clear_bit(1);
  877. }
  878. inline const ::ProtoBufRemote::RpcMessage_Call& RpcMessage::call_message() const {
  879. return call_message_ != NULL ? *call_message_ : *default_instance_->call_message_;
  880. }
  881. inline ::ProtoBufRemote::RpcMessage_Call* RpcMessage::mutable_call_message() {
  882. _set_bit(1);
  883. if (call_message_ == NULL) call_message_ = new ::ProtoBufRemote::RpcMessage_Call;
  884. return call_message_;
  885. }
  886. // optional .ProtoBufRemote.RpcMessage.Result result_message = 3;
  887. inline bool RpcMessage::has_result_message() const {
  888. return _has_bit(2);
  889. }
  890. inline void RpcMessage::clear_result_message() {
  891. if (result_message_ != NULL) result_message_->::ProtoBufRemote::RpcMessage_Result::Clear();
  892. _clear_bit(2);
  893. }
  894. inline const ::ProtoBufRemote::RpcMessage_Result& RpcMessage::result_message() const {
  895. return result_message_ != NULL ? *result_message_ : *default_instance_->result_message_;
  896. }
  897. inline ::ProtoBufRemote::RpcMessage_Result* RpcMessage::mutable_result_message() {
  898. _set_bit(2);
  899. if (result_message_ == NULL) result_message_ = new ::ProtoBufRemote::RpcMessage_Result;
  900. return result_message_;
  901. }
  902. // @@protoc_insertion_point(namespace_scope)
  903. } // namespace ProtoBufRemote
  904. #ifndef SWIG
  905. namespace google {
  906. namespace protobuf {
  907. } // namespace google
  908. } // namespace protobuf
  909. #endif // SWIG
  910. // @@protoc_insertion_point(global_scope)
  911. #endif // PROTOBUF_RpcMessage_2eproto__INCLUDED