diff --git a/PrintS/Controller/Controller.cpp b/PrintS/Controller/Controller.cpp index 8504b59..de0f0b5 100644 Binary files a/PrintS/Controller/Controller.cpp and b/PrintS/Controller/Controller.cpp differ diff --git a/PrintS/Controller/Controller.h b/PrintS/Controller/Controller.h index 5c5f4cc..d49103d 100644 Binary files a/PrintS/Controller/Controller.h and b/PrintS/Controller/Controller.h differ diff --git a/PrintS/DataManage/DataHandle.cpp b/PrintS/DataManage/DataHandle.cpp index 80702b1..4ccec2e 100644 Binary files a/PrintS/DataManage/DataHandle.cpp and b/PrintS/DataManage/DataHandle.cpp differ diff --git a/PrintS/DataManage/RWData.h b/PrintS/DataManage/RWData.h index 238bb48..e7dc8c5 100644 Binary files a/PrintS/DataManage/RWData.h and b/PrintS/DataManage/RWData.h differ diff --git a/PrintS/job/FileProcessor.h b/PrintS/job/FileProcessor.h index 321a701..fcdccb6 100644 Binary files a/PrintS/job/FileProcessor.h and b/PrintS/job/FileProcessor.h differ diff --git a/PrintS/job/H3DMetaData.cpp b/PrintS/job/H3DMetaData.cpp index c9be8cb..0fd4830 100644 --- a/PrintS/job/H3DMetaData.cpp +++ b/PrintS/job/H3DMetaData.cpp @@ -134,7 +134,7 @@ bool H3DMetaData::LoadLayerByIndex(unsigned int lindex) } -//lindex是第几层 +//lindex是第几层 从0开始 bool H3DMetaData::GetLayerByIndex(unsigned int lindex, ::stream::ResponseAny** response) { bool rel = true; diff --git a/PrintS/job/JobController.cpp b/PrintS/job/JobController.cpp index 4b2f90c..7b94aac 100644 --- a/PrintS/job/JobController.cpp +++ b/PrintS/job/JobController.cpp @@ -14,7 +14,7 @@ CRITICAL_SECTION JobController::m_LoadInfoCS; float JobController::m_LoadProgress = 0.0f; JobController::JobController() - :m_CurrentJob(NULL) + : m_CurrentJob(NULL) , m_LoadThead(INVALID_HANDLE_VALUE) , m_LoadFlag(false) , m_FilePath("") @@ -421,27 +421,57 @@ void JobController::CallFuncs(const ReadData & rd, const list&lst, ::strea result.set_data(m_CurrentJob->GetMetaData()->GetErrorInfo()); (*response)->mutable_data()->PackFrom(result); break; + case JOBPARAM: + JobParamReq(response); break; + case UPDATEPARAM: + UpdateParam(rd, lst); break; + case ONELAYERDATA: + GetJob()->GetMetaData()->GetLayerByIndex((unsigned int)ConverType::TryToI(rd.strValue), response); break; default: break; } +} + +void JobController::SendToClients() { + if (!IsLoadFinished()) { //没有加载完成 + list lst; + lst.emplace_back(Item{ "LoadProgress", to_string(GetLoadProgress()), iFLOAT }); + lst.emplace_back(Item{ "LoadInfo", GetLoadInfo(), iSTRING }); + lst.emplace_back(Item{ "IsLoadFinished", to_string(IsLoadFinished()), iBOOL }); + ClientWrapper::Instance()->PushAllClient(WriteData(JOBCONTROLLER, lst)); + } } -void JobController::SendToClients() { - list lst; - lst.emplace_back(Item{ "LoadProgress", to_string(GetLoadProgress()), iFLOAT }); - lst.emplace_back(Item{ "LoadInfo", GetLoadInfo(), iSTRING }); - lst.emplace_back(Item{ "IsLoadFinished", to_string(IsLoadFinished()), iBOOL }); +void JobController::JobParamReq(::stream::ResponseAny** response) { + stream::JobParam result; + if (m_CurrentJob) { - lst.emplace_back(Item{ "LayerCount", to_string(m_CurrentJob->GetLayerCount()), iUINT }); - lst.emplace_back(Item{ "ComponentCount", to_string(m_CurrentJob->GetComponentCount()), iINT }); - lst.emplace_back(Item{ "JobUid",m_CurrentJob->GetJobUid(), iSTRING }); - lst.emplace_back(Item{ "JobFileName", m_CurrentJob->GetJobFileName(), iSTRING }); - lst.emplace_back(Item{ "LayerInherit", to_string(m_CurrentJob->IsLayerInherit()), iBOOL }); - lst.emplace_back(Item{ "StartIndex", to_string(m_CurrentJob->GetStartIndex()), iBOOL }); - lst.emplace_back(Item{ "SetParamType", to_string(m_CurrentJob->m_SetParamType), iINT }); + result.set_isok(true); + result.set_layercount(m_CurrentJob->GetLayerCount()); + result.set_componentcount(m_CurrentJob->GetComponentCount()); + result.set_jobuid(m_CurrentJob->GetJobUid()); + result.set_jobfilename(m_CurrentJob->GetJobFileName()); + result.set_layerinherit(m_CurrentJob->IsLayerInherit()); + result.set_startindex(m_CurrentJob->GetStartIndex()); + result.set_setparamtype(m_CurrentJob->m_SetParamType); + result.set_loadfinished(IsLoadFinished()); + } + else { + result.set_isok(false); + } + + (*response)->mutable_data()->PackFrom(result); +} + + +void JobController::UpdateParam(const ReadData& rd, const list& lst) { + + for (auto it = lst.begin(); it != lst.end(); ++it) { + if (it->nameKey == "Layerinherit") m_CurrentJob->SetLayerInherit(ConverType::TryToI(it->strValue)); + if (it->nameKey == "StartIndex") m_CurrentJob->SetStartIndex(ConverType::TryToI(it->strValue)); + if (it->nameKey == "SetParamType") m_CurrentJob->m_SetParamType = ConverType::TryToI(it->strValue); } - ClientWrapper::Instance()->PushAllClient(WriteData(JOBCONTROLLER, lst)); } \ No newline at end of file diff --git a/PrintS/job/JobController.h b/PrintS/job/JobController.h index 05c8c8a..a11bc28 100644 Binary files a/PrintS/job/JobController.h and b/PrintS/job/JobController.h differ diff --git a/PrintS/job/MetaData.cpp b/PrintS/job/MetaData.cpp index a371b9a..cf8d131 100644 Binary files a/PrintS/job/MetaData.cpp and b/PrintS/job/MetaData.cpp differ diff --git a/PrintS/job/MetaData.h b/PrintS/job/MetaData.h index 4e4dbe1..0aa90a9 100644 Binary files a/PrintS/job/MetaData.h and b/PrintS/job/MetaData.h differ diff --git a/PrintS/output/Release/log/2024.hbd b/PrintS/output/Release/log/2024.hbd index d243aa0..ce56799 100644 Binary files a/PrintS/output/Release/log/2024.hbd and b/PrintS/output/Release/log/2024.hbd differ diff --git a/PrintS/protobuf/stream.pb.cc b/PrintS/protobuf/stream.pb.cc index b301895..b875814 100644 --- a/PrintS/protobuf/stream.pb.cc +++ b/PrintS/protobuf/stream.pb.cc @@ -572,6 +572,36 @@ struct LayerInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerInfoDefaultTypeInternal _LayerInfo_default_instance_; template +PROTOBUF_CONSTEXPR JobParam::JobParam(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.jobuid_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.jobfilename_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.componentcount_)*/ 0u, + /*decltype(_impl_.isok_)*/ false, + /*decltype(_impl_.layerinherit_)*/ false, + /*decltype(_impl_.loadfinished_)*/ false, + /*decltype(_impl_.startindex_)*/ 0u, + /*decltype(_impl_.setparamtype_)*/ 0, + /*decltype(_impl_.layercount_)*/ 0u, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct JobParamDefaultTypeInternal { + PROTOBUF_CONSTEXPR JobParamDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JobParamDefaultTypeInternal() {} + union { + JobParam _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobParamDefaultTypeInternal _JobParam_default_instance_; + template PROTOBUF_CONSTEXPR ScannerCrtlCfgResp::ScannerCrtlCfgResp(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.scannercfg_)*/ {}, @@ -844,7 +874,7 @@ struct TimePowerCompensateDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimePowerCompensateDefaultTypeInternal _TimePowerCompensate_default_instance_; } // namespace stream -static ::_pb::Metadata file_level_metadata_stream_2eproto[34]; +static ::_pb::Metadata file_level_metadata_stream_2eproto[35]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_stream_2eproto = nullptr; @@ -1194,6 +1224,23 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::LayerInfo, _impl_.scan_times_), PROTOBUF_FIELD_OFFSET(::stream::LayerInfo, _impl_.isok_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.isok_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.componentcount_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.jobuid_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.jobfilename_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.layerinherit_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.startindex_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.setparamtype_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.layercount_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.loadfinished_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1443,15 +1490,16 @@ static const ::_pbi::MigrationSchema {307, -1, -1, sizeof(::stream::ComResponce)}, {320, -1, -1, sizeof(::stream::Layers)}, {330, -1, -1, sizeof(::stream::LayerInfo)}, - {343, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, - {352, 379, -1, sizeof(::stream::ScannerCrtlCfgData)}, - {398, -1, -1, sizeof(::stream::FixPointData)}, - {411, -1, -1, sizeof(::stream::ScanParamCfg)}, - {449, -1, -1, sizeof(::stream::CorrectParamCfg)}, - {483, -1, -1, sizeof(::stream::ScanTestCfg)}, - {513, -1, -1, sizeof(::stream::SkyWritingCfg)}, - {538, -1, -1, sizeof(::stream::PowerCompensate)}, - {551, -1, -1, sizeof(::stream::TimePowerCompensate)}, + {343, -1, -1, sizeof(::stream::JobParam)}, + {360, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, + {369, 396, -1, sizeof(::stream::ScannerCrtlCfgData)}, + {415, -1, -1, sizeof(::stream::FixPointData)}, + {428, -1, -1, sizeof(::stream::ScanParamCfg)}, + {466, -1, -1, sizeof(::stream::CorrectParamCfg)}, + {500, -1, -1, sizeof(::stream::ScanTestCfg)}, + {530, -1, -1, sizeof(::stream::SkyWritingCfg)}, + {555, -1, -1, sizeof(::stream::PowerCompensate)}, + {568, -1, -1, sizeof(::stream::TimePowerCompensate)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1480,6 +1528,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::stream::_ComResponce_default_instance_._instance, &::stream::_Layers_default_instance_._instance, &::stream::_LayerInfo_default_instance_._instance, + &::stream::_JobParam_default_instance_._instance, &::stream::_ScannerCrtlCfgResp_default_instance_._instance, &::stream::_ScannerCrtlCfgData_default_instance_._instance, &::stream::_FixPointData_default_instance_._instance, @@ -1566,99 +1615,103 @@ const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE( "\030\001 \003(\0132\021.stream.LayerInfo\022\014\n\004isOk\030\002 \001(\010\"" "e\n\tLayerInfo\022\r\n\005index\030\001 \001(\005\022\016\n\006powder\030\002 " "\001(\r\022\027\n\017layer_thickness\030\003 \001(\r\022\022\n\nscan_tim" - "es\030\004 \001(\005\022\014\n\004isOk\030\005 \001(\010\"D\n\022ScannerCrtlCfg" - "Resp\022.\n\nscannerCfg\030\001 \003(\0132\032.stream.Scanne" - "rCrtlCfgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005s" - "eqNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.strea" - "m.FixPointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.s" - "tream.ScanParamCfg\022,\n\016hatchingParams\030\004 \001" - "(\0132\024.stream.ScanParamCfg\022*\n\014borderParams" - "\030\005 \001(\0132\024.stream.ScanParamCfg\022+\n\rsupportP" - "arams\030\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017cor" - "rectParamCfg\030\007 \001(\0132\027.stream.CorrectParam" - "Cfg\022(\n\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTe" - "stCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025.stream.Sk" - "yWritingCfg\0220\n\017powerCompensate\030\n \003(\0132\027.s" - "tream.PowerCompensate\0225\n\020tPowerCompensat" - "e\030\013 \003(\0132\033.stream.TimePowerCompensate\022\021\n\t" - "controlNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013con" - "trolType\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006card" - "IP\030\020 \001(\014\022\020\n\010isEnable\030\021 \001(\010\022\021\n\thadAssign\030" - "\022 \001(\010\022\020\n\010hadMatch\030\023 \001(\010\"Y\n\014FixPointData\022" - "\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006pointX\030\003 \001(\002" - "\022\016\n\006pointY\030\004 \001(\002\022\020\n\010duration\030\005 \001(\r\"\275\005\n\014S" - "canParamCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLe" - "velMin\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tju" - "mpDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014j" - "umpDelayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014" - "scanDelayMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r" - "\022\024\n\014polygonDelay\030\n \001(\r\022\027\n\017polygonDelayMi" - "n\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlase" - "roffDelay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(" - "\003\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDe" - "lay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017la" - "seronDelayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(" - "\r\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDel" - "ayMax\030\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022" - "jumpLengthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLi" - "mitMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpS" - "peedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tm" - "arkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014" - "markSpeedMax\030\036 \001(\001\"\256\004\n\017CorrectParamCfg\022\023" - "\n\013xmeasureMin\030\001 \001(\001\022\023\n\013xmeasureMax\030\002 \001(\001" - "\022\023\n\013ymeasureMin\030\003 \001(\001\022\023\n\013ymeasureMax\030\004 \001" - "(\001\022\017\n\007xposfix\030\005 \001(\001\022\017\n\007yposfix\030\006 \001(\001\022\021\n\t" - "scanAngle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n" - "\014scanAngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n" - "\013fixAngleMin\030\013 \001(\001\022\023\n\013fixAngleMax\030\014 \001(\001\022" - "\020\n\010xcorrect\030\r \001(\001\022\020\n\010ycorrect\030\016 \001(\001\022\023\n\013x" - "correctMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n" - "\013ycorrectMin\030\021 \001(\001\022\023\n\013ycorrectMax\030\022 \001(\001\022" - "\023\n\013realXOffset\030\023 \001(\001\022\023\n\013realYOffset\030\024 \001(" - "\001\022\017\n\007factorK\030\025 \001(\001\022\027\n\017isCorrectFile3D\030\026 " - "\001(\010\022\026\n\016isDynamicFocus\030\027 \001(\010\022\024\n\014defocusRa" - "tio\030\030 \001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017de" - "focusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\nd" - "ebugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014sh" - "apeSizeMin\030\003 \001(\005\022\026\n\016shape_size_max\030\004 \001(\005" - "\022\023\n\013laser_power\030\005 \001(\005\022\027\n\017laser_power_min" - "\030\006 \001(\005\022\027\n\017laser_power_max\030\007 \001(\005\022\017\n\007defoc" - "us\030\010 \001(\001\022\023\n\013defocus_min\030\t \001(\001\022\023\n\013defocus" - "_max\030\n \001(\001\022\020\n\010is_cycle\030\013 \001(\010\022\017\n\007cross_x\030" - "\014 \001(\001\022\017\n\007cross_y\030\r \001(\001\022\022\n\nz_distance\030\016 \001" - "(\001\022\034\n\024isAutoHeatingScanner\030\017 \001(\010\022!\n\031auto" - "HeatingScannerMinutes\030\020 \001(\r\022\036\n\026autoHeati" - "ngScannerSize\030\021 \001(\r\022\037\n\027autoHeatingScanne" - "rSpeed\030\022 \001(\001\022\031\n\021mark_test_start_x\030\023 \001(\001\022" - "\031\n\021mark_test_start_y\030\024 \001(\001\022\027\n\017mark_test_" - "end_x\030\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n" - "\rSkyWritingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007time" - "lag\030\002 \001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelag" - "Max\030\004 \001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laser" - "OnShiftMin\030\006 \001(\003\022\027\n\017laserOnShiftMax\030\007 \001(" - "\003\022\r\n\005nprev\030\010 \001(\r\022\020\n\010nprevMin\030\t \001(\r\022\020\n\010np" - "revMax\030\n \001(\r\022\r\n\005npost\030\013 \001(\r\022\020\n\010npostMin\030" - "\014 \001(\r\022\020\n\010npostMax\030\r \001(\r\022\014\n\004mode\030\016 \001(\005\022\016\n" - "\006limite\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimi" - "teMax\030\021 \001(\001\"d\n\017PowerCompensate\022\013\n\003cno\030\001 " - "\001(\005\022\017\n\007percent\030\002 \001(\005\022\r\n\005value\030\003 \001(\002\022\021\n\tv" - "alue_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023Tim" - "ePowerCompensate\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(" - "\005\022\023\n\013startMinute\030\003 \001(\r\022\021\n\tendMinute\030\004 \001(" - "\r\022\022\n\ncompensate\030\005 \001(\002*\223\001\n\004TYPE\022\t\n\005iBOOL\020" - "\000\022\n\n\006iSHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005" - "iUINT\020\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING\020\006\022\t\n\005iCHA" - "R\020\007\022\n\n\006iUCHAR\020\010\022\t\n\005iWORD\020\t\022\013\n\007iDOUBLE\020\n\022" - "\n\n\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n" - "\003ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.s" - "tream.RequestInfo\032\023.stream.ResponseAny\"\000" - "\022=\n\014ServerStream\022\023.stream.RequestInfo\032\024." - "stream.ResponseInfo\"\0000\001\022=\n\014ClientStream\022" - "\023.stream.RequestInfo\032\024.stream.ResponseIn" - "fo\"\000(\001\022<\n\tAllStream\022\023.stream.RequestInfo" - "\032\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc." - "examples.streamB\013StreamProtoP\001\242\002\002STb\006pro" - "to3" + "es\030\004 \001(\005\022\014\n\004isOk\030\005 \001(\010\"\277\001\n\010JobParam\022\014\n\004i" + "sok\030\001 \001(\010\022\026\n\016componentCount\030\002 \001(\r\022\016\n\006job" + "Uid\030\003 \001(\014\022\023\n\013jobFileName\030\004 \001(\014\022\024\n\014layerI" + "nherit\030\005 \001(\010\022\022\n\nstartIndex\030\006 \001(\r\022\024\n\014setP" + "aramType\030\007 \001(\005\022\022\n\nlayerCount\030\010 \001(\r\022\024\n\014lo" + "adFinished\030\t \001(\010\"D\n\022ScannerCrtlCfgResp\022." + "\n\nscannerCfg\030\001 \003(\0132\032.stream.ScannerCrtlC" + "fgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005seqNo\030\001" + " \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.stream.FixP" + "ointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.stream." + "ScanParamCfg\022,\n\016hatchingParams\030\004 \001(\0132\024.s" + "tream.ScanParamCfg\022*\n\014borderParams\030\005 \001(\013" + "2\024.stream.ScanParamCfg\022+\n\rsupportParams\030" + "\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017correctPa" + "ramCfg\030\007 \001(\0132\027.stream.CorrectParamCfg\022(\n" + "\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTestCfg\022" + ",\n\rskyWritingCfg\030\t \001(\0132\025.stream.SkyWriti" + "ngCfg\0220\n\017powerCompensate\030\n \003(\0132\027.stream." + "PowerCompensate\0225\n\020tPowerCompensate\030\013 \003(" + "\0132\033.stream.TimePowerCompensate\022\021\n\tcontro" + "lNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013controlTy" + "pe\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardIP\030\020 \001" + "(\014\022\020\n\010isEnable\030\021 \001(\010\022\021\n\thadAssign\030\022 \001(\010\022" + "\020\n\010hadMatch\030\023 \001(\010\"Y\n\014FixPointData\022\n\n\002id\030" + "\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006pointX\030\003 \001(\002\022\016\n\006po" + "intY\030\004 \001(\002\022\020\n\010duration\030\005 \001(\r\"\275\005\n\014ScanPar" + "amCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLevelMin" + "\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tjumpDela" + "y\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014jumpDel" + "ayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014scanDe" + "layMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r\022\024\n\014po" + "lygonDelay\030\n \001(\r\022\027\n\017polygonDelayMin\030\013 \001(" + "\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlaseroffDe" + "lay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(\003\022\030\n\020l" + "aseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDelay\030\020 " + "\001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017laseronD" + "elayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(\r\022\027\n\017m" + "inJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDelayMax\030" + "\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022jumpLe" + "ngthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLimitMax" + "\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpSpeedMi" + "n\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tmarkSpe" + "ed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014markSp" + "eedMax\030\036 \001(\001\"\256\004\n\017CorrectParamCfg\022\023\n\013xmea" + "sureMin\030\001 \001(\001\022\023\n\013xmeasureMax\030\002 \001(\001\022\023\n\013ym" + "easureMin\030\003 \001(\001\022\023\n\013ymeasureMax\030\004 \001(\001\022\017\n\007" + "xposfix\030\005 \001(\001\022\017\n\007yposfix\030\006 \001(\001\022\021\n\tscanAn" + "gle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n\014scanA" + "ngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n\013fixAn" + "gleMin\030\013 \001(\001\022\023\n\013fixAngleMax\030\014 \001(\001\022\020\n\010xco" + "rrect\030\r \001(\001\022\020\n\010ycorrect\030\016 \001(\001\022\023\n\013xcorrec" + "tMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n\013ycorr" + "ectMin\030\021 \001(\001\022\023\n\013ycorrectMax\030\022 \001(\001\022\023\n\013rea" + "lXOffset\030\023 \001(\001\022\023\n\013realYOffset\030\024 \001(\001\022\017\n\007f" + "actorK\030\025 \001(\001\022\027\n\017isCorrectFile3D\030\026 \001(\010\022\026\n" + "\016isDynamicFocus\030\027 \001(\010\022\024\n\014defocusRatio\030\030 " + "\001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017defocusR" + "atioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\ndebugSh" + "ape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014shapeSiz" + "eMin\030\003 \001(\005\022\026\n\016shape_size_max\030\004 \001(\005\022\023\n\013la" + "ser_power\030\005 \001(\005\022\027\n\017laser_power_min\030\006 \001(\005" + "\022\027\n\017laser_power_max\030\007 \001(\005\022\017\n\007defocus\030\010 \001" + "(\001\022\023\n\013defocus_min\030\t \001(\001\022\023\n\013defocus_max\030\n" + " \001(\001\022\020\n\010is_cycle\030\013 \001(\010\022\017\n\007cross_x\030\014 \001(\001\022" + "\017\n\007cross_y\030\r \001(\001\022\022\n\nz_distance\030\016 \001(\001\022\034\n\024" + "isAutoHeatingScanner\030\017 \001(\010\022!\n\031autoHeatin" + "gScannerMinutes\030\020 \001(\r\022\036\n\026autoHeatingScan" + "nerSize\030\021 \001(\r\022\037\n\027autoHeatingScannerSpeed" + "\030\022 \001(\001\022\031\n\021mark_test_start_x\030\023 \001(\001\022\031\n\021mar" + "k_test_start_y\030\024 \001(\001\022\027\n\017mark_test_end_x\030" + "\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n\rSkyWr" + "itingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007timelag\030\002 " + "\001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelagMax\030\004 " + "\001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laserOnShif" + "tMin\030\006 \001(\003\022\027\n\017laserOnShiftMax\030\007 \001(\003\022\r\n\005n" + "prev\030\010 \001(\r\022\020\n\010nprevMin\030\t \001(\r\022\020\n\010nprevMax" + "\030\n \001(\r\022\r\n\005npost\030\013 \001(\r\022\020\n\010npostMin\030\014 \001(\r\022" + "\020\n\010npostMax\030\r \001(\r\022\014\n\004mode\030\016 \001(\005\022\016\n\006limit" + "e\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimiteMax\030" + "\021 \001(\001\"d\n\017PowerCompensate\022\013\n\003cno\030\001 \001(\005\022\017\n" + "\007percent\030\002 \001(\005\022\r\n\005value\030\003 \001(\002\022\021\n\tvalue_m" + "in\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023TimePower" + "Compensate\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\023\n\013s" + "tartMinute\030\003 \001(\r\022\021\n\tendMinute\030\004 \001(\r\022\022\n\nc" + "ompensate\030\005 \001(\002*\223\001\n\004TYPE\022\t\n\005iBOOL\020\000\022\n\n\006i" + "SHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005iUINT\020" + "\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING\020\006\022\t\n\005iCHAR\020\007\022\n\n" + "\006iUCHAR\020\010\022\t\n\005iWORD\020\t\022\013\n\007iDOUBLE\020\n\022\n\n\006iTI" + "MET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n\003ADD\020\001" + "\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.stream." + "RequestInfo\032\023.stream.ResponseAny\"\000\022=\n\014Se" + "rverStream\022\023.stream.RequestInfo\032\024.stream" + ".ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023.stre" + "am.RequestInfo\032\024.stream.ResponseInfo\"\000(\001" + "\022<\n\tAllStream\022\023.stream.RequestInfo\032\024.str" + "eam.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.exampl" + "es.streamB\013StreamProtoP\001\242\002\002STb\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_stream_2eproto_deps[1] = { @@ -1668,13 +1721,13 @@ static ::absl::once_flag descriptor_table_stream_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = { false, false, - 6683, + 6877, descriptor_table_protodef_stream_2eproto, "stream.proto", &descriptor_table_stream_2eproto_once, descriptor_table_stream_2eproto_deps, 1, - 34, + 35, schemas, file_default_instances, TableStruct_stream_2eproto::offsets, @@ -9433,6 +9486,414 @@ void LayerInfo::InternalSwap(LayerInfo* other) { } // =================================================================== +class JobParam::_Internal { + public: +}; + +JobParam::JobParam(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:stream.JobParam) +} +JobParam::JobParam(const JobParam& from) : ::google::protobuf::Message() { + JobParam* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.jobuid_){}, + decltype(_impl_.jobfilename_){}, + decltype(_impl_.componentcount_){}, + decltype(_impl_.isok_){}, + decltype(_impl_.layerinherit_){}, + decltype(_impl_.loadfinished_){}, + decltype(_impl_.startindex_){}, + decltype(_impl_.setparamtype_){}, + decltype(_impl_.layercount_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.jobuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_jobuid().empty()) { + _this->_impl_.jobuid_.Set(from._internal_jobuid(), _this->GetArenaForAllocation()); + } + _impl_.jobfilename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_jobfilename().empty()) { + _this->_impl_.jobfilename_.Set(from._internal_jobfilename(), _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.componentcount_, &from._impl_.componentcount_, + static_cast<::size_t>(reinterpret_cast(&_impl_.layercount_) - + reinterpret_cast(&_impl_.componentcount_)) + sizeof(_impl_.layercount_)); + + // @@protoc_insertion_point(copy_constructor:stream.JobParam) +} +inline void JobParam::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.jobuid_){}, + decltype(_impl_.jobfilename_){}, + decltype(_impl_.componentcount_){0u}, + decltype(_impl_.isok_){false}, + decltype(_impl_.layerinherit_){false}, + decltype(_impl_.loadfinished_){false}, + decltype(_impl_.startindex_){0u}, + decltype(_impl_.setparamtype_){0}, + decltype(_impl_.layercount_){0u}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.jobuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +JobParam::~JobParam() { + // @@protoc_insertion_point(destructor:stream.JobParam) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void JobParam::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.jobuid_.Destroy(); + _impl_.jobfilename_.Destroy(); +} +void JobParam::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void JobParam::Clear() { +// @@protoc_insertion_point(message_clear_start:stream.JobParam) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.jobuid_.ClearToEmpty(); + _impl_.jobfilename_.ClearToEmpty(); + ::memset(&_impl_.componentcount_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.layercount_) - + reinterpret_cast(&_impl_.componentcount_)) + sizeof(_impl_.layercount_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* JobParam::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 0, 0, 2> JobParam::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_JobParam_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bool isok = 1; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.isok_)}}, + // uint32 componentCount = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.componentcount_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_)}}, + // bytes jobUid = 3; + {::_pbi::TcParser::FastBS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobuid_)}}, + // bytes jobFileName = 4; + {::_pbi::TcParser::FastBS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobfilename_)}}, + // bool layerInherit = 5; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layerinherit_)}}, + // uint32 startIndex = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.startindex_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.startindex_)}}, + // int32 setParamType = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.setparamtype_), 63>(), + {56, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.setparamtype_)}}, + // uint32 layerCount = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.layercount_), 63>(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_)}}, + // bool loadFinished = 9; + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.loadfinished_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // bool isok = 1; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.isok_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint32 componentCount = 2; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // bytes jobUid = 3; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobuid_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes jobFileName = 4; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobfilename_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bool layerInherit = 5; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layerinherit_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint32 startIndex = 6; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.startindex_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // int32 setParamType = 7; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.setparamtype_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // uint32 layerCount = 8; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // bool loadFinished = 9; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.loadfinished_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; + +::uint8_t* JobParam::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:stream.JobParam) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool isok = 1; + if (this->_internal_isok() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_isok(), target); + } + + // uint32 componentCount = 2; + if (this->_internal_componentcount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this->_internal_componentcount(), target); + } + + // bytes jobUid = 3; + if (!this->_internal_jobuid().empty()) { + const std::string& _s = this->_internal_jobuid(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // bytes jobFileName = 4; + if (!this->_internal_jobfilename().empty()) { + const std::string& _s = this->_internal_jobfilename(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + + // bool layerInherit = 5; + if (this->_internal_layerinherit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this->_internal_layerinherit(), target); + } + + // uint32 startIndex = 6; + if (this->_internal_startindex() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 6, this->_internal_startindex(), target); + } + + // int32 setParamType = 7; + if (this->_internal_setparamtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<7>( + stream, this->_internal_setparamtype(), target); + } + + // uint32 layerCount = 8; + if (this->_internal_layercount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 8, this->_internal_layercount(), target); + } + + // bool loadFinished = 9; + if (this->_internal_loadfinished() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this->_internal_loadfinished(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:stream.JobParam) + return target; +} + +::size_t JobParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:stream.JobParam) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes jobUid = 3; + if (!this->_internal_jobuid().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_jobuid()); + } + + // bytes jobFileName = 4; + if (!this->_internal_jobfilename().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_jobfilename()); + } + + // uint32 componentCount = 2; + if (this->_internal_componentcount() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_componentcount()); + } + + // bool isok = 1; + if (this->_internal_isok() != 0) { + total_size += 2; + } + + // bool layerInherit = 5; + if (this->_internal_layerinherit() != 0) { + total_size += 2; + } + + // bool loadFinished = 9; + if (this->_internal_loadfinished() != 0) { + total_size += 2; + } + + // uint32 startIndex = 6; + if (this->_internal_startindex() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_startindex()); + } + + // int32 setParamType = 7; + if (this->_internal_setparamtype() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_setparamtype()); + } + + // uint32 layerCount = 8; + if (this->_internal_layercount() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_layercount()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData JobParam::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + JobParam::MergeImpl +}; +const ::google::protobuf::Message::ClassData*JobParam::GetClassData() const { return &_class_data_; } + + +void JobParam::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:stream.JobParam) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_jobuid().empty()) { + _this->_internal_set_jobuid(from._internal_jobuid()); + } + if (!from._internal_jobfilename().empty()) { + _this->_internal_set_jobfilename(from._internal_jobfilename()); + } + if (from._internal_componentcount() != 0) { + _this->_internal_set_componentcount(from._internal_componentcount()); + } + if (from._internal_isok() != 0) { + _this->_internal_set_isok(from._internal_isok()); + } + if (from._internal_layerinherit() != 0) { + _this->_internal_set_layerinherit(from._internal_layerinherit()); + } + if (from._internal_loadfinished() != 0) { + _this->_internal_set_loadfinished(from._internal_loadfinished()); + } + if (from._internal_startindex() != 0) { + _this->_internal_set_startindex(from._internal_startindex()); + } + if (from._internal_setparamtype() != 0) { + _this->_internal_set_setparamtype(from._internal_setparamtype()); + } + if (from._internal_layercount() != 0) { + _this->_internal_set_layercount(from._internal_layercount()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void JobParam::CopyFrom(const JobParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:stream.JobParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool JobParam::IsInitialized() const { + return true; +} + +void JobParam::InternalSwap(JobParam* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobuid_, lhs_arena, + &other->_impl_.jobuid_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobfilename_, lhs_arena, + &other->_impl_.jobfilename_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_) + + sizeof(JobParam::_impl_.layercount_) + - PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_)>( + reinterpret_cast(&_impl_.componentcount_), + reinterpret_cast(&other->_impl_.componentcount_)); +} + +::google::protobuf::Metadata JobParam::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, + file_level_metadata_stream_2eproto[25]); +} +// =================================================================== + class ScannerCrtlCfgResp::_Internal { public: }; @@ -9601,7 +10062,7 @@ void ScannerCrtlCfgResp::InternalSwap(ScannerCrtlCfgResp* other) { ::google::protobuf::Metadata ScannerCrtlCfgResp::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[25]); + file_level_metadata_stream_2eproto[26]); } // =================================================================== @@ -10406,7 +10867,7 @@ void ScannerCrtlCfgData::InternalSwap(ScannerCrtlCfgData* other) { ::google::protobuf::Metadata ScannerCrtlCfgData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[26]); + file_level_metadata_stream_2eproto[27]); } // =================================================================== @@ -10702,7 +11163,7 @@ void FixPointData::InternalSwap(FixPointData* other) { ::google::protobuf::Metadata FixPointData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[27]); + file_level_metadata_stream_2eproto[28]); } // =================================================================== @@ -11628,7 +12089,7 @@ void ScanParamCfg::InternalSwap(ScanParamCfg* other) { ::google::protobuf::Metadata ScanParamCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[28]); + file_level_metadata_stream_2eproto[29]); } // =================================================================== @@ -12716,7 +13177,7 @@ void CorrectParamCfg::InternalSwap(CorrectParamCfg* other) { ::google::protobuf::Metadata CorrectParamCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[29]); + file_level_metadata_stream_2eproto[30]); } // =================================================================== @@ -13534,7 +13995,7 @@ void ScanTestCfg::InternalSwap(ScanTestCfg* other) { ::google::protobuf::Metadata ScanTestCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[30]); + file_level_metadata_stream_2eproto[31]); } // =================================================================== @@ -14173,7 +14634,7 @@ void SkyWritingCfg::InternalSwap(SkyWritingCfg* other) { ::google::protobuf::Metadata SkyWritingCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[31]); + file_level_metadata_stream_2eproto[32]); } // =================================================================== @@ -14483,7 +14944,7 @@ void PowerCompensate::InternalSwap(PowerCompensate* other) { ::google::protobuf::Metadata PowerCompensate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[32]); + file_level_metadata_stream_2eproto[33]); } // =================================================================== @@ -14765,7 +15226,7 @@ void TimePowerCompensate::InternalSwap(TimePowerCompensate* other) { ::google::protobuf::Metadata TimePowerCompensate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[33]); + file_level_metadata_stream_2eproto[34]); } // @@protoc_insertion_point(namespace_scope) } // namespace stream diff --git a/PrintS/protobuf/stream.pb.h b/PrintS/protobuf/stream.pb.h index 1f44ba9..71f86bd 100644 --- a/PrintS/protobuf/stream.pb.h +++ b/PrintS/protobuf/stream.pb.h @@ -80,6 +80,9 @@ extern ImgInfoResponceDefaultTypeInternal _ImgInfoResponce_default_instance_; class JobDimensions; struct JobDimensionsDefaultTypeInternal; extern JobDimensionsDefaultTypeInternal _JobDimensions_default_instance_; +class JobParam; +struct JobParamDefaultTypeInternal; +extern JobParamDefaultTypeInternal _JobParam_default_instance_; class LayerData; struct LayerDataDefaultTypeInternal; extern LayerDataDefaultTypeInternal _LayerData_default_instance_; @@ -5561,6 +5564,272 @@ class LayerInfo final : friend struct ::TableStruct_stream_2eproto; };// ------------------------------------------------------------------- +class JobParam final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.JobParam) */ { + public: + inline JobParam() : JobParam(nullptr) {} + ~JobParam() override; + template + explicit PROTOBUF_CONSTEXPR JobParam(::google::protobuf::internal::ConstantInitialized); + + JobParam(const JobParam& from); + JobParam(JobParam&& from) noexcept + : JobParam() { + *this = ::std::move(from); + } + + inline JobParam& operator=(const JobParam& from) { + CopyFrom(from); + return *this; + } + inline JobParam& operator=(JobParam&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const JobParam& default_instance() { + return *internal_default_instance(); + } + static inline const JobParam* internal_default_instance() { + return reinterpret_cast( + &_JobParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(JobParam& a, JobParam& b) { + a.Swap(&b); + } + inline void Swap(JobParam* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(JobParam* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + JobParam* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const JobParam& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const JobParam& from) { + JobParam::MergeImpl(*this, from); + } + private: + static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(JobParam* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "stream.JobParam"; + } + protected: + explicit JobParam(::google::protobuf::Arena* arena); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kJobUidFieldNumber = 3, + kJobFileNameFieldNumber = 4, + kComponentCountFieldNumber = 2, + kIsokFieldNumber = 1, + kLayerInheritFieldNumber = 5, + kLoadFinishedFieldNumber = 9, + kStartIndexFieldNumber = 6, + kSetParamTypeFieldNumber = 7, + kLayerCountFieldNumber = 8, + }; + // bytes jobUid = 3; + void clear_jobuid() ; + const std::string& jobuid() const; + template + void set_jobuid(Arg_&& arg, Args_... args); + std::string* mutable_jobuid(); + PROTOBUF_NODISCARD std::string* release_jobuid(); + void set_allocated_jobuid(std::string* ptr); + + private: + const std::string& _internal_jobuid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jobuid( + const std::string& value); + std::string* _internal_mutable_jobuid(); + + public: + // bytes jobFileName = 4; + void clear_jobfilename() ; + const std::string& jobfilename() const; + template + void set_jobfilename(Arg_&& arg, Args_... args); + std::string* mutable_jobfilename(); + PROTOBUF_NODISCARD std::string* release_jobfilename(); + void set_allocated_jobfilename(std::string* ptr); + + private: + const std::string& _internal_jobfilename() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jobfilename( + const std::string& value); + std::string* _internal_mutable_jobfilename(); + + public: + // uint32 componentCount = 2; + void clear_componentcount() ; + ::uint32_t componentcount() const; + void set_componentcount(::uint32_t value); + + private: + ::uint32_t _internal_componentcount() const; + void _internal_set_componentcount(::uint32_t value); + + public: + // bool isok = 1; + void clear_isok() ; + bool isok() const; + void set_isok(bool value); + + private: + bool _internal_isok() const; + void _internal_set_isok(bool value); + + public: + // bool layerInherit = 5; + void clear_layerinherit() ; + bool layerinherit() const; + void set_layerinherit(bool value); + + private: + bool _internal_layerinherit() const; + void _internal_set_layerinherit(bool value); + + public: + // bool loadFinished = 9; + void clear_loadfinished() ; + bool loadfinished() const; + void set_loadfinished(bool value); + + private: + bool _internal_loadfinished() const; + void _internal_set_loadfinished(bool value); + + public: + // uint32 startIndex = 6; + void clear_startindex() ; + ::uint32_t startindex() const; + void set_startindex(::uint32_t value); + + private: + ::uint32_t _internal_startindex() const; + void _internal_set_startindex(::uint32_t value); + + public: + // int32 setParamType = 7; + void clear_setparamtype() ; + ::int32_t setparamtype() const; + void set_setparamtype(::int32_t value); + + private: + ::int32_t _internal_setparamtype() const; + void _internal_set_setparamtype(::int32_t value); + + public: + // uint32 layerCount = 8; + void clear_layercount() ; + ::uint32_t layercount() const; + void set_layercount(::uint32_t value); + + private: + ::uint32_t _internal_layercount() const; + void _internal_set_layercount(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:stream.JobParam) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 9, 0, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr jobuid_; + ::google::protobuf::internal::ArenaStringPtr jobfilename_; + ::uint32_t componentcount_; + bool isok_; + bool layerinherit_; + bool loadfinished_; + ::uint32_t startindex_; + ::int32_t setparamtype_; + ::uint32_t layercount_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_stream_2eproto; +};// ------------------------------------------------------------------- + class ScannerCrtlCfgResp final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ScannerCrtlCfgResp) */ { public: @@ -5617,7 +5886,7 @@ class ScannerCrtlCfgResp final : &_ScannerCrtlCfgResp_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(ScannerCrtlCfgResp& a, ScannerCrtlCfgResp& b) { a.Swap(&b); @@ -5783,7 +6052,7 @@ class ScannerCrtlCfgData final : &_ScannerCrtlCfgData_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; friend void swap(ScannerCrtlCfgData& a, ScannerCrtlCfgData& b) { a.Swap(&b); @@ -6229,7 +6498,7 @@ class FixPointData final : &_FixPointData_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(FixPointData& a, FixPointData& b) { a.Swap(&b); @@ -6435,7 +6704,7 @@ class ScanParamCfg final : &_ScanParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(ScanParamCfg& a, ScanParamCfg& b) { a.Swap(&b); @@ -6941,7 +7210,7 @@ class CorrectParamCfg final : &_CorrectParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 30; friend void swap(CorrectParamCfg& a, CorrectParamCfg& b) { a.Swap(&b); @@ -7399,7 +7668,7 @@ class ScanTestCfg final : &_ScanTestCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 31; friend void swap(ScanTestCfg& a, ScanTestCfg& b) { a.Swap(&b); @@ -7809,7 +8078,7 @@ class SkyWritingCfg final : &_SkyWritingCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 32; friend void swap(SkyWritingCfg& a, SkyWritingCfg& b) { a.Swap(&b); @@ -8159,7 +8428,7 @@ class PowerCompensate final : &_PowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 33; friend void swap(PowerCompensate& a, PowerCompensate& b) { a.Swap(&b); @@ -8365,7 +8634,7 @@ class TimePowerCompensate final : &_TimePowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 34; friend void swap(TimePowerCompensate& a, TimePowerCompensate& b) { a.Swap(&b); @@ -12518,6 +12787,266 @@ inline void LayerInfo::_internal_set_isok(bool value) { // ------------------------------------------------------------------- +// JobParam + +// bool isok = 1; +inline void JobParam::clear_isok() { + _impl_.isok_ = false; +} +inline bool JobParam::isok() const { + // @@protoc_insertion_point(field_get:stream.JobParam.isok) + return _internal_isok(); +} +inline void JobParam::set_isok(bool value) { + _internal_set_isok(value); + // @@protoc_insertion_point(field_set:stream.JobParam.isok) +} +inline bool JobParam::_internal_isok() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.isok_; +} +inline void JobParam::_internal_set_isok(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.isok_ = value; +} + +// uint32 componentCount = 2; +inline void JobParam::clear_componentcount() { + _impl_.componentcount_ = 0u; +} +inline ::uint32_t JobParam::componentcount() const { + // @@protoc_insertion_point(field_get:stream.JobParam.componentCount) + return _internal_componentcount(); +} +inline void JobParam::set_componentcount(::uint32_t value) { + _internal_set_componentcount(value); + // @@protoc_insertion_point(field_set:stream.JobParam.componentCount) +} +inline ::uint32_t JobParam::_internal_componentcount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.componentcount_; +} +inline void JobParam::_internal_set_componentcount(::uint32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.componentcount_ = value; +} + +// bytes jobUid = 3; +inline void JobParam::clear_jobuid() { + _impl_.jobuid_.ClearToEmpty(); +} +inline const std::string& JobParam::jobuid() const { + // @@protoc_insertion_point(field_get:stream.JobParam.jobUid) + return _internal_jobuid(); +} +template +inline PROTOBUF_ALWAYS_INLINE void JobParam::set_jobuid(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.jobuid_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.JobParam.jobUid) +} +inline std::string* JobParam::mutable_jobuid() { + std::string* _s = _internal_mutable_jobuid(); + // @@protoc_insertion_point(field_mutable:stream.JobParam.jobUid) + return _s; +} +inline const std::string& JobParam::_internal_jobuid() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.jobuid_.Get(); +} +inline void JobParam::_internal_set_jobuid(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.jobuid_.Set(value, GetArenaForAllocation()); +} +inline std::string* JobParam::_internal_mutable_jobuid() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.jobuid_.Mutable( GetArenaForAllocation()); +} +inline std::string* JobParam::release_jobuid() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.JobParam.jobUid) + return _impl_.jobuid_.Release(); +} +inline void JobParam::set_allocated_jobuid(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.jobuid_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.jobuid_.IsDefault()) { + _impl_.jobuid_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.JobParam.jobUid) +} + +// bytes jobFileName = 4; +inline void JobParam::clear_jobfilename() { + _impl_.jobfilename_.ClearToEmpty(); +} +inline const std::string& JobParam::jobfilename() const { + // @@protoc_insertion_point(field_get:stream.JobParam.jobFileName) + return _internal_jobfilename(); +} +template +inline PROTOBUF_ALWAYS_INLINE void JobParam::set_jobfilename(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.jobfilename_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.JobParam.jobFileName) +} +inline std::string* JobParam::mutable_jobfilename() { + std::string* _s = _internal_mutable_jobfilename(); + // @@protoc_insertion_point(field_mutable:stream.JobParam.jobFileName) + return _s; +} +inline const std::string& JobParam::_internal_jobfilename() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.jobfilename_.Get(); +} +inline void JobParam::_internal_set_jobfilename(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.jobfilename_.Set(value, GetArenaForAllocation()); +} +inline std::string* JobParam::_internal_mutable_jobfilename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.jobfilename_.Mutable( GetArenaForAllocation()); +} +inline std::string* JobParam::release_jobfilename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.JobParam.jobFileName) + return _impl_.jobfilename_.Release(); +} +inline void JobParam::set_allocated_jobfilename(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.jobfilename_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.jobfilename_.IsDefault()) { + _impl_.jobfilename_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.JobParam.jobFileName) +} + +// bool layerInherit = 5; +inline void JobParam::clear_layerinherit() { + _impl_.layerinherit_ = false; +} +inline bool JobParam::layerinherit() const { + // @@protoc_insertion_point(field_get:stream.JobParam.layerInherit) + return _internal_layerinherit(); +} +inline void JobParam::set_layerinherit(bool value) { + _internal_set_layerinherit(value); + // @@protoc_insertion_point(field_set:stream.JobParam.layerInherit) +} +inline bool JobParam::_internal_layerinherit() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.layerinherit_; +} +inline void JobParam::_internal_set_layerinherit(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.layerinherit_ = value; +} + +// uint32 startIndex = 6; +inline void JobParam::clear_startindex() { + _impl_.startindex_ = 0u; +} +inline ::uint32_t JobParam::startindex() const { + // @@protoc_insertion_point(field_get:stream.JobParam.startIndex) + return _internal_startindex(); +} +inline void JobParam::set_startindex(::uint32_t value) { + _internal_set_startindex(value); + // @@protoc_insertion_point(field_set:stream.JobParam.startIndex) +} +inline ::uint32_t JobParam::_internal_startindex() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.startindex_; +} +inline void JobParam::_internal_set_startindex(::uint32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.startindex_ = value; +} + +// int32 setParamType = 7; +inline void JobParam::clear_setparamtype() { + _impl_.setparamtype_ = 0; +} +inline ::int32_t JobParam::setparamtype() const { + // @@protoc_insertion_point(field_get:stream.JobParam.setParamType) + return _internal_setparamtype(); +} +inline void JobParam::set_setparamtype(::int32_t value) { + _internal_set_setparamtype(value); + // @@protoc_insertion_point(field_set:stream.JobParam.setParamType) +} +inline ::int32_t JobParam::_internal_setparamtype() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.setparamtype_; +} +inline void JobParam::_internal_set_setparamtype(::int32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.setparamtype_ = value; +} + +// uint32 layerCount = 8; +inline void JobParam::clear_layercount() { + _impl_.layercount_ = 0u; +} +inline ::uint32_t JobParam::layercount() const { + // @@protoc_insertion_point(field_get:stream.JobParam.layerCount) + return _internal_layercount(); +} +inline void JobParam::set_layercount(::uint32_t value) { + _internal_set_layercount(value); + // @@protoc_insertion_point(field_set:stream.JobParam.layerCount) +} +inline ::uint32_t JobParam::_internal_layercount() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.layercount_; +} +inline void JobParam::_internal_set_layercount(::uint32_t value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.layercount_ = value; +} + +// bool loadFinished = 9; +inline void JobParam::clear_loadfinished() { + _impl_.loadfinished_ = false; +} +inline bool JobParam::loadfinished() const { + // @@protoc_insertion_point(field_get:stream.JobParam.loadFinished) + return _internal_loadfinished(); +} +inline void JobParam::set_loadfinished(bool value) { + _internal_set_loadfinished(value); + // @@protoc_insertion_point(field_set:stream.JobParam.loadFinished) +} +inline bool JobParam::_internal_loadfinished() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.loadfinished_; +} +inline void JobParam::_internal_set_loadfinished(bool value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.loadfinished_ = value; +} + +// ------------------------------------------------------------------- + // ScannerCrtlCfgResp // repeated .stream.ScannerCrtlCfgData scannerCfg = 1; diff --git a/PrintS/protobuf/stream.proto b/PrintS/protobuf/stream.proto index d0e842d..d091988 100644 --- a/PrintS/protobuf/stream.proto +++ b/PrintS/protobuf/stream.proto @@ -253,6 +253,18 @@ message LayerInfo{ bool isOk = 5; } +message JobParam{ + bool isok = 1; + uint32 componentCount =2; + bytes jobUid =3; + bytes jobFileName =4; + bool layerInherit = 5; + uint32 startIndex = 6; + int32 setParamType = 7; + uint32 layerCount =8; + bool loadFinished = 9; +} + //ScannerCrtlCfg结构体 message ScannerCrtlCfgResp{ repeated ScannerCrtlCfgData scannerCfg = 1; diff --git a/TestClient/DataManage/DataHandle.cpp b/TestClient/DataManage/DataHandle.cpp index 8d595c9..5131109 100644 Binary files a/TestClient/DataManage/DataHandle.cpp and b/TestClient/DataManage/DataHandle.cpp differ diff --git a/TestClient/DataManage/FunC.h b/TestClient/DataManage/FunC.h index cfcae11..9a1d2a4 100644 Binary files a/TestClient/DataManage/FunC.h and b/TestClient/DataManage/FunC.h differ diff --git a/TestClient/DataManage/FuncTest.cpp b/TestClient/DataManage/FuncTest.cpp index 24e4c8c..2ba6697 100644 Binary files a/TestClient/DataManage/FuncTest.cpp and b/TestClient/DataManage/FuncTest.cpp differ diff --git a/TestClient/DataManage/FuncTest.h b/TestClient/DataManage/FuncTest.h index 3d68bf0..a5e9ea1 100644 Binary files a/TestClient/DataManage/FuncTest.h and b/TestClient/DataManage/FuncTest.h differ diff --git a/TestClient/DataManage/RWData.h b/TestClient/DataManage/RWData.h index d72a41d..be61795 100644 Binary files a/TestClient/DataManage/RWData.h and b/TestClient/DataManage/RWData.h differ diff --git a/TestClient/DataManage/StreamClient.cpp b/TestClient/DataManage/StreamClient.cpp index d77caa7..a0fdae9 100644 Binary files a/TestClient/DataManage/StreamClient.cpp and b/TestClient/DataManage/StreamClient.cpp differ diff --git a/TestClient/DataManage/StreamClient.h b/TestClient/DataManage/StreamClient.h index 4757079..9daddc1 100644 Binary files a/TestClient/DataManage/StreamClient.h and b/TestClient/DataManage/StreamClient.h differ diff --git a/TestClient/protobuf/stream.grpc.pb.h b/TestClient/protobuf/stream.grpc.pb.h index 1f718a9..f4a53ec 100644 Binary files a/TestClient/protobuf/stream.grpc.pb.h and b/TestClient/protobuf/stream.grpc.pb.h differ diff --git a/TestClient/protobuf/stream.pb.cc b/TestClient/protobuf/stream.pb.cc index b301895..b875814 100644 --- a/TestClient/protobuf/stream.pb.cc +++ b/TestClient/protobuf/stream.pb.cc @@ -572,6 +572,36 @@ struct LayerInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerInfoDefaultTypeInternal _LayerInfo_default_instance_; template +PROTOBUF_CONSTEXPR JobParam::JobParam(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.jobuid_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.jobfilename_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.componentcount_)*/ 0u, + /*decltype(_impl_.isok_)*/ false, + /*decltype(_impl_.layerinherit_)*/ false, + /*decltype(_impl_.loadfinished_)*/ false, + /*decltype(_impl_.startindex_)*/ 0u, + /*decltype(_impl_.setparamtype_)*/ 0, + /*decltype(_impl_.layercount_)*/ 0u, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct JobParamDefaultTypeInternal { + PROTOBUF_CONSTEXPR JobParamDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JobParamDefaultTypeInternal() {} + union { + JobParam _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobParamDefaultTypeInternal _JobParam_default_instance_; + template PROTOBUF_CONSTEXPR ScannerCrtlCfgResp::ScannerCrtlCfgResp(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.scannercfg_)*/ {}, @@ -844,7 +874,7 @@ struct TimePowerCompensateDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimePowerCompensateDefaultTypeInternal _TimePowerCompensate_default_instance_; } // namespace stream -static ::_pb::Metadata file_level_metadata_stream_2eproto[34]; +static ::_pb::Metadata file_level_metadata_stream_2eproto[35]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_stream_2eproto = nullptr; @@ -1194,6 +1224,23 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::LayerInfo, _impl_.scan_times_), PROTOBUF_FIELD_OFFSET(::stream::LayerInfo, _impl_.isok_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.isok_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.componentcount_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.jobuid_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.jobfilename_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.layerinherit_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.startindex_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.setparamtype_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.layercount_), + PROTOBUF_FIELD_OFFSET(::stream::JobParam, _impl_.loadfinished_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1443,15 +1490,16 @@ static const ::_pbi::MigrationSchema {307, -1, -1, sizeof(::stream::ComResponce)}, {320, -1, -1, sizeof(::stream::Layers)}, {330, -1, -1, sizeof(::stream::LayerInfo)}, - {343, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, - {352, 379, -1, sizeof(::stream::ScannerCrtlCfgData)}, - {398, -1, -1, sizeof(::stream::FixPointData)}, - {411, -1, -1, sizeof(::stream::ScanParamCfg)}, - {449, -1, -1, sizeof(::stream::CorrectParamCfg)}, - {483, -1, -1, sizeof(::stream::ScanTestCfg)}, - {513, -1, -1, sizeof(::stream::SkyWritingCfg)}, - {538, -1, -1, sizeof(::stream::PowerCompensate)}, - {551, -1, -1, sizeof(::stream::TimePowerCompensate)}, + {343, -1, -1, sizeof(::stream::JobParam)}, + {360, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, + {369, 396, -1, sizeof(::stream::ScannerCrtlCfgData)}, + {415, -1, -1, sizeof(::stream::FixPointData)}, + {428, -1, -1, sizeof(::stream::ScanParamCfg)}, + {466, -1, -1, sizeof(::stream::CorrectParamCfg)}, + {500, -1, -1, sizeof(::stream::ScanTestCfg)}, + {530, -1, -1, sizeof(::stream::SkyWritingCfg)}, + {555, -1, -1, sizeof(::stream::PowerCompensate)}, + {568, -1, -1, sizeof(::stream::TimePowerCompensate)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1480,6 +1528,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::stream::_ComResponce_default_instance_._instance, &::stream::_Layers_default_instance_._instance, &::stream::_LayerInfo_default_instance_._instance, + &::stream::_JobParam_default_instance_._instance, &::stream::_ScannerCrtlCfgResp_default_instance_._instance, &::stream::_ScannerCrtlCfgData_default_instance_._instance, &::stream::_FixPointData_default_instance_._instance, @@ -1566,99 +1615,103 @@ const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE( "\030\001 \003(\0132\021.stream.LayerInfo\022\014\n\004isOk\030\002 \001(\010\"" "e\n\tLayerInfo\022\r\n\005index\030\001 \001(\005\022\016\n\006powder\030\002 " "\001(\r\022\027\n\017layer_thickness\030\003 \001(\r\022\022\n\nscan_tim" - "es\030\004 \001(\005\022\014\n\004isOk\030\005 \001(\010\"D\n\022ScannerCrtlCfg" - "Resp\022.\n\nscannerCfg\030\001 \003(\0132\032.stream.Scanne" - "rCrtlCfgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005s" - "eqNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.strea" - "m.FixPointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.s" - "tream.ScanParamCfg\022,\n\016hatchingParams\030\004 \001" - "(\0132\024.stream.ScanParamCfg\022*\n\014borderParams" - "\030\005 \001(\0132\024.stream.ScanParamCfg\022+\n\rsupportP" - "arams\030\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017cor" - "rectParamCfg\030\007 \001(\0132\027.stream.CorrectParam" - "Cfg\022(\n\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTe" - "stCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025.stream.Sk" - "yWritingCfg\0220\n\017powerCompensate\030\n \003(\0132\027.s" - "tream.PowerCompensate\0225\n\020tPowerCompensat" - "e\030\013 \003(\0132\033.stream.TimePowerCompensate\022\021\n\t" - "controlNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013con" - "trolType\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006card" - "IP\030\020 \001(\014\022\020\n\010isEnable\030\021 \001(\010\022\021\n\thadAssign\030" - "\022 \001(\010\022\020\n\010hadMatch\030\023 \001(\010\"Y\n\014FixPointData\022" - "\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006pointX\030\003 \001(\002" - "\022\016\n\006pointY\030\004 \001(\002\022\020\n\010duration\030\005 \001(\r\"\275\005\n\014S" - "canParamCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLe" - "velMin\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tju" - "mpDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014j" - "umpDelayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014" - "scanDelayMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r" - "\022\024\n\014polygonDelay\030\n \001(\r\022\027\n\017polygonDelayMi" - "n\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlase" - "roffDelay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(" - "\003\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDe" - "lay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017la" - "seronDelayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(" - "\r\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDel" - "ayMax\030\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022" - "jumpLengthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLi" - "mitMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpS" - "peedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tm" - "arkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014" - "markSpeedMax\030\036 \001(\001\"\256\004\n\017CorrectParamCfg\022\023" - "\n\013xmeasureMin\030\001 \001(\001\022\023\n\013xmeasureMax\030\002 \001(\001" - "\022\023\n\013ymeasureMin\030\003 \001(\001\022\023\n\013ymeasureMax\030\004 \001" - "(\001\022\017\n\007xposfix\030\005 \001(\001\022\017\n\007yposfix\030\006 \001(\001\022\021\n\t" - "scanAngle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n" - "\014scanAngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n" - "\013fixAngleMin\030\013 \001(\001\022\023\n\013fixAngleMax\030\014 \001(\001\022" - "\020\n\010xcorrect\030\r \001(\001\022\020\n\010ycorrect\030\016 \001(\001\022\023\n\013x" - "correctMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n" - "\013ycorrectMin\030\021 \001(\001\022\023\n\013ycorrectMax\030\022 \001(\001\022" - "\023\n\013realXOffset\030\023 \001(\001\022\023\n\013realYOffset\030\024 \001(" - "\001\022\017\n\007factorK\030\025 \001(\001\022\027\n\017isCorrectFile3D\030\026 " - "\001(\010\022\026\n\016isDynamicFocus\030\027 \001(\010\022\024\n\014defocusRa" - "tio\030\030 \001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017de" - "focusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\nd" - "ebugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014sh" - "apeSizeMin\030\003 \001(\005\022\026\n\016shape_size_max\030\004 \001(\005" - "\022\023\n\013laser_power\030\005 \001(\005\022\027\n\017laser_power_min" - "\030\006 \001(\005\022\027\n\017laser_power_max\030\007 \001(\005\022\017\n\007defoc" - "us\030\010 \001(\001\022\023\n\013defocus_min\030\t \001(\001\022\023\n\013defocus" - "_max\030\n \001(\001\022\020\n\010is_cycle\030\013 \001(\010\022\017\n\007cross_x\030" - "\014 \001(\001\022\017\n\007cross_y\030\r \001(\001\022\022\n\nz_distance\030\016 \001" - "(\001\022\034\n\024isAutoHeatingScanner\030\017 \001(\010\022!\n\031auto" - "HeatingScannerMinutes\030\020 \001(\r\022\036\n\026autoHeati" - "ngScannerSize\030\021 \001(\r\022\037\n\027autoHeatingScanne" - "rSpeed\030\022 \001(\001\022\031\n\021mark_test_start_x\030\023 \001(\001\022" - "\031\n\021mark_test_start_y\030\024 \001(\001\022\027\n\017mark_test_" - "end_x\030\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n" - "\rSkyWritingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007time" - "lag\030\002 \001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelag" - "Max\030\004 \001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laser" - "OnShiftMin\030\006 \001(\003\022\027\n\017laserOnShiftMax\030\007 \001(" - "\003\022\r\n\005nprev\030\010 \001(\r\022\020\n\010nprevMin\030\t \001(\r\022\020\n\010np" - "revMax\030\n \001(\r\022\r\n\005npost\030\013 \001(\r\022\020\n\010npostMin\030" - "\014 \001(\r\022\020\n\010npostMax\030\r \001(\r\022\014\n\004mode\030\016 \001(\005\022\016\n" - "\006limite\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimi" - "teMax\030\021 \001(\001\"d\n\017PowerCompensate\022\013\n\003cno\030\001 " - "\001(\005\022\017\n\007percent\030\002 \001(\005\022\r\n\005value\030\003 \001(\002\022\021\n\tv" - "alue_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023Tim" - "ePowerCompensate\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(" - "\005\022\023\n\013startMinute\030\003 \001(\r\022\021\n\tendMinute\030\004 \001(" - "\r\022\022\n\ncompensate\030\005 \001(\002*\223\001\n\004TYPE\022\t\n\005iBOOL\020" - "\000\022\n\n\006iSHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005" - "iUINT\020\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING\020\006\022\t\n\005iCHA" - "R\020\007\022\n\n\006iUCHAR\020\010\022\t\n\005iWORD\020\t\022\013\n\007iDOUBLE\020\n\022" - "\n\n\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n" - "\003ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.s" - "tream.RequestInfo\032\023.stream.ResponseAny\"\000" - "\022=\n\014ServerStream\022\023.stream.RequestInfo\032\024." - "stream.ResponseInfo\"\0000\001\022=\n\014ClientStream\022" - "\023.stream.RequestInfo\032\024.stream.ResponseIn" - "fo\"\000(\001\022<\n\tAllStream\022\023.stream.RequestInfo" - "\032\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc." - "examples.streamB\013StreamProtoP\001\242\002\002STb\006pro" - "to3" + "es\030\004 \001(\005\022\014\n\004isOk\030\005 \001(\010\"\277\001\n\010JobParam\022\014\n\004i" + "sok\030\001 \001(\010\022\026\n\016componentCount\030\002 \001(\r\022\016\n\006job" + "Uid\030\003 \001(\014\022\023\n\013jobFileName\030\004 \001(\014\022\024\n\014layerI" + "nherit\030\005 \001(\010\022\022\n\nstartIndex\030\006 \001(\r\022\024\n\014setP" + "aramType\030\007 \001(\005\022\022\n\nlayerCount\030\010 \001(\r\022\024\n\014lo" + "adFinished\030\t \001(\010\"D\n\022ScannerCrtlCfgResp\022." + "\n\nscannerCfg\030\001 \003(\0132\032.stream.ScannerCrtlC" + "fgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005seqNo\030\001" + " \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.stream.FixP" + "ointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.stream." + "ScanParamCfg\022,\n\016hatchingParams\030\004 \001(\0132\024.s" + "tream.ScanParamCfg\022*\n\014borderParams\030\005 \001(\013" + "2\024.stream.ScanParamCfg\022+\n\rsupportParams\030" + "\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017correctPa" + "ramCfg\030\007 \001(\0132\027.stream.CorrectParamCfg\022(\n" + "\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTestCfg\022" + ",\n\rskyWritingCfg\030\t \001(\0132\025.stream.SkyWriti" + "ngCfg\0220\n\017powerCompensate\030\n \003(\0132\027.stream." + "PowerCompensate\0225\n\020tPowerCompensate\030\013 \003(" + "\0132\033.stream.TimePowerCompensate\022\021\n\tcontro" + "lNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013controlTy" + "pe\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardIP\030\020 \001" + "(\014\022\020\n\010isEnable\030\021 \001(\010\022\021\n\thadAssign\030\022 \001(\010\022" + "\020\n\010hadMatch\030\023 \001(\010\"Y\n\014FixPointData\022\n\n\002id\030" + "\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006pointX\030\003 \001(\002\022\016\n\006po" + "intY\030\004 \001(\002\022\020\n\010duration\030\005 \001(\r\"\275\005\n\014ScanPar" + "amCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLevelMin" + "\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tjumpDela" + "y\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014jumpDel" + "ayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014scanDe" + "layMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r\022\024\n\014po" + "lygonDelay\030\n \001(\r\022\027\n\017polygonDelayMin\030\013 \001(" + "\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlaseroffDe" + "lay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(\003\022\030\n\020l" + "aseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDelay\030\020 " + "\001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017laseronD" + "elayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(\r\022\027\n\017m" + "inJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDelayMax\030" + "\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022jumpLe" + "ngthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLimitMax" + "\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpSpeedMi" + "n\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tmarkSpe" + "ed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014markSp" + "eedMax\030\036 \001(\001\"\256\004\n\017CorrectParamCfg\022\023\n\013xmea" + "sureMin\030\001 \001(\001\022\023\n\013xmeasureMax\030\002 \001(\001\022\023\n\013ym" + "easureMin\030\003 \001(\001\022\023\n\013ymeasureMax\030\004 \001(\001\022\017\n\007" + "xposfix\030\005 \001(\001\022\017\n\007yposfix\030\006 \001(\001\022\021\n\tscanAn" + "gle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n\014scanA" + "ngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n\013fixAn" + "gleMin\030\013 \001(\001\022\023\n\013fixAngleMax\030\014 \001(\001\022\020\n\010xco" + "rrect\030\r \001(\001\022\020\n\010ycorrect\030\016 \001(\001\022\023\n\013xcorrec" + "tMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n\013ycorr" + "ectMin\030\021 \001(\001\022\023\n\013ycorrectMax\030\022 \001(\001\022\023\n\013rea" + "lXOffset\030\023 \001(\001\022\023\n\013realYOffset\030\024 \001(\001\022\017\n\007f" + "actorK\030\025 \001(\001\022\027\n\017isCorrectFile3D\030\026 \001(\010\022\026\n" + "\016isDynamicFocus\030\027 \001(\010\022\024\n\014defocusRatio\030\030 " + "\001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017defocusR" + "atioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\ndebugSh" + "ape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014shapeSiz" + "eMin\030\003 \001(\005\022\026\n\016shape_size_max\030\004 \001(\005\022\023\n\013la" + "ser_power\030\005 \001(\005\022\027\n\017laser_power_min\030\006 \001(\005" + "\022\027\n\017laser_power_max\030\007 \001(\005\022\017\n\007defocus\030\010 \001" + "(\001\022\023\n\013defocus_min\030\t \001(\001\022\023\n\013defocus_max\030\n" + " \001(\001\022\020\n\010is_cycle\030\013 \001(\010\022\017\n\007cross_x\030\014 \001(\001\022" + "\017\n\007cross_y\030\r \001(\001\022\022\n\nz_distance\030\016 \001(\001\022\034\n\024" + "isAutoHeatingScanner\030\017 \001(\010\022!\n\031autoHeatin" + "gScannerMinutes\030\020 \001(\r\022\036\n\026autoHeatingScan" + "nerSize\030\021 \001(\r\022\037\n\027autoHeatingScannerSpeed" + "\030\022 \001(\001\022\031\n\021mark_test_start_x\030\023 \001(\001\022\031\n\021mar" + "k_test_start_y\030\024 \001(\001\022\027\n\017mark_test_end_x\030" + "\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n\rSkyWr" + "itingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007timelag\030\002 " + "\001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelagMax\030\004 " + "\001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laserOnShif" + "tMin\030\006 \001(\003\022\027\n\017laserOnShiftMax\030\007 \001(\003\022\r\n\005n" + "prev\030\010 \001(\r\022\020\n\010nprevMin\030\t \001(\r\022\020\n\010nprevMax" + "\030\n \001(\r\022\r\n\005npost\030\013 \001(\r\022\020\n\010npostMin\030\014 \001(\r\022" + "\020\n\010npostMax\030\r \001(\r\022\014\n\004mode\030\016 \001(\005\022\016\n\006limit" + "e\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimiteMax\030" + "\021 \001(\001\"d\n\017PowerCompensate\022\013\n\003cno\030\001 \001(\005\022\017\n" + "\007percent\030\002 \001(\005\022\r\n\005value\030\003 \001(\002\022\021\n\tvalue_m" + "in\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023TimePower" + "Compensate\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\023\n\013s" + "tartMinute\030\003 \001(\r\022\021\n\tendMinute\030\004 \001(\r\022\022\n\nc" + "ompensate\030\005 \001(\002*\223\001\n\004TYPE\022\t\n\005iBOOL\020\000\022\n\n\006i" + "SHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005iUINT\020" + "\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING\020\006\022\t\n\005iCHAR\020\007\022\n\n" + "\006iUCHAR\020\010\022\t\n\005iWORD\020\t\022\013\n\007iDOUBLE\020\n\022\n\n\006iTI" + "MET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n\003ADD\020\001" + "\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.stream." + "RequestInfo\032\023.stream.ResponseAny\"\000\022=\n\014Se" + "rverStream\022\023.stream.RequestInfo\032\024.stream" + ".ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023.stre" + "am.RequestInfo\032\024.stream.ResponseInfo\"\000(\001" + "\022<\n\tAllStream\022\023.stream.RequestInfo\032\024.str" + "eam.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.exampl" + "es.streamB\013StreamProtoP\001\242\002\002STb\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_stream_2eproto_deps[1] = { @@ -1668,13 +1721,13 @@ static ::absl::once_flag descriptor_table_stream_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = { false, false, - 6683, + 6877, descriptor_table_protodef_stream_2eproto, "stream.proto", &descriptor_table_stream_2eproto_once, descriptor_table_stream_2eproto_deps, 1, - 34, + 35, schemas, file_default_instances, TableStruct_stream_2eproto::offsets, @@ -9433,6 +9486,414 @@ void LayerInfo::InternalSwap(LayerInfo* other) { } // =================================================================== +class JobParam::_Internal { + public: +}; + +JobParam::JobParam(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:stream.JobParam) +} +JobParam::JobParam(const JobParam& from) : ::google::protobuf::Message() { + JobParam* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.jobuid_){}, + decltype(_impl_.jobfilename_){}, + decltype(_impl_.componentcount_){}, + decltype(_impl_.isok_){}, + decltype(_impl_.layerinherit_){}, + decltype(_impl_.loadfinished_){}, + decltype(_impl_.startindex_){}, + decltype(_impl_.setparamtype_){}, + decltype(_impl_.layercount_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.jobuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_jobuid().empty()) { + _this->_impl_.jobuid_.Set(from._internal_jobuid(), _this->GetArenaForAllocation()); + } + _impl_.jobfilename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_jobfilename().empty()) { + _this->_impl_.jobfilename_.Set(from._internal_jobfilename(), _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.componentcount_, &from._impl_.componentcount_, + static_cast<::size_t>(reinterpret_cast(&_impl_.layercount_) - + reinterpret_cast(&_impl_.componentcount_)) + sizeof(_impl_.layercount_)); + + // @@protoc_insertion_point(copy_constructor:stream.JobParam) +} +inline void JobParam::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.jobuid_){}, + decltype(_impl_.jobfilename_){}, + decltype(_impl_.componentcount_){0u}, + decltype(_impl_.isok_){false}, + decltype(_impl_.layerinherit_){false}, + decltype(_impl_.loadfinished_){false}, + decltype(_impl_.startindex_){0u}, + decltype(_impl_.setparamtype_){0}, + decltype(_impl_.layercount_){0u}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.jobuid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobuid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jobfilename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +JobParam::~JobParam() { + // @@protoc_insertion_point(destructor:stream.JobParam) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void JobParam::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.jobuid_.Destroy(); + _impl_.jobfilename_.Destroy(); +} +void JobParam::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void JobParam::Clear() { +// @@protoc_insertion_point(message_clear_start:stream.JobParam) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.jobuid_.ClearToEmpty(); + _impl_.jobfilename_.ClearToEmpty(); + ::memset(&_impl_.componentcount_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.layercount_) - + reinterpret_cast(&_impl_.componentcount_)) + sizeof(_impl_.layercount_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* JobParam::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); + return ptr; +} + + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 0, 0, 2> JobParam::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_JobParam_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // bool isok = 1; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.isok_)}}, + // uint32 componentCount = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.componentcount_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_)}}, + // bytes jobUid = 3; + {::_pbi::TcParser::FastBS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobuid_)}}, + // bytes jobFileName = 4; + {::_pbi::TcParser::FastBS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobfilename_)}}, + // bool layerInherit = 5; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layerinherit_)}}, + // uint32 startIndex = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.startindex_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.startindex_)}}, + // int32 setParamType = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.setparamtype_), 63>(), + {56, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.setparamtype_)}}, + // uint32 layerCount = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParam, _impl_.layercount_), 63>(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_)}}, + // bool loadFinished = 9; + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 63, 0, PROTOBUF_FIELD_OFFSET(JobParam, _impl_.loadfinished_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // bool isok = 1; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.isok_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint32 componentCount = 2; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // bytes jobUid = 3; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobuid_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes jobFileName = 4; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.jobfilename_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bool layerInherit = 5; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layerinherit_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint32 startIndex = 6; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.startindex_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // int32 setParamType = 7; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.setparamtype_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // uint32 layerCount = 8; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // bool loadFinished = 9; + {PROTOBUF_FIELD_OFFSET(JobParam, _impl_.loadfinished_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; + +::uint8_t* JobParam::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:stream.JobParam) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bool isok = 1; + if (this->_internal_isok() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 1, this->_internal_isok(), target); + } + + // uint32 componentCount = 2; + if (this->_internal_componentcount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this->_internal_componentcount(), target); + } + + // bytes jobUid = 3; + if (!this->_internal_jobuid().empty()) { + const std::string& _s = this->_internal_jobuid(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // bytes jobFileName = 4; + if (!this->_internal_jobfilename().empty()) { + const std::string& _s = this->_internal_jobfilename(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + + // bool layerInherit = 5; + if (this->_internal_layerinherit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this->_internal_layerinherit(), target); + } + + // uint32 startIndex = 6; + if (this->_internal_startindex() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 6, this->_internal_startindex(), target); + } + + // int32 setParamType = 7; + if (this->_internal_setparamtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<7>( + stream, this->_internal_setparamtype(), target); + } + + // uint32 layerCount = 8; + if (this->_internal_layercount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 8, this->_internal_layercount(), target); + } + + // bool loadFinished = 9; + if (this->_internal_loadfinished() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this->_internal_loadfinished(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:stream.JobParam) + return target; +} + +::size_t JobParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:stream.JobParam) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes jobUid = 3; + if (!this->_internal_jobuid().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_jobuid()); + } + + // bytes jobFileName = 4; + if (!this->_internal_jobfilename().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_jobfilename()); + } + + // uint32 componentCount = 2; + if (this->_internal_componentcount() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_componentcount()); + } + + // bool isok = 1; + if (this->_internal_isok() != 0) { + total_size += 2; + } + + // bool layerInherit = 5; + if (this->_internal_layerinherit() != 0) { + total_size += 2; + } + + // bool loadFinished = 9; + if (this->_internal_loadfinished() != 0) { + total_size += 2; + } + + // uint32 startIndex = 6; + if (this->_internal_startindex() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_startindex()); + } + + // int32 setParamType = 7; + if (this->_internal_setparamtype() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_setparamtype()); + } + + // uint32 layerCount = 8; + if (this->_internal_layercount() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this->_internal_layercount()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData JobParam::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + JobParam::MergeImpl +}; +const ::google::protobuf::Message::ClassData*JobParam::GetClassData() const { return &_class_data_; } + + +void JobParam::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:stream.JobParam) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_jobuid().empty()) { + _this->_internal_set_jobuid(from._internal_jobuid()); + } + if (!from._internal_jobfilename().empty()) { + _this->_internal_set_jobfilename(from._internal_jobfilename()); + } + if (from._internal_componentcount() != 0) { + _this->_internal_set_componentcount(from._internal_componentcount()); + } + if (from._internal_isok() != 0) { + _this->_internal_set_isok(from._internal_isok()); + } + if (from._internal_layerinherit() != 0) { + _this->_internal_set_layerinherit(from._internal_layerinherit()); + } + if (from._internal_loadfinished() != 0) { + _this->_internal_set_loadfinished(from._internal_loadfinished()); + } + if (from._internal_startindex() != 0) { + _this->_internal_set_startindex(from._internal_startindex()); + } + if (from._internal_setparamtype() != 0) { + _this->_internal_set_setparamtype(from._internal_setparamtype()); + } + if (from._internal_layercount() != 0) { + _this->_internal_set_layercount(from._internal_layercount()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void JobParam::CopyFrom(const JobParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:stream.JobParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool JobParam::IsInitialized() const { + return true; +} + +void JobParam::InternalSwap(JobParam* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobuid_, lhs_arena, + &other->_impl_.jobuid_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobfilename_, lhs_arena, + &other->_impl_.jobfilename_, rhs_arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(JobParam, _impl_.layercount_) + + sizeof(JobParam::_impl_.layercount_) + - PROTOBUF_FIELD_OFFSET(JobParam, _impl_.componentcount_)>( + reinterpret_cast(&_impl_.componentcount_), + reinterpret_cast(&other->_impl_.componentcount_)); +} + +::google::protobuf::Metadata JobParam::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, + file_level_metadata_stream_2eproto[25]); +} +// =================================================================== + class ScannerCrtlCfgResp::_Internal { public: }; @@ -9601,7 +10062,7 @@ void ScannerCrtlCfgResp::InternalSwap(ScannerCrtlCfgResp* other) { ::google::protobuf::Metadata ScannerCrtlCfgResp::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[25]); + file_level_metadata_stream_2eproto[26]); } // =================================================================== @@ -10406,7 +10867,7 @@ void ScannerCrtlCfgData::InternalSwap(ScannerCrtlCfgData* other) { ::google::protobuf::Metadata ScannerCrtlCfgData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[26]); + file_level_metadata_stream_2eproto[27]); } // =================================================================== @@ -10702,7 +11163,7 @@ void FixPointData::InternalSwap(FixPointData* other) { ::google::protobuf::Metadata FixPointData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[27]); + file_level_metadata_stream_2eproto[28]); } // =================================================================== @@ -11628,7 +12089,7 @@ void ScanParamCfg::InternalSwap(ScanParamCfg* other) { ::google::protobuf::Metadata ScanParamCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[28]); + file_level_metadata_stream_2eproto[29]); } // =================================================================== @@ -12716,7 +13177,7 @@ void CorrectParamCfg::InternalSwap(CorrectParamCfg* other) { ::google::protobuf::Metadata CorrectParamCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[29]); + file_level_metadata_stream_2eproto[30]); } // =================================================================== @@ -13534,7 +13995,7 @@ void ScanTestCfg::InternalSwap(ScanTestCfg* other) { ::google::protobuf::Metadata ScanTestCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[30]); + file_level_metadata_stream_2eproto[31]); } // =================================================================== @@ -14173,7 +14634,7 @@ void SkyWritingCfg::InternalSwap(SkyWritingCfg* other) { ::google::protobuf::Metadata SkyWritingCfg::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[31]); + file_level_metadata_stream_2eproto[32]); } // =================================================================== @@ -14483,7 +14944,7 @@ void PowerCompensate::InternalSwap(PowerCompensate* other) { ::google::protobuf::Metadata PowerCompensate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[32]); + file_level_metadata_stream_2eproto[33]); } // =================================================================== @@ -14765,7 +15226,7 @@ void TimePowerCompensate::InternalSwap(TimePowerCompensate* other) { ::google::protobuf::Metadata TimePowerCompensate::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[33]); + file_level_metadata_stream_2eproto[34]); } // @@protoc_insertion_point(namespace_scope) } // namespace stream diff --git a/TestClient/protobuf/stream.pb.h b/TestClient/protobuf/stream.pb.h index d1ad0ac..71f86bd 100644 Binary files a/TestClient/protobuf/stream.pb.h and b/TestClient/protobuf/stream.pb.h differ diff --git a/TestClient/protobuf/stream.proto b/TestClient/protobuf/stream.proto index f8d2b86..d091988 100644 --- a/TestClient/protobuf/stream.proto +++ b/TestClient/protobuf/stream.proto @@ -253,6 +253,18 @@ message LayerInfo{ bool isOk = 5; } +message JobParam{ + bool isok = 1; + uint32 componentCount =2; + bytes jobUid =3; + bytes jobFileName =4; + bool layerInherit = 5; + uint32 startIndex = 6; + int32 setParamType = 7; + uint32 layerCount =8; + bool loadFinished = 9; +} + //ScannerCrtlCfg结构体 message ScannerCrtlCfgResp{ repeated ScannerCrtlCfgData scannerCfg = 1; @@ -421,4 +433,6 @@ service Stream { rpc ServerStream (RequestInfo) returns (stream ResponseInfo) {} // 服务端数据流模式 rpc ClientStream (stream RequestInfo) returns (ResponseInfo) {} // 客户端数据流模式 rpc AllStream (stream RequestInfo) returns (stream ResponseInfo) {} // 双向数据流模式 -} \ No newline at end of file +} + +