1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: protobuf.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3019000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata_lite.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_protobuf_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_protobuf_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const uint32_t offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protobuf_2eproto;
- namespace namespace_uploadpic {
- class Chunk;
- struct ChunkDefaultTypeInternal;
- extern ChunkDefaultTypeInternal _Chunk_default_instance_;
- class ChunkOneLine;
- struct ChunkOneLineDefaultTypeInternal;
- extern ChunkOneLineDefaultTypeInternal _ChunkOneLine_default_instance_;
- class Reply;
- struct ReplyDefaultTypeInternal;
- extern ReplyDefaultTypeInternal _Reply_default_instance_;
- class Request;
- struct RequestDefaultTypeInternal;
- extern RequestDefaultTypeInternal _Request_default_instance_;
- class Response;
- struct ResponseDefaultTypeInternal;
- extern ResponseDefaultTypeInternal _Response_default_instance_;
- } // namespace namespace_uploadpic
- PROTOBUF_NAMESPACE_OPEN
- template<> ::namespace_uploadpic::Chunk* Arena::CreateMaybeMessage<::namespace_uploadpic::Chunk>(Arena*);
- template<> ::namespace_uploadpic::ChunkOneLine* Arena::CreateMaybeMessage<::namespace_uploadpic::ChunkOneLine>(Arena*);
- template<> ::namespace_uploadpic::Reply* Arena::CreateMaybeMessage<::namespace_uploadpic::Reply>(Arena*);
- template<> ::namespace_uploadpic::Request* Arena::CreateMaybeMessage<::namespace_uploadpic::Request>(Arena*);
- template<> ::namespace_uploadpic::Response* Arena::CreateMaybeMessage<::namespace_uploadpic::Response>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace namespace_uploadpic {
- // ===================================================================
- class Chunk final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Chunk) */ {
- public:
- inline Chunk() : Chunk(nullptr) {}
- ~Chunk() override;
- explicit constexpr Chunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- Chunk(const Chunk& from);
- Chunk(Chunk&& from) noexcept
- : Chunk() {
- *this = ::std::move(from);
- }
- inline Chunk& operator=(const Chunk& from) {
- CopyFrom(from);
- return *this;
- }
- inline Chunk& operator=(Chunk&& from) noexcept {
- if (this == &from) return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const Chunk& default_instance() {
- return *internal_default_instance();
- }
- static inline const Chunk* internal_default_instance() {
- return reinterpret_cast<const Chunk*>(
- &_Chunk_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Chunk& a, Chunk& b) {
- a.Swap(&b);
- }
- inline void Swap(Chunk* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Chunk* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- Chunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<Chunk>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Chunk& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Chunk& from);
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Chunk* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "namespace_uploadpic.Chunk";
- }
- protected:
- explicit Chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kBuffFieldNumber = 1,
- kNameFieldNumber = 2,
- kIdFieldNumber = 3,
- };
- // string buff = 1;
- void clear_buff();
- const std::string& buff() const;
- template <typename ArgT0 = const std::string&, typename... ArgT>
- void set_buff(ArgT0&& arg0, ArgT... args);
- std::string* mutable_buff();
- PROTOBUF_NODISCARD std::string* release_buff();
- void set_allocated_buff(std::string* buff);
- private:
- const std::string& _internal_buff() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_buff(const std::string& value);
- std::string* _internal_mutable_buff();
- public:
- // string name = 2;
- void clear_name();
- const std::string& name() const;
- template <typename ArgT0 = const std::string&, typename... ArgT>
- void set_name(ArgT0&& arg0, ArgT... args);
- std::string* mutable_name();
- PROTOBUF_NODISCARD std::string* release_name();
- void set_allocated_name(std::string* name);
- private:
- const std::string& _internal_name() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
- std::string* _internal_mutable_name();
- public:
- // int32 id = 3;
- void clear_id();
- int32_t id() const;
- void set_id(int32_t value);
- private:
- int32_t _internal_id() const;
- void _internal_set_id(int32_t value);
- public:
- // @@protoc_insertion_point(class_scope:namespace_uploadpic.Chunk)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buff_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
- int32_t id_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_protobuf_2eproto;
- };
- // -------------------------------------------------------------------
- class ChunkOneLine final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.ChunkOneLine) */ {
- public:
- inline ChunkOneLine() : ChunkOneLine(nullptr) {}
- ~ChunkOneLine() override;
- explicit constexpr ChunkOneLine(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- ChunkOneLine(const ChunkOneLine& from);
- ChunkOneLine(ChunkOneLine&& from) noexcept
- : ChunkOneLine() {
- *this = ::std::move(from);
- }
- inline ChunkOneLine& operator=(const ChunkOneLine& from) {
- CopyFrom(from);
- return *this;
- }
- inline ChunkOneLine& operator=(ChunkOneLine&& from) noexcept {
- if (this == &from) return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const ChunkOneLine& default_instance() {
- return *internal_default_instance();
- }
- static inline const ChunkOneLine* internal_default_instance() {
- return reinterpret_cast<const ChunkOneLine*>(
- &_ChunkOneLine_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(ChunkOneLine& a, ChunkOneLine& b) {
- a.Swap(&b);
- }
- inline void Swap(ChunkOneLine* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(ChunkOneLine* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- ChunkOneLine* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<ChunkOneLine>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const ChunkOneLine& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const ChunkOneLine& from);
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(ChunkOneLine* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "namespace_uploadpic.ChunkOneLine";
- }
- protected:
- explicit ChunkOneLine(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kDatabufFieldNumber = 1,
- };
- // .namespace_uploadpic.Chunk databuf = 1;
- bool has_databuf() const;
- private:
- bool _internal_has_databuf() const;
- public:
- void clear_databuf();
- const ::namespace_uploadpic::Chunk& databuf() const;
- PROTOBUF_NODISCARD ::namespace_uploadpic::Chunk* release_databuf();
- ::namespace_uploadpic::Chunk* mutable_databuf();
- void set_allocated_databuf(::namespace_uploadpic::Chunk* databuf);
- private:
- const ::namespace_uploadpic::Chunk& _internal_databuf() const;
- ::namespace_uploadpic::Chunk* _internal_mutable_databuf();
- public:
- void unsafe_arena_set_allocated_databuf(
- ::namespace_uploadpic::Chunk* databuf);
- ::namespace_uploadpic::Chunk* unsafe_arena_release_databuf();
- // @@protoc_insertion_point(class_scope:namespace_uploadpic.ChunkOneLine)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::namespace_uploadpic::Chunk* databuf_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_protobuf_2eproto;
- };
- // -------------------------------------------------------------------
- class Reply final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Reply) */ {
- public:
- inline Reply() : Reply(nullptr) {}
- ~Reply() override;
- explicit constexpr Reply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- Reply(const Reply& from);
- Reply(Reply&& from) noexcept
- : Reply() {
- *this = ::std::move(from);
- }
- inline Reply& operator=(const Reply& from) {
- CopyFrom(from);
- return *this;
- }
- inline Reply& operator=(Reply&& from) noexcept {
- if (this == &from) return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const Reply& default_instance() {
- return *internal_default_instance();
- }
- static inline const Reply* internal_default_instance() {
- return reinterpret_cast<const Reply*>(
- &_Reply_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(Reply& a, Reply& b) {
- a.Swap(&b);
- }
- inline void Swap(Reply* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Reply* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- Reply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<Reply>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Reply& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Reply& from);
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Reply* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "namespace_uploadpic.Reply";
- }
- protected:
- explicit Reply(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kResultFieldNumber = 1,
- };
- // repeated string result = 1;
- int result_size() const;
- private:
- int _internal_result_size() const;
- public:
- void clear_result();
- const std::string& result(int index) const;
- std::string* mutable_result(int index);
- void set_result(int index, const std::string& value);
- void set_result(int index, std::string&& value);
- void set_result(int index, const char* value);
- void set_result(int index, const char* value, size_t size);
- std::string* add_result();
- void add_result(const std::string& value);
- void add_result(std::string&& value);
- void add_result(const char* value);
- void add_result(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result();
- private:
- const std::string& _internal_result(int index) const;
- std::string* _internal_add_result();
- public:
- // @@protoc_insertion_point(class_scope:namespace_uploadpic.Reply)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_protobuf_2eproto;
- };
- // -------------------------------------------------------------------
- class Request final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Request) */ {
- public:
- inline Request() : Request(nullptr) {}
- ~Request() override;
- explicit constexpr Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- Request(const Request& from);
- Request(Request&& from) noexcept
- : Request() {
- *this = ::std::move(from);
- }
- inline Request& operator=(const Request& from) {
- CopyFrom(from);
- return *this;
- }
- inline Request& operator=(Request&& from) noexcept {
- if (this == &from) return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const Request& default_instance() {
- return *internal_default_instance();
- }
- static inline const Request* internal_default_instance() {
- return reinterpret_cast<const Request*>(
- &_Request_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 3;
- friend void swap(Request& a, Request& b) {
- a.Swap(&b);
- }
- inline void Swap(Request* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Request* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<Request>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Request& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Request& from);
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Request* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "namespace_uploadpic.Request";
- }
- protected:
- explicit Request(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kNameFieldNumber = 1,
- };
- // string name = 1;
- void clear_name();
- const std::string& name() const;
- template <typename ArgT0 = const std::string&, typename... ArgT>
- void set_name(ArgT0&& arg0, ArgT... args);
- std::string* mutable_name();
- PROTOBUF_NODISCARD std::string* release_name();
- void set_allocated_name(std::string* name);
- private:
- const std::string& _internal_name() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
- std::string* _internal_mutable_name();
- public:
- // @@protoc_insertion_point(class_scope:namespace_uploadpic.Request)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_protobuf_2eproto;
- };
- // -------------------------------------------------------------------
- class Response final :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:namespace_uploadpic.Response) */ {
- public:
- inline Response() : Response(nullptr) {}
- ~Response() override;
- explicit constexpr Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
- Response(const Response& from);
- Response(Response&& from) noexcept
- : Response() {
- *this = ::std::move(from);
- }
- inline Response& operator=(const Response& from) {
- CopyFrom(from);
- return *this;
- }
- inline Response& operator=(Response&& from) noexcept {
- if (this == &from) return *this;
- if (GetOwningArena() == from.GetOwningArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetOwningArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const Response& default_instance() {
- return *internal_default_instance();
- }
- static inline const Response* internal_default_instance() {
- return reinterpret_cast<const Response*>(
- &_Response_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 4;
- friend void swap(Response& a, Response& b) {
- a.Swap(&b);
- }
- inline void Swap(Response* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() != nullptr &&
- GetOwningArena() == other->GetOwningArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetOwningArena() == other->GetOwningArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Response* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<Response>(arena);
- }
- using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
- void CopyFrom(const Response& from);
- using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
- void MergeFrom(const Response& from);
- private:
- static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- uint8_t* _InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Response* other);
- private:
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "namespace_uploadpic.Response";
- }
- protected:
- explicit Response(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned = false);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- static const ClassData _class_data_;
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kResultFieldNumber = 1,
- };
- // repeated string result = 1;
- int result_size() const;
- private:
- int _internal_result_size() const;
- public:
- void clear_result();
- const std::string& result(int index) const;
- std::string* mutable_result(int index);
- void set_result(int index, const std::string& value);
- void set_result(int index, std::string&& value);
- void set_result(int index, const char* value);
- void set_result(int index, const char* value, size_t size);
- std::string* add_result();
- void add_result(const std::string& value);
- void add_result(std::string&& value);
- void add_result(const char* value);
- void add_result(const char* value, size_t size);
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result() const;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result();
- private:
- const std::string& _internal_result(int index) const;
- std::string* _internal_add_result();
- public:
- // @@protoc_insertion_point(class_scope:namespace_uploadpic.Response)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_protobuf_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Chunk
- // string buff = 1;
- inline void Chunk::clear_buff() {
- buff_.ClearToEmpty();
- }
- inline const std::string& Chunk::buff() const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.buff)
- return _internal_buff();
- }
- template <typename ArgT0, typename... ArgT>
- inline PROTOBUF_ALWAYS_INLINE
- void Chunk::set_buff(ArgT0&& arg0, ArgT... args) {
-
- buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.buff)
- }
- inline std::string* Chunk::mutable_buff() {
- std::string* _s = _internal_mutable_buff();
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Chunk.buff)
- return _s;
- }
- inline const std::string& Chunk::_internal_buff() const {
- return buff_.Get();
- }
- inline void Chunk::_internal_set_buff(const std::string& value) {
-
- buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
- }
- inline std::string* Chunk::_internal_mutable_buff() {
-
- return buff_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
- }
- inline std::string* Chunk::release_buff() {
- // @@protoc_insertion_point(field_release:namespace_uploadpic.Chunk.buff)
- return buff_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
- }
- inline void Chunk::set_allocated_buff(std::string* buff) {
- if (buff != nullptr) {
-
- } else {
-
- }
- buff_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buff,
- GetArenaForAllocation());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (buff_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
- buff_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- }
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Chunk.buff)
- }
- // string name = 2;
- inline void Chunk::clear_name() {
- name_.ClearToEmpty();
- }
- inline const std::string& Chunk::name() const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.name)
- return _internal_name();
- }
- template <typename ArgT0, typename... ArgT>
- inline PROTOBUF_ALWAYS_INLINE
- void Chunk::set_name(ArgT0&& arg0, ArgT... args) {
-
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.name)
- }
- inline std::string* Chunk::mutable_name() {
- std::string* _s = _internal_mutable_name();
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Chunk.name)
- return _s;
- }
- inline const std::string& Chunk::_internal_name() const {
- return name_.Get();
- }
- inline void Chunk::_internal_set_name(const std::string& value) {
-
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
- }
- inline std::string* Chunk::_internal_mutable_name() {
-
- return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
- }
- inline std::string* Chunk::release_name() {
- // @@protoc_insertion_point(field_release:namespace_uploadpic.Chunk.name)
- return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
- }
- inline void Chunk::set_allocated_name(std::string* name) {
- if (name != nullptr) {
-
- } else {
-
- }
- name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
- GetArenaForAllocation());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- }
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Chunk.name)
- }
- // int32 id = 3;
- inline void Chunk::clear_id() {
- id_ = 0;
- }
- inline int32_t Chunk::_internal_id() const {
- return id_;
- }
- inline int32_t Chunk::id() const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Chunk.id)
- return _internal_id();
- }
- inline void Chunk::_internal_set_id(int32_t value) {
-
- id_ = value;
- }
- inline void Chunk::set_id(int32_t value) {
- _internal_set_id(value);
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Chunk.id)
- }
- // -------------------------------------------------------------------
- // ChunkOneLine
- // .namespace_uploadpic.Chunk databuf = 1;
- inline bool ChunkOneLine::_internal_has_databuf() const {
- return this != internal_default_instance() && databuf_ != nullptr;
- }
- inline bool ChunkOneLine::has_databuf() const {
- return _internal_has_databuf();
- }
- inline void ChunkOneLine::clear_databuf() {
- if (GetArenaForAllocation() == nullptr && databuf_ != nullptr) {
- delete databuf_;
- }
- databuf_ = nullptr;
- }
- inline const ::namespace_uploadpic::Chunk& ChunkOneLine::_internal_databuf() const {
- const ::namespace_uploadpic::Chunk* p = databuf_;
- return p != nullptr ? *p : reinterpret_cast<const ::namespace_uploadpic::Chunk&>(
- ::namespace_uploadpic::_Chunk_default_instance_);
- }
- inline const ::namespace_uploadpic::Chunk& ChunkOneLine::databuf() const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.ChunkOneLine.databuf)
- return _internal_databuf();
- }
- inline void ChunkOneLine::unsafe_arena_set_allocated_databuf(
- ::namespace_uploadpic::Chunk* databuf) {
- if (GetArenaForAllocation() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(databuf_);
- }
- databuf_ = databuf;
- if (databuf) {
-
- } else {
-
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:namespace_uploadpic.ChunkOneLine.databuf)
- }
- inline ::namespace_uploadpic::Chunk* ChunkOneLine::release_databuf() {
-
- ::namespace_uploadpic::Chunk* temp = databuf_;
- databuf_ = nullptr;
- #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
- auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- if (GetArenaForAllocation() == nullptr) { delete old; }
- #else // PROTOBUF_FORCE_COPY_IN_RELEASE
- if (GetArenaForAllocation() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
- return temp;
- }
- inline ::namespace_uploadpic::Chunk* ChunkOneLine::unsafe_arena_release_databuf() {
- // @@protoc_insertion_point(field_release:namespace_uploadpic.ChunkOneLine.databuf)
-
- ::namespace_uploadpic::Chunk* temp = databuf_;
- databuf_ = nullptr;
- return temp;
- }
- inline ::namespace_uploadpic::Chunk* ChunkOneLine::_internal_mutable_databuf() {
-
- if (databuf_ == nullptr) {
- auto* p = CreateMaybeMessage<::namespace_uploadpic::Chunk>(GetArenaForAllocation());
- databuf_ = p;
- }
- return databuf_;
- }
- inline ::namespace_uploadpic::Chunk* ChunkOneLine::mutable_databuf() {
- ::namespace_uploadpic::Chunk* _msg = _internal_mutable_databuf();
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.ChunkOneLine.databuf)
- return _msg;
- }
- inline void ChunkOneLine::set_allocated_databuf(::namespace_uploadpic::Chunk* databuf) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
- if (message_arena == nullptr) {
- delete databuf_;
- }
- if (databuf) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::namespace_uploadpic::Chunk>::GetOwningArena(databuf);
- if (message_arena != submessage_arena) {
- databuf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, databuf, submessage_arena);
- }
-
- } else {
-
- }
- databuf_ = databuf;
- // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.ChunkOneLine.databuf)
- }
- // -------------------------------------------------------------------
- // Reply
- // repeated string result = 1;
- inline int Reply::_internal_result_size() const {
- return result_.size();
- }
- inline int Reply::result_size() const {
- return _internal_result_size();
- }
- inline void Reply::clear_result() {
- result_.Clear();
- }
- inline std::string* Reply::add_result() {
- std::string* _s = _internal_add_result();
- // @@protoc_insertion_point(field_add_mutable:namespace_uploadpic.Reply.result)
- return _s;
- }
- inline const std::string& Reply::_internal_result(int index) const {
- return result_.Get(index);
- }
- inline const std::string& Reply::result(int index) const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Reply.result)
- return _internal_result(index);
- }
- inline std::string* Reply::mutable_result(int index) {
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Reply.result)
- return result_.Mutable(index);
- }
- inline void Reply::set_result(int index, const std::string& value) {
- result_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Reply.result)
- }
- inline void Reply::set_result(int index, std::string&& value) {
- result_.Mutable(index)->assign(std::move(value));
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Reply.result)
- }
- inline void Reply::set_result(int index, const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- result_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:namespace_uploadpic.Reply.result)
- }
- inline void Reply::set_result(int index, const char* value, size_t size) {
- result_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:namespace_uploadpic.Reply.result)
- }
- inline std::string* Reply::_internal_add_result() {
- return result_.Add();
- }
- inline void Reply::add_result(const std::string& value) {
- result_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:namespace_uploadpic.Reply.result)
- }
- inline void Reply::add_result(std::string&& value) {
- result_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:namespace_uploadpic.Reply.result)
- }
- inline void Reply::add_result(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- result_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:namespace_uploadpic.Reply.result)
- }
- inline void Reply::add_result(const char* value, size_t size) {
- result_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Reply.result)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
- Reply::result() const {
- // @@protoc_insertion_point(field_list:namespace_uploadpic.Reply.result)
- return result_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
- Reply::mutable_result() {
- // @@protoc_insertion_point(field_mutable_list:namespace_uploadpic.Reply.result)
- return &result_;
- }
- // -------------------------------------------------------------------
- // Request
- // string name = 1;
- inline void Request::clear_name() {
- name_.ClearToEmpty();
- }
- inline const std::string& Request::name() const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Request.name)
- return _internal_name();
- }
- template <typename ArgT0, typename... ArgT>
- inline PROTOBUF_ALWAYS_INLINE
- void Request::set_name(ArgT0&& arg0, ArgT... args) {
-
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Request.name)
- }
- inline std::string* Request::mutable_name() {
- std::string* _s = _internal_mutable_name();
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Request.name)
- return _s;
- }
- inline const std::string& Request::_internal_name() const {
- return name_.Get();
- }
- inline void Request::_internal_set_name(const std::string& value) {
-
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
- }
- inline std::string* Request::_internal_mutable_name() {
-
- return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
- }
- inline std::string* Request::release_name() {
- // @@protoc_insertion_point(field_release:namespace_uploadpic.Request.name)
- return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
- }
- inline void Request::set_allocated_name(std::string* name) {
- if (name != nullptr) {
-
- } else {
-
- }
- name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
- GetArenaForAllocation());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- }
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- // @@protoc_insertion_point(field_set_allocated:namespace_uploadpic.Request.name)
- }
- // -------------------------------------------------------------------
- // Response
- // repeated string result = 1;
- inline int Response::_internal_result_size() const {
- return result_.size();
- }
- inline int Response::result_size() const {
- return _internal_result_size();
- }
- inline void Response::clear_result() {
- result_.Clear();
- }
- inline std::string* Response::add_result() {
- std::string* _s = _internal_add_result();
- // @@protoc_insertion_point(field_add_mutable:namespace_uploadpic.Response.result)
- return _s;
- }
- inline const std::string& Response::_internal_result(int index) const {
- return result_.Get(index);
- }
- inline const std::string& Response::result(int index) const {
- // @@protoc_insertion_point(field_get:namespace_uploadpic.Response.result)
- return _internal_result(index);
- }
- inline std::string* Response::mutable_result(int index) {
- // @@protoc_insertion_point(field_mutable:namespace_uploadpic.Response.result)
- return result_.Mutable(index);
- }
- inline void Response::set_result(int index, const std::string& value) {
- result_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Response.result)
- }
- inline void Response::set_result(int index, std::string&& value) {
- result_.Mutable(index)->assign(std::move(value));
- // @@protoc_insertion_point(field_set:namespace_uploadpic.Response.result)
- }
- inline void Response::set_result(int index, const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- result_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:namespace_uploadpic.Response.result)
- }
- inline void Response::set_result(int index, const char* value, size_t size) {
- result_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:namespace_uploadpic.Response.result)
- }
- inline std::string* Response::_internal_add_result() {
- return result_.Add();
- }
- inline void Response::add_result(const std::string& value) {
- result_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:namespace_uploadpic.Response.result)
- }
- inline void Response::add_result(std::string&& value) {
- result_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:namespace_uploadpic.Response.result)
- }
- inline void Response::add_result(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- result_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:namespace_uploadpic.Response.result)
- }
- inline void Response::add_result(const char* value, size_t size) {
- result_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Response.result)
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
- Response::result() const {
- // @@protoc_insertion_point(field_list:namespace_uploadpic.Response.result)
- return result_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
- Response::mutable_result() {
- // @@protoc_insertion_point(field_mutable_list:namespace_uploadpic.Response.result)
- return &result_;
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace namespace_uploadpic
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto
|