// 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 #include #include #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 #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) #include #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( &_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(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 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 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 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( &_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(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 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( &_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(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& result() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* 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 friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField 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( &_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(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 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 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( &_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(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& result() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* 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 friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField 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 inline PROTOBUF_ALWAYS_INLINE void Chunk::set_buff(ArgT0&& arg0, ArgT... args) { buff_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(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 inline PROTOBUF_ALWAYS_INLINE void Chunk::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(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( ::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(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(value), size); // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Reply.result) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& Reply::result() const { // @@protoc_insertion_point(field_list:namespace_uploadpic.Reply.result) return result_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* 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 inline PROTOBUF_ALWAYS_INLINE void Request::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(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(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(value), size); // @@protoc_insertion_point(field_add_pointer:namespace_uploadpic.Response.result) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& Response::result() const { // @@protoc_insertion_point(field_list:namespace_uploadpic.Response.result) return result_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* 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 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protobuf_2eproto