|
@@ -25,11 +25,6 @@ class Base_infoDefaultTypeInternal {
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<Base_info>
|
|
|
_instance;
|
|
|
} _Base_info_default_instance_;
|
|
|
-class Command_infoDefaultTypeInternal {
|
|
|
- public:
|
|
|
- ::google::protobuf::internal::ExplicitlyConstructed<Command_info>
|
|
|
- _instance;
|
|
|
-} _Command_info_default_instance_;
|
|
|
class Base_msgDefaultTypeInternal {
|
|
|
public:
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<Base_msg>
|
|
@@ -78,27 +73,6 @@ void InitDefaultsBase_info() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_infoImpl);
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsCommand_infoImpl() {
|
|
|
- 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 = &::message::_Command_info_default_instance_;
|
|
|
- new (ptr) ::message::Command_info();
|
|
|
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
- }
|
|
|
- ::message::Command_info::InitAsDefaultInstance();
|
|
|
-}
|
|
|
-
|
|
|
-void InitDefaultsCommand_info() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommand_infoImpl);
|
|
|
-}
|
|
|
-
|
|
|
void InitDefaultsBase_msgImpl() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
@@ -206,8 +180,8 @@ void InitDefaultsParkspace_info() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::Metadata file_level_metadata[7];
|
|
|
-const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
|
|
|
+::google::protobuf::Metadata file_level_metadata[6];
|
|
|
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[8];
|
|
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_info, _has_bits_),
|
|
@@ -223,17 +197,6 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
1,
|
|
|
2,
|
|
|
3,
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Command_info, _has_bits_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Command_info, _internal_metadata_),
|
|
|
- ~0u, // no _extensions_
|
|
|
- ~0u, // no _oneof_case_
|
|
|
- ~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Command_info, time_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Command_info, place_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Command_info, event_),
|
|
|
- 0,
|
|
|
- 1,
|
|
|
- 2,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Base_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -318,17 +281,15 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 9, sizeof(::message::Base_info)},
|
|
|
- { 13, 21, sizeof(::message::Command_info)},
|
|
|
- { 24, 30, sizeof(::message::Base_msg)},
|
|
|
- { 31, 39, sizeof(::message::Error_manager)},
|
|
|
- { 42, 56, sizeof(::message::Locate_information)},
|
|
|
- { 65, 74, sizeof(::message::Car_info)},
|
|
|
- { 78, 94, sizeof(::message::Parkspace_info)},
|
|
|
+ { 13, 19, sizeof(::message::Base_msg)},
|
|
|
+ { 20, 28, sizeof(::message::Error_manager)},
|
|
|
+ { 31, 45, sizeof(::message::Locate_information)},
|
|
|
+ { 54, 63, sizeof(::message::Car_info)},
|
|
|
+ { 67, 83, sizeof(::message::Parkspace_info)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_info_default_instance_),
|
|
|
- reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Command_info_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Base_msg_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Error_manager_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Locate_information_default_instance_),
|
|
@@ -352,7 +313,7 @@ void protobuf_AssignDescriptorsOnce() {
|
|
|
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, 7);
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
|
|
|
}
|
|
|
|
|
|
void AddDescriptorsImpl() {
|
|
@@ -362,62 +323,73 @@ void AddDescriptorsImpl() {
|
|
|
"nfo\022\'\n\010msg_type\030\001 \002(\0162\025.message.Message_"
|
|
|
"type\022\022\n\ntimeout_ms\030\002 \001(\005\022%\n\006sender\030\003 \002(\016"
|
|
|
"2\025.message.Communicator\022\'\n\010receiver\030\004 \002("
|
|
|
- "\0162\025.message.Communicator\"J\n\014Command_info"
|
|
|
- "\022\014\n\004time\030\001 \002(\t\022\r\n\005place\030\002 \002(\t\022\035\n\005event\030\003"
|
|
|
- " \002(\0162\016.message.Event\"1\n\010Base_msg\022%\n\tbase"
|
|
|
- "_info\030\001 \002(\0132\022.message.Base_info\"i\n\rError"
|
|
|
- "_manager\022\022\n\nerror_code\030\001 \002(\005\022)\n\013error_le"
|
|
|
- "vel\030\002 \001(\0162\024.message.Error_level\022\031\n\021error"
|
|
|
- "_description\030\003 \001(\t\"\341\001\n\022Locate_informatio"
|
|
|
- "n\022\020\n\010locate_x\030\001 \001(\002\022\020\n\010locate_y\030\002 \001(\002\022\024\n"
|
|
|
- "\014locate_angle\030\003 \001(\002\022\025\n\rlocate_length\030\004 \001"
|
|
|
- "(\002\022\024\n\014locate_width\030\005 \001(\002\022\025\n\rlocate_heigh"
|
|
|
- "t\030\006 \001(\002\022\031\n\021locate_wheel_base\030\007 \001(\002\022\032\n\022lo"
|
|
|
- "cate_wheel_width\030\010 \001(\002\022\026\n\016locate_correct"
|
|
|
- "\030\t \001(\010\"V\n\010Car_info\022\022\n\ncar_length\030\001 \001(\002\022\021"
|
|
|
- "\n\tcar_width\030\002 \001(\002\022\022\n\ncar_height\030\003 \001(\002\022\017\n"
|
|
|
- "\007license\030\004 \001(\t\"\234\002\n\016Parkspace_info\022\024\n\014par"
|
|
|
- "kspace_id\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022%\n\tdirect"
|
|
|
- "ion\030\003 \001(\0162\022.message.Direction\022\r\n\005floor\030\004"
|
|
|
- " \001(\005\022\016\n\006length\030\005 \001(\002\022\r\n\005width\030\006 \001(\002\022\016\n\006h"
|
|
|
- "eight\030\007 \001(\002\0223\n\020parkspace_status\030\010 \001(\0162\031."
|
|
|
- "message.Parkspace_status\022#\n\010car_info\030\t \001"
|
|
|
- "(\0132\021.message.Car_info\022\022\n\nentry_time\030\n \001("
|
|
|
- "\t\022\022\n\nleave_time\030\013 \001(\t*\276\006\n\014Message_type\022\r"
|
|
|
- "\n\teBase_msg\020\000\022\020\n\014eCommand_msg\020\001\022\026\n\022eLoca"
|
|
|
- "te_status_msg\020\021\022\027\n\023eLocate_request_msg\020\022"
|
|
|
- "\022\030\n\024eLocate_response_msg\020\023\022\030\n\024eDispatch_"
|
|
|
- "status_msg\020!\022\031\n\025eDispatch_request_msg\020\"\022"
|
|
|
- "\032\n\026eDispatch_response_msg\020#\022$\n eParkspac"
|
|
|
- "e_allocation_status_msg\0201\022%\n!eParkspace_"
|
|
|
- "allocation_request_msg\0202\022&\n\"eParkspace_a"
|
|
|
- "llocation_response_msg\0203\022!\n\035eParkspace_s"
|
|
|
- "earch_request_msg\0204\022\"\n\036eParkspace_search"
|
|
|
- "_response_msg\0205\022\"\n\036eParkspace_release_re"
|
|
|
- "quest_msg\0206\022#\n\037eParkspace_release_respon"
|
|
|
- "se_msg\0207\022\'\n#eParkspace_force_update_requ"
|
|
|
- "est_msg\0208\022(\n$eParkspace_force_update_res"
|
|
|
- "ponse_msg\0209\022(\n$eParkspace_confirm_alloc_"
|
|
|
- "request_msg\020:\022)\n%eParkspace_confirm_allo"
|
|
|
- "c_response_msg\020;\022\036\n\032eStore_command_reque"
|
|
|
- "st_msg\020A\022\037\n\033eStore_command_response_msg\020"
|
|
|
- "B\022\037\n\033ePickup_command_request_msg\020C\022 \n\034eP"
|
|
|
- "ickup_command_response_msg\020D\022\037\n\032eStoring"
|
|
|
- "_process_statu_msg\020\220\001\022\037\n\032ePicking_proces"
|
|
|
- "s_statu_msg\020\221\001*f\n\014Communicator\022\n\n\006eEmpty"
|
|
|
- "\020\000\022\t\n\005eMain\020\001\022\016\n\teTerminor\020\200\002\022\017\n\neParksp"
|
|
|
- "ace\020\200\004\022\016\n\teMeasurer\020\200\006\022\016\n\teDispatch\020\200\010*#"
|
|
|
- "\n\005Event\022\014\n\010eStoring\020\001\022\014\n\010ePicking\020\002*e\n\013E"
|
|
|
+ "\0162\025.message.Communicator\"1\n\010Base_msg\022%\n\t"
|
|
|
+ "base_info\030\001 \002(\0132\022.message.Base_info\"i\n\rE"
|
|
|
+ "rror_manager\022\022\n\nerror_code\030\001 \002(\005\022)\n\013erro"
|
|
|
+ "r_level\030\002 \001(\0162\024.message.Error_level\022\031\n\021e"
|
|
|
+ "rror_description\030\003 \001(\t\"\341\001\n\022Locate_inform"
|
|
|
+ "ation\022\020\n\010locate_x\030\001 \001(\002\022\020\n\010locate_y\030\002 \001("
|
|
|
+ "\002\022\024\n\014locate_angle\030\003 \001(\002\022\025\n\rlocate_length"
|
|
|
+ "\030\004 \001(\002\022\024\n\014locate_width\030\005 \001(\002\022\025\n\rlocate_h"
|
|
|
+ "eight\030\006 \001(\002\022\031\n\021locate_wheel_base\030\007 \001(\002\022\032"
|
|
|
+ "\n\022locate_wheel_width\030\010 \001(\002\022\026\n\016locate_cor"
|
|
|
+ "rect\030\t \001(\010\"V\n\010Car_info\022\022\n\ncar_length\030\001 \001"
|
|
|
+ "(\002\022\021\n\tcar_width\030\002 \001(\002\022\022\n\ncar_height\030\003 \001("
|
|
|
+ "\002\022\017\n\007license\030\004 \001(\t\"\234\002\n\016Parkspace_info\022\024\n"
|
|
|
+ "\014parkspace_id\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022%\n\tdi"
|
|
|
+ "rection\030\003 \001(\0162\022.message.Direction\022\r\n\005flo"
|
|
|
+ "or\030\004 \001(\005\022\016\n\006length\030\005 \001(\002\022\r\n\005width\030\006 \001(\002\022"
|
|
|
+ "\016\n\006height\030\007 \001(\002\0223\n\020parkspace_status\030\010 \001("
|
|
|
+ "\0162\031.message.Parkspace_status\022#\n\010car_info"
|
|
|
+ "\030\t \001(\0132\021.message.Car_info\022\022\n\nentry_time\030"
|
|
|
+ "\n \001(\t\022\022\n\nleave_time\030\013 \001(\t*\253\007\n\014Message_ty"
|
|
|
+ "pe\022\r\n\teBase_msg\020\000\022\020\n\014eCommand_msg\020\001\022\026\n\022e"
|
|
|
+ "Locate_status_msg\020\021\022\027\n\023eLocate_request_m"
|
|
|
+ "sg\020\022\022\030\n\024eLocate_response_msg\020\023\022\030\n\024eDispa"
|
|
|
+ "tch_status_msg\020!\022\031\n\025eDispatch_request_ms"
|
|
|
+ "g\020\"\022\032\n\026eDispatch_response_msg\020#\022$\n ePark"
|
|
|
+ "space_allocation_status_msg\0201\022%\n!eParksp"
|
|
|
+ "ace_allocation_request_msg\0202\022&\n\"eParkspa"
|
|
|
+ "ce_allocation_response_msg\0203\022!\n\035eParkspa"
|
|
|
+ "ce_search_request_msg\0204\022\"\n\036eParkspace_se"
|
|
|
+ "arch_response_msg\0205\022\"\n\036eParkspace_releas"
|
|
|
+ "e_request_msg\0206\022#\n\037eParkspace_release_re"
|
|
|
+ "sponse_msg\0207\022\'\n#eParkspace_force_update_"
|
|
|
+ "request_msg\0208\022(\n$eParkspace_force_update"
|
|
|
+ "_response_msg\0209\022(\n$eParkspace_confirm_al"
|
|
|
+ "loc_request_msg\020:\022)\n%eParkspace_confirm_"
|
|
|
+ "alloc_response_msg\020;\022\036\n\032eStore_command_r"
|
|
|
+ "equest_msg\020A\022\037\n\033eStore_command_response_"
|
|
|
+ "msg\020B\022\037\n\033ePickup_command_request_msg\020C\022 "
|
|
|
+ "\n\034ePickup_command_response_msg\020D\022\037\n\032eSto"
|
|
|
+ "ring_process_statu_msg\020\220\001\022\037\n\032ePicking_pr"
|
|
|
+ "ocess_statu_msg\020\221\001\022\"\n\035eCentral_controlle"
|
|
|
+ "r_statu_msg\020\240\001\022#\n\036eEntrance_manual_opera"
|
|
|
+ "tion_msg\020\260\001\022\"\n\035eProcess_manual_operation"
|
|
|
+ "_msg\020\261\001*f\n\014Communicator\022\n\n\006eEmpty\020\000\022\t\n\005e"
|
|
|
+ "Main\020\001\022\016\n\teTerminor\020\200\002\022\017\n\neParkspace\020\200\004\022"
|
|
|
+ "\016\n\teMeasurer\020\200\006\022\016\n\teDispatch\020\200\010**\n\014Proce"
|
|
|
+ "ss_type\022\014\n\010eStoring\020\001\022\014\n\010ePicking\020\002*e\n\013E"
|
|
|
"rror_level\022\n\n\006NORMAL\020\000\022\024\n\020NEGLIGIBLE_ERR"
|
|
|
"OR\020\001\022\017\n\013MINOR_ERROR\020\002\022\017\n\013MAJOR_ERROR\020\003\022\022"
|
|
|
"\n\016CRITICAL_ERROR\020\004*q\n\020Parkspace_status\022\024"
|
|
|
"\n\020eParkspace_empty\020\000\022\027\n\023eParkspace_occup"
|
|
|
"ied\020\001\022\030\n\024eParkspace_reserverd\020\002\022\024\n\020ePark"
|
|
|
"space_error\020\003*(\n\tDirection\022\014\n\010eForward\020\001"
|
|
|
- "\022\r\n\teBackward\020\002"
|
|
|
+ "\022\r\n\teBackward\020\002*\335\002\n\tStep_type\022\017\n\013eAlloc_"
|
|
|
+ "step\020\000\022\021\n\reMeasure_step\020\001\022\021\n\reCompare_st"
|
|
|
+ "ep\020\002\022\022\n\016eDispatch_step\020\003\022\021\n\reConfirm_ste"
|
|
|
+ "p\020\004\022\020\n\014eSearch_step\020\005\022\016\n\neWait_step\020\006\022\021\n"
|
|
|
+ "\reRelease_step\020\007\022\r\n\teComplete\020\010\022\025\n\021eBack"
|
|
|
+ "Confirm_step\020\t\022\026\n\022eBack_compare_step\020\n\022\025"
|
|
|
+ "\n\021eBackMeasure_step\020\013\022\023\n\017eBackAlloc_step"
|
|
|
+ "\020\014\022\022\n\016eBackWait_step\020\r\022\026\n\022eBackDispatch_"
|
|
|
+ "step\020\016\022\024\n\020eBackSearch_step\020\017\022\021\n\reBackCom"
|
|
|
+ "plete\020\020*C\n\nStep_statu\022\014\n\010eWaiting\020\000\022\014\n\010e"
|
|
|
+ "Working\020\001\022\n\n\006eError\020\002\022\r\n\teFinished\020\003"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 2255);
|
|
|
+ descriptor, 2716);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"message_base.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
@@ -465,6 +437,9 @@ bool Message_type_IsValid(int value) {
|
|
|
case 68:
|
|
|
case 144:
|
|
|
case 145:
|
|
|
+ case 160:
|
|
|
+ case 176:
|
|
|
+ case 177:
|
|
|
return true;
|
|
|
default:
|
|
|
return false;
|
|
@@ -489,11 +464,11 @@ bool Communicator_IsValid(int value) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const ::google::protobuf::EnumDescriptor* Event_descriptor() {
|
|
|
+const ::google::protobuf::EnumDescriptor* Process_type_descriptor() {
|
|
|
protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[2];
|
|
|
}
|
|
|
-bool Event_IsValid(int value) {
|
|
|
+bool Process_type_IsValid(int value) {
|
|
|
switch (value) {
|
|
|
case 1:
|
|
|
case 2:
|
|
@@ -550,6 +525,51 @@ bool Direction_IsValid(int value) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const ::google::protobuf::EnumDescriptor* Step_type_descriptor() {
|
|
|
+ protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[6];
|
|
|
+}
|
|
|
+bool Step_type_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ case 4:
|
|
|
+ case 5:
|
|
|
+ case 6:
|
|
|
+ case 7:
|
|
|
+ case 8:
|
|
|
+ case 9:
|
|
|
+ case 10:
|
|
|
+ case 11:
|
|
|
+ case 12:
|
|
|
+ case 13:
|
|
|
+ case 14:
|
|
|
+ case 15:
|
|
|
+ case 16:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const ::google::protobuf::EnumDescriptor* Step_statu_descriptor() {
|
|
|
+ protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_message_5fbase_2eproto::file_level_enum_descriptors[7];
|
|
|
+}
|
|
|
+bool Step_statu_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
@@ -959,408 +979,6 @@ void Base_info::InternalSwap(Base_info* other) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-// ===================================================================
|
|
|
-
|
|
|
-void Command_info::InitAsDefaultInstance() {
|
|
|
-}
|
|
|
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int Command_info::kTimeFieldNumber;
|
|
|
-const int Command_info::kPlaceFieldNumber;
|
|
|
-const int Command_info::kEventFieldNumber;
|
|
|
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-
|
|
|
-Command_info::Command_info()
|
|
|
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
- }
|
|
|
- SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:message.Command_info)
|
|
|
-}
|
|
|
-Command_info::Command_info(const Command_info& from)
|
|
|
- : ::google::protobuf::Message(),
|
|
|
- _internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
- _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (from.has_time()) {
|
|
|
- time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
|
|
|
- }
|
|
|
- place_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (from.has_place()) {
|
|
|
- place_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.place_);
|
|
|
- }
|
|
|
- event_ = from.event_;
|
|
|
- // @@protoc_insertion_point(copy_constructor:message.Command_info)
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
- time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- place_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- event_ = 1;
|
|
|
-}
|
|
|
-
|
|
|
-Command_info::~Command_info() {
|
|
|
- // @@protoc_insertion_point(destructor:message.Command_info)
|
|
|
- SharedDtor();
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::SharedDtor() {
|
|
|
- time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- place_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
-}
|
|
|
-const ::google::protobuf::Descriptor* Command_info::descriptor() {
|
|
|
- ::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
- return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
-}
|
|
|
-
|
|
|
-const Command_info& Command_info::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsCommand_info();
|
|
|
- return *internal_default_instance();
|
|
|
-}
|
|
|
-
|
|
|
-Command_info* Command_info::New(::google::protobuf::Arena* arena) const {
|
|
|
- Command_info* n = new Command_info;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:message.Command_info)
|
|
|
- ::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 & 7u) {
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*time_.UnsafeRawStringPointer())->clear();
|
|
|
- }
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(!place_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*place_.UnsafeRawStringPointer())->clear();
|
|
|
- }
|
|
|
- event_ = 1;
|
|
|
- }
|
|
|
- _has_bits_.Clear();
|
|
|
- _internal_metadata_.Clear();
|
|
|
-}
|
|
|
-
|
|
|
-bool Command_info::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.Command_info)
|
|
|
- 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 time = 1;
|
|
|
- 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_time()));
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->time().data(), static_cast<int>(this->time().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
- "message.Command_info.time");
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // required string place = 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_place()));
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->place().data(), static_cast<int>(this->place().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
- "message.Command_info.place");
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // required .message.Event event = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
|
- int value;
|
|
|
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
- input, &value)));
|
|
|
- if (::message::Event_IsValid(value)) {
|
|
|
- set_event(static_cast< ::message::Event >(value));
|
|
|
- } else {
|
|
|
- mutable_unknown_fields()->AddVarint(
|
|
|
- 3, static_cast< ::google::protobuf::uint64>(value));
|
|
|
- }
|
|
|
- } 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.Command_info)
|
|
|
- return true;
|
|
|
-failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:message.Command_info)
|
|
|
- return false;
|
|
|
-#undef DO_
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::SerializeWithCachedSizes(
|
|
|
- ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
- // @@protoc_insertion_point(serialize_start:message.Command_info)
|
|
|
- ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cached_has_bits = _has_bits_[0];
|
|
|
- // required string time = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->time().data(), static_cast<int>(this->time().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
- "message.Command_info.time");
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 1, this->time(), output);
|
|
|
- }
|
|
|
-
|
|
|
- // required string place = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->place().data(), static_cast<int>(this->place().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
- "message.Command_info.place");
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 2, this->place(), output);
|
|
|
- }
|
|
|
-
|
|
|
- // required .message.Event event = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
- 3, this->event(), output);
|
|
|
- }
|
|
|
-
|
|
|
- if (_internal_metadata_.have_unknown_fields()) {
|
|
|
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
- _internal_metadata_.unknown_fields(), output);
|
|
|
- }
|
|
|
- // @@protoc_insertion_point(serialize_end:message.Command_info)
|
|
|
-}
|
|
|
-
|
|
|
-::google::protobuf::uint8* Command_info::InternalSerializeWithCachedSizesToArray(
|
|
|
- bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
- (void)deterministic; // Unused
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:message.Command_info)
|
|
|
- ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
- (void) cached_has_bits;
|
|
|
-
|
|
|
- cached_has_bits = _has_bits_[0];
|
|
|
- // required string time = 1;
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->time().data(), static_cast<int>(this->time().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
- "message.Command_info.time");
|
|
|
- target =
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 1, this->time(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // required string place = 2;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
- this->place().data(), static_cast<int>(this->place().length()),
|
|
|
- ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
- "message.Command_info.place");
|
|
|
- target =
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 2, this->place(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // required .message.Event event = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
- 3, this->event(), 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.Command_info)
|
|
|
- return target;
|
|
|
-}
|
|
|
-
|
|
|
-size_t Command_info::RequiredFieldsByteSizeFallback() const {
|
|
|
-// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Command_info)
|
|
|
- size_t total_size = 0;
|
|
|
-
|
|
|
- if (has_time()) {
|
|
|
- // required string time = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->time());
|
|
|
- }
|
|
|
-
|
|
|
- if (has_place()) {
|
|
|
- // required string place = 2;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->place());
|
|
|
- }
|
|
|
-
|
|
|
- if (has_event()) {
|
|
|
- // required .message.Event event = 3;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->event());
|
|
|
- }
|
|
|
-
|
|
|
- return total_size;
|
|
|
-}
|
|
|
-size_t Command_info::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:message.Command_info)
|
|
|
- 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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
|
|
|
- // required string time = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->time());
|
|
|
-
|
|
|
- // required string place = 2;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->place());
|
|
|
-
|
|
|
- // required .message.Event event = 3;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->event());
|
|
|
-
|
|
|
- } else {
|
|
|
- total_size += RequiredFieldsByteSizeFallback();
|
|
|
- }
|
|
|
- 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 Command_info::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
-// @@protoc_insertion_point(generalized_merge_from_start:message.Command_info)
|
|
|
- GOOGLE_DCHECK_NE(&from, this);
|
|
|
- const Command_info* source =
|
|
|
- ::google::protobuf::internal::DynamicCastToGenerated<const Command_info>(
|
|
|
- &from);
|
|
|
- if (source == NULL) {
|
|
|
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Command_info)
|
|
|
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
- } else {
|
|
|
- // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Command_info)
|
|
|
- MergeFrom(*source);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::MergeFrom(const Command_info& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:message.Command_info)
|
|
|
- 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 & 7u) {
|
|
|
- if (cached_has_bits & 0x00000001u) {
|
|
|
- set_has_time();
|
|
|
- time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
|
|
|
- }
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
- set_has_place();
|
|
|
- place_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.place_);
|
|
|
- }
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
- event_ = from.event_;
|
|
|
- }
|
|
|
- _has_bits_[0] |= cached_has_bits;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
-// @@protoc_insertion_point(generalized_copy_from_start:message.Command_info)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::CopyFrom(const Command_info& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:message.Command_info)
|
|
|
- if (&from == this) return;
|
|
|
- Clear();
|
|
|
- MergeFrom(from);
|
|
|
-}
|
|
|
-
|
|
|
-bool Command_info::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
-void Command_info::Swap(Command_info* other) {
|
|
|
- if (other == this) return;
|
|
|
- InternalSwap(other);
|
|
|
-}
|
|
|
-void Command_info::InternalSwap(Command_info* other) {
|
|
|
- using std::swap;
|
|
|
- time_.Swap(&other->time_);
|
|
|
- place_.Swap(&other->place_);
|
|
|
- swap(event_, other->event_);
|
|
|
- swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
- _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
-}
|
|
|
-
|
|
|
-::google::protobuf::Metadata Command_info::GetMetadata() const {
|
|
|
- protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
- return ::protobuf_message_5fbase_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
// ===================================================================
|
|
|
|
|
|
void Base_msg::InitAsDefaultInstance() {
|