diff --git a/Makefile b/Makefile index e84d2a7524d24a6ae529ef781fa99a18daf8dfb8..30797c821b3d87f1fef4a8c65337c5476983481e 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ INC_DIR=/usr/local/omniORB/include \ /usr/local/boost/include \ /usr/local/soci/include \ /usr/local/soci/include/soci \ - /usr/include/mysql \ + /usr/include/mariadb \ /usr/include/soci \ /usr/local/protobuf/include \ ./src @@ -22,6 +22,7 @@ LIB_DIR=/usr/local/omniORB/lib \ /usr/local/boost/lib \ /usr/local/soci/lib64 \ /usr/local/protobuf/lib \ + /usr/lib/x86_64-linux-gnu \ /usr/lib64/mysql #================================================================================ CC=g++ @@ -29,11 +30,12 @@ CXX_DEBUG_FLAGS=-g -DVERBOSE_DEBUG CXX_RELEASE_FLAGS=-O3 CXX_DEFAULT_FLAGS=-c -Wall -Wextra -std=c++0x -Wno-unused-local-typedefs -DHAVE_BOOST LDFLAGS=-Wall -lomniORB4 -lomniDynamic4 -lCOS4 -lomnithread -ltango -llog4tango \ - -lsoci_core -lsoci_mysql -lmysqlclient -lboost_system -lboost_thread \ + -lsoci_core -lsoci_mysql -lmariadbclient -lboost_system -lboost_thread \ -lboost_filesystem -lboost_date_time -lprotobuf -lssl -lcrypto -lpthread INC_PARM=$(foreach d, $(INC_DIR), -I$d) LIB_PARM=$(foreach d, $(LIB_DIR), -L$d) -PROTOC :=/usr/local/protobuf/bin/protoc +PROTOC :=/usr/bin/protoc +#PROTOC :=/usr/local/protobuf/bin/protoc #================================================================================ SRC_DIR=./src OBJ_DIR=./obj @@ -67,7 +69,7 @@ debug: CXXFLAGS+=$(CXX_DEBUG_FLAGS) $(CXX_DEFAULT_FLAGS) debug: $(EXECUTABLE) $(EXECUTABLE): makedir $(OBJ_FILES) - $(CC) $(LDFLAGS) $(LIB_PARM) -o $@ $(OBJ_FILES) + $(CC) $(OBJ_FILES) $(LDFLAGS) $(LIB_PARM) -o $@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CC) $(CXXFLAGS) $(INC_PARM) -o $@ $< diff --git a/proto/Request.proto b/proto/Request.proto index 1fc3f5e26bde0b26cf14a162323bfc5745c8fc9a..0b175e750074b7fb339236457dfe6cf7e1e6e4cd 100644 --- a/proto/Request.proto +++ b/proto/Request.proto @@ -1,5 +1,10 @@ + +syntax = "proto2"; + package DataExporter_ns; + + message Request { required string username = 1; diff --git a/proto/Response.proto b/proto/Response.proto index f65204c3e68d7d5336dbb85406d34786655834fe..a96850e6b8fa633d8deee318b196fe19e22bbbb2 100644 --- a/proto/Response.proto +++ b/proto/Response.proto @@ -1,5 +1,8 @@ + +syntax = "proto2"; package DataExporter_ns; + message Response { enum State diff --git a/src/Request.pb.cc b/src/Request.pb.cc index 74cfa0bec2ee4f0235b5f51c6ca1cfcf8e765b95..4efa820daf15124cf1a9292c6b3404c7c1b39da9 100644 --- a/src/Request.pb.cc +++ b/src/Request.pb.cc @@ -1,602 +1,585 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Request.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Request.pb.h" #include <algorithm> -#include <google/protobuf/stubs/common.h> -#include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/wire_format_lite.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) - +#include <google/protobuf/port_def.inc> namespace DataExporter_ns { - -namespace { - -const ::google::protobuf::Descriptor* Request_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Request_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_Request_2eproto() { - protobuf_AddDesc_Request_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "Request.proto"); - GOOGLE_CHECK(file != NULL); - Request_descriptor_ = file->message_type(0); - static const int Request_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, username_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, password_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, schema_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, table_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, file_version_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, file_name_), - }; - Request_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - Request_descriptor_, - Request::default_instance_, - Request_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Request, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(Request)); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_Request_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Request_descriptor_, &Request::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_Request_2eproto() { - delete Request::default_instance_; - delete Request_reflection_; -} - -void protobuf_AddDesc_Request_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; +class RequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Request> _instance; +} _Request_default_instance_; +} // namespace DataExporter_ns +static void InitDefaultsscc_info_Request_Request_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\rRequest.proto\022\017DataExporter_ns\"u\n\007Requ" - "est\022\020\n\010username\030\001 \002(\t\022\020\n\010password\030\002 \002(\t\022" - "\016\n\006schema\030\003 \002(\t\022\r\n\005table\030\004 \002(\t\022\024\n\014file_v" - "ersion\030\005 \002(\005\022\021\n\tfile_name\030\006 \002(\t", 151); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "Request.proto", &protobuf_RegisterTypes); - Request::default_instance_ = new Request(); - Request::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Request_2eproto); + { + void* ptr = &::DataExporter_ns::_Request_default_instance_; + new (ptr) ::DataExporter_ns::Request(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::DataExporter_ns::Request::InitAsDefaultInstance(); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_Request_2eproto { - StaticDescriptorInitializer_Request_2eproto() { - protobuf_AddDesc_Request_2eproto(); - } -} static_descriptor_initializer_Request_2eproto_; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Request_Request_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Request_Request_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Request_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Request_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Request_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Request_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, _has_bits_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, username_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, password_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, schema_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, table_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, file_version_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Request, file_name_), + 0, + 1, + 2, + 3, + 5, + 4, +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 11, sizeof(::DataExporter_ns::Request)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::DataExporter_ns::_Request_default_instance_), +}; + +const char descriptor_table_protodef_Request_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\rRequest.proto\022\017DataExporter_ns\"u\n\007Requ" + "est\022\020\n\010username\030\001 \002(\t\022\020\n\010password\030\002 \002(\t\022" + "\016\n\006schema\030\003 \002(\t\022\r\n\005table\030\004 \002(\t\022\024\n\014file_v" + "ersion\030\005 \002(\005\022\021\n\tfile_name\030\006 \002(\t" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Request_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Request_2eproto_sccs[1] = { + &scc_info_Request_Request_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Request_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Request_2eproto = { + false, false, descriptor_table_protodef_Request_2eproto, "Request.proto", 151, + &descriptor_table_Request_2eproto_once, descriptor_table_Request_2eproto_sccs, descriptor_table_Request_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_Request_2eproto::offsets, + file_level_metadata_Request_2eproto, 1, file_level_enum_descriptors_Request_2eproto, file_level_service_descriptors_Request_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_Request_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Request_2eproto)), true); +namespace DataExporter_ns { // =================================================================== -#ifndef _MSC_VER -const int Request::kUsernameFieldNumber; -const int Request::kPasswordFieldNumber; -const int Request::kSchemaFieldNumber; -const int Request::kTableFieldNumber; -const int Request::kFileVersionFieldNumber; -const int Request::kFileNameFieldNumber; -#endif // !_MSC_VER - -Request::Request() - : ::google::protobuf::Message() { - SharedCtor(); -} - void Request::InitAsDefaultInstance() { } +class Request::_Internal { + public: + using HasBits = decltype(std::declval<Request>()._has_bits_); + static void set_has_username(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_password(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_schema(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_table(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_file_version(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_file_name(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0; + } +}; -Request::Request(const Request& from) - : ::google::protobuf::Message() { +Request::Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DataExporter_ns.Request) +} +Request::Request(const Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_username()) { + username_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_username(), + GetArena()); + } + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_password()) { + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_password(), + GetArena()); + } + schema_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_schema()) { + schema_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_schema(), + GetArena()); + } + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_table()) { + table_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_table(), + GetArena()); + } + file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_file_name()) { + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_file_name(), + GetArena()); + } + file_version_ = from.file_version_; + // @@protoc_insertion_point(copy_constructor:DataExporter_ns.Request) } void Request::SharedCtor() { - _cached_size_ = 0; - username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Request_Request_2eproto.base); + username_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); file_version_ = 0; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Request::~Request() { + // @@protoc_insertion_point(destructor:DataExporter_ns.Request) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Request::SharedDtor() { - if (username_ != &::google::protobuf::internal::kEmptyString) { - delete username_; - } - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - if (schema_ != &::google::protobuf::internal::kEmptyString) { - delete schema_; - } - if (table_ != &::google::protobuf::internal::kEmptyString) { - delete table_; - } - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (this != default_instance_) { - } + GOOGLE_DCHECK(GetArena() == nullptr); + username_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + schema_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void Request::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); +void Request::ArenaDtor(void* object) { + Request* _this = reinterpret_cast< Request* >(object); + (void)_this; } -const ::google::protobuf::Descriptor* Request::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Request_descriptor_; +void Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Request::SetCachedSize(int size) const { + _cached_size_.Set(size); } - const Request& Request::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_Request_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Request_Request_2eproto.base); + return *internal_default_instance(); } -Request* Request::default_instance_ = NULL; - -Request* Request::New() const { - return new Request; -} void Request::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_username()) { - if (username_ != &::google::protobuf::internal::kEmptyString) { - username_->clear(); - } +// @@protoc_insertion_point(message_clear_start:DataExporter_ns.Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + username_.ClearNonDefaultToEmpty(); } - if (has_password()) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } + if (cached_has_bits & 0x00000002u) { + password_.ClearNonDefaultToEmpty(); } - if (has_schema()) { - if (schema_ != &::google::protobuf::internal::kEmptyString) { - schema_->clear(); - } + if (cached_has_bits & 0x00000004u) { + schema_.ClearNonDefaultToEmpty(); } - if (has_table()) { - if (table_ != &::google::protobuf::internal::kEmptyString) { - table_->clear(); - } + if (cached_has_bits & 0x00000008u) { + table_.ClearNonDefaultToEmpty(); } - file_version_ = 0; - if (has_file_name()) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } + if (cached_has_bits & 0x00000010u) { + file_name_.ClearNonDefaultToEmpty(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); + file_version_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -bool Request::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* Request::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required string username = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_username())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->username().data(), this->username().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_username(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Request.username"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // required string password = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->password().data(), this->password().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_schema; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_password(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Request.password"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // required string schema = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_schema: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_schema())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->schema().data(), this->schema().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_table; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_schema(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Request.schema"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // required string table = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_table: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_table())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->table().data(), this->table().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_file_version; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Request.table"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // required int32 file_version = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_file_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &file_version_))); - set_has_file_version(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_file_name; - break; - } - + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_file_version(&has_bits); + file_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required string file_name = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_file_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_file_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_file_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Request.file_name"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void Request::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* Request::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DataExporter_ns.Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required string username = 1; - if (has_username()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->username().data(), this->username().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->username(), output); + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_username().data(), static_cast<int>(this->_internal_username().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.username"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_username(), target); } // required string password = 2; - if (has_password()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->password().data(), this->password().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->password(), output); + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_password().data(), static_cast<int>(this->_internal_password().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.password"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_password(), target); } // required string schema = 3; - if (has_schema()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->schema().data(), this->schema().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->schema(), output); + if (cached_has_bits & 0x00000004u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_schema().data(), static_cast<int>(this->_internal_schema().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.schema"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_schema(), target); } // required string table = 4; - if (has_table()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->table().data(), this->table().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->table(), output); + if (cached_has_bits & 0x00000008u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_table().data(), static_cast<int>(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.table"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_table(), target); } // required int32 file_version = 5; - if (has_file_version()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->file_version(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_file_version(), target); } // required string file_name = 6; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 6, this->file_name(), output); + if (cached_has_bits & 0x00000010u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_file_name().data(), static_cast<int>(this->_internal_file_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.file_name"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_file_name(), target); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } + // @@protoc_insertion_point(serialize_to_array_end:DataExporter_ns.Request) + return target; } -::google::protobuf::uint8* Request::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string username = 1; - if (has_username()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->username().data(), this->username().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->username(), target); - } +size_t Request::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DataExporter_ns.Request) + size_t total_size = 0; - // required string password = 2; - if (has_password()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->password().data(), this->password().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->password(), target); + if (_internal_has_username()) { + // required string username = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_username()); } - // required string schema = 3; - if (has_schema()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->schema().data(), this->schema().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->schema(), target); + if (_internal_has_password()) { + // required string password = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_password()); } - // required string table = 4; - if (has_table()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->table().data(), this->table().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->table(), target); + if (_internal_has_schema()) { + // required string schema = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema()); } - // required int32 file_version = 5; - if (has_file_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->file_version(), target); + if (_internal_has_table()) { + // required string table = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); } - // required string file_name = 6; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->file_name(), target); + if (_internal_has_file_name()) { + // required string file_name = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_name()); } - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + if (_internal_has_file_version()) { + // required int32 file_version = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_file_version()); } - return target; -} -int Request::ByteSize() const { - int total_size = 0; + return total_size; +} +size_t Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DataExporter_ns.Request) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. // required string username = 1; - if (has_username()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->username()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_username()); // required string password = 2; - if (has_password()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->password()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_password()); // required string schema = 3; - if (has_schema()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->schema()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema()); // required string table = 4; - if (has_table()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->table()); - } - - // required int32 file_version = 5; - if (has_file_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->file_version()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); // required string file_name = 6; - if (has_file_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_name()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_name()); + + // required int32 file_version = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_file_version()); + } else { + total_size += RequiredFieldsByteSizeFallback(); } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Request::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); +void Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:DataExporter_ns.Request) + GOOGLE_DCHECK_NE(&from, this); const Request* source = - ::google::protobuf::internal::dynamic_cast_if_available<const Request*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Request>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:DataExporter_ns.Request) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:DataExporter_ns.Request) MergeFrom(*source); } } void Request::MergeFrom(const Request& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_username()) { - set_username(from.username()); +// @@protoc_insertion_point(class_specific_merge_from_start:DataExporter_ns.Request) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_username(from._internal_username()); } - if (from.has_password()) { - set_password(from.password()); + if (cached_has_bits & 0x00000002u) { + _internal_set_password(from._internal_password()); } - if (from.has_schema()) { - set_schema(from.schema()); + if (cached_has_bits & 0x00000004u) { + _internal_set_schema(from._internal_schema()); } - if (from.has_table()) { - set_table(from.table()); + if (cached_has_bits & 0x00000008u) { + _internal_set_table(from._internal_table()); } - if (from.has_file_version()) { - set_file_version(from.file_version()); + if (cached_has_bits & 0x00000010u) { + _internal_set_file_name(from._internal_file_name()); } - if (from.has_file_name()) { - set_file_name(from.file_name()); + if (cached_has_bits & 0x00000020u) { + file_version_ = from.file_version_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Request::CopyFrom(const ::google::protobuf::Message& from) { +void Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:DataExporter_ns.Request) if (&from == this) return; Clear(); MergeFrom(from); } void Request::CopyFrom(const Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DataExporter_ns.Request) if (&from == this) return; Clear(); MergeFrom(from); } bool Request::IsInitialized() const { - if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void Request::Swap(Request* other) { - if (other != this) { - std::swap(username_, other->username_); - std::swap(password_, other->password_); - std::swap(schema_, other->schema_); - std::swap(table_, other->table_); - std::swap(file_version_, other->file_version_); - std::swap(file_name_, other->file_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } +void Request::InternalSwap(Request* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + username_.Swap(&other->username_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + schema_.Swap(&other->schema_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + file_name_.Swap(&other->file_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(file_version_, other->file_version_); } -::google::protobuf::Metadata Request::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Request_descriptor_; - metadata.reflection = Request_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Request::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) - } // namespace DataExporter_ns +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::DataExporter_ns::Request* Arena::CreateMaybeMessage< ::DataExporter_ns::Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::DataExporter_ns::Request >(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) +#include <google/protobuf/port_undef.inc> diff --git a/src/Request.pb.h b/src/Request.pb.h index a3e78b5347979b7cccce157b791e1daaeadb1cc4..c9772c4b6bca8948850bab8c9d95d0284aaf1d86 100644 --- a/src/Request.pb.h +++ b/src/Request.pb.h @@ -1,590 +1,889 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Request.proto -#ifndef PROTOBUF_Request_2eproto__INCLUDED -#define PROTOBUF_Request_2eproto__INCLUDED +#ifndef GOOGLE_PROTOBUF_INCLUDED_Request_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_Request_2eproto +#include <limits> #include <string> -#include <google/protobuf/stubs/common.h> - -#if GOOGLE_PROTOBUF_VERSION < 2005000 +#include <google/protobuf/port_def.inc> +#if PROTOBUF_VERSION < 3012000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3012004 < 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 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/inlined_string_field.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> -#include <google/protobuf/extension_set.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_Request_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_Request_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Request_2eproto; namespace DataExporter_ns { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_Request_2eproto(); -void protobuf_AssignDesc_Request_2eproto(); -void protobuf_ShutdownFile_Request_2eproto(); - class Request; +class RequestDefaultTypeInternal; +extern RequestDefaultTypeInternal _Request_default_instance_; +} // namespace DataExporter_ns +PROTOBUF_NAMESPACE_OPEN +template<> ::DataExporter_ns::Request* Arena::CreateMaybeMessage<::DataExporter_ns::Request>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace DataExporter_ns { // =================================================================== -class Request : public ::google::protobuf::Message { +class Request PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Request) */ { public: - Request(); + inline Request() : Request(nullptr) {}; virtual ~Request(); Request(const Request& from); + Request(Request&& from) noexcept + : Request() { + *this = ::std::move(from); + } inline Request& operator=(const Request& from) { CopyFrom(from); return *this; } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; + inline Request& operator=(Request&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } static const Request& default_instance(); - void Swap(Request* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Request* internal_default_instance() { + return reinterpret_cast<const Request*>( + &_Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Request& a, Request& b) { + a.Swap(&b); + } + inline void Swap(Request* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - Request* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + inline Request* New() const final { + return CreateMaybeMessage<Request>(nullptr); + } + + Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Request>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Request& from); void MergeFrom(const Request& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } + 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; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Request* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DataExporter_ns.Request"; + } + protected: + explicit Request(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Request_2eproto); + return ::descriptor_table_Request_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kUsernameFieldNumber = 1, + kPasswordFieldNumber = 2, + kSchemaFieldNumber = 3, + kTableFieldNumber = 4, + kFileNameFieldNumber = 6, + kFileVersionFieldNumber = 5, + }; // required string username = 1; - inline bool has_username() const; - inline void clear_username(); - static const int kUsernameFieldNumber = 1; - inline const ::std::string& username() const; - inline void set_username(const ::std::string& value); - inline void set_username(const char* value); - inline void set_username(const char* value, size_t size); - inline ::std::string* mutable_username(); - inline ::std::string* release_username(); - inline void set_allocated_username(::std::string* username); + bool has_username() const; + private: + bool _internal_has_username() const; + public: + void clear_username(); + const std::string& username() const; + void set_username(const std::string& value); + void set_username(std::string&& value); + void set_username(const char* value); + void set_username(const char* value, size_t size); + std::string* mutable_username(); + std::string* release_username(); + void set_allocated_username(std::string* username); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_username(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_username( + std::string* username); + private: + const std::string& _internal_username() const; + void _internal_set_username(const std::string& value); + std::string* _internal_mutable_username(); + public: // required string password = 2; - inline bool has_password() const; - inline void clear_password(); - static const int kPasswordFieldNumber = 2; - inline const ::std::string& password() const; - inline void set_password(const ::std::string& value); - inline void set_password(const char* value); - inline void set_password(const char* value, size_t size); - inline ::std::string* mutable_password(); - inline ::std::string* release_password(); - inline void set_allocated_password(::std::string* password); + bool has_password() const; + private: + bool _internal_has_password() const; + public: + void clear_password(); + const std::string& password() const; + void set_password(const std::string& value); + void set_password(std::string&& value); + void set_password(const char* value); + void set_password(const char* value, size_t size); + std::string* mutable_password(); + std::string* release_password(); + void set_allocated_password(std::string* password); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_password(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_password( + std::string* password); + private: + const std::string& _internal_password() const; + void _internal_set_password(const std::string& value); + std::string* _internal_mutable_password(); + public: // required string schema = 3; - inline bool has_schema() const; - inline void clear_schema(); - static const int kSchemaFieldNumber = 3; - inline const ::std::string& schema() const; - inline void set_schema(const ::std::string& value); - inline void set_schema(const char* value); - inline void set_schema(const char* value, size_t size); - inline ::std::string* mutable_schema(); - inline ::std::string* release_schema(); - inline void set_allocated_schema(::std::string* schema); + bool has_schema() const; + private: + bool _internal_has_schema() const; + public: + void clear_schema(); + const std::string& schema() const; + void set_schema(const std::string& value); + void set_schema(std::string&& value); + void set_schema(const char* value); + void set_schema(const char* value, size_t size); + std::string* mutable_schema(); + std::string* release_schema(); + void set_allocated_schema(std::string* schema); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_schema(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_schema( + std::string* schema); + private: + const std::string& _internal_schema() const; + void _internal_set_schema(const std::string& value); + std::string* _internal_mutable_schema(); + public: // required string table = 4; - inline bool has_table() const; - inline void clear_table(); - static const int kTableFieldNumber = 4; - inline const ::std::string& table() const; - inline void set_table(const ::std::string& value); - inline void set_table(const char* value); - inline void set_table(const char* value, size_t size); - inline ::std::string* mutable_table(); - inline ::std::string* release_table(); - inline void set_allocated_table(::std::string* table); - - // required int32 file_version = 5; - inline bool has_file_version() const; - inline void clear_file_version(); - static const int kFileVersionFieldNumber = 5; - inline ::google::protobuf::int32 file_version() const; - inline void set_file_version(::google::protobuf::int32 value); + bool has_table() const; + private: + bool _internal_has_table() const; + public: + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_table(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_table( + std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: // required string file_name = 6; - inline bool has_file_name() const; - inline void clear_file_name(); - static const int kFileNameFieldNumber = 6; - inline const ::std::string& file_name() const; - inline void set_file_name(const ::std::string& value); - inline void set_file_name(const char* value); - inline void set_file_name(const char* value, size_t size); - inline ::std::string* mutable_file_name(); - inline ::std::string* release_file_name(); - inline void set_allocated_file_name(::std::string* file_name); + bool has_file_name() const; + private: + bool _internal_has_file_name() const; + public: + void clear_file_name(); + const std::string& file_name() const; + void set_file_name(const std::string& value); + void set_file_name(std::string&& value); + void set_file_name(const char* value); + void set_file_name(const char* value, size_t size); + std::string* mutable_file_name(); + std::string* release_file_name(); + void set_allocated_file_name(std::string* file_name); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_file_name(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_file_name( + std::string* file_name); + private: + const std::string& _internal_file_name() const; + void _internal_set_file_name(const std::string& value); + std::string* _internal_mutable_file_name(); + public: + + // required int32 file_version = 5; + bool has_file_version() const; + private: + bool _internal_has_file_version() const; + public: + void clear_file_version(); + ::PROTOBUF_NAMESPACE_ID::int32 file_version() const; + void set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_file_version() const; + void _internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value); + public: // @@protoc_insertion_point(class_scope:DataExporter_ns.Request) private: - inline void set_has_username(); - inline void clear_has_username(); - inline void set_has_password(); - inline void clear_has_password(); - inline void set_has_schema(); - inline void clear_has_schema(); - inline void set_has_table(); - inline void clear_has_table(); - inline void set_has_file_version(); - inline void clear_has_file_version(); - inline void set_has_file_name(); - inline void clear_has_file_name(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* username_; - ::std::string* password_; - ::std::string* schema_; - ::std::string* table_; - ::std::string* file_name_; - ::google::protobuf::int32 file_version_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - friend void protobuf_AddDesc_Request_2eproto(); - friend void protobuf_AssignDesc_Request_2eproto(); - friend void protobuf_ShutdownFile_Request_2eproto(); - - void InitAsDefaultInstance(); - static Request* default_instance_; + class _Internal; + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr username_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; + ::PROTOBUF_NAMESPACE_ID::int32 file_version_; + friend struct ::TableStruct_Request_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // Request // required string username = 1; -inline bool Request::has_username() const { - return (_has_bits_[0] & 0x00000001u) != 0; +inline bool Request::_internal_has_username() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; } -inline void Request::set_has_username() { - _has_bits_[0] |= 0x00000001u; +inline bool Request::has_username() const { + return _internal_has_username(); } -inline void Request::clear_has_username() { +inline void Request::clear_username() { + username_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _has_bits_[0] &= ~0x00000001u; } -inline void Request::clear_username() { - if (username_ != &::google::protobuf::internal::kEmptyString) { - username_->clear(); - } - clear_has_username(); +inline const std::string& Request::username() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.username) + return _internal_username(); } -inline const ::std::string& Request::username() const { - return *username_; +inline void Request::set_username(const std::string& value) { + _internal_set_username(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.username) } -inline void Request::set_username(const ::std::string& value) { - set_has_username(); - if (username_ == &::google::protobuf::internal::kEmptyString) { - username_ = new ::std::string; - } - username_->assign(value); +inline std::string* Request::mutable_username() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.username) + return _internal_mutable_username(); +} +inline const std::string& Request::_internal_username() const { + return username_.Get(); +} +inline void Request::_internal_set_username(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + username_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Request::set_username(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + username_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.username) } inline void Request::set_username(const char* value) { - set_has_username(); - if (username_ == &::google::protobuf::internal::kEmptyString) { - username_ = new ::std::string; - } - username_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + username_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.username) } -inline void Request::set_username(const char* value, size_t size) { - set_has_username(); - if (username_ == &::google::protobuf::internal::kEmptyString) { - username_ = new ::std::string; - } - username_->assign(reinterpret_cast<const char*>(value), size); +inline void Request::set_username(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + username_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.username) +} +inline std::string* Request::_internal_mutable_username() { + _has_bits_[0] |= 0x00000001u; + return username_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::mutable_username() { - set_has_username(); - if (username_ == &::google::protobuf::internal::kEmptyString) { - username_ = new ::std::string; +inline std::string* Request::release_username() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Request.username) + if (!_internal_has_username()) { + return nullptr; } - return username_; + _has_bits_[0] &= ~0x00000001u; + return username_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::release_username() { - clear_has_username(); - if (username_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Request::set_allocated_username(std::string* username) { + if (username != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = username_; - username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + username_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), username, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.username) } -inline void Request::set_allocated_username(::std::string* username) { - if (username_ != &::google::protobuf::internal::kEmptyString) { - delete username_; - } - if (username) { - set_has_username(); - username_ = username; +inline std::string* Request::unsafe_arena_release_username() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Request.username) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return username_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Request::unsafe_arena_set_allocated_username( + std::string* username) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (username != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_username(); - username_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + username_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + username, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Request.username) } // required string password = 2; -inline bool Request::has_password() const { - return (_has_bits_[0] & 0x00000002u) != 0; +inline bool Request::_internal_has_password() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; } -inline void Request::set_has_password() { - _has_bits_[0] |= 0x00000002u; +inline bool Request::has_password() const { + return _internal_has_password(); } -inline void Request::clear_has_password() { +inline void Request::clear_password() { + password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _has_bits_[0] &= ~0x00000002u; } -inline void Request::clear_password() { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } - clear_has_password(); +inline const std::string& Request::password() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.password) + return _internal_password(); } -inline const ::std::string& Request::password() const { - return *password_; +inline void Request::set_password(const std::string& value) { + _internal_set_password(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.password) } -inline void Request::set_password(const ::std::string& value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); +inline std::string* Request::mutable_password() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.password) + return _internal_mutable_password(); +} +inline const std::string& Request::_internal_password() const { + return password_.Get(); +} +inline void Request::_internal_set_password(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Request::set_password(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + password_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.password) } inline void Request::set_password(const char* value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.password) } -inline void Request::set_password(const char* value, size_t size) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(reinterpret_cast<const char*>(value), size); +inline void Request::set_password(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.password) +} +inline std::string* Request::_internal_mutable_password() { + _has_bits_[0] |= 0x00000002u; + return password_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::mutable_password() { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; +inline std::string* Request::release_password() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Request.password) + if (!_internal_has_password()) { + return nullptr; } - return password_; + _has_bits_[0] &= ~0x00000002u; + return password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::release_password() { - clear_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Request::set_allocated_password(std::string* password) { + if (password != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = password_; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.password) } -inline void Request::set_allocated_password(::std::string* password) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - if (password) { - set_has_password(); - password_ = password; +inline std::string* Request::unsafe_arena_release_password() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Request.password) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return password_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Request::unsafe_arena_set_allocated_password( + std::string* password) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (password != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_password(); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + password_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + password, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Request.password) } // required string schema = 3; -inline bool Request::has_schema() const { - return (_has_bits_[0] & 0x00000004u) != 0; +inline bool Request::_internal_has_schema() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; } -inline void Request::set_has_schema() { - _has_bits_[0] |= 0x00000004u; +inline bool Request::has_schema() const { + return _internal_has_schema(); } -inline void Request::clear_has_schema() { +inline void Request::clear_schema() { + schema_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _has_bits_[0] &= ~0x00000004u; } -inline void Request::clear_schema() { - if (schema_ != &::google::protobuf::internal::kEmptyString) { - schema_->clear(); - } - clear_has_schema(); +inline const std::string& Request::schema() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.schema) + return _internal_schema(); } -inline const ::std::string& Request::schema() const { - return *schema_; +inline void Request::set_schema(const std::string& value) { + _internal_set_schema(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.schema) } -inline void Request::set_schema(const ::std::string& value) { - set_has_schema(); - if (schema_ == &::google::protobuf::internal::kEmptyString) { - schema_ = new ::std::string; - } - schema_->assign(value); +inline std::string* Request::mutable_schema() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.schema) + return _internal_mutable_schema(); +} +inline const std::string& Request::_internal_schema() const { + return schema_.Get(); +} +inline void Request::_internal_set_schema(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + schema_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Request::set_schema(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + schema_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.schema) } inline void Request::set_schema(const char* value) { - set_has_schema(); - if (schema_ == &::google::protobuf::internal::kEmptyString) { - schema_ = new ::std::string; - } - schema_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + schema_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.schema) } -inline void Request::set_schema(const char* value, size_t size) { - set_has_schema(); - if (schema_ == &::google::protobuf::internal::kEmptyString) { - schema_ = new ::std::string; - } - schema_->assign(reinterpret_cast<const char*>(value), size); +inline void Request::set_schema(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + schema_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.schema) } -inline ::std::string* Request::mutable_schema() { - set_has_schema(); - if (schema_ == &::google::protobuf::internal::kEmptyString) { - schema_ = new ::std::string; +inline std::string* Request::_internal_mutable_schema() { + _has_bits_[0] |= 0x00000004u; + return schema_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline std::string* Request::release_schema() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Request.schema) + if (!_internal_has_schema()) { + return nullptr; } - return schema_; + _has_bits_[0] &= ~0x00000004u; + return schema_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::release_schema() { - clear_has_schema(); - if (schema_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Request::set_allocated_schema(std::string* schema) { + if (schema != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - ::std::string* temp = schema_; - schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000004u; } + schema_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), schema, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.schema) } -inline void Request::set_allocated_schema(::std::string* schema) { - if (schema_ != &::google::protobuf::internal::kEmptyString) { - delete schema_; - } - if (schema) { - set_has_schema(); - schema_ = schema; +inline std::string* Request::unsafe_arena_release_schema() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Request.schema) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000004u; + return schema_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Request::unsafe_arena_set_allocated_schema( + std::string* schema) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (schema != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - clear_has_schema(); - schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000004u; } + schema_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + schema, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Request.schema) } // required string table = 4; -inline bool Request::has_table() const { - return (_has_bits_[0] & 0x00000008u) != 0; +inline bool Request::_internal_has_table() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; } -inline void Request::set_has_table() { - _has_bits_[0] |= 0x00000008u; +inline bool Request::has_table() const { + return _internal_has_table(); } -inline void Request::clear_has_table() { +inline void Request::clear_table() { + table_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _has_bits_[0] &= ~0x00000008u; } -inline void Request::clear_table() { - if (table_ != &::google::protobuf::internal::kEmptyString) { - table_->clear(); - } - clear_has_table(); +inline const std::string& Request::table() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.table) + return _internal_table(); } -inline const ::std::string& Request::table() const { - return *table_; +inline void Request::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.table) } -inline void Request::set_table(const ::std::string& value) { - set_has_table(); - if (table_ == &::google::protobuf::internal::kEmptyString) { - table_ = new ::std::string; - } - table_->assign(value); +inline std::string* Request::mutable_table() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.table) + return _internal_mutable_table(); +} +inline const std::string& Request::_internal_table() const { + return table_.Get(); +} +inline void Request::_internal_set_table(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + table_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Request::set_table(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + table_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.table) } inline void Request::set_table(const char* value) { - set_has_table(); - if (table_ == &::google::protobuf::internal::kEmptyString) { - table_ = new ::std::string; - } - table_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + table_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.table) } -inline void Request::set_table(const char* value, size_t size) { - set_has_table(); - if (table_ == &::google::protobuf::internal::kEmptyString) { - table_ = new ::std::string; - } - table_->assign(reinterpret_cast<const char*>(value), size); +inline void Request::set_table(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + table_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.table) } -inline ::std::string* Request::mutable_table() { - set_has_table(); - if (table_ == &::google::protobuf::internal::kEmptyString) { - table_ = new ::std::string; +inline std::string* Request::_internal_mutable_table() { + _has_bits_[0] |= 0x00000008u; + return table_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline std::string* Request::release_table() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Request.table) + if (!_internal_has_table()) { + return nullptr; } - return table_; + _has_bits_[0] &= ~0x00000008u; + return table_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::release_table() { - clear_has_table(); - if (table_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Request::set_allocated_table(std::string* table) { + if (table != nullptr) { + _has_bits_[0] |= 0x00000008u; } else { - ::std::string* temp = table_; - table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000008u; } + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.table) } -inline void Request::set_allocated_table(::std::string* table) { - if (table_ != &::google::protobuf::internal::kEmptyString) { - delete table_; - } - if (table) { - set_has_table(); - table_ = table; +inline std::string* Request::unsafe_arena_release_table() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Request.table) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000008u; + return table_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Request::unsafe_arena_set_allocated_table( + std::string* table) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (table != nullptr) { + _has_bits_[0] |= 0x00000008u; } else { - clear_has_table(); - table_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000008u; } + table_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Request.table) } // required int32 file_version = 5; -inline bool Request::has_file_version() const { - return (_has_bits_[0] & 0x00000010u) != 0; +inline bool Request::_internal_has_file_version() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; } -inline void Request::set_has_file_version() { - _has_bits_[0] |= 0x00000010u; -} -inline void Request::clear_has_file_version() { - _has_bits_[0] &= ~0x00000010u; +inline bool Request::has_file_version() const { + return _internal_has_file_version(); } inline void Request::clear_file_version() { file_version_ = 0; - clear_has_file_version(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::int32 Request::file_version() const { +inline ::PROTOBUF_NAMESPACE_ID::int32 Request::_internal_file_version() const { return file_version_; } -inline void Request::set_file_version(::google::protobuf::int32 value) { - set_has_file_version(); +inline ::PROTOBUF_NAMESPACE_ID::int32 Request::file_version() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.file_version) + return _internal_file_version(); +} +inline void Request::_internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { + _has_bits_[0] |= 0x00000020u; file_version_ = value; } +inline void Request::set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_file_version(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.file_version) +} // required string file_name = 6; +inline bool Request::_internal_has_file_name() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool Request::has_file_name() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return _internal_has_file_name(); } -inline void Request::set_has_file_name() { - _has_bits_[0] |= 0x00000020u; +inline void Request::clear_file_name() { + file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000010u; } -inline void Request::clear_has_file_name() { - _has_bits_[0] &= ~0x00000020u; +inline const std::string& Request::file_name() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Request.file_name) + return _internal_file_name(); } -inline void Request::clear_file_name() { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } - clear_has_file_name(); +inline void Request::set_file_name(const std::string& value) { + _internal_set_file_name(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Request.file_name) } -inline const ::std::string& Request::file_name() const { - return *file_name_; +inline std::string* Request::mutable_file_name() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.file_name) + return _internal_mutable_file_name(); } -inline void Request::set_file_name(const ::std::string& value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); +inline const std::string& Request::_internal_file_name() const { + return file_name_.Get(); +} +inline void Request::_internal_set_file_name(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Request::set_file_name(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + file_name_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.file_name) } inline void Request::set_file_name(const char* value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.file_name) } -inline void Request::set_file_name(const char* value, size_t size) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(reinterpret_cast<const char*>(value), size); +inline void Request::set_file_name(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.file_name) } -inline ::std::string* Request::mutable_file_name() { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; +inline std::string* Request::_internal_mutable_file_name() { + _has_bits_[0] |= 0x00000010u; + return file_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline std::string* Request::release_file_name() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Request.file_name) + if (!_internal_has_file_name()) { + return nullptr; } - return file_name_; + _has_bits_[0] &= ~0x00000010u; + return file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Request::release_file_name() { - clear_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Request::set_allocated_file_name(std::string* file_name) { + if (file_name != nullptr) { + _has_bits_[0] |= 0x00000010u; } else { - ::std::string* temp = file_name_; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000010u; } + file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.file_name) } -inline void Request::set_allocated_file_name(::std::string* file_name) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (file_name) { - set_has_file_name(); - file_name_ = file_name; +inline std::string* Request::unsafe_arena_release_file_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Request.file_name) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000010u; + return file_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Request::unsafe_arena_set_allocated_file_name( + std::string* file_name) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (file_name != nullptr) { + _has_bits_[0] |= 0x00000010u; } else { - clear_has_file_name(); - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000010u; } + file_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + file_name, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Request.file_name) } +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace DataExporter_ns -#ifndef SWIG -namespace google { -namespace protobuf { - - -} // namespace google -} // namespace protobuf -#endif // SWIG - // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_Request_2eproto__INCLUDED +#include <google/protobuf/port_undef.inc> +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Request_2eproto diff --git a/src/Response.pb.cc b/src/Response.pb.cc index 40a6cf03e9af9be25370e90710e31086805cef23..41a43fda54a63b748686e91ee637479ee851ebac 100644 --- a/src/Response.pb.cc +++ b/src/Response.pb.cc @@ -1,121 +1,103 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Response.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Response.pb.h" #include <algorithm> -#include <google/protobuf/stubs/common.h> -#include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/wire_format_lite_inl.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/wire_format_lite.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) - +#include <google/protobuf/port_def.inc> namespace DataExporter_ns { - -namespace { - -const ::google::protobuf::Descriptor* Response_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Response_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* Response_State_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_Response_2eproto() { - protobuf_AddDesc_Response_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "Response.proto"); - GOOGLE_CHECK(file != NULL); - Response_descriptor_ = file->message_type(0); - static const int Response_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, status_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, file_path_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, file_version_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, file_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, file_size_), - }; - Response_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - Response_descriptor_, - Response::default_instance_, - Response_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Response, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(Response)); - Response_State_descriptor_ = Response_descriptor_->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_Response_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Response_descriptor_, &Response::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_Response_2eproto() { - delete Response::default_instance_; - delete Response_reflection_; -} - -void protobuf_AddDesc_Response_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; +class ResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Response> _instance; +} _Response_default_instance_; +} // namespace DataExporter_ns +static void InitDefaultsscc_info_Response_Response_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\016Response.proto\022\017DataExporter_ns\"\272\002\n\010Re" - "sponse\022.\n\005state\030\001 \002(\0162\037.DataExporter_ns." - "Response.State\022\016\n\006status\030\002 \002(\t\022\021\n\tfile_p" - "ath\030\003 \001(\t\022\024\n\014file_version\030\004 \001(\005\022\021\n\tfile_" - "name\030\005 \001(\t\022\021\n\tfile_size\030\006 \001(\004\"\236\001\n\005State\022" - "\024\n\020REQUEST_ACCEPTED\020\000\022\017\n\013ACCESS_DENY\020\001\022\026" - "\n\022TABLE_NOT_EXPORTED\020\002\022\026\n\022METADATA_NOT_F" - "OUND\020\003\022\027\n\023FILE_NOT_DOWNLOADED\020\004\022\022\n\016FILE_" - "NOT_FOUND\020\005\022\021\n\rGENERIC_ERROR\020\006", 350); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "Response.proto", &protobuf_RegisterTypes); - Response::default_instance_ = new Response(); - Response::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Response_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_Response_2eproto { - StaticDescriptorInitializer_Response_2eproto() { - protobuf_AddDesc_Response_2eproto(); + { + void* ptr = &::DataExporter_ns::_Response_default_instance_; + new (ptr) ::DataExporter_ns::Response(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } -} static_descriptor_initializer_Response_2eproto_; - -// =================================================================== + ::DataExporter_ns::Response::InitAsDefaultInstance(); +} -const ::google::protobuf::EnumDescriptor* Response_State_descriptor() { - protobuf_AssignDescriptorsOnce(); - return Response_State_descriptor_; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Response_Response_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Response_Response_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Response_2eproto[1]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Response_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Response_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Response_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, _has_bits_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, state_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, status_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, file_path_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, file_version_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, file_name_), + PROTOBUF_FIELD_OFFSET(::DataExporter_ns::Response, file_size_), + 3, + 0, + 1, + 4, + 2, + 5, +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 11, sizeof(::DataExporter_ns::Response)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::DataExporter_ns::_Response_default_instance_), +}; + +const char descriptor_table_protodef_Response_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\016Response.proto\022\017DataExporter_ns\"\272\002\n\010Re" + "sponse\022.\n\005state\030\001 \002(\0162\037.DataExporter_ns." + "Response.State\022\016\n\006status\030\002 \002(\t\022\021\n\tfile_p" + "ath\030\003 \001(\t\022\024\n\014file_version\030\004 \001(\005\022\021\n\tfile_" + "name\030\005 \001(\t\022\021\n\tfile_size\030\006 \001(\004\"\236\001\n\005State\022" + "\024\n\020REQUEST_ACCEPTED\020\000\022\017\n\013ACCESS_DENY\020\001\022\026" + "\n\022TABLE_NOT_EXPORTED\020\002\022\026\n\022METADATA_NOT_F" + "OUND\020\003\022\027\n\023FILE_NOT_DOWNLOADED\020\004\022\022\n\016FILE_" + "NOT_FOUND\020\005\022\021\n\rGENERIC_ERROR\020\006" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Response_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Response_2eproto_sccs[1] = { + &scc_info_Response_Response_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Response_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Response_2eproto = { + false, false, descriptor_table_protodef_Response_2eproto, "Response.proto", 350, + &descriptor_table_Response_2eproto_once, descriptor_table_Response_2eproto_sccs, descriptor_table_Response_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_Response_2eproto::offsets, + file_level_metadata_Response_2eproto, 1, file_level_enum_descriptors_Response_2eproto, file_level_service_descriptors_Response_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_Response_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Response_2eproto)), true); +namespace DataExporter_ns { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Response_State_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Response_2eproto); + return file_level_enum_descriptors_Response_2eproto[0]; } bool Response_State_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -129,484 +111,476 @@ bool Response_State_IsValid(int value) { } } -#ifndef _MSC_VER -const Response_State Response::REQUEST_ACCEPTED; -const Response_State Response::ACCESS_DENY; -const Response_State Response::TABLE_NOT_EXPORTED; -const Response_State Response::METADATA_NOT_FOUND; -const Response_State Response::FILE_NOT_DOWNLOADED; -const Response_State Response::FILE_NOT_FOUND; -const Response_State Response::GENERIC_ERROR; -const Response_State Response::State_MIN; -const Response_State Response::State_MAX; -const int Response::State_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int Response::kStateFieldNumber; -const int Response::kStatusFieldNumber; -const int Response::kFilePathFieldNumber; -const int Response::kFileVersionFieldNumber; -const int Response::kFileNameFieldNumber; -const int Response::kFileSizeFieldNumber; -#endif // !_MSC_VER - -Response::Response() - : ::google::protobuf::Message() { - SharedCtor(); -} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr Response_State Response::REQUEST_ACCEPTED; +constexpr Response_State Response::ACCESS_DENY; +constexpr Response_State Response::TABLE_NOT_EXPORTED; +constexpr Response_State Response::METADATA_NOT_FOUND; +constexpr Response_State Response::FILE_NOT_DOWNLOADED; +constexpr Response_State Response::FILE_NOT_FOUND; +constexpr Response_State Response::GENERIC_ERROR; +constexpr Response_State Response::State_MIN; +constexpr Response_State Response::State_MAX; +constexpr int Response::State_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) + +// =================================================================== void Response::InitAsDefaultInstance() { } +class Response::_Internal { + public: + using HasBits = decltype(std::declval<Response>()._has_bits_); + static void set_has_state(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_status(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_file_path(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_file_version(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_file_name(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_file_size(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000009) ^ 0x00000009) != 0; + } +}; -Response::Response(const Response& from) - : ::google::protobuf::Message() { +Response::Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DataExporter_ns.Response) +} +Response::Response(const Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_status()) { + status_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_status(), + GetArena()); + } + file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_file_path()) { + file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_file_path(), + GetArena()); + } + file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_file_name()) { + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_file_name(), + GetArena()); + } + ::memcpy(&state_, &from.state_, + static_cast<size_t>(reinterpret_cast<char*>(&file_size_) - + reinterpret_cast<char*>(&state_)) + sizeof(file_size_)); + // @@protoc_insertion_point(copy_constructor:DataExporter_ns.Response) } void Response::SharedCtor() { - _cached_size_ = 0; - state_ = 0; - status_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - file_path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - file_version_ = 0; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - file_size_ = GOOGLE_ULONGLONG(0); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Response_Response_2eproto.base); + status_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&state_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&file_size_) - + reinterpret_cast<char*>(&state_)) + sizeof(file_size_)); } Response::~Response() { + // @@protoc_insertion_point(destructor:DataExporter_ns.Response) SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Response::SharedDtor() { - if (status_ != &::google::protobuf::internal::kEmptyString) { - delete status_; - } - if (file_path_ != &::google::protobuf::internal::kEmptyString) { - delete file_path_; - } - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (this != default_instance_) { - } + GOOGLE_DCHECK(GetArena() == nullptr); + status_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void Response::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); +void Response::ArenaDtor(void* object) { + Response* _this = reinterpret_cast< Response* >(object); + (void)_this; } -const ::google::protobuf::Descriptor* Response::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Response_descriptor_; +void Response::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Response::SetCachedSize(int size) const { + _cached_size_.Set(size); } - const Response& Response::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_Response_2eproto(); - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Response_Response_2eproto.base); + return *internal_default_instance(); } -Response* Response::default_instance_ = NULL; - -Response* Response::New() const { - return new Response; -} void Response::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - state_ = 0; - if (has_status()) { - if (status_ != &::google::protobuf::internal::kEmptyString) { - status_->clear(); - } +// @@protoc_insertion_point(message_clear_start:DataExporter_ns.Response) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + status_.ClearNonDefaultToEmpty(); } - if (has_file_path()) { - if (file_path_ != &::google::protobuf::internal::kEmptyString) { - file_path_->clear(); - } + if (cached_has_bits & 0x00000002u) { + file_path_.ClearNonDefaultToEmpty(); } - file_version_ = 0; - if (has_file_name()) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } + if (cached_has_bits & 0x00000004u) { + file_name_.ClearNonDefaultToEmpty(); } - file_size_ = GOOGLE_ULONGLONG(0); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); + if (cached_has_bits & 0x00000038u) { + ::memset(&state_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&file_size_) - + reinterpret_cast<char*>(&state_)) + sizeof(file_size_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -bool Response::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* Response::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required .DataExporter_ns.Response.State state = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::DataExporter_ns::Response_State_IsValid(value)) { - set_state(static_cast< ::DataExporter_ns::Response_State >(value)); + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::DataExporter_ns::Response_State_IsValid(val))) { + _internal_set_state(static_cast<::DataExporter_ns::Response_State>(val)); } else { - mutable_unknown_fields()->AddVarint(1, value); + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_status; - break; - } - + } else goto handle_unusual; + continue; // required string status = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_status: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_status())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->status().data(), this->status().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_file_path; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_status(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Response.status"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // optional string file_path = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_file_path: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_file_path())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_path().data(), this->file_path().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_file_version; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_file_path(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Response.file_path"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // optional int32 file_version = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_file_version: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &file_version_))); - set_has_file_version(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_file_name; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_file_version(&has_bits); + file_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional string file_name = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_file_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_file_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_file_size; - break; - } - + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_file_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "DataExporter_ns.Response.file_name"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; // optional uint64 file_size = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_file_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &file_size_))); - set_has_file_size(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_file_size(&has_bits); + file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void Response::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* Response::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DataExporter_ns.Response) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required .DataExporter_ns.Response.State state = 1; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->state(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_state(), target); } // required string status = 2; - if (has_status()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->status().data(), this->status().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->status(), output); + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_status().data(), static_cast<int>(this->_internal_status().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.status"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_status(), target); } // optional string file_path = 3; - if (has_file_path()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_path().data(), this->file_path().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->file_path(), output); + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_file_path().data(), static_cast<int>(this->_internal_file_path().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.file_path"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_file_path(), target); } // optional int32 file_version = 4; - if (has_file_version()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->file_version(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_file_version(), target); } // optional string file_name = 5; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->file_name(), output); + if (cached_has_bits & 0x00000004u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_file_name().data(), static_cast<int>(this->_internal_file_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.file_name"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_file_name(), target); } // optional uint64 file_size = 6; - if (has_file_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->file_size(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_file_size(), target); } - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } + // @@protoc_insertion_point(serialize_to_array_end:DataExporter_ns.Response) + return target; } -::google::protobuf::uint8* Response::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .DataExporter_ns.Response.State state = 1; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->state(), target); - } - - // required string status = 2; - if (has_status()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->status().data(), this->status().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->status(), target); - } - - // optional string file_path = 3; - if (has_file_path()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_path().data(), this->file_path().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->file_path(), target); - } - - // optional int32 file_version = 4; - if (has_file_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->file_version(), target); - } +size_t Response::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DataExporter_ns.Response) + size_t total_size = 0; - // optional string file_name = 5; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->file_name(), target); + if (_internal_has_status()) { + // required string status = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); } - // optional uint64 file_size = 6; - if (has_file_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->file_size(), target); + if (_internal_has_state()) { + // required .DataExporter_ns.Response.State state = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); } - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; + return total_size; } +size_t Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DataExporter_ns.Response) + size_t total_size = 0; -int Response::ByteSize() const { - int total_size = 0; + if (((_has_bits_[0] & 0x00000009) ^ 0x00000009) == 0) { // All required fields are present. + // required string status = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_status()); - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .DataExporter_ns.Response.State state = 1; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); - // required string status = 2; - if (has_status()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->status()); - } + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000006u) { // optional string file_path = 3; - if (has_file_path()) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_path()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_path()); } - // optional int32 file_version = 4; - if (has_file_version()) { + // optional string file_name = 5; + if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->file_version()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_file_name()); } - // optional string file_name = 5; - if (has_file_name()) { + } + if (cached_has_bits & 0x00000030u) { + // optional int32 file_version = 4; + if (cached_has_bits & 0x00000010u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_file_version()); } // optional uint64 file_size = 6; - if (has_file_size()) { + if (cached_has_bits & 0x00000020u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->file_size()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_file_size()); } } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } -void Response::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); +void Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:DataExporter_ns.Response) + GOOGLE_DCHECK_NE(&from, this); const Response* source = - ::google::protobuf::internal::dynamic_cast_if_available<const Response*>( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Response>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:DataExporter_ns.Response) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:DataExporter_ns.Response) MergeFrom(*source); } } void Response::MergeFrom(const Response& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_state()) { - set_state(from.state()); +// @@protoc_insertion_point(class_specific_merge_from_start:DataExporter_ns.Response) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_status(from._internal_status()); } - if (from.has_status()) { - set_status(from.status()); + if (cached_has_bits & 0x00000002u) { + _internal_set_file_path(from._internal_file_path()); } - if (from.has_file_path()) { - set_file_path(from.file_path()); + if (cached_has_bits & 0x00000004u) { + _internal_set_file_name(from._internal_file_name()); } - if (from.has_file_version()) { - set_file_version(from.file_version()); + if (cached_has_bits & 0x00000008u) { + state_ = from.state_; } - if (from.has_file_name()) { - set_file_name(from.file_name()); + if (cached_has_bits & 0x00000010u) { + file_version_ = from.file_version_; } - if (from.has_file_size()) { - set_file_size(from.file_size()); + if (cached_has_bits & 0x00000020u) { + file_size_ = from.file_size_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Response::CopyFrom(const ::google::protobuf::Message& from) { +void Response::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:DataExporter_ns.Response) if (&from == this) return; Clear(); MergeFrom(from); } void Response::CopyFrom(const Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DataExporter_ns.Response) if (&from == this) return; Clear(); MergeFrom(from); } bool Response::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void Response::Swap(Response* other) { - if (other != this) { - std::swap(state_, other->state_); - std::swap(status_, other->status_); - std::swap(file_path_, other->file_path_); - std::swap(file_version_, other->file_version_); - std::swap(file_name_, other->file_name_); - std::swap(file_size_, other->file_size_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } +void Response::InternalSwap(Response* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + status_.Swap(&other->status_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + file_path_.Swap(&other->file_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + file_name_.Swap(&other->file_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Response, file_size_) + + sizeof(Response::file_size_) + - PROTOBUF_FIELD_OFFSET(Response, state_)>( + reinterpret_cast<char*>(&state_), + reinterpret_cast<char*>(&other->state_)); } -::google::protobuf::Metadata Response::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Response_descriptor_; - metadata.reflection = Response_reflection_; - return metadata; +::PROTOBUF_NAMESPACE_ID::Metadata Response::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) - } // namespace DataExporter_ns +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::DataExporter_ns::Response* Arena::CreateMaybeMessage< ::DataExporter_ns::Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::DataExporter_ns::Response >(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) +#include <google/protobuf/port_undef.inc> diff --git a/src/Response.pb.h b/src/Response.pb.h index 945e8a0474c64d277bea528e2f87a1218eee10b1..5c2674d8ca198cd684add388059763703ccdccd4 100644 --- a/src/Response.pb.h +++ b/src/Response.pb.h @@ -1,42 +1,71 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Response.proto -#ifndef PROTOBUF_Response_2eproto__INCLUDED -#define PROTOBUF_Response_2eproto__INCLUDED +#ifndef GOOGLE_PROTOBUF_INCLUDED_Response_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_Response_2eproto +#include <limits> #include <string> -#include <google/protobuf/stubs/common.h> - -#if GOOGLE_PROTOBUF_VERSION < 2005000 +#include <google/protobuf/port_def.inc> +#if PROTOBUF_VERSION < 3012000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3012004 < 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 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/inlined_string_field.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> -#include <google/protobuf/extension_set.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/generated_enum_reflection.h> #include <google/protobuf/unknown_field_set.h> // @@protoc_insertion_point(includes) - +#include <google/protobuf/port_def.inc> +#define PROTOBUF_INTERNAL_EXPORT_Response_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_Response_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Response_2eproto; namespace DataExporter_ns { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_Response_2eproto(); -void protobuf_AssignDesc_Response_2eproto(); -void protobuf_ShutdownFile_Response_2eproto(); - class Response; +class ResponseDefaultTypeInternal; +extern ResponseDefaultTypeInternal _Response_default_instance_; +} // namespace DataExporter_ns +PROTOBUF_NAMESPACE_OPEN +template<> ::DataExporter_ns::Response* Arena::CreateMaybeMessage<::DataExporter_ns::Response>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace DataExporter_ns { -enum Response_State { +enum Response_State : int { Response_State_REQUEST_ACCEPTED = 0, Response_State_ACCESS_DENY = 1, Response_State_TABLE_NOT_EXPORTED = 2, @@ -46,498 +75,733 @@ enum Response_State { Response_State_GENERIC_ERROR = 6 }; bool Response_State_IsValid(int value); -const Response_State Response_State_State_MIN = Response_State_REQUEST_ACCEPTED; -const Response_State Response_State_State_MAX = Response_State_GENERIC_ERROR; -const int Response_State_State_ARRAYSIZE = Response_State_State_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Response_State_descriptor(); -inline const ::std::string& Response_State_Name(Response_State value) { - return ::google::protobuf::internal::NameOfEnum( - Response_State_descriptor(), value); +constexpr Response_State Response_State_State_MIN = Response_State_REQUEST_ACCEPTED; +constexpr Response_State Response_State_State_MAX = Response_State_GENERIC_ERROR; +constexpr int Response_State_State_ARRAYSIZE = Response_State_State_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Response_State_descriptor(); +template<typename T> +inline const std::string& Response_State_Name(T enum_t_value) { + static_assert(::std::is_same<T, Response_State>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function Response_State_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Response_State_descriptor(), enum_t_value); } inline bool Response_State_Parse( - const ::std::string& name, Response_State* value) { - return ::google::protobuf::internal::ParseNamedEnum<Response_State>( + const std::string& name, Response_State* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Response_State>( Response_State_descriptor(), name, value); } // =================================================================== -class Response : public ::google::protobuf::Message { +class Response PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Response) */ { public: - Response(); + inline Response() : Response(nullptr) {}; virtual ~Response(); Response(const Response& from); + Response(Response&& from) noexcept + : Response() { + *this = ::std::move(from); + } inline Response& operator=(const Response& from) { CopyFrom(from); return *this; } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { - return _unknown_fields_; + inline Response& operator=(Response&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { - return &_unknown_fields_; + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor(); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } static const Response& default_instance(); - void Swap(Response* other); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Response* internal_default_instance() { + return reinterpret_cast<const Response*>( + &_Response_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Response& a, Response& b) { + a.Swap(&b); + } + inline void Swap(Response* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Response* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - Response* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + inline Response* New() const final { + return CreateMaybeMessage<Response>(nullptr); + } + + Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Response>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Response& from); void MergeFrom(const Response& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } + 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; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* 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; + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Response* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DataExporter_ns.Response"; + } + protected: + explicit Response(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::google::protobuf::Metadata GetMetadata() const; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Response_2eproto); + return ::descriptor_table_Response_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- typedef Response_State State; - static const State REQUEST_ACCEPTED = Response_State_REQUEST_ACCEPTED; - static const State ACCESS_DENY = Response_State_ACCESS_DENY; - static const State TABLE_NOT_EXPORTED = Response_State_TABLE_NOT_EXPORTED; - static const State METADATA_NOT_FOUND = Response_State_METADATA_NOT_FOUND; - static const State FILE_NOT_DOWNLOADED = Response_State_FILE_NOT_DOWNLOADED; - static const State FILE_NOT_FOUND = Response_State_FILE_NOT_FOUND; - static const State GENERIC_ERROR = Response_State_GENERIC_ERROR; + static constexpr State REQUEST_ACCEPTED = + Response_State_REQUEST_ACCEPTED; + static constexpr State ACCESS_DENY = + Response_State_ACCESS_DENY; + static constexpr State TABLE_NOT_EXPORTED = + Response_State_TABLE_NOT_EXPORTED; + static constexpr State METADATA_NOT_FOUND = + Response_State_METADATA_NOT_FOUND; + static constexpr State FILE_NOT_DOWNLOADED = + Response_State_FILE_NOT_DOWNLOADED; + static constexpr State FILE_NOT_FOUND = + Response_State_FILE_NOT_FOUND; + static constexpr State GENERIC_ERROR = + Response_State_GENERIC_ERROR; static inline bool State_IsValid(int value) { return Response_State_IsValid(value); } - static const State State_MIN = + static constexpr State State_MIN = Response_State_State_MIN; - static const State State_MAX = + static constexpr State State_MAX = Response_State_State_MAX; - static const int State_ARRAYSIZE = + static constexpr int State_ARRAYSIZE = Response_State_State_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State_descriptor() { return Response_State_descriptor(); } - static inline const ::std::string& State_Name(State value) { - return Response_State_Name(value); + template<typename T> + static inline const std::string& State_Name(T enum_t_value) { + static_assert(::std::is_same<T, State>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function State_Name."); + return Response_State_Name(enum_t_value); } - static inline bool State_Parse(const ::std::string& name, + static inline bool State_Parse(const std::string& name, State* value) { return Response_State_Parse(name, value); } // accessors ------------------------------------------------------- - // required .DataExporter_ns.Response.State state = 1; - inline bool has_state() const; - inline void clear_state(); - static const int kStateFieldNumber = 1; - inline ::DataExporter_ns::Response_State state() const; - inline void set_state(::DataExporter_ns::Response_State value); - + enum : int { + kStatusFieldNumber = 2, + kFilePathFieldNumber = 3, + kFileNameFieldNumber = 5, + kStateFieldNumber = 1, + kFileVersionFieldNumber = 4, + kFileSizeFieldNumber = 6, + }; // required string status = 2; - inline bool has_status() const; - inline void clear_status(); - static const int kStatusFieldNumber = 2; - inline const ::std::string& status() const; - inline void set_status(const ::std::string& value); - inline void set_status(const char* value); - inline void set_status(const char* value, size_t size); - inline ::std::string* mutable_status(); - inline ::std::string* release_status(); - inline void set_allocated_status(::std::string* status); + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const std::string& status() const; + void set_status(const std::string& value); + void set_status(std::string&& value); + void set_status(const char* value); + void set_status(const char* value, size_t size); + std::string* mutable_status(); + std::string* release_status(); + void set_allocated_status(std::string* status); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_status(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_status( + std::string* status); + private: + const std::string& _internal_status() const; + void _internal_set_status(const std::string& value); + std::string* _internal_mutable_status(); + public: // optional string file_path = 3; - inline bool has_file_path() const; - inline void clear_file_path(); - static const int kFilePathFieldNumber = 3; - inline const ::std::string& file_path() const; - inline void set_file_path(const ::std::string& value); - inline void set_file_path(const char* value); - inline void set_file_path(const char* value, size_t size); - inline ::std::string* mutable_file_path(); - inline ::std::string* release_file_path(); - inline void set_allocated_file_path(::std::string* file_path); - - // optional int32 file_version = 4; - inline bool has_file_version() const; - inline void clear_file_version(); - static const int kFileVersionFieldNumber = 4; - inline ::google::protobuf::int32 file_version() const; - inline void set_file_version(::google::protobuf::int32 value); + bool has_file_path() const; + private: + bool _internal_has_file_path() const; + public: + void clear_file_path(); + const std::string& file_path() const; + void set_file_path(const std::string& value); + void set_file_path(std::string&& value); + void set_file_path(const char* value); + void set_file_path(const char* value, size_t size); + std::string* mutable_file_path(); + std::string* release_file_path(); + void set_allocated_file_path(std::string* file_path); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_file_path(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_file_path( + std::string* file_path); + private: + const std::string& _internal_file_path() const; + void _internal_set_file_path(const std::string& value); + std::string* _internal_mutable_file_path(); + public: // optional string file_name = 5; - inline bool has_file_name() const; - inline void clear_file_name(); - static const int kFileNameFieldNumber = 5; - inline const ::std::string& file_name() const; - inline void set_file_name(const ::std::string& value); - inline void set_file_name(const char* value); - inline void set_file_name(const char* value, size_t size); - inline ::std::string* mutable_file_name(); - inline ::std::string* release_file_name(); - inline void set_allocated_file_name(::std::string* file_name); + bool has_file_name() const; + private: + bool _internal_has_file_name() const; + public: + void clear_file_name(); + const std::string& file_name() const; + void set_file_name(const std::string& value); + void set_file_name(std::string&& value); + void set_file_name(const char* value); + void set_file_name(const char* value, size_t size); + std::string* mutable_file_name(); + std::string* release_file_name(); + void set_allocated_file_name(std::string* file_name); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_file_name(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_file_name( + std::string* file_name); + private: + const std::string& _internal_file_name() const; + void _internal_set_file_name(const std::string& value); + std::string* _internal_mutable_file_name(); + public: + + // required .DataExporter_ns.Response.State state = 1; + bool has_state() const; + private: + bool _internal_has_state() const; + public: + void clear_state(); + ::DataExporter_ns::Response_State state() const; + void set_state(::DataExporter_ns::Response_State value); + private: + ::DataExporter_ns::Response_State _internal_state() const; + void _internal_set_state(::DataExporter_ns::Response_State value); + public: + + // optional int32 file_version = 4; + bool has_file_version() const; + private: + bool _internal_has_file_version() const; + public: + void clear_file_version(); + ::PROTOBUF_NAMESPACE_ID::int32 file_version() const; + void set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_file_version() const; + void _internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value); + public: // optional uint64 file_size = 6; - inline bool has_file_size() const; - inline void clear_file_size(); - static const int kFileSizeFieldNumber = 6; - inline ::google::protobuf::uint64 file_size() const; - inline void set_file_size(::google::protobuf::uint64 value); + bool has_file_size() const; + private: + bool _internal_has_file_size() const; + public: + void clear_file_size(); + ::PROTOBUF_NAMESPACE_ID::uint64 file_size() const; + void set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_file_size() const; + void _internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: // @@protoc_insertion_point(class_scope:DataExporter_ns.Response) private: - inline void set_has_state(); - inline void clear_has_state(); - inline void set_has_status(); - inline void clear_has_status(); - inline void set_has_file_path(); - inline void clear_has_file_path(); - inline void set_has_file_version(); - inline void clear_has_file_version(); - inline void set_has_file_name(); - inline void clear_has_file_name(); - inline void set_has_file_size(); - inline void clear_has_file_size(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* status_; + class _Internal; + + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_path_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; int state_; - ::google::protobuf::int32 file_version_; - ::std::string* file_path_; - ::std::string* file_name_; - ::google::protobuf::uint64 file_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - friend void protobuf_AddDesc_Response_2eproto(); - friend void protobuf_AssignDesc_Response_2eproto(); - friend void protobuf_ShutdownFile_Response_2eproto(); - - void InitAsDefaultInstance(); - static Response* default_instance_; + ::PROTOBUF_NAMESPACE_ID::int32 file_version_; + ::PROTOBUF_NAMESPACE_ID::uint64 file_size_; + friend struct ::TableStruct_Response_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // Response // required .DataExporter_ns.Response.State state = 1; -inline bool Response::has_state() const { - return (_has_bits_[0] & 0x00000001u) != 0; +inline bool Response::_internal_has_state() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; } -inline void Response::set_has_state() { - _has_bits_[0] |= 0x00000001u; -} -inline void Response::clear_has_state() { - _has_bits_[0] &= ~0x00000001u; +inline bool Response::has_state() const { + return _internal_has_state(); } inline void Response::clear_state() { state_ = 0; - clear_has_state(); + _has_bits_[0] &= ~0x00000008u; } -inline ::DataExporter_ns::Response_State Response::state() const { +inline ::DataExporter_ns::Response_State Response::_internal_state() const { return static_cast< ::DataExporter_ns::Response_State >(state_); } -inline void Response::set_state(::DataExporter_ns::Response_State value) { +inline ::DataExporter_ns::Response_State Response::state() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.state) + return _internal_state(); +} +inline void Response::_internal_set_state(::DataExporter_ns::Response_State value) { assert(::DataExporter_ns::Response_State_IsValid(value)); - set_has_state(); + _has_bits_[0] |= 0x00000008u; state_ = value; } +inline void Response::set_state(::DataExporter_ns::Response_State value) { + _internal_set_state(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.state) +} // required string status = 2; +inline bool Response::_internal_has_status() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool Response::has_status() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return _internal_has_status(); } -inline void Response::set_has_status() { - _has_bits_[0] |= 0x00000002u; +inline void Response::clear_status() { + status_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline void Response::clear_has_status() { - _has_bits_[0] &= ~0x00000002u; +inline const std::string& Response::status() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.status) + return _internal_status(); } -inline void Response::clear_status() { - if (status_ != &::google::protobuf::internal::kEmptyString) { - status_->clear(); - } - clear_has_status(); +inline void Response::set_status(const std::string& value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.status) } -inline const ::std::string& Response::status() const { - return *status_; +inline std::string* Response::mutable_status() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.status) + return _internal_mutable_status(); } -inline void Response::set_status(const ::std::string& value) { - set_has_status(); - if (status_ == &::google::protobuf::internal::kEmptyString) { - status_ = new ::std::string; - } - status_->assign(value); +inline const std::string& Response::_internal_status() const { + return status_.Get(); +} +inline void Response::_internal_set_status(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + status_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Response::set_status(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + status_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.status) } inline void Response::set_status(const char* value) { - set_has_status(); - if (status_ == &::google::protobuf::internal::kEmptyString) { - status_ = new ::std::string; - } - status_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + status_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.status) } -inline void Response::set_status(const char* value, size_t size) { - set_has_status(); - if (status_ == &::google::protobuf::internal::kEmptyString) { - status_ = new ::std::string; - } - status_->assign(reinterpret_cast<const char*>(value), size); +inline void Response::set_status(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + status_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Response.status) } -inline ::std::string* Response::mutable_status() { - set_has_status(); - if (status_ == &::google::protobuf::internal::kEmptyString) { - status_ = new ::std::string; +inline std::string* Response::_internal_mutable_status() { + _has_bits_[0] |= 0x00000001u; + return status_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline std::string* Response::release_status() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Response.status) + if (!_internal_has_status()) { + return nullptr; } - return status_; + _has_bits_[0] &= ~0x00000001u; + return status_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Response::release_status() { - clear_has_status(); - if (status_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Response::set_allocated_status(std::string* status) { + if (status != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = status_; - status_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + status_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), status, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.status) } -inline void Response::set_allocated_status(::std::string* status) { - if (status_ != &::google::protobuf::internal::kEmptyString) { - delete status_; - } - if (status) { - set_has_status(); - status_ = status; +inline std::string* Response::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Response.status) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return status_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Response::unsafe_arena_set_allocated_status( + std::string* status) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (status != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_status(); - status_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + status_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + status, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Response.status) } // optional string file_path = 3; +inline bool Response::_internal_has_file_path() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool Response::has_file_path() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return _internal_has_file_path(); } -inline void Response::set_has_file_path() { - _has_bits_[0] |= 0x00000004u; +inline void Response::clear_file_path() { + file_path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000002u; } -inline void Response::clear_has_file_path() { - _has_bits_[0] &= ~0x00000004u; +inline const std::string& Response::file_path() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_path) + return _internal_file_path(); } -inline void Response::clear_file_path() { - if (file_path_ != &::google::protobuf::internal::kEmptyString) { - file_path_->clear(); - } - clear_has_file_path(); +inline void Response::set_file_path(const std::string& value) { + _internal_set_file_path(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.file_path) } -inline const ::std::string& Response::file_path() const { - return *file_path_; +inline std::string* Response::mutable_file_path() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.file_path) + return _internal_mutable_file_path(); } -inline void Response::set_file_path(const ::std::string& value) { - set_has_file_path(); - if (file_path_ == &::google::protobuf::internal::kEmptyString) { - file_path_ = new ::std::string; - } - file_path_->assign(value); +inline const std::string& Response::_internal_file_path() const { + return file_path_.Get(); +} +inline void Response::_internal_set_file_path(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Response::set_file_path(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + file_path_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.file_path) } inline void Response::set_file_path(const char* value) { - set_has_file_path(); - if (file_path_ == &::google::protobuf::internal::kEmptyString) { - file_path_ = new ::std::string; - } - file_path_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.file_path) } -inline void Response::set_file_path(const char* value, size_t size) { - set_has_file_path(); - if (file_path_ == &::google::protobuf::internal::kEmptyString) { - file_path_ = new ::std::string; - } - file_path_->assign(reinterpret_cast<const char*>(value), size); +inline void Response::set_file_path(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Response.file_path) +} +inline std::string* Response::_internal_mutable_file_path() { + _has_bits_[0] |= 0x00000002u; + return file_path_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Response::mutable_file_path() { - set_has_file_path(); - if (file_path_ == &::google::protobuf::internal::kEmptyString) { - file_path_ = new ::std::string; +inline std::string* Response::release_file_path() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Response.file_path) + if (!_internal_has_file_path()) { + return nullptr; } - return file_path_; + _has_bits_[0] &= ~0x00000002u; + return file_path_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Response::release_file_path() { - clear_has_file_path(); - if (file_path_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Response::set_allocated_file_path(std::string* file_path) { + if (file_path != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = file_path_; - file_path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + file_path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_path, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.file_path) } -inline void Response::set_allocated_file_path(::std::string* file_path) { - if (file_path_ != &::google::protobuf::internal::kEmptyString) { - delete file_path_; - } - if (file_path) { - set_has_file_path(); - file_path_ = file_path; +inline std::string* Response::unsafe_arena_release_file_path() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Response.file_path) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return file_path_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Response::unsafe_arena_set_allocated_file_path( + std::string* file_path) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (file_path != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_file_path(); - file_path_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + file_path_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + file_path, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Response.file_path) } // optional int32 file_version = 4; -inline bool Response::has_file_version() const { - return (_has_bits_[0] & 0x00000008u) != 0; +inline bool Response::_internal_has_file_version() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; } -inline void Response::set_has_file_version() { - _has_bits_[0] |= 0x00000008u; -} -inline void Response::clear_has_file_version() { - _has_bits_[0] &= ~0x00000008u; +inline bool Response::has_file_version() const { + return _internal_has_file_version(); } inline void Response::clear_file_version() { file_version_ = 0; - clear_has_file_version(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::int32 Response::file_version() const { +inline ::PROTOBUF_NAMESPACE_ID::int32 Response::_internal_file_version() const { return file_version_; } -inline void Response::set_file_version(::google::protobuf::int32 value) { - set_has_file_version(); +inline ::PROTOBUF_NAMESPACE_ID::int32 Response::file_version() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_version) + return _internal_file_version(); +} +inline void Response::_internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { + _has_bits_[0] |= 0x00000010u; file_version_ = value; } +inline void Response::set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_file_version(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.file_version) +} // optional string file_name = 5; +inline bool Response::_internal_has_file_name() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool Response::has_file_name() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return _internal_has_file_name(); } -inline void Response::set_has_file_name() { - _has_bits_[0] |= 0x00000010u; +inline void Response::clear_file_name() { + file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000004u; } -inline void Response::clear_has_file_name() { - _has_bits_[0] &= ~0x00000010u; +inline const std::string& Response::file_name() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_name) + return _internal_file_name(); } -inline void Response::clear_file_name() { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - file_name_->clear(); - } - clear_has_file_name(); +inline void Response::set_file_name(const std::string& value) { + _internal_set_file_name(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.file_name) } -inline const ::std::string& Response::file_name() const { - return *file_name_; +inline std::string* Response::mutable_file_name() { + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.file_name) + return _internal_mutable_file_name(); } -inline void Response::set_file_name(const ::std::string& value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); +inline const std::string& Response::_internal_file_name() const { + return file_name_.Get(); +} +inline void Response::_internal_set_file_name(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Response::set_file_name(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + file_name_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.file_name) } inline void Response::set_file_name(const char* value) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.file_name) } -inline void Response::set_file_name(const char* value, size_t size) { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; - } - file_name_->assign(reinterpret_cast<const char*>(value), size); +inline void Response::set_file_name(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Response.file_name) +} +inline std::string* Response::_internal_mutable_file_name() { + _has_bits_[0] |= 0x00000004u; + return file_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Response::mutable_file_name() { - set_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - file_name_ = new ::std::string; +inline std::string* Response::release_file_name() { + // @@protoc_insertion_point(field_release:DataExporter_ns.Response.file_name) + if (!_internal_has_file_name()) { + return nullptr; } - return file_name_; + _has_bits_[0] &= ~0x00000004u; + return file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* Response::release_file_name() { - clear_has_file_name(); - if (file_name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline void Response::set_allocated_file_name(std::string* file_name) { + if (file_name != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - ::std::string* temp = file_name_; - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000004u; } + file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.file_name) } -inline void Response::set_allocated_file_name(::std::string* file_name) { - if (file_name_ != &::google::protobuf::internal::kEmptyString) { - delete file_name_; - } - if (file_name) { - set_has_file_name(); - file_name_ = file_name; +inline std::string* Response::unsafe_arena_release_file_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:DataExporter_ns.Response.file_name) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000004u; + return file_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Response::unsafe_arena_set_allocated_file_name( + std::string* file_name) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (file_name != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - clear_has_file_name(); - file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000004u; } + file_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + file_name, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DataExporter_ns.Response.file_name) } // optional uint64 file_size = 6; -inline bool Response::has_file_size() const { - return (_has_bits_[0] & 0x00000020u) != 0; +inline bool Response::_internal_has_file_size() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; } -inline void Response::set_has_file_size() { - _has_bits_[0] |= 0x00000020u; -} -inline void Response::clear_has_file_size() { - _has_bits_[0] &= ~0x00000020u; +inline bool Response::has_file_size() const { + return _internal_has_file_size(); } inline void Response::clear_file_size() { - file_size_ = GOOGLE_ULONGLONG(0); - clear_has_file_size(); + file_size_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint64 Response::file_size() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 Response::_internal_file_size() const { return file_size_; } -inline void Response::set_file_size(::google::protobuf::uint64 value) { - set_has_file_size(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Response::file_size() const { + // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_size) + return _internal_file_size(); +} +inline void Response::_internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000020u; file_size_ = value; } +inline void Response::set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_file_size(value); + // @@protoc_insertion_point(field_set:DataExporter_ns.Response.file_size) +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace DataExporter_ns -#ifndef SWIG -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN +template <> struct is_proto_enum< ::DataExporter_ns::Response_State> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::DataExporter_ns::Response_State>() { return ::DataExporter_ns::Response_State_descriptor(); } -} // namespace google -} // namespace protobuf -#endif // SWIG +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_Response_2eproto__INCLUDED +#include <google/protobuf/port_undef.inc> +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Response_2eproto