protobuf.pb.h 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: protobuf.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/unknown_field_set.h>
  30. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_protobuf_2eproto
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal {
  35. class AnyMetadata;
  36. } // namespace internal
  37. PROTOBUF_NAMESPACE_CLOSE
  38. // Internal implementation detail -- do not use these members.
  39. struct TableStruct_protobuf_2eproto {
  40. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  41. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  48. static const uint32_t offsets[];
  49. };
  50. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protobuf_2eproto;
  51. namespace namespace_uploadpic {
  52. class Chunk;
  53. struct ChunkDefaultTypeInternal;
  54. extern ChunkDefaultTypeInternal _Chunk_default_instance_;
  55. class ChunkOneLine;
  56. struct ChunkOneLineDefaultTypeInternal;
  57. extern ChunkOneLineDefaultTypeInternal _ChunkOneLine_default_instance_;
  58. class Reply;
  59. struct ReplyDefaultTypeInternal;
  60. extern ReplyDefaultTypeInternal _Reply_default_instance_;
  61. class Request;
  62. struct RequestDefaultTypeInternal;
  63. extern RequestDefaultTypeInternal _Request_default_instance_;
  64. class Response;
  65. struct ResponseDefaultTypeInternal;
  66. extern ResponseDefaultTypeInternal _Response_default_instance_;
  67. } // namespace namespace_uploadpic
  68. PROTOBUF_NAMESPACE_OPEN
  69. template<> ::namespace_uploadpic::Chunk* Arena::CreateMaybeMessage<::namespace_uploadpic::Chunk>(Arena*);
  70. template<> ::namespace_uploadpic::ChunkOneLine* Arena::CreateMaybeMessage<::namespace_uploadpic::ChunkOneLine>(Arena*);
  71. template<> ::namespace_uploadpic::Reply* Arena::CreateMaybeMessage<::namespace_uploadpic::Reply>(Arena*);
  72. template<> ::namespace_uploadpic::Request* Arena::CreateMaybeMessage<::namespace_uploadpic::Request>(Arena*);
  73. template<> ::namespace_uploadpic::Response* Arena::CreateMaybeMessage<::namespace_uploadpic::Response>(Arena*);
  74. PROTOBUF_NAMESPACE_CLOSE
  75. namespace namespace_uploadpic {
  76. // ===================================================================
  77. class Chunk final :
  78. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Chunk) */ {
  79. public:
  80. inline Chunk() : Chunk(nullptr) {}
  81. ~Chunk() override;
  82. explicit constexpr Chunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  83. Chunk(const Chunk& from);
  84. Chunk(Chunk&& from) noexcept
  85. : Chunk() {
  86. *this = ::std::move(from);
  87. }
  88. inline Chunk& operator=(const Chunk& from) {
  89. CopyFrom(from);
  90. return *this;
  91. }
  92. inline Chunk& operator=(Chunk&& from) noexcept {
  93. if (this == &from) return *this;
  94. if (GetOwningArena() == from.GetOwningArena()
  95. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  96. && GetOwningArena() != nullptr
  97. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  98. ) {
  99. InternalSwap(&from);
  100. } else {
  101. CopyFrom(from);
  102. }
  103. return *this;
  104. }
  105. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  106. return GetDescriptor();
  107. }
  108. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  109. return default_instance().GetMetadata().descriptor;
  110. }
  111. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  112. return default_instance().GetMetadata().reflection;
  113. }
  114. static const Chunk& default_instance() {
  115. return *internal_default_instance();
  116. }
  117. static inline const Chunk* internal_default_instance() {
  118. return reinterpret_cast<const Chunk*>(
  119. &_Chunk_default_instance_);
  120. }
  121. static constexpr int kIndexInFileMessages =
  122. 0;
  123. friend void swap(Chunk& a, Chunk& b) {
  124. a.Swap(&b);
  125. }
  126. inline void Swap(Chunk* other) {
  127. if (other == this) return;
  128. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  129. if (GetOwningArena() != nullptr &&
  130. GetOwningArena() == other->GetOwningArena()) {
  131. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  132. if (GetOwningArena() == other->GetOwningArena()) {
  133. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  134. InternalSwap(other);
  135. } else {
  136. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  137. }
  138. }
  139. void UnsafeArenaSwap(Chunk* other) {
  140. if (other == this) return;
  141. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  142. InternalSwap(other);
  143. }
  144. // implements Message ----------------------------------------------
  145. Chunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  146. return CreateMaybeMessage<Chunk>(arena);
  147. }
  148. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  149. void CopyFrom(const Chunk& from);
  150. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  151. void MergeFrom(const Chunk& from);
  152. private:
  153. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  154. public:
  155. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  156. bool IsInitialized() const final;
  157. size_t ByteSizeLong() const final;
  158. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  159. uint8_t* _InternalSerialize(
  160. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  161. int GetCachedSize() const final { return _cached_size_.Get(); }
  162. private:
  163. void SharedCtor();
  164. void SharedDtor();
  165. void SetCachedSize(int size) const final;
  166. void InternalSwap(Chunk* other);
  167. private:
  168. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  169. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  170. return "namespace_uploadpic.Chunk";
  171. }
  172. protected:
  173. explicit Chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  174. bool is_message_owned = false);
  175. private:
  176. static void ArenaDtor(void* object);
  177. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  178. public:
  179. static const ClassData _class_data_;
  180. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  181. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  182. // nested types ----------------------------------------------------
  183. // accessors -------------------------------------------------------
  184. enum : int {
  185. kBuffFieldNumber = 1,
  186. kNameFieldNumber = 2,
  187. kIdFieldNumber = 3,
  188. };
  189. // string buff = 1;
  190. void clear_buff();
  191. const std::string& buff() const;
  192. template <typename ArgT0 = const std::string&, typename... ArgT>
  193. void set_buff(ArgT0&& arg0, ArgT... args);
  194. std::string* mutable_buff();
  195. PROTOBUF_NODISCARD std::string* release_buff();
  196. void set_allocated_buff(std::string* buff);
  197. private:
  198. const std::string& _internal_buff() const;
  199. inline PROTOBUF_ALWAYS_INLINE void _internal_set_buff(const std::string& value);
  200. std::string* _internal_mutable_buff();
  201. public:
  202. // string name = 2;
  203. void clear_name();
  204. const std::string& name() const;
  205. template <typename ArgT0 = const std::string&, typename... ArgT>
  206. void set_name(ArgT0&& arg0, ArgT... args);
  207. std::string* mutable_name();
  208. PROTOBUF_NODISCARD std::string* release_name();
  209. void set_allocated_name(std::string* name);
  210. private:
  211. const std::string& _internal_name() const;
  212. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  213. std::string* _internal_mutable_name();
  214. public:
  215. // int32 id = 3;
  216. void clear_id();
  217. int32_t id() const;
  218. void set_id(int32_t value);
  219. private:
  220. int32_t _internal_id() const;
  221. void _internal_set_id(int32_t value);
  222. public:
  223. // @@protoc_insertion_point(class_scope:namespace_uploadpic.Chunk)
  224. private:
  225. class _Internal;
  226. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  227. typedef void InternalArenaConstructable_;
  228. typedef void DestructorSkippable_;
  229. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buff_;
  230. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  231. int32_t id_;
  232. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  233. friend struct ::TableStruct_protobuf_2eproto;
  234. };
  235. // -------------------------------------------------------------------
  236. class ChunkOneLine final :
  237. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.ChunkOneLine) */ {
  238. public:
  239. inline ChunkOneLine() : ChunkOneLine(nullptr) {}
  240. ~ChunkOneLine() override;
  241. explicit constexpr ChunkOneLine(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  242. ChunkOneLine(const ChunkOneLine& from);
  243. ChunkOneLine(ChunkOneLine&& from) noexcept
  244. : ChunkOneLine() {
  245. *this = ::std::move(from);
  246. }
  247. inline ChunkOneLine& operator=(const ChunkOneLine& from) {
  248. CopyFrom(from);
  249. return *this;
  250. }
  251. inline ChunkOneLine& operator=(ChunkOneLine&& from) noexcept {
  252. if (this == &from) return *this;
  253. if (GetOwningArena() == from.GetOwningArena()
  254. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  255. && GetOwningArena() != nullptr
  256. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  257. ) {
  258. InternalSwap(&from);
  259. } else {
  260. CopyFrom(from);
  261. }
  262. return *this;
  263. }
  264. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  265. return GetDescriptor();
  266. }
  267. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  268. return default_instance().GetMetadata().descriptor;
  269. }
  270. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  271. return default_instance().GetMetadata().reflection;
  272. }
  273. static const ChunkOneLine& default_instance() {
  274. return *internal_default_instance();
  275. }
  276. static inline const ChunkOneLine* internal_default_instance() {
  277. return reinterpret_cast<const ChunkOneLine*>(
  278. &_ChunkOneLine_default_instance_);
  279. }
  280. static constexpr int kIndexInFileMessages =
  281. 1;
  282. friend void swap(ChunkOneLine& a, ChunkOneLine& b) {
  283. a.Swap(&b);
  284. }
  285. inline void Swap(ChunkOneLine* other) {
  286. if (other == this) return;
  287. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  288. if (GetOwningArena() != nullptr &&
  289. GetOwningArena() == other->GetOwningArena()) {
  290. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  291. if (GetOwningArena() == other->GetOwningArena()) {
  292. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  293. InternalSwap(other);
  294. } else {
  295. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  296. }
  297. }
  298. void UnsafeArenaSwap(ChunkOneLine* other) {
  299. if (other == this) return;
  300. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  301. InternalSwap(other);
  302. }
  303. // implements Message ----------------------------------------------
  304. ChunkOneLine* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  305. return CreateMaybeMessage<ChunkOneLine>(arena);
  306. }
  307. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  308. void CopyFrom(const ChunkOneLine& from);
  309. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  310. void MergeFrom(const ChunkOneLine& from);
  311. private:
  312. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  313. public:
  314. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  315. bool IsInitialized() const final;
  316. size_t ByteSizeLong() const final;
  317. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  318. uint8_t* _InternalSerialize(
  319. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  320. int GetCachedSize() const final { return _cached_size_.Get(); }
  321. private:
  322. void SharedCtor();
  323. void SharedDtor();
  324. void SetCachedSize(int size) const final;
  325. void InternalSwap(ChunkOneLine* other);
  326. private:
  327. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  328. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  329. return "namespace_uploadpic.ChunkOneLine";
  330. }
  331. protected:
  332. explicit ChunkOneLine(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  333. bool is_message_owned = false);
  334. private:
  335. static void ArenaDtor(void* object);
  336. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  337. public:
  338. static const ClassData _class_data_;
  339. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  340. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  341. // nested types ----------------------------------------------------
  342. // accessors -------------------------------------------------------
  343. enum : int {
  344. kDatabufFieldNumber = 1,
  345. };
  346. // .namespace_uploadpic.Chunk databuf = 1;
  347. bool has_databuf() const;
  348. private:
  349. bool _internal_has_databuf() const;
  350. public:
  351. void clear_databuf();
  352. const ::namespace_uploadpic::Chunk& databuf() const;
  353. PROTOBUF_NODISCARD ::namespace_uploadpic::Chunk* release_databuf();
  354. ::namespace_uploadpic::Chunk* mutable_databuf();
  355. void set_allocated_databuf(::namespace_uploadpic::Chunk* databuf);
  356. private:
  357. const ::namespace_uploadpic::Chunk& _internal_databuf() const;
  358. ::namespace_uploadpic::Chunk* _internal_mutable_databuf();
  359. public:
  360. void unsafe_arena_set_allocated_databuf(
  361. ::namespace_uploadpic::Chunk* databuf);
  362. ::namespace_uploadpic::Chunk* unsafe_arena_release_databuf();
  363. // @@protoc_insertion_point(class_scope:namespace_uploadpic.ChunkOneLine)
  364. private:
  365. class _Internal;
  366. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  367. typedef void InternalArenaConstructable_;
  368. typedef void DestructorSkippable_;
  369. ::namespace_uploadpic::Chunk* databuf_;
  370. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  371. friend struct ::TableStruct_protobuf_2eproto;
  372. };
  373. // -------------------------------------------------------------------
  374. class Reply final :
  375. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Reply) */ {
  376. public:
  377. inline Reply() : Reply(nullptr) {}
  378. ~Reply() override;
  379. explicit constexpr Reply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  380. Reply(const Reply& from);
  381. Reply(Reply&& from) noexcept
  382. : Reply() {
  383. *this = ::std::move(from);
  384. }
  385. inline Reply& operator=(const Reply& from) {
  386. CopyFrom(from);
  387. return *this;
  388. }
  389. inline Reply& operator=(Reply&& from) noexcept {
  390. if (this == &from) return *this;
  391. if (GetOwningArena() == from.GetOwningArena()
  392. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  393. && GetOwningArena() != nullptr
  394. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  395. ) {
  396. InternalSwap(&from);
  397. } else {
  398. CopyFrom(from);
  399. }
  400. return *this;
  401. }
  402. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  403. return GetDescriptor();
  404. }
  405. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  406. return default_instance().GetMetadata().descriptor;
  407. }
  408. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  409. return default_instance().GetMetadata().reflection;
  410. }
  411. static const Reply& default_instance() {
  412. return *internal_default_instance();
  413. }
  414. static inline const Reply* internal_default_instance() {
  415. return reinterpret_cast<const Reply*>(
  416. &_Reply_default_instance_);
  417. }
  418. static constexpr int kIndexInFileMessages =
  419. 2;
  420. friend void swap(Reply& a, Reply& b) {
  421. a.Swap(&b);
  422. }
  423. inline void Swap(Reply* other) {
  424. if (other == this) return;
  425. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  426. if (GetOwningArena() != nullptr &&
  427. GetOwningArena() == other->GetOwningArena()) {
  428. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  429. if (GetOwningArena() == other->GetOwningArena()) {
  430. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  431. InternalSwap(other);
  432. } else {
  433. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  434. }
  435. }
  436. void UnsafeArenaSwap(Reply* other) {
  437. if (other == this) return;
  438. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  439. InternalSwap(other);
  440. }
  441. // implements Message ----------------------------------------------
  442. Reply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  443. return CreateMaybeMessage<Reply>(arena);
  444. }
  445. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  446. void CopyFrom(const Reply& from);
  447. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  448. void MergeFrom(const Reply& from);
  449. private:
  450. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  451. public:
  452. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  453. bool IsInitialized() const final;
  454. size_t ByteSizeLong() const final;
  455. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  456. uint8_t* _InternalSerialize(
  457. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  458. int GetCachedSize() const final { return _cached_size_.Get(); }
  459. private:
  460. void SharedCtor();
  461. void SharedDtor();
  462. void SetCachedSize(int size) const final;
  463. void InternalSwap(Reply* other);
  464. private:
  465. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  466. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  467. return "namespace_uploadpic.Reply";
  468. }
  469. protected:
  470. explicit Reply(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  471. bool is_message_owned = false);
  472. private:
  473. static void ArenaDtor(void* object);
  474. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  475. public:
  476. static const ClassData _class_data_;
  477. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  478. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  479. // nested types ----------------------------------------------------
  480. // accessors -------------------------------------------------------
  481. enum : int {
  482. kResultFieldNumber = 1,
  483. };
  484. // repeated string result = 1;
  485. int result_size() const;
  486. private:
  487. int _internal_result_size() const;
  488. public:
  489. void clear_result();
  490. const std::string& result(int index) const;
  491. std::string* mutable_result(int index);
  492. void set_result(int index, const std::string& value);
  493. void set_result(int index, std::string&& value);
  494. void set_result(int index, const char* value);
  495. void set_result(int index, const char* value, size_t size);
  496. std::string* add_result();
  497. void add_result(const std::string& value);
  498. void add_result(std::string&& value);
  499. void add_result(const char* value);
  500. void add_result(const char* value, size_t size);
  501. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result() const;
  502. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result();
  503. private:
  504. const std::string& _internal_result(int index) const;
  505. std::string* _internal_add_result();
  506. public:
  507. // @@protoc_insertion_point(class_scope:namespace_uploadpic.Reply)
  508. private:
  509. class _Internal;
  510. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  511. typedef void InternalArenaConstructable_;
  512. typedef void DestructorSkippable_;
  513. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_;
  514. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  515. friend struct ::TableStruct_protobuf_2eproto;
  516. };
  517. // -------------------------------------------------------------------
  518. class Request final :
  519. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Request) */ {
  520. public:
  521. inline Request() : Request(nullptr) {}
  522. ~Request() override;
  523. explicit constexpr Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  524. Request(const Request& from);
  525. Request(Request&& from) noexcept
  526. : Request() {
  527. *this = ::std::move(from);
  528. }
  529. inline Request& operator=(const Request& from) {
  530. CopyFrom(from);
  531. return *this;
  532. }
  533. inline Request& operator=(Request&& from) noexcept {
  534. if (this == &from) return *this;
  535. if (GetOwningArena() == from.GetOwningArena()
  536. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  537. && GetOwningArena() != nullptr
  538. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  539. ) {
  540. InternalSwap(&from);
  541. } else {
  542. CopyFrom(from);
  543. }
  544. return *this;
  545. }
  546. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  547. return GetDescriptor();
  548. }
  549. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  550. return default_instance().GetMetadata().descriptor;
  551. }
  552. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  553. return default_instance().GetMetadata().reflection;
  554. }
  555. static const Request& default_instance() {
  556. return *internal_default_instance();
  557. }
  558. static inline const Request* internal_default_instance() {
  559. return reinterpret_cast<const Request*>(
  560. &_Request_default_instance_);
  561. }
  562. static constexpr int kIndexInFileMessages =
  563. 3;
  564. friend void swap(Request& a, Request& b) {
  565. a.Swap(&b);
  566. }
  567. inline void Swap(Request* other) {
  568. if (other == this) return;
  569. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  570. if (GetOwningArena() != nullptr &&
  571. GetOwningArena() == other->GetOwningArena()) {
  572. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  573. if (GetOwningArena() == other->GetOwningArena()) {
  574. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  575. InternalSwap(other);
  576. } else {
  577. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  578. }
  579. }
  580. void UnsafeArenaSwap(Request* other) {
  581. if (other == this) return;
  582. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  583. InternalSwap(other);
  584. }
  585. // implements Message ----------------------------------------------
  586. Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  587. return CreateMaybeMessage<Request>(arena);
  588. }
  589. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  590. void CopyFrom(const Request& from);
  591. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  592. void MergeFrom(const Request& from);
  593. private:
  594. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  595. public:
  596. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  597. bool IsInitialized() const final;
  598. size_t ByteSizeLong() const final;
  599. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  600. uint8_t* _InternalSerialize(
  601. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  602. int GetCachedSize() const final { return _cached_size_.Get(); }
  603. private:
  604. void SharedCtor();
  605. void SharedDtor();
  606. void SetCachedSize(int size) const final;
  607. void InternalSwap(Request* other);
  608. private:
  609. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  610. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  611. return "namespace_uploadpic.Request";
  612. }
  613. protected:
  614. explicit Request(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  615. bool is_message_owned = false);
  616. private:
  617. static void ArenaDtor(void* object);
  618. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  619. public:
  620. static const ClassData _class_data_;
  621. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  622. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  623. // nested types ----------------------------------------------------
  624. // accessors -------------------------------------------------------
  625. enum : int {
  626. kNameFieldNumber = 1,
  627. };
  628. // string name = 1;
  629. void clear_name();
  630. const std::string& name() const;
  631. template <typename ArgT0 = const std::string&, typename... ArgT>
  632. void set_name(ArgT0&& arg0, ArgT... args);
  633. std::string* mutable_name();
  634. PROTOBUF_NODISCARD std::string* release_name();
  635. void set_allocated_name(std::string* name);
  636. private:
  637. const std::string& _internal_name() const;
  638. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  639. std::string* _internal_mutable_name();
  640. public:
  641. // @@protoc_insertion_point(class_scope:namespace_uploadpic.Request)
  642. private:
  643. class _Internal;
  644. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  645. typedef void InternalArenaConstructable_;
  646. typedef void DestructorSkippable_;
  647. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  648. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  649. friend struct ::TableStruct_protobuf_2eproto;
  650. };
  651. // -------------------------------------------------------------------
  652. class Response final :
  653. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Response) */ {
  654. public:
  655. inline Response() : Response(nullptr) {}
  656. ~Response() override;
  657. explicit constexpr Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  658. Response(const Response& from);
  659. Response(Response&& from) noexcept
  660. : Response() {
  661. *this = ::std::move(from);
  662. }
  663. inline Response& operator=(const Response& from) {
  664. CopyFrom(from);
  665. return *this;
  666. }
  667. inline Response& operator=(Response&& from) noexcept {
  668. if (this == &from) return *this;
  669. if (GetOwningArena() == from.GetOwningArena()
  670. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  671. && GetOwningArena() != nullptr
  672. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  673. ) {
  674. InternalSwap(&from);
  675. } else {
  676. CopyFrom(from);
  677. }
  678. return *this;
  679. }
  680. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  681. return GetDescriptor();
  682. }
  683. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  684. return default_instance().GetMetadata().descriptor;
  685. }
  686. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  687. return default_instance().GetMetadata().reflection;
  688. }
  689. static const Response& default_instance() {
  690. return *internal_default_instance();
  691. }
  692. static inline const Response* internal_default_instance() {
  693. return reinterpret_cast<const Response*>(
  694. &_Response_default_instance_);
  695. }
  696. static constexpr int kIndexInFileMessages =
  697. 4;
  698. friend void swap(Response& a, Response& b) {
  699. a.Swap(&b);
  700. }
  701. inline void Swap(Response* other) {
  702. if (other == this) return;
  703. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  704. if (GetOwningArena() != nullptr &&
  705. GetOwningArena() == other->GetOwningArena()) {
  706. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  707. if (GetOwningArena() == other->GetOwningArena()) {
  708. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  709. InternalSwap(other);
  710. } else {
  711. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  712. }
  713. }
  714. void UnsafeArenaSwap(Response* other) {
  715. if (other == this) return;
  716. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  717. InternalSwap(other);
  718. }
  719. // implements Message ----------------------------------------------
  720. Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  721. return CreateMaybeMessage<Response>(arena);
  722. }
  723. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  724. void CopyFrom(const Response& from);
  725. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  726. void MergeFrom(const Response& from);
  727. private:
  728. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  729. public:
  730. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  731. bool IsInitialized() const final;
  732. size_t ByteSizeLong() const final;
  733. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  734. uint8_t* _InternalSerialize(
  735. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  736. int GetCachedSize() const final { return _cached_size_.Get(); }
  737. private:
  738. void SharedCtor();
  739. void SharedDtor();
  740. void SetCachedSize(int size) const final;
  741. void InternalSwap(Response* other);
  742. private:
  743. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  744. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  745. return "namespace_uploadpic.Response";
  746. }
  747. protected:
  748. explicit Response(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  749. bool is_message_owned = false);
  750. private:
  751. static void ArenaDtor(void* object);
  752. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  753. public:
  754. static const ClassData _class_data_;
  755. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  756. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  757. // nested types ----------------------------------------------------
  758. // accessors -------------------------------------------------------
  759. enum : int {
  760. kResultFieldNumber = 1,
  761. };
  762. // repeated string result = 1;
  763. int result_size() const;
  764. private:
  765. int _internal_result_size() const;
  766. public:
  767. void clear_result();
  768. const std::string& result(int index) const;
  769. std::string* mutable_result(int index);
  770. void set_result(int index, const std::string& value);
  771. void set_result(int index, std::string&& value);
  772. void set_result(int index, const char* value);
  773. void set_result(int index, const char* value, size_t size);
  774. std::string* add_result();
  775. void add_result(const std::string& value);
  776. void add_result(std::string&& value);
  777. void add_result(const char* value);
  778. void add_result(const char* value, size_t size);
  779. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result() const;
  780. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result();
  781. private:
  782. const std::string& _internal_result(int index) const;
  783. std::string* _internal_add_result();
  784. public:
  785. // @@protoc_insertion_point(class_scope:namespace_uploadpic.Response)
  786. private:
  787. class _Internal;
  788. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  789. typedef void InternalArenaConstructable_;
  790. typedef void DestructorSkippable_;
  791. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_;
  792. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  793. friend struct ::TableStruct_protobuf_2eproto;
  794. };
  795. // ===================================================================
  796. // ===================================================================
  797. #ifdef __GNUC__
  798. #pragma GCC diagnostic push
  799. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  800. #endif // __GNUC__
  801. // Chunk
  802. // string buff = 1;
  803. inline void Chunk::clear_buff() {
  804. buff_.ClearToEmpty();
  805. }
  806. inline const std::string& Chunk::buff() const {
  807. // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.buff)
  808. return _internal_buff();
  809. }
  810. template <typename ArgT0, typename... ArgT>
  811. inline PROTOBUF_ALWAYS_INLINE
  812. void Chunk::set_buff(ArgT0&& arg0, ArgT... args) {
  813. buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  814. // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.buff)
  815. }
  816. inline std::string* Chunk::mutable_buff() {
  817. std::string* _s = _internal_mutable_buff();
  818. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Chunk.buff)
  819. return _s;
  820. }
  821. inline const std::string& Chunk::_internal_buff() const {
  822. return buff_.Get();
  823. }
  824. inline void Chunk::_internal_set_buff(const std::string& value) {
  825. buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  826. }
  827. inline std::string* Chunk::_internal_mutable_buff() {
  828. return buff_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  829. }
  830. inline std::string* Chunk::release_buff() {
  831. // @@protoc_insertion_point(field_release:namespace_uploadpic.Chunk.buff)
  832. return buff_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  833. }
  834. inline void Chunk::set_allocated_buff(std::string* buff) {
  835. if (buff != nullptr) {
  836. } else {
  837. }
  838. buff_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buff,
  839. GetArenaForAllocation());
  840. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  841. if (buff_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  842. buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  843. }
  844. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  845. // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Chunk.buff)
  846. }
  847. // string name = 2;
  848. inline void Chunk::clear_name() {
  849. name_.ClearToEmpty();
  850. }
  851. inline const std::string& Chunk::name() const {
  852. // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.name)
  853. return _internal_name();
  854. }
  855. template <typename ArgT0, typename... ArgT>
  856. inline PROTOBUF_ALWAYS_INLINE
  857. void Chunk::set_name(ArgT0&& arg0, ArgT... args) {
  858. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  859. // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.name)
  860. }
  861. inline std::string* Chunk::mutable_name() {
  862. std::string* _s = _internal_mutable_name();
  863. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Chunk.name)
  864. return _s;
  865. }
  866. inline const std::string& Chunk::_internal_name() const {
  867. return name_.Get();
  868. }
  869. inline void Chunk::_internal_set_name(const std::string& value) {
  870. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  871. }
  872. inline std::string* Chunk::_internal_mutable_name() {
  873. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  874. }
  875. inline std::string* Chunk::release_name() {
  876. // @@protoc_insertion_point(field_release:namespace_uploadpic.Chunk.name)
  877. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  878. }
  879. inline void Chunk::set_allocated_name(std::string* name) {
  880. if (name != nullptr) {
  881. } else {
  882. }
  883. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  884. GetArenaForAllocation());
  885. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  886. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  887. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  888. }
  889. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  890. // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Chunk.name)
  891. }
  892. // int32 id = 3;
  893. inline void Chunk::clear_id() {
  894. id_ = 0;
  895. }
  896. inline int32_t Chunk::_internal_id() const {
  897. return id_;
  898. }
  899. inline int32_t Chunk::id() const {
  900. // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.id)
  901. return _internal_id();
  902. }
  903. inline void Chunk::_internal_set_id(int32_t value) {
  904. id_ = value;
  905. }
  906. inline void Chunk::set_id(int32_t value) {
  907. _internal_set_id(value);
  908. // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.id)
  909. }
  910. // -------------------------------------------------------------------
  911. // ChunkOneLine
  912. // .namespace_uploadpic.Chunk databuf = 1;
  913. inline bool ChunkOneLine::_internal_has_databuf() const {
  914. return this != internal_default_instance() && databuf_ != nullptr;
  915. }
  916. inline bool ChunkOneLine::has_databuf() const {
  917. return _internal_has_databuf();
  918. }
  919. inline void ChunkOneLine::clear_databuf() {
  920. if (GetArenaForAllocation() == nullptr && databuf_ != nullptr) {
  921. delete databuf_;
  922. }
  923. databuf_ = nullptr;
  924. }
  925. inline const ::namespace_uploadpic::Chunk& ChunkOneLine::_internal_databuf() const {
  926. const ::namespace_uploadpic::Chunk* p = databuf_;
  927. return p != nullptr ? *p : reinterpret_cast<const ::namespace_uploadpic::Chunk&>(
  928. ::namespace_uploadpic::_Chunk_default_instance_);
  929. }
  930. inline const ::namespace_uploadpic::Chunk& ChunkOneLine::databuf() const {
  931. // @@protoc_insertion_point(field_get:namespace_uploadpic.ChunkOneLine.databuf)
  932. return _internal_databuf();
  933. }
  934. inline void ChunkOneLine::unsafe_arena_set_allocated_databuf(
  935. ::namespace_uploadpic::Chunk* databuf) {
  936. if (GetArenaForAllocation() == nullptr) {
  937. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(databuf_);
  938. }
  939. databuf_ = databuf;
  940. if (databuf) {
  941. } else {
  942. }
  943. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:namespace_uploadpic.ChunkOneLine.databuf)
  944. }
  945. inline ::namespace_uploadpic::Chunk* ChunkOneLine::release_databuf() {
  946. ::namespace_uploadpic::Chunk* temp = databuf_;
  947. databuf_ = nullptr;
  948. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  949. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  950. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  951. if (GetArenaForAllocation() == nullptr) { delete old; }
  952. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  953. if (GetArenaForAllocation() != nullptr) {
  954. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  955. }
  956. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  957. return temp;
  958. }
  959. inline ::namespace_uploadpic::Chunk* ChunkOneLine::unsafe_arena_release_databuf() {
  960. // @@protoc_insertion_point(field_release:namespace_uploadpic.ChunkOneLine.databuf)
  961. ::namespace_uploadpic::Chunk* temp = databuf_;
  962. databuf_ = nullptr;
  963. return temp;
  964. }
  965. inline ::namespace_uploadpic::Chunk* ChunkOneLine::_internal_mutable_databuf() {
  966. if (databuf_ == nullptr) {
  967. auto* p = CreateMaybeMessage<::namespace_uploadpic::Chunk>(GetArenaForAllocation());
  968. databuf_ = p;
  969. }
  970. return databuf_;
  971. }
  972. inline ::namespace_uploadpic::Chunk* ChunkOneLine::mutable_databuf() {
  973. ::namespace_uploadpic::Chunk* _msg = _internal_mutable_databuf();
  974. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.ChunkOneLine.databuf)
  975. return _msg;
  976. }
  977. inline void ChunkOneLine::set_allocated_databuf(::namespace_uploadpic::Chunk* databuf) {
  978. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  979. if (message_arena == nullptr) {
  980. delete databuf_;
  981. }
  982. if (databuf) {
  983. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  984. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::namespace_uploadpic::Chunk>::GetOwningArena(databuf);
  985. if (message_arena != submessage_arena) {
  986. databuf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  987. message_arena, databuf, submessage_arena);
  988. }
  989. } else {
  990. }
  991. databuf_ = databuf;
  992. // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.ChunkOneLine.databuf)
  993. }
  994. // -------------------------------------------------------------------
  995. // Reply
  996. // repeated string result = 1;
  997. inline int Reply::_internal_result_size() const {
  998. return result_.size();
  999. }
  1000. inline int Reply::result_size() const {
  1001. return _internal_result_size();
  1002. }
  1003. inline void Reply::clear_result() {
  1004. result_.Clear();
  1005. }
  1006. inline std::string* Reply::add_result() {
  1007. std::string* _s = _internal_add_result();
  1008. // @@protoc_insertion_point(field_add_mutable:namespace_uploadpic.Reply.result)
  1009. return _s;
  1010. }
  1011. inline const std::string& Reply::_internal_result(int index) const {
  1012. return result_.Get(index);
  1013. }
  1014. inline const std::string& Reply::result(int index) const {
  1015. // @@protoc_insertion_point(field_get:namespace_uploadpic.Reply.result)
  1016. return _internal_result(index);
  1017. }
  1018. inline std::string* Reply::mutable_result(int index) {
  1019. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Reply.result)
  1020. return result_.Mutable(index);
  1021. }
  1022. inline void Reply::set_result(int index, const std::string& value) {
  1023. result_.Mutable(index)->assign(value);
  1024. // @@protoc_insertion_point(field_set:namespace_uploadpic.Reply.result)
  1025. }
  1026. inline void Reply::set_result(int index, std::string&& value) {
  1027. result_.Mutable(index)->assign(std::move(value));
  1028. // @@protoc_insertion_point(field_set:namespace_uploadpic.Reply.result)
  1029. }
  1030. inline void Reply::set_result(int index, const char* value) {
  1031. GOOGLE_DCHECK(value != nullptr);
  1032. result_.Mutable(index)->assign(value);
  1033. // @@protoc_insertion_point(field_set_char:namespace_uploadpic.Reply.result)
  1034. }
  1035. inline void Reply::set_result(int index, const char* value, size_t size) {
  1036. result_.Mutable(index)->assign(
  1037. reinterpret_cast<const char*>(value), size);
  1038. // @@protoc_insertion_point(field_set_pointer:namespace_uploadpic.Reply.result)
  1039. }
  1040. inline std::string* Reply::_internal_add_result() {
  1041. return result_.Add();
  1042. }
  1043. inline void Reply::add_result(const std::string& value) {
  1044. result_.Add()->assign(value);
  1045. // @@protoc_insertion_point(field_add:namespace_uploadpic.Reply.result)
  1046. }
  1047. inline void Reply::add_result(std::string&& value) {
  1048. result_.Add(std::move(value));
  1049. // @@protoc_insertion_point(field_add:namespace_uploadpic.Reply.result)
  1050. }
  1051. inline void Reply::add_result(const char* value) {
  1052. GOOGLE_DCHECK(value != nullptr);
  1053. result_.Add()->assign(value);
  1054. // @@protoc_insertion_point(field_add_char:namespace_uploadpic.Reply.result)
  1055. }
  1056. inline void Reply::add_result(const char* value, size_t size) {
  1057. result_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1058. // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Reply.result)
  1059. }
  1060. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1061. Reply::result() const {
  1062. // @@protoc_insertion_point(field_list:namespace_uploadpic.Reply.result)
  1063. return result_;
  1064. }
  1065. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1066. Reply::mutable_result() {
  1067. // @@protoc_insertion_point(field_mutable_list:namespace_uploadpic.Reply.result)
  1068. return &result_;
  1069. }
  1070. // -------------------------------------------------------------------
  1071. // Request
  1072. // string name = 1;
  1073. inline void Request::clear_name() {
  1074. name_.ClearToEmpty();
  1075. }
  1076. inline const std::string& Request::name() const {
  1077. // @@protoc_insertion_point(field_get:namespace_uploadpic.Request.name)
  1078. return _internal_name();
  1079. }
  1080. template <typename ArgT0, typename... ArgT>
  1081. inline PROTOBUF_ALWAYS_INLINE
  1082. void Request::set_name(ArgT0&& arg0, ArgT... args) {
  1083. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  1084. // @@protoc_insertion_point(field_set:namespace_uploadpic.Request.name)
  1085. }
  1086. inline std::string* Request::mutable_name() {
  1087. std::string* _s = _internal_mutable_name();
  1088. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Request.name)
  1089. return _s;
  1090. }
  1091. inline const std::string& Request::_internal_name() const {
  1092. return name_.Get();
  1093. }
  1094. inline void Request::_internal_set_name(const std::string& value) {
  1095. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  1096. }
  1097. inline std::string* Request::_internal_mutable_name() {
  1098. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  1099. }
  1100. inline std::string* Request::release_name() {
  1101. // @@protoc_insertion_point(field_release:namespace_uploadpic.Request.name)
  1102. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  1103. }
  1104. inline void Request::set_allocated_name(std::string* name) {
  1105. if (name != nullptr) {
  1106. } else {
  1107. }
  1108. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1109. GetArenaForAllocation());
  1110. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1111. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  1112. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1113. }
  1114. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1115. // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Request.name)
  1116. }
  1117. // -------------------------------------------------------------------
  1118. // Response
  1119. // repeated string result = 1;
  1120. inline int Response::_internal_result_size() const {
  1121. return result_.size();
  1122. }
  1123. inline int Response::result_size() const {
  1124. return _internal_result_size();
  1125. }
  1126. inline void Response::clear_result() {
  1127. result_.Clear();
  1128. }
  1129. inline std::string* Response::add_result() {
  1130. std::string* _s = _internal_add_result();
  1131. // @@protoc_insertion_point(field_add_mutable:namespace_uploadpic.Response.result)
  1132. return _s;
  1133. }
  1134. inline const std::string& Response::_internal_result(int index) const {
  1135. return result_.Get(index);
  1136. }
  1137. inline const std::string& Response::result(int index) const {
  1138. // @@protoc_insertion_point(field_get:namespace_uploadpic.Response.result)
  1139. return _internal_result(index);
  1140. }
  1141. inline std::string* Response::mutable_result(int index) {
  1142. // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Response.result)
  1143. return result_.Mutable(index);
  1144. }
  1145. inline void Response::set_result(int index, const std::string& value) {
  1146. result_.Mutable(index)->assign(value);
  1147. // @@protoc_insertion_point(field_set:namespace_uploadpic.Response.result)
  1148. }
  1149. inline void Response::set_result(int index, std::string&& value) {
  1150. result_.Mutable(index)->assign(std::move(value));
  1151. // @@protoc_insertion_point(field_set:namespace_uploadpic.Response.result)
  1152. }
  1153. inline void Response::set_result(int index, const char* value) {
  1154. GOOGLE_DCHECK(value != nullptr);
  1155. result_.Mutable(index)->assign(value);
  1156. // @@protoc_insertion_point(field_set_char:namespace_uploadpic.Response.result)
  1157. }
  1158. inline void Response::set_result(int index, const char* value, size_t size) {
  1159. result_.Mutable(index)->assign(
  1160. reinterpret_cast<const char*>(value), size);
  1161. // @@protoc_insertion_point(field_set_pointer:namespace_uploadpic.Response.result)
  1162. }
  1163. inline std::string* Response::_internal_add_result() {
  1164. return result_.Add();
  1165. }
  1166. inline void Response::add_result(const std::string& value) {
  1167. result_.Add()->assign(value);
  1168. // @@protoc_insertion_point(field_add:namespace_uploadpic.Response.result)
  1169. }
  1170. inline void Response::add_result(std::string&& value) {
  1171. result_.Add(std::move(value));
  1172. // @@protoc_insertion_point(field_add:namespace_uploadpic.Response.result)
  1173. }
  1174. inline void Response::add_result(const char* value) {
  1175. GOOGLE_DCHECK(value != nullptr);
  1176. result_.Add()->assign(value);
  1177. // @@protoc_insertion_point(field_add_char:namespace_uploadpic.Response.result)
  1178. }
  1179. inline void Response::add_result(const char* value, size_t size) {
  1180. result_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1181. // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Response.result)
  1182. }
  1183. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1184. Response::result() const {
  1185. // @@protoc_insertion_point(field_list:namespace_uploadpic.Response.result)
  1186. return result_;
  1187. }
  1188. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1189. Response::mutable_result() {
  1190. // @@protoc_insertion_point(field_mutable_list:namespace_uploadpic.Response.result)
  1191. return &result_;
  1192. }
  1193. #ifdef __GNUC__
  1194. #pragma GCC diagnostic pop
  1195. #endif // __GNUC__
  1196. // -------------------------------------------------------------------
  1197. // -------------------------------------------------------------------
  1198. // -------------------------------------------------------------------
  1199. // -------------------------------------------------------------------
  1200. // @@protoc_insertion_point(namespace_scope)
  1201. } // namespace namespace_uploadpic
  1202. // @@protoc_insertion_point(global_scope)
  1203. #include <google/protobuf/port_undef.inc>
  1204. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto