diff --git a/PrintS/Controller/Controller.h b/PrintS/Controller/Controller.h index 7950152..12921c9 100644 --- a/PrintS/Controller/Controller.h +++ b/PrintS/Controller/Controller.h @@ -9,6 +9,7 @@ #include "../Purifier/BasePurifier.h" #include #include "../Registration/Registration.h" +#include "FileDialog.h" class Controller { public: @@ -43,6 +44,8 @@ public: Registration* m_reg; HBDCamera* m_Camera; + + FileDialog m_fileDialog; private: bool m_sendTdExitFlag; thread m_sendParamThread; diff --git a/PrintS/Controller/FileDialog.cpp b/PrintS/Controller/FileDialog.cpp new file mode 100644 index 0000000..8a5084d --- /dev/null +++ b/PrintS/Controller/FileDialog.cpp @@ -0,0 +1,185 @@ +#include "FileDialog.h" +#include +#include "../utils/dirent.h" +#include "../utils/StringHelper.h" +#include "../utils/ConverType.hpp" + +FileDialog::FileDialog() { + +} + +FileDialog::~FileDialog() { + +} + + +void FileDialog::GetLogicalDrive(::stream::ResponseAny** rsp) { + //std::vector vecDrives; + char szbuf[MAX_PATH] = { 0 }; + GetLogicalDriveStrings(MAX_PATH, szbuf); + int nCount = 0; + char* pDrive = szbuf; + string driveStr; + for (size_t nlen = strlen(szbuf); nlen == 3; nCount++) + { + std::string strDrive(pDrive); + driveStr += strDrive + " "; + pDrive += 4; + nlen = strlen(pDrive); + } + + stream::ComResponce result; + result.set_data(driveStr); + (*rsp)->mutable_data()->PackFrom(result); +} + + +inline bool ReplaceString(std::wstring& str, const std::wstring& oldStr, const std::wstring& newStr) +{ + bool Finded = false; + size_t pos = 0; + while ((pos = str.find(oldStr, pos)) != std::wstring::npos) { + Finded = true; + str.replace(pos, oldStr.length(), newStr); + pos += newStr.length(); + } + return Finded; +} + + +inline std::vector splitStringVector(const std::wstring& text, char delimiter) +{ + std::vector arr; + std::wstring::size_type start = 0; + std::wstring::size_type end = text.find(delimiter, start); + while (end != std::string::npos) + { + std::wstring token = text.substr(start, end - start); + if (token != L"") + arr.push_back(token); + start = end + 1; + end = text.find(delimiter, start); + } + arr.push_back(text.substr(start)); + return arr; +} + + +void FileDialog::Request(const ReadData& rd, ::stream::ResponseAny** resp) { + CALLFUNC type = (CALLFUNC)ConverType::TryToI(rd.nameKey); + if (type == CALLFUNC::GetLogicalDrive) { + GetLogicalDrive(resp); + printf("GetLogicalDrive responded...\n"); + } + else if(type == CALLFUNC::ScanDir){ + std::wstring vPath = StringHelper::Str2Wstr(rd.strValue); + ScanDir(vPath); + + stream::ComResponce result; + string dirc; + for (auto start = m_CurrentPath_Decomposition.begin(); start != m_CurrentPath_Decomposition.end(); ++start) { + dirc += StringHelper::Wstr2Str(*start) + " "; + } + result.set_directory(dirc); //当前目录 空格隔开 + + for (auto start = m_FileList.begin(); start != m_FileList.end(); ++start) { + auto pFileInfo = result.add_fileinfo(); //目录下的文件夹 空格隔开 + pFileInfo->set_type("" + start->type); + pFileInfo->set_filename(StringHelper::Wstr2Str(start->fileName)); + pFileInfo->set_filepath(StringHelper::Wstr2Str(start->filePath)); + pFileInfo->set_ext(StringHelper::Wstr2Str(start->ext)); + } + + (*resp)->mutable_data()->PackFrom(result); + printf("ScanDir responded...\n"); + } + +} + +bool FileDialog::ScanDir(std::wstring vPath) +{ + struct _wdirent** files = 0; + int i = 0; + int n = 0; + + m_FileList.clear(); + + // get currentPath + WDIR* currentDir = _wopendir(vPath.c_str()); + if (currentDir == 0) // path not existing + { + vPath = L"."; // current app path + currentDir = _wopendir(vPath.c_str()); + } + if (currentDir != 0) + { + std::wstring ws(currentDir->patt); + m_CurrentPath = std::wstring(ws.begin(), ws.end()); + ReplaceString(m_CurrentPath, L"\\*", L""); + _wclosedir(currentDir); + m_CurrentPath_Decomposition = splitStringVector(m_CurrentPath, '\\'); + } + else + { + return false; + } + + n = wscandir(vPath.c_str(), &files, NULL, [](const void* a, const void* b) { + return strcoll(((dirent*)a)->d_name, ((dirent*)b)->d_name); + }); + if (n >= 0) + { + for (i = 0; i < n; i++) + { + struct _wdirent* ent = files[i]; + + FileInfoStruct infos; + + infos.fileName = ent->d_name; + if (ent->d_type == DT_REG) { + infos.type = 'f'; + } + if (ent->d_type == DT_DIR) { + infos.type = 'd'; + } + if (ent->d_type == DT_LNK) { + infos.type = 'l'; + } + if (infos.type == 'f') + { + size_t lpt = infos.fileName.find_last_of(L"."); + if (lpt != std::wstring::npos) + infos.ext = infos.fileName.substr(lpt); + } + + if (infos.fileName != L".") + { + switch (ent->d_type) + { + case DT_REG: infos.type = 'f'; break; + case DT_DIR: infos.type = 'd'; break; + case DT_LNK: infos.type = 'l'; break; + } + + m_FileList.push_back(infos); + } + } + + for (i = 0; i < n; i++) + { + free(files[i]); + } + free(files); + } + + std::sort(m_FileList.begin(), m_FileList.end(), [](FileInfoStruct& a, FileInfoStruct& b) { + bool res; + if (a.type != b.type) res = (a.type < b.type); + else res = (a.fileName < b.fileName); + return res; + }); + + return true; +} + + diff --git a/PrintS/Controller/FileDialog.h b/PrintS/Controller/FileDialog.h new file mode 100644 index 0000000..d0f20bb --- /dev/null +++ b/PrintS/Controller/FileDialog.h @@ -0,0 +1,43 @@ +#pragma once +#include +#include +#include "../protobuf/stream.pb.h" +#include "../DataManage/RWData.h" + +#define MAX_FILE_DIALOG_NAME_BUFFER 1024 + +struct FileInfoStruct +{ + char type; + std::wstring filePath; + std::wstring fileName; + std::wstring ext; +}; + +enum CALLFUNC { + GetLogicalDrive=0, + ScanDir, +}; + + +class FileDialog +{ +public: + FileDialog(); + ~FileDialog(); + +public: + void Request(const ReadData& rd, ::stream::ResponseAny** response); //查询路径下的文件、文件夹等 +private: + bool ScanDir(std::wstring vPath); //查询路径下的文件、文件夹等 + void GetLogicalDrive(::stream::ResponseAny** rsp); //获取盘符等,空格隔开 + //void ComposeNewPath(std::vector::iterator vIter); //组合为一个路径 + +private: + std::string m_DriverItem; //选中的盘符 + std::vector m_FileList; //当前路径下的文件、文件夹 + std::wstring m_SelectedFileName; //选取的文件名 + std::wstring m_CurrentPath; //当前的路径 + std::vector m_CurrentPath_Decomposition; //当前路径的文件名集合 + std::wstring m_CurrentFilterExt; //文件后缀 +}; diff --git a/PrintS/DataManage/ClientInfo.cpp b/PrintS/DataManage/ClientInfo.cpp index 9aac2fa..7773a4e 100644 --- a/PrintS/DataManage/ClientInfo.cpp +++ b/PrintS/DataManage/ClientInfo.cpp @@ -12,7 +12,7 @@ void ClientWrapper::AddClient(ClientInfo* clientInfo) { if (!isExist) m_clientList.emplace_back(clientInfo); } -//下线检测 +//下线检测 没用了 void ClientWrapper::OfflineCheck() { std::lock_guard lck(m_mux); auto client = m_clientList.begin(); @@ -62,4 +62,18 @@ bool ClientWrapper::IsExist(ClientInfo* ci) { ++client; } return flag; +} + +void ClientWrapper::CloseOne(ClientInfo* ci) { + std::lock_guard lck(m_mux); + auto client = m_clientList.begin(); + while (client != m_clientList.end()) { + if (*client == ci) { + (*client)->m_context->TryCancel(); + delete (*client); + m_clientList.erase(client); + break; + } + ++client; + } } \ No newline at end of file diff --git a/PrintS/DataManage/ClientInfo.h b/PrintS/DataManage/ClientInfo.h index f283bff..55b5c56 100644 --- a/PrintS/DataManage/ClientInfo.h +++ b/PrintS/DataManage/ClientInfo.h @@ -85,6 +85,8 @@ public: bool IsExist(ClientInfo* ci); + void CloseOne(ClientInfo* ci); + private: ClientWrapper() {} ~ClientWrapper() {} diff --git a/PrintS/DataManage/DataHandle.cpp b/PrintS/DataManage/DataHandle.cpp index 5ca7c64..838aa0f 100644 --- a/PrintS/DataManage/DataHandle.cpp +++ b/PrintS/DataManage/DataHandle.cpp @@ -32,6 +32,9 @@ void DataHandle::FuncDataCallBackProc(void* pthis,const ReadData& msg, const lis else if ((READTYPE)msg.dataType == SCANERCTRLCFG) { p->m_config->ScanerCtrlCfgReq(msg, lst, response); } + else if ((READTYPE)msg.dataType == DIRCTROYFUNC) { + p->m_controller->m_fileDialog.Request(msg,response); + } } diff --git a/PrintS/DataManage/RWData.h b/PrintS/DataManage/RWData.h index bd3c2b5..4300054 100644 --- a/PrintS/DataManage/RWData.h +++ b/PrintS/DataManage/RWData.h @@ -17,6 +17,7 @@ enum READTYPE { CAMERAPARAMUPDATE, //相机参数更新 PURIFIERFUNC, //净化器接口功能 CONFIGFUNC, //config functions + DIRCTROYFUNC, //请求目录信息 SETZEROPOS, //AxisState使用 AXISSTOPALL, //axis 运动急停 diff --git a/PrintS/DataManage/StreamServer.cpp b/PrintS/DataManage/StreamServer.cpp index c901383..009ca8c 100644 --- a/PrintS/DataManage/StreamServer.cpp +++ b/PrintS/DataManage/StreamServer.cpp @@ -3,7 +3,6 @@ StreamServer::StreamServer(Machine* p) : m_port(50010) - , m_checkQuitFlag(false) , m_dataCallBack(nullptr) , m_machine(p) , m_handlePtr(nullptr){ @@ -12,9 +11,6 @@ StreamServer::StreamServer(Machine* p) StreamServer::~StreamServer() { Stop(); - - m_checkQuitFlag = true; - if (m_checkCloseTd.joinable()) m_checkCloseTd.join(); } @@ -52,7 +48,13 @@ Status StreamServer::AllStream(ServerContext* context, grpc::ServerReaderWriter< std::thread read([this, &stream, cinfo] { RequestInfo request; - while (!cinfo->m_readQuitFlag && stream->Read(&request)) { + while (!cinfo->m_readQuitFlag) { + if (!stream->Read(&request)) { //返回false 认为是client掉线了 + printf("client %s 下线了\n", cinfo->m_clientAddr.data()); + cinfo->m_writeQuitFlag = true; + ClientWrapper::Instance()->CloseOne(cinfo); + break; + } ReadData readData; readData.dataType = (READTYPE)request.datatype(); readData.nameKey = request.namekey(); @@ -81,12 +83,12 @@ Status StreamServer::AllStream(ServerContext* context, grpc::ServerReaderWriter< printf("客户端消息:dataType:%d,nameKey:%s, strValue:%s,valueType:%d,lst:%zd\n", readData.dataType, readData.nameKey.c_str(), readData.strValue.c_str(), readData.valueType, paramLst.size()); if (m_dataCallBack) { - readData.its = paramLst; + //readData.its = paramLst; m_dataCallBack(m_handlePtr,readData, paramLst); } } - printf("read thread exit...\n") ; + //printf("read thread exit...\n") ; }); std::thread write([this, &stream, cinfo] { @@ -118,6 +120,7 @@ Status StreamServer::AllStream(ServerContext* context, grpc::ServerReaderWriter< std::this_thread::sleep_for(std::chrono::milliseconds(100)); } } + //printf("write thread exit...\n"); }); read.join(); @@ -136,21 +139,6 @@ void StreamServer::Init() { void StreamServer::Run() { Stop(); - //检测下线线程 - m_checkQuitFlag = false; - m_checkCloseTd = std::thread([this] { - while (!m_checkQuitFlag) { - ClientWrapper::Instance()->OfflineCheck(); - - int count = 10; - while (count-- && !m_checkQuitFlag) { - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - } - } - }); - - - //监听线程 m_listenTd = std::thread([this] { std::string server_address("0.0.0.0:" + std::to_string(m_port)); @@ -175,9 +163,5 @@ void StreamServer::Stop() { m_listenTd.join(); } - m_checkQuitFlag = true; - if (m_checkCloseTd.joinable()) - m_checkCloseTd.join(); - } \ No newline at end of file diff --git a/PrintS/DataManage/StreamServer.h b/PrintS/DataManage/StreamServer.h index 4228f71..0320510 100644 --- a/PrintS/DataManage/StreamServer.h +++ b/PrintS/DataManage/StreamServer.h @@ -41,8 +41,6 @@ private: ::grpc::Status Simple(::grpc::ServerContext* context, const ::stream::RequestInfo* request, ::stream::ResponseAny* response); private: - std::thread m_checkCloseTd; //检测客户端关闭线程 - bool m_checkQuitFlag; DataCallBack m_dataCallBack; FuncDataCallBack m_funcDataCallBack; diff --git a/PrintS/Machine/Machine.cpp b/PrintS/Machine/Machine.cpp index 6cc79fa..2f588bd 100644 --- a/PrintS/Machine/Machine.cpp +++ b/PrintS/Machine/Machine.cpp @@ -638,7 +638,7 @@ void Machine::ArmAxisMove(AxisConfig::ActiveDirect adr, bool isContinue, bool is //轴运动函数 void Machine::CallAxisFunc(const ReadData& msg) { - MACHINEFUNC func = (MACHINEFUNC)stoi(msg.nameKey); + MACHINEFUNC func = (MACHINEFUNC)ConverType::TryToI(msg.nameKey); switch (func) { case LOADIN: LoadIn(); diff --git a/PrintS/PrintS.vcxproj b/PrintS/PrintS.vcxproj index 493a994..8350f30 100644 --- a/PrintS/PrintS.vcxproj +++ b/PrintS/PrintS.vcxproj @@ -247,6 +247,7 @@ + @@ -481,6 +482,7 @@ + diff --git a/PrintS/PrintS.vcxproj.filters b/PrintS/PrintS.vcxproj.filters index a9d4725..de03edc 100644 --- a/PrintS/PrintS.vcxproj.filters +++ b/PrintS/PrintS.vcxproj.filters @@ -756,6 +756,9 @@ Communication + + Controller + protobuf @@ -1891,6 +1894,9 @@ Communication + + Controller + protobuf diff --git a/PrintS/output/Release/config.hbd b/PrintS/output/Release/config.hbd index a30fe96..c6f4301 100644 Binary files a/PrintS/output/Release/config.hbd and b/PrintS/output/Release/config.hbd differ diff --git a/PrintS/output/Release/log/2024.hbd b/PrintS/output/Release/log/2024.hbd index 7de615a..03029df 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 e7673c2..a79a353 100644 --- a/PrintS/protobuf/stream.pb.cc +++ b/PrintS/protobuf/stream.pb.cc @@ -36,27 +36,13 @@ PROTOBUF_CONSTEXPR ParamInfo::ParamInfo(::_pbi::ConstantInitialized) &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, - /*decltype(_impl_.cardname_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.cardip_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, /*decltype(_impl_.valuetype_)*/ 0, - /*decltype(_impl_.startlayer_)*/ 0, /*decltype(_impl_.isenable_)*/ false, /*decltype(_impl_.isalarm_)*/ false, /*decltype(_impl_.isshow_)*/ false, - /*decltype(_impl_.hadassign_)*/ false, + /*decltype(_impl_.startlayer_)*/ 0, /*decltype(_impl_.endlayer_)*/ 0, /*decltype(_impl_.powder_)*/ 0, - /*decltype(_impl_.seqno_)*/ 0, - /*decltype(_impl_.controlno_)*/ 0, - /*decltype(_impl_.serialno_)*/ 0, - /*decltype(_impl_.controltype_)*/ 0, - /*decltype(_impl_.hadmatch_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ParamInfoDefaultTypeInternal { @@ -260,12 +246,48 @@ struct ImgInfoResponceDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImgInfoResponceDefaultTypeInternal _ImgInfoResponce_default_instance_; template +PROTOBUF_CONSTEXPR ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.type_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.filepath_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.filename_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.ext_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ComResponce_FileInfoStructDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComResponce_FileInfoStructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ComResponce_FileInfoStructDefaultTypeInternal() {} + union { + ComResponce_FileInfoStruct _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComResponce_FileInfoStructDefaultTypeInternal _ComResponce_FileInfoStruct_default_instance_; + template PROTOBUF_CONSTEXPR ComResponce::ComResponce(::_pbi::ConstantInitialized) : _impl_{ + /*decltype(_impl_.fileinfo_)*/ {}, /*decltype(_impl_.data_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, + /*decltype(_impl_.directory_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ComResponceDefaultTypeInternal { @@ -551,7 +573,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[21]; +static ::_pb::Metadata file_level_metadata_stream_2eproto[22]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_stream_2eproto = nullptr; @@ -575,14 +597,6 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.startlayer_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.endlayer_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.powder_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.seqno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controlno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.serialno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controltype_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardname_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardip_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadassign_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadmatch_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _internal_metadata_), ~0u, // no _extensions_ @@ -698,6 +712,18 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.width_), PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.height_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _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::ComResponce_FileInfoStruct, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.filepath_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.filename_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.ext_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -706,6 +732,8 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.directory_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.fileinfo_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _internal_metadata_), ~0u, // no _extensions_ @@ -932,26 +960,27 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::stream::ParamInfo)}, - {26, -1, -1, sizeof(::stream::RequestInfo)}, - {40, -1, -1, sizeof(::stream::ResponseInfo)}, - {51, 60, -1, sizeof(::stream::ResponseAny)}, - {61, -1, -1, sizeof(::stream::LayerData)}, - {74, -1, -1, sizeof(::stream::LayerDataBlock)}, - {88, -1, -1, sizeof(::stream::VectorDataBlock)}, - {100, -1, -1, sizeof(::stream::ChainDataBlock)}, - {110, -1, -1, sizeof(::stream::Point)}, - {120, -1, -1, sizeof(::stream::RegResponce)}, - {129, -1, -1, sizeof(::stream::ImgInfoResponce)}, - {140, -1, -1, sizeof(::stream::ComResponce)}, - {149, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, - {158, 185, -1, sizeof(::stream::ScannerCrtlCfgData)}, - {204, -1, -1, sizeof(::stream::FixPointData)}, - {217, -1, -1, sizeof(::stream::ScanParamCfg)}, - {255, -1, -1, sizeof(::stream::CorrectParamCfg)}, - {289, -1, -1, sizeof(::stream::ScanTestCfg)}, - {319, -1, -1, sizeof(::stream::SkyWritingCfg)}, - {344, -1, -1, sizeof(::stream::PowerCompensate)}, - {357, -1, -1, sizeof(::stream::TimePowerCompensate)}, + {18, -1, -1, sizeof(::stream::RequestInfo)}, + {32, -1, -1, sizeof(::stream::ResponseInfo)}, + {43, 52, -1, sizeof(::stream::ResponseAny)}, + {53, -1, -1, sizeof(::stream::LayerData)}, + {66, -1, -1, sizeof(::stream::LayerDataBlock)}, + {80, -1, -1, sizeof(::stream::VectorDataBlock)}, + {92, -1, -1, sizeof(::stream::ChainDataBlock)}, + {102, -1, -1, sizeof(::stream::Point)}, + {112, -1, -1, sizeof(::stream::RegResponce)}, + {121, -1, -1, sizeof(::stream::ImgInfoResponce)}, + {132, -1, -1, sizeof(::stream::ComResponce_FileInfoStruct)}, + {144, -1, -1, sizeof(::stream::ComResponce)}, + {155, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, + {164, 191, -1, sizeof(::stream::ScannerCrtlCfgData)}, + {210, -1, -1, sizeof(::stream::FixPointData)}, + {223, -1, -1, sizeof(::stream::ScanParamCfg)}, + {261, -1, -1, sizeof(::stream::CorrectParamCfg)}, + {295, -1, -1, sizeof(::stream::ScanTestCfg)}, + {325, -1, -1, sizeof(::stream::SkyWritingCfg)}, + {350, -1, -1, sizeof(::stream::PowerCompensate)}, + {363, -1, -1, sizeof(::stream::TimePowerCompensate)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -966,6 +995,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::stream::_Point_default_instance_._instance, &::stream::_RegResponce_default_instance_._instance, &::stream::_ImgInfoResponce_default_instance_._instance, + &::stream::_ComResponce_FileInfoStruct_default_instance_._instance, &::stream::_ComResponce_default_instance_._instance, &::stream::_ScannerCrtlCfgResp_default_instance_._instance, &::stream::_ScannerCrtlCfgData_default_instance_._instance, @@ -979,131 +1009,131 @@ static const ::_pb::Message* const file_default_instances[] = { }; const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\014stream.proto\022\006stream\032\031google/protobuf/" - "any.proto\"\331\002\n\tParamInfo\022\017\n\007nameKey\030\001 \001(\014" + "any.proto\"\311\001\n\tParamInfo\022\017\n\007nameKey\030\001 \001(\014" "\022\020\n\010strValue\030\002 \001(\014\022\037\n\tvalueType\030\003 \001(\0162\014." "stream.TYPE\022\017\n\007context\030\004 \001(\014\022\020\n\010isEnable" "\030\005 \001(\010\022\017\n\007isAlarm\030\006 \001(\010\022\016\n\006isShow\030\007 \001(\010\022" "\022\n\nstartLayer\030\010 \001(\005\022\020\n\010endLayer\030\t \001(\005\022\016\n" - "\006powder\030\n \001(\002\022\r\n\005seqNo\030\013 \001(\005\022\021\n\tcontrolN" - "o\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013controlType" - "\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardIP\030\020 \001(\014" - "\022\021\n\thadAssign\030\021 \001(\010\022\020\n\010hadMatch\030\022 \001(\010\"\254\001" - "\n\013RequestInfo\022\020\n\010dataType\030\001 \001(\r\022\017\n\007nameK" - "ey\030\002 \001(\014\022\020\n\010strValue\030\003 \001(\014\022\037\n\tvalueType\030" - "\004 \001(\0162\014.stream.TYPE\022&\n\nhandleType\030\005 \001(\0162" - "\022.stream.DATAHANDLE\022\037\n\004item\030\006 \003(\0132\021.stre" - "am.ParamInfo\"Q\n\014ResponseInfo\022\020\n\010dataType" - "\030\001 \001(\r\022\016\n\006result\030\002 \001(\010\022\037\n\004item\030\003 \003(\0132\021.s" - "tream.ParamInfo\"1\n\013ResponseAny\022\"\n\004data\030\001" - " \001(\0132\024.google.protobuf.Any\"\210\001\n\tLayerData" - "\022\023\n\013zCooldinate\030\001 \001(\002\022\016\n\006powder\030\002 \001(\002\022\026\n" - "\016layerThickness\030\003 \001(\002\022.\n\016layerDataBlock\030" - "\004 \003(\0132\026.stream.LayerDataBlock\022\016\n\006result\030" - "\005 \001(\010\"\266\001\n\016LayerDataBlock\022\021\n\telementId\030\001 " - "\001(\005\022\026\n\016elementParamId\030\002 \001(\005\022\021\n\tblockType" - "\030\003 \001(\r\022*\n\tvecBlocks\030\004 \003(\0132\027.stream.Vecto" - "rDataBlock\022+\n\013chainBlocks\030\005 \003(\0132\026.stream" - ".ChainDataBlock\022\r\n\005order\030\006 \001(\r\"M\n\017Vector" - "DataBlock\022\016\n\006startX\030\001 \001(\002\022\016\n\006startY\030\002 \001(" - "\002\022\014\n\004endX\030\003 \001(\002\022\014\n\004endY\030\004 \001(\002\"A\n\016ChainDa" - "taBlock\022\016\n\006dotNum\030\001 \001(\r\022\037\n\010pointVec\030\002 \003(" - "\0132\r.stream.Point\"#\n\005Point\022\014\n\004xPos\030\001 \001(\002\022" - "\014\n\004yPos\030\002 \001(\002\"\033\n\013RegResponce\022\014\n\004data\030\001 \001" - "(\005\"D\n\017ImgInfoResponce\022\022\n\nlevelImage\030\001 \001(" - "\r\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\"\033\n\013ComR" - "esponce\022\014\n\004data\030\001 \001(\014\"D\n\022ScannerCrtlCfgR" - "esp\022.\n\nscannerCfg\030\001 \003(\0132\032.stream.Scanner" - "CrtlCfgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005se" - "qNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.stream" - ".FixPointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.st" - "ream.ScanParamCfg\022,\n\016hatchingParams\030\004 \001(" - "\0132\024.stream.ScanParamCfg\022*\n\014borderParams\030" - "\005 \001(\0132\024.stream.ScanParamCfg\022+\n\rsupportPa" - "rams\030\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017corr" - "ectParamCfg\030\007 \001(\0132\027.stream.CorrectParamC" - "fg\022(\n\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTes" - "tCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025.stream.Sky" - "WritingCfg\0220\n\017powerCompensate\030\n \003(\0132\027.st" - "ream.PowerCompensate\0225\n\020tPowerCompensate" - "\030\013 \003(\0132\033.stream.TimePowerCompensate\022\021\n\tc" - "ontrolNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013cont" - "rolType\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardI" - "P\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\014Sc" - "anParamCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLev" - "elMin\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tjum" - "pDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014ju" - "mpDelayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014s" - "canDelayMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r\022" - "\024\n\014polygonDelay\030\n \001(\r\022\027\n\017polygonDelayMin" - "\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlaser" - "offDelay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(\003" - "\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDel" - "ay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017las" - "eronDelayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(\r" - "\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDela" - "yMax\030\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022j" - "umpLengthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLim" - "itMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpSp" - "eedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tma" - "rkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014m" - "arkSpeedMax\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\ts" - "canAngle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n\014" - "scanAngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n\013" - "fixAngleMin\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\013xc" - "orrectMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n\013" - "ycorrectMin\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\014defocusRat" - "io\030\030 \001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017def" - "ocusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\nde" - "bugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014sha" - "peSizeMin\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\007defocu" - "s\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\031autoH" - "eatingScannerMinutes\030\020 \001(\r\022\036\n\026autoHeatin" - "gScannerSize\030\021 \001(\r\022\037\n\027autoHeatingScanner" - "Speed\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_e" - "nd_x\030\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n\r" - "SkyWritingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007timel" - "ag\030\002 \001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelagM" - "ax\030\004 \001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laserO" - "nShiftMin\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\010npr" - "evMax\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\006" - "limite\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimit" - "eMax\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\tva" - "lue_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023Time" - "PowerCompensate\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\005i" - "UINT\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\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n\003" - "ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.st" - "ream.RequestInfo\032\023.stream.ResponseAny\"\000\022" - "=\n\014ServerStream\022\023.stream.RequestInfo\032\024.s" - "tream.ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023" - ".stream.RequestInfo\032\024.stream.ResponseInf" - "o\"\000(\001\022<\n\tAllStream\022\023.stream.RequestInfo\032" - "\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.e" - "xamples.streamB\013StreamProtoP\001\242\002\002STb\006prot" - "o3" + "\006powder\030\n \001(\002\"\254\001\n\013RequestInfo\022\020\n\010dataTyp" + "e\030\001 \001(\r\022\017\n\007nameKey\030\002 \001(\014\022\020\n\010strValue\030\003 \001" + "(\014\022\037\n\tvalueType\030\004 \001(\0162\014.stream.TYPE\022&\n\nh" + "andleType\030\005 \001(\0162\022.stream.DATAHANDLE\022\037\n\004i" + "tem\030\006 \003(\0132\021.stream.ParamInfo\"Q\n\014Response" + "Info\022\020\n\010dataType\030\001 \001(\r\022\016\n\006result\030\002 \001(\010\022\037" + "\n\004item\030\003 \003(\0132\021.stream.ParamInfo\"1\n\013Respo" + "nseAny\022\"\n\004data\030\001 \001(\0132\024.google.protobuf.A" + "ny\"\210\001\n\tLayerData\022\023\n\013zCooldinate\030\001 \001(\002\022\016\n" + "\006powder\030\002 \001(\002\022\026\n\016layerThickness\030\003 \001(\002\022.\n" + "\016layerDataBlock\030\004 \003(\0132\026.stream.LayerData" + "Block\022\016\n\006result\030\005 \001(\010\"\266\001\n\016LayerDataBlock" + "\022\021\n\telementId\030\001 \001(\005\022\026\n\016elementParamId\030\002 " + "\001(\005\022\021\n\tblockType\030\003 \001(\r\022*\n\tvecBlocks\030\004 \003(" + "\0132\027.stream.VectorDataBlock\022+\n\013chainBlock" + "s\030\005 \003(\0132\026.stream.ChainDataBlock\022\r\n\005order" + "\030\006 \001(\r\"M\n\017VectorDataBlock\022\016\n\006startX\030\001 \001(" + "\002\022\016\n\006startY\030\002 \001(\002\022\014\n\004endX\030\003 \001(\002\022\014\n\004endY\030" + "\004 \001(\002\"A\n\016ChainDataBlock\022\016\n\006dotNum\030\001 \001(\r\022" + "\037\n\010pointVec\030\002 \003(\0132\r.stream.Point\"#\n\005Poin" + "t\022\014\n\004xPos\030\001 \001(\002\022\014\n\004yPos\030\002 \001(\002\"\033\n\013RegResp" + "once\022\014\n\004data\030\001 \001(\005\"D\n\017ImgInfoResponce\022\022\n" + "\nlevelImage\030\001 \001(\r\022\r\n\005width\030\002 \001(\005\022\016\n\006heig" + "ht\030\003 \001(\005\"\265\001\n\013ComResponce\022\014\n\004data\030\001 \001(\014\022\021" + "\n\tdirectory\030\002 \001(\014\0224\n\010fileInfo\030\003 \003(\0132\".st" + "ream.ComResponce.FileInfoStruct\032O\n\016FileI" + "nfoStruct\022\014\n\004type\030\001 \001(\014\022\020\n\010filePath\030\002 \001(" + "\014\022\020\n\010fileName\030\003 \001(\014\022\013\n\003ext\030\004 \001(\014\"D\n\022Scan" + "nerCrtlCfgResp\022.\n\nscannerCfg\030\001 \003(\0132\032.str" + "eam.ScannerCrtlCfgData\"\210\005\n\022ScannerCrtlCf" + "gData\022\r\n\005seqNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003" + "(\0132\024.stream.FixPointData\022*\n\014scanParamCfg" + "\030\003 \001(\0132\024.stream.ScanParamCfg\022,\n\016hatching" + "Params\030\004 \001(\0132\024.stream.ScanParamCfg\022*\n\014bo" + "rderParams\030\005 \001(\0132\024.stream.ScanParamCfg\022+" + "\n\rsupportParams\030\006 \001(\0132\024.stream.ScanParam" + "Cfg\0220\n\017correctParamCfg\030\007 \001(\0132\027.stream.Co" + "rrectParamCfg\022(\n\013scanTestCfg\030\010 \001(\0132\023.str" + "eam.ScanTestCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025" + ".stream.SkyWritingCfg\0220\n\017powerCompensate" + "\030\n \003(\0132\027.stream.PowerCompensate\0225\n\020tPowe" + "rCompensate\030\013 \003(\0132\033.stream.TimePowerComp" + "ensate\022\021\n\tcontrolNo\030\014 \001(\005\022\020\n\010serialNo\030\r " + "\001(\005\022\023\n\013controlType\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\t" + "hadAssign\030\022 \001(\010\022\020\n\010hadMatch\030\023 \001(\010\"Y\n\014Fix" + "PointData\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006po" + "intX\030\003 \001(\002\022\016\n\006pointY\030\004 \001(\002\022\020\n\010duration\030\005" + " \001(\r\"\275\005\n\014ScanParamCfg\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\tjumpDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030" + "\005 \001(\r\022\024\n\014jumpDelayMax\030\006 \001(\r\022\021\n\tscanDelay" + "\030\007 \001(\r\022\024\n\014scanDelayMin\030\010 \001(\r\022\024\n\014scanDela" + "yMax\030\t \001(\r\022\024\n\014polygonDelay\030\n \001(\r\022\027\n\017poly" + "gonDelayMin\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001" + "(\r\022\025\n\rlaseroffDelay\030\r \001(\003\022\030\n\020laseroffDel" + "ayMin\030\016 \001(\003\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n" + "\014laseronDelay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021" + " \001(\003\022\027\n\017laseronDelayMax\030\022 \001(\003\022\024\n\014minJump" + "Delay\030\023 \001(\r\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017" + "minJumpDelayMax\030\025 \001(\r\022\027\n\017jumpLengthLimit" + "\030\026 \001(\r\022\032\n\022jumpLengthLimitMin\030\027 \001(\r\022\032\n\022ju" + "mpLengthLimitMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(" + "\001\022\024\n\014jumpSpeedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030" + "\033 \001(\001\022\021\n\tmarkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin" + "\030\035 \001(\001\022\024\n\014markSpeedMax\030\036 \001(\001\"\256\004\n\017Correct" + "ParamCfg\022\023\n\013xmeasureMin\030\001 \001(\001\022\023\n\013xmeasur" + "eMax\030\002 \001(\001\022\023\n\013ymeasureMin\030\003 \001(\001\022\023\n\013ymeas" + "ureMax\030\004 \001(\001\022\017\n\007xposfix\030\005 \001(\001\022\017\n\007yposfix" + "\030\006 \001(\001\022\021\n\tscanAngle\030\007 \001(\001\022\024\n\014scanAngleMi" + "n\030\010 \001(\001\022\024\n\014scanAngleMax\030\t \001(\001\022\020\n\010fixAngl" + "e\030\n \001(\001\022\023\n\013fixAngleMin\030\013 \001(\001\022\023\n\013fixAngle" + "Max\030\014 \001(\001\022\020\n\010xcorrect\030\r \001(\001\022\020\n\010ycorrect\030" + "\016 \001(\001\022\023\n\013xcorrectMin\030\017 \001(\001\022\023\n\013xcorrectMa" + "x\030\020 \001(\001\022\023\n\013ycorrectMin\030\021 \001(\001\022\023\n\013ycorrect" + "Max\030\022 \001(\001\022\023\n\013realXOffset\030\023 \001(\001\022\023\n\013realYO" + "ffset\030\024 \001(\001\022\017\n\007factorK\030\025 \001(\001\022\027\n\017isCorrec" + "tFile3D\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\017defocusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTe" + "stCfg\022\022\n\ndebugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002" + " \001(\005\022\024\n\014shapeSizeMin\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\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_di" + "stance\030\016 \001(\001\022\034\n\024isAutoHeatingScanner\030\017 \001" + "(\010\022!\n\031autoHeatingScannerMinutes\030\020 \001(\r\022\036\n" + "\026autoHeatingScannerSize\030\021 \001(\r\022\037\n\027autoHea" + "tingScannerSpeed\030\022 \001(\001\022\031\n\021mark_test_star" + "t_x\030\023 \001(\001\022\031\n\021mark_test_start_y\030\024 \001(\001\022\027\n\017" + "mark_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\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\017laserOnShiftMin\030\006 \001(\003\022\027\n\017laserOnShi" + "ftMax\030\007 \001(\003\022\r\n\005nprev\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\004mod" + "e\030\016 \001(\005\022\016\n\006limite\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_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 " + "\001(\002\"j\n\023TimePowerCompensate\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\tendM" + "inute\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\004" + "iINT\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\007" + "iDOUBLE\020\n\022\n\n\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006U" + "PDATE\020\000\022\007\n\003ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006" + "Simple\022\023.stream.RequestInfo\032\023.stream.Res" + "ponseAny\"\000\022=\n\014ServerStream\022\023.stream.Requ" + "estInfo\032\024.stream.ResponseInfo\"\0000\001\022=\n\014Cli" + "entStream\022\023.stream.RequestInfo\032\024.stream." + "ResponseInfo\"\000(\001\022<\n\tAllStream\022\023.stream.R" + "equestInfo\032\024.stream.ResponseInfo\"\000(\0010\001B-" + "\n\027io.grpc.examples.streamB\013StreamProtoP\001" + "\242\002\002STb\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_stream_2eproto_deps[1] = { @@ -1113,13 +1143,13 @@ static ::absl::once_flag descriptor_table_stream_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = { false, false, - 5002, + 5013, descriptor_table_protodef_stream_2eproto, "stream.proto", &descriptor_table_stream_2eproto_once, descriptor_table_stream_2eproto_deps, 1, - 21, + 22, schemas, file_default_instances, TableStruct_stream_2eproto::offsets, @@ -1201,21 +1231,13 @@ ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() { decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.context_){}, - decltype(_impl_.cardname_){}, - decltype(_impl_.cardip_){}, decltype(_impl_.valuetype_){}, - decltype(_impl_.startlayer_){}, decltype(_impl_.isenable_){}, decltype(_impl_.isalarm_){}, decltype(_impl_.isshow_){}, - decltype(_impl_.hadassign_){}, + decltype(_impl_.startlayer_){}, decltype(_impl_.endlayer_){}, decltype(_impl_.powder_){}, - decltype(_impl_.seqno_){}, - decltype(_impl_.controlno_){}, - decltype(_impl_.serialno_){}, - decltype(_impl_.controltype_){}, - decltype(_impl_.hadmatch_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1241,23 +1263,9 @@ ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() { if (!from._internal_context().empty()) { _this->_impl_.context_.Set(from._internal_context(), _this->GetArenaForAllocation()); } - _impl_.cardname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_cardname().empty()) { - _this->_impl_.cardname_.Set(from._internal_cardname(), _this->GetArenaForAllocation()); - } - _impl_.cardip_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_cardip().empty()) { - _this->_impl_.cardip_.Set(from._internal_cardip(), _this->GetArenaForAllocation()); - } ::memcpy(&_impl_.valuetype_, &from._impl_.valuetype_, - static_cast<::size_t>(reinterpret_cast(&_impl_.hadmatch_) - - reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_)); + static_cast<::size_t>(reinterpret_cast(&_impl_.powder_) - + reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.powder_)); // @@protoc_insertion_point(copy_constructor:stream.ParamInfo) } @@ -1267,21 +1275,13 @@ inline void ParamInfo::SharedCtor(::_pb::Arena* arena) { decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.context_){}, - decltype(_impl_.cardname_){}, - decltype(_impl_.cardip_){}, decltype(_impl_.valuetype_){0}, - decltype(_impl_.startlayer_){0}, decltype(_impl_.isenable_){false}, decltype(_impl_.isalarm_){false}, decltype(_impl_.isshow_){false}, - decltype(_impl_.hadassign_){false}, + decltype(_impl_.startlayer_){0}, decltype(_impl_.endlayer_){0}, decltype(_impl_.powder_){0}, - decltype(_impl_.seqno_){0}, - decltype(_impl_.controlno_){0}, - decltype(_impl_.serialno_){0}, - decltype(_impl_.controltype_){0}, - decltype(_impl_.hadmatch_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.namekey_.InitDefault(); @@ -1296,14 +1296,6 @@ inline void ParamInfo::SharedCtor(::_pb::Arena* arena) { #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.context_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ParamInfo::~ParamInfo() { // @@protoc_insertion_point(destructor:stream.ParamInfo) @@ -1315,8 +1307,6 @@ inline void ParamInfo::SharedDtor() { _impl_.namekey_.Destroy(); _impl_.strvalue_.Destroy(); _impl_.context_.Destroy(); - _impl_.cardname_.Destroy(); - _impl_.cardip_.Destroy(); } void ParamInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); @@ -1331,11 +1321,9 @@ PROTOBUF_NOINLINE void ParamInfo::Clear() { _impl_.namekey_.ClearToEmpty(); _impl_.strvalue_.ClearToEmpty(); _impl_.context_.ClearToEmpty(); - _impl_.cardname_.ClearToEmpty(); - _impl_.cardip_.ClearToEmpty(); ::memset(&_impl_.valuetype_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.hadmatch_) - - reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_)); + reinterpret_cast(&_impl_.powder_) - + reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.powder_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -1347,15 +1335,15 @@ const char* ParamInfo::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { +const ::_pbi::TcParseTable<4, 10, 0, 0, 2> ParamInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 18, 248, // max_field_number, fast_idx_mask + 10, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294705152, // skipmap + 4294966272, // skipmap offsetof(decltype(_table_), field_entries), - 18, // num_field_entries + 10, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_ParamInfo_default_instance_._instance, @@ -1392,38 +1380,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { // float powder = 10; {::_pbi::TcParser::FastF32S1, {85, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_)}}, - // int32 seqNo = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.seqno_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_)}}, - // int32 controlNo = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controlno_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_)}}, - // int32 serialNo = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.serialno_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_)}}, - // int32 controlType = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controltype_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_)}}, - // bytes cardName = 15; - {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_)}}, - // bytes cardIP = 16; - {::_pbi::TcParser::FastBS2, - {386, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_)}}, - // bool hadAssign = 17; - {::_pbi::TcParser::FastV8S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_)}}, - // bool hadMatch = 18; - {::_pbi::TcParser::FastV8S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -1462,30 +1418,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { // float powder = 10; {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // int32 seqNo = 11; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 controlNo = 12; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 serialNo = 13; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 controlType = 14; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // bytes cardName = 15; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes cardIP = 16; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool hadAssign = 17; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool hadMatch = 18; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -1571,60 +1503,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { 10, this->_internal_powder(), target); } - // int32 seqNo = 11; - if (this->_internal_seqno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this->_internal_seqno(), target); - } - - // int32 controlNo = 12; - if (this->_internal_controlno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<12>( - stream, this->_internal_controlno(), target); - } - - // int32 serialNo = 13; - if (this->_internal_serialno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<13>( - stream, this->_internal_serialno(), target); - } - - // int32 controlType = 14; - if (this->_internal_controltype() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<14>( - stream, this->_internal_controltype(), target); - } - - // bytes cardName = 15; - if (!this->_internal_cardname().empty()) { - const std::string& _s = this->_internal_cardname(); - target = stream->WriteBytesMaybeAliased(15, _s, target); - } - - // bytes cardIP = 16; - if (!this->_internal_cardip().empty()) { - const std::string& _s = this->_internal_cardip(); - target = stream->WriteBytesMaybeAliased(16, _s, target); - } - - // bool hadAssign = 17; - if (this->_internal_hadassign() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this->_internal_hadassign(), target); - } - - // bool hadMatch = 18; - if (this->_internal_hadmatch() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this->_internal_hadmatch(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -1660,30 +1538,12 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { this->_internal_context()); } - // bytes cardName = 15; - if (!this->_internal_cardname().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_cardname()); - } - - // bytes cardIP = 16; - if (!this->_internal_cardip().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_cardip()); - } - // .stream.TYPE valueType = 3; if (this->_internal_valuetype() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype()); } - // int32 startLayer = 8; - if (this->_internal_startlayer() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_startlayer()); - } - // bool isEnable = 5; if (this->_internal_isenable() != 0) { total_size += 2; @@ -1699,9 +1559,10 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { total_size += 2; } - // bool hadAssign = 17; - if (this->_internal_hadassign() != 0) { - total_size += 3; + // int32 startLayer = 8; + if (this->_internal_startlayer() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_startlayer()); } // int32 endLayer = 9; @@ -1720,35 +1581,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { total_size += 5; } - // int32 seqNo = 11; - if (this->_internal_seqno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_seqno()); - } - - // int32 controlNo = 12; - if (this->_internal_controlno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_controlno()); - } - - // int32 serialNo = 13; - if (this->_internal_serialno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_serialno()); - } - - // int32 controlType = 14; - if (this->_internal_controltype() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_controltype()); - } - - // bool hadMatch = 18; - if (this->_internal_hadmatch() != 0) { - total_size += 3; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -1776,18 +1608,9 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (!from._internal_context().empty()) { _this->_internal_set_context(from._internal_context()); } - if (!from._internal_cardname().empty()) { - _this->_internal_set_cardname(from._internal_cardname()); - } - if (!from._internal_cardip().empty()) { - _this->_internal_set_cardip(from._internal_cardip()); - } if (from._internal_valuetype() != 0) { _this->_internal_set_valuetype(from._internal_valuetype()); } - if (from._internal_startlayer() != 0) { - _this->_internal_set_startlayer(from._internal_startlayer()); - } if (from._internal_isenable() != 0) { _this->_internal_set_isenable(from._internal_isenable()); } @@ -1797,8 +1620,8 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (from._internal_isshow() != 0) { _this->_internal_set_isshow(from._internal_isshow()); } - if (from._internal_hadassign() != 0) { - _this->_internal_set_hadassign(from._internal_hadassign()); + if (from._internal_startlayer() != 0) { + _this->_internal_set_startlayer(from._internal_startlayer()); } if (from._internal_endlayer() != 0) { _this->_internal_set_endlayer(from._internal_endlayer()); @@ -1811,21 +1634,6 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (raw_powder != 0) { _this->_internal_set_powder(from._internal_powder()); } - if (from._internal_seqno() != 0) { - _this->_internal_set_seqno(from._internal_seqno()); - } - if (from._internal_controlno() != 0) { - _this->_internal_set_controlno(from._internal_controlno()); - } - if (from._internal_serialno() != 0) { - _this->_internal_set_serialno(from._internal_serialno()); - } - if (from._internal_controltype() != 0) { - _this->_internal_set_controltype(from._internal_controltype()); - } - if (from._internal_hadmatch() != 0) { - _this->_internal_set_hadmatch(from._internal_hadmatch()); - } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1851,13 +1659,9 @@ void ParamInfo::InternalSwap(ParamInfo* other) { &other->_impl_.strvalue_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.context_, lhs_arena, &other->_impl_.context_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardname_, lhs_arena, - &other->_impl_.cardname_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardip_, lhs_arena, - &other->_impl_.cardip_, rhs_arena); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_) - + sizeof(ParamInfo::_impl_.hadmatch_) + PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_) + + sizeof(ParamInfo::_impl_.powder_) - PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_)>( reinterpret_cast(&_impl_.valuetype_), reinterpret_cast(&other->_impl_.valuetype_)); @@ -4380,6 +4184,306 @@ void ImgInfoResponce::InternalSwap(ImgInfoResponce* other) { } // =================================================================== +class ComResponce_FileInfoStruct::_Internal { + public: +}; + +ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:stream.ComResponce.FileInfoStruct) +} +ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(const ComResponce_FileInfoStruct& from) : ::google::protobuf::Message() { + ComResponce_FileInfoStruct* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, + decltype(_impl_.filepath_){}, + decltype(_impl_.filename_){}, + decltype(_impl_.ext_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), _this->GetArenaForAllocation()); + } + _impl_.filepath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_filepath().empty()) { + _this->_impl_.filepath_.Set(from._internal_filepath(), _this->GetArenaForAllocation()); + } + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_filename().empty()) { + _this->_impl_.filename_.Set(from._internal_filename(), _this->GetArenaForAllocation()); + } + _impl_.ext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_ext().empty()) { + _this->_impl_.ext_.Set(from._internal_ext(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:stream.ComResponce.FileInfoStruct) +} +inline void ComResponce_FileInfoStruct::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, + decltype(_impl_.filepath_){}, + decltype(_impl_.filename_){}, + decltype(_impl_.ext_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ComResponce_FileInfoStruct::~ComResponce_FileInfoStruct() { + // @@protoc_insertion_point(destructor:stream.ComResponce.FileInfoStruct) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ComResponce_FileInfoStruct::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); + _impl_.filepath_.Destroy(); + _impl_.filename_.Destroy(); + _impl_.ext_.Destroy(); +} +void ComResponce_FileInfoStruct::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ComResponce_FileInfoStruct::Clear() { +// @@protoc_insertion_point(message_clear_start:stream.ComResponce.FileInfoStruct) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.filepath_.ClearToEmpty(); + _impl_.filename_.ClearToEmpty(); + _impl_.ext_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ComResponce_FileInfoStruct::_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<2, 4, 0, 0, 2> ComResponce_FileInfoStruct::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ComResponce_FileInfoStruct_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // bytes ext = 4; + {::_pbi::TcParser::FastBS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.ext_)}}, + // bytes type = 1; + {::_pbi::TcParser::FastBS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.type_)}}, + // bytes filePath = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filepath_)}}, + // bytes fileName = 3; + {::_pbi::TcParser::FastBS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filename_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes type = 1; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes filePath = 2; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filepath_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes fileName = 3; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filename_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes ext = 4; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.ext_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; + +::uint8_t* ComResponce_FileInfoStruct::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:stream.ComResponce.FileInfoStruct) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes type = 1; + if (!this->_internal_type().empty()) { + const std::string& _s = this->_internal_type(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // bytes filePath = 2; + if (!this->_internal_filepath().empty()) { + const std::string& _s = this->_internal_filepath(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // bytes fileName = 3; + if (!this->_internal_filename().empty()) { + const std::string& _s = this->_internal_filename(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // bytes ext = 4; + if (!this->_internal_ext().empty()) { + const std::string& _s = this->_internal_ext(); + target = stream->WriteBytesMaybeAliased(4, _s, 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.ComResponce.FileInfoStruct) + return target; +} + +::size_t ComResponce_FileInfoStruct::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:stream.ComResponce.FileInfoStruct) + ::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 type = 1; + if (!this->_internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_type()); + } + + // bytes filePath = 2; + if (!this->_internal_filepath().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_filepath()); + } + + // bytes fileName = 3; + if (!this->_internal_filename().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_filename()); + } + + // bytes ext = 4; + if (!this->_internal_ext().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_ext()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ComResponce_FileInfoStruct::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ComResponce_FileInfoStruct::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ComResponce_FileInfoStruct::GetClassData() const { return &_class_data_; } + + +void ComResponce_FileInfoStruct::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.ComResponce.FileInfoStruct) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_filepath().empty()) { + _this->_internal_set_filepath(from._internal_filepath()); + } + if (!from._internal_filename().empty()) { + _this->_internal_set_filename(from._internal_filename()); + } + if (!from._internal_ext().empty()) { + _this->_internal_set_ext(from._internal_ext()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ComResponce_FileInfoStruct::CopyFrom(const ComResponce_FileInfoStruct& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:stream.ComResponce.FileInfoStruct) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ComResponce_FileInfoStruct::IsInitialized() const { + return true; +} + +void ComResponce_FileInfoStruct::InternalSwap(ComResponce_FileInfoStruct* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filepath_, lhs_arena, + &other->_impl_.filepath_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, lhs_arena, + &other->_impl_.filename_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ext_, lhs_arena, + &other->_impl_.ext_, rhs_arena); +} + +::google::protobuf::Metadata ComResponce_FileInfoStruct::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, + file_level_metadata_stream_2eproto[11]); +} +// =================================================================== + class ComResponce::_Internal { public: }; @@ -4393,7 +4497,9 @@ ComResponce::ComResponce(const ComResponce& from) : ::google::protobuf::Message( ComResponce* const _this = this; (void)_this; new (&_impl_) Impl_{ + decltype(_impl_.fileinfo_){from._impl_.fileinfo_}, decltype(_impl_.data_){}, + decltype(_impl_.directory_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -4405,19 +4511,32 @@ ComResponce::ComResponce(const ComResponce& from) : ::google::protobuf::Message( if (!from._internal_data().empty()) { _this->_impl_.data_.Set(from._internal_data(), _this->GetArenaForAllocation()); } + _impl_.directory_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_directory().empty()) { + _this->_impl_.directory_.Set(from._internal_directory(), _this->GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:stream.ComResponce) } inline void ComResponce::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ + decltype(_impl_.fileinfo_){arena}, decltype(_impl_.data_){}, + decltype(_impl_.directory_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.data_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.data_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ComResponce::~ComResponce() { // @@protoc_insertion_point(destructor:stream.ComResponce) @@ -4426,7 +4545,9 @@ ComResponce::~ComResponce() { } inline void ComResponce::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fileinfo_.~RepeatedPtrField(); _impl_.data_.Destroy(); + _impl_.directory_.Destroy(); } void ComResponce::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); @@ -4438,7 +4559,9 @@ PROTOBUF_NOINLINE void ComResponce::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _internal_mutable_fileinfo()->Clear(); _impl_.data_.ClearToEmpty(); + _impl_.directory_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -4450,32 +4573,45 @@ const char* ComResponce::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> ComResponce::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), &_ComResponce_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ + {::_pbi::TcParser::MiniParse, {}}, // bytes data = 1; {::_pbi::TcParser::FastBS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_)}}, + // bytes directory = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.directory_)}}, + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.fileinfo_)}}, }}, {{ 65535, 65535 }}, {{ // bytes data = 1; {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ + // bytes directory = 2; + {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.directory_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.fileinfo_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::stream::ComResponce_FileInfoStruct>()}, + }}, {{ }}, }; @@ -4492,6 +4628,20 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { target = stream->WriteBytesMaybeAliased(1, _s, target); } + // bytes directory = 2; + if (!this->_internal_directory().empty()) { + const std::string& _s = this->_internal_directory(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + for (unsigned i = 0, + n = static_cast(this->_internal_fileinfo_size()); i < n; i++) { + const auto& repfield = this->_internal_fileinfo().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -4509,12 +4659,24 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + total_size += 1UL * this->_internal_fileinfo_size(); + for (const auto& msg : this->_internal_fileinfo()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } // bytes data = 1; if (!this->_internal_data().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_data()); } + // bytes directory = 2; + if (!this->_internal_directory().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_directory()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -4533,9 +4695,13 @@ void ComResponce::MergeImpl(::google::protobuf::Message& to_msg, const ::google: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_fileinfo()->MergeFrom(from._internal_fileinfo()); if (!from._internal_data().empty()) { _this->_internal_set_data(from._internal_data()); } + if (!from._internal_directory().empty()) { + _this->_internal_set_directory(from._internal_directory()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4555,14 +4721,17 @@ void ComResponce::InternalSwap(ComResponce* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fileinfo_.InternalSwap(&other->_impl_.fileinfo_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, lhs_arena, &other->_impl_.data_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, lhs_arena, + &other->_impl_.directory_, rhs_arena); } ::google::protobuf::Metadata ComResponce::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[11]); + file_level_metadata_stream_2eproto[12]); } // =================================================================== @@ -4734,7 +4903,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[12]); + file_level_metadata_stream_2eproto[13]); } // =================================================================== @@ -5539,7 +5708,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[13]); + file_level_metadata_stream_2eproto[14]); } // =================================================================== @@ -5835,7 +6004,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[14]); + file_level_metadata_stream_2eproto[15]); } // =================================================================== @@ -6761,7 +6930,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[15]); + file_level_metadata_stream_2eproto[16]); } // =================================================================== @@ -7849,7 +8018,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[16]); + file_level_metadata_stream_2eproto[17]); } // =================================================================== @@ -8667,7 +8836,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[17]); + file_level_metadata_stream_2eproto[18]); } // =================================================================== @@ -9306,7 +9475,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[18]); + file_level_metadata_stream_2eproto[19]); } // =================================================================== @@ -9616,7 +9785,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[19]); + file_level_metadata_stream_2eproto[20]); } // =================================================================== @@ -9898,7 +10067,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[20]); + file_level_metadata_stream_2eproto[21]); } // @@protoc_insertion_point(namespace_scope) } // namespace stream diff --git a/PrintS/protobuf/stream.pb.h b/PrintS/protobuf/stream.pb.h index f1a7c96..e6b40c2 100644 --- a/PrintS/protobuf/stream.pb.h +++ b/PrintS/protobuf/stream.pb.h @@ -62,6 +62,9 @@ extern ChainDataBlockDefaultTypeInternal _ChainDataBlock_default_instance_; class ComResponce; struct ComResponceDefaultTypeInternal; extern ComResponceDefaultTypeInternal _ComResponce_default_instance_; +class ComResponce_FileInfoStruct; +struct ComResponce_FileInfoStructDefaultTypeInternal; +extern ComResponce_FileInfoStructDefaultTypeInternal _ComResponce_FileInfoStruct_default_instance_; class CorrectParamCfg; struct CorrectParamCfgDefaultTypeInternal; extern CorrectParamCfgDefaultTypeInternal _CorrectParamCfg_default_instance_; @@ -338,21 +341,13 @@ class ParamInfo final : kNameKeyFieldNumber = 1, kStrValueFieldNumber = 2, kContextFieldNumber = 4, - kCardNameFieldNumber = 15, - kCardIPFieldNumber = 16, kValueTypeFieldNumber = 3, - kStartLayerFieldNumber = 8, kIsEnableFieldNumber = 5, kIsAlarmFieldNumber = 6, kIsShowFieldNumber = 7, - kHadAssignFieldNumber = 17, + kStartLayerFieldNumber = 8, kEndLayerFieldNumber = 9, kPowderFieldNumber = 10, - kSeqNoFieldNumber = 11, - kControlNoFieldNumber = 12, - kSerialNoFieldNumber = 13, - kControlTypeFieldNumber = 14, - kHadMatchFieldNumber = 18, }; // bytes nameKey = 1; void clear_namekey() ; @@ -401,38 +396,6 @@ class ParamInfo final : const std::string& value); std::string* _internal_mutable_context(); - public: - // bytes cardName = 15; - void clear_cardname() ; - const std::string& cardname() const; - template - void set_cardname(Arg_&& arg, Args_... args); - std::string* mutable_cardname(); - PROTOBUF_NODISCARD std::string* release_cardname(); - void set_allocated_cardname(std::string* ptr); - - private: - const std::string& _internal_cardname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cardname( - const std::string& value); - std::string* _internal_mutable_cardname(); - - public: - // bytes cardIP = 16; - void clear_cardip() ; - const std::string& cardip() const; - template - void set_cardip(Arg_&& arg, Args_... args); - std::string* mutable_cardip(); - PROTOBUF_NODISCARD std::string* release_cardip(); - void set_allocated_cardip(std::string* ptr); - - private: - const std::string& _internal_cardip() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cardip( - const std::string& value); - std::string* _internal_mutable_cardip(); - public: // .stream.TYPE valueType = 3; void clear_valuetype() ; @@ -443,16 +406,6 @@ class ParamInfo final : ::stream::TYPE _internal_valuetype() const; void _internal_set_valuetype(::stream::TYPE value); - public: - // int32 startLayer = 8; - void clear_startlayer() ; - ::int32_t startlayer() const; - void set_startlayer(::int32_t value); - - private: - ::int32_t _internal_startlayer() const; - void _internal_set_startlayer(::int32_t value); - public: // bool isEnable = 5; void clear_isenable() ; @@ -484,14 +437,14 @@ class ParamInfo final : void _internal_set_isshow(bool value); public: - // bool hadAssign = 17; - void clear_hadassign() ; - bool hadassign() const; - void set_hadassign(bool value); + // int32 startLayer = 8; + void clear_startlayer() ; + ::int32_t startlayer() const; + void set_startlayer(::int32_t value); private: - bool _internal_hadassign() const; - void _internal_set_hadassign(bool value); + ::int32_t _internal_startlayer() const; + void _internal_set_startlayer(::int32_t value); public: // int32 endLayer = 9; @@ -513,63 +466,13 @@ class ParamInfo final : float _internal_powder() const; void _internal_set_powder(float value); - public: - // int32 seqNo = 11; - void clear_seqno() ; - ::int32_t seqno() const; - void set_seqno(::int32_t value); - - private: - ::int32_t _internal_seqno() const; - void _internal_set_seqno(::int32_t value); - - public: - // int32 controlNo = 12; - void clear_controlno() ; - ::int32_t controlno() const; - void set_controlno(::int32_t value); - - private: - ::int32_t _internal_controlno() const; - void _internal_set_controlno(::int32_t value); - - public: - // int32 serialNo = 13; - void clear_serialno() ; - ::int32_t serialno() const; - void set_serialno(::int32_t value); - - private: - ::int32_t _internal_serialno() const; - void _internal_set_serialno(::int32_t value); - - public: - // int32 controlType = 14; - void clear_controltype() ; - ::int32_t controltype() const; - void set_controltype(::int32_t value); - - private: - ::int32_t _internal_controltype() const; - void _internal_set_controltype(::int32_t value); - - public: - // bool hadMatch = 18; - void clear_hadmatch() ; - bool hadmatch() const; - void set_hadmatch(bool value); - - private: - bool _internal_hadmatch() const; - void _internal_set_hadmatch(bool value); - public: // @@protoc_insertion_point(class_scope:stream.ParamInfo) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 18, 0, 0, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<4, 10, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -577,21 +480,13 @@ class ParamInfo final : ::google::protobuf::internal::ArenaStringPtr namekey_; ::google::protobuf::internal::ArenaStringPtr strvalue_; ::google::protobuf::internal::ArenaStringPtr context_; - ::google::protobuf::internal::ArenaStringPtr cardname_; - ::google::protobuf::internal::ArenaStringPtr cardip_; int valuetype_; - ::int32_t startlayer_; bool isenable_; bool isalarm_; bool isshow_; - bool hadassign_; + ::int32_t startlayer_; ::int32_t endlayer_; float powder_; - ::int32_t seqno_; - ::int32_t controlno_; - ::int32_t serialno_; - ::int32_t controltype_; - bool hadmatch_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -2521,6 +2416,224 @@ class ImgInfoResponce final : friend struct ::TableStruct_stream_2eproto; };// ------------------------------------------------------------------- +class ComResponce_FileInfoStruct final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ComResponce.FileInfoStruct) */ { + public: + inline ComResponce_FileInfoStruct() : ComResponce_FileInfoStruct(nullptr) {} + ~ComResponce_FileInfoStruct() override; + template + explicit PROTOBUF_CONSTEXPR ComResponce_FileInfoStruct(::google::protobuf::internal::ConstantInitialized); + + ComResponce_FileInfoStruct(const ComResponce_FileInfoStruct& from); + ComResponce_FileInfoStruct(ComResponce_FileInfoStruct&& from) noexcept + : ComResponce_FileInfoStruct() { + *this = ::std::move(from); + } + + inline ComResponce_FileInfoStruct& operator=(const ComResponce_FileInfoStruct& from) { + CopyFrom(from); + return *this; + } + inline ComResponce_FileInfoStruct& operator=(ComResponce_FileInfoStruct&& 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 ComResponce_FileInfoStruct& default_instance() { + return *internal_default_instance(); + } + static inline const ComResponce_FileInfoStruct* internal_default_instance() { + return reinterpret_cast( + &_ComResponce_FileInfoStruct_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ComResponce_FileInfoStruct& a, ComResponce_FileInfoStruct& b) { + a.Swap(&b); + } + inline void Swap(ComResponce_FileInfoStruct* 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(ComResponce_FileInfoStruct* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ComResponce_FileInfoStruct* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ComResponce_FileInfoStruct& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ComResponce_FileInfoStruct& from) { + ComResponce_FileInfoStruct::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(ComResponce_FileInfoStruct* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "stream.ComResponce.FileInfoStruct"; + } + protected: + explicit ComResponce_FileInfoStruct(::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 { + kTypeFieldNumber = 1, + kFilePathFieldNumber = 2, + kFileNameFieldNumber = 3, + kExtFieldNumber = 4, + }; + // bytes type = 1; + void clear_type() ; + const std::string& type() const; + template + void set_type(Arg_&& arg, Args_... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* ptr); + + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( + const std::string& value); + std::string* _internal_mutable_type(); + + public: + // bytes filePath = 2; + void clear_filepath() ; + const std::string& filepath() const; + template + void set_filepath(Arg_&& arg, Args_... args); + std::string* mutable_filepath(); + PROTOBUF_NODISCARD std::string* release_filepath(); + void set_allocated_filepath(std::string* ptr); + + private: + const std::string& _internal_filepath() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filepath( + const std::string& value); + std::string* _internal_mutable_filepath(); + + public: + // bytes fileName = 3; + void clear_filename() ; + const std::string& filename() const; + template + void set_filename(Arg_&& arg, Args_... args); + std::string* mutable_filename(); + PROTOBUF_NODISCARD std::string* release_filename(); + void set_allocated_filename(std::string* ptr); + + private: + const std::string& _internal_filename() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( + const std::string& value); + std::string* _internal_mutable_filename(); + + public: + // bytes ext = 4; + void clear_ext() ; + const std::string& ext() const; + template + void set_ext(Arg_&& arg, Args_... args); + std::string* mutable_ext(); + PROTOBUF_NODISCARD std::string* release_ext(); + void set_allocated_ext(std::string* ptr); + + private: + const std::string& _internal_ext() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ext( + const std::string& value); + std::string* _internal_mutable_ext(); + + public: + // @@protoc_insertion_point(class_scope:stream.ComResponce.FileInfoStruct) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr filepath_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr ext_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_stream_2eproto; +};// ------------------------------------------------------------------- + class ComResponce final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ComResponce) */ { public: @@ -2577,7 +2690,7 @@ class ComResponce final : &_ComResponce_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(ComResponce& a, ComResponce& b) { a.Swap(&b); @@ -2646,11 +2759,33 @@ class ComResponce final : // nested types ---------------------------------------------------- + typedef ComResponce_FileInfoStruct FileInfoStruct; + // accessors ------------------------------------------------------- enum : int { + kFileInfoFieldNumber = 3, kDataFieldNumber = 1, + kDirectoryFieldNumber = 2, }; + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + int fileinfo_size() const; + private: + int _internal_fileinfo_size() const; + + public: + void clear_fileinfo() ; + ::stream::ComResponce_FileInfoStruct* mutable_fileinfo(int index); + ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >* + mutable_fileinfo(); + private: + const ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>& _internal_fileinfo() const; + ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>* _internal_mutable_fileinfo(); + public: + const ::stream::ComResponce_FileInfoStruct& fileinfo(int index) const; + ::stream::ComResponce_FileInfoStruct* add_fileinfo(); + const ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >& + fileinfo() const; // bytes data = 1; void clear_data() ; const std::string& data() const; @@ -2666,18 +2801,36 @@ class ComResponce final : const std::string& value); std::string* _internal_mutable_data(); + public: + // bytes directory = 2; + void clear_directory() ; + const std::string& directory() const; + template + void set_directory(Arg_&& arg, Args_... args); + std::string* mutable_directory(); + PROTOBUF_NODISCARD std::string* release_directory(); + void set_allocated_directory(std::string* ptr); + + private: + const std::string& _internal_directory() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory( + const std::string& value); + std::string* _internal_mutable_directory(); + public: // @@protoc_insertion_point(class_scope:stream.ComResponce) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct > fileinfo_; ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr directory_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -2741,7 +2894,7 @@ class ScannerCrtlCfgResp final : &_ScannerCrtlCfgResp_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(ScannerCrtlCfgResp& a, ScannerCrtlCfgResp& b) { a.Swap(&b); @@ -2907,7 +3060,7 @@ class ScannerCrtlCfgData final : &_ScannerCrtlCfgData_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(ScannerCrtlCfgData& a, ScannerCrtlCfgData& b) { a.Swap(&b); @@ -3353,7 +3506,7 @@ class FixPointData final : &_FixPointData_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(FixPointData& a, FixPointData& b) { a.Swap(&b); @@ -3559,7 +3712,7 @@ class ScanParamCfg final : &_ScanParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(ScanParamCfg& a, ScanParamCfg& b) { a.Swap(&b); @@ -4065,7 +4218,7 @@ class CorrectParamCfg final : &_CorrectParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(CorrectParamCfg& a, CorrectParamCfg& b) { a.Swap(&b); @@ -4523,7 +4676,7 @@ class ScanTestCfg final : &_ScanTestCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(ScanTestCfg& a, ScanTestCfg& b) { a.Swap(&b); @@ -4933,7 +5086,7 @@ class SkyWritingCfg final : &_SkyWritingCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(SkyWritingCfg& a, SkyWritingCfg& b) { a.Swap(&b); @@ -5283,7 +5436,7 @@ class PowerCompensate final : &_PowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(PowerCompensate& a, PowerCompensate& b) { a.Swap(&b); @@ -5489,7 +5642,7 @@ class TimePowerCompensate final : &_TimePowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(TimePowerCompensate& a, TimePowerCompensate& b) { a.Swap(&b); @@ -5962,240 +6115,6 @@ inline void ParamInfo::_internal_set_powder(float value) { _impl_.powder_ = value; } -// int32 seqNo = 11; -inline void ParamInfo::clear_seqno() { - _impl_.seqno_ = 0; -} -inline ::int32_t ParamInfo::seqno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.seqNo) - return _internal_seqno(); -} -inline void ParamInfo::set_seqno(::int32_t value) { - _internal_set_seqno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.seqNo) -} -inline ::int32_t ParamInfo::_internal_seqno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.seqno_; -} -inline void ParamInfo::_internal_set_seqno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.seqno_ = value; -} - -// int32 controlNo = 12; -inline void ParamInfo::clear_controlno() { - _impl_.controlno_ = 0; -} -inline ::int32_t ParamInfo::controlno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.controlNo) - return _internal_controlno(); -} -inline void ParamInfo::set_controlno(::int32_t value) { - _internal_set_controlno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.controlNo) -} -inline ::int32_t ParamInfo::_internal_controlno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controlno_; -} -inline void ParamInfo::_internal_set_controlno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controlno_ = value; -} - -// int32 serialNo = 13; -inline void ParamInfo::clear_serialno() { - _impl_.serialno_ = 0; -} -inline ::int32_t ParamInfo::serialno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.serialNo) - return _internal_serialno(); -} -inline void ParamInfo::set_serialno(::int32_t value) { - _internal_set_serialno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.serialNo) -} -inline ::int32_t ParamInfo::_internal_serialno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.serialno_; -} -inline void ParamInfo::_internal_set_serialno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.serialno_ = value; -} - -// int32 controlType = 14; -inline void ParamInfo::clear_controltype() { - _impl_.controltype_ = 0; -} -inline ::int32_t ParamInfo::controltype() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.controlType) - return _internal_controltype(); -} -inline void ParamInfo::set_controltype(::int32_t value) { - _internal_set_controltype(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.controlType) -} -inline ::int32_t ParamInfo::_internal_controltype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controltype_; -} -inline void ParamInfo::_internal_set_controltype(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controltype_ = value; -} - -// bytes cardName = 15; -inline void ParamInfo::clear_cardname() { - _impl_.cardname_.ClearToEmpty(); -} -inline const std::string& ParamInfo::cardname() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.cardName) - return _internal_cardname(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ParamInfo::set_cardname(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardname_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:stream.ParamInfo.cardName) -} -inline std::string* ParamInfo::mutable_cardname() { - std::string* _s = _internal_mutable_cardname(); - // @@protoc_insertion_point(field_mutable:stream.ParamInfo.cardName) - return _s; -} -inline const std::string& ParamInfo::_internal_cardname() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cardname_.Get(); -} -inline void ParamInfo::_internal_set_cardname(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ParamInfo::_internal_mutable_cardname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.cardname_.Mutable( GetArenaForAllocation()); -} -inline std::string* ParamInfo::release_cardname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:stream.ParamInfo.cardName) - return _impl_.cardname_.Release(); -} -inline void ParamInfo::set_allocated_cardname(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cardname_.SetAllocated(value, GetArenaForAllocation()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cardname_.IsDefault()) { - _impl_.cardname_.Set("", GetArenaForAllocation()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:stream.ParamInfo.cardName) -} - -// bytes cardIP = 16; -inline void ParamInfo::clear_cardip() { - _impl_.cardip_.ClearToEmpty(); -} -inline const std::string& ParamInfo::cardip() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.cardIP) - return _internal_cardip(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ParamInfo::set_cardip(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardip_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:stream.ParamInfo.cardIP) -} -inline std::string* ParamInfo::mutable_cardip() { - std::string* _s = _internal_mutable_cardip(); - // @@protoc_insertion_point(field_mutable:stream.ParamInfo.cardIP) - return _s; -} -inline const std::string& ParamInfo::_internal_cardip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cardip_.Get(); -} -inline void ParamInfo::_internal_set_cardip(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardip_.Set(value, GetArenaForAllocation()); -} -inline std::string* ParamInfo::_internal_mutable_cardip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.cardip_.Mutable( GetArenaForAllocation()); -} -inline std::string* ParamInfo::release_cardip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:stream.ParamInfo.cardIP) - return _impl_.cardip_.Release(); -} -inline void ParamInfo::set_allocated_cardip(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cardip_.SetAllocated(value, GetArenaForAllocation()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cardip_.IsDefault()) { - _impl_.cardip_.Set("", GetArenaForAllocation()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:stream.ParamInfo.cardIP) -} - -// bool hadAssign = 17; -inline void ParamInfo::clear_hadassign() { - _impl_.hadassign_ = false; -} -inline bool ParamInfo::hadassign() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.hadAssign) - return _internal_hadassign(); -} -inline void ParamInfo::set_hadassign(bool value) { - _internal_set_hadassign(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.hadAssign) -} -inline bool ParamInfo::_internal_hadassign() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hadassign_; -} -inline void ParamInfo::_internal_set_hadassign(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.hadassign_ = value; -} - -// bool hadMatch = 18; -inline void ParamInfo::clear_hadmatch() { - _impl_.hadmatch_ = false; -} -inline bool ParamInfo::hadmatch() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.hadMatch) - return _internal_hadmatch(); -} -inline void ParamInfo::set_hadmatch(bool value) { - _internal_set_hadmatch(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.hadMatch) -} -inline bool ParamInfo::_internal_hadmatch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hadmatch_; -} -inline void ParamInfo::_internal_set_hadmatch(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.hadmatch_ = value; -} - // ------------------------------------------------------------------- // RequestInfo @@ -7236,6 +7155,214 @@ inline void ImgInfoResponce::_internal_set_height(::int32_t value) { // ------------------------------------------------------------------- +// ComResponce_FileInfoStruct + +// bytes type = 1; +inline void ComResponce_FileInfoStruct::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::type() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.type) +} +inline std::string* ComResponce_FileInfoStruct::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.type) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.type_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.type_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.type) + return _impl_.type_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.type) +} + +// bytes filePath = 2; +inline void ComResponce_FileInfoStruct::clear_filepath() { + _impl_.filepath_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::filepath() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.filePath) + return _internal_filepath(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_filepath(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filepath_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.filePath) +} +inline std::string* ComResponce_FileInfoStruct::mutable_filepath() { + std::string* _s = _internal_mutable_filepath(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.filePath) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_filepath() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.filepath_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_filepath(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filepath_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_filepath() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.filepath_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_filepath() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.filePath) + return _impl_.filepath_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_filepath(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.filepath_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.filepath_.IsDefault()) { + _impl_.filepath_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.filePath) +} + +// bytes fileName = 3; +inline void ComResponce_FileInfoStruct::clear_filename() { + _impl_.filename_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::filename() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.fileName) + return _internal_filename(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_filename(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filename_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.fileName) +} +inline std::string* ComResponce_FileInfoStruct::mutable_filename() { + std::string* _s = _internal_mutable_filename(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.fileName) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_filename() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.filename_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_filename(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filename_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.filename_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.fileName) + return _impl_.filename_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_filename(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.filename_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.filename_.IsDefault()) { + _impl_.filename_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.fileName) +} + +// bytes ext = 4; +inline void ComResponce_FileInfoStruct::clear_ext() { + _impl_.ext_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::ext() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.ext) + return _internal_ext(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_ext(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.ext_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.ext) +} +inline std::string* ComResponce_FileInfoStruct::mutable_ext() { + std::string* _s = _internal_mutable_ext(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.ext) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_ext() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.ext_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_ext(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.ext_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_ext() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.ext_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_ext() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.ext) + return _impl_.ext_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_ext(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ext_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.ext_.IsDefault()) { + _impl_.ext_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.ext) +} + +// ------------------------------------------------------------------- + // ComResponce // bytes data = 1; @@ -7289,6 +7416,103 @@ inline void ComResponce::set_allocated_data(std::string* value) { // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.data) } +// bytes directory = 2; +inline void ComResponce::clear_directory() { + _impl_.directory_.ClearToEmpty(); +} +inline const std::string& ComResponce::directory() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.directory) + return _internal_directory(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce::set_directory(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.directory_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.directory) +} +inline std::string* ComResponce::mutable_directory() { + std::string* _s = _internal_mutable_directory(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.directory) + return _s; +} +inline const std::string& ComResponce::_internal_directory() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.directory_.Get(); +} +inline void ComResponce::_internal_set_directory(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.directory_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce::_internal_mutable_directory() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.directory_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce::release_directory() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.directory) + return _impl_.directory_.Release(); +} +inline void ComResponce::set_allocated_directory(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.directory_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.directory_.IsDefault()) { + _impl_.directory_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.directory) +} + +// repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; +inline int ComResponce::_internal_fileinfo_size() const { + return _internal_fileinfo().size(); +} +inline int ComResponce::fileinfo_size() const { + return _internal_fileinfo_size(); +} +inline void ComResponce::clear_fileinfo() { + _internal_mutable_fileinfo()->Clear(); +} +inline ::stream::ComResponce_FileInfoStruct* ComResponce::mutable_fileinfo(int index) { + // @@protoc_insertion_point(field_mutable:stream.ComResponce.fileInfo) + return _internal_mutable_fileinfo()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >* +ComResponce::mutable_fileinfo() { + // @@protoc_insertion_point(field_mutable_list:stream.ComResponce.fileInfo) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_fileinfo(); +} +inline const ::stream::ComResponce_FileInfoStruct& ComResponce::fileinfo(int index) const { + // @@protoc_insertion_point(field_get:stream.ComResponce.fileInfo) + return _internal_fileinfo().Get(index); +} +inline ::stream::ComResponce_FileInfoStruct* ComResponce::add_fileinfo() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::stream::ComResponce_FileInfoStruct* _add = _internal_mutable_fileinfo()->Add(); + // @@protoc_insertion_point(field_add:stream.ComResponce.fileInfo) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >& +ComResponce::fileinfo() const { + // @@protoc_insertion_point(field_list:stream.ComResponce.fileInfo) + return _internal_fileinfo(); +} +inline const ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>& +ComResponce::_internal_fileinfo() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.fileinfo_; +} +inline ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>* +ComResponce::_internal_mutable_fileinfo() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.fileinfo_; +} + // ------------------------------------------------------------------- // ScannerCrtlCfgResp diff --git a/PrintS/protobuf/stream.proto b/PrintS/protobuf/stream.proto index 87ebead..f06b512 100644 --- a/PrintS/protobuf/stream.proto +++ b/PrintS/protobuf/stream.proto @@ -131,9 +131,19 @@ message ImgInfoResponce{ int32 height = 3; } -//注册功能返回信息 IOVersionStr接口返回值 +//注册功能 IOVersionStr接口 盘符文件路径接口 message ComResponce{ bytes data = 1; + bytes directory = 2; + + message FileInfoStruct + { + bytes type = 1; //类型 + bytes filePath = 2; + bytes fileName = 3; + bytes ext = 4; //后缀 + } + repeated FileInfoStruct fileInfo = 3; } //ScannerCrtlCfg结构体 diff --git a/PrintS/说明.txt b/PrintS/说明.txt index 72f10cc..f03e6d1 100644 --- a/PrintS/说明.txt +++ b/PrintS/说明.txt @@ -28,4 +28,7 @@ SendToClients 需要修改 size_t scsize = ConfigManager::GetInstance()->GetMatchScannerControlCfg()->size();为啥是0 -配置中文在本地是乱码 \ No newline at end of file +配置中文(u8)在本地是乱码 + + +ScannerControlCfg 函数后面在添加 \ No newline at end of file diff --git a/TestClient/DataManage/DataHandle.cpp b/TestClient/DataManage/DataHandle.cpp index edda213..34e5f49 100644 --- a/TestClient/DataManage/DataHandle.cpp +++ b/TestClient/DataManage/DataHandle.cpp @@ -46,6 +46,8 @@ void DataHandle::Init() { m_streamClient->SetCallBackFunc(this,&DataHandle::DataCallBackProc); m_streamClient->Init(); + m_funcTest.SetStreamClient(m_streamClient); + //stream::ResponseInfo* response = new stream::ResponseInfo(); //获取一层图层的数据 //m_streamClient->GetLayerByIndex(1, response); @@ -54,7 +56,7 @@ void DataHandle::Init() { } void DataHandle::Stop() { - m_streamClient->Stop(); + if(m_streamClient) m_streamClient->Stop(); DELP(m_streamClient); } @@ -130,15 +132,16 @@ void DataHandle::DataCallBackHandle(const ReadData& msg) { void DataHandle::Usage() { printf(COLOR_GREEN "print TestClient usage:\n" COLOR_RESET); - printf(" 0: " COLOR_YELLOW "print help information...\n" COLOR_RESET); - printf(" 1: " COLOR_YELLOW "exit program...\n" COLOR_RESET); - printf(" 2: " COLOR_YELLOW "test all...\n" COLOR_RESET); - printf(" 3: " COLOR_YELLOW "test axis move interface...\n" COLOR_RESET); - printf(" 4: " COLOR_YELLOW "test scan control interface...\n" COLOR_RESET); - printf(" 5: " COLOR_YELLOW "test registration interface...\n" COLOR_RESET); - printf(" 6: " COLOR_YELLOW "test camera interface...\n" COLOR_RESET); - printf(" 7: " COLOR_YELLOW "test purifier interface...\n" COLOR_RESET); - printf(" 8: " COLOR_YELLOW "test config interface...\n" COLOR_RESET); + printf(" h: " COLOR_YELLOW "print help information...\n" COLOR_RESET); + printf(" e: " COLOR_YELLOW "exit program...\n" COLOR_RESET); + printf(" 1: " COLOR_YELLOW "test all...\n" COLOR_RESET); + printf(" 2: " COLOR_YELLOW "test axis move interface...\n" COLOR_RESET); + printf(" 3: " COLOR_YELLOW "test scan control interface...\n" COLOR_RESET); + printf(" 4: " COLOR_YELLOW "test registration interface...\n" COLOR_RESET); + printf(" 5: " COLOR_YELLOW "test camera interface...\n" COLOR_RESET); + printf(" 6: " COLOR_YELLOW "test purifier interface...\n" COLOR_RESET); + printf(" 7: " COLOR_YELLOW "test config interface...\n" COLOR_RESET); + printf(" 8: " COLOR_YELLOW "test directory interface...\n" COLOR_RESET); printf(" 100: " COLOR_YELLOW "start test recv param interface...\n" COLOR_RESET); } @@ -208,24 +211,22 @@ int DataHandle::Request(int index) { string userInput; switch (index) { - case 0: - Usage(); break; case 1: - Stop(); break; + m_funcTest.AllTest(); break; case 2: - AllTest(); break; + m_funcTest.AxisMoveTest(); break; case 3: - AxisMoveTest(); break; + m_funcTest.ScanCtrlTest(); break; case 4: - ScanCtrlTest(); break; + m_funcTest.RegistrationTest(); break; case 5: - RegistrationTest(); break; + m_funcTest.CameraTest(); break; case 6: - CameraTest(); break; + m_funcTest.PurifierTest(); break; case 7: - PurifierTest(); break; + m_funcTest.ConfigTest(); break; case 8: - ConfigTest(); break; + m_funcTest.DirectoryTest(); break; case 100: ParamReadUsage(); while (printf("*请输入命令:") && std::getline(std::cin, userInput)) { @@ -238,8 +239,8 @@ int DataHandle::Request(int index) { else if (userInput == "h") { //打印用法 ParamReadUsage(); } - else if (userInput.find("push") != string::npos) { //更新数据到服务器 - UpdateParamToService(userInput); + else if (userInput.find("update") != string::npos) { //更新数据到服务器 + UpdateParamToServer(userInput); } else { //接收指定的参数 ReceiveParam(ConverType::TryToI(userInput)); @@ -254,15 +255,6 @@ int DataHandle::Request(int index) { return result; } -void DataHandle::AllTest() { - AxisMoveTest(); - ScanCtrlTest(); - RegistrationTest(); - CameraTest(); - PurifierTest(); - ConfigTest(); -} - void DataHandle::ReceiveParam(int index) { if (index == VERSIONRSP) { @@ -281,7 +273,7 @@ void DataHandle::ReceiveParam(int index) { index = -1; } else if (index >= PARAMLIMITCFGPARAM && index <= ELECFGPARAM) { - PushMsg(REQUEST); + PushMsg(REQUEST); } else if(index == LOADPARAMRSP){ PushMsg(LOADPARAM); @@ -360,9 +352,9 @@ void DataHandle::PrintScanerCfg(const stream::ScannerCrtlCfgResp& result) { } //选择一个参数更新到服务 -void DataHandle::UpdateParamToService(const string& input) { +void DataHandle::UpdateParamToServer(const string& input) { WriteData writeData; - int index = ConverType::TryToI(input.substr(5)); + int index = ConverType::TryToI(input.substr(7)); switch (index) { case PARAMLIMITCFGPARAM: break; @@ -431,189 +423,3 @@ void DataHandle::UpdateParamToService(const string& input) { } -//轴运动测试 -void DataHandle::AxisMoveTest() { - int count =(int)MACHINEFUNC::END0; - for (int i = 0; i < count; ++i) { - PushMsg(WRITETYPE::AXISMOVEFUNC,to_string(i)); - printf("发送请求%d成功...\n", i); - Sleep(100); - } - -} - - -//扫描控制测试 -void DataHandle::ScanCtrlTest() { - PushMsg(SCANCTRLFUNC, to_string(BEGINWORK)); printf("call BEGINWORK function...\n"); - PushMsg(SCANCTRLFUNC, to_string(PAUSEWORK)); printf("call PAUSEWORK function...\n"); - PushMsg(SCANCTRLFUNC, to_string(PAUSEAUTO)); printf("call PAUSEAUTO function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPWORK)); printf("call STOPWORK function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPREDTEST)); printf("call STOPREDTEST function...\n"); - PushMsg(SCANCTRLFUNC, to_string(TESTLAYER)); printf("call TESTLAYER function...\n"); - PushMsg(SCANCTRLFUNC, to_string(REMOVESCANNER), to_string(1), iINT); printf("call REMOVESCANNER function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STARTHEATINGMOTION)); printf("call STARTHEATINGMOTION function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPHEATINGMOTION), to_string(0), iBOOL); printf("call STOPHEATINGMOTION function...\n"); - - - PushMsg(SCANCTRLFUNC, to_string(STARTDEBUGTEST), "1", iINT); printf("call STARTDEBUGTEST function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPDEBUGTEST), "1", iINT); printf("call STOPDEBUGTEST function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STARTHEATINGSCANNERTEST), "1", iINT); printf("call STARTHEATINGSCANNERTEST function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPHEATINGSCANNERTEST), "1", iINT); printf("call STOPHEATINGSCANNERTEST function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STARTGETSCANINFO), "1", iINT); printf("call STARTGETSCANINFO function...\n"); - PushMsg(SCANCTRLFUNC, to_string(STOPGETSCANINFO), "1", iINT); printf("call STOPGETSCANINFO function...\n"); - - WriteData wd{ SCANCTRLFUNC,to_string(SETXYOFFSET) ,"1", iINT }; - wd.items.emplace_back(Item{"x", to_string(1.23f),iFLOAT}); - wd.items.emplace_back(Item{"y", to_string(2.23f),iFLOAT}); - PushMsg(wd); printf("call SETXYOFFSET function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(SETANGLE); - wd.items.emplace_back(Item{ "angle", to_string(1.2),iDOUBLE }); - PushMsg(wd); printf("call SETANGLE function...\n"); - - PushMsg(SCANCTRLFUNC, to_string(UPDATESETTING), "1", iINT); printf("call UPDATESETTING function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(UPDATESKYWRITING); - wd.items.emplace_back(Item{ "isList", to_string(true),iBOOL }); - PushMsg(wd); printf("call UPDATESKYWRITING function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(SETXYCORRECT); - wd.items.emplace_back(Item{ "x", to_string(2.3),iDOUBLE }); - wd.items.emplace_back(Item{ "y", to_string(3.4),iDOUBLE }); - PushMsg(wd); printf("call SETXYCORRECT function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(SETK); - wd.items.emplace_back(Item{ "k", to_string(2.1),iDOUBLE }); - PushMsg(wd); printf("call SETK function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(FIXPOINTDAOADD); - wd.items.emplace_back(Item{ "cno", to_string(2),iINT }); - wd.items.emplace_back(Item{ "pointX", to_string(2.1),iFLOAT }); - wd.items.emplace_back(Item{ "pointY", to_string(2.1),iFLOAT }); - wd.items.emplace_back(Item{ "duration", to_string(5),iUINT }); - PushMsg(wd); printf("call FIXPOINTDAOADD function...\n"); - - wd.items.clear(); - wd.nameKey = to_string(FIXPOINTDAODEL); - wd.items.emplace_back(Item{ "id", to_string(2),iINT }); - PushMsg(wd); printf("call FIXPOINTDAODEL function...\n"); -} - - -void DataHandle::RegistrationTest(){ - ::stream::ResponseAny resp; - stream::RegResponce result; - - WriteData wdata{ REGISTFUNC ,to_string(CHECKREG),to_string(time(nullptr)) ,iSTRING }; - m_streamClient->Request(wdata,&resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("CHECKREG resp:%d\n", result.data()); - } - Sleep(100); - - wdata.strValue = "123456789"; - wdata.nameKey = to_string(GETSN); - m_streamClient->Request(wdata, &resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("GETSN resp:%u\n", (unsigned int)result.data()); - } - Sleep(100); - - wdata.strValue = "regconfig"; - wdata.nameKey = to_string(CHECKREGKEY); - m_streamClient->Request(wdata, &resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("CHECKREGKEY resp:%d\n", result.data()); - } -} - -void DataHandle::CameraTest() { - - int count = (int)CAMERAFUNC::END2; - for (int i = 0; i < count; ++i) { - if (i == GETSHOWIMAGE || i == GETSHOWIMAGES) continue; - - if(i == SETDEMANDCATPURE) PushMsg(CAMERAFUNC, to_string(i),to_string(1),iBOOL); - else PushMsg(CAMERAFUNC, to_string(i)); - printf("发送请求%d成功...\n", i); - Sleep(100); - } - - ::stream::ResponseAny resp; - stream::ImgInfoResponce result; - WriteData wdata{ CAMERAFUNC ,to_string(GETSHOWIMAGE)}; - m_streamClient->Request(wdata, &resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("GETSHOWIMAGE resp:%u\n", result.levelimage()); - } - Sleep(100); - - resp.Clear(); - wdata.nameKey = to_string(GETSHOWIMAGES); - wdata.strValue = to_string(5); //测试值 - wdata.valueType = iINT; //测试值 - m_streamClient->Request(wdata, &resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("GETSHOWIMAGES resp levelimg:%u,height:%d,width:%d\n", result.levelimage(),result.width(),result.height()); - } - Sleep(100); - - //修改参数 - PushMsg(CAMERAPARAMUPDATE,"LastMouRefImgPosX", to_string(10),iINT); - PushMsg(CAMERAPARAMUPDATE,"LastMouRefImgPosY", to_string(100),iINT); - PushMsg(CAMERAPARAMUPDATE,"ShowFlag", to_string(1),iBOOL); - printf("CAMERAPARAMUPDATE update finish\n"); -} - - -void DataHandle::PurifierTest() { - PushMsg(PURIFIERFUNC, to_string(STARTAUTODEOXYGEN)); - printf("STARTAUTODEOXYGEN is called...\n"); - PushMsg(PURIFIERFUNC, to_string(STOPAUTODEOXYGEN)); - printf("STOPAUTODEOXYGEN is called...\n"); -} - - - -void DataHandle::ConfigTest() { - PushMsg(CONFIGFUNC, to_string(SAVECONFIG)); - printf("saveconfig is called...\n"); - PushMsg(CONFIGFUNC, to_string(SAVEMACHINECONFIG)); - printf("savemachineconfig is called...\n"); - PushMsg(CONFIGFUNC, to_string(DELETEMACHINEIO)); - printf("deletemachineio is called...\n"); - - WriteData wd{ CONFIGFUNC, to_string(CONTROLRUN) }; - wd.items.emplace_back(Item{ "enable", to_string(true) ,iBOOL }); - wd.items.emplace_back(Item{ "code", "usp" ,iSTRING }); - PushMsg(wd); - printf("controlrun is called...\n"); - - ::stream::ResponseAny resp; - stream::ComResponce result; - WriteData wdata{ CONFIGFUNC ,to_string(IOVERSIONSTR) }; - wdata.items.emplace_back(Item{"index","1",iINT}); - m_streamClient->Request(wdata, &resp); - if (resp.data().Is()) { - resp.data().UnpackTo(&result); - printf("IOVERSIONSTR resp:%s\n", result.data().data()); - } - - PushMsg(CONFIGFUNC, to_string(REDTESTCFGSTART)); - printf("redtestcfgstart is called...\n"); - - PushMsg(CONFIGFUNC, to_string(REDTESTCFGSTOP)); - printf("redtestcfgstop is called...\n"); -} - diff --git a/TestClient/DataManage/DataHandle.h b/TestClient/DataManage/DataHandle.h index dd7fe4e..3c0075b 100644 --- a/TestClient/DataManage/DataHandle.h +++ b/TestClient/DataManage/DataHandle.h @@ -2,6 +2,7 @@ #include #include "StreamClient.h" #include +#include "FuncTest.h" using namespace std; @@ -11,30 +12,18 @@ class DataHandle{ public: DataHandle(); virtual ~DataHandle(); - DataHandle(const DataHandle& d) = delete; - DataHandle& operator = (const DataHandle& d) = delete; void Init(); void Stop(); static void DataCallBackProc(void* pthis, const ReadData& msg); - void PushMsg(WRITETYPE dataType, const string& nameKey = "", const string& strValue = "", DATATYPE valueType = UNKNOW, DATAHANDLE handleType = UPDATE); - void PushMsg(const WriteData& wd); - string GetVersion()const {return m_version;} void ReceiveParam(int index); int Request(int index); - void AllTest(); - void AxisMoveTest(); //轴运动测试 - void ScanCtrlTest(); //扫描控制测试 - void RegistrationTest(); //注册功能测试 - void CameraTest(); //相机功能测试 - void PurifierTest(); //净化器功能测试 - void ConfigTest(); //配置功能测试 - void UpdateParamToService(const string& input); + void UpdateParamToServer(const string& input); void Usage(); void ParamReadUsage(); @@ -42,6 +31,9 @@ public: int GetPrintParam() const {return m_printIndex;} private: + void PushMsg(WRITETYPE dataType, const string& nameKey = "", const string& strValue = "", DATATYPE valueType = UNKNOW, DATAHANDLE handleType = UPDATE); + void PushMsg(const WriteData& wd); + void DataCallBackHandle(const ReadData& msg); void PrintValue(const ReadData& msg); void PrintScanerCfg(const stream::ScannerCrtlCfgResp& result); //打印config的特殊配置 @@ -53,4 +45,6 @@ private: int m_printIndex; //命令编号 map m_dataTypeMp; + + FuncTest m_funcTest; }; \ No newline at end of file diff --git a/TestClient/DataManage/FunC.h b/TestClient/DataManage/FunC.h index 08b161a..d395beb 100644 --- a/TestClient/DataManage/FunC.h +++ b/TestClient/DataManage/FunC.h @@ -125,4 +125,11 @@ enum SCCFGP { TIMEPOWERCOMPENSATECFG, }; + +enum CALLFUNC { + GetLogicalDrive = 0, + ScanDir, +}; + + #define OUTPUTNAME(x) #x \ No newline at end of file diff --git a/TestClient/DataManage/FuncTest.cpp b/TestClient/DataManage/FuncTest.cpp new file mode 100644 index 0000000..61415ec --- /dev/null +++ b/TestClient/DataManage/FuncTest.cpp @@ -0,0 +1,239 @@ +#include "FuncTest.h" + +void FuncTest::PushMsg(WRITETYPE dataType, const string& nameKey, const std::string& strValue, DATATYPE valueType, DATAHANDLE handleType) { + if (m_streamClient) { + WriteData msg; + msg.dataType = dataType; + msg.nameKey = nameKey; + msg.strValue = strValue; + msg.valueType = valueType; + msg.handleType = handleType; + m_streamClient->PushMsg(msg); + } +} + +void FuncTest::PushMsg(const WriteData& wd) { + if (m_streamClient) { + m_streamClient->PushMsg(wd); + } +} + + +void FuncTest::AllTest() { + AxisMoveTest(); + ScanCtrlTest(); + RegistrationTest(); + CameraTest(); + PurifierTest(); + ConfigTest(); + DirectoryTest(); +} + +//轴运动测试 +void FuncTest::AxisMoveTest() { + int count = (int)MACHINEFUNC::END0; + for (int i = 0; i < count; ++i) { + PushMsg(WRITETYPE::AXISMOVEFUNC, to_string(i)); + printf("发送请求%d成功...\n", i); + Sleep(100); + } + +} + + +//扫描控制测试 +void FuncTest::ScanCtrlTest() { + PushMsg(SCANCTRLFUNC, to_string(BEGINWORK)); printf("call BEGINWORK function...\n"); + PushMsg(SCANCTRLFUNC, to_string(PAUSEWORK)); printf("call PAUSEWORK function...\n"); + PushMsg(SCANCTRLFUNC, to_string(PAUSEAUTO)); printf("call PAUSEAUTO function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPWORK)); printf("call STOPWORK function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPREDTEST)); printf("call STOPREDTEST function...\n"); + PushMsg(SCANCTRLFUNC, to_string(TESTLAYER)); printf("call TESTLAYER function...\n"); + PushMsg(SCANCTRLFUNC, to_string(REMOVESCANNER), to_string(1), iINT); printf("call REMOVESCANNER function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STARTHEATINGMOTION)); printf("call STARTHEATINGMOTION function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPHEATINGMOTION), to_string(0), iBOOL); printf("call STOPHEATINGMOTION function...\n"); + + + PushMsg(SCANCTRLFUNC, to_string(STARTDEBUGTEST), "1", iINT); printf("call STARTDEBUGTEST function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPDEBUGTEST), "1", iINT); printf("call STOPDEBUGTEST function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STARTHEATINGSCANNERTEST), "1", iINT); printf("call STARTHEATINGSCANNERTEST function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPHEATINGSCANNERTEST), "1", iINT); printf("call STOPHEATINGSCANNERTEST function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STARTGETSCANINFO), "1", iINT); printf("call STARTGETSCANINFO function...\n"); + PushMsg(SCANCTRLFUNC, to_string(STOPGETSCANINFO), "1", iINT); printf("call STOPGETSCANINFO function...\n"); + + WriteData wd{ SCANCTRLFUNC,to_string(SETXYOFFSET) ,"1", iINT }; + wd.items.emplace_back(Item{ "x", to_string(1.23f),iFLOAT }); + wd.items.emplace_back(Item{ "y", to_string(2.23f),iFLOAT }); + PushMsg(wd); printf("call SETXYOFFSET function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(SETANGLE); + wd.items.emplace_back(Item{ "angle", to_string(1.2),iDOUBLE }); + PushMsg(wd); printf("call SETANGLE function...\n"); + + PushMsg(SCANCTRLFUNC, to_string(UPDATESETTING), "1", iINT); printf("call UPDATESETTING function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(UPDATESKYWRITING); + wd.items.emplace_back(Item{ "isList", to_string(true),iBOOL }); + PushMsg(wd); printf("call UPDATESKYWRITING function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(SETXYCORRECT); + wd.items.emplace_back(Item{ "x", to_string(2.3),iDOUBLE }); + wd.items.emplace_back(Item{ "y", to_string(3.4),iDOUBLE }); + PushMsg(wd); printf("call SETXYCORRECT function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(SETK); + wd.items.emplace_back(Item{ "k", to_string(2.1),iDOUBLE }); + PushMsg(wd); printf("call SETK function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(FIXPOINTDAOADD); + wd.items.emplace_back(Item{ "cno", to_string(2),iINT }); + wd.items.emplace_back(Item{ "pointX", to_string(2.1),iFLOAT }); + wd.items.emplace_back(Item{ "pointY", to_string(2.1),iFLOAT }); + wd.items.emplace_back(Item{ "duration", to_string(5),iUINT }); + PushMsg(wd); printf("call FIXPOINTDAOADD function...\n"); + + wd.items.clear(); + wd.nameKey = to_string(FIXPOINTDAODEL); + wd.items.emplace_back(Item{ "id", to_string(2),iINT }); + PushMsg(wd); printf("call FIXPOINTDAODEL function...\n"); +} + +void FuncTest::RegistrationTest() { + ::stream::ResponseAny resp; + stream::RegResponce result; + + WriteData wdata{ REGISTFUNC ,to_string(CHECKREG),to_string(time(nullptr)) ,iSTRING }; + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("CHECKREG resp:%d\n", result.data()); + } + Sleep(100); + + wdata.strValue = "123456789"; + wdata.nameKey = to_string(GETSN); + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("GETSN resp:%u\n", (unsigned int)result.data()); + } + Sleep(100); + + wdata.strValue = "regconfig"; + wdata.nameKey = to_string(CHECKREGKEY); + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("CHECKREGKEY resp:%d\n", result.data()); + } +} + +void FuncTest::CameraTest() { + + int count = (int)CAMERAFUNC::END2; + for (int i = 0; i < count; ++i) { + if (i == GETSHOWIMAGE || i == GETSHOWIMAGES) continue; + + if (i == SETDEMANDCATPURE) PushMsg(CAMERAFUNC, to_string(i), to_string(1), iBOOL); + else PushMsg(CAMERAFUNC, to_string(i)); + printf("发送请求%d成功...\n", i); + Sleep(100); + } + + ::stream::ResponseAny resp; + stream::ImgInfoResponce result; + WriteData wdata{ CAMERAFUNC ,to_string(GETSHOWIMAGE) }; + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("GETSHOWIMAGE resp:%u\n", result.levelimage()); + } + Sleep(100); + + resp.Clear(); + wdata.nameKey = to_string(GETSHOWIMAGES); + wdata.strValue = to_string(5); //测试值 + wdata.valueType = iINT; //测试值 + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("GETSHOWIMAGES resp levelimg:%u,height:%d,width:%d\n", result.levelimage(), result.width(), result.height()); + } + Sleep(100); + + //修改参数 + PushMsg(CAMERAPARAMUPDATE, "LastMouRefImgPosX", to_string(10), iINT); + PushMsg(CAMERAPARAMUPDATE, "LastMouRefImgPosY", to_string(100), iINT); + PushMsg(CAMERAPARAMUPDATE, "ShowFlag", to_string(1), iBOOL); + printf("CAMERAPARAMUPDATE update finish\n"); +} + +void FuncTest::PurifierTest() { + PushMsg(PURIFIERFUNC, to_string(STARTAUTODEOXYGEN)); + printf("STARTAUTODEOXYGEN is called...\n"); + PushMsg(PURIFIERFUNC, to_string(STOPAUTODEOXYGEN)); + printf("STOPAUTODEOXYGEN is called...\n"); +} + +void FuncTest::ConfigTest() { + PushMsg(CONFIGFUNC, to_string(SAVECONFIG)); + printf("saveconfig is called...\n"); + PushMsg(CONFIGFUNC, to_string(SAVEMACHINECONFIG)); + printf("savemachineconfig is called...\n"); + PushMsg(CONFIGFUNC, to_string(DELETEMACHINEIO)); + printf("deletemachineio is called...\n"); + + WriteData wd{ CONFIGFUNC, to_string(CONTROLRUN) }; + wd.items.emplace_back(Item{ "enable", to_string(true) ,iBOOL }); + wd.items.emplace_back(Item{ "code", "usp" ,iSTRING }); + PushMsg(wd); + printf("controlrun is called...\n"); + + ::stream::ResponseAny resp; + stream::ComResponce result; + WriteData wdata{ CONFIGFUNC ,to_string(IOVERSIONSTR) }; + wdata.items.emplace_back(Item{ "index","1",iINT }); + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("IOVERSIONSTR resp:%s\n", result.data().data()); + } + + PushMsg(CONFIGFUNC, to_string(REDTESTCFGSTART)); + printf("redtestcfgstart is called...\n"); + + PushMsg(CONFIGFUNC, to_string(REDTESTCFGSTOP)); + printf("redtestcfgstop is called...\n"); +} + +void FuncTest::DirectoryTest() { + ::stream::ResponseAny resp; + stream::ComResponce result; + WriteData wdata{ DIRCTROYFUNC ,to_string(GetLogicalDrive) }; + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("GetLogicalDrive resp:%s\n", result.data().data()); + } + Sleep(100); + + wdata = WriteData{ DIRCTROYFUNC ,to_string(ScanDir),"C://" }; + m_streamClient->Request(wdata, &resp); + if (resp.data().Is()) { + resp.data().UnpackTo(&result); + printf("ScanDir directory:%s\n", result.directory().data()); + + for (auto& it : result.fileinfo()) { + printf("ScanDir fileinfo type:%s,filename:%s,filepath:%s,ext:%s\n" + , it.type().data(), it.filename().data(), it.filepath().data(), it.ext().data()); + } + + printf("size:%d\n",result.fileinfo_size()); + } + +} \ No newline at end of file diff --git a/TestClient/DataManage/FuncTest.h b/TestClient/DataManage/FuncTest.h new file mode 100644 index 0000000..894b909 --- /dev/null +++ b/TestClient/DataManage/FuncTest.h @@ -0,0 +1,32 @@ +#pragma once +#include "FunC.h" +#include "RWData.h" +#include "StreamClient.h" +using namespace std; + +class FuncTest { +public: + FuncTest() :m_streamClient(nullptr){} + ~FuncTest() {} + + void SetStreamClient(StreamClient* sc) { + m_streamClient = sc; + } + + void AllTest(); + void AxisMoveTest(); //轴运动测试 + void ScanCtrlTest(); //扫描控制测试 + void RegistrationTest(); //注册功能测试 + void CameraTest(); //相机功能测试 + void PurifierTest(); //净化器功能测试 + void ConfigTest(); //配置功能测试 + void DirectoryTest(); //h3d文件目录接口测试 + +private: + void PushMsg(WRITETYPE dataType, const string& nameKey = "", const string& strValue = "", DATATYPE valueType = UNKNOW, DATAHANDLE handleType = UPDATE); + void PushMsg(const WriteData& wd); + +private: + StreamClient* m_streamClient; + +}; \ No newline at end of file diff --git a/TestClient/DataManage/RWData.h b/TestClient/DataManage/RWData.h index 845021c..af075dc 100644 --- a/TestClient/DataManage/RWData.h +++ b/TestClient/DataManage/RWData.h @@ -128,6 +128,7 @@ enum WRITETYPE { CAMERAPARAMUPDATE, //相机参数更新 PURIFIERFUNC, //净化器接口功能 CONFIGFUNC, //config functions + DIRCTROYFUNC, //请求目录信息 SETZEROPOS, //AxisState使用 AXISSTOPALL, //axis 运动急停 @@ -149,6 +150,7 @@ enum WRITETYPE { SCANERCTRLCFG, LOADPARAM, //装载参数 + SCANCTRLFUNC, //振镜控制函数 REQUEST = 100, //获取配置信息 test用 diff --git a/TestClient/FuncTest.cpp b/TestClient/FuncTest.cpp new file mode 100644 index 0000000..1fc9762 --- /dev/null +++ b/TestClient/FuncTest.cpp @@ -0,0 +1,22 @@ +#include "FuncTest.h" +#include "FunC.h" +#include "../utils/ConverType.h" +#include "../utils/StringHelper.h" + +void FuncTest::PushMsg(WRITETYPE dataType, const string& nameKey, const string& strValue, DATATYPE valueType, DATAHANDLE handleType) { + if (m_streamClient) { + WriteData msg; + msg.dataType = dataType; + msg.nameKey = nameKey; + msg.strValue = strValue; + msg.valueType = valueType; + msg.handleType = handleType; + m_streamClient->PushMsg(msg); + } +} + +void FuncTest::PushMsg(const WriteData& wd) { + if (m_streamClient) { + m_streamClient->PushMsg(wd); + } +} \ No newline at end of file diff --git a/TestClient/FuncTest.h b/TestClient/FuncTest.h new file mode 100644 index 0000000..f849eff --- /dev/null +++ b/TestClient/FuncTest.h @@ -0,0 +1,16 @@ +#pragma once +#include "FunC.h" + +class FuncTest { +public: + FuncTest(); + ~FuncTest(); + + +private: + void PushMsg(WRITETYPE dataType, const string& nameKey, const string& strValue, DATATYPE valueType, DATAHANDLE handleType); + void PushMsg(const WriteData& wd); + + + +}; \ No newline at end of file diff --git a/TestClient/PrintC.vcxproj b/TestClient/PrintC.vcxproj index 80d8948..0d23b7d 100644 --- a/TestClient/PrintC.vcxproj +++ b/TestClient/PrintC.vcxproj @@ -142,6 +142,7 @@ + @@ -211,6 +212,7 @@ + diff --git a/TestClient/PrintC.vcxproj.filters b/TestClient/PrintC.vcxproj.filters index 2cfa783..d8885e8 100644 --- a/TestClient/PrintC.vcxproj.filters +++ b/TestClient/PrintC.vcxproj.filters @@ -260,6 +260,9 @@ protobuf + + DataManage + @@ -521,6 +524,9 @@ protobuf + + DataManage + diff --git a/TestClient/main.cpp b/TestClient/main.cpp index 49e15a1..59e2c91 100644 --- a/TestClient/main.cpp +++ b/TestClient/main.cpp @@ -76,12 +76,19 @@ int main(int argc, char** argv) { std::getline(std::cin, userInput); // 读取用户输入 unknowCmd = false; if (userInput.empty()) continue; - - if(ConverType::TryToI(userInput)<0 || dataHandle->Request(stoi(userInput)) < 0){ + else if (userInput == "h") { + dataHandle->Usage(); continue; + } + else if (userInput == "s") { + dataHandle->Stop(); + } + else if (userInput == "e") { + dataHandle->Stop(); break; + } + else if(ConverType::TryToI(userInput)<0 || dataHandle->Request(stoi(userInput)) < 0){ printf("未识别的命令,请重新输入命令:"); unknowCmd = true; } - } DELP(dataHandle); diff --git a/TestClient/protobuf/stream.pb.cc b/TestClient/protobuf/stream.pb.cc index e7673c2..a79a353 100644 --- a/TestClient/protobuf/stream.pb.cc +++ b/TestClient/protobuf/stream.pb.cc @@ -36,27 +36,13 @@ PROTOBUF_CONSTEXPR ParamInfo::ParamInfo(::_pbi::ConstantInitialized) &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, - /*decltype(_impl_.cardname_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.cardip_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, /*decltype(_impl_.valuetype_)*/ 0, - /*decltype(_impl_.startlayer_)*/ 0, /*decltype(_impl_.isenable_)*/ false, /*decltype(_impl_.isalarm_)*/ false, /*decltype(_impl_.isshow_)*/ false, - /*decltype(_impl_.hadassign_)*/ false, + /*decltype(_impl_.startlayer_)*/ 0, /*decltype(_impl_.endlayer_)*/ 0, /*decltype(_impl_.powder_)*/ 0, - /*decltype(_impl_.seqno_)*/ 0, - /*decltype(_impl_.controlno_)*/ 0, - /*decltype(_impl_.serialno_)*/ 0, - /*decltype(_impl_.controltype_)*/ 0, - /*decltype(_impl_.hadmatch_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ParamInfoDefaultTypeInternal { @@ -260,12 +246,48 @@ struct ImgInfoResponceDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImgInfoResponceDefaultTypeInternal _ImgInfoResponce_default_instance_; template +PROTOBUF_CONSTEXPR ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_.type_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.filepath_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.filename_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_.ext_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, + /*decltype(_impl_._cached_size_)*/ {}, + } {} +struct ComResponce_FileInfoStructDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComResponce_FileInfoStructDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ComResponce_FileInfoStructDefaultTypeInternal() {} + union { + ComResponce_FileInfoStruct _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComResponce_FileInfoStructDefaultTypeInternal _ComResponce_FileInfoStruct_default_instance_; + template PROTOBUF_CONSTEXPR ComResponce::ComResponce(::_pbi::ConstantInitialized) : _impl_{ + /*decltype(_impl_.fileinfo_)*/ {}, /*decltype(_impl_.data_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, + /*decltype(_impl_.directory_)*/ { + &::_pbi::fixed_address_empty_string, + ::_pbi::ConstantInitialized{}, + }, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ComResponceDefaultTypeInternal { @@ -551,7 +573,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[21]; +static ::_pb::Metadata file_level_metadata_stream_2eproto[22]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_stream_2eproto = nullptr; @@ -575,14 +597,6 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.startlayer_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.endlayer_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.powder_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.seqno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controlno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.serialno_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controltype_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardname_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardip_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadassign_), - PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadmatch_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _internal_metadata_), ~0u, // no _extensions_ @@ -698,6 +712,18 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.width_), PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.height_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _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::ComResponce_FileInfoStruct, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.filepath_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.filename_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce_FileInfoStruct, _impl_.ext_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -706,6 +732,8 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.directory_), + PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.fileinfo_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _internal_metadata_), ~0u, // no _extensions_ @@ -932,26 +960,27 @@ const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::stream::ParamInfo)}, - {26, -1, -1, sizeof(::stream::RequestInfo)}, - {40, -1, -1, sizeof(::stream::ResponseInfo)}, - {51, 60, -1, sizeof(::stream::ResponseAny)}, - {61, -1, -1, sizeof(::stream::LayerData)}, - {74, -1, -1, sizeof(::stream::LayerDataBlock)}, - {88, -1, -1, sizeof(::stream::VectorDataBlock)}, - {100, -1, -1, sizeof(::stream::ChainDataBlock)}, - {110, -1, -1, sizeof(::stream::Point)}, - {120, -1, -1, sizeof(::stream::RegResponce)}, - {129, -1, -1, sizeof(::stream::ImgInfoResponce)}, - {140, -1, -1, sizeof(::stream::ComResponce)}, - {149, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, - {158, 185, -1, sizeof(::stream::ScannerCrtlCfgData)}, - {204, -1, -1, sizeof(::stream::FixPointData)}, - {217, -1, -1, sizeof(::stream::ScanParamCfg)}, - {255, -1, -1, sizeof(::stream::CorrectParamCfg)}, - {289, -1, -1, sizeof(::stream::ScanTestCfg)}, - {319, -1, -1, sizeof(::stream::SkyWritingCfg)}, - {344, -1, -1, sizeof(::stream::PowerCompensate)}, - {357, -1, -1, sizeof(::stream::TimePowerCompensate)}, + {18, -1, -1, sizeof(::stream::RequestInfo)}, + {32, -1, -1, sizeof(::stream::ResponseInfo)}, + {43, 52, -1, sizeof(::stream::ResponseAny)}, + {53, -1, -1, sizeof(::stream::LayerData)}, + {66, -1, -1, sizeof(::stream::LayerDataBlock)}, + {80, -1, -1, sizeof(::stream::VectorDataBlock)}, + {92, -1, -1, sizeof(::stream::ChainDataBlock)}, + {102, -1, -1, sizeof(::stream::Point)}, + {112, -1, -1, sizeof(::stream::RegResponce)}, + {121, -1, -1, sizeof(::stream::ImgInfoResponce)}, + {132, -1, -1, sizeof(::stream::ComResponce_FileInfoStruct)}, + {144, -1, -1, sizeof(::stream::ComResponce)}, + {155, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)}, + {164, 191, -1, sizeof(::stream::ScannerCrtlCfgData)}, + {210, -1, -1, sizeof(::stream::FixPointData)}, + {223, -1, -1, sizeof(::stream::ScanParamCfg)}, + {261, -1, -1, sizeof(::stream::CorrectParamCfg)}, + {295, -1, -1, sizeof(::stream::ScanTestCfg)}, + {325, -1, -1, sizeof(::stream::SkyWritingCfg)}, + {350, -1, -1, sizeof(::stream::PowerCompensate)}, + {363, -1, -1, sizeof(::stream::TimePowerCompensate)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -966,6 +995,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::stream::_Point_default_instance_._instance, &::stream::_RegResponce_default_instance_._instance, &::stream::_ImgInfoResponce_default_instance_._instance, + &::stream::_ComResponce_FileInfoStruct_default_instance_._instance, &::stream::_ComResponce_default_instance_._instance, &::stream::_ScannerCrtlCfgResp_default_instance_._instance, &::stream::_ScannerCrtlCfgData_default_instance_._instance, @@ -979,131 +1009,131 @@ static const ::_pb::Message* const file_default_instances[] = { }; const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\014stream.proto\022\006stream\032\031google/protobuf/" - "any.proto\"\331\002\n\tParamInfo\022\017\n\007nameKey\030\001 \001(\014" + "any.proto\"\311\001\n\tParamInfo\022\017\n\007nameKey\030\001 \001(\014" "\022\020\n\010strValue\030\002 \001(\014\022\037\n\tvalueType\030\003 \001(\0162\014." "stream.TYPE\022\017\n\007context\030\004 \001(\014\022\020\n\010isEnable" "\030\005 \001(\010\022\017\n\007isAlarm\030\006 \001(\010\022\016\n\006isShow\030\007 \001(\010\022" "\022\n\nstartLayer\030\010 \001(\005\022\020\n\010endLayer\030\t \001(\005\022\016\n" - "\006powder\030\n \001(\002\022\r\n\005seqNo\030\013 \001(\005\022\021\n\tcontrolN" - "o\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013controlType" - "\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardIP\030\020 \001(\014" - "\022\021\n\thadAssign\030\021 \001(\010\022\020\n\010hadMatch\030\022 \001(\010\"\254\001" - "\n\013RequestInfo\022\020\n\010dataType\030\001 \001(\r\022\017\n\007nameK" - "ey\030\002 \001(\014\022\020\n\010strValue\030\003 \001(\014\022\037\n\tvalueType\030" - "\004 \001(\0162\014.stream.TYPE\022&\n\nhandleType\030\005 \001(\0162" - "\022.stream.DATAHANDLE\022\037\n\004item\030\006 \003(\0132\021.stre" - "am.ParamInfo\"Q\n\014ResponseInfo\022\020\n\010dataType" - "\030\001 \001(\r\022\016\n\006result\030\002 \001(\010\022\037\n\004item\030\003 \003(\0132\021.s" - "tream.ParamInfo\"1\n\013ResponseAny\022\"\n\004data\030\001" - " \001(\0132\024.google.protobuf.Any\"\210\001\n\tLayerData" - "\022\023\n\013zCooldinate\030\001 \001(\002\022\016\n\006powder\030\002 \001(\002\022\026\n" - "\016layerThickness\030\003 \001(\002\022.\n\016layerDataBlock\030" - "\004 \003(\0132\026.stream.LayerDataBlock\022\016\n\006result\030" - "\005 \001(\010\"\266\001\n\016LayerDataBlock\022\021\n\telementId\030\001 " - "\001(\005\022\026\n\016elementParamId\030\002 \001(\005\022\021\n\tblockType" - "\030\003 \001(\r\022*\n\tvecBlocks\030\004 \003(\0132\027.stream.Vecto" - "rDataBlock\022+\n\013chainBlocks\030\005 \003(\0132\026.stream" - ".ChainDataBlock\022\r\n\005order\030\006 \001(\r\"M\n\017Vector" - "DataBlock\022\016\n\006startX\030\001 \001(\002\022\016\n\006startY\030\002 \001(" - "\002\022\014\n\004endX\030\003 \001(\002\022\014\n\004endY\030\004 \001(\002\"A\n\016ChainDa" - "taBlock\022\016\n\006dotNum\030\001 \001(\r\022\037\n\010pointVec\030\002 \003(" - "\0132\r.stream.Point\"#\n\005Point\022\014\n\004xPos\030\001 \001(\002\022" - "\014\n\004yPos\030\002 \001(\002\"\033\n\013RegResponce\022\014\n\004data\030\001 \001" - "(\005\"D\n\017ImgInfoResponce\022\022\n\nlevelImage\030\001 \001(" - "\r\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\"\033\n\013ComR" - "esponce\022\014\n\004data\030\001 \001(\014\"D\n\022ScannerCrtlCfgR" - "esp\022.\n\nscannerCfg\030\001 \003(\0132\032.stream.Scanner" - "CrtlCfgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005se" - "qNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.stream" - ".FixPointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.st" - "ream.ScanParamCfg\022,\n\016hatchingParams\030\004 \001(" - "\0132\024.stream.ScanParamCfg\022*\n\014borderParams\030" - "\005 \001(\0132\024.stream.ScanParamCfg\022+\n\rsupportPa" - "rams\030\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017corr" - "ectParamCfg\030\007 \001(\0132\027.stream.CorrectParamC" - "fg\022(\n\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTes" - "tCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025.stream.Sky" - "WritingCfg\0220\n\017powerCompensate\030\n \003(\0132\027.st" - "ream.PowerCompensate\0225\n\020tPowerCompensate" - "\030\013 \003(\0132\033.stream.TimePowerCompensate\022\021\n\tc" - "ontrolNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013cont" - "rolType\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardI" - "P\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\014Sc" - "anParamCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLev" - "elMin\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tjum" - "pDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014ju" - "mpDelayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014s" - "canDelayMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r\022" - "\024\n\014polygonDelay\030\n \001(\r\022\027\n\017polygonDelayMin" - "\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlaser" - "offDelay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(\003" - "\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDel" - "ay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017las" - "eronDelayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(\r" - "\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDela" - "yMax\030\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022j" - "umpLengthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLim" - "itMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpSp" - "eedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tma" - "rkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014m" - "arkSpeedMax\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\ts" - "canAngle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n\014" - "scanAngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n\013" - "fixAngleMin\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\013xc" - "orrectMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n\013" - "ycorrectMin\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\014defocusRat" - "io\030\030 \001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017def" - "ocusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\nde" - "bugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014sha" - "peSizeMin\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\007defocu" - "s\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\031autoH" - "eatingScannerMinutes\030\020 \001(\r\022\036\n\026autoHeatin" - "gScannerSize\030\021 \001(\r\022\037\n\027autoHeatingScanner" - "Speed\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_e" - "nd_x\030\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n\r" - "SkyWritingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007timel" - "ag\030\002 \001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelagM" - "ax\030\004 \001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laserO" - "nShiftMin\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\010npr" - "evMax\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\006" - "limite\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimit" - "eMax\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\tva" - "lue_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023Time" - "PowerCompensate\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\005i" - "UINT\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\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n\003" - "ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.st" - "ream.RequestInfo\032\023.stream.ResponseAny\"\000\022" - "=\n\014ServerStream\022\023.stream.RequestInfo\032\024.s" - "tream.ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023" - ".stream.RequestInfo\032\024.stream.ResponseInf" - "o\"\000(\001\022<\n\tAllStream\022\023.stream.RequestInfo\032" - "\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.e" - "xamples.streamB\013StreamProtoP\001\242\002\002STb\006prot" - "o3" + "\006powder\030\n \001(\002\"\254\001\n\013RequestInfo\022\020\n\010dataTyp" + "e\030\001 \001(\r\022\017\n\007nameKey\030\002 \001(\014\022\020\n\010strValue\030\003 \001" + "(\014\022\037\n\tvalueType\030\004 \001(\0162\014.stream.TYPE\022&\n\nh" + "andleType\030\005 \001(\0162\022.stream.DATAHANDLE\022\037\n\004i" + "tem\030\006 \003(\0132\021.stream.ParamInfo\"Q\n\014Response" + "Info\022\020\n\010dataType\030\001 \001(\r\022\016\n\006result\030\002 \001(\010\022\037" + "\n\004item\030\003 \003(\0132\021.stream.ParamInfo\"1\n\013Respo" + "nseAny\022\"\n\004data\030\001 \001(\0132\024.google.protobuf.A" + "ny\"\210\001\n\tLayerData\022\023\n\013zCooldinate\030\001 \001(\002\022\016\n" + "\006powder\030\002 \001(\002\022\026\n\016layerThickness\030\003 \001(\002\022.\n" + "\016layerDataBlock\030\004 \003(\0132\026.stream.LayerData" + "Block\022\016\n\006result\030\005 \001(\010\"\266\001\n\016LayerDataBlock" + "\022\021\n\telementId\030\001 \001(\005\022\026\n\016elementParamId\030\002 " + "\001(\005\022\021\n\tblockType\030\003 \001(\r\022*\n\tvecBlocks\030\004 \003(" + "\0132\027.stream.VectorDataBlock\022+\n\013chainBlock" + "s\030\005 \003(\0132\026.stream.ChainDataBlock\022\r\n\005order" + "\030\006 \001(\r\"M\n\017VectorDataBlock\022\016\n\006startX\030\001 \001(" + "\002\022\016\n\006startY\030\002 \001(\002\022\014\n\004endX\030\003 \001(\002\022\014\n\004endY\030" + "\004 \001(\002\"A\n\016ChainDataBlock\022\016\n\006dotNum\030\001 \001(\r\022" + "\037\n\010pointVec\030\002 \003(\0132\r.stream.Point\"#\n\005Poin" + "t\022\014\n\004xPos\030\001 \001(\002\022\014\n\004yPos\030\002 \001(\002\"\033\n\013RegResp" + "once\022\014\n\004data\030\001 \001(\005\"D\n\017ImgInfoResponce\022\022\n" + "\nlevelImage\030\001 \001(\r\022\r\n\005width\030\002 \001(\005\022\016\n\006heig" + "ht\030\003 \001(\005\"\265\001\n\013ComResponce\022\014\n\004data\030\001 \001(\014\022\021" + "\n\tdirectory\030\002 \001(\014\0224\n\010fileInfo\030\003 \003(\0132\".st" + "ream.ComResponce.FileInfoStruct\032O\n\016FileI" + "nfoStruct\022\014\n\004type\030\001 \001(\014\022\020\n\010filePath\030\002 \001(" + "\014\022\020\n\010fileName\030\003 \001(\014\022\013\n\003ext\030\004 \001(\014\"D\n\022Scan" + "nerCrtlCfgResp\022.\n\nscannerCfg\030\001 \003(\0132\032.str" + "eam.ScannerCrtlCfgData\"\210\005\n\022ScannerCrtlCf" + "gData\022\r\n\005seqNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003" + "(\0132\024.stream.FixPointData\022*\n\014scanParamCfg" + "\030\003 \001(\0132\024.stream.ScanParamCfg\022,\n\016hatching" + "Params\030\004 \001(\0132\024.stream.ScanParamCfg\022*\n\014bo" + "rderParams\030\005 \001(\0132\024.stream.ScanParamCfg\022+" + "\n\rsupportParams\030\006 \001(\0132\024.stream.ScanParam" + "Cfg\0220\n\017correctParamCfg\030\007 \001(\0132\027.stream.Co" + "rrectParamCfg\022(\n\013scanTestCfg\030\010 \001(\0132\023.str" + "eam.ScanTestCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025" + ".stream.SkyWritingCfg\0220\n\017powerCompensate" + "\030\n \003(\0132\027.stream.PowerCompensate\0225\n\020tPowe" + "rCompensate\030\013 \003(\0132\033.stream.TimePowerComp" + "ensate\022\021\n\tcontrolNo\030\014 \001(\005\022\020\n\010serialNo\030\r " + "\001(\005\022\023\n\013controlType\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\t" + "hadAssign\030\022 \001(\010\022\020\n\010hadMatch\030\023 \001(\010\"Y\n\014Fix" + "PointData\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006po" + "intX\030\003 \001(\002\022\016\n\006pointY\030\004 \001(\002\022\020\n\010duration\030\005" + " \001(\r\"\275\005\n\014ScanParamCfg\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\tjumpDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030" + "\005 \001(\r\022\024\n\014jumpDelayMax\030\006 \001(\r\022\021\n\tscanDelay" + "\030\007 \001(\r\022\024\n\014scanDelayMin\030\010 \001(\r\022\024\n\014scanDela" + "yMax\030\t \001(\r\022\024\n\014polygonDelay\030\n \001(\r\022\027\n\017poly" + "gonDelayMin\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001" + "(\r\022\025\n\rlaseroffDelay\030\r \001(\003\022\030\n\020laseroffDel" + "ayMin\030\016 \001(\003\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n" + "\014laseronDelay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021" + " \001(\003\022\027\n\017laseronDelayMax\030\022 \001(\003\022\024\n\014minJump" + "Delay\030\023 \001(\r\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017" + "minJumpDelayMax\030\025 \001(\r\022\027\n\017jumpLengthLimit" + "\030\026 \001(\r\022\032\n\022jumpLengthLimitMin\030\027 \001(\r\022\032\n\022ju" + "mpLengthLimitMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(" + "\001\022\024\n\014jumpSpeedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030" + "\033 \001(\001\022\021\n\tmarkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin" + "\030\035 \001(\001\022\024\n\014markSpeedMax\030\036 \001(\001\"\256\004\n\017Correct" + "ParamCfg\022\023\n\013xmeasureMin\030\001 \001(\001\022\023\n\013xmeasur" + "eMax\030\002 \001(\001\022\023\n\013ymeasureMin\030\003 \001(\001\022\023\n\013ymeas" + "ureMax\030\004 \001(\001\022\017\n\007xposfix\030\005 \001(\001\022\017\n\007yposfix" + "\030\006 \001(\001\022\021\n\tscanAngle\030\007 \001(\001\022\024\n\014scanAngleMi" + "n\030\010 \001(\001\022\024\n\014scanAngleMax\030\t \001(\001\022\020\n\010fixAngl" + "e\030\n \001(\001\022\023\n\013fixAngleMin\030\013 \001(\001\022\023\n\013fixAngle" + "Max\030\014 \001(\001\022\020\n\010xcorrect\030\r \001(\001\022\020\n\010ycorrect\030" + "\016 \001(\001\022\023\n\013xcorrectMin\030\017 \001(\001\022\023\n\013xcorrectMa" + "x\030\020 \001(\001\022\023\n\013ycorrectMin\030\021 \001(\001\022\023\n\013ycorrect" + "Max\030\022 \001(\001\022\023\n\013realXOffset\030\023 \001(\001\022\023\n\013realYO" + "ffset\030\024 \001(\001\022\017\n\007factorK\030\025 \001(\001\022\027\n\017isCorrec" + "tFile3D\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\017defocusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTe" + "stCfg\022\022\n\ndebugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002" + " \001(\005\022\024\n\014shapeSizeMin\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\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_di" + "stance\030\016 \001(\001\022\034\n\024isAutoHeatingScanner\030\017 \001" + "(\010\022!\n\031autoHeatingScannerMinutes\030\020 \001(\r\022\036\n" + "\026autoHeatingScannerSize\030\021 \001(\r\022\037\n\027autoHea" + "tingScannerSpeed\030\022 \001(\001\022\031\n\021mark_test_star" + "t_x\030\023 \001(\001\022\031\n\021mark_test_start_y\030\024 \001(\001\022\027\n\017" + "mark_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\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\017laserOnShiftMin\030\006 \001(\003\022\027\n\017laserOnShi" + "ftMax\030\007 \001(\003\022\r\n\005nprev\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\004mod" + "e\030\016 \001(\005\022\016\n\006limite\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_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 " + "\001(\002\"j\n\023TimePowerCompensate\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\tendM" + "inute\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\004" + "iINT\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\007" + "iDOUBLE\020\n\022\n\n\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006U" + "PDATE\020\000\022\007\n\003ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006" + "Simple\022\023.stream.RequestInfo\032\023.stream.Res" + "ponseAny\"\000\022=\n\014ServerStream\022\023.stream.Requ" + "estInfo\032\024.stream.ResponseInfo\"\0000\001\022=\n\014Cli" + "entStream\022\023.stream.RequestInfo\032\024.stream." + "ResponseInfo\"\000(\001\022<\n\tAllStream\022\023.stream.R" + "equestInfo\032\024.stream.ResponseInfo\"\000(\0010\001B-" + "\n\027io.grpc.examples.streamB\013StreamProtoP\001" + "\242\002\002STb\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_stream_2eproto_deps[1] = { @@ -1113,13 +1143,13 @@ static ::absl::once_flag descriptor_table_stream_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = { false, false, - 5002, + 5013, descriptor_table_protodef_stream_2eproto, "stream.proto", &descriptor_table_stream_2eproto_once, descriptor_table_stream_2eproto_deps, 1, - 21, + 22, schemas, file_default_instances, TableStruct_stream_2eproto::offsets, @@ -1201,21 +1231,13 @@ ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() { decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.context_){}, - decltype(_impl_.cardname_){}, - decltype(_impl_.cardip_){}, decltype(_impl_.valuetype_){}, - decltype(_impl_.startlayer_){}, decltype(_impl_.isenable_){}, decltype(_impl_.isalarm_){}, decltype(_impl_.isshow_){}, - decltype(_impl_.hadassign_){}, + decltype(_impl_.startlayer_){}, decltype(_impl_.endlayer_){}, decltype(_impl_.powder_){}, - decltype(_impl_.seqno_){}, - decltype(_impl_.controlno_){}, - decltype(_impl_.serialno_){}, - decltype(_impl_.controltype_){}, - decltype(_impl_.hadmatch_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -1241,23 +1263,9 @@ ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() { if (!from._internal_context().empty()) { _this->_impl_.context_.Set(from._internal_context(), _this->GetArenaForAllocation()); } - _impl_.cardname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_cardname().empty()) { - _this->_impl_.cardname_.Set(from._internal_cardname(), _this->GetArenaForAllocation()); - } - _impl_.cardip_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_cardip().empty()) { - _this->_impl_.cardip_.Set(from._internal_cardip(), _this->GetArenaForAllocation()); - } ::memcpy(&_impl_.valuetype_, &from._impl_.valuetype_, - static_cast<::size_t>(reinterpret_cast(&_impl_.hadmatch_) - - reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_)); + static_cast<::size_t>(reinterpret_cast(&_impl_.powder_) - + reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.powder_)); // @@protoc_insertion_point(copy_constructor:stream.ParamInfo) } @@ -1267,21 +1275,13 @@ inline void ParamInfo::SharedCtor(::_pb::Arena* arena) { decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.context_){}, - decltype(_impl_.cardname_){}, - decltype(_impl_.cardip_){}, decltype(_impl_.valuetype_){0}, - decltype(_impl_.startlayer_){0}, decltype(_impl_.isenable_){false}, decltype(_impl_.isalarm_){false}, decltype(_impl_.isshow_){false}, - decltype(_impl_.hadassign_){false}, + decltype(_impl_.startlayer_){0}, decltype(_impl_.endlayer_){0}, decltype(_impl_.powder_){0}, - decltype(_impl_.seqno_){0}, - decltype(_impl_.controlno_){0}, - decltype(_impl_.serialno_){0}, - decltype(_impl_.controltype_){0}, - decltype(_impl_.hadmatch_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.namekey_.InitDefault(); @@ -1296,14 +1296,6 @@ inline void ParamInfo::SharedCtor(::_pb::Arena* arena) { #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.context_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cardip_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ParamInfo::~ParamInfo() { // @@protoc_insertion_point(destructor:stream.ParamInfo) @@ -1315,8 +1307,6 @@ inline void ParamInfo::SharedDtor() { _impl_.namekey_.Destroy(); _impl_.strvalue_.Destroy(); _impl_.context_.Destroy(); - _impl_.cardname_.Destroy(); - _impl_.cardip_.Destroy(); } void ParamInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); @@ -1331,11 +1321,9 @@ PROTOBUF_NOINLINE void ParamInfo::Clear() { _impl_.namekey_.ClearToEmpty(); _impl_.strvalue_.ClearToEmpty(); _impl_.context_.ClearToEmpty(); - _impl_.cardname_.ClearToEmpty(); - _impl_.cardip_.ClearToEmpty(); ::memset(&_impl_.valuetype_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.hadmatch_) - - reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_)); + reinterpret_cast(&_impl_.powder_) - + reinterpret_cast(&_impl_.valuetype_)) + sizeof(_impl_.powder_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -1347,15 +1335,15 @@ const char* ParamInfo::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { +const ::_pbi::TcParseTable<4, 10, 0, 0, 2> ParamInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 18, 248, // max_field_number, fast_idx_mask + 10, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294705152, // skipmap + 4294966272, // skipmap offsetof(decltype(_table_), field_entries), - 18, // num_field_entries + 10, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_ParamInfo_default_instance_._instance, @@ -1392,38 +1380,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { // float powder = 10; {::_pbi::TcParser::FastF32S1, {85, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_)}}, - // int32 seqNo = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.seqno_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_)}}, - // int32 controlNo = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controlno_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_)}}, - // int32 serialNo = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.serialno_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_)}}, - // int32 controlType = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controltype_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_)}}, - // bytes cardName = 15; - {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_)}}, - // bytes cardIP = 16; - {::_pbi::TcParser::FastBS2, - {386, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_)}}, - // bool hadAssign = 17; - {::_pbi::TcParser::FastV8S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_)}}, - // bool hadMatch = 18; - {::_pbi::TcParser::FastV8S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -1462,30 +1418,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { // float powder = 10; {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - // int32 seqNo = 11; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 controlNo = 12; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 serialNo = 13; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // int32 controlType = 14; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, - // bytes cardName = 15; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes cardIP = 16; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool hadAssign = 17; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // bool hadMatch = 18; - {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -1571,60 +1503,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { 10, this->_internal_powder(), target); } - // int32 seqNo = 11; - if (this->_internal_seqno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this->_internal_seqno(), target); - } - - // int32 controlNo = 12; - if (this->_internal_controlno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<12>( - stream, this->_internal_controlno(), target); - } - - // int32 serialNo = 13; - if (this->_internal_serialno() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<13>( - stream, this->_internal_serialno(), target); - } - - // int32 controlType = 14; - if (this->_internal_controltype() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<14>( - stream, this->_internal_controltype(), target); - } - - // bytes cardName = 15; - if (!this->_internal_cardname().empty()) { - const std::string& _s = this->_internal_cardname(); - target = stream->WriteBytesMaybeAliased(15, _s, target); - } - - // bytes cardIP = 16; - if (!this->_internal_cardip().empty()) { - const std::string& _s = this->_internal_cardip(); - target = stream->WriteBytesMaybeAliased(16, _s, target); - } - - // bool hadAssign = 17; - if (this->_internal_hadassign() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this->_internal_hadassign(), target); - } - - // bool hadMatch = 18; - if (this->_internal_hadmatch() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this->_internal_hadmatch(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -1660,30 +1538,12 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { this->_internal_context()); } - // bytes cardName = 15; - if (!this->_internal_cardname().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_cardname()); - } - - // bytes cardIP = 16; - if (!this->_internal_cardip().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_cardip()); - } - // .stream.TYPE valueType = 3; if (this->_internal_valuetype() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype()); } - // int32 startLayer = 8; - if (this->_internal_startlayer() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_startlayer()); - } - // bool isEnable = 5; if (this->_internal_isenable() != 0) { total_size += 2; @@ -1699,9 +1559,10 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { total_size += 2; } - // bool hadAssign = 17; - if (this->_internal_hadassign() != 0) { - total_size += 3; + // int32 startLayer = 8; + if (this->_internal_startlayer() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this->_internal_startlayer()); } // int32 endLayer = 9; @@ -1720,35 +1581,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 0, 2> ParamInfo::_table_ = { total_size += 5; } - // int32 seqNo = 11; - if (this->_internal_seqno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_seqno()); - } - - // int32 controlNo = 12; - if (this->_internal_controlno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_controlno()); - } - - // int32 serialNo = 13; - if (this->_internal_serialno() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_serialno()); - } - - // int32 controlType = 14; - if (this->_internal_controltype() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this->_internal_controltype()); - } - - // bool hadMatch = 18; - if (this->_internal_hadmatch() != 0) { - total_size += 3; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -1776,18 +1608,9 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (!from._internal_context().empty()) { _this->_internal_set_context(from._internal_context()); } - if (!from._internal_cardname().empty()) { - _this->_internal_set_cardname(from._internal_cardname()); - } - if (!from._internal_cardip().empty()) { - _this->_internal_set_cardip(from._internal_cardip()); - } if (from._internal_valuetype() != 0) { _this->_internal_set_valuetype(from._internal_valuetype()); } - if (from._internal_startlayer() != 0) { - _this->_internal_set_startlayer(from._internal_startlayer()); - } if (from._internal_isenable() != 0) { _this->_internal_set_isenable(from._internal_isenable()); } @@ -1797,8 +1620,8 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (from._internal_isshow() != 0) { _this->_internal_set_isshow(from._internal_isshow()); } - if (from._internal_hadassign() != 0) { - _this->_internal_set_hadassign(from._internal_hadassign()); + if (from._internal_startlayer() != 0) { + _this->_internal_set_startlayer(from._internal_startlayer()); } if (from._internal_endlayer() != 0) { _this->_internal_set_endlayer(from._internal_endlayer()); @@ -1811,21 +1634,6 @@ void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::p if (raw_powder != 0) { _this->_internal_set_powder(from._internal_powder()); } - if (from._internal_seqno() != 0) { - _this->_internal_set_seqno(from._internal_seqno()); - } - if (from._internal_controlno() != 0) { - _this->_internal_set_controlno(from._internal_controlno()); - } - if (from._internal_serialno() != 0) { - _this->_internal_set_serialno(from._internal_serialno()); - } - if (from._internal_controltype() != 0) { - _this->_internal_set_controltype(from._internal_controltype()); - } - if (from._internal_hadmatch() != 0) { - _this->_internal_set_hadmatch(from._internal_hadmatch()); - } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -1851,13 +1659,9 @@ void ParamInfo::InternalSwap(ParamInfo* other) { &other->_impl_.strvalue_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.context_, lhs_arena, &other->_impl_.context_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardname_, lhs_arena, - &other->_impl_.cardname_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardip_, lhs_arena, - &other->_impl_.cardip_, rhs_arena); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_) - + sizeof(ParamInfo::_impl_.hadmatch_) + PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_) + + sizeof(ParamInfo::_impl_.powder_) - PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_)>( reinterpret_cast(&_impl_.valuetype_), reinterpret_cast(&other->_impl_.valuetype_)); @@ -4380,6 +4184,306 @@ void ImgInfoResponce::InternalSwap(ImgInfoResponce* other) { } // =================================================================== +class ComResponce_FileInfoStruct::_Internal { + public: +}; + +ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:stream.ComResponce.FileInfoStruct) +} +ComResponce_FileInfoStruct::ComResponce_FileInfoStruct(const ComResponce_FileInfoStruct& from) : ::google::protobuf::Message() { + ComResponce_FileInfoStruct* const _this = this; + (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, + decltype(_impl_.filepath_){}, + decltype(_impl_.filename_){}, + decltype(_impl_.ext_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + _this->_impl_.type_.Set(from._internal_type(), _this->GetArenaForAllocation()); + } + _impl_.filepath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_filepath().empty()) { + _this->_impl_.filepath_.Set(from._internal_filepath(), _this->GetArenaForAllocation()); + } + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_filename().empty()) { + _this->_impl_.filename_.Set(from._internal_filename(), _this->GetArenaForAllocation()); + } + _impl_.ext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_ext().empty()) { + _this->_impl_.ext_.Set(from._internal_ext(), _this->GetArenaForAllocation()); + } + + // @@protoc_insertion_point(copy_constructor:stream.ComResponce.FileInfoStruct) +} +inline void ComResponce_FileInfoStruct::SharedCtor(::_pb::Arena* arena) { + (void)arena; + new (&_impl_) Impl_{ + decltype(_impl_.type_){}, + decltype(_impl_.filepath_){}, + decltype(_impl_.filename_){}, + decltype(_impl_.ext_){}, + /*decltype(_impl_._cached_size_)*/ {}, + }; + _impl_.type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filepath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} +ComResponce_FileInfoStruct::~ComResponce_FileInfoStruct() { + // @@protoc_insertion_point(destructor:stream.ComResponce.FileInfoStruct) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + SharedDtor(); +} +inline void ComResponce_FileInfoStruct::SharedDtor() { + ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.type_.Destroy(); + _impl_.filepath_.Destroy(); + _impl_.filename_.Destroy(); + _impl_.ext_.Destroy(); +} +void ComResponce_FileInfoStruct::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +PROTOBUF_NOINLINE void ComResponce_FileInfoStruct::Clear() { +// @@protoc_insertion_point(message_clear_start:stream.ComResponce.FileInfoStruct) + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.type_.ClearToEmpty(); + _impl_.filepath_.ClearToEmpty(); + _impl_.filename_.ClearToEmpty(); + _impl_.ext_.ClearToEmpty(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ComResponce_FileInfoStruct::_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<2, 4, 0, 0, 2> ComResponce_FileInfoStruct::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ComResponce_FileInfoStruct_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // bytes ext = 4; + {::_pbi::TcParser::FastBS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.ext_)}}, + // bytes type = 1; + {::_pbi::TcParser::FastBS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.type_)}}, + // bytes filePath = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filepath_)}}, + // bytes fileName = 3; + {::_pbi::TcParser::FastBS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filename_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bytes type = 1; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes filePath = 2; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filepath_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes fileName = 3; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.filename_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // bytes ext = 4; + {PROTOBUF_FIELD_OFFSET(ComResponce_FileInfoStruct, _impl_.ext_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + }}, +}; + +::uint8_t* ComResponce_FileInfoStruct::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:stream.ComResponce.FileInfoStruct) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // bytes type = 1; + if (!this->_internal_type().empty()) { + const std::string& _s = this->_internal_type(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + + // bytes filePath = 2; + if (!this->_internal_filepath().empty()) { + const std::string& _s = this->_internal_filepath(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // bytes fileName = 3; + if (!this->_internal_filename().empty()) { + const std::string& _s = this->_internal_filename(); + target = stream->WriteBytesMaybeAliased(3, _s, target); + } + + // bytes ext = 4; + if (!this->_internal_ext().empty()) { + const std::string& _s = this->_internal_ext(); + target = stream->WriteBytesMaybeAliased(4, _s, 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.ComResponce.FileInfoStruct) + return target; +} + +::size_t ComResponce_FileInfoStruct::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:stream.ComResponce.FileInfoStruct) + ::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 type = 1; + if (!this->_internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_type()); + } + + // bytes filePath = 2; + if (!this->_internal_filepath().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_filepath()); + } + + // bytes fileName = 3; + if (!this->_internal_filename().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_filename()); + } + + // bytes ext = 4; + if (!this->_internal_ext().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_ext()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData ComResponce_FileInfoStruct::_class_data_ = { + ::google::protobuf::Message::CopyWithSourceCheck, + ComResponce_FileInfoStruct::MergeImpl +}; +const ::google::protobuf::Message::ClassData*ComResponce_FileInfoStruct::GetClassData() const { return &_class_data_; } + + +void ComResponce_FileInfoStruct::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.ComResponce.FileInfoStruct) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } + if (!from._internal_filepath().empty()) { + _this->_internal_set_filepath(from._internal_filepath()); + } + if (!from._internal_filename().empty()) { + _this->_internal_set_filename(from._internal_filename()); + } + if (!from._internal_ext().empty()) { + _this->_internal_set_ext(from._internal_ext()); + } + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); +} + +void ComResponce_FileInfoStruct::CopyFrom(const ComResponce_FileInfoStruct& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:stream.ComResponce.FileInfoStruct) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +PROTOBUF_NOINLINE bool ComResponce_FileInfoStruct::IsInitialized() const { + return true; +} + +void ComResponce_FileInfoStruct::InternalSwap(ComResponce_FileInfoStruct* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, lhs_arena, + &other->_impl_.type_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filepath_, lhs_arena, + &other->_impl_.filepath_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, lhs_arena, + &other->_impl_.filename_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ext_, lhs_arena, + &other->_impl_.ext_, rhs_arena); +} + +::google::protobuf::Metadata ComResponce_FileInfoStruct::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, + file_level_metadata_stream_2eproto[11]); +} +// =================================================================== + class ComResponce::_Internal { public: }; @@ -4393,7 +4497,9 @@ ComResponce::ComResponce(const ComResponce& from) : ::google::protobuf::Message( ComResponce* const _this = this; (void)_this; new (&_impl_) Impl_{ + decltype(_impl_.fileinfo_){from._impl_.fileinfo_}, decltype(_impl_.data_){}, + decltype(_impl_.directory_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -4405,19 +4511,32 @@ ComResponce::ComResponce(const ComResponce& from) : ::google::protobuf::Message( if (!from._internal_data().empty()) { _this->_impl_.data_.Set(from._internal_data(), _this->GetArenaForAllocation()); } + _impl_.directory_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_directory().empty()) { + _this->_impl_.directory_.Set(from._internal_directory(), _this->GetArenaForAllocation()); + } // @@protoc_insertion_point(copy_constructor:stream.ComResponce) } inline void ComResponce::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ + decltype(_impl_.fileinfo_){arena}, decltype(_impl_.data_){}, + decltype(_impl_.directory_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.data_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.data_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directory_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ComResponce::~ComResponce() { // @@protoc_insertion_point(destructor:stream.ComResponce) @@ -4426,7 +4545,9 @@ ComResponce::~ComResponce() { } inline void ComResponce::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fileinfo_.~RepeatedPtrField(); _impl_.data_.Destroy(); + _impl_.directory_.Destroy(); } void ComResponce::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); @@ -4438,7 +4559,9 @@ PROTOBUF_NOINLINE void ComResponce::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _internal_mutable_fileinfo()->Clear(); _impl_.data_.ClearToEmpty(); + _impl_.directory_.ClearToEmpty(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -4450,32 +4573,45 @@ const char* ComResponce::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> ComResponce::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), &_ComResponce_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ + {::_pbi::TcParser::MiniParse, {}}, // bytes data = 1; {::_pbi::TcParser::FastBS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_)}}, + // bytes directory = 2; + {::_pbi::TcParser::FastBS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.directory_)}}, + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.fileinfo_)}}, }}, {{ 65535, 65535 }}, {{ // bytes data = 1; {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ + // bytes directory = 2; + {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.directory_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + {PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.fileinfo_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::stream::ComResponce_FileInfoStruct>()}, + }}, {{ }}, }; @@ -4492,6 +4628,20 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { target = stream->WriteBytesMaybeAliased(1, _s, target); } + // bytes directory = 2; + if (!this->_internal_directory().empty()) { + const std::string& _s = this->_internal_directory(); + target = stream->WriteBytesMaybeAliased(2, _s, target); + } + + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + for (unsigned i = 0, + n = static_cast(this->_internal_fileinfo_size()); i < n; i++) { + const auto& repfield = this->_internal_fileinfo().Get(i); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -4509,12 +4659,24 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ComResponce::_table_ = { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + total_size += 1UL * this->_internal_fileinfo_size(); + for (const auto& msg : this->_internal_fileinfo()) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } // bytes data = 1; if (!this->_internal_data().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_data()); } + // bytes directory = 2; + if (!this->_internal_directory().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->_internal_directory()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -4533,9 +4695,13 @@ void ComResponce::MergeImpl(::google::protobuf::Message& to_msg, const ::google: ::uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_internal_mutable_fileinfo()->MergeFrom(from._internal_fileinfo()); if (!from._internal_data().empty()) { _this->_internal_set_data(from._internal_data()); } + if (!from._internal_directory().empty()) { + _this->_internal_set_directory(from._internal_directory()); + } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } @@ -4555,14 +4721,17 @@ void ComResponce::InternalSwap(ComResponce* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fileinfo_.InternalSwap(&other->_impl_.fileinfo_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, lhs_arena, &other->_impl_.data_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, lhs_arena, + &other->_impl_.directory_, rhs_arena); } ::google::protobuf::Metadata ComResponce::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, - file_level_metadata_stream_2eproto[11]); + file_level_metadata_stream_2eproto[12]); } // =================================================================== @@ -4734,7 +4903,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[12]); + file_level_metadata_stream_2eproto[13]); } // =================================================================== @@ -5539,7 +5708,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[13]); + file_level_metadata_stream_2eproto[14]); } // =================================================================== @@ -5835,7 +6004,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[14]); + file_level_metadata_stream_2eproto[15]); } // =================================================================== @@ -6761,7 +6930,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[15]); + file_level_metadata_stream_2eproto[16]); } // =================================================================== @@ -7849,7 +8018,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[16]); + file_level_metadata_stream_2eproto[17]); } // =================================================================== @@ -8667,7 +8836,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[17]); + file_level_metadata_stream_2eproto[18]); } // =================================================================== @@ -9306,7 +9475,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[18]); + file_level_metadata_stream_2eproto[19]); } // =================================================================== @@ -9616,7 +9785,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[19]); + file_level_metadata_stream_2eproto[20]); } // =================================================================== @@ -9898,7 +10067,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[20]); + file_level_metadata_stream_2eproto[21]); } // @@protoc_insertion_point(namespace_scope) } // namespace stream diff --git a/TestClient/protobuf/stream.pb.h b/TestClient/protobuf/stream.pb.h index f1a7c96..e6b40c2 100644 --- a/TestClient/protobuf/stream.pb.h +++ b/TestClient/protobuf/stream.pb.h @@ -62,6 +62,9 @@ extern ChainDataBlockDefaultTypeInternal _ChainDataBlock_default_instance_; class ComResponce; struct ComResponceDefaultTypeInternal; extern ComResponceDefaultTypeInternal _ComResponce_default_instance_; +class ComResponce_FileInfoStruct; +struct ComResponce_FileInfoStructDefaultTypeInternal; +extern ComResponce_FileInfoStructDefaultTypeInternal _ComResponce_FileInfoStruct_default_instance_; class CorrectParamCfg; struct CorrectParamCfgDefaultTypeInternal; extern CorrectParamCfgDefaultTypeInternal _CorrectParamCfg_default_instance_; @@ -338,21 +341,13 @@ class ParamInfo final : kNameKeyFieldNumber = 1, kStrValueFieldNumber = 2, kContextFieldNumber = 4, - kCardNameFieldNumber = 15, - kCardIPFieldNumber = 16, kValueTypeFieldNumber = 3, - kStartLayerFieldNumber = 8, kIsEnableFieldNumber = 5, kIsAlarmFieldNumber = 6, kIsShowFieldNumber = 7, - kHadAssignFieldNumber = 17, + kStartLayerFieldNumber = 8, kEndLayerFieldNumber = 9, kPowderFieldNumber = 10, - kSeqNoFieldNumber = 11, - kControlNoFieldNumber = 12, - kSerialNoFieldNumber = 13, - kControlTypeFieldNumber = 14, - kHadMatchFieldNumber = 18, }; // bytes nameKey = 1; void clear_namekey() ; @@ -401,38 +396,6 @@ class ParamInfo final : const std::string& value); std::string* _internal_mutable_context(); - public: - // bytes cardName = 15; - void clear_cardname() ; - const std::string& cardname() const; - template - void set_cardname(Arg_&& arg, Args_... args); - std::string* mutable_cardname(); - PROTOBUF_NODISCARD std::string* release_cardname(); - void set_allocated_cardname(std::string* ptr); - - private: - const std::string& _internal_cardname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cardname( - const std::string& value); - std::string* _internal_mutable_cardname(); - - public: - // bytes cardIP = 16; - void clear_cardip() ; - const std::string& cardip() const; - template - void set_cardip(Arg_&& arg, Args_... args); - std::string* mutable_cardip(); - PROTOBUF_NODISCARD std::string* release_cardip(); - void set_allocated_cardip(std::string* ptr); - - private: - const std::string& _internal_cardip() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cardip( - const std::string& value); - std::string* _internal_mutable_cardip(); - public: // .stream.TYPE valueType = 3; void clear_valuetype() ; @@ -443,16 +406,6 @@ class ParamInfo final : ::stream::TYPE _internal_valuetype() const; void _internal_set_valuetype(::stream::TYPE value); - public: - // int32 startLayer = 8; - void clear_startlayer() ; - ::int32_t startlayer() const; - void set_startlayer(::int32_t value); - - private: - ::int32_t _internal_startlayer() const; - void _internal_set_startlayer(::int32_t value); - public: // bool isEnable = 5; void clear_isenable() ; @@ -484,14 +437,14 @@ class ParamInfo final : void _internal_set_isshow(bool value); public: - // bool hadAssign = 17; - void clear_hadassign() ; - bool hadassign() const; - void set_hadassign(bool value); + // int32 startLayer = 8; + void clear_startlayer() ; + ::int32_t startlayer() const; + void set_startlayer(::int32_t value); private: - bool _internal_hadassign() const; - void _internal_set_hadassign(bool value); + ::int32_t _internal_startlayer() const; + void _internal_set_startlayer(::int32_t value); public: // int32 endLayer = 9; @@ -513,63 +466,13 @@ class ParamInfo final : float _internal_powder() const; void _internal_set_powder(float value); - public: - // int32 seqNo = 11; - void clear_seqno() ; - ::int32_t seqno() const; - void set_seqno(::int32_t value); - - private: - ::int32_t _internal_seqno() const; - void _internal_set_seqno(::int32_t value); - - public: - // int32 controlNo = 12; - void clear_controlno() ; - ::int32_t controlno() const; - void set_controlno(::int32_t value); - - private: - ::int32_t _internal_controlno() const; - void _internal_set_controlno(::int32_t value); - - public: - // int32 serialNo = 13; - void clear_serialno() ; - ::int32_t serialno() const; - void set_serialno(::int32_t value); - - private: - ::int32_t _internal_serialno() const; - void _internal_set_serialno(::int32_t value); - - public: - // int32 controlType = 14; - void clear_controltype() ; - ::int32_t controltype() const; - void set_controltype(::int32_t value); - - private: - ::int32_t _internal_controltype() const; - void _internal_set_controltype(::int32_t value); - - public: - // bool hadMatch = 18; - void clear_hadmatch() ; - bool hadmatch() const; - void set_hadmatch(bool value); - - private: - bool _internal_hadmatch() const; - void _internal_set_hadmatch(bool value); - public: // @@protoc_insertion_point(class_scope:stream.ParamInfo) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 18, 0, 0, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<4, 10, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -577,21 +480,13 @@ class ParamInfo final : ::google::protobuf::internal::ArenaStringPtr namekey_; ::google::protobuf::internal::ArenaStringPtr strvalue_; ::google::protobuf::internal::ArenaStringPtr context_; - ::google::protobuf::internal::ArenaStringPtr cardname_; - ::google::protobuf::internal::ArenaStringPtr cardip_; int valuetype_; - ::int32_t startlayer_; bool isenable_; bool isalarm_; bool isshow_; - bool hadassign_; + ::int32_t startlayer_; ::int32_t endlayer_; float powder_; - ::int32_t seqno_; - ::int32_t controlno_; - ::int32_t serialno_; - ::int32_t controltype_; - bool hadmatch_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -2521,6 +2416,224 @@ class ImgInfoResponce final : friend struct ::TableStruct_stream_2eproto; };// ------------------------------------------------------------------- +class ComResponce_FileInfoStruct final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ComResponce.FileInfoStruct) */ { + public: + inline ComResponce_FileInfoStruct() : ComResponce_FileInfoStruct(nullptr) {} + ~ComResponce_FileInfoStruct() override; + template + explicit PROTOBUF_CONSTEXPR ComResponce_FileInfoStruct(::google::protobuf::internal::ConstantInitialized); + + ComResponce_FileInfoStruct(const ComResponce_FileInfoStruct& from); + ComResponce_FileInfoStruct(ComResponce_FileInfoStruct&& from) noexcept + : ComResponce_FileInfoStruct() { + *this = ::std::move(from); + } + + inline ComResponce_FileInfoStruct& operator=(const ComResponce_FileInfoStruct& from) { + CopyFrom(from); + return *this; + } + inline ComResponce_FileInfoStruct& operator=(ComResponce_FileInfoStruct&& 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 ComResponce_FileInfoStruct& default_instance() { + return *internal_default_instance(); + } + static inline const ComResponce_FileInfoStruct* internal_default_instance() { + return reinterpret_cast( + &_ComResponce_FileInfoStruct_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ComResponce_FileInfoStruct& a, ComResponce_FileInfoStruct& b) { + a.Swap(&b); + } + inline void Swap(ComResponce_FileInfoStruct* 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(ComResponce_FileInfoStruct* other) { + if (other == this) return; + ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ComResponce_FileInfoStruct* New(::google::protobuf::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ComResponce_FileInfoStruct& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom( const ComResponce_FileInfoStruct& from) { + ComResponce_FileInfoStruct::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(ComResponce_FileInfoStruct* other); + + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { + return "stream.ComResponce.FileInfoStruct"; + } + protected: + explicit ComResponce_FileInfoStruct(::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 { + kTypeFieldNumber = 1, + kFilePathFieldNumber = 2, + kFileNameFieldNumber = 3, + kExtFieldNumber = 4, + }; + // bytes type = 1; + void clear_type() ; + const std::string& type() const; + template + void set_type(Arg_&& arg, Args_... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* ptr); + + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( + const std::string& value); + std::string* _internal_mutable_type(); + + public: + // bytes filePath = 2; + void clear_filepath() ; + const std::string& filepath() const; + template + void set_filepath(Arg_&& arg, Args_... args); + std::string* mutable_filepath(); + PROTOBUF_NODISCARD std::string* release_filepath(); + void set_allocated_filepath(std::string* ptr); + + private: + const std::string& _internal_filepath() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filepath( + const std::string& value); + std::string* _internal_mutable_filepath(); + + public: + // bytes fileName = 3; + void clear_filename() ; + const std::string& filename() const; + template + void set_filename(Arg_&& arg, Args_... args); + std::string* mutable_filename(); + PROTOBUF_NODISCARD std::string* release_filename(); + void set_allocated_filename(std::string* ptr); + + private: + const std::string& _internal_filename() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( + const std::string& value); + std::string* _internal_mutable_filename(); + + public: + // bytes ext = 4; + void clear_ext() ; + const std::string& ext() const; + template + void set_ext(Arg_&& arg, Args_... args); + std::string* mutable_ext(); + PROTOBUF_NODISCARD std::string* release_ext(); + void set_allocated_ext(std::string* ptr); + + private: + const std::string& _internal_ext() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ext( + const std::string& value); + std::string* _internal_mutable_ext(); + + public: + // @@protoc_insertion_point(class_scope:stream.ComResponce.FileInfoStruct) + private: + class _Internal; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 0, 2> _table_; + template friend class ::google::protobuf::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr filepath_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr ext_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_stream_2eproto; +};// ------------------------------------------------------------------- + class ComResponce final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stream.ComResponce) */ { public: @@ -2577,7 +2690,7 @@ class ComResponce final : &_ComResponce_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(ComResponce& a, ComResponce& b) { a.Swap(&b); @@ -2646,11 +2759,33 @@ class ComResponce final : // nested types ---------------------------------------------------- + typedef ComResponce_FileInfoStruct FileInfoStruct; + // accessors ------------------------------------------------------- enum : int { + kFileInfoFieldNumber = 3, kDataFieldNumber = 1, + kDirectoryFieldNumber = 2, }; + // repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; + int fileinfo_size() const; + private: + int _internal_fileinfo_size() const; + + public: + void clear_fileinfo() ; + ::stream::ComResponce_FileInfoStruct* mutable_fileinfo(int index); + ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >* + mutable_fileinfo(); + private: + const ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>& _internal_fileinfo() const; + ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>* _internal_mutable_fileinfo(); + public: + const ::stream::ComResponce_FileInfoStruct& fileinfo(int index) const; + ::stream::ComResponce_FileInfoStruct* add_fileinfo(); + const ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >& + fileinfo() const; // bytes data = 1; void clear_data() ; const std::string& data() const; @@ -2666,18 +2801,36 @@ class ComResponce final : const std::string& value); std::string* _internal_mutable_data(); + public: + // bytes directory = 2; + void clear_directory() ; + const std::string& directory() const; + template + void set_directory(Arg_&& arg, Args_... args); + std::string* mutable_directory(); + PROTOBUF_NODISCARD std::string* release_directory(); + void set_allocated_directory(std::string* ptr); + + private: + const std::string& _internal_directory() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory( + const std::string& value); + std::string* _internal_mutable_directory(); + public: // @@protoc_insertion_point(class_scope:stream.ComResponce) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2> _table_; + static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct > fileinfo_; ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr directory_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; @@ -2741,7 +2894,7 @@ class ScannerCrtlCfgResp final : &_ScannerCrtlCfgResp_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(ScannerCrtlCfgResp& a, ScannerCrtlCfgResp& b) { a.Swap(&b); @@ -2907,7 +3060,7 @@ class ScannerCrtlCfgData final : &_ScannerCrtlCfgData_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(ScannerCrtlCfgData& a, ScannerCrtlCfgData& b) { a.Swap(&b); @@ -3353,7 +3506,7 @@ class FixPointData final : &_FixPointData_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(FixPointData& a, FixPointData& b) { a.Swap(&b); @@ -3559,7 +3712,7 @@ class ScanParamCfg final : &_ScanParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(ScanParamCfg& a, ScanParamCfg& b) { a.Swap(&b); @@ -4065,7 +4218,7 @@ class CorrectParamCfg final : &_CorrectParamCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(CorrectParamCfg& a, CorrectParamCfg& b) { a.Swap(&b); @@ -4523,7 +4676,7 @@ class ScanTestCfg final : &_ScanTestCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(ScanTestCfg& a, ScanTestCfg& b) { a.Swap(&b); @@ -4933,7 +5086,7 @@ class SkyWritingCfg final : &_SkyWritingCfg_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(SkyWritingCfg& a, SkyWritingCfg& b) { a.Swap(&b); @@ -5283,7 +5436,7 @@ class PowerCompensate final : &_PowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(PowerCompensate& a, PowerCompensate& b) { a.Swap(&b); @@ -5489,7 +5642,7 @@ class TimePowerCompensate final : &_TimePowerCompensate_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(TimePowerCompensate& a, TimePowerCompensate& b) { a.Swap(&b); @@ -5962,240 +6115,6 @@ inline void ParamInfo::_internal_set_powder(float value) { _impl_.powder_ = value; } -// int32 seqNo = 11; -inline void ParamInfo::clear_seqno() { - _impl_.seqno_ = 0; -} -inline ::int32_t ParamInfo::seqno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.seqNo) - return _internal_seqno(); -} -inline void ParamInfo::set_seqno(::int32_t value) { - _internal_set_seqno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.seqNo) -} -inline ::int32_t ParamInfo::_internal_seqno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.seqno_; -} -inline void ParamInfo::_internal_set_seqno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.seqno_ = value; -} - -// int32 controlNo = 12; -inline void ParamInfo::clear_controlno() { - _impl_.controlno_ = 0; -} -inline ::int32_t ParamInfo::controlno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.controlNo) - return _internal_controlno(); -} -inline void ParamInfo::set_controlno(::int32_t value) { - _internal_set_controlno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.controlNo) -} -inline ::int32_t ParamInfo::_internal_controlno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controlno_; -} -inline void ParamInfo::_internal_set_controlno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controlno_ = value; -} - -// int32 serialNo = 13; -inline void ParamInfo::clear_serialno() { - _impl_.serialno_ = 0; -} -inline ::int32_t ParamInfo::serialno() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.serialNo) - return _internal_serialno(); -} -inline void ParamInfo::set_serialno(::int32_t value) { - _internal_set_serialno(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.serialNo) -} -inline ::int32_t ParamInfo::_internal_serialno() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.serialno_; -} -inline void ParamInfo::_internal_set_serialno(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.serialno_ = value; -} - -// int32 controlType = 14; -inline void ParamInfo::clear_controltype() { - _impl_.controltype_ = 0; -} -inline ::int32_t ParamInfo::controltype() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.controlType) - return _internal_controltype(); -} -inline void ParamInfo::set_controltype(::int32_t value) { - _internal_set_controltype(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.controlType) -} -inline ::int32_t ParamInfo::_internal_controltype() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.controltype_; -} -inline void ParamInfo::_internal_set_controltype(::int32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.controltype_ = value; -} - -// bytes cardName = 15; -inline void ParamInfo::clear_cardname() { - _impl_.cardname_.ClearToEmpty(); -} -inline const std::string& ParamInfo::cardname() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.cardName) - return _internal_cardname(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ParamInfo::set_cardname(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardname_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:stream.ParamInfo.cardName) -} -inline std::string* ParamInfo::mutable_cardname() { - std::string* _s = _internal_mutable_cardname(); - // @@protoc_insertion_point(field_mutable:stream.ParamInfo.cardName) - return _s; -} -inline const std::string& ParamInfo::_internal_cardname() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cardname_.Get(); -} -inline void ParamInfo::_internal_set_cardname(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardname_.Set(value, GetArenaForAllocation()); -} -inline std::string* ParamInfo::_internal_mutable_cardname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.cardname_.Mutable( GetArenaForAllocation()); -} -inline std::string* ParamInfo::release_cardname() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:stream.ParamInfo.cardName) - return _impl_.cardname_.Release(); -} -inline void ParamInfo::set_allocated_cardname(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cardname_.SetAllocated(value, GetArenaForAllocation()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cardname_.IsDefault()) { - _impl_.cardname_.Set("", GetArenaForAllocation()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:stream.ParamInfo.cardName) -} - -// bytes cardIP = 16; -inline void ParamInfo::clear_cardip() { - _impl_.cardip_.ClearToEmpty(); -} -inline const std::string& ParamInfo::cardip() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.cardIP) - return _internal_cardip(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ParamInfo::set_cardip(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardip_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:stream.ParamInfo.cardIP) -} -inline std::string* ParamInfo::mutable_cardip() { - std::string* _s = _internal_mutable_cardip(); - // @@protoc_insertion_point(field_mutable:stream.ParamInfo.cardIP) - return _s; -} -inline const std::string& ParamInfo::_internal_cardip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.cardip_.Get(); -} -inline void ParamInfo::_internal_set_cardip(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.cardip_.Set(value, GetArenaForAllocation()); -} -inline std::string* ParamInfo::_internal_mutable_cardip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - return _impl_.cardip_.Mutable( GetArenaForAllocation()); -} -inline std::string* ParamInfo::release_cardip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:stream.ParamInfo.cardIP) - return _impl_.cardip_.Release(); -} -inline void ParamInfo::set_allocated_cardip(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.cardip_.SetAllocated(value, GetArenaForAllocation()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cardip_.IsDefault()) { - _impl_.cardip_.Set("", GetArenaForAllocation()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:stream.ParamInfo.cardIP) -} - -// bool hadAssign = 17; -inline void ParamInfo::clear_hadassign() { - _impl_.hadassign_ = false; -} -inline bool ParamInfo::hadassign() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.hadAssign) - return _internal_hadassign(); -} -inline void ParamInfo::set_hadassign(bool value) { - _internal_set_hadassign(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.hadAssign) -} -inline bool ParamInfo::_internal_hadassign() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hadassign_; -} -inline void ParamInfo::_internal_set_hadassign(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.hadassign_ = value; -} - -// bool hadMatch = 18; -inline void ParamInfo::clear_hadmatch() { - _impl_.hadmatch_ = false; -} -inline bool ParamInfo::hadmatch() const { - // @@protoc_insertion_point(field_get:stream.ParamInfo.hadMatch) - return _internal_hadmatch(); -} -inline void ParamInfo::set_hadmatch(bool value) { - _internal_set_hadmatch(value); - // @@protoc_insertion_point(field_set:stream.ParamInfo.hadMatch) -} -inline bool ParamInfo::_internal_hadmatch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hadmatch_; -} -inline void ParamInfo::_internal_set_hadmatch(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.hadmatch_ = value; -} - // ------------------------------------------------------------------- // RequestInfo @@ -7236,6 +7155,214 @@ inline void ImgInfoResponce::_internal_set_height(::int32_t value) { // ------------------------------------------------------------------- +// ComResponce_FileInfoStruct + +// bytes type = 1; +inline void ComResponce_FileInfoStruct::clear_type() { + _impl_.type_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::type() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_type(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.type) +} +inline std::string* ComResponce_FileInfoStruct::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.type) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.type_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_type(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.type_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.type) + return _impl_.type_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_type(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.type) +} + +// bytes filePath = 2; +inline void ComResponce_FileInfoStruct::clear_filepath() { + _impl_.filepath_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::filepath() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.filePath) + return _internal_filepath(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_filepath(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filepath_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.filePath) +} +inline std::string* ComResponce_FileInfoStruct::mutable_filepath() { + std::string* _s = _internal_mutable_filepath(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.filePath) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_filepath() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.filepath_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_filepath(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filepath_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_filepath() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.filepath_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_filepath() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.filePath) + return _impl_.filepath_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_filepath(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.filepath_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.filepath_.IsDefault()) { + _impl_.filepath_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.filePath) +} + +// bytes fileName = 3; +inline void ComResponce_FileInfoStruct::clear_filename() { + _impl_.filename_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::filename() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.fileName) + return _internal_filename(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_filename(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filename_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.fileName) +} +inline std::string* ComResponce_FileInfoStruct::mutable_filename() { + std::string* _s = _internal_mutable_filename(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.fileName) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_filename() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.filename_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_filename(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.filename_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.filename_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_filename() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.fileName) + return _impl_.filename_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_filename(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.filename_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.filename_.IsDefault()) { + _impl_.filename_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.fileName) +} + +// bytes ext = 4; +inline void ComResponce_FileInfoStruct::clear_ext() { + _impl_.ext_.ClearToEmpty(); +} +inline const std::string& ComResponce_FileInfoStruct::ext() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.FileInfoStruct.ext) + return _internal_ext(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce_FileInfoStruct::set_ext(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.ext_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.FileInfoStruct.ext) +} +inline std::string* ComResponce_FileInfoStruct::mutable_ext() { + std::string* _s = _internal_mutable_ext(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.FileInfoStruct.ext) + return _s; +} +inline const std::string& ComResponce_FileInfoStruct::_internal_ext() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.ext_.Get(); +} +inline void ComResponce_FileInfoStruct::_internal_set_ext(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.ext_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::_internal_mutable_ext() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.ext_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce_FileInfoStruct::release_ext() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.FileInfoStruct.ext) + return _impl_.ext_.Release(); +} +inline void ComResponce_FileInfoStruct::set_allocated_ext(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ext_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.ext_.IsDefault()) { + _impl_.ext_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.FileInfoStruct.ext) +} + +// ------------------------------------------------------------------- + // ComResponce // bytes data = 1; @@ -7289,6 +7416,103 @@ inline void ComResponce::set_allocated_data(std::string* value) { // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.data) } +// bytes directory = 2; +inline void ComResponce::clear_directory() { + _impl_.directory_.ClearToEmpty(); +} +inline const std::string& ComResponce::directory() const { + // @@protoc_insertion_point(field_get:stream.ComResponce.directory) + return _internal_directory(); +} +template +inline PROTOBUF_ALWAYS_INLINE void ComResponce::set_directory(Arg_&& arg, + Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.directory_.SetBytes(static_cast(arg), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:stream.ComResponce.directory) +} +inline std::string* ComResponce::mutable_directory() { + std::string* _s = _internal_mutable_directory(); + // @@protoc_insertion_point(field_mutable:stream.ComResponce.directory) + return _s; +} +inline const std::string& ComResponce::_internal_directory() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.directory_.Get(); +} +inline void ComResponce::_internal_set_directory(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + _impl_.directory_.Set(value, GetArenaForAllocation()); +} +inline std::string* ComResponce::_internal_mutable_directory() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ; + return _impl_.directory_.Mutable( GetArenaForAllocation()); +} +inline std::string* ComResponce::release_directory() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + // @@protoc_insertion_point(field_release:stream.ComResponce.directory) + return _impl_.directory_.Release(); +} +inline void ComResponce::set_allocated_directory(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.directory_.SetAllocated(value, GetArenaForAllocation()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.directory_.IsDefault()) { + _impl_.directory_.Set("", GetArenaForAllocation()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:stream.ComResponce.directory) +} + +// repeated .stream.ComResponce.FileInfoStruct fileInfo = 3; +inline int ComResponce::_internal_fileinfo_size() const { + return _internal_fileinfo().size(); +} +inline int ComResponce::fileinfo_size() const { + return _internal_fileinfo_size(); +} +inline void ComResponce::clear_fileinfo() { + _internal_mutable_fileinfo()->Clear(); +} +inline ::stream::ComResponce_FileInfoStruct* ComResponce::mutable_fileinfo(int index) { + // @@protoc_insertion_point(field_mutable:stream.ComResponce.fileInfo) + return _internal_mutable_fileinfo()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >* +ComResponce::mutable_fileinfo() { + // @@protoc_insertion_point(field_mutable_list:stream.ComResponce.fileInfo) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_fileinfo(); +} +inline const ::stream::ComResponce_FileInfoStruct& ComResponce::fileinfo(int index) const { + // @@protoc_insertion_point(field_get:stream.ComResponce.fileInfo) + return _internal_fileinfo().Get(index); +} +inline ::stream::ComResponce_FileInfoStruct* ComResponce::add_fileinfo() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::stream::ComResponce_FileInfoStruct* _add = _internal_mutable_fileinfo()->Add(); + // @@protoc_insertion_point(field_add:stream.ComResponce.fileInfo) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField< ::stream::ComResponce_FileInfoStruct >& +ComResponce::fileinfo() const { + // @@protoc_insertion_point(field_list:stream.ComResponce.fileInfo) + return _internal_fileinfo(); +} +inline const ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>& +ComResponce::_internal_fileinfo() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return _impl_.fileinfo_; +} +inline ::google::protobuf::RepeatedPtrField<::stream::ComResponce_FileInfoStruct>* +ComResponce::_internal_mutable_fileinfo() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); + return &_impl_.fileinfo_; +} + // ------------------------------------------------------------------- // ScannerCrtlCfgResp diff --git a/TestClient/protobuf/stream.proto b/TestClient/protobuf/stream.proto index a1514b9..f06b512 100644 --- a/TestClient/protobuf/stream.proto +++ b/TestClient/protobuf/stream.proto @@ -49,14 +49,6 @@ message ParamInfo{ int32 endLayer = 9; float powder = 10; - int32 seqNo = 11; //ScannerControlCfg使用 - int32 controlNo = 12; - int32 serialNo = 13; - int32 controlType = 14; - bytes cardName = 15; - bytes cardIP = 16; - bool hadAssign = 17; - bool hadMatch = 18; //isEnable公用 } message RequestInfo { //读 @@ -139,9 +131,19 @@ message ImgInfoResponce{ int32 height = 3; } -//注册功能返回信息 IOVersionStr接口返回值 +//注册功能 IOVersionStr接口 盘符文件路径接口 message ComResponce{ bytes data = 1; + bytes directory = 2; + + message FileInfoStruct + { + bytes type = 1; //类型 + bytes filePath = 2; + bytes fileName = 3; + bytes ext = 4; //后缀 + } + repeated FileInfoStruct fileInfo = 3; } //ScannerCrtlCfg结构体 @@ -151,6 +153,7 @@ message ScannerCrtlCfgResp{ message ScannerCrtlCfgData{ int32 seqNo = 1; + repeated FixPointData fixPointData = 2; ScanParamCfg scanParamCfg = 3; ScanParamCfg hatchingParams = 4; @@ -312,3 +315,5 @@ service Stream { rpc ClientStream (stream RequestInfo) returns (ResponseInfo) {} // 客户端数据流模式 rpc AllStream (stream RequestInfo) returns (stream ResponseInfo) {} // 双向数据流模式 } + +