Protos.pb.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Protos.proto
  3. #ifndef PROTOBUF_Protos_2eproto__INCLUDED
  4. #define PROTOBUF_Protos_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2005000
  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 2005000 < 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/message_lite.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. // @@protoc_insertion_point(includes)
  22. namespace runtime {
  23. // Internal implementation detail -- do not call these.
  24. void protobuf_AddDesc_Protos_2eproto();
  25. void protobuf_AssignDesc_Protos_2eproto();
  26. void protobuf_ShutdownFile_Protos_2eproto();
  27. class FileSendProtos;
  28. class FileSendComplete;
  29. enum FileSendProtos_CompressType {
  30. FileSendProtos_CompressType_NO_COMPRESS = 0,
  31. FileSendProtos_CompressType_ZIP = 1
  32. };
  33. bool FileSendProtos_CompressType_IsValid(int value);
  34. const FileSendProtos_CompressType FileSendProtos_CompressType_CompressType_MIN = FileSendProtos_CompressType_NO_COMPRESS;
  35. const FileSendProtos_CompressType FileSendProtos_CompressType_CompressType_MAX = FileSendProtos_CompressType_ZIP;
  36. const int FileSendProtos_CompressType_CompressType_ARRAYSIZE = FileSendProtos_CompressType_CompressType_MAX + 1;
  37. enum FileSendProtos_VerifyMode {
  38. FileSendProtos_VerifyMode_NO_VERIFY = 0,
  39. FileSendProtos_VerifyMode_CRC = 1,
  40. FileSendProtos_VerifyMode_MD5 = 2
  41. };
  42. bool FileSendProtos_VerifyMode_IsValid(int value);
  43. const FileSendProtos_VerifyMode FileSendProtos_VerifyMode_VerifyMode_MIN = FileSendProtos_VerifyMode_NO_VERIFY;
  44. const FileSendProtos_VerifyMode FileSendProtos_VerifyMode_VerifyMode_MAX = FileSendProtos_VerifyMode_MD5;
  45. const int FileSendProtos_VerifyMode_VerifyMode_ARRAYSIZE = FileSendProtos_VerifyMode_VerifyMode_MAX + 1;
  46. enum FileSendComplete_RESULTTYPE {
  47. FileSendComplete_RESULTTYPE_SUCCESS = 0,
  48. FileSendComplete_RESULTTYPE_RECV_ERROR = 1,
  49. FileSendComplete_RESULTTYPE_UNCOMPRESS_ERROR = 2,
  50. FileSendComplete_RESULTTYPE_FOPEN_ERROR = 3,
  51. FileSendComplete_RESULTTYPE_FWRITE_ERROR = 4
  52. };
  53. bool FileSendComplete_RESULTTYPE_IsValid(int value);
  54. const FileSendComplete_RESULTTYPE FileSendComplete_RESULTTYPE_RESULTTYPE_MIN = FileSendComplete_RESULTTYPE_SUCCESS;
  55. const FileSendComplete_RESULTTYPE FileSendComplete_RESULTTYPE_RESULTTYPE_MAX = FileSendComplete_RESULTTYPE_FWRITE_ERROR;
  56. const int FileSendComplete_RESULTTYPE_RESULTTYPE_ARRAYSIZE = FileSendComplete_RESULTTYPE_RESULTTYPE_MAX + 1;
  57. // ===================================================================
  58. class FileSendProtos : public ::google::protobuf::MessageLite {
  59. public:
  60. FileSendProtos();
  61. virtual ~FileSendProtos();
  62. FileSendProtos(const FileSendProtos& from);
  63. inline FileSendProtos& operator=(const FileSendProtos& from) {
  64. CopyFrom(from);
  65. return *this;
  66. }
  67. static const FileSendProtos& default_instance();
  68. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  69. // Returns the internal default instance pointer. This function can
  70. // return NULL thus should not be used by the user. This is intended
  71. // for Protobuf internal code. Please use default_instance() declared
  72. // above instead.
  73. static inline const FileSendProtos* internal_default_instance() {
  74. return default_instance_;
  75. }
  76. #endif
  77. void Swap(FileSendProtos* other);
  78. // implements Message ----------------------------------------------
  79. FileSendProtos* New() const;
  80. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
  81. void CopyFrom(const FileSendProtos& from);
  82. void MergeFrom(const FileSendProtos& from);
  83. void Clear();
  84. bool IsInitialized() const;
  85. int ByteSize() const;
  86. bool MergePartialFromCodedStream(
  87. ::google::protobuf::io::CodedInputStream* input);
  88. void SerializeWithCachedSizes(
  89. ::google::protobuf::io::CodedOutputStream* output) const;
  90. int GetCachedSize() const { return _cached_size_; }
  91. private:
  92. void SharedCtor();
  93. void SharedDtor();
  94. void SetCachedSize(int size) const;
  95. public:
  96. ::std::string GetTypeName() const;
  97. // nested types ----------------------------------------------------
  98. typedef FileSendProtos_CompressType CompressType;
  99. static const CompressType NO_COMPRESS = FileSendProtos_CompressType_NO_COMPRESS;
  100. static const CompressType ZIP = FileSendProtos_CompressType_ZIP;
  101. static inline bool CompressType_IsValid(int value) {
  102. return FileSendProtos_CompressType_IsValid(value);
  103. }
  104. static const CompressType CompressType_MIN =
  105. FileSendProtos_CompressType_CompressType_MIN;
  106. static const CompressType CompressType_MAX =
  107. FileSendProtos_CompressType_CompressType_MAX;
  108. static const int CompressType_ARRAYSIZE =
  109. FileSendProtos_CompressType_CompressType_ARRAYSIZE;
  110. typedef FileSendProtos_VerifyMode VerifyMode;
  111. static const VerifyMode NO_VERIFY = FileSendProtos_VerifyMode_NO_VERIFY;
  112. static const VerifyMode CRC = FileSendProtos_VerifyMode_CRC;
  113. static const VerifyMode MD5 = FileSendProtos_VerifyMode_MD5;
  114. static inline bool VerifyMode_IsValid(int value) {
  115. return FileSendProtos_VerifyMode_IsValid(value);
  116. }
  117. static const VerifyMode VerifyMode_MIN =
  118. FileSendProtos_VerifyMode_VerifyMode_MIN;
  119. static const VerifyMode VerifyMode_MAX =
  120. FileSendProtos_VerifyMode_VerifyMode_MAX;
  121. static const int VerifyMode_ARRAYSIZE =
  122. FileSendProtos_VerifyMode_VerifyMode_ARRAYSIZE;
  123. // accessors -------------------------------------------------------
  124. // required string file_name = 1;
  125. inline bool has_file_name() const;
  126. inline void clear_file_name();
  127. static const int kFileNameFieldNumber = 1;
  128. inline const ::std::string& file_name() const;
  129. inline void set_file_name(const ::std::string& value);
  130. inline void set_file_name(const char* value);
  131. inline void set_file_name(const char* value, size_t size);
  132. inline ::std::string* mutable_file_name();
  133. inline ::std::string* release_file_name();
  134. inline void set_allocated_file_name(::std::string* file_name);
  135. // required int32 package_seq = 2;
  136. inline bool has_package_seq() const;
  137. inline void clear_package_seq();
  138. static const int kPackageSeqFieldNumber = 2;
  139. inline ::google::protobuf::int32 package_seq() const;
  140. inline void set_package_seq(::google::protobuf::int32 value);
  141. // required int32 package_sum = 3;
  142. inline bool has_package_sum() const;
  143. inline void clear_package_sum();
  144. static const int kPackageSumFieldNumber = 3;
  145. inline ::google::protobuf::int32 package_sum() const;
  146. inline void set_package_sum(::google::protobuf::int32 value);
  147. // required uint64 content_size = 4;
  148. inline bool has_content_size() const;
  149. inline void clear_content_size();
  150. static const int kContentSizeFieldNumber = 4;
  151. inline ::google::protobuf::uint64 content_size() const;
  152. inline void set_content_size(::google::protobuf::uint64 value);
  153. // required .runtime.FileSendProtos.CompressType compress_type = 5;
  154. inline bool has_compress_type() const;
  155. inline void clear_compress_type();
  156. static const int kCompressTypeFieldNumber = 5;
  157. inline ::runtime::FileSendProtos_CompressType compress_type() const;
  158. inline void set_compress_type(::runtime::FileSendProtos_CompressType value);
  159. // optional uint64 modified_time = 6;
  160. inline bool has_modified_time() const;
  161. inline void clear_modified_time();
  162. static const int kModifiedTimeFieldNumber = 6;
  163. inline ::google::protobuf::uint64 modified_time() const;
  164. inline void set_modified_time(::google::protobuf::uint64 value);
  165. // optional .runtime.FileSendProtos.VerifyMode verify_mode = 7;
  166. inline bool has_verify_mode() const;
  167. inline void clear_verify_mode();
  168. static const int kVerifyModeFieldNumber = 7;
  169. inline ::runtime::FileSendProtos_VerifyMode verify_mode() const;
  170. inline void set_verify_mode(::runtime::FileSendProtos_VerifyMode value);
  171. // optional string verify_sign = 8;
  172. inline bool has_verify_sign() const;
  173. inline void clear_verify_sign();
  174. static const int kVerifySignFieldNumber = 8;
  175. inline const ::std::string& verify_sign() const;
  176. inline void set_verify_sign(const ::std::string& value);
  177. inline void set_verify_sign(const char* value);
  178. inline void set_verify_sign(const char* value, size_t size);
  179. inline ::std::string* mutable_verify_sign();
  180. inline ::std::string* release_verify_sign();
  181. inline void set_allocated_verify_sign(::std::string* verify_sign);
  182. // optional uint64 uncompress_size = 9;
  183. inline bool has_uncompress_size() const;
  184. inline void clear_uncompress_size();
  185. static const int kUncompressSizeFieldNumber = 9;
  186. inline ::google::protobuf::uint64 uncompress_size() const;
  187. inline void set_uncompress_size(::google::protobuf::uint64 value);
  188. // @@protoc_insertion_point(class_scope:runtime.FileSendProtos)
  189. private:
  190. inline void set_has_file_name();
  191. inline void clear_has_file_name();
  192. inline void set_has_package_seq();
  193. inline void clear_has_package_seq();
  194. inline void set_has_package_sum();
  195. inline void clear_has_package_sum();
  196. inline void set_has_content_size();
  197. inline void clear_has_content_size();
  198. inline void set_has_compress_type();
  199. inline void clear_has_compress_type();
  200. inline void set_has_modified_time();
  201. inline void clear_has_modified_time();
  202. inline void set_has_verify_mode();
  203. inline void clear_has_verify_mode();
  204. inline void set_has_verify_sign();
  205. inline void clear_has_verify_sign();
  206. inline void set_has_uncompress_size();
  207. inline void clear_has_uncompress_size();
  208. ::std::string* file_name_;
  209. ::google::protobuf::int32 package_seq_;
  210. ::google::protobuf::int32 package_sum_;
  211. ::google::protobuf::uint64 content_size_;
  212. ::google::protobuf::uint64 modified_time_;
  213. int compress_type_;
  214. int verify_mode_;
  215. ::std::string* verify_sign_;
  216. ::google::protobuf::uint64 uncompress_size_;
  217. mutable int _cached_size_;
  218. ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
  219. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  220. friend void protobuf_AddDesc_Protos_2eproto_impl();
  221. #else
  222. friend void protobuf_AddDesc_Protos_2eproto();
  223. #endif
  224. friend void protobuf_AssignDesc_Protos_2eproto();
  225. friend void protobuf_ShutdownFile_Protos_2eproto();
  226. void InitAsDefaultInstance();
  227. static FileSendProtos* default_instance_;
  228. };
  229. // -------------------------------------------------------------------
  230. class FileSendComplete : public ::google::protobuf::MessageLite {
  231. public:
  232. FileSendComplete();
  233. virtual ~FileSendComplete();
  234. FileSendComplete(const FileSendComplete& from);
  235. inline FileSendComplete& operator=(const FileSendComplete& from) {
  236. CopyFrom(from);
  237. return *this;
  238. }
  239. static const FileSendComplete& default_instance();
  240. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  241. // Returns the internal default instance pointer. This function can
  242. // return NULL thus should not be used by the user. This is intended
  243. // for Protobuf internal code. Please use default_instance() declared
  244. // above instead.
  245. static inline const FileSendComplete* internal_default_instance() {
  246. return default_instance_;
  247. }
  248. #endif
  249. void Swap(FileSendComplete* other);
  250. // implements Message ----------------------------------------------
  251. FileSendComplete* New() const;
  252. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
  253. void CopyFrom(const FileSendComplete& from);
  254. void MergeFrom(const FileSendComplete& from);
  255. void Clear();
  256. bool IsInitialized() const;
  257. int ByteSize() const;
  258. bool MergePartialFromCodedStream(
  259. ::google::protobuf::io::CodedInputStream* input);
  260. void SerializeWithCachedSizes(
  261. ::google::protobuf::io::CodedOutputStream* output) const;
  262. int GetCachedSize() const { return _cached_size_; }
  263. private:
  264. void SharedCtor();
  265. void SharedDtor();
  266. void SetCachedSize(int size) const;
  267. public:
  268. ::std::string GetTypeName() const;
  269. // nested types ----------------------------------------------------
  270. typedef FileSendComplete_RESULTTYPE RESULTTYPE;
  271. static const RESULTTYPE SUCCESS = FileSendComplete_RESULTTYPE_SUCCESS;
  272. static const RESULTTYPE RECV_ERROR = FileSendComplete_RESULTTYPE_RECV_ERROR;
  273. static const RESULTTYPE UNCOMPRESS_ERROR = FileSendComplete_RESULTTYPE_UNCOMPRESS_ERROR;
  274. static const RESULTTYPE FOPEN_ERROR = FileSendComplete_RESULTTYPE_FOPEN_ERROR;
  275. static const RESULTTYPE FWRITE_ERROR = FileSendComplete_RESULTTYPE_FWRITE_ERROR;
  276. static inline bool RESULTTYPE_IsValid(int value) {
  277. return FileSendComplete_RESULTTYPE_IsValid(value);
  278. }
  279. static const RESULTTYPE RESULTTYPE_MIN =
  280. FileSendComplete_RESULTTYPE_RESULTTYPE_MIN;
  281. static const RESULTTYPE RESULTTYPE_MAX =
  282. FileSendComplete_RESULTTYPE_RESULTTYPE_MAX;
  283. static const int RESULTTYPE_ARRAYSIZE =
  284. FileSendComplete_RESULTTYPE_RESULTTYPE_ARRAYSIZE;
  285. // accessors -------------------------------------------------------
  286. // required string file_name = 1;
  287. inline bool has_file_name() const;
  288. inline void clear_file_name();
  289. static const int kFileNameFieldNumber = 1;
  290. inline const ::std::string& file_name() const;
  291. inline void set_file_name(const ::std::string& value);
  292. inline void set_file_name(const char* value);
  293. inline void set_file_name(const char* value, size_t size);
  294. inline ::std::string* mutable_file_name();
  295. inline ::std::string* release_file_name();
  296. inline void set_allocated_file_name(::std::string* file_name);
  297. // required .runtime.FileSendComplete.RESULTTYPE result = 2;
  298. inline bool has_result() const;
  299. inline void clear_result();
  300. static const int kResultFieldNumber = 2;
  301. inline ::runtime::FileSendComplete_RESULTTYPE result() const;
  302. inline void set_result(::runtime::FileSendComplete_RESULTTYPE value);
  303. // required int32 error_num = 3;
  304. inline bool has_error_num() const;
  305. inline void clear_error_num();
  306. static const int kErrorNumFieldNumber = 3;
  307. inline ::google::protobuf::int32 error_num() const;
  308. inline void set_error_num(::google::protobuf::int32 value);
  309. // @@protoc_insertion_point(class_scope:runtime.FileSendComplete)
  310. private:
  311. inline void set_has_file_name();
  312. inline void clear_has_file_name();
  313. inline void set_has_result();
  314. inline void clear_has_result();
  315. inline void set_has_error_num();
  316. inline void clear_has_error_num();
  317. ::std::string* file_name_;
  318. int result_;
  319. ::google::protobuf::int32 error_num_;
  320. mutable int _cached_size_;
  321. ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
  322. #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  323. friend void protobuf_AddDesc_Protos_2eproto_impl();
  324. #else
  325. friend void protobuf_AddDesc_Protos_2eproto();
  326. #endif
  327. friend void protobuf_AssignDesc_Protos_2eproto();
  328. friend void protobuf_ShutdownFile_Protos_2eproto();
  329. void InitAsDefaultInstance();
  330. static FileSendComplete* default_instance_;
  331. };
  332. // ===================================================================
  333. // ===================================================================
  334. // FileSendProtos
  335. // required string file_name = 1;
  336. inline bool FileSendProtos::has_file_name() const {
  337. return (_has_bits_[0] & 0x00000001u) != 0;
  338. }
  339. inline void FileSendProtos::set_has_file_name() {
  340. _has_bits_[0] |= 0x00000001u;
  341. }
  342. inline void FileSendProtos::clear_has_file_name() {
  343. _has_bits_[0] &= ~0x00000001u;
  344. }
  345. inline void FileSendProtos::clear_file_name() {
  346. if (file_name_ != &::google::protobuf::internal::kEmptyString) {
  347. file_name_->clear();
  348. }
  349. clear_has_file_name();
  350. }
  351. inline const ::std::string& FileSendProtos::file_name() const {
  352. return *file_name_;
  353. }
  354. inline void FileSendProtos::set_file_name(const ::std::string& value) {
  355. set_has_file_name();
  356. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  357. file_name_ = new ::std::string;
  358. }
  359. file_name_->assign(value);
  360. }
  361. inline void FileSendProtos::set_file_name(const char* value) {
  362. set_has_file_name();
  363. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  364. file_name_ = new ::std::string;
  365. }
  366. file_name_->assign(value);
  367. }
  368. inline void FileSendProtos::set_file_name(const char* value, size_t size) {
  369. set_has_file_name();
  370. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  371. file_name_ = new ::std::string;
  372. }
  373. file_name_->assign(reinterpret_cast<const char*>(value), size);
  374. }
  375. inline ::std::string* FileSendProtos::mutable_file_name() {
  376. set_has_file_name();
  377. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  378. file_name_ = new ::std::string;
  379. }
  380. return file_name_;
  381. }
  382. inline ::std::string* FileSendProtos::release_file_name() {
  383. clear_has_file_name();
  384. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  385. return NULL;
  386. } else {
  387. ::std::string* temp = file_name_;
  388. file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  389. return temp;
  390. }
  391. }
  392. inline void FileSendProtos::set_allocated_file_name(::std::string* file_name) {
  393. if (file_name_ != &::google::protobuf::internal::kEmptyString) {
  394. delete file_name_;
  395. }
  396. if (file_name) {
  397. set_has_file_name();
  398. file_name_ = file_name;
  399. } else {
  400. clear_has_file_name();
  401. file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  402. }
  403. }
  404. // required int32 package_seq = 2;
  405. inline bool FileSendProtos::has_package_seq() const {
  406. return (_has_bits_[0] & 0x00000002u) != 0;
  407. }
  408. inline void FileSendProtos::set_has_package_seq() {
  409. _has_bits_[0] |= 0x00000002u;
  410. }
  411. inline void FileSendProtos::clear_has_package_seq() {
  412. _has_bits_[0] &= ~0x00000002u;
  413. }
  414. inline void FileSendProtos::clear_package_seq() {
  415. package_seq_ = 0;
  416. clear_has_package_seq();
  417. }
  418. inline ::google::protobuf::int32 FileSendProtos::package_seq() const {
  419. return package_seq_;
  420. }
  421. inline void FileSendProtos::set_package_seq(::google::protobuf::int32 value) {
  422. set_has_package_seq();
  423. package_seq_ = value;
  424. }
  425. // required int32 package_sum = 3;
  426. inline bool FileSendProtos::has_package_sum() const {
  427. return (_has_bits_[0] & 0x00000004u) != 0;
  428. }
  429. inline void FileSendProtos::set_has_package_sum() {
  430. _has_bits_[0] |= 0x00000004u;
  431. }
  432. inline void FileSendProtos::clear_has_package_sum() {
  433. _has_bits_[0] &= ~0x00000004u;
  434. }
  435. inline void FileSendProtos::clear_package_sum() {
  436. package_sum_ = 0;
  437. clear_has_package_sum();
  438. }
  439. inline ::google::protobuf::int32 FileSendProtos::package_sum() const {
  440. return package_sum_;
  441. }
  442. inline void FileSendProtos::set_package_sum(::google::protobuf::int32 value) {
  443. set_has_package_sum();
  444. package_sum_ = value;
  445. }
  446. // required uint64 content_size = 4;
  447. inline bool FileSendProtos::has_content_size() const {
  448. return (_has_bits_[0] & 0x00000008u) != 0;
  449. }
  450. inline void FileSendProtos::set_has_content_size() {
  451. _has_bits_[0] |= 0x00000008u;
  452. }
  453. inline void FileSendProtos::clear_has_content_size() {
  454. _has_bits_[0] &= ~0x00000008u;
  455. }
  456. inline void FileSendProtos::clear_content_size() {
  457. content_size_ = GOOGLE_ULONGLONG(0);
  458. clear_has_content_size();
  459. }
  460. inline ::google::protobuf::uint64 FileSendProtos::content_size() const {
  461. return content_size_;
  462. }
  463. inline void FileSendProtos::set_content_size(::google::protobuf::uint64 value) {
  464. set_has_content_size();
  465. content_size_ = value;
  466. }
  467. // required .runtime.FileSendProtos.CompressType compress_type = 5;
  468. inline bool FileSendProtos::has_compress_type() const {
  469. return (_has_bits_[0] & 0x00000010u) != 0;
  470. }
  471. inline void FileSendProtos::set_has_compress_type() {
  472. _has_bits_[0] |= 0x00000010u;
  473. }
  474. inline void FileSendProtos::clear_has_compress_type() {
  475. _has_bits_[0] &= ~0x00000010u;
  476. }
  477. inline void FileSendProtos::clear_compress_type() {
  478. compress_type_ = 0;
  479. clear_has_compress_type();
  480. }
  481. inline ::runtime::FileSendProtos_CompressType FileSendProtos::compress_type() const {
  482. return static_cast< ::runtime::FileSendProtos_CompressType >(compress_type_);
  483. }
  484. inline void FileSendProtos::set_compress_type(::runtime::FileSendProtos_CompressType value) {
  485. assert(::runtime::FileSendProtos_CompressType_IsValid(value));
  486. set_has_compress_type();
  487. compress_type_ = value;
  488. }
  489. // optional uint64 modified_time = 6;
  490. inline bool FileSendProtos::has_modified_time() const {
  491. return (_has_bits_[0] & 0x00000020u) != 0;
  492. }
  493. inline void FileSendProtos::set_has_modified_time() {
  494. _has_bits_[0] |= 0x00000020u;
  495. }
  496. inline void FileSendProtos::clear_has_modified_time() {
  497. _has_bits_[0] &= ~0x00000020u;
  498. }
  499. inline void FileSendProtos::clear_modified_time() {
  500. modified_time_ = GOOGLE_ULONGLONG(0);
  501. clear_has_modified_time();
  502. }
  503. inline ::google::protobuf::uint64 FileSendProtos::modified_time() const {
  504. return modified_time_;
  505. }
  506. inline void FileSendProtos::set_modified_time(::google::protobuf::uint64 value) {
  507. set_has_modified_time();
  508. modified_time_ = value;
  509. }
  510. // optional .runtime.FileSendProtos.VerifyMode verify_mode = 7;
  511. inline bool FileSendProtos::has_verify_mode() const {
  512. return (_has_bits_[0] & 0x00000040u) != 0;
  513. }
  514. inline void FileSendProtos::set_has_verify_mode() {
  515. _has_bits_[0] |= 0x00000040u;
  516. }
  517. inline void FileSendProtos::clear_has_verify_mode() {
  518. _has_bits_[0] &= ~0x00000040u;
  519. }
  520. inline void FileSendProtos::clear_verify_mode() {
  521. verify_mode_ = 0;
  522. clear_has_verify_mode();
  523. }
  524. inline ::runtime::FileSendProtos_VerifyMode FileSendProtos::verify_mode() const {
  525. return static_cast< ::runtime::FileSendProtos_VerifyMode >(verify_mode_);
  526. }
  527. inline void FileSendProtos::set_verify_mode(::runtime::FileSendProtos_VerifyMode value) {
  528. assert(::runtime::FileSendProtos_VerifyMode_IsValid(value));
  529. set_has_verify_mode();
  530. verify_mode_ = value;
  531. }
  532. // optional string verify_sign = 8;
  533. inline bool FileSendProtos::has_verify_sign() const {
  534. return (_has_bits_[0] & 0x00000080u) != 0;
  535. }
  536. inline void FileSendProtos::set_has_verify_sign() {
  537. _has_bits_[0] |= 0x00000080u;
  538. }
  539. inline void FileSendProtos::clear_has_verify_sign() {
  540. _has_bits_[0] &= ~0x00000080u;
  541. }
  542. inline void FileSendProtos::clear_verify_sign() {
  543. if (verify_sign_ != &::google::protobuf::internal::kEmptyString) {
  544. verify_sign_->clear();
  545. }
  546. clear_has_verify_sign();
  547. }
  548. inline const ::std::string& FileSendProtos::verify_sign() const {
  549. return *verify_sign_;
  550. }
  551. inline void FileSendProtos::set_verify_sign(const ::std::string& value) {
  552. set_has_verify_sign();
  553. if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
  554. verify_sign_ = new ::std::string;
  555. }
  556. verify_sign_->assign(value);
  557. }
  558. inline void FileSendProtos::set_verify_sign(const char* value) {
  559. set_has_verify_sign();
  560. if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
  561. verify_sign_ = new ::std::string;
  562. }
  563. verify_sign_->assign(value);
  564. }
  565. inline void FileSendProtos::set_verify_sign(const char* value, size_t size) {
  566. set_has_verify_sign();
  567. if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
  568. verify_sign_ = new ::std::string;
  569. }
  570. verify_sign_->assign(reinterpret_cast<const char*>(value), size);
  571. }
  572. inline ::std::string* FileSendProtos::mutable_verify_sign() {
  573. set_has_verify_sign();
  574. if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
  575. verify_sign_ = new ::std::string;
  576. }
  577. return verify_sign_;
  578. }
  579. inline ::std::string* FileSendProtos::release_verify_sign() {
  580. clear_has_verify_sign();
  581. if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
  582. return NULL;
  583. } else {
  584. ::std::string* temp = verify_sign_;
  585. verify_sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  586. return temp;
  587. }
  588. }
  589. inline void FileSendProtos::set_allocated_verify_sign(::std::string* verify_sign) {
  590. if (verify_sign_ != &::google::protobuf::internal::kEmptyString) {
  591. delete verify_sign_;
  592. }
  593. if (verify_sign) {
  594. set_has_verify_sign();
  595. verify_sign_ = verify_sign;
  596. } else {
  597. clear_has_verify_sign();
  598. verify_sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  599. }
  600. }
  601. // optional uint64 uncompress_size = 9;
  602. inline bool FileSendProtos::has_uncompress_size() const {
  603. return (_has_bits_[0] & 0x00000100u) != 0;
  604. }
  605. inline void FileSendProtos::set_has_uncompress_size() {
  606. _has_bits_[0] |= 0x00000100u;
  607. }
  608. inline void FileSendProtos::clear_has_uncompress_size() {
  609. _has_bits_[0] &= ~0x00000100u;
  610. }
  611. inline void FileSendProtos::clear_uncompress_size() {
  612. uncompress_size_ = GOOGLE_ULONGLONG(0);
  613. clear_has_uncompress_size();
  614. }
  615. inline ::google::protobuf::uint64 FileSendProtos::uncompress_size() const {
  616. return uncompress_size_;
  617. }
  618. inline void FileSendProtos::set_uncompress_size(::google::protobuf::uint64 value) {
  619. set_has_uncompress_size();
  620. uncompress_size_ = value;
  621. }
  622. // -------------------------------------------------------------------
  623. // FileSendComplete
  624. // required string file_name = 1;
  625. inline bool FileSendComplete::has_file_name() const {
  626. return (_has_bits_[0] & 0x00000001u) != 0;
  627. }
  628. inline void FileSendComplete::set_has_file_name() {
  629. _has_bits_[0] |= 0x00000001u;
  630. }
  631. inline void FileSendComplete::clear_has_file_name() {
  632. _has_bits_[0] &= ~0x00000001u;
  633. }
  634. inline void FileSendComplete::clear_file_name() {
  635. if (file_name_ != &::google::protobuf::internal::kEmptyString) {
  636. file_name_->clear();
  637. }
  638. clear_has_file_name();
  639. }
  640. inline const ::std::string& FileSendComplete::file_name() const {
  641. return *file_name_;
  642. }
  643. inline void FileSendComplete::set_file_name(const ::std::string& value) {
  644. set_has_file_name();
  645. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  646. file_name_ = new ::std::string;
  647. }
  648. file_name_->assign(value);
  649. }
  650. inline void FileSendComplete::set_file_name(const char* value) {
  651. set_has_file_name();
  652. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  653. file_name_ = new ::std::string;
  654. }
  655. file_name_->assign(value);
  656. }
  657. inline void FileSendComplete::set_file_name(const char* value, size_t size) {
  658. set_has_file_name();
  659. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  660. file_name_ = new ::std::string;
  661. }
  662. file_name_->assign(reinterpret_cast<const char*>(value), size);
  663. }
  664. inline ::std::string* FileSendComplete::mutable_file_name() {
  665. set_has_file_name();
  666. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  667. file_name_ = new ::std::string;
  668. }
  669. return file_name_;
  670. }
  671. inline ::std::string* FileSendComplete::release_file_name() {
  672. clear_has_file_name();
  673. if (file_name_ == &::google::protobuf::internal::kEmptyString) {
  674. return NULL;
  675. } else {
  676. ::std::string* temp = file_name_;
  677. file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  678. return temp;
  679. }
  680. }
  681. inline void FileSendComplete::set_allocated_file_name(::std::string* file_name) {
  682. if (file_name_ != &::google::protobuf::internal::kEmptyString) {
  683. delete file_name_;
  684. }
  685. if (file_name) {
  686. set_has_file_name();
  687. file_name_ = file_name;
  688. } else {
  689. clear_has_file_name();
  690. file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  691. }
  692. }
  693. // required .runtime.FileSendComplete.RESULTTYPE result = 2;
  694. inline bool FileSendComplete::has_result() const {
  695. return (_has_bits_[0] & 0x00000002u) != 0;
  696. }
  697. inline void FileSendComplete::set_has_result() {
  698. _has_bits_[0] |= 0x00000002u;
  699. }
  700. inline void FileSendComplete::clear_has_result() {
  701. _has_bits_[0] &= ~0x00000002u;
  702. }
  703. inline void FileSendComplete::clear_result() {
  704. result_ = 0;
  705. clear_has_result();
  706. }
  707. inline ::runtime::FileSendComplete_RESULTTYPE FileSendComplete::result() const {
  708. return static_cast< ::runtime::FileSendComplete_RESULTTYPE >(result_);
  709. }
  710. inline void FileSendComplete::set_result(::runtime::FileSendComplete_RESULTTYPE value) {
  711. assert(::runtime::FileSendComplete_RESULTTYPE_IsValid(value));
  712. set_has_result();
  713. result_ = value;
  714. }
  715. // required int32 error_num = 3;
  716. inline bool FileSendComplete::has_error_num() const {
  717. return (_has_bits_[0] & 0x00000004u) != 0;
  718. }
  719. inline void FileSendComplete::set_has_error_num() {
  720. _has_bits_[0] |= 0x00000004u;
  721. }
  722. inline void FileSendComplete::clear_has_error_num() {
  723. _has_bits_[0] &= ~0x00000004u;
  724. }
  725. inline void FileSendComplete::clear_error_num() {
  726. error_num_ = 0;
  727. clear_has_error_num();
  728. }
  729. inline ::google::protobuf::int32 FileSendComplete::error_num() const {
  730. return error_num_;
  731. }
  732. inline void FileSendComplete::set_error_num(::google::protobuf::int32 value) {
  733. set_has_error_num();
  734. error_num_ = value;
  735. }
  736. // @@protoc_insertion_point(namespace_scope)
  737. } // namespace runtime
  738. // @@protoc_insertion_point(global_scope)
  739. #endif // PROTOBUF_Protos_2eproto__INCLUDED