// Generated by the protocol buffer compiler. DO NOT EDIT! // source: log_process.proto #include "log_process.pb.h" #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace protobuf_central_5fcontrol_5fmessage_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_central_5fcontrol_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Process_manual_operation_msg; } // namespace protobuf_central_5fcontrol_5fmessage_2eproto namespace protobuf_dispatch_5fmessage_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Dispatch_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_dispatch_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Dispatch_response_msg; } // namespace protobuf_dispatch_5fmessage_2eproto namespace protobuf_log_5fprocess_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<12> scc_info_Node_log; extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Manual_operation_log; extern PROTOBUF_INTERNAL_EXPORT_protobuf_log_5fprocess_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Log_data; } // namespace protobuf_log_5fprocess_2eproto namespace protobuf_measure_5fmessage_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_measure_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Measure_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_measure_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Measure_response_msg; } // namespace protobuf_measure_5fmessage_2eproto namespace protobuf_parkspace_5fallocation_5fmessage_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_allocation_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_confirm_alloc_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_release_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parkspace_search_request_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_allocation_response_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_confirm_alloc_response_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_release_response_msg; extern PROTOBUF_INTERNAL_EXPORT_protobuf_parkspace_5fallocation_5fmessage_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Parkspace_search_response_msg; } // namespace protobuf_parkspace_5fallocation_5fmessage_2eproto namespace message { class Node_logDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; const ::message::Parkspace_allocation_request_msg* alloc_request_; const ::message::Parkspace_search_request_msg* search_request_; const ::message::Parkspace_release_request_msg* release_request_; const ::message::Parkspace_confirm_alloc_request_msg* confirm_request_; const ::message::Measure_request_msg* measure_request_; const ::message::Dispatch_request_msg* dispatch_request_; const ::message::Parkspace_allocation_response_msg* alloc_response_; const ::message::Parkspace_search_response_msg* search_response_; const ::message::Parkspace_release_response_msg* release_response_; const ::message::Parkspace_confirm_alloc_response_msg* confirm_response_; const ::message::Measure_response_msg* measure_response_; const ::message::Dispatch_response_msg* dispatch_response_; } _Node_log_default_instance_; class Manual_operation_logDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Manual_operation_log_default_instance_; class Log_dataDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; ::google::protobuf::internal::ArenaStringPtr str_log_; const ::message::Node_log* node_log_; const ::message::Manual_operation_log* manual_operator_log_; } _Log_data_default_instance_; class Process_logDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Process_log_default_instance_; } // namespace message namespace protobuf_log_5fprocess_2eproto { static void InitDefaultsNode_log() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::message::_Node_log_default_instance_; new (ptr) ::message::Node_log(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Node_log::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<12> scc_info_Node_log = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 12, InitDefaultsNode_log}, { &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_allocation_request_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_search_request_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_release_request_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_confirm_alloc_request_msg.base, &protobuf_measure_5fmessage_2eproto::scc_info_Measure_request_msg.base, &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_allocation_response_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_search_response_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_release_response_msg.base, &protobuf_parkspace_5fallocation_5fmessage_2eproto::scc_info_Parkspace_confirm_alloc_response_msg.base, &protobuf_measure_5fmessage_2eproto::scc_info_Measure_response_msg.base, &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base,}}; static void InitDefaultsManual_operation_log() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::message::_Manual_operation_log_default_instance_; new (ptr) ::message::Manual_operation_log(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Manual_operation_log::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_Manual_operation_log = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManual_operation_log}, { &protobuf_central_5fcontrol_5fmessage_2eproto::scc_info_Process_manual_operation_msg.base,}}; static void InitDefaultsLog_data() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::message::_Log_data_default_instance_; new (ptr) ::message::Log_data(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Log_data::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<2> scc_info_Log_data = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLog_data}, { &protobuf_log_5fprocess_2eproto::scc_info_Node_log.base, &protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base,}}; static void InitDefaultsProcess_log() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::message::_Process_log_default_instance_; new (ptr) ::message::Process_log(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::message::Process_log::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_Process_log = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProcess_log}, { &protobuf_log_5fprocess_2eproto::scc_info_Log_data.base,}}; void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_Node_log.base); ::google::protobuf::internal::InitSCC(&scc_info_Manual_operation_log.base); ::google::protobuf::internal::InitSCC(&scc_info_Log_data.base); ::google::protobuf::internal::InitSCC(&scc_info_Process_log.base); } ::google::protobuf::Metadata file_level_metadata[4]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _internal_metadata_), ~0u, // no _extensions_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, _oneof_case_[0]), ~0u, // no _weak_field_map_ offsetof(::message::Node_logDefaultTypeInternal, alloc_request_), offsetof(::message::Node_logDefaultTypeInternal, search_request_), offsetof(::message::Node_logDefaultTypeInternal, release_request_), offsetof(::message::Node_logDefaultTypeInternal, confirm_request_), offsetof(::message::Node_logDefaultTypeInternal, measure_request_), offsetof(::message::Node_logDefaultTypeInternal, dispatch_request_), offsetof(::message::Node_logDefaultTypeInternal, alloc_response_), offsetof(::message::Node_logDefaultTypeInternal, search_response_), offsetof(::message::Node_logDefaultTypeInternal, release_response_), offsetof(::message::Node_logDefaultTypeInternal, confirm_response_), offsetof(::message::Node_logDefaultTypeInternal, measure_response_), offsetof(::message::Node_logDefaultTypeInternal, dispatch_response_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, description_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, request_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Node_log, response_), ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, manual_operation_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Manual_operation_log, description_), 1, 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _internal_metadata_), ~0u, // no _extensions_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, _oneof_case_[0]), ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, log_severity_), offsetof(::message::Log_dataDefaultTypeInternal, str_log_), offsetof(::message::Log_dataDefaultTypeInternal, node_log_), offsetof(::message::Log_dataDefaultTypeInternal, manual_operator_log_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Log_data, data_), 0, ~0u, ~0u, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, process_type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Process_log, log_data_), 0, ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 20, sizeof(::message::Node_log)}, { 33, 40, sizeof(::message::Manual_operation_log)}, { 42, 52, sizeof(::message::Log_data)}, { 56, 63, sizeof(::message::Process_log)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::message::_Node_log_default_instance_), reinterpret_cast(&::message::_Manual_operation_log_default_instance_), reinterpret_cast(&::message::_Log_data_default_instance_), reinterpret_cast(&::message::_Process_log_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "log_process.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, file_level_enum_descriptors, NULL); } void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(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, 4); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\021log_process.proto\022\007message\032\022message_ba" "se.proto\032\"parkspace_allocation_message.p" "roto\032\025measure_message.proto\032\026dispatch_me" "ssage.proto\032\035central_control_message.pro" "to\"\314\006\n\010Node_log\022B\n\ralloc_request\030\001 \001(\0132)" ".message.Parkspace_allocation_request_ms" "gH\000\022\?\n\016search_request\030\003 \001(\0132%.message.Pa" "rkspace_search_request_msgH\000\022A\n\017release_" "request\030\005 \001(\0132&.message.Parkspace_releas" "e_request_msgH\000\022G\n\017confirm_request\030\007 \001(\013" "2,.message.Parkspace_confirm_alloc_reque" "st_msgH\000\0227\n\017measure_request\030\t \001(\0132\034.mess" "age.Measure_request_msgH\000\0229\n\020dispatch_re" "quest\030\013 \001(\0132\035.message.Dispatch_request_m" "sgH\000\022D\n\016alloc_response\030\002 \001(\0132*.message.P" "arkspace_allocation_response_msgH\001\022A\n\017se" "arch_response\030\004 \001(\0132&.message.Parkspace_" "search_response_msgH\001\022C\n\020release_respons" "e\030\006 \001(\0132\'.message.Parkspace_release_resp" "onse_msgH\001\022I\n\020confirm_response\030\010 \001(\0132-.m" "essage.Parkspace_confirm_alloc_response_" "msgH\001\0229\n\020measure_response\030\n \001(\0132\035.messag" "e.Measure_response_msgH\001\022;\n\021dispatch_res" "ponse\030\014 \001(\0132\036.message.Dispatch_response_" "msgH\001\022\023\n\013description\030\r \001(\tB\t\n\007requestB\n\n" "\010response\"l\n\024Manual_operation_log\022\?\n\020man" "ual_operation\030\001 \002(\0132%.message.Process_ma" "nual_operation_msg\022\023\n\013description\030\002 \001(\t\"" "\352\001\n\010Log_data\0220\n\014log_severity\030\001 \002(\0162\032.mes" "sage.Log_data.Severity\022\021\n\007str_log\030\002 \001(\tH" "\000\022%\n\010node_log\030\003 \001(\0132\021.message.Node_logH\000" "\022<\n\023manual_operator_log\030\004 \001(\0132\035.message." "Manual_operation_logH\000\",\n\010Severity\022\010\n\004IN" "FO\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\006\n\004data\"_\n\013" "Process_log\022+\n\014process_type\030\001 \002(\0162\025.mess" "age.Process_type\022#\n\010log_data\030\002 \003(\0132\021.mes" "sage.Log_data" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 1453); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "log_process.proto", &protobuf_RegisterTypes); ::protobuf_message_5fbase_2eproto::AddDescriptors(); ::protobuf_parkspace_5fallocation_5fmessage_2eproto::AddDescriptors(); ::protobuf_measure_5fmessage_2eproto::AddDescriptors(); ::protobuf_dispatch_5fmessage_2eproto::AddDescriptors(); ::protobuf_central_5fcontrol_5fmessage_2eproto::AddDescriptors(); } void AddDescriptors() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_log_5fprocess_2eproto namespace message { const ::google::protobuf::EnumDescriptor* Log_data_Severity_descriptor() { protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_log_5fprocess_2eproto::file_level_enum_descriptors[0]; } bool Log_data_Severity_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const Log_data_Severity Log_data::INFO; const Log_data_Severity Log_data::WARNING; const Log_data_Severity Log_data::ERROR; const Log_data_Severity Log_data::Severity_MIN; const Log_data_Severity Log_data::Severity_MAX; const int Log_data::Severity_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 // =================================================================== void Node_log::InitAsDefaultInstance() { ::message::_Node_log_default_instance_.alloc_request_ = const_cast< ::message::Parkspace_allocation_request_msg*>( ::message::Parkspace_allocation_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.search_request_ = const_cast< ::message::Parkspace_search_request_msg*>( ::message::Parkspace_search_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.release_request_ = const_cast< ::message::Parkspace_release_request_msg*>( ::message::Parkspace_release_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.confirm_request_ = const_cast< ::message::Parkspace_confirm_alloc_request_msg*>( ::message::Parkspace_confirm_alloc_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.measure_request_ = const_cast< ::message::Measure_request_msg*>( ::message::Measure_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.dispatch_request_ = const_cast< ::message::Dispatch_request_msg*>( ::message::Dispatch_request_msg::internal_default_instance()); ::message::_Node_log_default_instance_.alloc_response_ = const_cast< ::message::Parkspace_allocation_response_msg*>( ::message::Parkspace_allocation_response_msg::internal_default_instance()); ::message::_Node_log_default_instance_.search_response_ = const_cast< ::message::Parkspace_search_response_msg*>( ::message::Parkspace_search_response_msg::internal_default_instance()); ::message::_Node_log_default_instance_.release_response_ = const_cast< ::message::Parkspace_release_response_msg*>( ::message::Parkspace_release_response_msg::internal_default_instance()); ::message::_Node_log_default_instance_.confirm_response_ = const_cast< ::message::Parkspace_confirm_alloc_response_msg*>( ::message::Parkspace_confirm_alloc_response_msg::internal_default_instance()); ::message::_Node_log_default_instance_.measure_response_ = const_cast< ::message::Measure_response_msg*>( ::message::Measure_response_msg::internal_default_instance()); ::message::_Node_log_default_instance_.dispatch_response_ = const_cast< ::message::Dispatch_response_msg*>( ::message::Dispatch_response_msg::internal_default_instance()); } void Node_log::set_allocated_alloc_request(::message::Parkspace_allocation_request_msg* alloc_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (alloc_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { alloc_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, alloc_request, submessage_arena); } set_has_alloc_request(); request_.alloc_request_ = alloc_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.alloc_request) } void Node_log::clear_alloc_request() { if (has_alloc_request()) { delete request_.alloc_request_; clear_has_request(); } } void Node_log::set_allocated_search_request(::message::Parkspace_search_request_msg* search_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (search_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { search_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, search_request, submessage_arena); } set_has_search_request(); request_.search_request_ = search_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.search_request) } void Node_log::clear_search_request() { if (has_search_request()) { delete request_.search_request_; clear_has_request(); } } void Node_log::set_allocated_release_request(::message::Parkspace_release_request_msg* release_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (release_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { release_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, release_request, submessage_arena); } set_has_release_request(); request_.release_request_ = release_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.release_request) } void Node_log::clear_release_request() { if (has_release_request()) { delete request_.release_request_; clear_has_request(); } } void Node_log::set_allocated_confirm_request(::message::Parkspace_confirm_alloc_request_msg* confirm_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (confirm_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { confirm_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, confirm_request, submessage_arena); } set_has_confirm_request(); request_.confirm_request_ = confirm_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.confirm_request) } void Node_log::clear_confirm_request() { if (has_confirm_request()) { delete request_.confirm_request_; clear_has_request(); } } void Node_log::set_allocated_measure_request(::message::Measure_request_msg* measure_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (measure_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { measure_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, measure_request, submessage_arena); } set_has_measure_request(); request_.measure_request_ = measure_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.measure_request) } void Node_log::clear_measure_request() { if (has_measure_request()) { delete request_.measure_request_; clear_has_request(); } } void Node_log::set_allocated_dispatch_request(::message::Dispatch_request_msg* dispatch_request) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_request(); if (dispatch_request) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { dispatch_request = ::google::protobuf::internal::GetOwnedMessage( message_arena, dispatch_request, submessage_arena); } set_has_dispatch_request(); request_.dispatch_request_ = dispatch_request; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.dispatch_request) } void Node_log::clear_dispatch_request() { if (has_dispatch_request()) { delete request_.dispatch_request_; clear_has_request(); } } void Node_log::set_allocated_alloc_response(::message::Parkspace_allocation_response_msg* alloc_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (alloc_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { alloc_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, alloc_response, submessage_arena); } set_has_alloc_response(); response_.alloc_response_ = alloc_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.alloc_response) } void Node_log::clear_alloc_response() { if (has_alloc_response()) { delete response_.alloc_response_; clear_has_response(); } } void Node_log::set_allocated_search_response(::message::Parkspace_search_response_msg* search_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (search_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { search_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, search_response, submessage_arena); } set_has_search_response(); response_.search_response_ = search_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.search_response) } void Node_log::clear_search_response() { if (has_search_response()) { delete response_.search_response_; clear_has_response(); } } void Node_log::set_allocated_release_response(::message::Parkspace_release_response_msg* release_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (release_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { release_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, release_response, submessage_arena); } set_has_release_response(); response_.release_response_ = release_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.release_response) } void Node_log::clear_release_response() { if (has_release_response()) { delete response_.release_response_; clear_has_response(); } } void Node_log::set_allocated_confirm_response(::message::Parkspace_confirm_alloc_response_msg* confirm_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (confirm_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { confirm_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, confirm_response, submessage_arena); } set_has_confirm_response(); response_.confirm_response_ = confirm_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.confirm_response) } void Node_log::clear_confirm_response() { if (has_confirm_response()) { delete response_.confirm_response_; clear_has_response(); } } void Node_log::set_allocated_measure_response(::message::Measure_response_msg* measure_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (measure_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { measure_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, measure_response, submessage_arena); } set_has_measure_response(); response_.measure_response_ = measure_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.measure_response) } void Node_log::clear_measure_response() { if (has_measure_response()) { delete response_.measure_response_; clear_has_response(); } } void Node_log::set_allocated_dispatch_response(::message::Dispatch_response_msg* dispatch_response) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_response(); if (dispatch_response) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { dispatch_response = ::google::protobuf::internal::GetOwnedMessage( message_arena, dispatch_response, submessage_arena); } set_has_dispatch_response(); response_.dispatch_response_ = dispatch_response; } // @@protoc_insertion_point(field_set_allocated:message.Node_log.dispatch_response) } void Node_log::clear_dispatch_response() { if (has_dispatch_response()) { delete response_.dispatch_response_; clear_has_response(); } } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Node_log::kAllocRequestFieldNumber; const int Node_log::kSearchRequestFieldNumber; const int Node_log::kReleaseRequestFieldNumber; const int Node_log::kConfirmRequestFieldNumber; const int Node_log::kMeasureRequestFieldNumber; const int Node_log::kDispatchRequestFieldNumber; const int Node_log::kAllocResponseFieldNumber; const int Node_log::kSearchResponseFieldNumber; const int Node_log::kReleaseResponseFieldNumber; const int Node_log::kConfirmResponseFieldNumber; const int Node_log::kMeasureResponseFieldNumber; const int Node_log::kDispatchResponseFieldNumber; const int Node_log::kDescriptionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Node_log::Node_log() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_log_5fprocess_2eproto::scc_info_Node_log.base); SharedCtor(); // @@protoc_insertion_point(constructor:message.Node_log) } Node_log::Node_log(const Node_log& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_description()) { description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); } clear_has_request(); switch (from.request_case()) { case kAllocRequest: { mutable_alloc_request()->::message::Parkspace_allocation_request_msg::MergeFrom(from.alloc_request()); break; } case kSearchRequest: { mutable_search_request()->::message::Parkspace_search_request_msg::MergeFrom(from.search_request()); break; } case kReleaseRequest: { mutable_release_request()->::message::Parkspace_release_request_msg::MergeFrom(from.release_request()); break; } case kConfirmRequest: { mutable_confirm_request()->::message::Parkspace_confirm_alloc_request_msg::MergeFrom(from.confirm_request()); break; } case kMeasureRequest: { mutable_measure_request()->::message::Measure_request_msg::MergeFrom(from.measure_request()); break; } case kDispatchRequest: { mutable_dispatch_request()->::message::Dispatch_request_msg::MergeFrom(from.dispatch_request()); break; } case REQUEST_NOT_SET: { break; } } clear_has_response(); switch (from.response_case()) { case kAllocResponse: { mutable_alloc_response()->::message::Parkspace_allocation_response_msg::MergeFrom(from.alloc_response()); break; } case kSearchResponse: { mutable_search_response()->::message::Parkspace_search_response_msg::MergeFrom(from.search_response()); break; } case kReleaseResponse: { mutable_release_response()->::message::Parkspace_release_response_msg::MergeFrom(from.release_response()); break; } case kConfirmResponse: { mutable_confirm_response()->::message::Parkspace_confirm_alloc_response_msg::MergeFrom(from.confirm_response()); break; } case kMeasureResponse: { mutable_measure_response()->::message::Measure_response_msg::MergeFrom(from.measure_response()); break; } case kDispatchResponse: { mutable_dispatch_response()->::message::Dispatch_response_msg::MergeFrom(from.dispatch_response()); break; } case RESPONSE_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:message.Node_log) } void Node_log::SharedCtor() { description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_request(); clear_has_response(); } Node_log::~Node_log() { // @@protoc_insertion_point(destructor:message.Node_log) SharedDtor(); } void Node_log::SharedDtor() { description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (has_request()) { clear_request(); } if (has_response()) { clear_response(); } } void Node_log::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Node_log::descriptor() { ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Node_log& Node_log::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Node_log.base); return *internal_default_instance(); } void Node_log::clear_request() { // @@protoc_insertion_point(one_of_clear_start:message.Node_log) switch (request_case()) { case kAllocRequest: { delete request_.alloc_request_; break; } case kSearchRequest: { delete request_.search_request_; break; } case kReleaseRequest: { delete request_.release_request_; break; } case kConfirmRequest: { delete request_.confirm_request_; break; } case kMeasureRequest: { delete request_.measure_request_; break; } case kDispatchRequest: { delete request_.dispatch_request_; break; } case REQUEST_NOT_SET: { break; } } _oneof_case_[0] = REQUEST_NOT_SET; } void Node_log::clear_response() { // @@protoc_insertion_point(one_of_clear_start:message.Node_log) switch (response_case()) { case kAllocResponse: { delete response_.alloc_response_; break; } case kSearchResponse: { delete response_.search_response_; break; } case kReleaseResponse: { delete response_.release_response_; break; } case kConfirmResponse: { delete response_.confirm_response_; break; } case kMeasureResponse: { delete response_.measure_response_; break; } case kDispatchResponse: { delete response_.dispatch_response_; break; } case RESPONSE_NOT_SET: { break; } } _oneof_case_[1] = RESPONSE_NOT_SET; } void Node_log::Clear() { // @@protoc_insertion_point(message_clear_start:message.Node_log) ::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 & 0x00000001u) { description_.ClearNonDefaultToEmptyNoArena(); } clear_request(); clear_response(); _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Node_log::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:message.Node_log) 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)) { // optional .message.Parkspace_allocation_request_msg alloc_request = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_alloc_request())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_allocation_response_msg alloc_response = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_alloc_response())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_search_request_msg search_request = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_search_request())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_search_response_msg search_response = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_search_response())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_release_request_msg release_request = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_release_request())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_release_response_msg release_response = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_release_response())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_confirm_request())); } else { goto handle_unusual; } break; } // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_confirm_response())); } else { goto handle_unusual; } break; } // optional .message.Measure_request_msg measure_request = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_measure_request())); } else { goto handle_unusual; } break; } // optional .message.Measure_response_msg measure_response = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_measure_response())); } else { goto handle_unusual; } break; } // optional .message.Dispatch_request_msg dispatch_request = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dispatch_request())); } else { goto handle_unusual; } break; } // optional .message.Dispatch_response_msg dispatch_response = 12; case 12: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dispatch_response())); } else { goto handle_unusual; } break; } // optional string description = 13; case 13: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Node_log.description"); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Node_log) return true; failure: // @@protoc_insertion_point(parse_failure:message.Node_log) return false; #undef DO_ } void Node_log::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Node_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // optional .message.Parkspace_allocation_request_msg alloc_request = 1; if (has_alloc_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->_internal_alloc_request(), output); } // optional .message.Parkspace_allocation_response_msg alloc_response = 2; if (has_alloc_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->_internal_alloc_response(), output); } // optional .message.Parkspace_search_request_msg search_request = 3; if (has_search_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->_internal_search_request(), output); } // optional .message.Parkspace_search_response_msg search_response = 4; if (has_search_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->_internal_search_response(), output); } // optional .message.Parkspace_release_request_msg release_request = 5; if (has_release_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->_internal_release_request(), output); } // optional .message.Parkspace_release_response_msg release_response = 6; if (has_release_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->_internal_release_response(), output); } // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7; if (has_confirm_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, this->_internal_confirm_request(), output); } // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8; if (has_confirm_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, this->_internal_confirm_response(), output); } // optional .message.Measure_request_msg measure_request = 9; if (has_measure_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, this->_internal_measure_request(), output); } // optional .message.Measure_response_msg measure_response = 10; if (has_measure_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10, this->_internal_measure_response(), output); } // optional .message.Dispatch_request_msg dispatch_request = 11; if (has_dispatch_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11, this->_internal_dispatch_request(), output); } // optional .message.Dispatch_response_msg dispatch_response = 12; if (has_dispatch_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12, this->_internal_dispatch_response(), output); } cached_has_bits = _has_bits_[0]; // optional string description = 13; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Node_log.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 13, this->description(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Node_log) } ::google::protobuf::uint8* Node_log::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Node_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // optional .message.Parkspace_allocation_request_msg alloc_request = 1; if (has_alloc_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->_internal_alloc_request(), deterministic, target); } // optional .message.Parkspace_allocation_response_msg alloc_response = 2; if (has_alloc_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->_internal_alloc_response(), deterministic, target); } // optional .message.Parkspace_search_request_msg search_request = 3; if (has_search_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->_internal_search_request(), deterministic, target); } // optional .message.Parkspace_search_response_msg search_response = 4; if (has_search_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->_internal_search_response(), deterministic, target); } // optional .message.Parkspace_release_request_msg release_request = 5; if (has_release_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, this->_internal_release_request(), deterministic, target); } // optional .message.Parkspace_release_response_msg release_response = 6; if (has_release_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, this->_internal_release_response(), deterministic, target); } // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7; if (has_confirm_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, this->_internal_confirm_request(), deterministic, target); } // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8; if (has_confirm_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, this->_internal_confirm_response(), deterministic, target); } // optional .message.Measure_request_msg measure_request = 9; if (has_measure_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, this->_internal_measure_request(), deterministic, target); } // optional .message.Measure_response_msg measure_response = 10; if (has_measure_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 10, this->_internal_measure_response(), deterministic, target); } // optional .message.Dispatch_request_msg dispatch_request = 11; if (has_dispatch_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 11, this->_internal_dispatch_request(), deterministic, target); } // optional .message.Dispatch_response_msg dispatch_response = 12; if (has_dispatch_response()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 12, this->_internal_dispatch_response(), deterministic, target); } cached_has_bits = _has_bits_[0]; // optional string description = 13; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Node_log.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 13, this->description(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Node_log) return target; } size_t Node_log::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Node_log) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // optional string description = 13; if (has_description()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } switch (request_case()) { // optional .message.Parkspace_allocation_request_msg alloc_request = 1; case kAllocRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.alloc_request_); break; } // optional .message.Parkspace_search_request_msg search_request = 3; case kSearchRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.search_request_); break; } // optional .message.Parkspace_release_request_msg release_request = 5; case kReleaseRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.release_request_); break; } // optional .message.Parkspace_confirm_alloc_request_msg confirm_request = 7; case kConfirmRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.confirm_request_); break; } // optional .message.Measure_request_msg measure_request = 9; case kMeasureRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.measure_request_); break; } // optional .message.Dispatch_request_msg dispatch_request = 11; case kDispatchRequest: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *request_.dispatch_request_); break; } case REQUEST_NOT_SET: { break; } } switch (response_case()) { // optional .message.Parkspace_allocation_response_msg alloc_response = 2; case kAllocResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.alloc_response_); break; } // optional .message.Parkspace_search_response_msg search_response = 4; case kSearchResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.search_response_); break; } // optional .message.Parkspace_release_response_msg release_response = 6; case kReleaseResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.release_response_); break; } // optional .message.Parkspace_confirm_alloc_response_msg confirm_response = 8; case kConfirmResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.confirm_response_); break; } // optional .message.Measure_response_msg measure_response = 10; case kMeasureResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.measure_response_); break; } // optional .message.Dispatch_response_msg dispatch_response = 12; case kDispatchResponse: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *response_.dispatch_response_); break; } case RESPONSE_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Node_log::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Node_log) GOOGLE_DCHECK_NE(&from, this); const Node_log* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Node_log) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Node_log) MergeFrom(*source); } } void Node_log::MergeFrom(const Node_log& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Node_log) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_description()) { set_has_description(); description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); } switch (from.request_case()) { case kAllocRequest: { mutable_alloc_request()->::message::Parkspace_allocation_request_msg::MergeFrom(from.alloc_request()); break; } case kSearchRequest: { mutable_search_request()->::message::Parkspace_search_request_msg::MergeFrom(from.search_request()); break; } case kReleaseRequest: { mutable_release_request()->::message::Parkspace_release_request_msg::MergeFrom(from.release_request()); break; } case kConfirmRequest: { mutable_confirm_request()->::message::Parkspace_confirm_alloc_request_msg::MergeFrom(from.confirm_request()); break; } case kMeasureRequest: { mutable_measure_request()->::message::Measure_request_msg::MergeFrom(from.measure_request()); break; } case kDispatchRequest: { mutable_dispatch_request()->::message::Dispatch_request_msg::MergeFrom(from.dispatch_request()); break; } case REQUEST_NOT_SET: { break; } } switch (from.response_case()) { case kAllocResponse: { mutable_alloc_response()->::message::Parkspace_allocation_response_msg::MergeFrom(from.alloc_response()); break; } case kSearchResponse: { mutable_search_response()->::message::Parkspace_search_response_msg::MergeFrom(from.search_response()); break; } case kReleaseResponse: { mutable_release_response()->::message::Parkspace_release_response_msg::MergeFrom(from.release_response()); break; } case kConfirmResponse: { mutable_confirm_response()->::message::Parkspace_confirm_alloc_response_msg::MergeFrom(from.confirm_response()); break; } case kMeasureResponse: { mutable_measure_response()->::message::Measure_response_msg::MergeFrom(from.measure_response()); break; } case kDispatchResponse: { mutable_dispatch_response()->::message::Dispatch_response_msg::MergeFrom(from.dispatch_response()); break; } case RESPONSE_NOT_SET: { break; } } } void Node_log::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Node_log) if (&from == this) return; Clear(); MergeFrom(from); } void Node_log::CopyFrom(const Node_log& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Node_log) if (&from == this) return; Clear(); MergeFrom(from); } bool Node_log::IsInitialized() const { switch (request_case()) { case kAllocRequest: { if (has_alloc_request()) { if (!this->alloc_request().IsInitialized()) return false; } break; } case kSearchRequest: { if (has_search_request()) { if (!this->search_request().IsInitialized()) return false; } break; } case kReleaseRequest: { if (has_release_request()) { if (!this->release_request().IsInitialized()) return false; } break; } case kConfirmRequest: { if (has_confirm_request()) { if (!this->confirm_request().IsInitialized()) return false; } break; } case kMeasureRequest: { if (has_measure_request()) { if (!this->measure_request().IsInitialized()) return false; } break; } case kDispatchRequest: { if (has_dispatch_request()) { if (!this->dispatch_request().IsInitialized()) return false; } break; } case REQUEST_NOT_SET: { break; } } switch (response_case()) { case kAllocResponse: { if (has_alloc_response()) { if (!this->alloc_response().IsInitialized()) return false; } break; } case kSearchResponse: { if (has_search_response()) { if (!this->search_response().IsInitialized()) return false; } break; } case kReleaseResponse: { if (has_release_response()) { if (!this->release_response().IsInitialized()) return false; } break; } case kConfirmResponse: { if (has_confirm_response()) { if (!this->confirm_response().IsInitialized()) return false; } break; } case kMeasureResponse: { if (has_measure_response()) { if (!this->measure_response().IsInitialized()) return false; } break; } case kDispatchResponse: { if (has_dispatch_response()) { if (!this->dispatch_response().IsInitialized()) return false; } break; } case RESPONSE_NOT_SET: { break; } } return true; } void Node_log::Swap(Node_log* other) { if (other == this) return; InternalSwap(other); } void Node_log::InternalSwap(Node_log* other) { using std::swap; description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(request_, other->request_); swap(_oneof_case_[0], other->_oneof_case_[0]); swap(response_, other->response_); swap(_oneof_case_[1], other->_oneof_case_[1]); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Node_log::GetMetadata() const { protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Manual_operation_log::InitAsDefaultInstance() { ::message::_Manual_operation_log_default_instance_._instance.get_mutable()->manual_operation_ = const_cast< ::message::Process_manual_operation_msg*>( ::message::Process_manual_operation_msg::internal_default_instance()); } void Manual_operation_log::clear_manual_operation() { if (manual_operation_ != NULL) manual_operation_->Clear(); clear_has_manual_operation(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Manual_operation_log::kManualOperationFieldNumber; const int Manual_operation_log::kDescriptionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Manual_operation_log::Manual_operation_log() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base); SharedCtor(); // @@protoc_insertion_point(constructor:message.Manual_operation_log) } Manual_operation_log::Manual_operation_log(const Manual_operation_log& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_description()) { description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); } if (from.has_manual_operation()) { manual_operation_ = new ::message::Process_manual_operation_msg(*from.manual_operation_); } else { manual_operation_ = NULL; } // @@protoc_insertion_point(copy_constructor:message.Manual_operation_log) } void Manual_operation_log::SharedCtor() { description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); manual_operation_ = NULL; } Manual_operation_log::~Manual_operation_log() { // @@protoc_insertion_point(destructor:message.Manual_operation_log) SharedDtor(); } void Manual_operation_log::SharedDtor() { description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete manual_operation_; } void Manual_operation_log::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Manual_operation_log::descriptor() { ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Manual_operation_log& Manual_operation_log::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Manual_operation_log.base); return *internal_default_instance(); } void Manual_operation_log::Clear() { // @@protoc_insertion_point(message_clear_start:message.Manual_operation_log) ::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 & 3u) { if (cached_has_bits & 0x00000001u) { description_.ClearNonDefaultToEmptyNoArena(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(manual_operation_ != NULL); manual_operation_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Manual_operation_log::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:message.Manual_operation_log) 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 .message.Process_manual_operation_msg manual_operation = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_manual_operation())); } else { goto handle_unusual; } break; } // optional string description = 2; 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_description())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Manual_operation_log.description"); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Manual_operation_log) return true; failure: // @@protoc_insertion_point(parse_failure:message.Manual_operation_log) return false; #undef DO_ } void Manual_operation_log::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Manual_operation_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Process_manual_operation_msg manual_operation = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->_internal_manual_operation(), output); } // optional string description = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Manual_operation_log.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->description(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Manual_operation_log) } ::google::protobuf::uint8* Manual_operation_log::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Manual_operation_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Process_manual_operation_msg manual_operation = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->_internal_manual_operation(), deterministic, target); } // optional string description = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Manual_operation_log.description"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->description(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Manual_operation_log) return target; } size_t Manual_operation_log::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Manual_operation_log) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .message.Process_manual_operation_msg manual_operation = 1; if (has_manual_operation()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *manual_operation_); } // optional string description = 2; if (has_description()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Manual_operation_log::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Manual_operation_log) GOOGLE_DCHECK_NE(&from, this); const Manual_operation_log* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Manual_operation_log) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Manual_operation_log) MergeFrom(*source); } } void Manual_operation_log::MergeFrom(const Manual_operation_log& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Manual_operation_log) GOOGLE_DCHECK_NE(&from, this); _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 & 3u) { if (cached_has_bits & 0x00000001u) { set_has_description(); description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); } if (cached_has_bits & 0x00000002u) { mutable_manual_operation()->::message::Process_manual_operation_msg::MergeFrom(from.manual_operation()); } } } void Manual_operation_log::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Manual_operation_log) if (&from == this) return; Clear(); MergeFrom(from); } void Manual_operation_log::CopyFrom(const Manual_operation_log& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Manual_operation_log) if (&from == this) return; Clear(); MergeFrom(from); } bool Manual_operation_log::IsInitialized() const { if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; if (has_manual_operation()) { if (!this->manual_operation_->IsInitialized()) return false; } return true; } void Manual_operation_log::Swap(Manual_operation_log* other) { if (other == this) return; InternalSwap(other); } void Manual_operation_log::InternalSwap(Manual_operation_log* other) { using std::swap; description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(manual_operation_, other->manual_operation_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Manual_operation_log::GetMetadata() const { protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Log_data::InitAsDefaultInstance() { ::message::_Log_data_default_instance_.str_log_.UnsafeSetDefault( &::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::message::_Log_data_default_instance_.node_log_ = const_cast< ::message::Node_log*>( ::message::Node_log::internal_default_instance()); ::message::_Log_data_default_instance_.manual_operator_log_ = const_cast< ::message::Manual_operation_log*>( ::message::Manual_operation_log::internal_default_instance()); } void Log_data::set_allocated_node_log(::message::Node_log* node_log) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (node_log) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { node_log = ::google::protobuf::internal::GetOwnedMessage( message_arena, node_log, submessage_arena); } set_has_node_log(); data_.node_log_ = node_log; } // @@protoc_insertion_point(field_set_allocated:message.Log_data.node_log) } void Log_data::set_allocated_manual_operator_log(::message::Manual_operation_log* manual_operator_log) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_data(); if (manual_operator_log) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { manual_operator_log = ::google::protobuf::internal::GetOwnedMessage( message_arena, manual_operator_log, submessage_arena); } set_has_manual_operator_log(); data_.manual_operator_log_ = manual_operator_log; } // @@protoc_insertion_point(field_set_allocated:message.Log_data.manual_operator_log) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Log_data::kLogSeverityFieldNumber; const int Log_data::kStrLogFieldNumber; const int Log_data::kNodeLogFieldNumber; const int Log_data::kManualOperatorLogFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Log_data::Log_data() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_log_5fprocess_2eproto::scc_info_Log_data.base); SharedCtor(); // @@protoc_insertion_point(constructor:message.Log_data) } Log_data::Log_data(const Log_data& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); log_severity_ = from.log_severity_; clear_has_data(); switch (from.data_case()) { case kStrLog: { set_str_log(from.str_log()); break; } case kNodeLog: { mutable_node_log()->::message::Node_log::MergeFrom(from.node_log()); break; } case kManualOperatorLog: { mutable_manual_operator_log()->::message::Manual_operation_log::MergeFrom(from.manual_operator_log()); break; } case DATA_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:message.Log_data) } void Log_data::SharedCtor() { log_severity_ = 0; clear_has_data(); } Log_data::~Log_data() { // @@protoc_insertion_point(destructor:message.Log_data) SharedDtor(); } void Log_data::SharedDtor() { if (has_data()) { clear_data(); } } void Log_data::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Log_data::descriptor() { ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Log_data& Log_data::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Log_data.base); return *internal_default_instance(); } void Log_data::clear_data() { // @@protoc_insertion_point(one_of_clear_start:message.Log_data) switch (data_case()) { case kStrLog: { data_.str_log_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); break; } case kNodeLog: { delete data_.node_log_; break; } case kManualOperatorLog: { delete data_.manual_operator_log_; break; } case DATA_NOT_SET: { break; } } _oneof_case_[0] = DATA_NOT_SET; } void Log_data::Clear() { // @@protoc_insertion_point(message_clear_start:message.Log_data) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; log_severity_ = 0; clear_data(); _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Log_data::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:message.Log_data) 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 .message.Log_data.Severity log_severity = 1; 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 (::message::Log_data_Severity_IsValid(value)) { set_log_severity(static_cast< ::message::Log_data_Severity >(value)); } else { mutable_unknown_fields()->AddVarint( 1, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // optional string str_log = 2; 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_str_log())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->str_log().data(), static_cast(this->str_log().length()), ::google::protobuf::internal::WireFormat::PARSE, "message.Log_data.str_log"); } else { goto handle_unusual; } break; } // optional .message.Node_log node_log = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_node_log())); } else { goto handle_unusual; } break; } // optional .message.Manual_operation_log manual_operator_log = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_manual_operator_log())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Log_data) return true; failure: // @@protoc_insertion_point(parse_failure:message.Log_data) return false; #undef DO_ } void Log_data::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Log_data) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Log_data.Severity log_severity = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->log_severity(), output); } switch (data_case()) { case kStrLog: ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->str_log().data(), static_cast(this->str_log().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Log_data.str_log"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->str_log(), output); break; case kNodeLog: ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->_internal_node_log(), output); break; case kManualOperatorLog: ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->_internal_manual_operator_log(), output); break; default: ; } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Log_data) } ::google::protobuf::uint8* Log_data::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Log_data) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Log_data.Severity log_severity = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->log_severity(), target); } switch (data_case()) { case kStrLog: ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->str_log().data(), static_cast(this->str_log().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "message.Log_data.str_log"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->str_log(), target); break; case kNodeLog: target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->_internal_node_log(), deterministic, target); break; case kManualOperatorLog: target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->_internal_manual_operator_log(), deterministic, target); break; default: ; } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Log_data) return target; } size_t Log_data::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Log_data) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .message.Log_data.Severity log_severity = 1; if (has_log_severity()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->log_severity()); } switch (data_case()) { // optional string str_log = 2; case kStrLog: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->str_log()); break; } // optional .message.Node_log node_log = 3; case kNodeLog: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.node_log_); break; } // optional .message.Manual_operation_log manual_operator_log = 4; case kManualOperatorLog: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *data_.manual_operator_log_); break; } case DATA_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Log_data::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Log_data) GOOGLE_DCHECK_NE(&from, this); const Log_data* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Log_data) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Log_data) MergeFrom(*source); } } void Log_data::MergeFrom(const Log_data& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Log_data) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_log_severity()) { set_log_severity(from.log_severity()); } switch (from.data_case()) { case kStrLog: { set_str_log(from.str_log()); break; } case kNodeLog: { mutable_node_log()->::message::Node_log::MergeFrom(from.node_log()); break; } case kManualOperatorLog: { mutable_manual_operator_log()->::message::Manual_operation_log::MergeFrom(from.manual_operator_log()); break; } case DATA_NOT_SET: { break; } } } void Log_data::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Log_data) if (&from == this) return; Clear(); MergeFrom(from); } void Log_data::CopyFrom(const Log_data& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Log_data) if (&from == this) return; Clear(); MergeFrom(from); } bool Log_data::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; switch (data_case()) { case kStrLog: { break; } case kNodeLog: { if (has_node_log()) { if (!this->node_log().IsInitialized()) return false; } break; } case kManualOperatorLog: { if (has_manual_operator_log()) { if (!this->manual_operator_log().IsInitialized()) return false; } break; } case DATA_NOT_SET: { break; } } return true; } void Log_data::Swap(Log_data* other) { if (other == this) return; InternalSwap(other); } void Log_data::InternalSwap(Log_data* other) { using std::swap; swap(log_severity_, other->log_severity_); swap(data_, other->data_); swap(_oneof_case_[0], other->_oneof_case_[0]); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Log_data::GetMetadata() const { protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Process_log::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Process_log::kProcessTypeFieldNumber; const int Process_log::kLogDataFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Process_log::Process_log() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_log_5fprocess_2eproto::scc_info_Process_log.base); SharedCtor(); // @@protoc_insertion_point(constructor:message.Process_log) } Process_log::Process_log(const Process_log& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), log_data_(from.log_data_) { _internal_metadata_.MergeFrom(from._internal_metadata_); process_type_ = from.process_type_; // @@protoc_insertion_point(copy_constructor:message.Process_log) } void Process_log::SharedCtor() { process_type_ = 1; } Process_log::~Process_log() { // @@protoc_insertion_point(destructor:message.Process_log) SharedDtor(); } void Process_log::SharedDtor() { } void Process_log::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Process_log::descriptor() { ::protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Process_log& Process_log::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_log_5fprocess_2eproto::scc_info_Process_log.base); return *internal_default_instance(); } void Process_log::Clear() { // @@protoc_insertion_point(message_clear_start:message.Process_log) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; log_data_.Clear(); process_type_ = 1; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Process_log::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:message.Process_log) 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 .message.Process_type process_type = 1; 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 (::message::Process_type_IsValid(value)) { set_process_type(static_cast< ::message::Process_type >(value)); } else { mutable_unknown_fields()->AddVarint( 1, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // repeated .message.Log_data log_data = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_log_data())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:message.Process_log) return true; failure: // @@protoc_insertion_point(parse_failure:message.Process_log) return false; #undef DO_ } void Process_log::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:message.Process_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Process_type process_type = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->process_type(), output); } // repeated .message.Log_data log_data = 2; for (unsigned int i = 0, n = static_cast(this->log_data_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->log_data(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:message.Process_log) } ::google::protobuf::uint8* Process_log::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:message.Process_log) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .message.Process_type process_type = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->process_type(), target); } // repeated .message.Log_data log_data = 2; for (unsigned int i = 0, n = static_cast(this->log_data_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->log_data(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:message.Process_log) return target; } size_t Process_log::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:message.Process_log) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .message.Process_type process_type = 1; if (has_process_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->process_type()); } // repeated .message.Log_data log_data = 2; { unsigned int count = static_cast(this->log_data_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->log_data(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Process_log::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:message.Process_log) GOOGLE_DCHECK_NE(&from, this); const Process_log* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Process_log) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Process_log) MergeFrom(*source); } } void Process_log::MergeFrom(const Process_log& from) { // @@protoc_insertion_point(class_specific_merge_from_start:message.Process_log) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; log_data_.MergeFrom(from.log_data_); if (from.has_process_type()) { set_process_type(from.process_type()); } } void Process_log::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:message.Process_log) if (&from == this) return; Clear(); MergeFrom(from); } void Process_log::CopyFrom(const Process_log& from) { // @@protoc_insertion_point(class_specific_copy_from_start:message.Process_log) if (&from == this) return; Clear(); MergeFrom(from); } bool Process_log::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (!::google::protobuf::internal::AllAreInitialized(this->log_data())) return false; return true; } void Process_log::Swap(Process_log* other) { if (other == this) return; InternalSwap(other); } void Process_log::InternalSwap(Process_log* other) { using std::swap; CastToBase(&log_data_)->InternalSwap(CastToBase(&other->log_data_)); swap(process_type_, other->process_type_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Process_log::GetMetadata() const { protobuf_log_5fprocess_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_log_5fprocess_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace message namespace google { namespace protobuf { template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Node_log* Arena::CreateMaybeMessage< ::message::Node_log >(Arena* arena) { return Arena::CreateInternal< ::message::Node_log >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Manual_operation_log* Arena::CreateMaybeMessage< ::message::Manual_operation_log >(Arena* arena) { return Arena::CreateInternal< ::message::Manual_operation_log >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Log_data* Arena::CreateMaybeMessage< ::message::Log_data >(Arena* arena) { return Arena::CreateInternal< ::message::Log_data >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Process_log* Arena::CreateMaybeMessage< ::message::Process_log >(Arena* arena) { return Arena::CreateInternal< ::message::Process_log >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope)