rawpic.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: rawpic.proto
  3. #ifndef PROTOBUF_rawpic_2eproto__INCLUDED
  4. #define PROTOBUF_rawpic_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3000000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/arena.h>
  18. #include <google/protobuf/arenastring.h>
  19. #include <google/protobuf/generated_message_util.h>
  20. #include <google/protobuf/metadata.h>
  21. #include <google/protobuf/message.h>
  22. #include <google/protobuf/repeated_field.h>
  23. #include <google/protobuf/extension_set.h>
  24. #include <google/protobuf/unknown_field_set.h>
  25. // @@protoc_insertion_point(includes)
  26. namespace iv {
  27. namespace vision {
  28. // Internal implementation detail -- do not call these.
  29. void protobuf_AddDesc_rawpic_2eproto();
  30. void protobuf_AssignDesc_rawpic_2eproto();
  31. void protobuf_ShutdownFile_rawpic_2eproto();
  32. class rawpic;
  33. // ===================================================================
  34. class rawpic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.vision.rawpic) */ {
  35. public:
  36. rawpic();
  37. virtual ~rawpic();
  38. rawpic(const rawpic& from);
  39. inline rawpic& operator=(const rawpic& from) {
  40. CopyFrom(from);
  41. return *this;
  42. }
  43. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  44. return _internal_metadata_.unknown_fields();
  45. }
  46. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  47. return _internal_metadata_.mutable_unknown_fields();
  48. }
  49. static const ::google::protobuf::Descriptor* descriptor();
  50. static const rawpic& default_instance();
  51. void Swap(rawpic* other);
  52. // implements Message ----------------------------------------------
  53. inline rawpic* New() const { return New(NULL); }
  54. rawpic* New(::google::protobuf::Arena* arena) const;
  55. void CopyFrom(const ::google::protobuf::Message& from);
  56. void MergeFrom(const ::google::protobuf::Message& from);
  57. void CopyFrom(const rawpic& from);
  58. void MergeFrom(const rawpic& from);
  59. void Clear();
  60. bool IsInitialized() const;
  61. int ByteSize() const;
  62. bool MergePartialFromCodedStream(
  63. ::google::protobuf::io::CodedInputStream* input);
  64. void SerializeWithCachedSizes(
  65. ::google::protobuf::io::CodedOutputStream* output) const;
  66. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  67. bool deterministic, ::google::protobuf::uint8* output) const;
  68. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
  69. return InternalSerializeWithCachedSizesToArray(false, output);
  70. }
  71. int GetCachedSize() const { return _cached_size_; }
  72. private:
  73. void SharedCtor();
  74. void SharedDtor();
  75. void SetCachedSize(int size) const;
  76. void InternalSwap(rawpic* other);
  77. private:
  78. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  79. return _internal_metadata_.arena();
  80. }
  81. inline void* MaybeArenaPtr() const {
  82. return _internal_metadata_.raw_arena_ptr();
  83. }
  84. public:
  85. ::google::protobuf::Metadata GetMetadata() const;
  86. // nested types ----------------------------------------------------
  87. // accessors -------------------------------------------------------
  88. // optional int64 time = 1;
  89. bool has_time() const;
  90. void clear_time();
  91. static const int kTimeFieldNumber = 1;
  92. ::google::protobuf::int64 time() const;
  93. void set_time(::google::protobuf::int64 value);
  94. // optional int32 index = 2;
  95. bool has_index() const;
  96. void clear_index();
  97. static const int kIndexFieldNumber = 2;
  98. ::google::protobuf::int32 index() const;
  99. void set_index(::google::protobuf::int32 value);
  100. // optional int32 type = 3;
  101. bool has_type() const;
  102. void clear_type();
  103. static const int kTypeFieldNumber = 3;
  104. ::google::protobuf::int32 type() const;
  105. void set_type(::google::protobuf::int32 value);
  106. // optional int32 width = 4;
  107. bool has_width() const;
  108. void clear_width();
  109. static const int kWidthFieldNumber = 4;
  110. ::google::protobuf::int32 width() const;
  111. void set_width(::google::protobuf::int32 value);
  112. // optional int32 height = 5;
  113. bool has_height() const;
  114. void clear_height();
  115. static const int kHeightFieldNumber = 5;
  116. ::google::protobuf::int32 height() const;
  117. void set_height(::google::protobuf::int32 value);
  118. // optional int32 elemsize = 6;
  119. bool has_elemsize() const;
  120. void clear_elemsize();
  121. static const int kElemsizeFieldNumber = 6;
  122. ::google::protobuf::int32 elemsize() const;
  123. void set_elemsize(::google::protobuf::int32 value);
  124. // optional int32 mattype = 7;
  125. bool has_mattype() const;
  126. void clear_mattype();
  127. static const int kMattypeFieldNumber = 7;
  128. ::google::protobuf::int32 mattype() const;
  129. void set_mattype(::google::protobuf::int32 value);
  130. // optional bytes picdata = 8;
  131. bool has_picdata() const;
  132. void clear_picdata();
  133. static const int kPicdataFieldNumber = 8;
  134. const ::std::string& picdata() const;
  135. void set_picdata(const ::std::string& value);
  136. void set_picdata(const char* value);
  137. void set_picdata(const void* value, size_t size);
  138. ::std::string* mutable_picdata();
  139. ::std::string* release_picdata();
  140. void set_allocated_picdata(::std::string* picdata);
  141. // @@protoc_insertion_point(class_scope:iv.vision.rawpic)
  142. private:
  143. inline void set_has_time();
  144. inline void clear_has_time();
  145. inline void set_has_index();
  146. inline void clear_has_index();
  147. inline void set_has_type();
  148. inline void clear_has_type();
  149. inline void set_has_width();
  150. inline void clear_has_width();
  151. inline void set_has_height();
  152. inline void clear_has_height();
  153. inline void set_has_elemsize();
  154. inline void clear_has_elemsize();
  155. inline void set_has_mattype();
  156. inline void clear_has_mattype();
  157. inline void set_has_picdata();
  158. inline void clear_has_picdata();
  159. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  160. ::google::protobuf::uint32 _has_bits_[1];
  161. mutable int _cached_size_;
  162. ::google::protobuf::int64 time_;
  163. ::google::protobuf::int32 index_;
  164. ::google::protobuf::int32 type_;
  165. ::google::protobuf::int32 width_;
  166. ::google::protobuf::int32 height_;
  167. ::google::protobuf::int32 elemsize_;
  168. ::google::protobuf::int32 mattype_;
  169. ::google::protobuf::internal::ArenaStringPtr picdata_;
  170. friend void protobuf_AddDesc_rawpic_2eproto();
  171. friend void protobuf_AssignDesc_rawpic_2eproto();
  172. friend void protobuf_ShutdownFile_rawpic_2eproto();
  173. void InitAsDefaultInstance();
  174. static rawpic* default_instance_;
  175. };
  176. // ===================================================================
  177. // ===================================================================
  178. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  179. // rawpic
  180. // optional int64 time = 1;
  181. inline bool rawpic::has_time() const {
  182. return (_has_bits_[0] & 0x00000001u) != 0;
  183. }
  184. inline void rawpic::set_has_time() {
  185. _has_bits_[0] |= 0x00000001u;
  186. }
  187. inline void rawpic::clear_has_time() {
  188. _has_bits_[0] &= ~0x00000001u;
  189. }
  190. inline void rawpic::clear_time() {
  191. time_ = GOOGLE_LONGLONG(0);
  192. clear_has_time();
  193. }
  194. inline ::google::protobuf::int64 rawpic::time() const {
  195. // @@protoc_insertion_point(field_get:iv.vision.rawpic.time)
  196. return time_;
  197. }
  198. inline void rawpic::set_time(::google::protobuf::int64 value) {
  199. set_has_time();
  200. time_ = value;
  201. // @@protoc_insertion_point(field_set:iv.vision.rawpic.time)
  202. }
  203. // optional int32 index = 2;
  204. inline bool rawpic::has_index() const {
  205. return (_has_bits_[0] & 0x00000002u) != 0;
  206. }
  207. inline void rawpic::set_has_index() {
  208. _has_bits_[0] |= 0x00000002u;
  209. }
  210. inline void rawpic::clear_has_index() {
  211. _has_bits_[0] &= ~0x00000002u;
  212. }
  213. inline void rawpic::clear_index() {
  214. index_ = 0;
  215. clear_has_index();
  216. }
  217. inline ::google::protobuf::int32 rawpic::index() const {
  218. // @@protoc_insertion_point(field_get:iv.vision.rawpic.index)
  219. return index_;
  220. }
  221. inline void rawpic::set_index(::google::protobuf::int32 value) {
  222. set_has_index();
  223. index_ = value;
  224. // @@protoc_insertion_point(field_set:iv.vision.rawpic.index)
  225. }
  226. // optional int32 type = 3;
  227. inline bool rawpic::has_type() const {
  228. return (_has_bits_[0] & 0x00000004u) != 0;
  229. }
  230. inline void rawpic::set_has_type() {
  231. _has_bits_[0] |= 0x00000004u;
  232. }
  233. inline void rawpic::clear_has_type() {
  234. _has_bits_[0] &= ~0x00000004u;
  235. }
  236. inline void rawpic::clear_type() {
  237. type_ = 0;
  238. clear_has_type();
  239. }
  240. inline ::google::protobuf::int32 rawpic::type() const {
  241. // @@protoc_insertion_point(field_get:iv.vision.rawpic.type)
  242. return type_;
  243. }
  244. inline void rawpic::set_type(::google::protobuf::int32 value) {
  245. set_has_type();
  246. type_ = value;
  247. // @@protoc_insertion_point(field_set:iv.vision.rawpic.type)
  248. }
  249. // optional int32 width = 4;
  250. inline bool rawpic::has_width() const {
  251. return (_has_bits_[0] & 0x00000008u) != 0;
  252. }
  253. inline void rawpic::set_has_width() {
  254. _has_bits_[0] |= 0x00000008u;
  255. }
  256. inline void rawpic::clear_has_width() {
  257. _has_bits_[0] &= ~0x00000008u;
  258. }
  259. inline void rawpic::clear_width() {
  260. width_ = 0;
  261. clear_has_width();
  262. }
  263. inline ::google::protobuf::int32 rawpic::width() const {
  264. // @@protoc_insertion_point(field_get:iv.vision.rawpic.width)
  265. return width_;
  266. }
  267. inline void rawpic::set_width(::google::protobuf::int32 value) {
  268. set_has_width();
  269. width_ = value;
  270. // @@protoc_insertion_point(field_set:iv.vision.rawpic.width)
  271. }
  272. // optional int32 height = 5;
  273. inline bool rawpic::has_height() const {
  274. return (_has_bits_[0] & 0x00000010u) != 0;
  275. }
  276. inline void rawpic::set_has_height() {
  277. _has_bits_[0] |= 0x00000010u;
  278. }
  279. inline void rawpic::clear_has_height() {
  280. _has_bits_[0] &= ~0x00000010u;
  281. }
  282. inline void rawpic::clear_height() {
  283. height_ = 0;
  284. clear_has_height();
  285. }
  286. inline ::google::protobuf::int32 rawpic::height() const {
  287. // @@protoc_insertion_point(field_get:iv.vision.rawpic.height)
  288. return height_;
  289. }
  290. inline void rawpic::set_height(::google::protobuf::int32 value) {
  291. set_has_height();
  292. height_ = value;
  293. // @@protoc_insertion_point(field_set:iv.vision.rawpic.height)
  294. }
  295. // optional int32 elemsize = 6;
  296. inline bool rawpic::has_elemsize() const {
  297. return (_has_bits_[0] & 0x00000020u) != 0;
  298. }
  299. inline void rawpic::set_has_elemsize() {
  300. _has_bits_[0] |= 0x00000020u;
  301. }
  302. inline void rawpic::clear_has_elemsize() {
  303. _has_bits_[0] &= ~0x00000020u;
  304. }
  305. inline void rawpic::clear_elemsize() {
  306. elemsize_ = 0;
  307. clear_has_elemsize();
  308. }
  309. inline ::google::protobuf::int32 rawpic::elemsize() const {
  310. // @@protoc_insertion_point(field_get:iv.vision.rawpic.elemsize)
  311. return elemsize_;
  312. }
  313. inline void rawpic::set_elemsize(::google::protobuf::int32 value) {
  314. set_has_elemsize();
  315. elemsize_ = value;
  316. // @@protoc_insertion_point(field_set:iv.vision.rawpic.elemsize)
  317. }
  318. // optional int32 mattype = 7;
  319. inline bool rawpic::has_mattype() const {
  320. return (_has_bits_[0] & 0x00000040u) != 0;
  321. }
  322. inline void rawpic::set_has_mattype() {
  323. _has_bits_[0] |= 0x00000040u;
  324. }
  325. inline void rawpic::clear_has_mattype() {
  326. _has_bits_[0] &= ~0x00000040u;
  327. }
  328. inline void rawpic::clear_mattype() {
  329. mattype_ = 0;
  330. clear_has_mattype();
  331. }
  332. inline ::google::protobuf::int32 rawpic::mattype() const {
  333. // @@protoc_insertion_point(field_get:iv.vision.rawpic.mattype)
  334. return mattype_;
  335. }
  336. inline void rawpic::set_mattype(::google::protobuf::int32 value) {
  337. set_has_mattype();
  338. mattype_ = value;
  339. // @@protoc_insertion_point(field_set:iv.vision.rawpic.mattype)
  340. }
  341. // optional bytes picdata = 8;
  342. inline bool rawpic::has_picdata() const {
  343. return (_has_bits_[0] & 0x00000080u) != 0;
  344. }
  345. inline void rawpic::set_has_picdata() {
  346. _has_bits_[0] |= 0x00000080u;
  347. }
  348. inline void rawpic::clear_has_picdata() {
  349. _has_bits_[0] &= ~0x00000080u;
  350. }
  351. inline void rawpic::clear_picdata() {
  352. picdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  353. clear_has_picdata();
  354. }
  355. inline const ::std::string& rawpic::picdata() const {
  356. // @@protoc_insertion_point(field_get:iv.vision.rawpic.picdata)
  357. return picdata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  358. }
  359. inline void rawpic::set_picdata(const ::std::string& value) {
  360. set_has_picdata();
  361. picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  362. // @@protoc_insertion_point(field_set:iv.vision.rawpic.picdata)
  363. }
  364. inline void rawpic::set_picdata(const char* value) {
  365. set_has_picdata();
  366. picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  367. // @@protoc_insertion_point(field_set_char:iv.vision.rawpic.picdata)
  368. }
  369. inline void rawpic::set_picdata(const void* value, size_t size) {
  370. set_has_picdata();
  371. picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  372. ::std::string(reinterpret_cast<const char*>(value), size));
  373. // @@protoc_insertion_point(field_set_pointer:iv.vision.rawpic.picdata)
  374. }
  375. inline ::std::string* rawpic::mutable_picdata() {
  376. set_has_picdata();
  377. // @@protoc_insertion_point(field_mutable:iv.vision.rawpic.picdata)
  378. return picdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  379. }
  380. inline ::std::string* rawpic::release_picdata() {
  381. // @@protoc_insertion_point(field_release:iv.vision.rawpic.picdata)
  382. clear_has_picdata();
  383. return picdata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  384. }
  385. inline void rawpic::set_allocated_picdata(::std::string* picdata) {
  386. if (picdata != NULL) {
  387. set_has_picdata();
  388. } else {
  389. clear_has_picdata();
  390. }
  391. picdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), picdata);
  392. // @@protoc_insertion_point(field_set_allocated:iv.vision.rawpic.picdata)
  393. }
  394. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  395. // @@protoc_insertion_point(namespace_scope)
  396. } // namespace vision
  397. } // namespace iv
  398. // @@protoc_insertion_point(global_scope)
  399. #endif // PROTOBUF_rawpic_2eproto__INCLUDED