From 80badd9d1aff7ae247e22ccf049425c4d0cf5456 Mon Sep 17 00:00:00 2001 From: Cristiano Urban <cristiano.urban@inaf.it> Date: Thu, 21 Sep 2023 13:37:51 +0200 Subject: [PATCH] Created branch with some changes for Rocky Linux 8. Signed-off-by: Cristiano Urban <cristiano.urban@inaf.it> --- Makefile | 4 +- src/Request.pb.cc | 753 ++++++++++++++++++++--------------- src/Request.pb.h | 958 ++++++++++++++++----------------------------- src/Response.pb.cc | 725 ++++++++++++++++++++-------------- src/Response.pb.h | 816 +++++++++++++++----------------------- 5 files changed, 1519 insertions(+), 1737 deletions(-) diff --git a/Makefile b/Makefile index 448d782..42b29e4 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/mariadb \ + /usr/include/mysql \ /usr/include/soci \ /usr/local/protobuf/include \ ./src @@ -30,7 +30,7 @@ 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 -DBOOST_BIND_GLOBAL_PLACEHOLDERS LDFLAGS=-Wall -lomniORB4 -lomniDynamic4 -lCOS4 -lomnithread -ltango -llog4tango \ - -lsoci_core -lsoci_mysql -lmariadbclient -lboost_system -lboost_thread \ + -lsoci_core -lsoci_mysql -lmariadb -lboost_system -lboost_thread \ -lboost_filesystem -lboost_date_time -lprotobuf -lssl -lcrypto -lpthread INC_NO_WARNINGS=-isystem /usr/local/tango/include/tango INC_PARM=$(foreach d, $(INC_DIR), -I$d) $(INC_NO_WARNINGS) diff --git a/src/Request.pb.cc b/src/Request.pb.cc index 4efa820..b452404 100644 --- a/src/Request.pb.cc +++ b/src/Request.pb.cc @@ -5,51 +5,63 @@ #include <algorithm> +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/port.h> +#include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/extension_set.h> -#include <google/protobuf/wire_format_lite.h> +#include <google/protobuf/wire_format_lite_inl.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> +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) -#include <google/protobuf/port_def.inc> namespace DataExporter_ns { class RequestDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Request> _instance; + ::google::protobuf::internal::ExplicitlyConstructed<Request> + _instance; } _Request_default_instance_; } // namespace DataExporter_ns -static void InitDefaultsscc_info_Request_Request_2eproto() { +namespace protobuf_Request_2eproto { +void InitDefaultsRequestImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::DataExporter_ns::_Request_default_instance_; new (ptr) ::DataExporter_ns::Request(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::DataExporter_ns::Request::InitAsDefaultInstance(); } -::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}, {}}; +void InitDefaultsRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRequestImpl); +} -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; +::google::protobuf::Metadata file_level_metadata[1]; -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_), +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, username_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, schema_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, table_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, file_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Request, file_name_), 0, 1, 2, @@ -57,336 +69,455 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Request_2eproto::offsets[] PRO 5, 4, }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_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_), +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::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, -}; +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Request.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} -// 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); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_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" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 151); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Request.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_Request_2eproto namespace DataExporter_ns { // =================================================================== 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; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +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 // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Request::Request() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_Request_2eproto::InitDefaultsRequest(); } - static void set_has_schema(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_table(HasBits* has_bits) { - (*has_bits)[0] |= 8u; + SharedCtor(); + // @@protoc_insertion_point(constructor:DataExporter_ns.Request) +} +Request::Request(const Request& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_username()) { + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); } - static void set_has_file_version(HasBits* has_bits) { - (*has_bits)[0] |= 32u; + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_password()) { + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); } - static void set_has_file_name(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_schema()) { + schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); } - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0; + table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_table()) { + table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_); } -}; - -Request::Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - 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_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_file_name()) { + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } file_version_ = from.file_version_; // @@protoc_insertion_point(copy_constructor:DataExporter_ns.Request) } void Request::SharedCtor() { - ::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()); + _cached_size_ = 0; + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); file_version_ = 0; } Request::~Request() { // @@protoc_insertion_point(destructor:DataExporter_ns.Request) SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Request::SharedDtor() { - 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()); + username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + schema_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void Request::ArenaDtor(void* object) { - Request* _this = reinterpret_cast< Request* >(object); - (void)_this; -} -void Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Request::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Request::descriptor() { + ::protobuf_Request_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_Request_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } + const Request& Request::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Request_Request_2eproto.base); + ::protobuf_Request_2eproto::InitDefaultsRequest(); return *internal_default_instance(); } +Request* Request::New(::google::protobuf::Arena* arena) const { + Request* n = new Request; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void Request::Clear() { // @@protoc_insertion_point(message_clear_start:DataExporter_ns.Request) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 & 31u) { if (cached_has_bits & 0x00000001u) { - username_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!username_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*username_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { - password_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!password_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*password_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000004u) { - schema_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!schema_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*schema_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000008u) { - table_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!table_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*table_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000010u) { - file_name_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!file_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*file_name_.UnsafeRawStringPointer())->clear(); } } file_version_ = 0; _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear(); } -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) { +bool Request::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:DataExporter_ns.Request) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string username = 1; - 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; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_username())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast<int>(this->username().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Request.username"); + } else { + goto handle_unusual; + } + break; + } + // required string password = 2; - 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; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->password().data(), static_cast<int>(this->password().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Request.password"); + } else { + goto handle_unusual; + } + break; + } + // required string schema = 3; - 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; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_schema())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->schema().data(), static_cast<int>(this->schema().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Request.schema"); + } else { + goto handle_unusual; + } + break; + } + // required string table = 4; - 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; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_table())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->table().data(), static_cast<int>(this->table().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Request.table"); + } else { + goto handle_unusual; + } + break; + } + // required int32 file_version = 5; - 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; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_file_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &file_version_))); + } else { + goto handle_unusual; + } + break; + } + // required string file_name = 6; - 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; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Request.file_name"); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0) { goto success; } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; } - } // switch - } // while + } + } success: - _has_bits_.Or(has_bits); - return ptr; + // @@protoc_insertion_point(parse_success:DataExporter_ns.Request) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:DataExporter_ns.Request) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* Request::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +void Request::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:DataExporter_ns.Request) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string username = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast<int>(this->username().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.username"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->username(), output); + } + + // required string password = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->password().data(), static_cast<int>(this->password().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.password"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->password(), output); + } + + // required string schema = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->schema().data(), static_cast<int>(this->schema().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.schema"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->schema(), output); + } + + // required string table = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->table().data(), static_cast<int>(this->table().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.table"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->table(), output); + } + + // required int32 file_version = 5; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->file_version(), output); + } + + // required string file_name = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Request.file_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->file_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:DataExporter_ns.Request) +} + +::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:DataExporter_ns.Request) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required string username = 1; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->username().data(), static_cast<int>(this->username().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Request.username"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_username(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->username(), target); } // required string password = 2; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->password().data(), static_cast<int>(this->password().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Request.password"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_password(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); } // required string schema = 3; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->schema().data(), static_cast<int>(this->schema().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Request.schema"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_schema(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->schema(), target); } // required string table = 4; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->table().data(), static_cast<int>(this->table().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Request.table"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_table(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->table(), target); } // required int32 file_version = 5; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_file_version(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->file_version(), target); } // required string file_name = 6; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Request.file_name"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_file_name(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->file_name(), target); } - 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); + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:DataExporter_ns.Request) return target; @@ -396,46 +527,46 @@ size_t Request::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:DataExporter_ns.Request) size_t total_size = 0; - if (_internal_has_username()) { + if (has_username()) { // required string username = 1; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_username()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->username()); } - if (_internal_has_password()) { + if (has_password()) { // required string password = 2; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); } - if (_internal_has_schema()) { + if (has_schema()) { // required string schema = 3; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->schema()); } - if (_internal_has_table()) { + if (has_table()) { // required string table = 4; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_table()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->table()); } - if (_internal_has_file_name()) { + if (has_file_name()) { // required string file_name = 6; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); } - if (_internal_has_file_version()) { + if (has_file_version()) { // required int32 file_version = 5; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_file_version()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->file_version()); } return total_size; @@ -444,62 +575,61 @@ size_t Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:DataExporter_ns.Request) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. // required string username = 1; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_username()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->username()); // required string password = 2; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); // required string schema = 3; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->schema()); // required string table = 4; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_table()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->table()); // required string file_name = 6; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); // required int32 file_version = 5; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_file_version()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->file_version()); } 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; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Request::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:DataExporter_ns.Request) GOOGLE_DCHECK_NE(&from, this); const Request* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Request>( + ::google::protobuf::internal::DynamicCastToGenerated<const Request>( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:DataExporter_ns.Request) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:DataExporter_ns.Request) MergeFrom(*source); @@ -509,26 +639,31 @@ void Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Request::MergeFrom(const Request& from) { // @@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; + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::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 & 63u) { if (cached_has_bits & 0x00000001u) { - _internal_set_username(from._internal_username()); + set_has_username(); + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); } if (cached_has_bits & 0x00000002u) { - _internal_set_password(from._internal_password()); + set_has_password(); + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); } if (cached_has_bits & 0x00000004u) { - _internal_set_schema(from._internal_schema()); + set_has_schema(); + schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); } if (cached_has_bits & 0x00000008u) { - _internal_set_table(from._internal_table()); + set_has_table(); + table_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_); } if (cached_has_bits & 0x00000010u) { - _internal_set_file_name(from._internal_file_name()); + set_has_file_name(); + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } if (cached_has_bits & 0x00000020u) { file_version_ = from.file_version_; @@ -537,7 +672,7 @@ void Request::MergeFrom(const Request& from) { } } -void Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Request::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:DataExporter_ns.Request) if (&from == this) return; Clear(); @@ -552,34 +687,34 @@ void Request::CopyFrom(const Request& from) { } bool Request::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; return true; } +void Request::Swap(Request* other) { + if (other == this) return; + InternalSwap(other); +} 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()); + username_.Swap(&other->username_); + password_.Swap(&other->password_); + schema_.Swap(&other->schema_); + table_.Swap(&other->table_); + file_name_.Swap(&other->file_name_); swap(file_version_, other->file_version_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Request::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Request::GetMetadata() const { + protobuf_Request_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_Request_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@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 c9772c4..9c37f82 100644 --- a/src/Request.pb.h +++ b/src/Request.pb.h @@ -1,112 +1,96 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Request.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Request_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Request_2eproto +#ifndef PROTOBUF_Request_2eproto__INCLUDED +#define PROTOBUF_Request_2eproto__INCLUDED -#include <limits> #include <string> -#include <google/protobuf/port_def.inc> -#if PROTOBUF_VERSION < 3012000 +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3005000 #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 3012004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3005000 < GOOGLE_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/metadata.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/unknown_field_set.h> // @@protoc_insertion_point(includes) -#include <google/protobuf/port_def.inc> -#define PROTOBUF_INTERNAL_EXPORT_Request_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE +namespace protobuf_Request_2eproto { // 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[]; +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Request_2eproto; +void AddDescriptors(); +void InitDefaultsRequestImpl(); +void InitDefaultsRequest(); +inline void InitDefaults() { + InitDefaultsRequest(); +} +} // namespace protobuf_Request_2eproto namespace DataExporter_ns { 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 PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Request) */ { +class Request : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Request) */ { public: - inline Request() : Request(nullptr) {}; + Request(); 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; } + #if LANG_CXX11 + Request(Request&& from) noexcept + : Request() { + *this = ::std::move(from); + } + inline Request& operator=(Request&& from) noexcept { - if (GetArena() == from.GetArena()) { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); } - 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 ::google::protobuf::Descriptor* descriptor(); static const Request& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY @@ -114,262 +98,165 @@ class Request PROTOBUF_FINAL : return reinterpret_cast<const Request*>( &_Request_default_instance_); } - static constexpr int kIndexInFileMessages = + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; + void Swap(Request* other); 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 ---------------------------------------------- - inline Request* New() const final { - return CreateMaybeMessage<Request>(nullptr); - } + inline Request* New() const PROTOBUF_FINAL { return New(NULL); } - 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; + Request* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Request& from); void MergeFrom(const Request& from); - 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(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_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: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::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]; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; } - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kUsernameFieldNumber = 1, - kPasswordFieldNumber = 2, - kSchemaFieldNumber = 3, - kTableFieldNumber = 4, - kFileNameFieldNumber = 6, - kFileVersionFieldNumber = 5, - }; // required string username = 1; 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); + static const int kUsernameFieldNumber = 1; + const ::std::string& username() const; + void set_username(const ::std::string& value); + #if LANG_CXX11 + void set_username(::std::string&& value); + #endif 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: + ::std::string* mutable_username(); + ::std::string* release_username(); + void set_allocated_username(::std::string* username); // required string password = 2; 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); + static const int kPasswordFieldNumber = 2; + const ::std::string& password() const; + void set_password(const ::std::string& value); + #if LANG_CXX11 + void set_password(::std::string&& value); + #endif 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: + ::std::string* mutable_password(); + ::std::string* release_password(); + void set_allocated_password(::std::string* password); // required string schema = 3; 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); + static const int kSchemaFieldNumber = 3; + const ::std::string& schema() const; + void set_schema(const ::std::string& value); + #if LANG_CXX11 + void set_schema(::std::string&& value); + #endif 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: + ::std::string* mutable_schema(); + ::std::string* release_schema(); + void set_allocated_schema(::std::string* schema); // required string table = 4; 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); + static const int kTableFieldNumber = 4; + const ::std::string& table() const; + void set_table(const ::std::string& value); + #if LANG_CXX11 + void set_table(::std::string&& value); + #endif 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: + ::std::string* mutable_table(); + ::std::string* release_table(); + void set_allocated_table(::std::string* table); // required string file_name = 6; 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); + static const int kFileNameFieldNumber = 6; + const ::std::string& file_name() const; + void set_file_name(const ::std::string& value); + #if LANG_CXX11 + void set_file_name(::std::string&& value); + #endif 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: + ::std::string* mutable_file_name(); + ::std::string* release_file_name(); + void set_allocated_file_name(::std::string* file_name); // 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: + static const int kFileVersionFieldNumber = 5; + ::google::protobuf::int32 file_version() const; + void set_file_version(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:DataExporter_ns.Request) private: - class _Internal; + void set_has_username(); + void clear_has_username(); + void set_has_password(); + void clear_has_password(); + void set_has_schema(); + void clear_has_schema(); + void set_has_table(); + void clear_has_table(); + void set_has_file_version(); + void clear_has_file_version(); + void set_has_file_name(); + void clear_has_file_name(); // 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; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable int _cached_size_; + ::google::protobuf::internal::ArenaStringPtr username_; + ::google::protobuf::internal::ArenaStringPtr password_; + ::google::protobuf::internal::ArenaStringPtr schema_; + ::google::protobuf::internal::ArenaStringPtr table_; + ::google::protobuf::internal::ArenaStringPtr file_name_; + ::google::protobuf::int32 file_version_; + friend struct ::protobuf_Request_2eproto::TableStruct; + friend void ::protobuf_Request_2eproto::InitDefaultsRequestImpl(); }; // =================================================================== @@ -383,497 +270,343 @@ class Request PROTOBUF_FINAL : // Request // required string username = 1; -inline bool Request::_internal_has_username() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} inline bool Request::has_username() const { - return _internal_has_username(); + return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Request::clear_username() { - username_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Request::set_has_username() { + _has_bits_[0] |= 0x00000001u; +} +inline void Request::clear_has_username() { _has_bits_[0] &= ~0x00000001u; } -inline const std::string& Request::username() const { +inline void Request::clear_username() { + username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_username(); +} +inline const ::std::string& Request::username() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.username) - return _internal_username(); + return username_.GetNoArena(); } -inline void Request::set_username(const std::string& value) { - _internal_set_username(value); +inline void Request::set_username(const ::std::string& value) { + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Request.username) } -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()); +#if LANG_CXX11 +inline void Request::set_username(::std::string&& value) { + set_has_username(); + username_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.username) } +#endif inline void Request::set_username(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - username_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.username) } -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()); +inline void Request::set_username(const char* value, size_t size) { + set_has_username(); + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@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(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.username) + return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Request::release_username() { +inline ::std::string* Request::release_username() { // @@protoc_insertion_point(field_release:DataExporter_ns.Request.username) - if (!_internal_has_username()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return username_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_username(); + return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Request::set_allocated_username(std::string* username) { - if (username != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Request::set_allocated_username(::std::string* username) { + if (username != NULL) { + set_has_username(); } else { - _has_bits_[0] &= ~0x00000001u; + clear_has_username(); } - username_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), username, - GetArena()); + username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.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 { - _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::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} inline bool Request::has_password() const { - return _internal_has_password(); + return (_has_bits_[0] & 0x00000002u) != 0; } -inline void Request::clear_password() { - password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Request::set_has_password() { + _has_bits_[0] |= 0x00000002u; +} +inline void Request::clear_has_password() { _has_bits_[0] &= ~0x00000002u; } -inline const std::string& Request::password() const { +inline void Request::clear_password() { + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_password(); +} +inline const ::std::string& Request::password() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.password) - return _internal_password(); + return password_.GetNoArena(); } -inline void Request::set_password(const std::string& value) { - _internal_set_password(value); +inline void Request::set_password(const ::std::string& value) { + set_has_password(); + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Request.password) } -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()); +#if LANG_CXX11 +inline void Request::set_password(::std::string&& value) { + set_has_password(); + password_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.password) } +#endif inline void Request::set_password(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_password(); + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.password) } -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()); +inline void Request::set_password(const char* value, size_t size) { + set_has_password(); + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@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(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.password) + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Request::release_password() { +inline ::std::string* Request::release_password() { // @@protoc_insertion_point(field_release:DataExporter_ns.Request.password) - if (!_internal_has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_password(); + return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Request::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void Request::set_allocated_password(::std::string* password) { + if (password != NULL) { + set_has_password(); } else { - _has_bits_[0] &= ~0x00000002u; + clear_has_password(); } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArena()); + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.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 { - _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::_internal_has_schema() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} inline bool Request::has_schema() const { - return _internal_has_schema(); + return (_has_bits_[0] & 0x00000004u) != 0; } -inline void Request::clear_schema() { - schema_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Request::set_has_schema() { + _has_bits_[0] |= 0x00000004u; +} +inline void Request::clear_has_schema() { _has_bits_[0] &= ~0x00000004u; } -inline const std::string& Request::schema() const { +inline void Request::clear_schema() { + schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_schema(); +} +inline const ::std::string& Request::schema() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.schema) - return _internal_schema(); + return schema_.GetNoArena(); } -inline void Request::set_schema(const std::string& value) { - _internal_set_schema(value); +inline void Request::set_schema(const ::std::string& value) { + set_has_schema(); + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Request.schema) } -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()); +#if LANG_CXX11 +inline void Request::set_schema(::std::string&& value) { + set_has_schema(); + schema_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.schema) } +#endif inline void Request::set_schema(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000004u; - schema_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_schema(); + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.schema) } -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()); +inline void Request::set_schema(const char* value, size_t size) { + set_has_schema(); + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.schema) } -inline std::string* Request::_internal_mutable_schema() { - _has_bits_[0] |= 0x00000004u; - return schema_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::std::string* Request::mutable_schema() { + set_has_schema(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.schema) + return schema_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Request::release_schema() { +inline ::std::string* Request::release_schema() { // @@protoc_insertion_point(field_release:DataExporter_ns.Request.schema) - if (!_internal_has_schema()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - return schema_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_schema(); + return schema_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Request::set_allocated_schema(std::string* schema) { - if (schema != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void Request::set_allocated_schema(::std::string* schema) { + if (schema != NULL) { + set_has_schema(); } else { - _has_bits_[0] &= ~0x00000004u; + clear_has_schema(); } - schema_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), schema, - GetArena()); + schema_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.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 { - _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::_internal_has_table() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} inline bool Request::has_table() const { - return _internal_has_table(); + return (_has_bits_[0] & 0x00000008u) != 0; } -inline void Request::clear_table() { - table_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Request::set_has_table() { + _has_bits_[0] |= 0x00000008u; +} +inline void Request::clear_has_table() { _has_bits_[0] &= ~0x00000008u; } -inline const std::string& Request::table() const { +inline void Request::clear_table() { + table_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_table(); +} +inline const ::std::string& Request::table() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.table) - return _internal_table(); + return table_.GetNoArena(); } -inline void Request::set_table(const std::string& value) { - _internal_set_table(value); +inline void Request::set_table(const ::std::string& value) { + set_has_table(); + table_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Request.table) } -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()); +#if LANG_CXX11 +inline void Request::set_table(::std::string&& value) { + set_has_table(); + table_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.table) } +#endif inline void Request::set_table(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000008u; - table_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_table(); + table_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.table) } -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()); +inline void Request::set_table(const char* value, size_t size) { + set_has_table(); + table_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.table) } -inline std::string* Request::_internal_mutable_table() { - _has_bits_[0] |= 0x00000008u; - return table_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::std::string* Request::mutable_table() { + set_has_table(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.table) + return table_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Request::release_table() { +inline ::std::string* Request::release_table() { // @@protoc_insertion_point(field_release:DataExporter_ns.Request.table) - if (!_internal_has_table()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - return table_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_table(); + return table_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Request::set_allocated_table(std::string* table) { - if (table != nullptr) { - _has_bits_[0] |= 0x00000008u; +inline void Request::set_allocated_table(::std::string* table) { + if (table != NULL) { + set_has_table(); } else { - _has_bits_[0] &= ~0x00000008u; + clear_has_table(); } - table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, - GetArena()); + table_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.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 { - _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::_internal_has_file_version() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} inline bool Request::has_file_version() const { - return _internal_has_file_version(); + return (_has_bits_[0] & 0x00000020u) != 0; } -inline void Request::clear_file_version() { - file_version_ = 0; +inline void Request::set_has_file_version() { + _has_bits_[0] |= 0x00000020u; +} +inline void Request::clear_has_file_version() { _has_bits_[0] &= ~0x00000020u; } -inline ::PROTOBUF_NAMESPACE_ID::int32 Request::_internal_file_version() const { - return file_version_; +inline void Request::clear_file_version() { + file_version_ = 0; + clear_has_file_version(); } -inline ::PROTOBUF_NAMESPACE_ID::int32 Request::file_version() const { +inline ::google::protobuf::int32 Request::file_version() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.file_version) - return _internal_file_version(); + return file_version_; } -inline void Request::_internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { - _has_bits_[0] |= 0x00000020u; +inline void Request::set_file_version(::google::protobuf::int32 value) { + set_has_file_version(); 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 _internal_has_file_name(); + return (_has_bits_[0] & 0x00000010u) != 0; } -inline void Request::clear_file_name() { - file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Request::set_has_file_name() { + _has_bits_[0] |= 0x00000010u; +} +inline void Request::clear_has_file_name() { _has_bits_[0] &= ~0x00000010u; } -inline const std::string& Request::file_name() const { +inline void Request::clear_file_name() { + file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_file_name(); +} +inline const ::std::string& Request::file_name() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Request.file_name) - return _internal_file_name(); + return file_name_.GetNoArena(); } -inline void Request::set_file_name(const std::string& value) { - _internal_set_file_name(value); +inline void Request::set_file_name(const ::std::string& value) { + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Request.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 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()); +#if LANG_CXX11 +inline void Request::set_file_name(::std::string&& value) { + set_has_file_name(); + file_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Request.file_name) } +#endif inline void Request::set_file_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000010u; - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Request.file_name) } -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()); +inline void Request::set_file_name(const char* value, size_t size) { + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Request.file_name) } -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::mutable_file_name() { + set_has_file_name(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Request.file_name) + return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Request::release_file_name() { +inline ::std::string* Request::release_file_name() { // @@protoc_insertion_point(field_release:DataExporter_ns.Request.file_name) - if (!_internal_has_file_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000010u; - return file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_file_name(); + return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Request::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { - _has_bits_[0] |= 0x00000010u; +inline void Request::set_allocated_file_name(::std::string* file_name) { + if (file_name != NULL) { + set_has_file_name(); } else { - _has_bits_[0] &= ~0x00000010u; + clear_has_file_name(); } - file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, - GetArena()); + file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Request.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 { - _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 @@ -885,5 +618,4 @@ inline void Request::unsafe_arena_set_allocated_file_name( // @@protoc_insertion_point(global_scope) -#include <google/protobuf/port_undef.inc> -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Request_2eproto +#endif // PROTOBUF_Request_2eproto__INCLUDED diff --git a/src/Response.pb.cc b/src/Response.pb.cc index 41a43fd..6e4a8d7 100644 --- a/src/Response.pb.cc +++ b/src/Response.pb.cc @@ -5,51 +5,64 @@ #include <algorithm> +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/port.h> +#include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> -#include <google/protobuf/extension_set.h> -#include <google/protobuf/wire_format_lite.h> +#include <google/protobuf/wire_format_lite_inl.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> +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) -#include <google/protobuf/port_def.inc> namespace DataExporter_ns { class ResponseDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Response> _instance; + ::google::protobuf::internal::ExplicitlyConstructed<Response> + _instance; } _Response_default_instance_; } // namespace DataExporter_ns -static void InitDefaultsscc_info_Response_Response_2eproto() { +namespace protobuf_Response_2eproto { +void InitDefaultsResponseImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::DataExporter_ns::_Response_default_instance_; new (ptr) ::DataExporter_ns::Response(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::DataExporter_ns::Response::InitAsDefaultInstance(); } -::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}, {}}; +void InitDefaultsResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl); +} -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; +::google::protobuf::Metadata file_level_metadata[1]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; -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_), +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_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_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, status_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, file_path_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, file_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, file_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DataExporter_ns::Response, file_size_), 3, 0, 1, @@ -57,44 +70,67 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Response_2eproto::offsets[] PR 2, 5, }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_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_), +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::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, -}; +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Response.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} -// 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); +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_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" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 350); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Response.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_Response_2eproto 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]; +const ::google::protobuf::EnumDescriptor* Response_State_descriptor() { + protobuf_Response_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Response_2eproto::file_level_enum_descriptors[0]; } bool Response_State_IsValid(int value) { switch (value) { @@ -111,73 +147,57 @@ bool Response_State_IsValid(int value) { } } -#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) +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +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 // !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; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +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 // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Response::Response() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_Response_2eproto::InitDefaultsResponse(); } - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000009) ^ 0x00000009) != 0; - } -}; - -Response::Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:DataExporter_ns.Response) + // @@protoc_insertion_point(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()); + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_status()) { + status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_); + } + file_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_file_path()) { + file_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_path_); + } + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_file_name()) { + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } ::memcpy(&state_, &from.state_, static_cast<size_t>(reinterpret_cast<char*>(&file_size_) - @@ -186,10 +206,10 @@ Response::Response(const Response& from) } void Response::SharedCtor() { - ::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()); + _cached_size_ = 0; + status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&state_, 0, static_cast<size_t>( reinterpret_cast<char*>(&file_size_) - reinterpret_cast<char*>(&state_)) + sizeof(file_size_)); @@ -198,210 +218,313 @@ void Response::SharedCtor() { Response::~Response() { // @@protoc_insertion_point(destructor:DataExporter_ns.Response) SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Response::SharedDtor() { - 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()); + status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void Response::ArenaDtor(void* object) { - Response* _this = reinterpret_cast< Response* >(object); - (void)_this; -} -void Response::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Response::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Response::descriptor() { + ::protobuf_Response_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_Response_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } + const Response& Response::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Response_Response_2eproto.base); + ::protobuf_Response_2eproto::InitDefaultsResponse(); return *internal_default_instance(); } +Response* Response::New(::google::protobuf::Arena* arena) const { + Response* n = new Response; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void Response::Clear() { // @@protoc_insertion_point(message_clear_start:DataExporter_ns.Response) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 & 7u) { if (cached_has_bits & 0x00000001u) { - status_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!status_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*status_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { - file_path_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!file_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*file_path_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000004u) { - file_name_.ClearNonDefaultToEmpty(); + GOOGLE_DCHECK(!file_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*file_name_.UnsafeRawStringPointer())->clear(); } } - if (cached_has_bits & 0x00000038u) { + if (cached_has_bits & 56u) { ::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>(); -} - -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) { + _internal_metadata_.Clear(); +} + +bool Response::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:DataExporter_ns.Response) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .DataExporter_ns.Response.State state = 1; - 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)); + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + 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)); } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); } - } else goto handle_unusual; - continue; + } else { + goto handle_unusual; + } + break; + } + // required string status = 2; - 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; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_status())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Response.status"); + } else { + goto handle_unusual; + } + break; + } + // optional string file_path = 3; - 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; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_path())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_path().data(), static_cast<int>(this->file_path().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Response.file_path"); + } else { + goto handle_unusual; + } + break; + } + // optional int32 file_version = 4; - 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; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_file_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &file_version_))); + } else { + goto handle_unusual; + } + break; + } + // optional string file_name = 5; - 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; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "DataExporter_ns.Response.file_name"); + } else { + goto handle_unusual; + } + break; + } + // optional uint64 file_size = 6; - 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; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_file_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &file_size_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0) { goto success; } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; } - } // switch - } // while + } + } success: - _has_bits_.Or(has_bits); - return ptr; + // @@protoc_insertion_point(parse_success:DataExporter_ns.Response) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:DataExporter_ns.Response) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* Response::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +void Response::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:DataExporter_ns.Response) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .DataExporter_ns.Response.State state = 1; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // required string status = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.status"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->status(), output); + } + + // optional string file_path = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_path().data(), static_cast<int>(this->file_path().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.file_path"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->file_path(), output); + } + + // optional int32 file_version = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->file_version(), output); + } + + // optional string file_name = 5; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "DataExporter_ns.Response.file_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->file_name(), output); + } + + // optional uint64 file_size = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->file_size(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:DataExporter_ns.Response) +} + +::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:DataExporter_ns.Response) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .DataExporter_ns.Response.State state = 1; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_state(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); } // required string status = 2; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Response.status"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_status(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->status(), target); } // optional string file_path = 3; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_path().data(), static_cast<int>(this->file_path().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Response.file_path"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_file_path(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->file_path(), target); } // optional int32 file_version = 4; if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_file_version(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->file_version(), target); } // optional string file_name = 5; 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, + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast<int>(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, "DataExporter_ns.Response.file_name"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_file_name(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->file_name(), target); } // optional uint64 file_size = 6; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_file_size(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->file_size(), target); } - 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); + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:DataExporter_ns.Response) return target; @@ -411,17 +534,17 @@ size_t Response::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:DataExporter_ns.Response) size_t total_size = 0; - if (_internal_has_status()) { + if (has_status()) { // required string status = 2; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_status()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->status()); } - if (_internal_has_state()) { + if (has_state()) { // required .DataExporter_ns.Response.State state = 1; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); } return total_size; @@ -430,74 +553,72 @@ size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:DataExporter_ns.Response) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } 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()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->status()); // required .DataExporter_ns.Response.State state = 1; total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); } 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) { + if (_has_bits_[0 / 32] & 6u) { // optional string file_path = 3; - if (cached_has_bits & 0x00000002u) { + if (has_file_path()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_path()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_path()); } // optional string file_name = 5; - if (cached_has_bits & 0x00000004u) { + if (has_file_name()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); } } - if (cached_has_bits & 0x00000030u) { + if (_has_bits_[0 / 32] & 48u) { // optional int32 file_version = 4; - if (cached_has_bits & 0x00000010u) { + if (has_file_version()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_file_version()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->file_version()); } // optional uint64 file_size = 6; - if (cached_has_bits & 0x00000020u) { + if (has_file_size()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_file_size()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->file_size()); } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Response::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:DataExporter_ns.Response) GOOGLE_DCHECK_NE(&from, this); const Response* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Response>( + ::google::protobuf::internal::DynamicCastToGenerated<const Response>( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:DataExporter_ns.Response) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:DataExporter_ns.Response) MergeFrom(*source); @@ -507,20 +628,23 @@ void Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { void Response::MergeFrom(const Response& from) { // @@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; + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::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 & 63u) { if (cached_has_bits & 0x00000001u) { - _internal_set_status(from._internal_status()); + set_has_status(); + status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_); } if (cached_has_bits & 0x00000002u) { - _internal_set_file_path(from._internal_file_path()); + set_has_file_path(); + file_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_path_); } if (cached_has_bits & 0x00000004u) { - _internal_set_file_name(from._internal_file_name()); + set_has_file_name(); + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } if (cached_has_bits & 0x00000008u) { state_ = from.state_; @@ -535,7 +659,7 @@ void Response::MergeFrom(const Response& from) { } } -void Response::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Response::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:DataExporter_ns.Response) if (&from == this) return; Clear(); @@ -550,37 +674,34 @@ void Response::CopyFrom(const Response& from) { } bool Response::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if ((_has_bits_[0] & 0x00000009) != 0x00000009) return false; return true; } +void Response::Swap(Response* other) { + if (other == this) return; + InternalSwap(other); +} void Response::InternalSwap(Response* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + status_.Swap(&other->status_); + file_path_.Swap(&other->file_path_); + file_name_.Swap(&other->file_name_); + swap(state_, other->state_); + swap(file_version_, other->file_version_); + swap(file_size_, other->file_size_); 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_)); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Response::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Response::GetMetadata() const { + protobuf_Response_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_Response_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@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 5c2674d..15645f6 100644 --- a/src/Response.pb.h +++ b/src/Response.pb.h @@ -1,71 +1,62 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Response.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Response_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Response_2eproto +#ifndef PROTOBUF_Response_2eproto__INCLUDED +#define PROTOBUF_Response_2eproto__INCLUDED -#include <limits> #include <string> -#include <google/protobuf/port_def.inc> -#if PROTOBUF_VERSION < 3012000 +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3005000 #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 3012004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3005000 < GOOGLE_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/metadata.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/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 +namespace protobuf_Response_2eproto { // 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[]; +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Response_2eproto; +void AddDescriptors(); +void InitDefaultsResponseImpl(); +void InitDefaultsResponse(); +inline void InitDefaults() { + InitDefaultsResponse(); +} +} // namespace protobuf_Response_2eproto namespace DataExporter_ns { 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 : int { +enum Response_State { Response_State_REQUEST_ACCEPTED = 0, Response_State_ACCESS_DENY = 1, Response_State_TABLE_NOT_EXPORTED = 2, @@ -75,67 +66,56 @@ enum Response_State : int { Response_State_GENERIC_ERROR = 6 }; bool Response_State_IsValid(int 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); +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); } inline bool Response_State_Parse( - const std::string& name, Response_State* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Response_State>( + const ::std::string& name, Response_State* value) { + return ::google::protobuf::internal::ParseNamedEnum<Response_State>( Response_State_descriptor(), name, value); } // =================================================================== -class Response PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Response) */ { +class Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:DataExporter_ns.Response) */ { public: - inline Response() : Response(nullptr) {}; + Response(); 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; } + #if LANG_CXX11 + Response(Response&& from) noexcept + : Response() { + *this = ::std::move(from); + } + inline Response& operator=(Response&& from) noexcept { - if (GetArena() == from.GetArena()) { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + #endif + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields(); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); } - 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 ::google::protobuf::Descriptor* descriptor(); static const Response& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY @@ -143,270 +123,185 @@ class Response PROTOBUF_FINAL : return reinterpret_cast<const Response*>( &_Response_default_instance_); } - static constexpr int kIndexInFileMessages = + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; + void Swap(Response* other); 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 ---------------------------------------------- - inline Response* New() const final { - return CreateMaybeMessage<Response>(nullptr); - } + inline Response* New() const PROTOBUF_FINAL { return New(NULL); } - 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; + Response* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Response& from); void MergeFrom(const Response& from); - 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(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_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: - - ::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]; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; } - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + // nested types ---------------------------------------------------- typedef Response_State State; - static constexpr State REQUEST_ACCEPTED = + static const State REQUEST_ACCEPTED = Response_State_REQUEST_ACCEPTED; - static constexpr State ACCESS_DENY = + static const State ACCESS_DENY = Response_State_ACCESS_DENY; - static constexpr State TABLE_NOT_EXPORTED = + static const State TABLE_NOT_EXPORTED = Response_State_TABLE_NOT_EXPORTED; - static constexpr State METADATA_NOT_FOUND = + static const State METADATA_NOT_FOUND = Response_State_METADATA_NOT_FOUND; - static constexpr State FILE_NOT_DOWNLOADED = + static const State FILE_NOT_DOWNLOADED = Response_State_FILE_NOT_DOWNLOADED; - static constexpr State FILE_NOT_FOUND = + static const State FILE_NOT_FOUND = Response_State_FILE_NOT_FOUND; - static constexpr State GENERIC_ERROR = + static const State GENERIC_ERROR = Response_State_GENERIC_ERROR; static inline bool State_IsValid(int value) { return Response_State_IsValid(value); } - static constexpr State State_MIN = + static const State State_MIN = Response_State_State_MIN; - static constexpr State State_MAX = + static const State State_MAX = Response_State_State_MAX; - static constexpr int State_ARRAYSIZE = + static const int State_ARRAYSIZE = Response_State_State_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + static inline const ::google::protobuf::EnumDescriptor* State_descriptor() { return Response_State_descriptor(); } - 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 const ::std::string& State_Name(State value) { + return Response_State_Name(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 ------------------------------------------------------- - enum : int { - kStatusFieldNumber = 2, - kFilePathFieldNumber = 3, - kFileNameFieldNumber = 5, - kStateFieldNumber = 1, - kFileVersionFieldNumber = 4, - kFileSizeFieldNumber = 6, - }; // required string status = 2; 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); + static const int kStatusFieldNumber = 2; + const ::std::string& status() const; + void set_status(const ::std::string& value); + #if LANG_CXX11 + void set_status(::std::string&& value); + #endif 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: + ::std::string* mutable_status(); + ::std::string* release_status(); + void set_allocated_status(::std::string* status); // optional string file_path = 3; 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); + static const int kFilePathFieldNumber = 3; + const ::std::string& file_path() const; + void set_file_path(const ::std::string& value); + #if LANG_CXX11 + void set_file_path(::std::string&& value); + #endif 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: + ::std::string* mutable_file_path(); + ::std::string* release_file_path(); + void set_allocated_file_path(::std::string* file_path); // optional string file_name = 5; 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); + static const int kFileNameFieldNumber = 5; + const ::std::string& file_name() const; + void set_file_name(const ::std::string& value); + #if LANG_CXX11 + void set_file_name(::std::string&& value); + #endif 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: + ::std::string* mutable_file_name(); + ::std::string* release_file_name(); + void set_allocated_file_name(::std::string* file_name); // required .DataExporter_ns.Response.State state = 1; bool has_state() const; - private: - bool _internal_has_state() const; - public: void clear_state(); + static const int kStateFieldNumber = 1; ::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: + static const int kFileVersionFieldNumber = 4; + ::google::protobuf::int32 file_version() const; + void set_file_version(::google::protobuf::int32 value); // optional uint64 file_size = 6; 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: + static const int kFileSizeFieldNumber = 6; + ::google::protobuf::uint64 file_size() const; + void set_file_size(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:DataExporter_ns.Response) private: - class _Internal; + void set_has_state(); + void clear_has_state(); + void set_has_status(); + void clear_has_status(); + void set_has_file_path(); + void clear_has_file_path(); + void set_has_file_version(); + void clear_has_file_version(); + void set_has_file_name(); + void clear_has_file_name(); + void set_has_file_size(); + void clear_has_file_size(); // 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_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable int _cached_size_; + ::google::protobuf::internal::ArenaStringPtr status_; + ::google::protobuf::internal::ArenaStringPtr file_path_; + ::google::protobuf::internal::ArenaStringPtr file_name_; int state_; - ::PROTOBUF_NAMESPACE_ID::int32 file_version_; - ::PROTOBUF_NAMESPACE_ID::uint64 file_size_; - friend struct ::TableStruct_Response_2eproto; + ::google::protobuf::int32 file_version_; + ::google::protobuf::uint64 file_size_; + friend struct ::protobuf_Response_2eproto::TableStruct; + friend void ::protobuf_Response_2eproto::InitDefaultsResponseImpl(); }; // =================================================================== @@ -420,366 +315,264 @@ class Response PROTOBUF_FINAL : // Response // required .DataExporter_ns.Response.State state = 1; -inline bool Response::_internal_has_state() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} inline bool Response::has_state() const { - return _internal_has_state(); + return (_has_bits_[0] & 0x00000008u) != 0; } -inline void Response::clear_state() { - state_ = 0; +inline void Response::set_has_state() { + _has_bits_[0] |= 0x00000008u; +} +inline void Response::clear_has_state() { _has_bits_[0] &= ~0x00000008u; } -inline ::DataExporter_ns::Response_State Response::_internal_state() const { - return static_cast< ::DataExporter_ns::Response_State >(state_); +inline void Response::clear_state() { + state_ = 0; + clear_has_state(); } inline ::DataExporter_ns::Response_State Response::state() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.state) - return _internal_state(); + return static_cast< ::DataExporter_ns::Response_State >(state_); } -inline void Response::_internal_set_state(::DataExporter_ns::Response_State value) { +inline void Response::set_state(::DataExporter_ns::Response_State value) { assert(::DataExporter_ns::Response_State_IsValid(value)); - _has_bits_[0] |= 0x00000008u; + set_has_state(); 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 _internal_has_status(); + return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Response::clear_status() { - status_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Response::set_has_status() { + _has_bits_[0] |= 0x00000001u; +} +inline void Response::clear_has_status() { _has_bits_[0] &= ~0x00000001u; } -inline const std::string& Response::status() const { +inline void Response::clear_status() { + status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_status(); +} +inline const ::std::string& Response::status() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.status) - return _internal_status(); + return status_.GetNoArena(); } -inline void Response::set_status(const std::string& value) { - _internal_set_status(value); +inline void Response::set_status(const ::std::string& value) { + set_has_status(); + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Response.status) } -inline std::string* Response::mutable_status() { - // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.status) - return _internal_mutable_status(); -} -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()); +#if LANG_CXX11 +inline void Response::set_status(::std::string&& value) { + set_has_status(); + status_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.status) } +#endif inline void Response::set_status(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - status_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_status(); + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.status) } -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()); +inline void Response::set_status(const char* value, size_t size) { + set_has_status(); + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:DataExporter_ns.Response.status) } -inline std::string* Response::_internal_mutable_status() { - _has_bits_[0] |= 0x00000001u; - return status_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline ::std::string* Response::mutable_status() { + set_has_status(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.status) + return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Response::release_status() { +inline ::std::string* Response::release_status() { // @@protoc_insertion_point(field_release:DataExporter_ns.Response.status) - if (!_internal_has_status()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return status_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_status(); + return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Response::set_allocated_status(std::string* status) { - if (status != nullptr) { - _has_bits_[0] |= 0x00000001u; +inline void Response::set_allocated_status(::std::string* status) { + if (status != NULL) { + set_has_status(); } else { - _has_bits_[0] &= ~0x00000001u; + clear_has_status(); } - status_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), status, - GetArena()); + status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.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 { - _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 _internal_has_file_path(); + return (_has_bits_[0] & 0x00000002u) != 0; } -inline void Response::clear_file_path() { - file_path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Response::set_has_file_path() { + _has_bits_[0] |= 0x00000002u; +} +inline void Response::clear_has_file_path() { _has_bits_[0] &= ~0x00000002u; } -inline const std::string& Response::file_path() const { +inline void Response::clear_file_path() { + file_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_file_path(); +} +inline const ::std::string& Response::file_path() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_path) - return _internal_file_path(); + return file_path_.GetNoArena(); } -inline void Response::set_file_path(const std::string& value) { - _internal_set_file_path(value); +inline void Response::set_file_path(const ::std::string& value) { + set_has_file_path(); + file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Response.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 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()); +#if LANG_CXX11 +inline void Response::set_file_path(::std::string&& value) { + set_has_file_path(); + file_path_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.file_path) } +#endif inline void Response::set_file_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - file_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_file_path(); + file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.file_path) } -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()); +inline void Response::set_file_path(const char* value, size_t size) { + set_has_file_path(); + file_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@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(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.file_path) + return file_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Response::release_file_path() { +inline ::std::string* Response::release_file_path() { // @@protoc_insertion_point(field_release:DataExporter_ns.Response.file_path) - if (!_internal_has_file_path()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return file_path_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_file_path(); + return file_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Response::set_allocated_file_path(std::string* file_path) { - if (file_path != nullptr) { - _has_bits_[0] |= 0x00000002u; +inline void Response::set_allocated_file_path(::std::string* file_path) { + if (file_path != NULL) { + set_has_file_path(); } else { - _has_bits_[0] &= ~0x00000002u; + clear_has_file_path(); } - file_path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_path, - GetArena()); + file_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_path); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.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 { - _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::_internal_has_file_version() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} inline bool Response::has_file_version() const { - return _internal_has_file_version(); + return (_has_bits_[0] & 0x00000010u) != 0; } -inline void Response::clear_file_version() { - file_version_ = 0; +inline void Response::set_has_file_version() { + _has_bits_[0] |= 0x00000010u; +} +inline void Response::clear_has_file_version() { _has_bits_[0] &= ~0x00000010u; } -inline ::PROTOBUF_NAMESPACE_ID::int32 Response::_internal_file_version() const { - return file_version_; +inline void Response::clear_file_version() { + file_version_ = 0; + clear_has_file_version(); } -inline ::PROTOBUF_NAMESPACE_ID::int32 Response::file_version() const { +inline ::google::protobuf::int32 Response::file_version() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_version) - return _internal_file_version(); + return file_version_; } -inline void Response::_internal_set_file_version(::PROTOBUF_NAMESPACE_ID::int32 value) { - _has_bits_[0] |= 0x00000010u; +inline void Response::set_file_version(::google::protobuf::int32 value) { + set_has_file_version(); 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 _internal_has_file_name(); + return (_has_bits_[0] & 0x00000004u) != 0; } -inline void Response::clear_file_name() { - file_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline void Response::set_has_file_name() { + _has_bits_[0] |= 0x00000004u; +} +inline void Response::clear_has_file_name() { _has_bits_[0] &= ~0x00000004u; } -inline const std::string& Response::file_name() const { +inline void Response::clear_file_name() { + file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_file_name(); +} +inline const ::std::string& Response::file_name() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_name) - return _internal_file_name(); + return file_name_.GetNoArena(); } -inline void Response::set_file_name(const std::string& value) { - _internal_set_file_name(value); +inline void Response::set_file_name(const ::std::string& value) { + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DataExporter_ns.Response.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 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()); +#if LANG_CXX11 +inline void Response::set_file_name(::std::string&& value) { + set_has_file_name(); + file_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:DataExporter_ns.Response.file_name) } +#endif inline void Response::set_file_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000004u; - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); + GOOGLE_DCHECK(value != NULL); + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:DataExporter_ns.Response.file_name) } -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()); +inline void Response::set_file_name(const char* value, size_t size) { + set_has_file_name(); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); // @@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(); + // @@protoc_insertion_point(field_mutable:DataExporter_ns.Response.file_name) + return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Response::release_file_name() { +inline ::std::string* Response::release_file_name() { // @@protoc_insertion_point(field_release:DataExporter_ns.Response.file_name) - if (!_internal_has_file_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - return file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clear_has_file_name(); + return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Response::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { - _has_bits_[0] |= 0x00000004u; +inline void Response::set_allocated_file_name(::std::string* file_name) { + if (file_name != NULL) { + set_has_file_name(); } else { - _has_bits_[0] &= ~0x00000004u; + clear_has_file_name(); } - file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, - GetArena()); + file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name); // @@protoc_insertion_point(field_set_allocated:DataExporter_ns.Response.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 { - _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::_internal_has_file_size() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} inline bool Response::has_file_size() const { - return _internal_has_file_size(); + return (_has_bits_[0] & 0x00000020u) != 0; } -inline void Response::clear_file_size() { - file_size_ = PROTOBUF_ULONGLONG(0); +inline void Response::set_has_file_size() { + _has_bits_[0] |= 0x00000020u; +} +inline void Response::clear_has_file_size() { _has_bits_[0] &= ~0x00000020u; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Response::_internal_file_size() const { - return file_size_; +inline void Response::clear_file_size() { + file_size_ = GOOGLE_ULONGLONG(0); + clear_has_file_size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Response::file_size() const { +inline ::google::protobuf::uint64 Response::file_size() const { // @@protoc_insertion_point(field_get:DataExporter_ns.Response.file_size) - return _internal_file_size(); + return file_size_; } -inline void Response::_internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _has_bits_[0] |= 0x00000020u; +inline void Response::set_file_size(::google::protobuf::uint64 value) { + set_has_file_size(); 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) } @@ -791,17 +584,18 @@ inline void Response::set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { } // namespace DataExporter_ns -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::DataExporter_ns::Response_State> : ::std::true_type {}; +template <> struct is_proto_enum< ::DataExporter_ns::Response_State> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::DataExporter_ns::Response_State>() { return ::DataExporter_ns::Response_State_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include <google/protobuf/port_undef.inc> -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Response_2eproto +#endif // PROTOBUF_Response_2eproto__INCLUDED -- GitLab