2024-03-26 10:33:00 +08:00

12549 lines
479 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
#include "common.pb.h"
#include <algorithm>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/generated_message_tctable_impl.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
template <typename>
PROTOBUF_CONSTEXPR StateMsg::StateMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.material_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.taskid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.oxygenvalue_)*/ 0,
/*decltype(_impl_.ambienttemp_)*/ 0,
/*decltype(_impl_.innertemp_)*/ 0,
/*decltype(_impl_.windvalue_)*/ 0,
/*decltype(_impl_.platformtempvalue_)*/ 0,
/*decltype(_impl_.platformtempsettingvalue_)*/ 0,
/*decltype(_impl_.moldpos_)*/ 0,
/*decltype(_impl_.powderpos_)*/ 0,
/*decltype(_impl_.armpos_)*/ 0,
/*decltype(_impl_.printstate_)*/ 0,
/*decltype(_impl_.layerindex_)*/ 0,
/*decltype(_impl_.limitflag_)*/ 0,
/*decltype(_impl_.acctime_)*/ ::uint64_t{0u},
/*decltype(_impl_.remaintime_)*/ ::uint64_t{0u},
/*decltype(_impl_.isdoorclose_)*/ false,
/*decltype(_impl_.layercount_)*/ 0,
/*decltype(_impl_.totaltime_)*/ ::uint64_t{0u},
/*decltype(_impl_.printtime_)*/ ::int64_t{0},
/*decltype(_impl_.remainpowder_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct StateMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR StateMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~StateMsgDefaultTypeInternal() {}
union {
StateMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StateMsgDefaultTypeInternal _StateMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR JobInfoMsg::JobInfoMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.name_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.material_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.taskid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.xsize_)*/ 0,
/*decltype(_impl_.ysize_)*/ 0,
/*decltype(_impl_.zsize_)*/ 0,
/*decltype(_impl_.layerthickness_)*/ 0,
/*decltype(_impl_.layercount_)*/ 0u,
/*decltype(_impl_.componentcount_)*/ 0u,
/*decltype(_impl_.volume_)*/ 0,
/*decltype(_impl_.supportvolume_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct JobInfoMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR JobInfoMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~JobInfoMsgDefaultTypeInternal() {}
union {
JobInfoMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobInfoMsgDefaultTypeInternal _JobInfoMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR StateChangeMsg::StateChangeMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.material_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.taskid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.oxygenvalue_)*/ 0,
/*decltype(_impl_.ambienttemp_)*/ 0,
/*decltype(_impl_.innertemp_)*/ 0,
/*decltype(_impl_.windvalue_)*/ 0,
/*decltype(_impl_.platformtempvalue_)*/ 0,
/*decltype(_impl_.platformtempsettingvalue_)*/ 0,
/*decltype(_impl_.moldpos_)*/ 0,
/*decltype(_impl_.powderpos_)*/ 0,
/*decltype(_impl_.armpos_)*/ 0,
/*decltype(_impl_.printstate_)*/ 0,
/*decltype(_impl_.layerindex_)*/ 0,
/*decltype(_impl_.limitflag_)*/ 0,
/*decltype(_impl_.acctime_)*/ ::uint64_t{0u},
/*decltype(_impl_.remaintime_)*/ ::uint64_t{0u},
/*decltype(_impl_.isdoorclose_)*/ false,
/*decltype(_impl_.layercount_)*/ 0,
/*decltype(_impl_.totaltime_)*/ ::uint64_t{0u},
/*decltype(_impl_.printtime_)*/ ::int64_t{0},
/*decltype(_impl_.remainpowder_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct StateChangeMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR StateChangeMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~StateChangeMsgDefaultTypeInternal() {}
union {
StateChangeMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StateChangeMsgDefaultTypeInternal _StateChangeMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR MachineMsg::MachineMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.password_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.name_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.location_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.machinetype_)*/ 0,
/*decltype(_impl_.purifiertype_)*/ 0,
/*decltype(_impl_.laststarttime_)*/ ::int64_t{0},
/*decltype(_impl_.lastshutdowntime_)*/ ::int64_t{0},
/*decltype(_impl_.language_)*/ 0,
/*decltype(_impl_.isonline_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct MachineMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR MachineMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~MachineMsgDefaultTypeInternal() {}
union {
MachineMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MachineMsgDefaultTypeInternal _MachineMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ErrorMsg::ErrorMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.errormsg_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.occurtime_)*/ ::int64_t{0},
/*decltype(_impl_.errortype_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ErrorMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ErrorMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ErrorMsgDefaultTypeInternal() {}
union {
ErrorMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorMsgDefaultTypeInternal _ErrorMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ParameterMsg::ParameterMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.type_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.laserspeed_)*/ 0,
/*decltype(_impl_.laserpower_)*/ 0,
/*decltype(_impl_.laserdiameter_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ParameterMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ParameterMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ParameterMsgDefaultTypeInternal() {}
union {
ParameterMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParameterMsgDefaultTypeInternal _ParameterMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PartMsg::PartMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.param_)*/ {},
/*decltype(_impl_.name_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct PartMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR PartMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~PartMsgDefaultTypeInternal() {}
union {
PartMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartMsgDefaultTypeInternal _PartMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR JobMsg::JobMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_._has_bits_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
/*decltype(_impl_.partmsg_)*/ {},
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobinfomsg_)*/ nullptr,
} {}
struct JobMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR JobMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~JobMsgDefaultTypeInternal() {}
union {
JobMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobMsgDefaultTypeInternal _JobMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerDataRespMsg::LayerDataRespMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.data_)*/ {},
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.datas_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.paramtype_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.type_)*/ 0,
/*decltype(_impl_.partid_)*/ 0,
/*decltype(_impl_.total_)*/ 0u,
/*decltype(_impl_.index_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerDataRespMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerDataRespMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerDataRespMsgDefaultTypeInternal() {}
union {
LayerDataRespMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDataRespMsgDefaultTypeInternal _LayerDataRespMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR JobParamMsg::JobParamMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.parts_)*/ {},
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobuid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.layercount_)*/ 0u,
/*decltype(_impl_.thickness_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct JobParamMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR JobParamMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~JobParamMsgDefaultTypeInternal() {}
union {
JobParamMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobParamMsgDefaultTypeInternal _JobParamMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerDataReqMsg::LayerDataReqMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.layerindex_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerDataReqMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerDataReqMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerDataReqMsgDefaultTypeInternal() {}
union {
LayerDataReqMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDataReqMsgDefaultTypeInternal _LayerDataReqMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ResponseState::ResponseState(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.statemsg_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ResponseStateDefaultTypeInternal {
PROTOBUF_CONSTEXPR ResponseStateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ResponseStateDefaultTypeInternal() {}
union {
ResponseState _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseStateDefaultTypeInternal _ResponseState_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CameraDataMsg::CameraDataMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.machineid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.imageformat_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.imagedatas_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.imagewidth_)*/ 0u,
/*decltype(_impl_.imageheight_)*/ 0u,
/*decltype(_impl_.imagedatasize_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct CameraDataMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR CameraDataMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CameraDataMsgDefaultTypeInternal() {}
union {
CameraDataMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CameraDataMsgDefaultTypeInternal _CameraDataMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR AlarmMsg::AlarmMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.time_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.task_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.type_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.detail_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct AlarmMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR AlarmMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~AlarmMsgDefaultTypeInternal() {}
union {
AlarmMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlarmMsgDefaultTypeInternal _AlarmMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR AlarmsMsg::AlarmsMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.alarms_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct AlarmsMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR AlarmsMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~AlarmsMsgDefaultTypeInternal() {}
union {
AlarmsMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlarmsMsgDefaultTypeInternal _AlarmsMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR TaskMsg::TaskMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.name_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.begintime_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.endtime_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.id_)*/ ::int64_t{0},
/*decltype(_impl_.deoxygenminute_)*/ ::int64_t{0},
/*decltype(_impl_.totalusetime_)*/ ::int64_t{0},
/*decltype(_impl_.logmoldposition_)*/ 0,
/*decltype(_impl_.finishlayer_)*/ 0u,
/*decltype(_impl_.isfinish_)*/ false,
/*decltype(_impl_.iscontinueprint_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct TaskMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR TaskMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~TaskMsgDefaultTypeInternal() {}
union {
TaskMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TaskMsgDefaultTypeInternal _TaskMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR TasksMsg::TasksMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.tasks_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct TasksMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR TasksMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~TasksMsgDefaultTypeInternal() {}
union {
TasksMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TasksMsgDefaultTypeInternal _TasksMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RecordTaskMsg::RecordTaskMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.taskid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.name_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.begintime_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.endtime_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.id_)*/ ::int64_t{0},
/*decltype(_impl_.deoxygensecond_)*/ ::int64_t{0},
/*decltype(_impl_.totalusesecond_)*/ ::int64_t{0},
/*decltype(_impl_.logmoldposition_)*/ 0,
/*decltype(_impl_.finishlayer_)*/ 0u,
/*decltype(_impl_.isfinish_)*/ false,
/*decltype(_impl_.iscontinueprint_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RecordTaskMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR RecordTaskMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RecordTaskMsgDefaultTypeInternal() {}
union {
RecordTaskMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordTaskMsgDefaultTypeInternal _RecordTaskMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RecordTasksMsg::RecordTasksMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.recordtasks_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RecordTasksMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR RecordTasksMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RecordTasksMsgDefaultTypeInternal() {}
union {
RecordTasksMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordTasksMsgDefaultTypeInternal _RecordTasksMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RecordTasksListMsg::RecordTasksListMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.recordtaskslist_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RecordTasksListMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR RecordTasksListMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RecordTasksListMsgDefaultTypeInternal() {}
union {
RecordTasksListMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecordTasksListMsgDefaultTypeInternal _RecordTasksListMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerStateMsg::LayerStateMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.layerdatetime_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.layerindex_)*/ 0u,
/*decltype(_impl_.logmoldposition_)*/ 0,
/*decltype(_impl_.logoxygen_)*/ 0,
/*decltype(_impl_.loginnertemp_)*/ 0,
/*decltype(_impl_.logplatetemp_)*/ 0,
/*decltype(_impl_.windspeed_)*/ 0,
/*decltype(_impl_.innerpressure_)*/ 0,
/*decltype(_impl_.fanfreq_)*/ 0,
/*decltype(_impl_.humidity_)*/ 0,
/*decltype(_impl_.watertemp_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerStateMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerStateMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerStateMsgDefaultTypeInternal() {}
union {
LayerStateMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerStateMsgDefaultTypeInternal _LayerStateMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerStatesMsg::LayerStatesMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.layerstates_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerStatesMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerStatesMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerStatesMsgDefaultTypeInternal() {}
union {
LayerStatesMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerStatesMsgDefaultTypeInternal _LayerStatesMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerImageMsg::LayerImageMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.type_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.id_)*/ ::int64_t{0},
/*decltype(_impl_.layer_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerImageMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerImageMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerImageMsgDefaultTypeInternal() {}
union {
LayerImageMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerImageMsgDefaultTypeInternal _LayerImageMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerImagesMsg::LayerImagesMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.images_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerImagesMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerImagesMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerImagesMsgDefaultTypeInternal() {}
union {
LayerImagesMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerImagesMsgDefaultTypeInternal _LayerImagesMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerImageDataMsg::LayerImageDataMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.imagedata_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.imagesize_)*/ ::uint64_t{0u},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerImageDataMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerImageDataMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerImageDataMsgDefaultTypeInternal() {}
union {
LayerImageDataMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerImageDataMsgDefaultTypeInternal _LayerImageDataMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerLoadCurveMsg::LayerLoadCurveMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.covertype_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.id_)*/ ::int64_t{0},
/*decltype(_impl_.layer_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerLoadCurveMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerLoadCurveMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerLoadCurveMsgDefaultTypeInternal() {}
union {
LayerLoadCurveMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerLoadCurveMsgDefaultTypeInternal _LayerLoadCurveMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerLoadCurvesMsg::LayerLoadCurvesMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.loadcurves_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerLoadCurvesMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerLoadCurvesMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerLoadCurvesMsgDefaultTypeInternal() {}
union {
LayerLoadCurvesMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerLoadCurvesMsgDefaultTypeInternal _LayerLoadCurvesMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerLoadCurveDataMsg::LayerLoadCurveDataMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.mold_)*/ {},
/*decltype(_impl_.powder_)*/ {},
/*decltype(_impl_.arm_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerLoadCurveDataMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerLoadCurveDataMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerLoadCurveDataMsgDefaultTypeInternal() {}
union {
LayerLoadCurveDataMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerLoadCurveDataMsgDefaultTypeInternal _LayerLoadCurveDataMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ReqRecordTaskMsg::ReqRecordTaskMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.taskid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ReqRecordTaskMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ReqRecordTaskMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ReqRecordTaskMsgDefaultTypeInternal() {}
union {
ReqRecordTaskMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqRecordTaskMsgDefaultTypeInternal _ReqRecordTaskMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ReqRecordTaskListMsg::ReqRecordTaskListMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.beginsecond_)*/ ::int64_t{0},
/*decltype(_impl_.endsecond_)*/ ::int64_t{0},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ReqRecordTaskListMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ReqRecordTaskListMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ReqRecordTaskListMsgDefaultTypeInternal() {}
union {
ReqRecordTaskListMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReqRecordTaskListMsgDefaultTypeInternal _ReqRecordTaskListMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR AlarmNotifyMsg::AlarmNotifyMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.jobname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.jobid_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.alarmcode_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.alarmcontent_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.happentime_)*/ ::uint64_t{0u},
/*decltype(_impl_.layerindex_)*/ 0,
/*decltype(_impl_.alarmtype_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct AlarmNotifyMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR AlarmNotifyMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~AlarmNotifyMsgDefaultTypeInternal() {}
union {
AlarmNotifyMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlarmNotifyMsgDefaultTypeInternal _AlarmNotifyMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RemoteJobResMsg::RemoteJobResMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.jsondata_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RemoteJobResMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR RemoteJobResMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RemoteJobResMsgDefaultTypeInternal() {}
union {
RemoteJobResMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoteJobResMsgDefaultTypeInternal _RemoteJobResMsg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR VersionInfoResMsg::VersionInfoResMsg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.version_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct VersionInfoResMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR VersionInfoResMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~VersionInfoResMsgDefaultTypeInternal() {}
union {
VersionInfoResMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionInfoResMsgDefaultTypeInternal _VersionInfoResMsg_default_instance_;
static ::_pb::Metadata file_level_metadata_common_2eproto[33];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2eproto[5];
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_common_2eproto = nullptr;
const ::uint32_t TableStruct_common_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::StateMsg, _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(::StateMsg, _impl_.oxygenvalue_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.ambienttemp_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.innertemp_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.windvalue_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.platformtempvalue_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.platformtempsettingvalue_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.moldpos_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.powderpos_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.armpos_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.printstate_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.layerindex_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.limitflag_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.isdoorclose_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.acctime_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.remaintime_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.totaltime_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.layercount_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.printtime_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.material_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.jobname_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.jobid_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.taskid_),
PROTOBUF_FIELD_OFFSET(::StateMsg, _impl_.remainpowder_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _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(::JobInfoMsg, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.xsize_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.ysize_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.zsize_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.material_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.layerthickness_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.layercount_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.componentcount_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.volume_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.supportvolume_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.jobid_),
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _impl_.taskid_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _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(::StateChangeMsg, _impl_.oxygenvalue_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.ambienttemp_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.innertemp_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.windvalue_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.platformtempvalue_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.platformtempsettingvalue_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.moldpos_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.powderpos_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.armpos_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.printstate_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.layerindex_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.limitflag_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.isdoorclose_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.acctime_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.remaintime_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.totaltime_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.layercount_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.printtime_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.material_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.jobname_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.jobid_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.taskid_),
PROTOBUF_FIELD_OFFSET(::StateChangeMsg, _impl_.remainpowder_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::MachineMsg, _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(::MachineMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.machinetype_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.purifiertype_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.laststarttime_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.lastshutdowntime_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.language_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.isonline_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.password_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::MachineMsg, _impl_.location_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::ErrorMsg, _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(::ErrorMsg, _impl_.errortype_),
PROTOBUF_FIELD_OFFSET(::ErrorMsg, _impl_.errormsg_),
PROTOBUF_FIELD_OFFSET(::ErrorMsg, _impl_.occurtime_),
PROTOBUF_FIELD_OFFSET(::ErrorMsg, _impl_.machineid_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::ParameterMsg, _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(::ParameterMsg, _impl_.type_),
PROTOBUF_FIELD_OFFSET(::ParameterMsg, _impl_.laserspeed_),
PROTOBUF_FIELD_OFFSET(::ParameterMsg, _impl_.laserpower_),
PROTOBUF_FIELD_OFFSET(::ParameterMsg, _impl_.laserdiameter_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::PartMsg, _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(::PartMsg, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::PartMsg, _impl_.param_),
PROTOBUF_FIELD_OFFSET(::JobMsg, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::JobMsg, _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(::JobMsg, _impl_.jobinfomsg_),
PROTOBUF_FIELD_OFFSET(::JobMsg, _impl_.partmsg_),
PROTOBUF_FIELD_OFFSET(::JobMsg, _impl_.machineid_),
0,
~0u,
~0u,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _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(::LayerDataRespMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.type_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.partid_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.total_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.index_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.data_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.datas_),
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _impl_.paramtype_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _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(::JobParamMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _impl_.jobname_),
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _impl_.jobuid_),
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _impl_.layercount_),
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _impl_.thickness_),
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _impl_.parts_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerDataReqMsg, _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(::LayerDataReqMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::LayerDataReqMsg, _impl_.layerindex_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::ResponseState, _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(::ResponseState, _impl_.statemsg_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _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(::CameraDataMsg, _impl_.machineid_),
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _impl_.imageformat_),
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _impl_.imagewidth_),
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _impl_.imageheight_),
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _impl_.imagedatasize_),
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _impl_.imagedatas_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::AlarmMsg, _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(::AlarmMsg, _impl_.time_),
PROTOBUF_FIELD_OFFSET(::AlarmMsg, _impl_.task_),
PROTOBUF_FIELD_OFFSET(::AlarmMsg, _impl_.type_),
PROTOBUF_FIELD_OFFSET(::AlarmMsg, _impl_.detail_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::AlarmsMsg, _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(::AlarmsMsg, _impl_.alarms_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::TaskMsg, _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(::TaskMsg, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.begintime_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.endtime_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.deoxygenminute_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.totalusetime_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.logmoldposition_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.finishlayer_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.isfinish_),
PROTOBUF_FIELD_OFFSET(::TaskMsg, _impl_.iscontinueprint_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::TasksMsg, _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(::TasksMsg, _impl_.tasks_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _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(::RecordTaskMsg, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.taskid_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.name_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.begintime_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.endtime_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.deoxygensecond_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.totalusesecond_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.logmoldposition_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.finishlayer_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.isfinish_),
PROTOBUF_FIELD_OFFSET(::RecordTaskMsg, _impl_.iscontinueprint_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::RecordTasksMsg, _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(::RecordTasksMsg, _impl_.recordtasks_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::RecordTasksListMsg, _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(::RecordTasksListMsg, _impl_.recordtaskslist_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _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(::LayerStateMsg, _impl_.layerdatetime_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.layerindex_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.logmoldposition_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.logoxygen_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.loginnertemp_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.logplatetemp_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.windspeed_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.innerpressure_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.fanfreq_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.humidity_),
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _impl_.watertemp_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerStatesMsg, _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(::LayerStatesMsg, _impl_.layerstates_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, _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(::LayerImageMsg, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, _impl_.layer_),
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, _impl_.type_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerImagesMsg, _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(::LayerImagesMsg, _impl_.images_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerImageDataMsg, _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(::LayerImageDataMsg, _impl_.imagesize_),
PROTOBUF_FIELD_OFFSET(::LayerImageDataMsg, _impl_.imagedata_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, _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(::LayerLoadCurveMsg, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, _impl_.layer_),
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, _impl_.covertype_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerLoadCurvesMsg, _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(::LayerLoadCurvesMsg, _impl_.loadcurves_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, _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(::LayerLoadCurveDataMsg, _impl_.mold_),
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, _impl_.powder_),
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, _impl_.arm_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::ReqRecordTaskMsg, _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(::ReqRecordTaskMsg, _impl_.taskid_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::ReqRecordTaskListMsg, _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(::ReqRecordTaskListMsg, _impl_.beginsecond_),
PROTOBUF_FIELD_OFFSET(::ReqRecordTaskListMsg, _impl_.endsecond_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _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(::AlarmNotifyMsg, _impl_.jobname_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.jobid_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.happentime_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.layerindex_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.alarmcode_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.alarmtype_),
PROTOBUF_FIELD_OFFSET(::AlarmNotifyMsg, _impl_.alarmcontent_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::RemoteJobResMsg, _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(::RemoteJobResMsg, _impl_.jsondata_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::VersionInfoResMsg, _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(::VersionInfoResMsg, _impl_.version_),
};
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::StateMsg)},
{32, -1, -1, sizeof(::JobInfoMsg)},
{52, -1, -1, sizeof(::StateChangeMsg)},
{84, -1, -1, sizeof(::MachineMsg)},
{102, -1, -1, sizeof(::ErrorMsg)},
{114, -1, -1, sizeof(::ParameterMsg)},
{126, -1, -1, sizeof(::PartMsg)},
{136, 147, -1, sizeof(::JobMsg)},
{150, -1, -1, sizeof(::LayerDataRespMsg)},
{166, -1, -1, sizeof(::JobParamMsg)},
{180, -1, -1, sizeof(::LayerDataReqMsg)},
{190, -1, -1, sizeof(::ResponseState)},
{199, -1, -1, sizeof(::CameraDataMsg)},
{213, -1, -1, sizeof(::AlarmMsg)},
{225, -1, -1, sizeof(::AlarmsMsg)},
{234, -1, -1, sizeof(::TaskMsg)},
{252, -1, -1, sizeof(::TasksMsg)},
{261, -1, -1, sizeof(::RecordTaskMsg)},
{280, -1, -1, sizeof(::RecordTasksMsg)},
{289, -1, -1, sizeof(::RecordTasksListMsg)},
{298, -1, -1, sizeof(::LayerStateMsg)},
{317, -1, -1, sizeof(::LayerStatesMsg)},
{326, -1, -1, sizeof(::LayerImageMsg)},
{337, -1, -1, sizeof(::LayerImagesMsg)},
{346, -1, -1, sizeof(::LayerImageDataMsg)},
{356, -1, -1, sizeof(::LayerLoadCurveMsg)},
{367, -1, -1, sizeof(::LayerLoadCurvesMsg)},
{376, -1, -1, sizeof(::LayerLoadCurveDataMsg)},
{387, -1, -1, sizeof(::ReqRecordTaskMsg)},
{396, -1, -1, sizeof(::ReqRecordTaskListMsg)},
{406, -1, -1, sizeof(::AlarmNotifyMsg)},
{421, -1, -1, sizeof(::RemoteJobResMsg)},
{430, -1, -1, sizeof(::VersionInfoResMsg)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::_StateMsg_default_instance_._instance,
&::_JobInfoMsg_default_instance_._instance,
&::_StateChangeMsg_default_instance_._instance,
&::_MachineMsg_default_instance_._instance,
&::_ErrorMsg_default_instance_._instance,
&::_ParameterMsg_default_instance_._instance,
&::_PartMsg_default_instance_._instance,
&::_JobMsg_default_instance_._instance,
&::_LayerDataRespMsg_default_instance_._instance,
&::_JobParamMsg_default_instance_._instance,
&::_LayerDataReqMsg_default_instance_._instance,
&::_ResponseState_default_instance_._instance,
&::_CameraDataMsg_default_instance_._instance,
&::_AlarmMsg_default_instance_._instance,
&::_AlarmsMsg_default_instance_._instance,
&::_TaskMsg_default_instance_._instance,
&::_TasksMsg_default_instance_._instance,
&::_RecordTaskMsg_default_instance_._instance,
&::_RecordTasksMsg_default_instance_._instance,
&::_RecordTasksListMsg_default_instance_._instance,
&::_LayerStateMsg_default_instance_._instance,
&::_LayerStatesMsg_default_instance_._instance,
&::_LayerImageMsg_default_instance_._instance,
&::_LayerImagesMsg_default_instance_._instance,
&::_LayerImageDataMsg_default_instance_._instance,
&::_LayerLoadCurveMsg_default_instance_._instance,
&::_LayerLoadCurvesMsg_default_instance_._instance,
&::_LayerLoadCurveDataMsg_default_instance_._instance,
&::_ReqRecordTaskMsg_default_instance_._instance,
&::_ReqRecordTaskListMsg_default_instance_._instance,
&::_AlarmNotifyMsg_default_instance_._instance,
&::_RemoteJobResMsg_default_instance_._instance,
&::_VersionInfoResMsg_default_instance_._instance,
};
const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
"\n\014common.proto\"\370\004\n\010StateMsg\022\023\n\013oxygenVal"
"ue\030\001 \001(\002\022\023\n\013ambientTemp\030\002 \001(\002\022\021\n\tinnerTe"
"mp\030\003 \001(\002\022\021\n\twindValue\030\004 \001(\002\022\031\n\021platformT"
"empValue\030\005 \001(\002\022 \n\030platformTempSettingVal"
"ue\030\006 \001(\002\022\017\n\007moldPos\030\007 \001(\002\022\021\n\tpowderPos\030\010"
" \001(\002\022\016\n\006armPos\030\t \001(\002\022(\n\nprintState\030\n \001(\016"
"2\024.StateMsg.PrintState\022\022\n\nlayerIndex\030\013 \001"
"(\005\022\021\n\tlimitFlag\030\014 \001(\005\022\021\n\tmachineId\030\r \001(\t"
"\022\023\n\013isDoorClose\030\016 \001(\010\022\017\n\007accTime\030\017 \001(\004\022\022"
"\n\nremainTime\030\020 \001(\004\022\021\n\ttotalTime\030\021 \001(\004\022\022\n"
"\nlayerCount\030\022 \001(\005\022\021\n\tprintTime\030\023 \001(\003\022\020\n\010"
"material\030\024 \001(\t\022\017\n\007jobName\030\025 \001(\t\022\r\n\005jobId"
"\030\026 \001(\t\022\016\n\006taskId\030\027 \001(\t\022\024\n\014remainPowder\030\030"
" \001(\002\"{\n\nPrintState\022\013\n\007STANDBY\020\000\022\021\n\rSTAND"
"BY_PAUSE\020\001\022\020\n\014STANDBY_STOP\020\002\022\014\n\010PREPRINT"
"\020\003\022\014\n\010PRINTING\020\004\022\n\n\006FINISH\020\005\022\t\n\005PAUSE\020\006\022"
"\010\n\004STOP\020\007\"\343\001\n\nJobInfoMsg\022\014\n\004name\030\001 \001(\t\022\r"
"\n\005xSize\030\002 \001(\002\022\r\n\005ySize\030\003 \001(\002\022\r\n\005zSize\030\004 "
"\001(\002\022\020\n\010material\030\005 \001(\t\022\026\n\016layerThickness\030"
"\006 \001(\002\022\022\n\nlayerCount\030\007 \001(\r\022\026\n\016componentCo"
"unt\030\010 \001(\r\022\016\n\006volume\030\t \001(\002\022\025\n\rsupportVolu"
"me\030\n \001(\002\022\r\n\005jobId\030\013 \001(\t\022\016\n\006taskId\030\014 \001(\t\""
"\204\005\n\016StateChangeMsg\022\023\n\013oxygenValue\030\001 \001(\002\022"
"\023\n\013ambientTemp\030\002 \001(\002\022\021\n\tinnerTemp\030\003 \001(\002\022"
"\021\n\twindValue\030\004 \001(\002\022\031\n\021platformTempValue\030"
"\005 \001(\002\022 \n\030platformTempSettingValue\030\006 \001(\002\022"
"\017\n\007moldPos\030\007 \001(\002\022\021\n\tpowderPos\030\010 \001(\002\022\016\n\006a"
"rmPos\030\t \001(\002\022.\n\nprintState\030\n \001(\0162\032.StateC"
"hangeMsg.PrintState\022\022\n\nlayerIndex\030\013 \001(\005\022"
"\021\n\tlimitFlag\030\014 \001(\005\022\021\n\tmachineId\030\r \001(\t\022\023\n"
"\013isDoorClose\030\016 \001(\010\022\017\n\007accTime\030\017 \001(\004\022\022\n\nr"
"emainTime\030\020 \001(\004\022\021\n\ttotalTime\030\021 \001(\004\022\022\n\nla"
"yerCount\030\022 \001(\005\022\021\n\tprintTime\030\023 \001(\003\022\020\n\010mat"
"erial\030\024 \001(\t\022\017\n\007jobName\030\025 \001(\t\022\r\n\005jobId\030\026 "
"\001(\t\022\016\n\006taskId\030\027 \001(\t\022\024\n\014remainPowder\030\030 \001("
"\002\"{\n\nPrintState\022\013\n\007STANDBY\020\000\022\021\n\rSTANDBY_"
"PAUSE\020\001\022\020\n\014STANDBY_STOP\020\002\022\014\n\010PREPRINT\020\003\022"
"\014\n\010PRINTING\020\004\022\n\n\006FINISH\020\005\022\t\n\005PAUSE\020\006\022\010\n\004"
"STOP\020\007\"\250\004\n\nMachineMsg\022\021\n\tmachineId\030\001 \001(\t"
"\022,\n\013machineType\030\002 \001(\0162\027.MachineMsg.Machi"
"neType\022.\n\014purifierType\030\003 \001(\0162\030.MachineMs"
"g.PurifierType\022\025\n\rlastStartTime\030\004 \001(\003\022\030\n"
"\020lastShutdownTime\030\005 \001(\003\022\020\n\010language\030\006 \001("
"\005\022\020\n\010isOnline\030\007 \001(\010\022\020\n\010password\030\010 \001(\t\022\014\n"
"\004name\030\t \001(\t\022\020\n\010location\030\n \001(\t\"\341\001\n\013Machin"
"eType\022\013\n\007HBD_100\020\000\022\013\n\007HBD_280\020\001\022\n\n\006HBD_8"
"0\020\002\022\013\n\007HBD_150\020\003\022\014\n\010HBD_280T\020\004\022\014\n\010HBD_20"
"0D\020\005\022\013\n\007HBD_350\020\006\022\014\n\010HBD_150T\020\007\022\014\n\010HBD_E"
"500\020\010\022\014\n\010HBD_V350\020\t\022\r\n\010HBD_1000\020\350\007\022\r\n\010HB"
"D_1500\020\351\007\022\017\n\nHBD_1200V0\020\352\007\022\r\n\010HBD_1200\020\353"
"\007\022\016\n\tHBD_E1000\020\354\007\">\n\014PurifierType\022\022\n\016HBD"
"_PURIFIER_1\020\000\022\006\n\002XT\020\001\022\022\n\016HBD_PURIFIER_2\020"
"\002\"\214\001\n\010ErrorMsg\022&\n\terrorType\030\001 \001(\0162\023.Erro"
"rMsg.ErrorType\022\020\n\010errorMsg\030\002 \001(\t\022\021\n\toccu"
"rTime\030\003 \001(\003\022\021\n\tmachineId\030\004 \001(\t\" \n\tErrorT"
"ype\022\010\n\004STOP\020\000\022\t\n\005PAUSE\020\001\"[\n\014ParameterMsg"
"\022\014\n\004type\030\001 \001(\t\022\022\n\nlaserSpeed\030\002 \001(\002\022\022\n\nla"
"serPower\030\003 \001(\002\022\025\n\rlaserDiameter\030\004 \001(\002\"5\n"
"\007PartMsg\022\014\n\004name\030\001 \001(\t\022\034\n\005param\030\002 \003(\0132\r."
"ParameterMsg\"W\n\006JobMsg\022\037\n\njobInfoMsg\030\001 \001"
"(\0132\013.JobInfoMsg\022\031\n\007partMsg\030\002 \003(\0132\010.PartM"
"sg\022\021\n\tmachineId\030\003 \001(\t\"\221\001\n\020LayerDataRespM"
"sg\022\021\n\tmachineId\030\001 \001(\t\022\014\n\004type\030\002 \001(\005\022\016\n\006p"
"artId\030\003 \001(\005\022\r\n\005total\030\004 \001(\r\022\r\n\005index\030\005 \001("
"\r\022\014\n\004data\030\006 \003(\002\022\r\n\005datas\030\007 \001(\014\022\021\n\tparamT"
"ype\030\010 \001(\t\"\201\001\n\013JobParamMsg\022\021\n\tmachineId\030\001"
" \001(\t\022\017\n\007jobName\030\002 \001(\t\022\016\n\006jobUid\030\003 \001(\t\022\022\n"
"\nlayerCount\030\004 \001(\r\022\021\n\tthickness\030\005 \001(\002\022\027\n\005"
"parts\030\006 \003(\0132\010.PartMsg\"8\n\017LayerDataReqMsg"
"\022\021\n\tmachineId\030\001 \001(\t\022\022\n\nlayerIndex\030\002 \001(\r\""
",\n\rResponseState\022\033\n\010stateMsg\030\001 \003(\0132\t.Sta"
"teMsg\"\213\001\n\rCameraDataMsg\022\021\n\tmachineId\030\001 \001"
"(\t\022\023\n\013imageFormat\030\002 \001(\t\022\022\n\nimageWidth\030\003 "
"\001(\r\022\023\n\013imageHeight\030\004 \001(\r\022\025\n\rimageDataSiz"
"e\030\005 \001(\r\022\022\n\nimageDatas\030\006 \001(\014\"D\n\010AlarmMsg\022"
"\014\n\004time\030\001 \001(\t\022\014\n\004task\030\002 \001(\t\022\014\n\004type\030\003 \001("
"\t\022\016\n\006detail\030\004 \001(\t\"&\n\tAlarmsMsg\022\031\n\006alarms"
"\030\001 \003(\0132\t.AlarmMsg\"\316\001\n\007TaskMsg\022\n\n\002id\030\001 \001("
"\003\022\014\n\004name\030\002 \001(\t\022\021\n\tbeginTime\030\003 \001(\t\022\017\n\007en"
"dTime\030\004 \001(\t\022\026\n\016deoxygenMinute\030\005 \001(\003\022\024\n\014t"
"otalUseTime\030\006 \001(\003\022\027\n\017logMoldPosition\030\007 \001"
"(\002\022\023\n\013finishLayer\030\010 \001(\r\022\020\n\010isFinish\030\t \001("
"\010\022\027\n\017isContinuePrint\030\n \001(\010\"#\n\010TasksMsg\022\027"
"\n\005tasks\030\001 \003(\0132\010.TaskMsg\"\346\001\n\rRecordTaskMs"
"g\022\n\n\002id\030\001 \001(\003\022\016\n\006taskID\030\002 \001(\t\022\014\n\004name\030\003 "
"\001(\t\022\021\n\tbeginTime\030\004 \001(\t\022\017\n\007endTime\030\005 \001(\t\022"
"\026\n\016deoxygenSecond\030\006 \001(\003\022\026\n\016totalUseSecon"
"d\030\007 \001(\003\022\027\n\017logMoldPosition\030\010 \001(\002\022\023\n\013fini"
"shLayer\030\t \001(\r\022\020\n\010isFinish\030\n \001(\010\022\027\n\017isCon"
"tinuePrint\030\013 \001(\010\"5\n\016RecordTasksMsg\022#\n\013re"
"cordTasks\030\001 \003(\0132\016.RecordTaskMsg\"=\n\022Recor"
"dTasksListMsg\022\'\n\017recordTasksList\030\001 \003(\0132\016"
".RecordTaskMsg\"\362\001\n\rLayerStateMsg\022\025\n\rlaye"
"rDateTime\030\001 \001(\t\022\022\n\nlayerIndex\030\002 \001(\r\022\027\n\017l"
"ogMoldPosition\030\003 \001(\002\022\021\n\tlogOxygen\030\004 \001(\002\022"
"\024\n\014logInnerTemp\030\005 \001(\002\022\024\n\014logPlateTemp\030\006 "
"\001(\002\022\021\n\twindSpeed\030\007 \001(\002\022\025\n\rinnerPressure\030"
"\010 \001(\002\022\017\n\007fanFreq\030\t \001(\002\022\020\n\010humidity\030\n \001(\002"
"\022\021\n\twaterTemp\030\013 \001(\002\"5\n\016LayerStatesMsg\022#\n"
"\013layerStates\030\001 \003(\0132\016.LayerStateMsg\"8\n\rLa"
"yerImageMsg\022\n\n\002id\030\001 \001(\003\022\r\n\005layer\030\002 \001(\r\022\014"
"\n\004type\030\003 \001(\t\"0\n\016LayerImagesMsg\022\036\n\006images"
"\030\001 \003(\0132\016.LayerImageMsg\"9\n\021LayerImageData"
"Msg\022\021\n\timageSize\030\001 \001(\004\022\021\n\timageData\030\002 \001("
"\014\"A\n\021LayerLoadCurveMsg\022\n\n\002id\030\001 \001(\003\022\r\n\005la"
"yer\030\002 \001(\r\022\021\n\tcoverType\030\003 \001(\t\"<\n\022LayerLoa"
"dCurvesMsg\022&\n\nloadCurves\030\001 \003(\0132\022.LayerLo"
"adCurveMsg\"B\n\025LayerLoadCurveDataMsg\022\014\n\004m"
"old\030\001 \003(\002\022\016\n\006powder\030\002 \003(\002\022\013\n\003arm\030\003 \003(\002\"\""
"\n\020ReqRecordTaskMsg\022\016\n\006taskID\030\001 \001(\t\">\n\024Re"
"qRecordTaskListMsg\022\023\n\013beginSecond\030\001 \001(\003\022"
"\021\n\tendSecond\030\002 \001(\003\"\224\001\n\016AlarmNotifyMsg\022\017\n"
"\007jobName\030\001 \001(\t\022\r\n\005jobId\030\002 \001(\t\022\022\n\nhappenT"
"ime\030\003 \001(\004\022\022\n\nlayerIndex\030\004 \001(\005\022\021\n\talarmCo"
"de\030\005 \001(\t\022\021\n\talarmType\030\006 \001(\005\022\024\n\014alarmCont"
"ent\030\007 \001(\t\"#\n\017RemoteJobResMsg\022\020\n\010jsonData"
"\030\001 \001(\t\"$\n\021VersionInfoResMsg\022\017\n\007version\030\001"
" \001(\tb\006proto3"
};
static ::absl::once_flag descriptor_table_common_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_common_2eproto = {
false,
false,
4692,
descriptor_table_protodef_common_2eproto,
"common.proto",
&descriptor_table_common_2eproto_once,
nullptr,
0,
33,
schemas,
file_default_instances,
TableStruct_common_2eproto::offsets,
file_level_metadata_common_2eproto,
file_level_enum_descriptors_common_2eproto,
file_level_service_descriptors_common_2eproto,
};
// This function exists to be marked as weak.
// It can significantly speed up compilation by breaking up LLVM's SCC
// in the .pb.cc translation units. Large translation units see a
// reduction of more than 35% of walltime for optimized builds. Without
// the weak attribute all the messages in the file, including all the
// vtables and everything they use become part of the same SCC through
// a cycle like:
// GetMetadata -> descriptor table -> default instances ->
// vtables -> GetMetadata
// By adding a weak function here we break the connection from the
// individual vtables back into the descriptor table.
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_common_2eproto_getter() {
return &descriptor_table_common_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2eproto(&descriptor_table_common_2eproto);
const ::google::protobuf::EnumDescriptor* StateMsg_PrintState_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto);
return file_level_enum_descriptors_common_2eproto[0];
}
bool StateMsg_PrintState_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && \
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr StateMsg_PrintState StateMsg::STANDBY;
constexpr StateMsg_PrintState StateMsg::STANDBY_PAUSE;
constexpr StateMsg_PrintState StateMsg::STANDBY_STOP;
constexpr StateMsg_PrintState StateMsg::PREPRINT;
constexpr StateMsg_PrintState StateMsg::PRINTING;
constexpr StateMsg_PrintState StateMsg::FINISH;
constexpr StateMsg_PrintState StateMsg::PAUSE;
constexpr StateMsg_PrintState StateMsg::STOP;
constexpr StateMsg_PrintState StateMsg::PrintState_MIN;
constexpr StateMsg_PrintState StateMsg::PrintState_MAX;
constexpr int StateMsg::PrintState_ARRAYSIZE;
#endif // (__cplusplus < 201703) &&
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::google::protobuf::EnumDescriptor* StateChangeMsg_PrintState_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto);
return file_level_enum_descriptors_common_2eproto[1];
}
bool StateChangeMsg_PrintState_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && \
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr StateChangeMsg_PrintState StateChangeMsg::STANDBY;
constexpr StateChangeMsg_PrintState StateChangeMsg::STANDBY_PAUSE;
constexpr StateChangeMsg_PrintState StateChangeMsg::STANDBY_STOP;
constexpr StateChangeMsg_PrintState StateChangeMsg::PREPRINT;
constexpr StateChangeMsg_PrintState StateChangeMsg::PRINTING;
constexpr StateChangeMsg_PrintState StateChangeMsg::FINISH;
constexpr StateChangeMsg_PrintState StateChangeMsg::PAUSE;
constexpr StateChangeMsg_PrintState StateChangeMsg::STOP;
constexpr StateChangeMsg_PrintState StateChangeMsg::PrintState_MIN;
constexpr StateChangeMsg_PrintState StateChangeMsg::PrintState_MAX;
constexpr int StateChangeMsg::PrintState_ARRAYSIZE;
#endif // (__cplusplus < 201703) &&
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::google::protobuf::EnumDescriptor* MachineMsg_MachineType_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto);
return file_level_enum_descriptors_common_2eproto[2];
}
bool MachineMsg_MachineType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 1000:
case 1001:
case 1002:
case 1003:
case 1004:
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && \
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr MachineMsg_MachineType MachineMsg::HBD_100;
constexpr MachineMsg_MachineType MachineMsg::HBD_280;
constexpr MachineMsg_MachineType MachineMsg::HBD_80;
constexpr MachineMsg_MachineType MachineMsg::HBD_150;
constexpr MachineMsg_MachineType MachineMsg::HBD_280T;
constexpr MachineMsg_MachineType MachineMsg::HBD_200D;
constexpr MachineMsg_MachineType MachineMsg::HBD_350;
constexpr MachineMsg_MachineType MachineMsg::HBD_150T;
constexpr MachineMsg_MachineType MachineMsg::HBD_E500;
constexpr MachineMsg_MachineType MachineMsg::HBD_V350;
constexpr MachineMsg_MachineType MachineMsg::HBD_1000;
constexpr MachineMsg_MachineType MachineMsg::HBD_1500;
constexpr MachineMsg_MachineType MachineMsg::HBD_1200V0;
constexpr MachineMsg_MachineType MachineMsg::HBD_1200;
constexpr MachineMsg_MachineType MachineMsg::HBD_E1000;
constexpr MachineMsg_MachineType MachineMsg::MachineType_MIN;
constexpr MachineMsg_MachineType MachineMsg::MachineType_MAX;
constexpr int MachineMsg::MachineType_ARRAYSIZE;
#endif // (__cplusplus < 201703) &&
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::google::protobuf::EnumDescriptor* MachineMsg_PurifierType_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto);
return file_level_enum_descriptors_common_2eproto[3];
}
bool MachineMsg_PurifierType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && \
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr MachineMsg_PurifierType MachineMsg::HBD_PURIFIER_1;
constexpr MachineMsg_PurifierType MachineMsg::XT;
constexpr MachineMsg_PurifierType MachineMsg::HBD_PURIFIER_2;
constexpr MachineMsg_PurifierType MachineMsg::PurifierType_MIN;
constexpr MachineMsg_PurifierType MachineMsg::PurifierType_MAX;
constexpr int MachineMsg::PurifierType_ARRAYSIZE;
#endif // (__cplusplus < 201703) &&
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::google::protobuf::EnumDescriptor* ErrorMsg_ErrorType_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto);
return file_level_enum_descriptors_common_2eproto[4];
}
bool ErrorMsg_ErrorType_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
#if (__cplusplus < 201703) && \
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ErrorMsg_ErrorType ErrorMsg::STOP;
constexpr ErrorMsg_ErrorType ErrorMsg::PAUSE;
constexpr ErrorMsg_ErrorType ErrorMsg::ErrorType_MIN;
constexpr ErrorMsg_ErrorType ErrorMsg::ErrorType_MAX;
constexpr int ErrorMsg::ErrorType_ARRAYSIZE;
#endif // (__cplusplus < 201703) &&
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================
class StateMsg::_Internal {
public:
};
StateMsg::StateMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:StateMsg)
}
StateMsg::StateMsg(const StateMsg& from) : ::google::protobuf::Message() {
StateMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.material_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.oxygenvalue_){},
decltype(_impl_.ambienttemp_){},
decltype(_impl_.innertemp_){},
decltype(_impl_.windvalue_){},
decltype(_impl_.platformtempvalue_){},
decltype(_impl_.platformtempsettingvalue_){},
decltype(_impl_.moldpos_){},
decltype(_impl_.powderpos_){},
decltype(_impl_.armpos_){},
decltype(_impl_.printstate_){},
decltype(_impl_.layerindex_){},
decltype(_impl_.limitflag_){},
decltype(_impl_.acctime_){},
decltype(_impl_.remaintime_){},
decltype(_impl_.isdoorclose_){},
decltype(_impl_.layercount_){},
decltype(_impl_.totaltime_){},
decltype(_impl_.printtime_){},
decltype(_impl_.remainpowder_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_material().empty()) {
_this->_impl_.material_.Set(from._internal_material(), _this->GetArenaForAllocation());
}
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobname().empty()) {
_this->_impl_.jobname_.Set(from._internal_jobname(), _this->GetArenaForAllocation());
}
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobid().empty()) {
_this->_impl_.jobid_.Set(from._internal_jobid(), _this->GetArenaForAllocation());
}
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_taskid().empty()) {
_this->_impl_.taskid_.Set(from._internal_taskid(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.oxygenvalue_, &from._impl_.oxygenvalue_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.remainpowder_) -
reinterpret_cast<char*>(&_impl_.oxygenvalue_)) + sizeof(_impl_.remainpowder_));
// @@protoc_insertion_point(copy_constructor:StateMsg)
}
inline void StateMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.material_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.oxygenvalue_){0},
decltype(_impl_.ambienttemp_){0},
decltype(_impl_.innertemp_){0},
decltype(_impl_.windvalue_){0},
decltype(_impl_.platformtempvalue_){0},
decltype(_impl_.platformtempsettingvalue_){0},
decltype(_impl_.moldpos_){0},
decltype(_impl_.powderpos_){0},
decltype(_impl_.armpos_){0},
decltype(_impl_.printstate_){0},
decltype(_impl_.layerindex_){0},
decltype(_impl_.limitflag_){0},
decltype(_impl_.acctime_){::uint64_t{0u}},
decltype(_impl_.remaintime_){::uint64_t{0u}},
decltype(_impl_.isdoorclose_){false},
decltype(_impl_.layercount_){0},
decltype(_impl_.totaltime_){::uint64_t{0u}},
decltype(_impl_.printtime_){::int64_t{0}},
decltype(_impl_.remainpowder_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
StateMsg::~StateMsg() {
// @@protoc_insertion_point(destructor:StateMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void StateMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.machineid_.Destroy();
_impl_.material_.Destroy();
_impl_.jobname_.Destroy();
_impl_.jobid_.Destroy();
_impl_.taskid_.Destroy();
}
void StateMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void StateMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:StateMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.machineid_.ClearToEmpty();
_impl_.material_.ClearToEmpty();
_impl_.jobname_.ClearToEmpty();
_impl_.jobid_.ClearToEmpty();
_impl_.taskid_.ClearToEmpty();
::memset(&_impl_.oxygenvalue_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.remainpowder_) -
reinterpret_cast<char*>(&_impl_.oxygenvalue_)) + sizeof(_impl_.remainpowder_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* StateMsg::_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<5, 24, 0, 76, 2> StateMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
24, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4278190080, // skipmap
offsetof(decltype(_table_), field_entries),
24, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_StateMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// float oxygenValue = 1;
{::_pbi::TcParser::FastF32S1,
{13, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.oxygenvalue_)}},
// float ambientTemp = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.ambienttemp_)}},
// float innerTemp = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.innertemp_)}},
// float windValue = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.windvalue_)}},
// float platformTempValue = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.platformtempvalue_)}},
// float platformTempSettingValue = 6;
{::_pbi::TcParser::FastF32S1,
{53, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.platformtempsettingvalue_)}},
// float moldPos = 7;
{::_pbi::TcParser::FastF32S1,
{61, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.moldpos_)}},
// float powderPos = 8;
{::_pbi::TcParser::FastF32S1,
{69, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.powderpos_)}},
// float armPos = 9;
{::_pbi::TcParser::FastF32S1,
{77, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.armpos_)}},
// .StateMsg.PrintState printState = 10;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateMsg, _impl_.printstate_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.printstate_)}},
// int32 layerIndex = 11;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateMsg, _impl_.layerindex_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.layerindex_)}},
// int32 limitFlag = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateMsg, _impl_.limitflag_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.limitflag_)}},
// string machineId = 13;
{::_pbi::TcParser::FastUS1,
{106, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.machineid_)}},
// bool isDoorClose = 14;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(StateMsg, _impl_.isdoorclose_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.isdoorclose_)}},
// uint64 accTime = 15;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StateMsg, _impl_.acctime_), 63>(),
{120, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.acctime_)}},
// uint64 remainTime = 16;
{::_pbi::TcParser::FastV64S2,
{384, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.remaintime_)}},
// uint64 totalTime = 17;
{::_pbi::TcParser::FastV64S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.totaltime_)}},
// int32 layerCount = 18;
{::_pbi::TcParser::FastV32S2,
{400, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.layercount_)}},
// int64 printTime = 19;
{::_pbi::TcParser::FastV64S2,
{408, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.printtime_)}},
// string material = 20;
{::_pbi::TcParser::FastUS2,
{418, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.material_)}},
// string jobName = 21;
{::_pbi::TcParser::FastUS2,
{426, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.jobname_)}},
// string jobId = 22;
{::_pbi::TcParser::FastUS2,
{434, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.jobid_)}},
// string taskId = 23;
{::_pbi::TcParser::FastUS2,
{442, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.taskid_)}},
// float remainPowder = 24;
{::_pbi::TcParser::FastF32S2,
{453, 63, 0, PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.remainpowder_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// float oxygenValue = 1;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.oxygenvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float ambientTemp = 2;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.ambienttemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float innerTemp = 3;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.innertemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float windValue = 4;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.windvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float platformTempValue = 5;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.platformtempvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float platformTempSettingValue = 6;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.platformtempsettingvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float moldPos = 7;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.moldpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float powderPos = 8;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.powderpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float armPos = 9;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.armpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// .StateMsg.PrintState printState = 10;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.printstate_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// int32 layerIndex = 11;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.layerindex_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 limitFlag = 12;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.limitflag_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// string machineId = 13;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// bool isDoorClose = 14;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.isdoorclose_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// uint64 accTime = 15;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.acctime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// uint64 remainTime = 16;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.remaintime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// uint64 totalTime = 17;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.totaltime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// int32 layerCount = 18;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.layercount_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int64 printTime = 19;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.printtime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// string material = 20;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.material_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobName = 21;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.jobname_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobId = 22;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.jobid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string taskId = 23;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.taskid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// float remainPowder = 24;
{PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.remainpowder_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
"\10\0\0\0\0\0\0\0\0\0\0\0\0\11\0\0\0\0\0\0\10\7\5\6\0\0\0\0\0\0\0\0"
"StateMsg"
"machineId"
"material"
"jobName"
"jobId"
"taskId"
}},
};
::uint8_t* StateMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:StateMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// float oxygenValue = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = this->_internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
1, this->_internal_oxygenvalue(), target);
}
// float ambientTemp = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = this->_internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_ambienttemp(), target);
}
// float innerTemp = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = this->_internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_innertemp(), target);
}
// float windValue = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = this->_internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_windvalue(), target);
}
// float platformTempValue = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = this->_internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_platformtempvalue(), target);
}
// float platformTempSettingValue = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = this->_internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
6, this->_internal_platformtempsettingvalue(), target);
}
// float moldPos = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = this->_internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
7, this->_internal_moldpos(), target);
}
// float powderPos = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = this->_internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
8, this->_internal_powderpos(), target);
}
// float armPos = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = this->_internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
9, this->_internal_armpos(), target);
}
// .StateMsg.PrintState printState = 10;
if (this->_internal_printstate() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
10, this->_internal_printstate(), target);
}
// int32 layerIndex = 11;
if (this->_internal_layerindex() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<11>(
stream, this->_internal_layerindex(), target);
}
// int32 limitFlag = 12;
if (this->_internal_limitflag() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<12>(
stream, this->_internal_limitflag(), target);
}
// string machineId = 13;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateMsg.machineId");
target = stream->WriteStringMaybeAliased(13, _s, target);
}
// bool isDoorClose = 14;
if (this->_internal_isdoorclose() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
14, this->_internal_isdoorclose(), target);
}
// uint64 accTime = 15;
if (this->_internal_acctime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
15, this->_internal_acctime(), target);
}
// uint64 remainTime = 16;
if (this->_internal_remaintime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
16, this->_internal_remaintime(), target);
}
// uint64 totalTime = 17;
if (this->_internal_totaltime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
17, this->_internal_totaltime(), target);
}
// int32 layerCount = 18;
if (this->_internal_layercount() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
18, this->_internal_layercount(), target);
}
// int64 printTime = 19;
if (this->_internal_printtime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
19, this->_internal_printtime(), target);
}
// string material = 20;
if (!this->_internal_material().empty()) {
const std::string& _s = this->_internal_material();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateMsg.material");
target = stream->WriteStringMaybeAliased(20, _s, target);
}
// string jobName = 21;
if (!this->_internal_jobname().empty()) {
const std::string& _s = this->_internal_jobname();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateMsg.jobName");
target = stream->WriteStringMaybeAliased(21, _s, target);
}
// string jobId = 22;
if (!this->_internal_jobid().empty()) {
const std::string& _s = this->_internal_jobid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateMsg.jobId");
target = stream->WriteStringMaybeAliased(22, _s, target);
}
// string taskId = 23;
if (!this->_internal_taskid().empty()) {
const std::string& _s = this->_internal_taskid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateMsg.taskId");
target = stream->WriteStringMaybeAliased(23, _s, target);
}
// float remainPowder = 24;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = this->_internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
24, this->_internal_remainpowder(), 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:StateMsg)
return target;
}
::size_t StateMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:StateMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string machineId = 13;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// string material = 20;
if (!this->_internal_material().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_material());
}
// string jobName = 21;
if (!this->_internal_jobname().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobname());
}
// string jobId = 22;
if (!this->_internal_jobid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobid());
}
// string taskId = 23;
if (!this->_internal_taskid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_taskid());
}
// float oxygenValue = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = this->_internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
total_size += 5;
}
// float ambientTemp = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = this->_internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
total_size += 5;
}
// float innerTemp = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = this->_internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
total_size += 5;
}
// float windValue = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = this->_internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
total_size += 5;
}
// float platformTempValue = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = this->_internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
total_size += 5;
}
// float platformTempSettingValue = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = this->_internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
total_size += 5;
}
// float moldPos = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = this->_internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
total_size += 5;
}
// float powderPos = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = this->_internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
total_size += 5;
}
// float armPos = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = this->_internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
total_size += 5;
}
// .StateMsg.PrintState printState = 10;
if (this->_internal_printstate() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_printstate());
}
// int32 layerIndex = 11;
if (this->_internal_layerindex() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_layerindex());
}
// int32 limitFlag = 12;
if (this->_internal_limitflag() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_limitflag());
}
// uint64 accTime = 15;
if (this->_internal_acctime() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
this->_internal_acctime());
}
// uint64 remainTime = 16;
if (this->_internal_remaintime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
this->_internal_remaintime());
}
// bool isDoorClose = 14;
if (this->_internal_isdoorclose() != 0) {
total_size += 2;
}
// int32 layerCount = 18;
if (this->_internal_layercount() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this->_internal_layercount());
}
// uint64 totalTime = 17;
if (this->_internal_totaltime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
this->_internal_totaltime());
}
// int64 printTime = 19;
if (this->_internal_printtime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
this->_internal_printtime());
}
// float remainPowder = 24;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = this->_internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
total_size += 6;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData StateMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
StateMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*StateMsg::GetClassData() const { return &_class_data_; }
void StateMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<StateMsg*>(&to_msg);
auto& from = static_cast<const StateMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:StateMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_material().empty()) {
_this->_internal_set_material(from._internal_material());
}
if (!from._internal_jobname().empty()) {
_this->_internal_set_jobname(from._internal_jobname());
}
if (!from._internal_jobid().empty()) {
_this->_internal_set_jobid(from._internal_jobid());
}
if (!from._internal_taskid().empty()) {
_this->_internal_set_taskid(from._internal_taskid());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = from._internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
_this->_internal_set_oxygenvalue(from._internal_oxygenvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = from._internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
_this->_internal_set_ambienttemp(from._internal_ambienttemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = from._internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
_this->_internal_set_innertemp(from._internal_innertemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = from._internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
_this->_internal_set_windvalue(from._internal_windvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = from._internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
_this->_internal_set_platformtempvalue(from._internal_platformtempvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = from._internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
_this->_internal_set_platformtempsettingvalue(from._internal_platformtempsettingvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = from._internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
_this->_internal_set_moldpos(from._internal_moldpos());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = from._internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
_this->_internal_set_powderpos(from._internal_powderpos());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = from._internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
_this->_internal_set_armpos(from._internal_armpos());
}
if (from._internal_printstate() != 0) {
_this->_internal_set_printstate(from._internal_printstate());
}
if (from._internal_layerindex() != 0) {
_this->_internal_set_layerindex(from._internal_layerindex());
}
if (from._internal_limitflag() != 0) {
_this->_internal_set_limitflag(from._internal_limitflag());
}
if (from._internal_acctime() != 0) {
_this->_internal_set_acctime(from._internal_acctime());
}
if (from._internal_remaintime() != 0) {
_this->_internal_set_remaintime(from._internal_remaintime());
}
if (from._internal_isdoorclose() != 0) {
_this->_internal_set_isdoorclose(from._internal_isdoorclose());
}
if (from._internal_layercount() != 0) {
_this->_internal_set_layercount(from._internal_layercount());
}
if (from._internal_totaltime() != 0) {
_this->_internal_set_totaltime(from._internal_totaltime());
}
if (from._internal_printtime() != 0) {
_this->_internal_set_printtime(from._internal_printtime());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = from._internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
_this->_internal_set_remainpowder(from._internal_remainpowder());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void StateMsg::CopyFrom(const StateMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:StateMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool StateMsg::IsInitialized() const {
return true;
}
void StateMsg::InternalSwap(StateMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.material_, lhs_arena,
&other->_impl_.material_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobname_, lhs_arena,
&other->_impl_.jobname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobid_, lhs_arena,
&other->_impl_.jobid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.taskid_, lhs_arena,
&other->_impl_.taskid_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.remainpowder_)
+ sizeof(StateMsg::_impl_.remainpowder_)
- PROTOBUF_FIELD_OFFSET(StateMsg, _impl_.oxygenvalue_)>(
reinterpret_cast<char*>(&_impl_.oxygenvalue_),
reinterpret_cast<char*>(&other->_impl_.oxygenvalue_));
}
::google::protobuf::Metadata StateMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[0]);
}
// ===================================================================
class JobInfoMsg::_Internal {
public:
};
JobInfoMsg::JobInfoMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:JobInfoMsg)
}
JobInfoMsg::JobInfoMsg(const JobInfoMsg& from) : ::google::protobuf::Message() {
JobInfoMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.name_){},
decltype(_impl_.material_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.xsize_){},
decltype(_impl_.ysize_){},
decltype(_impl_.zsize_){},
decltype(_impl_.layerthickness_){},
decltype(_impl_.layercount_){},
decltype(_impl_.componentcount_){},
decltype(_impl_.volume_){},
decltype(_impl_.supportvolume_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
}
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_material().empty()) {
_this->_impl_.material_.Set(from._internal_material(), _this->GetArenaForAllocation());
}
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobid().empty()) {
_this->_impl_.jobid_.Set(from._internal_jobid(), _this->GetArenaForAllocation());
}
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_taskid().empty()) {
_this->_impl_.taskid_.Set(from._internal_taskid(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.xsize_, &from._impl_.xsize_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.supportvolume_) -
reinterpret_cast<char*>(&_impl_.xsize_)) + sizeof(_impl_.supportvolume_));
// @@protoc_insertion_point(copy_constructor:JobInfoMsg)
}
inline void JobInfoMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.name_){},
decltype(_impl_.material_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.xsize_){0},
decltype(_impl_.ysize_){0},
decltype(_impl_.zsize_){0},
decltype(_impl_.layerthickness_){0},
decltype(_impl_.layercount_){0u},
decltype(_impl_.componentcount_){0u},
decltype(_impl_.volume_){0},
decltype(_impl_.supportvolume_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
JobInfoMsg::~JobInfoMsg() {
// @@protoc_insertion_point(destructor:JobInfoMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void JobInfoMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.name_.Destroy();
_impl_.material_.Destroy();
_impl_.jobid_.Destroy();
_impl_.taskid_.Destroy();
}
void JobInfoMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void JobInfoMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:JobInfoMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.name_.ClearToEmpty();
_impl_.material_.ClearToEmpty();
_impl_.jobid_.ClearToEmpty();
_impl_.taskid_.ClearToEmpty();
::memset(&_impl_.xsize_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.supportvolume_) -
reinterpret_cast<char*>(&_impl_.xsize_)) + sizeof(_impl_.supportvolume_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* JobInfoMsg::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 12, 0, 50, 2> JobInfoMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
12, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294963200, // skipmap
offsetof(decltype(_table_), field_entries),
12, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_JobInfoMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string name = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.name_)}},
// float xSize = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.xsize_)}},
// float ySize = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.ysize_)}},
// float zSize = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.zsize_)}},
// string material = 5;
{::_pbi::TcParser::FastUS1,
{42, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.material_)}},
// float layerThickness = 6;
{::_pbi::TcParser::FastF32S1,
{53, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.layerthickness_)}},
// uint32 layerCount = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobInfoMsg, _impl_.layercount_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.layercount_)}},
// uint32 componentCount = 8;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobInfoMsg, _impl_.componentcount_), 63>(),
{64, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.componentcount_)}},
// float volume = 9;
{::_pbi::TcParser::FastF32S1,
{77, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.volume_)}},
// float supportVolume = 10;
{::_pbi::TcParser::FastF32S1,
{85, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.supportvolume_)}},
// string jobId = 11;
{::_pbi::TcParser::FastUS1,
{90, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.jobid_)}},
// string taskId = 12;
{::_pbi::TcParser::FastUS1,
{98, 63, 0, PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.taskid_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string name = 1;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.name_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// float xSize = 2;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.xsize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float ySize = 3;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.ysize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float zSize = 4;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.zsize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// string material = 5;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.material_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// float layerThickness = 6;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.layerthickness_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// uint32 layerCount = 7;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.layercount_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 componentCount = 8;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.componentcount_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// float volume = 9;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.volume_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float supportVolume = 10;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.supportvolume_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// string jobId = 11;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.jobid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string taskId = 12;
{PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.taskid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\12\4\0\0\0\10\0\0\0\0\0\5\6\0\0\0"
"JobInfoMsg"
"name"
"material"
"jobId"
"taskId"
}},
};
::uint8_t* JobInfoMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:JobInfoMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
const std::string& _s = this->_internal_name();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobInfoMsg.name");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// float xSize = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xsize = this->_internal_xsize();
::uint32_t raw_xsize;
memcpy(&raw_xsize, &tmp_xsize, sizeof(tmp_xsize));
if (raw_xsize != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_xsize(), target);
}
// float ySize = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ysize = this->_internal_ysize();
::uint32_t raw_ysize;
memcpy(&raw_ysize, &tmp_ysize, sizeof(tmp_ysize));
if (raw_ysize != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_ysize(), target);
}
// float zSize = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zsize = this->_internal_zsize();
::uint32_t raw_zsize;
memcpy(&raw_zsize, &tmp_zsize, sizeof(tmp_zsize));
if (raw_zsize != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_zsize(), target);
}
// string material = 5;
if (!this->_internal_material().empty()) {
const std::string& _s = this->_internal_material();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobInfoMsg.material");
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// float layerThickness = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_layerthickness = this->_internal_layerthickness();
::uint32_t raw_layerthickness;
memcpy(&raw_layerthickness, &tmp_layerthickness, sizeof(tmp_layerthickness));
if (raw_layerthickness != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
6, this->_internal_layerthickness(), target);
}
// uint32 layerCount = 7;
if (this->_internal_layercount() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
7, this->_internal_layercount(), target);
}
// uint32 componentCount = 8;
if (this->_internal_componentcount() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
8, this->_internal_componentcount(), target);
}
// float volume = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_volume = this->_internal_volume();
::uint32_t raw_volume;
memcpy(&raw_volume, &tmp_volume, sizeof(tmp_volume));
if (raw_volume != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
9, this->_internal_volume(), target);
}
// float supportVolume = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_supportvolume = this->_internal_supportvolume();
::uint32_t raw_supportvolume;
memcpy(&raw_supportvolume, &tmp_supportvolume, sizeof(tmp_supportvolume));
if (raw_supportvolume != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
10, this->_internal_supportvolume(), target);
}
// string jobId = 11;
if (!this->_internal_jobid().empty()) {
const std::string& _s = this->_internal_jobid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobInfoMsg.jobId");
target = stream->WriteStringMaybeAliased(11, _s, target);
}
// string taskId = 12;
if (!this->_internal_taskid().empty()) {
const std::string& _s = this->_internal_taskid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobInfoMsg.taskId");
target = stream->WriteStringMaybeAliased(12, _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:JobInfoMsg)
return target;
}
::size_t JobInfoMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:JobInfoMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string material = 5;
if (!this->_internal_material().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_material());
}
// string jobId = 11;
if (!this->_internal_jobid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobid());
}
// string taskId = 12;
if (!this->_internal_taskid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_taskid());
}
// float xSize = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xsize = this->_internal_xsize();
::uint32_t raw_xsize;
memcpy(&raw_xsize, &tmp_xsize, sizeof(tmp_xsize));
if (raw_xsize != 0) {
total_size += 5;
}
// float ySize = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ysize = this->_internal_ysize();
::uint32_t raw_ysize;
memcpy(&raw_ysize, &tmp_ysize, sizeof(tmp_ysize));
if (raw_ysize != 0) {
total_size += 5;
}
// float zSize = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zsize = this->_internal_zsize();
::uint32_t raw_zsize;
memcpy(&raw_zsize, &tmp_zsize, sizeof(tmp_zsize));
if (raw_zsize != 0) {
total_size += 5;
}
// float layerThickness = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_layerthickness = this->_internal_layerthickness();
::uint32_t raw_layerthickness;
memcpy(&raw_layerthickness, &tmp_layerthickness, sizeof(tmp_layerthickness));
if (raw_layerthickness != 0) {
total_size += 5;
}
// uint32 layerCount = 7;
if (this->_internal_layercount() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layercount());
}
// uint32 componentCount = 8;
if (this->_internal_componentcount() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_componentcount());
}
// float volume = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_volume = this->_internal_volume();
::uint32_t raw_volume;
memcpy(&raw_volume, &tmp_volume, sizeof(tmp_volume));
if (raw_volume != 0) {
total_size += 5;
}
// float supportVolume = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_supportvolume = this->_internal_supportvolume();
::uint32_t raw_supportvolume;
memcpy(&raw_supportvolume, &tmp_supportvolume, sizeof(tmp_supportvolume));
if (raw_supportvolume != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData JobInfoMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
JobInfoMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*JobInfoMsg::GetClassData() const { return &_class_data_; }
void JobInfoMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<JobInfoMsg*>(&to_msg);
auto& from = static_cast<const JobInfoMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:JobInfoMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
if (!from._internal_material().empty()) {
_this->_internal_set_material(from._internal_material());
}
if (!from._internal_jobid().empty()) {
_this->_internal_set_jobid(from._internal_jobid());
}
if (!from._internal_taskid().empty()) {
_this->_internal_set_taskid(from._internal_taskid());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xsize = from._internal_xsize();
::uint32_t raw_xsize;
memcpy(&raw_xsize, &tmp_xsize, sizeof(tmp_xsize));
if (raw_xsize != 0) {
_this->_internal_set_xsize(from._internal_xsize());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ysize = from._internal_ysize();
::uint32_t raw_ysize;
memcpy(&raw_ysize, &tmp_ysize, sizeof(tmp_ysize));
if (raw_ysize != 0) {
_this->_internal_set_ysize(from._internal_ysize());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zsize = from._internal_zsize();
::uint32_t raw_zsize;
memcpy(&raw_zsize, &tmp_zsize, sizeof(tmp_zsize));
if (raw_zsize != 0) {
_this->_internal_set_zsize(from._internal_zsize());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_layerthickness = from._internal_layerthickness();
::uint32_t raw_layerthickness;
memcpy(&raw_layerthickness, &tmp_layerthickness, sizeof(tmp_layerthickness));
if (raw_layerthickness != 0) {
_this->_internal_set_layerthickness(from._internal_layerthickness());
}
if (from._internal_layercount() != 0) {
_this->_internal_set_layercount(from._internal_layercount());
}
if (from._internal_componentcount() != 0) {
_this->_internal_set_componentcount(from._internal_componentcount());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_volume = from._internal_volume();
::uint32_t raw_volume;
memcpy(&raw_volume, &tmp_volume, sizeof(tmp_volume));
if (raw_volume != 0) {
_this->_internal_set_volume(from._internal_volume());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_supportvolume = from._internal_supportvolume();
::uint32_t raw_supportvolume;
memcpy(&raw_supportvolume, &tmp_supportvolume, sizeof(tmp_supportvolume));
if (raw_supportvolume != 0) {
_this->_internal_set_supportvolume(from._internal_supportvolume());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void JobInfoMsg::CopyFrom(const JobInfoMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:JobInfoMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool JobInfoMsg::IsInitialized() const {
return true;
}
void JobInfoMsg::InternalSwap(JobInfoMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.material_, lhs_arena,
&other->_impl_.material_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobid_, lhs_arena,
&other->_impl_.jobid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.taskid_, lhs_arena,
&other->_impl_.taskid_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.supportvolume_)
+ sizeof(JobInfoMsg::_impl_.supportvolume_)
- PROTOBUF_FIELD_OFFSET(JobInfoMsg, _impl_.xsize_)>(
reinterpret_cast<char*>(&_impl_.xsize_),
reinterpret_cast<char*>(&other->_impl_.xsize_));
}
::google::protobuf::Metadata JobInfoMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[1]);
}
// ===================================================================
class StateChangeMsg::_Internal {
public:
};
StateChangeMsg::StateChangeMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:StateChangeMsg)
}
StateChangeMsg::StateChangeMsg(const StateChangeMsg& from) : ::google::protobuf::Message() {
StateChangeMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.material_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.oxygenvalue_){},
decltype(_impl_.ambienttemp_){},
decltype(_impl_.innertemp_){},
decltype(_impl_.windvalue_){},
decltype(_impl_.platformtempvalue_){},
decltype(_impl_.platformtempsettingvalue_){},
decltype(_impl_.moldpos_){},
decltype(_impl_.powderpos_){},
decltype(_impl_.armpos_){},
decltype(_impl_.printstate_){},
decltype(_impl_.layerindex_){},
decltype(_impl_.limitflag_){},
decltype(_impl_.acctime_){},
decltype(_impl_.remaintime_){},
decltype(_impl_.isdoorclose_){},
decltype(_impl_.layercount_){},
decltype(_impl_.totaltime_){},
decltype(_impl_.printtime_){},
decltype(_impl_.remainpowder_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_material().empty()) {
_this->_impl_.material_.Set(from._internal_material(), _this->GetArenaForAllocation());
}
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobname().empty()) {
_this->_impl_.jobname_.Set(from._internal_jobname(), _this->GetArenaForAllocation());
}
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobid().empty()) {
_this->_impl_.jobid_.Set(from._internal_jobid(), _this->GetArenaForAllocation());
}
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_taskid().empty()) {
_this->_impl_.taskid_.Set(from._internal_taskid(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.oxygenvalue_, &from._impl_.oxygenvalue_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.remainpowder_) -
reinterpret_cast<char*>(&_impl_.oxygenvalue_)) + sizeof(_impl_.remainpowder_));
// @@protoc_insertion_point(copy_constructor:StateChangeMsg)
}
inline void StateChangeMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.material_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.taskid_){},
decltype(_impl_.oxygenvalue_){0},
decltype(_impl_.ambienttemp_){0},
decltype(_impl_.innertemp_){0},
decltype(_impl_.windvalue_){0},
decltype(_impl_.platformtempvalue_){0},
decltype(_impl_.platformtempsettingvalue_){0},
decltype(_impl_.moldpos_){0},
decltype(_impl_.powderpos_){0},
decltype(_impl_.armpos_){0},
decltype(_impl_.printstate_){0},
decltype(_impl_.layerindex_){0},
decltype(_impl_.limitflag_){0},
decltype(_impl_.acctime_){::uint64_t{0u}},
decltype(_impl_.remaintime_){::uint64_t{0u}},
decltype(_impl_.isdoorclose_){false},
decltype(_impl_.layercount_){0},
decltype(_impl_.totaltime_){::uint64_t{0u}},
decltype(_impl_.printtime_){::int64_t{0}},
decltype(_impl_.remainpowder_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.material_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
StateChangeMsg::~StateChangeMsg() {
// @@protoc_insertion_point(destructor:StateChangeMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void StateChangeMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.machineid_.Destroy();
_impl_.material_.Destroy();
_impl_.jobname_.Destroy();
_impl_.jobid_.Destroy();
_impl_.taskid_.Destroy();
}
void StateChangeMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void StateChangeMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:StateChangeMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.machineid_.ClearToEmpty();
_impl_.material_.ClearToEmpty();
_impl_.jobname_.ClearToEmpty();
_impl_.jobid_.ClearToEmpty();
_impl_.taskid_.ClearToEmpty();
::memset(&_impl_.oxygenvalue_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.remainpowder_) -
reinterpret_cast<char*>(&_impl_.oxygenvalue_)) + sizeof(_impl_.remainpowder_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* StateChangeMsg::_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<5, 24, 0, 82, 2> StateChangeMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
24, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4278190080, // skipmap
offsetof(decltype(_table_), field_entries),
24, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_StateChangeMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// float oxygenValue = 1;
{::_pbi::TcParser::FastF32S1,
{13, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.oxygenvalue_)}},
// float ambientTemp = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.ambienttemp_)}},
// float innerTemp = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.innertemp_)}},
// float windValue = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.windvalue_)}},
// float platformTempValue = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.platformtempvalue_)}},
// float platformTempSettingValue = 6;
{::_pbi::TcParser::FastF32S1,
{53, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.platformtempsettingvalue_)}},
// float moldPos = 7;
{::_pbi::TcParser::FastF32S1,
{61, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.moldpos_)}},
// float powderPos = 8;
{::_pbi::TcParser::FastF32S1,
{69, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.powderpos_)}},
// float armPos = 9;
{::_pbi::TcParser::FastF32S1,
{77, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.armpos_)}},
// .StateChangeMsg.PrintState printState = 10;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateChangeMsg, _impl_.printstate_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.printstate_)}},
// int32 layerIndex = 11;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateChangeMsg, _impl_.layerindex_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.layerindex_)}},
// int32 limitFlag = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StateChangeMsg, _impl_.limitflag_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.limitflag_)}},
// string machineId = 13;
{::_pbi::TcParser::FastUS1,
{106, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.machineid_)}},
// bool isDoorClose = 14;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(StateChangeMsg, _impl_.isdoorclose_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.isdoorclose_)}},
// uint64 accTime = 15;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StateChangeMsg, _impl_.acctime_), 63>(),
{120, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.acctime_)}},
// uint64 remainTime = 16;
{::_pbi::TcParser::FastV64S2,
{384, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.remaintime_)}},
// uint64 totalTime = 17;
{::_pbi::TcParser::FastV64S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.totaltime_)}},
// int32 layerCount = 18;
{::_pbi::TcParser::FastV32S2,
{400, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.layercount_)}},
// int64 printTime = 19;
{::_pbi::TcParser::FastV64S2,
{408, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.printtime_)}},
// string material = 20;
{::_pbi::TcParser::FastUS2,
{418, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.material_)}},
// string jobName = 21;
{::_pbi::TcParser::FastUS2,
{426, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.jobname_)}},
// string jobId = 22;
{::_pbi::TcParser::FastUS2,
{434, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.jobid_)}},
// string taskId = 23;
{::_pbi::TcParser::FastUS2,
{442, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.taskid_)}},
// float remainPowder = 24;
{::_pbi::TcParser::FastF32S2,
{453, 63, 0, PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.remainpowder_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// float oxygenValue = 1;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.oxygenvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float ambientTemp = 2;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.ambienttemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float innerTemp = 3;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.innertemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float windValue = 4;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.windvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float platformTempValue = 5;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.platformtempvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float platformTempSettingValue = 6;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.platformtempsettingvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float moldPos = 7;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.moldpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float powderPos = 8;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.powderpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float armPos = 9;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.armpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// .StateChangeMsg.PrintState printState = 10;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.printstate_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// int32 layerIndex = 11;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.layerindex_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 limitFlag = 12;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.limitflag_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// string machineId = 13;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// bool isDoorClose = 14;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.isdoorclose_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// uint64 accTime = 15;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.acctime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// uint64 remainTime = 16;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.remaintime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// uint64 totalTime = 17;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.totaltime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// int32 layerCount = 18;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.layercount_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int64 printTime = 19;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.printtime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// string material = 20;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.material_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobName = 21;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.jobname_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobId = 22;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.jobid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string taskId = 23;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.taskid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// float remainPowder = 24;
{PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.remainpowder_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
"\16\0\0\0\0\0\0\0\0\0\0\0\0\11\0\0\0\0\0\0\10\7\5\6\0\0\0\0\0\0\0\0"
"StateChangeMsg"
"machineId"
"material"
"jobName"
"jobId"
"taskId"
}},
};
::uint8_t* StateChangeMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:StateChangeMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// float oxygenValue = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = this->_internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
1, this->_internal_oxygenvalue(), target);
}
// float ambientTemp = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = this->_internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_ambienttemp(), target);
}
// float innerTemp = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = this->_internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_innertemp(), target);
}
// float windValue = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = this->_internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_windvalue(), target);
}
// float platformTempValue = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = this->_internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_platformtempvalue(), target);
}
// float platformTempSettingValue = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = this->_internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
6, this->_internal_platformtempsettingvalue(), target);
}
// float moldPos = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = this->_internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
7, this->_internal_moldpos(), target);
}
// float powderPos = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = this->_internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
8, this->_internal_powderpos(), target);
}
// float armPos = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = this->_internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
9, this->_internal_armpos(), target);
}
// .StateChangeMsg.PrintState printState = 10;
if (this->_internal_printstate() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
10, this->_internal_printstate(), target);
}
// int32 layerIndex = 11;
if (this->_internal_layerindex() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<11>(
stream, this->_internal_layerindex(), target);
}
// int32 limitFlag = 12;
if (this->_internal_limitflag() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<12>(
stream, this->_internal_limitflag(), target);
}
// string machineId = 13;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateChangeMsg.machineId");
target = stream->WriteStringMaybeAliased(13, _s, target);
}
// bool isDoorClose = 14;
if (this->_internal_isdoorclose() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
14, this->_internal_isdoorclose(), target);
}
// uint64 accTime = 15;
if (this->_internal_acctime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
15, this->_internal_acctime(), target);
}
// uint64 remainTime = 16;
if (this->_internal_remaintime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
16, this->_internal_remaintime(), target);
}
// uint64 totalTime = 17;
if (this->_internal_totaltime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
17, this->_internal_totaltime(), target);
}
// int32 layerCount = 18;
if (this->_internal_layercount() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
18, this->_internal_layercount(), target);
}
// int64 printTime = 19;
if (this->_internal_printtime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
19, this->_internal_printtime(), target);
}
// string material = 20;
if (!this->_internal_material().empty()) {
const std::string& _s = this->_internal_material();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateChangeMsg.material");
target = stream->WriteStringMaybeAliased(20, _s, target);
}
// string jobName = 21;
if (!this->_internal_jobname().empty()) {
const std::string& _s = this->_internal_jobname();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateChangeMsg.jobName");
target = stream->WriteStringMaybeAliased(21, _s, target);
}
// string jobId = 22;
if (!this->_internal_jobid().empty()) {
const std::string& _s = this->_internal_jobid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateChangeMsg.jobId");
target = stream->WriteStringMaybeAliased(22, _s, target);
}
// string taskId = 23;
if (!this->_internal_taskid().empty()) {
const std::string& _s = this->_internal_taskid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "StateChangeMsg.taskId");
target = stream->WriteStringMaybeAliased(23, _s, target);
}
// float remainPowder = 24;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = this->_internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
24, this->_internal_remainpowder(), 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:StateChangeMsg)
return target;
}
::size_t StateChangeMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:StateChangeMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string machineId = 13;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// string material = 20;
if (!this->_internal_material().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_material());
}
// string jobName = 21;
if (!this->_internal_jobname().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobname());
}
// string jobId = 22;
if (!this->_internal_jobid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobid());
}
// string taskId = 23;
if (!this->_internal_taskid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_taskid());
}
// float oxygenValue = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = this->_internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
total_size += 5;
}
// float ambientTemp = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = this->_internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
total_size += 5;
}
// float innerTemp = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = this->_internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
total_size += 5;
}
// float windValue = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = this->_internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
total_size += 5;
}
// float platformTempValue = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = this->_internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
total_size += 5;
}
// float platformTempSettingValue = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = this->_internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
total_size += 5;
}
// float moldPos = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = this->_internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
total_size += 5;
}
// float powderPos = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = this->_internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
total_size += 5;
}
// float armPos = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = this->_internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
total_size += 5;
}
// .StateChangeMsg.PrintState printState = 10;
if (this->_internal_printstate() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_printstate());
}
// int32 layerIndex = 11;
if (this->_internal_layerindex() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_layerindex());
}
// int32 limitFlag = 12;
if (this->_internal_limitflag() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_limitflag());
}
// uint64 accTime = 15;
if (this->_internal_acctime() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
this->_internal_acctime());
}
// uint64 remainTime = 16;
if (this->_internal_remaintime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
this->_internal_remaintime());
}
// bool isDoorClose = 14;
if (this->_internal_isdoorclose() != 0) {
total_size += 2;
}
// int32 layerCount = 18;
if (this->_internal_layercount() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this->_internal_layercount());
}
// uint64 totalTime = 17;
if (this->_internal_totaltime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt64Size(
this->_internal_totaltime());
}
// int64 printTime = 19;
if (this->_internal_printtime() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
this->_internal_printtime());
}
// float remainPowder = 24;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = this->_internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
total_size += 6;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData StateChangeMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
StateChangeMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*StateChangeMsg::GetClassData() const { return &_class_data_; }
void StateChangeMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<StateChangeMsg*>(&to_msg);
auto& from = static_cast<const StateChangeMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:StateChangeMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_material().empty()) {
_this->_internal_set_material(from._internal_material());
}
if (!from._internal_jobname().empty()) {
_this->_internal_set_jobname(from._internal_jobname());
}
if (!from._internal_jobid().empty()) {
_this->_internal_set_jobid(from._internal_jobid());
}
if (!from._internal_taskid().empty()) {
_this->_internal_set_taskid(from._internal_taskid());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_oxygenvalue = from._internal_oxygenvalue();
::uint32_t raw_oxygenvalue;
memcpy(&raw_oxygenvalue, &tmp_oxygenvalue, sizeof(tmp_oxygenvalue));
if (raw_oxygenvalue != 0) {
_this->_internal_set_oxygenvalue(from._internal_oxygenvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ambienttemp = from._internal_ambienttemp();
::uint32_t raw_ambienttemp;
memcpy(&raw_ambienttemp, &tmp_ambienttemp, sizeof(tmp_ambienttemp));
if (raw_ambienttemp != 0) {
_this->_internal_set_ambienttemp(from._internal_ambienttemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innertemp = from._internal_innertemp();
::uint32_t raw_innertemp;
memcpy(&raw_innertemp, &tmp_innertemp, sizeof(tmp_innertemp));
if (raw_innertemp != 0) {
_this->_internal_set_innertemp(from._internal_innertemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windvalue = from._internal_windvalue();
::uint32_t raw_windvalue;
memcpy(&raw_windvalue, &tmp_windvalue, sizeof(tmp_windvalue));
if (raw_windvalue != 0) {
_this->_internal_set_windvalue(from._internal_windvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempvalue = from._internal_platformtempvalue();
::uint32_t raw_platformtempvalue;
memcpy(&raw_platformtempvalue, &tmp_platformtempvalue, sizeof(tmp_platformtempvalue));
if (raw_platformtempvalue != 0) {
_this->_internal_set_platformtempvalue(from._internal_platformtempvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_platformtempsettingvalue = from._internal_platformtempsettingvalue();
::uint32_t raw_platformtempsettingvalue;
memcpy(&raw_platformtempsettingvalue, &tmp_platformtempsettingvalue, sizeof(tmp_platformtempsettingvalue));
if (raw_platformtempsettingvalue != 0) {
_this->_internal_set_platformtempsettingvalue(from._internal_platformtempsettingvalue());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_moldpos = from._internal_moldpos();
::uint32_t raw_moldpos;
memcpy(&raw_moldpos, &tmp_moldpos, sizeof(tmp_moldpos));
if (raw_moldpos != 0) {
_this->_internal_set_moldpos(from._internal_moldpos());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powderpos = from._internal_powderpos();
::uint32_t raw_powderpos;
memcpy(&raw_powderpos, &tmp_powderpos, sizeof(tmp_powderpos));
if (raw_powderpos != 0) {
_this->_internal_set_powderpos(from._internal_powderpos());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_armpos = from._internal_armpos();
::uint32_t raw_armpos;
memcpy(&raw_armpos, &tmp_armpos, sizeof(tmp_armpos));
if (raw_armpos != 0) {
_this->_internal_set_armpos(from._internal_armpos());
}
if (from._internal_printstate() != 0) {
_this->_internal_set_printstate(from._internal_printstate());
}
if (from._internal_layerindex() != 0) {
_this->_internal_set_layerindex(from._internal_layerindex());
}
if (from._internal_limitflag() != 0) {
_this->_internal_set_limitflag(from._internal_limitflag());
}
if (from._internal_acctime() != 0) {
_this->_internal_set_acctime(from._internal_acctime());
}
if (from._internal_remaintime() != 0) {
_this->_internal_set_remaintime(from._internal_remaintime());
}
if (from._internal_isdoorclose() != 0) {
_this->_internal_set_isdoorclose(from._internal_isdoorclose());
}
if (from._internal_layercount() != 0) {
_this->_internal_set_layercount(from._internal_layercount());
}
if (from._internal_totaltime() != 0) {
_this->_internal_set_totaltime(from._internal_totaltime());
}
if (from._internal_printtime() != 0) {
_this->_internal_set_printtime(from._internal_printtime());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_remainpowder = from._internal_remainpowder();
::uint32_t raw_remainpowder;
memcpy(&raw_remainpowder, &tmp_remainpowder, sizeof(tmp_remainpowder));
if (raw_remainpowder != 0) {
_this->_internal_set_remainpowder(from._internal_remainpowder());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void StateChangeMsg::CopyFrom(const StateChangeMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:StateChangeMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool StateChangeMsg::IsInitialized() const {
return true;
}
void StateChangeMsg::InternalSwap(StateChangeMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.material_, lhs_arena,
&other->_impl_.material_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobname_, lhs_arena,
&other->_impl_.jobname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobid_, lhs_arena,
&other->_impl_.jobid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.taskid_, lhs_arena,
&other->_impl_.taskid_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.remainpowder_)
+ sizeof(StateChangeMsg::_impl_.remainpowder_)
- PROTOBUF_FIELD_OFFSET(StateChangeMsg, _impl_.oxygenvalue_)>(
reinterpret_cast<char*>(&_impl_.oxygenvalue_),
reinterpret_cast<char*>(&other->_impl_.oxygenvalue_));
}
::google::protobuf::Metadata StateChangeMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[2]);
}
// ===================================================================
class MachineMsg::_Internal {
public:
};
MachineMsg::MachineMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:MachineMsg)
}
MachineMsg::MachineMsg(const MachineMsg& from) : ::google::protobuf::Message() {
MachineMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.password_){},
decltype(_impl_.name_){},
decltype(_impl_.location_){},
decltype(_impl_.machinetype_){},
decltype(_impl_.purifiertype_){},
decltype(_impl_.laststarttime_){},
decltype(_impl_.lastshutdowntime_){},
decltype(_impl_.language_){},
decltype(_impl_.isonline_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.password_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.password_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_password().empty()) {
_this->_impl_.password_.Set(from._internal_password(), _this->GetArenaForAllocation());
}
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
}
_impl_.location_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.location_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_location().empty()) {
_this->_impl_.location_.Set(from._internal_location(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.machinetype_, &from._impl_.machinetype_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.isonline_) -
reinterpret_cast<char*>(&_impl_.machinetype_)) + sizeof(_impl_.isonline_));
// @@protoc_insertion_point(copy_constructor:MachineMsg)
}
inline void MachineMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.password_){},
decltype(_impl_.name_){},
decltype(_impl_.location_){},
decltype(_impl_.machinetype_){0},
decltype(_impl_.purifiertype_){0},
decltype(_impl_.laststarttime_){::int64_t{0}},
decltype(_impl_.lastshutdowntime_){::int64_t{0}},
decltype(_impl_.language_){0},
decltype(_impl_.isonline_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.password_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.password_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.location_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.location_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
MachineMsg::~MachineMsg() {
// @@protoc_insertion_point(destructor:MachineMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void MachineMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.machineid_.Destroy();
_impl_.password_.Destroy();
_impl_.name_.Destroy();
_impl_.location_.Destroy();
}
void MachineMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void MachineMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:MachineMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.machineid_.ClearToEmpty();
_impl_.password_.ClearToEmpty();
_impl_.name_.ClearToEmpty();
_impl_.location_.ClearToEmpty();
::memset(&_impl_.machinetype_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.isonline_) -
reinterpret_cast<char*>(&_impl_.machinetype_)) + sizeof(_impl_.isonline_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* MachineMsg::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 10, 0, 56, 2> MachineMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
10, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294966272, // skipmap
offsetof(decltype(_table_), field_entries),
10, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_MachineMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string machineId = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.machineid_)}},
// .MachineMsg.MachineType machineType = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MachineMsg, _impl_.machinetype_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.machinetype_)}},
// .MachineMsg.PurifierType purifierType = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MachineMsg, _impl_.purifiertype_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.purifiertype_)}},
// int64 lastStartTime = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MachineMsg, _impl_.laststarttime_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.laststarttime_)}},
// int64 lastShutdownTime = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MachineMsg, _impl_.lastshutdowntime_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.lastshutdowntime_)}},
// int32 language = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MachineMsg, _impl_.language_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.language_)}},
// bool isOnline = 7;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MachineMsg, _impl_.isonline_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.isonline_)}},
// string password = 8;
{::_pbi::TcParser::FastUS1,
{66, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.password_)}},
// string name = 9;
{::_pbi::TcParser::FastUS1,
{74, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.name_)}},
// string location = 10;
{::_pbi::TcParser::FastUS1,
{82, 63, 0, PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.location_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string machineId = 1;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// .MachineMsg.MachineType machineType = 2;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.machinetype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// .MachineMsg.PurifierType purifierType = 3;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.purifiertype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// int64 lastStartTime = 4;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.laststarttime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 lastShutdownTime = 5;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.lastshutdowntime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int32 language = 6;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.language_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// bool isOnline = 7;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.isonline_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// string password = 8;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.password_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string name = 9;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.name_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string location = 10;
{PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.location_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\12\11\0\0\0\0\0\0\10\4\10\0\0\0\0\0"
"MachineMsg"
"machineId"
"password"
"name"
"location"
}},
};
::uint8_t* MachineMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:MachineMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "MachineMsg.machineId");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// .MachineMsg.MachineType machineType = 2;
if (this->_internal_machinetype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
2, this->_internal_machinetype(), target);
}
// .MachineMsg.PurifierType purifierType = 3;
if (this->_internal_purifiertype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this->_internal_purifiertype(), target);
}
// int64 lastStartTime = 4;
if (this->_internal_laststarttime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<4>(
stream, this->_internal_laststarttime(), target);
}
// int64 lastShutdownTime = 5;
if (this->_internal_lastshutdowntime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<5>(
stream, this->_internal_lastshutdowntime(), target);
}
// int32 language = 6;
if (this->_internal_language() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<6>(
stream, this->_internal_language(), target);
}
// bool isOnline = 7;
if (this->_internal_isonline() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
7, this->_internal_isonline(), target);
}
// string password = 8;
if (!this->_internal_password().empty()) {
const std::string& _s = this->_internal_password();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "MachineMsg.password");
target = stream->WriteStringMaybeAliased(8, _s, target);
}
// string name = 9;
if (!this->_internal_name().empty()) {
const std::string& _s = this->_internal_name();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "MachineMsg.name");
target = stream->WriteStringMaybeAliased(9, _s, target);
}
// string location = 10;
if (!this->_internal_location().empty()) {
const std::string& _s = this->_internal_location();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "MachineMsg.location");
target = stream->WriteStringMaybeAliased(10, _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:MachineMsg)
return target;
}
::size_t MachineMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:MachineMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// string password = 8;
if (!this->_internal_password().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_password());
}
// string name = 9;
if (!this->_internal_name().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string location = 10;
if (!this->_internal_location().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_location());
}
// .MachineMsg.MachineType machineType = 2;
if (this->_internal_machinetype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_machinetype());
}
// .MachineMsg.PurifierType purifierType = 3;
if (this->_internal_purifiertype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_purifiertype());
}
// int64 lastStartTime = 4;
if (this->_internal_laststarttime() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laststarttime());
}
// int64 lastShutdownTime = 5;
if (this->_internal_lastshutdowntime() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_lastshutdowntime());
}
// int32 language = 6;
if (this->_internal_language() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_language());
}
// bool isOnline = 7;
if (this->_internal_isonline() != 0) {
total_size += 2;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData MachineMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
MachineMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*MachineMsg::GetClassData() const { return &_class_data_; }
void MachineMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<MachineMsg*>(&to_msg);
auto& from = static_cast<const MachineMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:MachineMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_password().empty()) {
_this->_internal_set_password(from._internal_password());
}
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
if (!from._internal_location().empty()) {
_this->_internal_set_location(from._internal_location());
}
if (from._internal_machinetype() != 0) {
_this->_internal_set_machinetype(from._internal_machinetype());
}
if (from._internal_purifiertype() != 0) {
_this->_internal_set_purifiertype(from._internal_purifiertype());
}
if (from._internal_laststarttime() != 0) {
_this->_internal_set_laststarttime(from._internal_laststarttime());
}
if (from._internal_lastshutdowntime() != 0) {
_this->_internal_set_lastshutdowntime(from._internal_lastshutdowntime());
}
if (from._internal_language() != 0) {
_this->_internal_set_language(from._internal_language());
}
if (from._internal_isonline() != 0) {
_this->_internal_set_isonline(from._internal_isonline());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void MachineMsg::CopyFrom(const MachineMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:MachineMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool MachineMsg::IsInitialized() const {
return true;
}
void MachineMsg::InternalSwap(MachineMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.password_, lhs_arena,
&other->_impl_.password_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.location_, lhs_arena,
&other->_impl_.location_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.isonline_)
+ sizeof(MachineMsg::_impl_.isonline_)
- PROTOBUF_FIELD_OFFSET(MachineMsg, _impl_.machinetype_)>(
reinterpret_cast<char*>(&_impl_.machinetype_),
reinterpret_cast<char*>(&other->_impl_.machinetype_));
}
::google::protobuf::Metadata MachineMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[3]);
}
// ===================================================================
class ErrorMsg::_Internal {
public:
};
ErrorMsg::ErrorMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:ErrorMsg)
}
ErrorMsg::ErrorMsg(const ErrorMsg& from) : ::google::protobuf::Message() {
ErrorMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.errormsg_){},
decltype(_impl_.machineid_){},
decltype(_impl_.occurtime_){},
decltype(_impl_.errortype_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.errormsg_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.errormsg_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_errormsg().empty()) {
_this->_impl_.errormsg_.Set(from._internal_errormsg(), _this->GetArenaForAllocation());
}
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.occurtime_, &from._impl_.occurtime_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.errortype_) -
reinterpret_cast<char*>(&_impl_.occurtime_)) + sizeof(_impl_.errortype_));
// @@protoc_insertion_point(copy_constructor:ErrorMsg)
}
inline void ErrorMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.errormsg_){},
decltype(_impl_.machineid_){},
decltype(_impl_.occurtime_){::int64_t{0}},
decltype(_impl_.errortype_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.errormsg_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.errormsg_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ErrorMsg::~ErrorMsg() {
// @@protoc_insertion_point(destructor:ErrorMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ErrorMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.errormsg_.Destroy();
_impl_.machineid_.Destroy();
}
void ErrorMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ErrorMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:ErrorMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.errormsg_.ClearToEmpty();
_impl_.machineid_.ClearToEmpty();
::memset(&_impl_.occurtime_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.errortype_) -
reinterpret_cast<char*>(&_impl_.occurtime_)) + sizeof(_impl_.errortype_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ErrorMsg::_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, 34, 2> ErrorMsg::_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
&_ErrorMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string machineId = 4;
{::_pbi::TcParser::FastUS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.machineid_)}},
// .ErrorMsg.ErrorType errorType = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ErrorMsg, _impl_.errortype_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.errortype_)}},
// string errorMsg = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.errormsg_)}},
// int64 occurTime = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ErrorMsg, _impl_.occurtime_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.occurtime_)}},
}}, {{
65535, 65535
}}, {{
// .ErrorMsg.ErrorType errorType = 1;
{PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.errortype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// string errorMsg = 2;
{PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.errormsg_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int64 occurTime = 3;
{PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.occurtime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// string machineId = 4;
{PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\10\0\10\0\11\0\0\0"
"ErrorMsg"
"errorMsg"
"machineId"
}},
};
::uint8_t* ErrorMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:ErrorMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// .ErrorMsg.ErrorType errorType = 1;
if (this->_internal_errortype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
1, this->_internal_errortype(), target);
}
// string errorMsg = 2;
if (!this->_internal_errormsg().empty()) {
const std::string& _s = this->_internal_errormsg();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "ErrorMsg.errorMsg");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// int64 occurTime = 3;
if (this->_internal_occurtime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<3>(
stream, this->_internal_occurtime(), target);
}
// string machineId = 4;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "ErrorMsg.machineId");
target = stream->WriteStringMaybeAliased(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:ErrorMsg)
return target;
}
::size_t ErrorMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ErrorMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string errorMsg = 2;
if (!this->_internal_errormsg().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_errormsg());
}
// string machineId = 4;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// int64 occurTime = 3;
if (this->_internal_occurtime() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_occurtime());
}
// .ErrorMsg.ErrorType errorType = 1;
if (this->_internal_errortype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_errortype());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ErrorMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ErrorMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ErrorMsg::GetClassData() const { return &_class_data_; }
void ErrorMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ErrorMsg*>(&to_msg);
auto& from = static_cast<const ErrorMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:ErrorMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_errormsg().empty()) {
_this->_internal_set_errormsg(from._internal_errormsg());
}
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (from._internal_occurtime() != 0) {
_this->_internal_set_occurtime(from._internal_occurtime());
}
if (from._internal_errortype() != 0) {
_this->_internal_set_errortype(from._internal_errortype());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ErrorMsg::CopyFrom(const ErrorMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ErrorMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ErrorMsg::IsInitialized() const {
return true;
}
void ErrorMsg::InternalSwap(ErrorMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.errormsg_, lhs_arena,
&other->_impl_.errormsg_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.errortype_)
+ sizeof(ErrorMsg::_impl_.errortype_)
- PROTOBUF_FIELD_OFFSET(ErrorMsg, _impl_.occurtime_)>(
reinterpret_cast<char*>(&_impl_.occurtime_),
reinterpret_cast<char*>(&other->_impl_.occurtime_));
}
::google::protobuf::Metadata ErrorMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[4]);
}
// ===================================================================
class ParameterMsg::_Internal {
public:
};
ParameterMsg::ParameterMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:ParameterMsg)
}
ParameterMsg::ParameterMsg(const ParameterMsg& from) : ::google::protobuf::Message() {
ParameterMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.type_){},
decltype(_impl_.laserspeed_){},
decltype(_impl_.laserpower_){},
decltype(_impl_.laserdiameter_){},
/*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());
}
::memcpy(&_impl_.laserspeed_, &from._impl_.laserspeed_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.laserdiameter_) -
reinterpret_cast<char*>(&_impl_.laserspeed_)) + sizeof(_impl_.laserdiameter_));
// @@protoc_insertion_point(copy_constructor:ParameterMsg)
}
inline void ParameterMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.type_){},
decltype(_impl_.laserspeed_){0},
decltype(_impl_.laserpower_){0},
decltype(_impl_.laserdiameter_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.type_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.type_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ParameterMsg::~ParameterMsg() {
// @@protoc_insertion_point(destructor:ParameterMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ParameterMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.type_.Destroy();
}
void ParameterMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ParameterMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:ParameterMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.type_.ClearToEmpty();
::memset(&_impl_.laserspeed_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.laserdiameter_) -
reinterpret_cast<char*>(&_impl_.laserspeed_)) + sizeof(_impl_.laserdiameter_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ParameterMsg::_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, 25, 2> ParameterMsg::_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
&_ParameterMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// float laserDiameter = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserdiameter_)}},
// string type = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.type_)}},
// float laserSpeed = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserspeed_)}},
// float laserPower = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserpower_)}},
}}, {{
65535, 65535
}}, {{
// string type = 1;
{PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.type_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// float laserSpeed = 2;
{PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserspeed_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float laserPower = 3;
{PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserpower_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float laserDiameter = 4;
{PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserdiameter_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
"\14\4\0\0\0\0\0\0"
"ParameterMsg"
"type"
}},
};
::uint8_t* ParameterMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:ParameterMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string type = 1;
if (!this->_internal_type().empty()) {
const std::string& _s = this->_internal_type();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "ParameterMsg.type");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// float laserSpeed = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserspeed = this->_internal_laserspeed();
::uint32_t raw_laserspeed;
memcpy(&raw_laserspeed, &tmp_laserspeed, sizeof(tmp_laserspeed));
if (raw_laserspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_laserspeed(), target);
}
// float laserPower = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserpower = this->_internal_laserpower();
::uint32_t raw_laserpower;
memcpy(&raw_laserpower, &tmp_laserpower, sizeof(tmp_laserpower));
if (raw_laserpower != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_laserpower(), target);
}
// float laserDiameter = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserdiameter = this->_internal_laserdiameter();
::uint32_t raw_laserdiameter;
memcpy(&raw_laserdiameter, &tmp_laserdiameter, sizeof(tmp_laserdiameter));
if (raw_laserdiameter != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_laserdiameter(), 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:ParameterMsg)
return target;
}
::size_t ParameterMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ParameterMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string type = 1;
if (!this->_internal_type().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_type());
}
// float laserSpeed = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserspeed = this->_internal_laserspeed();
::uint32_t raw_laserspeed;
memcpy(&raw_laserspeed, &tmp_laserspeed, sizeof(tmp_laserspeed));
if (raw_laserspeed != 0) {
total_size += 5;
}
// float laserPower = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserpower = this->_internal_laserpower();
::uint32_t raw_laserpower;
memcpy(&raw_laserpower, &tmp_laserpower, sizeof(tmp_laserpower));
if (raw_laserpower != 0) {
total_size += 5;
}
// float laserDiameter = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserdiameter = this->_internal_laserdiameter();
::uint32_t raw_laserdiameter;
memcpy(&raw_laserdiameter, &tmp_laserdiameter, sizeof(tmp_laserdiameter));
if (raw_laserdiameter != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ParameterMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ParameterMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ParameterMsg::GetClassData() const { return &_class_data_; }
void ParameterMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ParameterMsg*>(&to_msg);
auto& from = static_cast<const ParameterMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:ParameterMsg)
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());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserspeed = from._internal_laserspeed();
::uint32_t raw_laserspeed;
memcpy(&raw_laserspeed, &tmp_laserspeed, sizeof(tmp_laserspeed));
if (raw_laserspeed != 0) {
_this->_internal_set_laserspeed(from._internal_laserspeed());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserpower = from._internal_laserpower();
::uint32_t raw_laserpower;
memcpy(&raw_laserpower, &tmp_laserpower, sizeof(tmp_laserpower));
if (raw_laserpower != 0) {
_this->_internal_set_laserpower(from._internal_laserpower());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_laserdiameter = from._internal_laserdiameter();
::uint32_t raw_laserdiameter;
memcpy(&raw_laserdiameter, &tmp_laserdiameter, sizeof(tmp_laserdiameter));
if (raw_laserdiameter != 0) {
_this->_internal_set_laserdiameter(from._internal_laserdiameter());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ParameterMsg::CopyFrom(const ParameterMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ParameterMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ParameterMsg::IsInitialized() const {
return true;
}
void ParameterMsg::InternalSwap(ParameterMsg* 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);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserdiameter_)
+ sizeof(ParameterMsg::_impl_.laserdiameter_)
- PROTOBUF_FIELD_OFFSET(ParameterMsg, _impl_.laserspeed_)>(
reinterpret_cast<char*>(&_impl_.laserspeed_),
reinterpret_cast<char*>(&other->_impl_.laserspeed_));
}
::google::protobuf::Metadata ParameterMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[5]);
}
// ===================================================================
class PartMsg::_Internal {
public:
};
PartMsg::PartMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:PartMsg)
}
PartMsg::PartMsg(const PartMsg& from) : ::google::protobuf::Message() {
PartMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.param_){from._impl_.param_},
decltype(_impl_.name_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:PartMsg)
}
inline void PartMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.param_){arena},
decltype(_impl_.name_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
PartMsg::~PartMsg() {
// @@protoc_insertion_point(destructor:PartMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void PartMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.param_.~RepeatedPtrField();
_impl_.name_.Destroy();
}
void PartMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void PartMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:PartMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_param()->Clear();
_impl_.name_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* PartMsg::_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<1, 2, 1, 20, 2> PartMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_PartMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .ParameterMsg param = 2;
{::_pbi::TcParser::FastMtR1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(PartMsg, _impl_.param_)}},
// string name = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(PartMsg, _impl_.name_)}},
}}, {{
65535, 65535
}}, {{
// string name = 1;
{PROTOBUF_FIELD_OFFSET(PartMsg, _impl_.name_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// repeated .ParameterMsg param = 2;
{PROTOBUF_FIELD_OFFSET(PartMsg, _impl_.param_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::ParameterMsg>()},
}}, {{
"\7\4\0\0\0\0\0\0"
"PartMsg"
"name"
}},
};
::uint8_t* PartMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:PartMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
const std::string& _s = this->_internal_name();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "PartMsg.name");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// repeated .ParameterMsg param = 2;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_param_size()); i < n; i++) {
const auto& repfield = this->_internal_param().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
}
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:PartMsg)
return target;
}
::size_t PartMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:PartMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .ParameterMsg param = 2;
total_size += 1UL * this->_internal_param_size();
for (const auto& msg : this->_internal_param()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// string name = 1;
if (!this->_internal_name().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_name());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData PartMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
PartMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*PartMsg::GetClassData() const { return &_class_data_; }
void PartMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<PartMsg*>(&to_msg);
auto& from = static_cast<const PartMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:PartMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_param()->MergeFrom(from._internal_param());
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void PartMsg::CopyFrom(const PartMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:PartMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool PartMsg::IsInitialized() const {
return true;
}
void PartMsg::InternalSwap(PartMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.param_.InternalSwap(&other->_impl_.param_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);
}
::google::protobuf::Metadata PartMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[6]);
}
// ===================================================================
class JobMsg::_Internal {
public:
using HasBits = decltype(std::declval<JobMsg>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(JobMsg, _impl_._has_bits_);
static const ::JobInfoMsg& jobinfomsg(const JobMsg* msg);
static void set_has_jobinfomsg(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
const ::JobInfoMsg& JobMsg::_Internal::jobinfomsg(const JobMsg* msg) {
return *msg->_impl_.jobinfomsg_;
}
JobMsg::JobMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:JobMsg)
}
JobMsg::JobMsg(const JobMsg& from) : ::google::protobuf::Message() {
JobMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.partmsg_){from._impl_.partmsg_},
decltype(_impl_.machineid_){},
decltype(_impl_.jobinfomsg_){nullptr},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_impl_.jobinfomsg_ = new ::JobInfoMsg(*from._impl_.jobinfomsg_);
}
// @@protoc_insertion_point(copy_constructor:JobMsg)
}
inline void JobMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.partmsg_){arena},
decltype(_impl_.machineid_){},
decltype(_impl_.jobinfomsg_){nullptr},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
JobMsg::~JobMsg() {
// @@protoc_insertion_point(destructor:JobMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void JobMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.partmsg_.~RepeatedPtrField();
_impl_.machineid_.Destroy();
if (this != internal_default_instance()) delete _impl_.jobinfomsg_;
}
void JobMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void JobMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:JobMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_partmsg()->Clear();
_impl_.machineid_.ClearToEmpty();
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(_impl_.jobinfomsg_ != nullptr);
_impl_.jobinfomsg_->Clear();
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* JobMsg::_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, 3, 2, 24, 2> JobMsg::_table_ = {
{
PROTOBUF_FIELD_OFFSET(JobMsg, _impl_._has_bits_),
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_JobMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// .JobInfoMsg jobInfoMsg = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0, PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.jobinfomsg_)}},
// repeated .PartMsg partMsg = 2;
{::_pbi::TcParser::FastMtR1,
{18, 63, 1, PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.partmsg_)}},
// string machineId = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.machineid_)}},
}}, {{
65535, 65535
}}, {{
// .JobInfoMsg jobInfoMsg = 1;
{PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.jobinfomsg_), _Internal::kHasBitsOffset + 0, 0,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .PartMsg partMsg = 2;
{PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.partmsg_), -1, 1,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// string machineId = 3;
{PROTOBUF_FIELD_OFFSET(JobMsg, _impl_.machineid_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}}, {{
{::_pbi::TcParser::GetTable<::JobInfoMsg>()},
{::_pbi::TcParser::GetTable<::PartMsg>()},
}}, {{
"\6\0\0\11\0\0\0\0"
"JobMsg"
"machineId"
}},
};
::uint8_t* JobMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:JobMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// .JobInfoMsg jobInfoMsg = 1;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::jobinfomsg(this),
_Internal::jobinfomsg(this).GetCachedSize(), target, stream);
}
// repeated .PartMsg partMsg = 2;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_partmsg_size()); i < n; i++) {
const auto& repfield = this->_internal_partmsg().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
}
// string machineId = 3;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobMsg.machineId");
target = stream->WriteStringMaybeAliased(3, _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:JobMsg)
return target;
}
::size_t JobMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:JobMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .PartMsg partMsg = 2;
total_size += 1UL * this->_internal_partmsg_size();
for (const auto& msg : this->_internal_partmsg()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// string machineId = 3;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// .JobInfoMsg jobInfoMsg = 1;
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.jobinfomsg_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData JobMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
JobMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*JobMsg::GetClassData() const { return &_class_data_; }
void JobMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<JobMsg*>(&to_msg);
auto& from = static_cast<const JobMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:JobMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_partmsg()->MergeFrom(from._internal_partmsg());
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_internal_mutable_jobinfomsg()->::JobInfoMsg::MergeFrom(
from._internal_jobinfomsg());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void JobMsg::CopyFrom(const JobMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:JobMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool JobMsg::IsInitialized() const {
return true;
}
void JobMsg::InternalSwap(JobMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.partmsg_.InternalSwap(&other->_impl_.partmsg_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
swap(_impl_.jobinfomsg_, other->_impl_.jobinfomsg_);
}
::google::protobuf::Metadata JobMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[7]);
}
// ===================================================================
class LayerDataRespMsg::_Internal {
public:
};
LayerDataRespMsg::LayerDataRespMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerDataRespMsg)
}
LayerDataRespMsg::LayerDataRespMsg(const LayerDataRespMsg& from) : ::google::protobuf::Message() {
LayerDataRespMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.data_){from._impl_.data_},
decltype(_impl_.machineid_){},
decltype(_impl_.datas_){},
decltype(_impl_.paramtype_){},
decltype(_impl_.type_){},
decltype(_impl_.partid_){},
decltype(_impl_.total_){},
decltype(_impl_.index_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.datas_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.datas_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_datas().empty()) {
_this->_impl_.datas_.Set(from._internal_datas(), _this->GetArenaForAllocation());
}
_impl_.paramtype_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.paramtype_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_paramtype().empty()) {
_this->_impl_.paramtype_.Set(from._internal_paramtype(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.type_, &from._impl_.type_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.index_) -
reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.index_));
// @@protoc_insertion_point(copy_constructor:LayerDataRespMsg)
}
inline void LayerDataRespMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.data_){arena},
decltype(_impl_.machineid_){},
decltype(_impl_.datas_){},
decltype(_impl_.paramtype_){},
decltype(_impl_.type_){0},
decltype(_impl_.partid_){0},
decltype(_impl_.total_){0u},
decltype(_impl_.index_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.datas_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.datas_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.paramtype_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.paramtype_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerDataRespMsg::~LayerDataRespMsg() {
// @@protoc_insertion_point(destructor:LayerDataRespMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerDataRespMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.data_.~RepeatedField();
_impl_.machineid_.Destroy();
_impl_.datas_.Destroy();
_impl_.paramtype_.Destroy();
}
void LayerDataRespMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerDataRespMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerDataRespMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_data()->Clear();
_impl_.machineid_.ClearToEmpty();
_impl_.datas_.ClearToEmpty();
_impl_.paramtype_.ClearToEmpty();
::memset(&_impl_.type_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.index_) -
reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.index_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerDataRespMsg::_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<3, 8, 0, 51, 2> LayerDataRespMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
8, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967040, // skipmap
offsetof(decltype(_table_), field_entries),
8, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerDataRespMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string paramType = 8;
{::_pbi::TcParser::FastUS1,
{66, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.paramtype_)}},
// string machineId = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.machineid_)}},
// int32 type = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataRespMsg, _impl_.type_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.type_)}},
// int32 partId = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataRespMsg, _impl_.partid_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.partid_)}},
// uint32 total = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataRespMsg, _impl_.total_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.total_)}},
// uint32 index = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataRespMsg, _impl_.index_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.index_)}},
// repeated float data = 6;
{::_pbi::TcParser::FastF32P1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.data_)}},
// bytes datas = 7;
{::_pbi::TcParser::FastBS1,
{58, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.datas_)}},
}}, {{
65535, 65535
}}, {{
// string machineId = 1;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int32 type = 2;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.type_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 partId = 3;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.partid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// uint32 total = 4;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.total_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 index = 5;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.index_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// repeated float data = 6;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.data_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
// bytes datas = 7;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.datas_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// string paramType = 8;
{PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.paramtype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\20\11\0\0\0\0\0\0\11\0\0\0\0\0\0\0"
"LayerDataRespMsg"
"machineId"
"paramType"
}},
};
::uint8_t* LayerDataRespMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerDataRespMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerDataRespMsg.machineId");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// int32 type = 2;
if (this->_internal_type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_type(), target);
}
// int32 partId = 3;
if (this->_internal_partid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<3>(
stream, this->_internal_partid(), target);
}
// uint32 total = 4;
if (this->_internal_total() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
4, this->_internal_total(), target);
}
// uint32 index = 5;
if (this->_internal_index() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
5, this->_internal_index(), target);
}
// repeated float data = 6;
if (this->_internal_data_size() > 0) {
target = stream->WriteFixedPacked(6, _internal_data(), target);
}
// bytes datas = 7;
if (!this->_internal_datas().empty()) {
const std::string& _s = this->_internal_datas();
target = stream->WriteBytesMaybeAliased(7, _s, target);
}
// string paramType = 8;
if (!this->_internal_paramtype().empty()) {
const std::string& _s = this->_internal_paramtype();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerDataRespMsg.paramType");
target = stream->WriteStringMaybeAliased(8, _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:LayerDataRespMsg)
return target;
}
::size_t LayerDataRespMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerDataRespMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated float data = 6;
{
std::size_t data_size = std::size_t{4} *
::_pbi::FromIntSize(this->_internal_data_size())
;
std::size_t tag_size = data_size == 0
? 0
: 1 + ::_pbi::WireFormatLite::Int32Size(
static_cast<int32_t>(data_size))
;
total_size += tag_size + data_size;
}
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// bytes datas = 7;
if (!this->_internal_datas().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_datas());
}
// string paramType = 8;
if (!this->_internal_paramtype().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_paramtype());
}
// int32 type = 2;
if (this->_internal_type() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_type());
}
// int32 partId = 3;
if (this->_internal_partid() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_partid());
}
// uint32 total = 4;
if (this->_internal_total() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_total());
}
// uint32 index = 5;
if (this->_internal_index() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_index());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerDataRespMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerDataRespMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerDataRespMsg::GetClassData() const { return &_class_data_; }
void LayerDataRespMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerDataRespMsg*>(&to_msg);
auto& from = static_cast<const LayerDataRespMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerDataRespMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_data()->MergeFrom(from._internal_data());
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_datas().empty()) {
_this->_internal_set_datas(from._internal_datas());
}
if (!from._internal_paramtype().empty()) {
_this->_internal_set_paramtype(from._internal_paramtype());
}
if (from._internal_type() != 0) {
_this->_internal_set_type(from._internal_type());
}
if (from._internal_partid() != 0) {
_this->_internal_set_partid(from._internal_partid());
}
if (from._internal_total() != 0) {
_this->_internal_set_total(from._internal_total());
}
if (from._internal_index() != 0) {
_this->_internal_set_index(from._internal_index());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerDataRespMsg::CopyFrom(const LayerDataRespMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerDataRespMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerDataRespMsg::IsInitialized() const {
return true;
}
void LayerDataRespMsg::InternalSwap(LayerDataRespMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.data_.InternalSwap(&other->_impl_.data_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.datas_, lhs_arena,
&other->_impl_.datas_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.paramtype_, lhs_arena,
&other->_impl_.paramtype_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.index_)
+ sizeof(LayerDataRespMsg::_impl_.index_)
- PROTOBUF_FIELD_OFFSET(LayerDataRespMsg, _impl_.type_)>(
reinterpret_cast<char*>(&_impl_.type_),
reinterpret_cast<char*>(&other->_impl_.type_));
}
::google::protobuf::Metadata LayerDataRespMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[8]);
}
// ===================================================================
class JobParamMsg::_Internal {
public:
};
JobParamMsg::JobParamMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:JobParamMsg)
}
JobParamMsg::JobParamMsg(const JobParamMsg& from) : ::google::protobuf::Message() {
JobParamMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.parts_){from._impl_.parts_},
decltype(_impl_.machineid_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobuid_){},
decltype(_impl_.layercount_){},
decltype(_impl_.thickness_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobname().empty()) {
_this->_impl_.jobname_.Set(from._internal_jobname(), _this->GetArenaForAllocation());
}
_impl_.jobuid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobuid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobuid().empty()) {
_this->_impl_.jobuid_.Set(from._internal_jobuid(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.layercount_, &from._impl_.layercount_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.thickness_) -
reinterpret_cast<char*>(&_impl_.layercount_)) + sizeof(_impl_.thickness_));
// @@protoc_insertion_point(copy_constructor:JobParamMsg)
}
inline void JobParamMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.parts_){arena},
decltype(_impl_.machineid_){},
decltype(_impl_.jobname_){},
decltype(_impl_.jobuid_){},
decltype(_impl_.layercount_){0u},
decltype(_impl_.thickness_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobuid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobuid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
JobParamMsg::~JobParamMsg() {
// @@protoc_insertion_point(destructor:JobParamMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void JobParamMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.parts_.~RepeatedPtrField();
_impl_.machineid_.Destroy();
_impl_.jobname_.Destroy();
_impl_.jobuid_.Destroy();
}
void JobParamMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void JobParamMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:JobParamMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_parts()->Clear();
_impl_.machineid_.ClearToEmpty();
_impl_.jobname_.ClearToEmpty();
_impl_.jobuid_.ClearToEmpty();
::memset(&_impl_.layercount_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.thickness_) -
reinterpret_cast<char*>(&_impl_.layercount_)) + sizeof(_impl_.thickness_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* JobParamMsg::_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<3, 6, 1, 42, 2> JobParamMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967232, // skipmap
offsetof(decltype(_table_), field_entries),
6, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_JobParamMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string machineId = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.machineid_)}},
// string jobName = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.jobname_)}},
// string jobUid = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.jobuid_)}},
// uint32 layerCount = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(JobParamMsg, _impl_.layercount_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.layercount_)}},
// float thickness = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.thickness_)}},
// repeated .PartMsg parts = 6;
{::_pbi::TcParser::FastMtR1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.parts_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string machineId = 1;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobName = 2;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.jobname_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobUid = 3;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.jobuid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// uint32 layerCount = 4;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.layercount_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// float thickness = 5;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.thickness_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// repeated .PartMsg parts = 6;
{PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.parts_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::PartMsg>()},
}}, {{
"\13\11\7\6\0\0\0\0"
"JobParamMsg"
"machineId"
"jobName"
"jobUid"
}},
};
::uint8_t* JobParamMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:JobParamMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobParamMsg.machineId");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string jobName = 2;
if (!this->_internal_jobname().empty()) {
const std::string& _s = this->_internal_jobname();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobParamMsg.jobName");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// string jobUid = 3;
if (!this->_internal_jobuid().empty()) {
const std::string& _s = this->_internal_jobuid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "JobParamMsg.jobUid");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// uint32 layerCount = 4;
if (this->_internal_layercount() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
4, this->_internal_layercount(), target);
}
// float thickness = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_thickness = this->_internal_thickness();
::uint32_t raw_thickness;
memcpy(&raw_thickness, &tmp_thickness, sizeof(tmp_thickness));
if (raw_thickness != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_thickness(), target);
}
// repeated .PartMsg parts = 6;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_parts_size()); i < n; i++) {
const auto& repfield = this->_internal_parts().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
}
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:JobParamMsg)
return target;
}
::size_t JobParamMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:JobParamMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .PartMsg parts = 6;
total_size += 1UL * this->_internal_parts_size();
for (const auto& msg : this->_internal_parts()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// string jobName = 2;
if (!this->_internal_jobname().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobname());
}
// string jobUid = 3;
if (!this->_internal_jobuid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobuid());
}
// uint32 layerCount = 4;
if (this->_internal_layercount() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layercount());
}
// float thickness = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_thickness = this->_internal_thickness();
::uint32_t raw_thickness;
memcpy(&raw_thickness, &tmp_thickness, sizeof(tmp_thickness));
if (raw_thickness != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData JobParamMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
JobParamMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*JobParamMsg::GetClassData() const { return &_class_data_; }
void JobParamMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<JobParamMsg*>(&to_msg);
auto& from = static_cast<const JobParamMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:JobParamMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_parts()->MergeFrom(from._internal_parts());
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_jobname().empty()) {
_this->_internal_set_jobname(from._internal_jobname());
}
if (!from._internal_jobuid().empty()) {
_this->_internal_set_jobuid(from._internal_jobuid());
}
if (from._internal_layercount() != 0) {
_this->_internal_set_layercount(from._internal_layercount());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_thickness = from._internal_thickness();
::uint32_t raw_thickness;
memcpy(&raw_thickness, &tmp_thickness, sizeof(tmp_thickness));
if (raw_thickness != 0) {
_this->_internal_set_thickness(from._internal_thickness());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void JobParamMsg::CopyFrom(const JobParamMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:JobParamMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool JobParamMsg::IsInitialized() const {
return true;
}
void JobParamMsg::InternalSwap(JobParamMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.parts_.InternalSwap(&other->_impl_.parts_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobname_, lhs_arena,
&other->_impl_.jobname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobuid_, lhs_arena,
&other->_impl_.jobuid_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.thickness_)
+ sizeof(JobParamMsg::_impl_.thickness_)
- PROTOBUF_FIELD_OFFSET(JobParamMsg, _impl_.layercount_)>(
reinterpret_cast<char*>(&_impl_.layercount_),
reinterpret_cast<char*>(&other->_impl_.layercount_));
}
::google::protobuf::Metadata JobParamMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[9]);
}
// ===================================================================
class LayerDataReqMsg::_Internal {
public:
};
LayerDataReqMsg::LayerDataReqMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerDataReqMsg)
}
LayerDataReqMsg::LayerDataReqMsg(const LayerDataReqMsg& from) : ::google::protobuf::Message() {
LayerDataReqMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.layerindex_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_this->_impl_.layerindex_ = from._impl_.layerindex_;
// @@protoc_insertion_point(copy_constructor:LayerDataReqMsg)
}
inline void LayerDataReqMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.layerindex_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerDataReqMsg::~LayerDataReqMsg() {
// @@protoc_insertion_point(destructor:LayerDataReqMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerDataReqMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.machineid_.Destroy();
}
void LayerDataReqMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerDataReqMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerDataReqMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.machineid_.ClearToEmpty();
_impl_.layerindex_ = 0u;
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerDataReqMsg::_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<1, 2, 0, 33, 2> LayerDataReqMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerDataReqMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// uint32 layerIndex = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataReqMsg, _impl_.layerindex_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataReqMsg, _impl_.layerindex_)}},
// string machineId = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataReqMsg, _impl_.machineid_)}},
}}, {{
65535, 65535
}}, {{
// string machineId = 1;
{PROTOBUF_FIELD_OFFSET(LayerDataReqMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// uint32 layerIndex = 2;
{PROTOBUF_FIELD_OFFSET(LayerDataReqMsg, _impl_.layerindex_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
}},
// no aux_entries
{{
"\17\11\0\0\0\0\0\0"
"LayerDataReqMsg"
"machineId"
}},
};
::uint8_t* LayerDataReqMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerDataReqMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerDataReqMsg.machineId");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// uint32 layerIndex = 2;
if (this->_internal_layerindex() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_layerindex(), 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:LayerDataReqMsg)
return target;
}
::size_t LayerDataReqMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerDataReqMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// uint32 layerIndex = 2;
if (this->_internal_layerindex() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layerindex());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerDataReqMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerDataReqMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerDataReqMsg::GetClassData() const { return &_class_data_; }
void LayerDataReqMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerDataReqMsg*>(&to_msg);
auto& from = static_cast<const LayerDataReqMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerDataReqMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (from._internal_layerindex() != 0) {
_this->_internal_set_layerindex(from._internal_layerindex());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerDataReqMsg::CopyFrom(const LayerDataReqMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerDataReqMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerDataReqMsg::IsInitialized() const {
return true;
}
void LayerDataReqMsg::InternalSwap(LayerDataReqMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
swap(_impl_.layerindex_, other->_impl_.layerindex_);
}
::google::protobuf::Metadata LayerDataReqMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[10]);
}
// ===================================================================
class ResponseState::_Internal {
public:
};
ResponseState::ResponseState(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:ResponseState)
}
ResponseState::ResponseState(const ResponseState& from) : ::google::protobuf::Message() {
ResponseState* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.statemsg_){from._impl_.statemsg_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:ResponseState)
}
inline void ResponseState::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.statemsg_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ResponseState::~ResponseState() {
// @@protoc_insertion_point(destructor:ResponseState)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ResponseState::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.statemsg_.~RepeatedPtrField();
}
void ResponseState::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ResponseState::Clear() {
// @@protoc_insertion_point(message_clear_start:ResponseState)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_statemsg()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ResponseState::_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<0, 1, 1, 0, 2> ResponseState::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_ResponseState_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .StateMsg stateMsg = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseState, _impl_.statemsg_)}},
}}, {{
65535, 65535
}}, {{
// repeated .StateMsg stateMsg = 1;
{PROTOBUF_FIELD_OFFSET(ResponseState, _impl_.statemsg_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::StateMsg>()},
}}, {{
}},
};
::uint8_t* ResponseState::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:ResponseState)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .StateMsg stateMsg = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_statemsg_size()); i < n; i++) {
const auto& repfield = this->_internal_statemsg().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:ResponseState)
return target;
}
::size_t ResponseState::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ResponseState)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .StateMsg stateMsg = 1;
total_size += 1UL * this->_internal_statemsg_size();
for (const auto& msg : this->_internal_statemsg()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ResponseState::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ResponseState::MergeImpl
};
const ::google::protobuf::Message::ClassData*ResponseState::GetClassData() const { return &_class_data_; }
void ResponseState::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ResponseState*>(&to_msg);
auto& from = static_cast<const ResponseState&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:ResponseState)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_statemsg()->MergeFrom(from._internal_statemsg());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ResponseState::CopyFrom(const ResponseState& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ResponseState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ResponseState::IsInitialized() const {
return true;
}
void ResponseState::InternalSwap(ResponseState* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.statemsg_.InternalSwap(&other->_impl_.statemsg_);
}
::google::protobuf::Metadata ResponseState::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[11]);
}
// ===================================================================
class CameraDataMsg::_Internal {
public:
};
CameraDataMsg::CameraDataMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:CameraDataMsg)
}
CameraDataMsg::CameraDataMsg(const CameraDataMsg& from) : ::google::protobuf::Message() {
CameraDataMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.imageformat_){},
decltype(_impl_.imagedatas_){},
decltype(_impl_.imagewidth_){},
decltype(_impl_.imageheight_){},
decltype(_impl_.imagedatasize_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_machineid().empty()) {
_this->_impl_.machineid_.Set(from._internal_machineid(), _this->GetArenaForAllocation());
}
_impl_.imageformat_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imageformat_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_imageformat().empty()) {
_this->_impl_.imageformat_.Set(from._internal_imageformat(), _this->GetArenaForAllocation());
}
_impl_.imagedatas_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imagedatas_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_imagedatas().empty()) {
_this->_impl_.imagedatas_.Set(from._internal_imagedatas(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.imagewidth_, &from._impl_.imagewidth_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.imagedatasize_) -
reinterpret_cast<char*>(&_impl_.imagewidth_)) + sizeof(_impl_.imagedatasize_));
// @@protoc_insertion_point(copy_constructor:CameraDataMsg)
}
inline void CameraDataMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.machineid_){},
decltype(_impl_.imageformat_){},
decltype(_impl_.imagedatas_){},
decltype(_impl_.imagewidth_){0u},
decltype(_impl_.imageheight_){0u},
decltype(_impl_.imagedatasize_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.machineid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.machineid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imageformat_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imageformat_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imagedatas_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imagedatas_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
CameraDataMsg::~CameraDataMsg() {
// @@protoc_insertion_point(destructor:CameraDataMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void CameraDataMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.machineid_.Destroy();
_impl_.imageformat_.Destroy();
_impl_.imagedatas_.Destroy();
}
void CameraDataMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void CameraDataMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:CameraDataMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.machineid_.ClearToEmpty();
_impl_.imageformat_.ClearToEmpty();
_impl_.imagedatas_.ClearToEmpty();
::memset(&_impl_.imagewidth_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.imagedatasize_) -
reinterpret_cast<char*>(&_impl_.imagewidth_)) + sizeof(_impl_.imagedatasize_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* CameraDataMsg::_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<3, 6, 0, 42, 2> CameraDataMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
6, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967232, // skipmap
offsetof(decltype(_table_), field_entries),
6, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_CameraDataMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string machineId = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.machineid_)}},
// string imageFormat = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imageformat_)}},
// uint32 imageWidth = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CameraDataMsg, _impl_.imagewidth_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagewidth_)}},
// uint32 imageHeight = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CameraDataMsg, _impl_.imageheight_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imageheight_)}},
// uint32 imageDataSize = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CameraDataMsg, _impl_.imagedatasize_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagedatasize_)}},
// bytes imageDatas = 6;
{::_pbi::TcParser::FastBS1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagedatas_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string machineId = 1;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.machineid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string imageFormat = 2;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imageformat_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// uint32 imageWidth = 3;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagewidth_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 imageHeight = 4;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imageheight_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 imageDataSize = 5;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagedatasize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// bytes imageDatas = 6;
{PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagedatas_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\15\11\13\0\0\0\0\0"
"CameraDataMsg"
"machineId"
"imageFormat"
}},
};
::uint8_t* CameraDataMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:CameraDataMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
const std::string& _s = this->_internal_machineid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "CameraDataMsg.machineId");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string imageFormat = 2;
if (!this->_internal_imageformat().empty()) {
const std::string& _s = this->_internal_imageformat();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "CameraDataMsg.imageFormat");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// uint32 imageWidth = 3;
if (this->_internal_imagewidth() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
3, this->_internal_imagewidth(), target);
}
// uint32 imageHeight = 4;
if (this->_internal_imageheight() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
4, this->_internal_imageheight(), target);
}
// uint32 imageDataSize = 5;
if (this->_internal_imagedatasize() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
5, this->_internal_imagedatasize(), target);
}
// bytes imageDatas = 6;
if (!this->_internal_imagedatas().empty()) {
const std::string& _s = this->_internal_imagedatas();
target = stream->WriteBytesMaybeAliased(6, _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:CameraDataMsg)
return target;
}
::size_t CameraDataMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CameraDataMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string machineId = 1;
if (!this->_internal_machineid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_machineid());
}
// string imageFormat = 2;
if (!this->_internal_imageformat().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_imageformat());
}
// bytes imageDatas = 6;
if (!this->_internal_imagedatas().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_imagedatas());
}
// uint32 imageWidth = 3;
if (this->_internal_imagewidth() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_imagewidth());
}
// uint32 imageHeight = 4;
if (this->_internal_imageheight() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_imageheight());
}
// uint32 imageDataSize = 5;
if (this->_internal_imagedatasize() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_imagedatasize());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData CameraDataMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
CameraDataMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*CameraDataMsg::GetClassData() const { return &_class_data_; }
void CameraDataMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<CameraDataMsg*>(&to_msg);
auto& from = static_cast<const CameraDataMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:CameraDataMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_machineid().empty()) {
_this->_internal_set_machineid(from._internal_machineid());
}
if (!from._internal_imageformat().empty()) {
_this->_internal_set_imageformat(from._internal_imageformat());
}
if (!from._internal_imagedatas().empty()) {
_this->_internal_set_imagedatas(from._internal_imagedatas());
}
if (from._internal_imagewidth() != 0) {
_this->_internal_set_imagewidth(from._internal_imagewidth());
}
if (from._internal_imageheight() != 0) {
_this->_internal_set_imageheight(from._internal_imageheight());
}
if (from._internal_imagedatasize() != 0) {
_this->_internal_set_imagedatasize(from._internal_imagedatasize());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void CameraDataMsg::CopyFrom(const CameraDataMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:CameraDataMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool CameraDataMsg::IsInitialized() const {
return true;
}
void CameraDataMsg::InternalSwap(CameraDataMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.machineid_, lhs_arena,
&other->_impl_.machineid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.imageformat_, lhs_arena,
&other->_impl_.imageformat_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.imagedatas_, lhs_arena,
&other->_impl_.imagedatas_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagedatasize_)
+ sizeof(CameraDataMsg::_impl_.imagedatasize_)
- PROTOBUF_FIELD_OFFSET(CameraDataMsg, _impl_.imagewidth_)>(
reinterpret_cast<char*>(&_impl_.imagewidth_),
reinterpret_cast<char*>(&other->_impl_.imagewidth_));
}
::google::protobuf::Metadata CameraDataMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[12]);
}
// ===================================================================
class AlarmMsg::_Internal {
public:
};
AlarmMsg::AlarmMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:AlarmMsg)
}
AlarmMsg::AlarmMsg(const AlarmMsg& from) : ::google::protobuf::Message() {
AlarmMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.time_){},
decltype(_impl_.task_){},
decltype(_impl_.type_){},
decltype(_impl_.detail_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.time_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.time_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_time().empty()) {
_this->_impl_.time_.Set(from._internal_time(), _this->GetArenaForAllocation());
}
_impl_.task_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.task_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_task().empty()) {
_this->_impl_.task_.Set(from._internal_task(), _this->GetArenaForAllocation());
}
_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_.detail_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.detail_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_detail().empty()) {
_this->_impl_.detail_.Set(from._internal_detail(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:AlarmMsg)
}
inline void AlarmMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.time_){},
decltype(_impl_.task_){},
decltype(_impl_.type_){},
decltype(_impl_.detail_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.time_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.time_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.task_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.task_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.type_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.type_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.detail_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.detail_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
AlarmMsg::~AlarmMsg() {
// @@protoc_insertion_point(destructor:AlarmMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void AlarmMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.time_.Destroy();
_impl_.task_.Destroy();
_impl_.type_.Destroy();
_impl_.detail_.Destroy();
}
void AlarmMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void AlarmMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:AlarmMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.time_.ClearToEmpty();
_impl_.task_.ClearToEmpty();
_impl_.type_.ClearToEmpty();
_impl_.detail_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* AlarmMsg::_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, 35, 2> AlarmMsg::_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
&_AlarmMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string detail = 4;
{::_pbi::TcParser::FastUS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.detail_)}},
// string time = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.time_)}},
// string task = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.task_)}},
// string type = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.type_)}},
}}, {{
65535, 65535
}}, {{
// string time = 1;
{PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.time_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string task = 2;
{PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.task_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string type = 3;
{PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.type_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string detail = 4;
{PROTOBUF_FIELD_OFFSET(AlarmMsg, _impl_.detail_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\10\4\4\4\6\0\0\0"
"AlarmMsg"
"time"
"task"
"type"
"detail"
}},
};
::uint8_t* AlarmMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:AlarmMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string time = 1;
if (!this->_internal_time().empty()) {
const std::string& _s = this->_internal_time();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmMsg.time");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string task = 2;
if (!this->_internal_task().empty()) {
const std::string& _s = this->_internal_task();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmMsg.task");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// string type = 3;
if (!this->_internal_type().empty()) {
const std::string& _s = this->_internal_type();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmMsg.type");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// string detail = 4;
if (!this->_internal_detail().empty()) {
const std::string& _s = this->_internal_detail();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmMsg.detail");
target = stream->WriteStringMaybeAliased(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:AlarmMsg)
return target;
}
::size_t AlarmMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:AlarmMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string time = 1;
if (!this->_internal_time().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_time());
}
// string task = 2;
if (!this->_internal_task().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_task());
}
// string type = 3;
if (!this->_internal_type().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_type());
}
// string detail = 4;
if (!this->_internal_detail().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_detail());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData AlarmMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
AlarmMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*AlarmMsg::GetClassData() const { return &_class_data_; }
void AlarmMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<AlarmMsg*>(&to_msg);
auto& from = static_cast<const AlarmMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:AlarmMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_time().empty()) {
_this->_internal_set_time(from._internal_time());
}
if (!from._internal_task().empty()) {
_this->_internal_set_task(from._internal_task());
}
if (!from._internal_type().empty()) {
_this->_internal_set_type(from._internal_type());
}
if (!from._internal_detail().empty()) {
_this->_internal_set_detail(from._internal_detail());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void AlarmMsg::CopyFrom(const AlarmMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:AlarmMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool AlarmMsg::IsInitialized() const {
return true;
}
void AlarmMsg::InternalSwap(AlarmMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.time_, lhs_arena,
&other->_impl_.time_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.task_, lhs_arena,
&other->_impl_.task_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, lhs_arena,
&other->_impl_.type_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.detail_, lhs_arena,
&other->_impl_.detail_, rhs_arena);
}
::google::protobuf::Metadata AlarmMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[13]);
}
// ===================================================================
class AlarmsMsg::_Internal {
public:
};
AlarmsMsg::AlarmsMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:AlarmsMsg)
}
AlarmsMsg::AlarmsMsg(const AlarmsMsg& from) : ::google::protobuf::Message() {
AlarmsMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.alarms_){from._impl_.alarms_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:AlarmsMsg)
}
inline void AlarmsMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.alarms_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
AlarmsMsg::~AlarmsMsg() {
// @@protoc_insertion_point(destructor:AlarmsMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void AlarmsMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.alarms_.~RepeatedPtrField();
}
void AlarmsMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void AlarmsMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:AlarmsMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_alarms()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* AlarmsMsg::_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<0, 1, 1, 0, 2> AlarmsMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_AlarmsMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .AlarmMsg alarms = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmsMsg, _impl_.alarms_)}},
}}, {{
65535, 65535
}}, {{
// repeated .AlarmMsg alarms = 1;
{PROTOBUF_FIELD_OFFSET(AlarmsMsg, _impl_.alarms_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::AlarmMsg>()},
}}, {{
}},
};
::uint8_t* AlarmsMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:AlarmsMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .AlarmMsg alarms = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_alarms_size()); i < n; i++) {
const auto& repfield = this->_internal_alarms().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:AlarmsMsg)
return target;
}
::size_t AlarmsMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:AlarmsMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .AlarmMsg alarms = 1;
total_size += 1UL * this->_internal_alarms_size();
for (const auto& msg : this->_internal_alarms()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData AlarmsMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
AlarmsMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*AlarmsMsg::GetClassData() const { return &_class_data_; }
void AlarmsMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<AlarmsMsg*>(&to_msg);
auto& from = static_cast<const AlarmsMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:AlarmsMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_alarms()->MergeFrom(from._internal_alarms());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void AlarmsMsg::CopyFrom(const AlarmsMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:AlarmsMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool AlarmsMsg::IsInitialized() const {
return true;
}
void AlarmsMsg::InternalSwap(AlarmsMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.alarms_.InternalSwap(&other->_impl_.alarms_);
}
::google::protobuf::Metadata AlarmsMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[14]);
}
// ===================================================================
class TaskMsg::_Internal {
public:
};
TaskMsg::TaskMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:TaskMsg)
}
TaskMsg::TaskMsg(const TaskMsg& from) : ::google::protobuf::Message() {
TaskMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.name_){},
decltype(_impl_.begintime_){},
decltype(_impl_.endtime_){},
decltype(_impl_.id_){},
decltype(_impl_.deoxygenminute_){},
decltype(_impl_.totalusetime_){},
decltype(_impl_.logmoldposition_){},
decltype(_impl_.finishlayer_){},
decltype(_impl_.isfinish_){},
decltype(_impl_.iscontinueprint_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
}
_impl_.begintime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_begintime().empty()) {
_this->_impl_.begintime_.Set(from._internal_begintime(), _this->GetArenaForAllocation());
}
_impl_.endtime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_endtime().empty()) {
_this->_impl_.endtime_.Set(from._internal_endtime(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.id_, &from._impl_.id_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.iscontinueprint_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.iscontinueprint_));
// @@protoc_insertion_point(copy_constructor:TaskMsg)
}
inline void TaskMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.name_){},
decltype(_impl_.begintime_){},
decltype(_impl_.endtime_){},
decltype(_impl_.id_){::int64_t{0}},
decltype(_impl_.deoxygenminute_){::int64_t{0}},
decltype(_impl_.totalusetime_){::int64_t{0}},
decltype(_impl_.logmoldposition_){0},
decltype(_impl_.finishlayer_){0u},
decltype(_impl_.isfinish_){false},
decltype(_impl_.iscontinueprint_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
TaskMsg::~TaskMsg() {
// @@protoc_insertion_point(destructor:TaskMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void TaskMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.name_.Destroy();
_impl_.begintime_.Destroy();
_impl_.endtime_.Destroy();
}
void TaskMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void TaskMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:TaskMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.name_.ClearToEmpty();
_impl_.begintime_.ClearToEmpty();
_impl_.endtime_.ClearToEmpty();
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.iscontinueprint_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.iscontinueprint_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* TaskMsg::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 10, 0, 44, 2> TaskMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
10, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294966272, // skipmap
offsetof(decltype(_table_), field_entries),
10, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_TaskMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int64 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TaskMsg, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.id_)}},
// string name = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.name_)}},
// string beginTime = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.begintime_)}},
// string endTime = 4;
{::_pbi::TcParser::FastUS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.endtime_)}},
// int64 deoxygenMinute = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TaskMsg, _impl_.deoxygenminute_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.deoxygenminute_)}},
// int64 totalUseTime = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TaskMsg, _impl_.totalusetime_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.totalusetime_)}},
// float logMoldPosition = 7;
{::_pbi::TcParser::FastF32S1,
{61, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.logmoldposition_)}},
// uint32 finishLayer = 8;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TaskMsg, _impl_.finishlayer_), 63>(),
{64, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.finishlayer_)}},
// bool isFinish = 9;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(TaskMsg, _impl_.isfinish_), 63>(),
{72, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.isfinish_)}},
// bool isContinuePrint = 10;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(TaskMsg, _impl_.iscontinueprint_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.iscontinueprint_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int64 id = 1;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// string name = 2;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.name_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string beginTime = 3;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.begintime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string endTime = 4;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.endtime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int64 deoxygenMinute = 5;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.deoxygenminute_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 totalUseTime = 6;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.totalusetime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// float logMoldPosition = 7;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.logmoldposition_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// uint32 finishLayer = 8;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.finishlayer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// bool isFinish = 9;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.isfinish_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool isContinuePrint = 10;
{PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.iscontinueprint_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
}},
// no aux_entries
{{
"\7\0\4\11\7\0\0\0\0\0\0\0\0\0\0\0"
"TaskMsg"
"name"
"beginTime"
"endTime"
}},
};
::uint8_t* TaskMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:TaskMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int64 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// string name = 2;
if (!this->_internal_name().empty()) {
const std::string& _s = this->_internal_name();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "TaskMsg.name");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// string beginTime = 3;
if (!this->_internal_begintime().empty()) {
const std::string& _s = this->_internal_begintime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "TaskMsg.beginTime");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// string endTime = 4;
if (!this->_internal_endtime().empty()) {
const std::string& _s = this->_internal_endtime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "TaskMsg.endTime");
target = stream->WriteStringMaybeAliased(4, _s, target);
}
// int64 deoxygenMinute = 5;
if (this->_internal_deoxygenminute() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<5>(
stream, this->_internal_deoxygenminute(), target);
}
// int64 totalUseTime = 6;
if (this->_internal_totalusetime() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<6>(
stream, this->_internal_totalusetime(), target);
}
// float logMoldPosition = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
7, this->_internal_logmoldposition(), target);
}
// uint32 finishLayer = 8;
if (this->_internal_finishlayer() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
8, this->_internal_finishlayer(), target);
}
// bool isFinish = 9;
if (this->_internal_isfinish() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
9, this->_internal_isfinish(), target);
}
// bool isContinuePrint = 10;
if (this->_internal_iscontinueprint() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
10, this->_internal_iscontinueprint(), 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:TaskMsg)
return target;
}
::size_t TaskMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:TaskMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string name = 2;
if (!this->_internal_name().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string beginTime = 3;
if (!this->_internal_begintime().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_begintime());
}
// string endTime = 4;
if (!this->_internal_endtime().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_endtime());
}
// int64 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_id());
}
// int64 deoxygenMinute = 5;
if (this->_internal_deoxygenminute() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_deoxygenminute());
}
// int64 totalUseTime = 6;
if (this->_internal_totalusetime() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_totalusetime());
}
// float logMoldPosition = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
total_size += 5;
}
// uint32 finishLayer = 8;
if (this->_internal_finishlayer() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_finishlayer());
}
// bool isFinish = 9;
if (this->_internal_isfinish() != 0) {
total_size += 2;
}
// bool isContinuePrint = 10;
if (this->_internal_iscontinueprint() != 0) {
total_size += 2;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData TaskMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
TaskMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*TaskMsg::GetClassData() const { return &_class_data_; }
void TaskMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<TaskMsg*>(&to_msg);
auto& from = static_cast<const TaskMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:TaskMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
if (!from._internal_begintime().empty()) {
_this->_internal_set_begintime(from._internal_begintime());
}
if (!from._internal_endtime().empty()) {
_this->_internal_set_endtime(from._internal_endtime());
}
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_deoxygenminute() != 0) {
_this->_internal_set_deoxygenminute(from._internal_deoxygenminute());
}
if (from._internal_totalusetime() != 0) {
_this->_internal_set_totalusetime(from._internal_totalusetime());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = from._internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
_this->_internal_set_logmoldposition(from._internal_logmoldposition());
}
if (from._internal_finishlayer() != 0) {
_this->_internal_set_finishlayer(from._internal_finishlayer());
}
if (from._internal_isfinish() != 0) {
_this->_internal_set_isfinish(from._internal_isfinish());
}
if (from._internal_iscontinueprint() != 0) {
_this->_internal_set_iscontinueprint(from._internal_iscontinueprint());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void TaskMsg::CopyFrom(const TaskMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:TaskMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool TaskMsg::IsInitialized() const {
return true;
}
void TaskMsg::InternalSwap(TaskMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.begintime_, lhs_arena,
&other->_impl_.begintime_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endtime_, lhs_arena,
&other->_impl_.endtime_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.iscontinueprint_)
+ sizeof(TaskMsg::_impl_.iscontinueprint_)
- PROTOBUF_FIELD_OFFSET(TaskMsg, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata TaskMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[15]);
}
// ===================================================================
class TasksMsg::_Internal {
public:
};
TasksMsg::TasksMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:TasksMsg)
}
TasksMsg::TasksMsg(const TasksMsg& from) : ::google::protobuf::Message() {
TasksMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.tasks_){from._impl_.tasks_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:TasksMsg)
}
inline void TasksMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.tasks_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
TasksMsg::~TasksMsg() {
// @@protoc_insertion_point(destructor:TasksMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void TasksMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.tasks_.~RepeatedPtrField();
}
void TasksMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void TasksMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:TasksMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_tasks()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* TasksMsg::_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<0, 1, 1, 0, 2> TasksMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_TasksMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .TaskMsg tasks = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(TasksMsg, _impl_.tasks_)}},
}}, {{
65535, 65535
}}, {{
// repeated .TaskMsg tasks = 1;
{PROTOBUF_FIELD_OFFSET(TasksMsg, _impl_.tasks_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::TaskMsg>()},
}}, {{
}},
};
::uint8_t* TasksMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:TasksMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .TaskMsg tasks = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_tasks_size()); i < n; i++) {
const auto& repfield = this->_internal_tasks().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:TasksMsg)
return target;
}
::size_t TasksMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:TasksMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .TaskMsg tasks = 1;
total_size += 1UL * this->_internal_tasks_size();
for (const auto& msg : this->_internal_tasks()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData TasksMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
TasksMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*TasksMsg::GetClassData() const { return &_class_data_; }
void TasksMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<TasksMsg*>(&to_msg);
auto& from = static_cast<const TasksMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:TasksMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_tasks()->MergeFrom(from._internal_tasks());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void TasksMsg::CopyFrom(const TasksMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:TasksMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool TasksMsg::IsInitialized() const {
return true;
}
void TasksMsg::InternalSwap(TasksMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.tasks_.InternalSwap(&other->_impl_.tasks_);
}
::google::protobuf::Metadata TasksMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[16]);
}
// ===================================================================
class RecordTaskMsg::_Internal {
public:
};
RecordTaskMsg::RecordTaskMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:RecordTaskMsg)
}
RecordTaskMsg::RecordTaskMsg(const RecordTaskMsg& from) : ::google::protobuf::Message() {
RecordTaskMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.taskid_){},
decltype(_impl_.name_){},
decltype(_impl_.begintime_){},
decltype(_impl_.endtime_){},
decltype(_impl_.id_){},
decltype(_impl_.deoxygensecond_){},
decltype(_impl_.totalusesecond_){},
decltype(_impl_.logmoldposition_){},
decltype(_impl_.finishlayer_){},
decltype(_impl_.isfinish_){},
decltype(_impl_.iscontinueprint_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_taskid().empty()) {
_this->_impl_.taskid_.Set(from._internal_taskid(), _this->GetArenaForAllocation());
}
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
}
_impl_.begintime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_begintime().empty()) {
_this->_impl_.begintime_.Set(from._internal_begintime(), _this->GetArenaForAllocation());
}
_impl_.endtime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_endtime().empty()) {
_this->_impl_.endtime_.Set(from._internal_endtime(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.id_, &from._impl_.id_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.iscontinueprint_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.iscontinueprint_));
// @@protoc_insertion_point(copy_constructor:RecordTaskMsg)
}
inline void RecordTaskMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.taskid_){},
decltype(_impl_.name_){},
decltype(_impl_.begintime_){},
decltype(_impl_.endtime_){},
decltype(_impl_.id_){::int64_t{0}},
decltype(_impl_.deoxygensecond_){::int64_t{0}},
decltype(_impl_.totalusesecond_){::int64_t{0}},
decltype(_impl_.logmoldposition_){0},
decltype(_impl_.finishlayer_){0u},
decltype(_impl_.isfinish_){false},
decltype(_impl_.iscontinueprint_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.begintime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.endtime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
RecordTaskMsg::~RecordTaskMsg() {
// @@protoc_insertion_point(destructor:RecordTaskMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RecordTaskMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.taskid_.Destroy();
_impl_.name_.Destroy();
_impl_.begintime_.Destroy();
_impl_.endtime_.Destroy();
}
void RecordTaskMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RecordTaskMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:RecordTaskMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.taskid_.ClearToEmpty();
_impl_.name_.ClearToEmpty();
_impl_.begintime_.ClearToEmpty();
_impl_.endtime_.ClearToEmpty();
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.iscontinueprint_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.iscontinueprint_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RecordTaskMsg::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 11, 0, 56, 2> RecordTaskMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
11, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294965248, // skipmap
offsetof(decltype(_table_), field_entries),
11, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_RecordTaskMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int64 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecordTaskMsg, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.id_)}},
// string taskID = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.taskid_)}},
// string name = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.name_)}},
// string beginTime = 4;
{::_pbi::TcParser::FastUS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.begintime_)}},
// string endTime = 5;
{::_pbi::TcParser::FastUS1,
{42, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.endtime_)}},
// int64 deoxygenSecond = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecordTaskMsg, _impl_.deoxygensecond_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.deoxygensecond_)}},
// int64 totalUseSecond = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RecordTaskMsg, _impl_.totalusesecond_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.totalusesecond_)}},
// float logMoldPosition = 8;
{::_pbi::TcParser::FastF32S1,
{69, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.logmoldposition_)}},
// uint32 finishLayer = 9;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RecordTaskMsg, _impl_.finishlayer_), 63>(),
{72, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.finishlayer_)}},
// bool isFinish = 10;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(RecordTaskMsg, _impl_.isfinish_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.isfinish_)}},
// bool isContinuePrint = 11;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(RecordTaskMsg, _impl_.iscontinueprint_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.iscontinueprint_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int64 id = 1;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// string taskID = 2;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.taskid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string name = 3;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.name_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string beginTime = 4;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.begintime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string endTime = 5;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.endtime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int64 deoxygenSecond = 6;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.deoxygensecond_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 totalUseSecond = 7;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.totalusesecond_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// float logMoldPosition = 8;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.logmoldposition_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// uint32 finishLayer = 9;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.finishlayer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// bool isFinish = 10;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.isfinish_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool isContinuePrint = 11;
{PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.iscontinueprint_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
}},
// no aux_entries
{{
"\15\0\6\4\11\7\0\0\0\0\0\0\0\0\0\0"
"RecordTaskMsg"
"taskID"
"name"
"beginTime"
"endTime"
}},
};
::uint8_t* RecordTaskMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:RecordTaskMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int64 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// string taskID = 2;
if (!this->_internal_taskid().empty()) {
const std::string& _s = this->_internal_taskid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "RecordTaskMsg.taskID");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// string name = 3;
if (!this->_internal_name().empty()) {
const std::string& _s = this->_internal_name();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "RecordTaskMsg.name");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// string beginTime = 4;
if (!this->_internal_begintime().empty()) {
const std::string& _s = this->_internal_begintime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "RecordTaskMsg.beginTime");
target = stream->WriteStringMaybeAliased(4, _s, target);
}
// string endTime = 5;
if (!this->_internal_endtime().empty()) {
const std::string& _s = this->_internal_endtime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "RecordTaskMsg.endTime");
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// int64 deoxygenSecond = 6;
if (this->_internal_deoxygensecond() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<6>(
stream, this->_internal_deoxygensecond(), target);
}
// int64 totalUseSecond = 7;
if (this->_internal_totalusesecond() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<7>(
stream, this->_internal_totalusesecond(), target);
}
// float logMoldPosition = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
8, this->_internal_logmoldposition(), target);
}
// uint32 finishLayer = 9;
if (this->_internal_finishlayer() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
9, this->_internal_finishlayer(), target);
}
// bool isFinish = 10;
if (this->_internal_isfinish() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
10, this->_internal_isfinish(), target);
}
// bool isContinuePrint = 11;
if (this->_internal_iscontinueprint() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
11, this->_internal_iscontinueprint(), 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:RecordTaskMsg)
return target;
}
::size_t RecordTaskMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:RecordTaskMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string taskID = 2;
if (!this->_internal_taskid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_taskid());
}
// string name = 3;
if (!this->_internal_name().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string beginTime = 4;
if (!this->_internal_begintime().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_begintime());
}
// string endTime = 5;
if (!this->_internal_endtime().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_endtime());
}
// int64 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_id());
}
// int64 deoxygenSecond = 6;
if (this->_internal_deoxygensecond() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_deoxygensecond());
}
// int64 totalUseSecond = 7;
if (this->_internal_totalusesecond() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_totalusesecond());
}
// float logMoldPosition = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
total_size += 5;
}
// uint32 finishLayer = 9;
if (this->_internal_finishlayer() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_finishlayer());
}
// bool isFinish = 10;
if (this->_internal_isfinish() != 0) {
total_size += 2;
}
// bool isContinuePrint = 11;
if (this->_internal_iscontinueprint() != 0) {
total_size += 2;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RecordTaskMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RecordTaskMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*RecordTaskMsg::GetClassData() const { return &_class_data_; }
void RecordTaskMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RecordTaskMsg*>(&to_msg);
auto& from = static_cast<const RecordTaskMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:RecordTaskMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_taskid().empty()) {
_this->_internal_set_taskid(from._internal_taskid());
}
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
}
if (!from._internal_begintime().empty()) {
_this->_internal_set_begintime(from._internal_begintime());
}
if (!from._internal_endtime().empty()) {
_this->_internal_set_endtime(from._internal_endtime());
}
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_deoxygensecond() != 0) {
_this->_internal_set_deoxygensecond(from._internal_deoxygensecond());
}
if (from._internal_totalusesecond() != 0) {
_this->_internal_set_totalusesecond(from._internal_totalusesecond());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = from._internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
_this->_internal_set_logmoldposition(from._internal_logmoldposition());
}
if (from._internal_finishlayer() != 0) {
_this->_internal_set_finishlayer(from._internal_finishlayer());
}
if (from._internal_isfinish() != 0) {
_this->_internal_set_isfinish(from._internal_isfinish());
}
if (from._internal_iscontinueprint() != 0) {
_this->_internal_set_iscontinueprint(from._internal_iscontinueprint());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RecordTaskMsg::CopyFrom(const RecordTaskMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:RecordTaskMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RecordTaskMsg::IsInitialized() const {
return true;
}
void RecordTaskMsg::InternalSwap(RecordTaskMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.taskid_, lhs_arena,
&other->_impl_.taskid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.begintime_, lhs_arena,
&other->_impl_.begintime_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endtime_, lhs_arena,
&other->_impl_.endtime_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.iscontinueprint_)
+ sizeof(RecordTaskMsg::_impl_.iscontinueprint_)
- PROTOBUF_FIELD_OFFSET(RecordTaskMsg, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata RecordTaskMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[17]);
}
// ===================================================================
class RecordTasksMsg::_Internal {
public:
};
RecordTasksMsg::RecordTasksMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:RecordTasksMsg)
}
RecordTasksMsg::RecordTasksMsg(const RecordTasksMsg& from) : ::google::protobuf::Message() {
RecordTasksMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.recordtasks_){from._impl_.recordtasks_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:RecordTasksMsg)
}
inline void RecordTasksMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.recordtasks_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
RecordTasksMsg::~RecordTasksMsg() {
// @@protoc_insertion_point(destructor:RecordTasksMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RecordTasksMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.recordtasks_.~RepeatedPtrField();
}
void RecordTasksMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RecordTasksMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:RecordTasksMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_recordtasks()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RecordTasksMsg::_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<0, 1, 1, 0, 2> RecordTasksMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_RecordTasksMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .RecordTaskMsg recordTasks = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTasksMsg, _impl_.recordtasks_)}},
}}, {{
65535, 65535
}}, {{
// repeated .RecordTaskMsg recordTasks = 1;
{PROTOBUF_FIELD_OFFSET(RecordTasksMsg, _impl_.recordtasks_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::RecordTaskMsg>()},
}}, {{
}},
};
::uint8_t* RecordTasksMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:RecordTasksMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .RecordTaskMsg recordTasks = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_recordtasks_size()); i < n; i++) {
const auto& repfield = this->_internal_recordtasks().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:RecordTasksMsg)
return target;
}
::size_t RecordTasksMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:RecordTasksMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .RecordTaskMsg recordTasks = 1;
total_size += 1UL * this->_internal_recordtasks_size();
for (const auto& msg : this->_internal_recordtasks()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RecordTasksMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RecordTasksMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*RecordTasksMsg::GetClassData() const { return &_class_data_; }
void RecordTasksMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RecordTasksMsg*>(&to_msg);
auto& from = static_cast<const RecordTasksMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:RecordTasksMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_recordtasks()->MergeFrom(from._internal_recordtasks());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RecordTasksMsg::CopyFrom(const RecordTasksMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:RecordTasksMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RecordTasksMsg::IsInitialized() const {
return true;
}
void RecordTasksMsg::InternalSwap(RecordTasksMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.recordtasks_.InternalSwap(&other->_impl_.recordtasks_);
}
::google::protobuf::Metadata RecordTasksMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[18]);
}
// ===================================================================
class RecordTasksListMsg::_Internal {
public:
};
RecordTasksListMsg::RecordTasksListMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:RecordTasksListMsg)
}
RecordTasksListMsg::RecordTasksListMsg(const RecordTasksListMsg& from) : ::google::protobuf::Message() {
RecordTasksListMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.recordtaskslist_){from._impl_.recordtaskslist_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:RecordTasksListMsg)
}
inline void RecordTasksListMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.recordtaskslist_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
RecordTasksListMsg::~RecordTasksListMsg() {
// @@protoc_insertion_point(destructor:RecordTasksListMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RecordTasksListMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.recordtaskslist_.~RepeatedPtrField();
}
void RecordTasksListMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RecordTasksListMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:RecordTasksListMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_recordtaskslist()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RecordTasksListMsg::_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<0, 1, 1, 0, 2> RecordTasksListMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_RecordTasksListMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .RecordTaskMsg recordTasksList = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(RecordTasksListMsg, _impl_.recordtaskslist_)}},
}}, {{
65535, 65535
}}, {{
// repeated .RecordTaskMsg recordTasksList = 1;
{PROTOBUF_FIELD_OFFSET(RecordTasksListMsg, _impl_.recordtaskslist_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::RecordTaskMsg>()},
}}, {{
}},
};
::uint8_t* RecordTasksListMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:RecordTasksListMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .RecordTaskMsg recordTasksList = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_recordtaskslist_size()); i < n; i++) {
const auto& repfield = this->_internal_recordtaskslist().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:RecordTasksListMsg)
return target;
}
::size_t RecordTasksListMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:RecordTasksListMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .RecordTaskMsg recordTasksList = 1;
total_size += 1UL * this->_internal_recordtaskslist_size();
for (const auto& msg : this->_internal_recordtaskslist()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RecordTasksListMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RecordTasksListMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*RecordTasksListMsg::GetClassData() const { return &_class_data_; }
void RecordTasksListMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RecordTasksListMsg*>(&to_msg);
auto& from = static_cast<const RecordTasksListMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:RecordTasksListMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_recordtaskslist()->MergeFrom(from._internal_recordtaskslist());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RecordTasksListMsg::CopyFrom(const RecordTasksListMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:RecordTasksListMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RecordTasksListMsg::IsInitialized() const {
return true;
}
void RecordTasksListMsg::InternalSwap(RecordTasksListMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.recordtaskslist_.InternalSwap(&other->_impl_.recordtaskslist_);
}
::google::protobuf::Metadata RecordTasksListMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[19]);
}
// ===================================================================
class LayerStateMsg::_Internal {
public:
};
LayerStateMsg::LayerStateMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerStateMsg)
}
LayerStateMsg::LayerStateMsg(const LayerStateMsg& from) : ::google::protobuf::Message() {
LayerStateMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.layerdatetime_){},
decltype(_impl_.layerindex_){},
decltype(_impl_.logmoldposition_){},
decltype(_impl_.logoxygen_){},
decltype(_impl_.loginnertemp_){},
decltype(_impl_.logplatetemp_){},
decltype(_impl_.windspeed_){},
decltype(_impl_.innerpressure_){},
decltype(_impl_.fanfreq_){},
decltype(_impl_.humidity_){},
decltype(_impl_.watertemp_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.layerdatetime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.layerdatetime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_layerdatetime().empty()) {
_this->_impl_.layerdatetime_.Set(from._internal_layerdatetime(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.layerindex_, &from._impl_.layerindex_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.watertemp_) -
reinterpret_cast<char*>(&_impl_.layerindex_)) + sizeof(_impl_.watertemp_));
// @@protoc_insertion_point(copy_constructor:LayerStateMsg)
}
inline void LayerStateMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.layerdatetime_){},
decltype(_impl_.layerindex_){0u},
decltype(_impl_.logmoldposition_){0},
decltype(_impl_.logoxygen_){0},
decltype(_impl_.loginnertemp_){0},
decltype(_impl_.logplatetemp_){0},
decltype(_impl_.windspeed_){0},
decltype(_impl_.innerpressure_){0},
decltype(_impl_.fanfreq_){0},
decltype(_impl_.humidity_){0},
decltype(_impl_.watertemp_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.layerdatetime_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.layerdatetime_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerStateMsg::~LayerStateMsg() {
// @@protoc_insertion_point(destructor:LayerStateMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerStateMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.layerdatetime_.Destroy();
}
void LayerStateMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerStateMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerStateMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.layerdatetime_.ClearToEmpty();
::memset(&_impl_.layerindex_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.watertemp_) -
reinterpret_cast<char*>(&_impl_.layerindex_)) + sizeof(_impl_.watertemp_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerStateMsg::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 11, 0, 43, 2> LayerStateMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
11, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294965248, // skipmap
offsetof(decltype(_table_), field_entries),
11, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerStateMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string layerDateTime = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.layerdatetime_)}},
// uint32 layerIndex = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerStateMsg, _impl_.layerindex_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.layerindex_)}},
// float logMoldPosition = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logmoldposition_)}},
// float logOxygen = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logoxygen_)}},
// float logInnerTemp = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.loginnertemp_)}},
// float logPlateTemp = 6;
{::_pbi::TcParser::FastF32S1,
{53, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logplatetemp_)}},
// float windSpeed = 7;
{::_pbi::TcParser::FastF32S1,
{61, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.windspeed_)}},
// float innerPressure = 8;
{::_pbi::TcParser::FastF32S1,
{69, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.innerpressure_)}},
// float fanFreq = 9;
{::_pbi::TcParser::FastF32S1,
{77, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.fanfreq_)}},
// float humidity = 10;
{::_pbi::TcParser::FastF32S1,
{85, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.humidity_)}},
// float waterTemp = 11;
{::_pbi::TcParser::FastF32S1,
{93, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.watertemp_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string layerDateTime = 1;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.layerdatetime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// uint32 layerIndex = 2;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.layerindex_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// float logMoldPosition = 3;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logmoldposition_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float logOxygen = 4;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logoxygen_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float logInnerTemp = 5;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.loginnertemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float logPlateTemp = 6;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.logplatetemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float windSpeed = 7;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.windspeed_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float innerPressure = 8;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.innerpressure_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float fanFreq = 9;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.fanfreq_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float humidity = 10;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.humidity_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float waterTemp = 11;
{PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.watertemp_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
"\15\15\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"LayerStateMsg"
"layerDateTime"
}},
};
::uint8_t* LayerStateMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerStateMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string layerDateTime = 1;
if (!this->_internal_layerdatetime().empty()) {
const std::string& _s = this->_internal_layerdatetime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerStateMsg.layerDateTime");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// uint32 layerIndex = 2;
if (this->_internal_layerindex() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_layerindex(), target);
}
// float logMoldPosition = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_logmoldposition(), target);
}
// float logOxygen = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logoxygen = this->_internal_logoxygen();
::uint32_t raw_logoxygen;
memcpy(&raw_logoxygen, &tmp_logoxygen, sizeof(tmp_logoxygen));
if (raw_logoxygen != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_logoxygen(), target);
}
// float logInnerTemp = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_loginnertemp = this->_internal_loginnertemp();
::uint32_t raw_loginnertemp;
memcpy(&raw_loginnertemp, &tmp_loginnertemp, sizeof(tmp_loginnertemp));
if (raw_loginnertemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_loginnertemp(), target);
}
// float logPlateTemp = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logplatetemp = this->_internal_logplatetemp();
::uint32_t raw_logplatetemp;
memcpy(&raw_logplatetemp, &tmp_logplatetemp, sizeof(tmp_logplatetemp));
if (raw_logplatetemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
6, this->_internal_logplatetemp(), target);
}
// float windSpeed = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windspeed = this->_internal_windspeed();
::uint32_t raw_windspeed;
memcpy(&raw_windspeed, &tmp_windspeed, sizeof(tmp_windspeed));
if (raw_windspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
7, this->_internal_windspeed(), target);
}
// float innerPressure = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innerpressure = this->_internal_innerpressure();
::uint32_t raw_innerpressure;
memcpy(&raw_innerpressure, &tmp_innerpressure, sizeof(tmp_innerpressure));
if (raw_innerpressure != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
8, this->_internal_innerpressure(), target);
}
// float fanFreq = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_fanfreq = this->_internal_fanfreq();
::uint32_t raw_fanfreq;
memcpy(&raw_fanfreq, &tmp_fanfreq, sizeof(tmp_fanfreq));
if (raw_fanfreq != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
9, this->_internal_fanfreq(), target);
}
// float humidity = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_humidity = this->_internal_humidity();
::uint32_t raw_humidity;
memcpy(&raw_humidity, &tmp_humidity, sizeof(tmp_humidity));
if (raw_humidity != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
10, this->_internal_humidity(), target);
}
// float waterTemp = 11;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_watertemp = this->_internal_watertemp();
::uint32_t raw_watertemp;
memcpy(&raw_watertemp, &tmp_watertemp, sizeof(tmp_watertemp));
if (raw_watertemp != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
11, this->_internal_watertemp(), 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:LayerStateMsg)
return target;
}
::size_t LayerStateMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerStateMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string layerDateTime = 1;
if (!this->_internal_layerdatetime().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_layerdatetime());
}
// uint32 layerIndex = 2;
if (this->_internal_layerindex() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layerindex());
}
// float logMoldPosition = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = this->_internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
total_size += 5;
}
// float logOxygen = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logoxygen = this->_internal_logoxygen();
::uint32_t raw_logoxygen;
memcpy(&raw_logoxygen, &tmp_logoxygen, sizeof(tmp_logoxygen));
if (raw_logoxygen != 0) {
total_size += 5;
}
// float logInnerTemp = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_loginnertemp = this->_internal_loginnertemp();
::uint32_t raw_loginnertemp;
memcpy(&raw_loginnertemp, &tmp_loginnertemp, sizeof(tmp_loginnertemp));
if (raw_loginnertemp != 0) {
total_size += 5;
}
// float logPlateTemp = 6;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logplatetemp = this->_internal_logplatetemp();
::uint32_t raw_logplatetemp;
memcpy(&raw_logplatetemp, &tmp_logplatetemp, sizeof(tmp_logplatetemp));
if (raw_logplatetemp != 0) {
total_size += 5;
}
// float windSpeed = 7;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windspeed = this->_internal_windspeed();
::uint32_t raw_windspeed;
memcpy(&raw_windspeed, &tmp_windspeed, sizeof(tmp_windspeed));
if (raw_windspeed != 0) {
total_size += 5;
}
// float innerPressure = 8;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innerpressure = this->_internal_innerpressure();
::uint32_t raw_innerpressure;
memcpy(&raw_innerpressure, &tmp_innerpressure, sizeof(tmp_innerpressure));
if (raw_innerpressure != 0) {
total_size += 5;
}
// float fanFreq = 9;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_fanfreq = this->_internal_fanfreq();
::uint32_t raw_fanfreq;
memcpy(&raw_fanfreq, &tmp_fanfreq, sizeof(tmp_fanfreq));
if (raw_fanfreq != 0) {
total_size += 5;
}
// float humidity = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_humidity = this->_internal_humidity();
::uint32_t raw_humidity;
memcpy(&raw_humidity, &tmp_humidity, sizeof(tmp_humidity));
if (raw_humidity != 0) {
total_size += 5;
}
// float waterTemp = 11;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_watertemp = this->_internal_watertemp();
::uint32_t raw_watertemp;
memcpy(&raw_watertemp, &tmp_watertemp, sizeof(tmp_watertemp));
if (raw_watertemp != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerStateMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerStateMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerStateMsg::GetClassData() const { return &_class_data_; }
void LayerStateMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerStateMsg*>(&to_msg);
auto& from = static_cast<const LayerStateMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerStateMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_layerdatetime().empty()) {
_this->_internal_set_layerdatetime(from._internal_layerdatetime());
}
if (from._internal_layerindex() != 0) {
_this->_internal_set_layerindex(from._internal_layerindex());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logmoldposition = from._internal_logmoldposition();
::uint32_t raw_logmoldposition;
memcpy(&raw_logmoldposition, &tmp_logmoldposition, sizeof(tmp_logmoldposition));
if (raw_logmoldposition != 0) {
_this->_internal_set_logmoldposition(from._internal_logmoldposition());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logoxygen = from._internal_logoxygen();
::uint32_t raw_logoxygen;
memcpy(&raw_logoxygen, &tmp_logoxygen, sizeof(tmp_logoxygen));
if (raw_logoxygen != 0) {
_this->_internal_set_logoxygen(from._internal_logoxygen());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_loginnertemp = from._internal_loginnertemp();
::uint32_t raw_loginnertemp;
memcpy(&raw_loginnertemp, &tmp_loginnertemp, sizeof(tmp_loginnertemp));
if (raw_loginnertemp != 0) {
_this->_internal_set_loginnertemp(from._internal_loginnertemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_logplatetemp = from._internal_logplatetemp();
::uint32_t raw_logplatetemp;
memcpy(&raw_logplatetemp, &tmp_logplatetemp, sizeof(tmp_logplatetemp));
if (raw_logplatetemp != 0) {
_this->_internal_set_logplatetemp(from._internal_logplatetemp());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_windspeed = from._internal_windspeed();
::uint32_t raw_windspeed;
memcpy(&raw_windspeed, &tmp_windspeed, sizeof(tmp_windspeed));
if (raw_windspeed != 0) {
_this->_internal_set_windspeed(from._internal_windspeed());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_innerpressure = from._internal_innerpressure();
::uint32_t raw_innerpressure;
memcpy(&raw_innerpressure, &tmp_innerpressure, sizeof(tmp_innerpressure));
if (raw_innerpressure != 0) {
_this->_internal_set_innerpressure(from._internal_innerpressure());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_fanfreq = from._internal_fanfreq();
::uint32_t raw_fanfreq;
memcpy(&raw_fanfreq, &tmp_fanfreq, sizeof(tmp_fanfreq));
if (raw_fanfreq != 0) {
_this->_internal_set_fanfreq(from._internal_fanfreq());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_humidity = from._internal_humidity();
::uint32_t raw_humidity;
memcpy(&raw_humidity, &tmp_humidity, sizeof(tmp_humidity));
if (raw_humidity != 0) {
_this->_internal_set_humidity(from._internal_humidity());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_watertemp = from._internal_watertemp();
::uint32_t raw_watertemp;
memcpy(&raw_watertemp, &tmp_watertemp, sizeof(tmp_watertemp));
if (raw_watertemp != 0) {
_this->_internal_set_watertemp(from._internal_watertemp());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerStateMsg::CopyFrom(const LayerStateMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerStateMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerStateMsg::IsInitialized() const {
return true;
}
void LayerStateMsg::InternalSwap(LayerStateMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.layerdatetime_, lhs_arena,
&other->_impl_.layerdatetime_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.watertemp_)
+ sizeof(LayerStateMsg::_impl_.watertemp_)
- PROTOBUF_FIELD_OFFSET(LayerStateMsg, _impl_.layerindex_)>(
reinterpret_cast<char*>(&_impl_.layerindex_),
reinterpret_cast<char*>(&other->_impl_.layerindex_));
}
::google::protobuf::Metadata LayerStateMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[20]);
}
// ===================================================================
class LayerStatesMsg::_Internal {
public:
};
LayerStatesMsg::LayerStatesMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerStatesMsg)
}
LayerStatesMsg::LayerStatesMsg(const LayerStatesMsg& from) : ::google::protobuf::Message() {
LayerStatesMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.layerstates_){from._impl_.layerstates_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:LayerStatesMsg)
}
inline void LayerStatesMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.layerstates_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerStatesMsg::~LayerStatesMsg() {
// @@protoc_insertion_point(destructor:LayerStatesMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerStatesMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.layerstates_.~RepeatedPtrField();
}
void LayerStatesMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerStatesMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerStatesMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_layerstates()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerStatesMsg::_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<0, 1, 1, 0, 2> LayerStatesMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_LayerStatesMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .LayerStateMsg layerStates = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerStatesMsg, _impl_.layerstates_)}},
}}, {{
65535, 65535
}}, {{
// repeated .LayerStateMsg layerStates = 1;
{PROTOBUF_FIELD_OFFSET(LayerStatesMsg, _impl_.layerstates_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::LayerStateMsg>()},
}}, {{
}},
};
::uint8_t* LayerStatesMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerStatesMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .LayerStateMsg layerStates = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_layerstates_size()); i < n; i++) {
const auto& repfield = this->_internal_layerstates().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:LayerStatesMsg)
return target;
}
::size_t LayerStatesMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerStatesMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .LayerStateMsg layerStates = 1;
total_size += 1UL * this->_internal_layerstates_size();
for (const auto& msg : this->_internal_layerstates()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerStatesMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerStatesMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerStatesMsg::GetClassData() const { return &_class_data_; }
void LayerStatesMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerStatesMsg*>(&to_msg);
auto& from = static_cast<const LayerStatesMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerStatesMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_layerstates()->MergeFrom(from._internal_layerstates());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerStatesMsg::CopyFrom(const LayerStatesMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerStatesMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerStatesMsg::IsInitialized() const {
return true;
}
void LayerStatesMsg::InternalSwap(LayerStatesMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.layerstates_.InternalSwap(&other->_impl_.layerstates_);
}
::google::protobuf::Metadata LayerStatesMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[21]);
}
// ===================================================================
class LayerImageMsg::_Internal {
public:
};
LayerImageMsg::LayerImageMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerImageMsg)
}
LayerImageMsg::LayerImageMsg(const LayerImageMsg& from) : ::google::protobuf::Message() {
LayerImageMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.type_){},
decltype(_impl_.id_){},
decltype(_impl_.layer_){},
/*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());
}
::memcpy(&_impl_.id_, &from._impl_.id_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.layer_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.layer_));
// @@protoc_insertion_point(copy_constructor:LayerImageMsg)
}
inline void LayerImageMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.type_){},
decltype(_impl_.id_){::int64_t{0}},
decltype(_impl_.layer_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.type_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.type_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerImageMsg::~LayerImageMsg() {
// @@protoc_insertion_point(destructor:LayerImageMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerImageMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.type_.Destroy();
}
void LayerImageMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerImageMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerImageMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.type_.ClearToEmpty();
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.layer_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.layer_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerImageMsg::_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, 3, 0, 26, 2> LayerImageMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerImageMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int64 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LayerImageMsg, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.id_)}},
// uint32 layer = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerImageMsg, _impl_.layer_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.layer_)}},
// string type = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.type_)}},
}}, {{
65535, 65535
}}, {{
// int64 id = 1;
{PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// uint32 layer = 2;
{PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.layer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// string type = 3;
{PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.type_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\15\0\0\4\0\0\0\0"
"LayerImageMsg"
"type"
}},
};
::uint8_t* LayerImageMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerImageMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int64 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// uint32 layer = 2;
if (this->_internal_layer() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_layer(), target);
}
// string type = 3;
if (!this->_internal_type().empty()) {
const std::string& _s = this->_internal_type();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerImageMsg.type");
target = stream->WriteStringMaybeAliased(3, _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:LayerImageMsg)
return target;
}
::size_t LayerImageMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerImageMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string type = 3;
if (!this->_internal_type().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_type());
}
// int64 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_id());
}
// uint32 layer = 2;
if (this->_internal_layer() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layer());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerImageMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerImageMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerImageMsg::GetClassData() const { return &_class_data_; }
void LayerImageMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerImageMsg*>(&to_msg);
auto& from = static_cast<const LayerImageMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImageMsg)
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_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_layer() != 0) {
_this->_internal_set_layer(from._internal_layer());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerImageMsg::CopyFrom(const LayerImageMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImageMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerImageMsg::IsInitialized() const {
return true;
}
void LayerImageMsg::InternalSwap(LayerImageMsg* 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);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.layer_)
+ sizeof(LayerImageMsg::_impl_.layer_)
- PROTOBUF_FIELD_OFFSET(LayerImageMsg, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata LayerImageMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[22]);
}
// ===================================================================
class LayerImagesMsg::_Internal {
public:
};
LayerImagesMsg::LayerImagesMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerImagesMsg)
}
LayerImagesMsg::LayerImagesMsg(const LayerImagesMsg& from) : ::google::protobuf::Message() {
LayerImagesMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.images_){from._impl_.images_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:LayerImagesMsg)
}
inline void LayerImagesMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.images_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerImagesMsg::~LayerImagesMsg() {
// @@protoc_insertion_point(destructor:LayerImagesMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerImagesMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.images_.~RepeatedPtrField();
}
void LayerImagesMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerImagesMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerImagesMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_images()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerImagesMsg::_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<0, 1, 1, 0, 2> LayerImagesMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_LayerImagesMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .LayerImageMsg images = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImagesMsg, _impl_.images_)}},
}}, {{
65535, 65535
}}, {{
// repeated .LayerImageMsg images = 1;
{PROTOBUF_FIELD_OFFSET(LayerImagesMsg, _impl_.images_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::LayerImageMsg>()},
}}, {{
}},
};
::uint8_t* LayerImagesMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerImagesMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .LayerImageMsg images = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_images_size()); i < n; i++) {
const auto& repfield = this->_internal_images().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:LayerImagesMsg)
return target;
}
::size_t LayerImagesMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerImagesMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .LayerImageMsg images = 1;
total_size += 1UL * this->_internal_images_size();
for (const auto& msg : this->_internal_images()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerImagesMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerImagesMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerImagesMsg::GetClassData() const { return &_class_data_; }
void LayerImagesMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerImagesMsg*>(&to_msg);
auto& from = static_cast<const LayerImagesMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImagesMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_images()->MergeFrom(from._internal_images());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerImagesMsg::CopyFrom(const LayerImagesMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImagesMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerImagesMsg::IsInitialized() const {
return true;
}
void LayerImagesMsg::InternalSwap(LayerImagesMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.images_.InternalSwap(&other->_impl_.images_);
}
::google::protobuf::Metadata LayerImagesMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[23]);
}
// ===================================================================
class LayerImageDataMsg::_Internal {
public:
};
LayerImageDataMsg::LayerImageDataMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerImageDataMsg)
}
LayerImageDataMsg::LayerImageDataMsg(const LayerImageDataMsg& from) : ::google::protobuf::Message() {
LayerImageDataMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.imagedata_){},
decltype(_impl_.imagesize_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.imagedata_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imagedata_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_imagedata().empty()) {
_this->_impl_.imagedata_.Set(from._internal_imagedata(), _this->GetArenaForAllocation());
}
_this->_impl_.imagesize_ = from._impl_.imagesize_;
// @@protoc_insertion_point(copy_constructor:LayerImageDataMsg)
}
inline void LayerImageDataMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.imagedata_){},
decltype(_impl_.imagesize_){::uint64_t{0u}},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.imagedata_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.imagedata_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerImageDataMsg::~LayerImageDataMsg() {
// @@protoc_insertion_point(destructor:LayerImageDataMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerImageDataMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.imagedata_.Destroy();
}
void LayerImageDataMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerImageDataMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerImageDataMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.imagedata_.ClearToEmpty();
_impl_.imagesize_ = ::uint64_t{0u};
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerImageDataMsg::_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<1, 2, 0, 0, 2> LayerImageDataMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerImageDataMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// bytes imageData = 2;
{::_pbi::TcParser::FastBS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImageDataMsg, _impl_.imagedata_)}},
// uint64 imageSize = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LayerImageDataMsg, _impl_.imagesize_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(LayerImageDataMsg, _impl_.imagesize_)}},
}}, {{
65535, 65535
}}, {{
// uint64 imageSize = 1;
{PROTOBUF_FIELD_OFFSET(LayerImageDataMsg, _impl_.imagesize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// bytes imageData = 2;
{PROTOBUF_FIELD_OFFSET(LayerImageDataMsg, _impl_.imagedata_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
::uint8_t* LayerImageDataMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerImageDataMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint64 imageSize = 1;
if (this->_internal_imagesize() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
1, this->_internal_imagesize(), target);
}
// bytes imageData = 2;
if (!this->_internal_imagedata().empty()) {
const std::string& _s = this->_internal_imagedata();
target = stream->WriteBytesMaybeAliased(2, _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:LayerImageDataMsg)
return target;
}
::size_t LayerImageDataMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerImageDataMsg)
::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 imageData = 2;
if (!this->_internal_imagedata().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_imagedata());
}
// uint64 imageSize = 1;
if (this->_internal_imagesize() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
this->_internal_imagesize());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerImageDataMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerImageDataMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerImageDataMsg::GetClassData() const { return &_class_data_; }
void LayerImageDataMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerImageDataMsg*>(&to_msg);
auto& from = static_cast<const LayerImageDataMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImageDataMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_imagedata().empty()) {
_this->_internal_set_imagedata(from._internal_imagedata());
}
if (from._internal_imagesize() != 0) {
_this->_internal_set_imagesize(from._internal_imagesize());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerImageDataMsg::CopyFrom(const LayerImageDataMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImageDataMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerImageDataMsg::IsInitialized() const {
return true;
}
void LayerImageDataMsg::InternalSwap(LayerImageDataMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.imagedata_, lhs_arena,
&other->_impl_.imagedata_, rhs_arena);
swap(_impl_.imagesize_, other->_impl_.imagesize_);
}
::google::protobuf::Metadata LayerImageDataMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[24]);
}
// ===================================================================
class LayerLoadCurveMsg::_Internal {
public:
};
LayerLoadCurveMsg::LayerLoadCurveMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerLoadCurveMsg)
}
LayerLoadCurveMsg::LayerLoadCurveMsg(const LayerLoadCurveMsg& from) : ::google::protobuf::Message() {
LayerLoadCurveMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.covertype_){},
decltype(_impl_.id_){},
decltype(_impl_.layer_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.covertype_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.covertype_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_covertype().empty()) {
_this->_impl_.covertype_.Set(from._internal_covertype(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.id_, &from._impl_.id_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.layer_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.layer_));
// @@protoc_insertion_point(copy_constructor:LayerLoadCurveMsg)
}
inline void LayerLoadCurveMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.covertype_){},
decltype(_impl_.id_){::int64_t{0}},
decltype(_impl_.layer_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.covertype_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.covertype_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
LayerLoadCurveMsg::~LayerLoadCurveMsg() {
// @@protoc_insertion_point(destructor:LayerLoadCurveMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerLoadCurveMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.covertype_.Destroy();
}
void LayerLoadCurveMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerLoadCurveMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerLoadCurveMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.covertype_.ClearToEmpty();
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.layer_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.layer_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerLoadCurveMsg::_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, 3, 0, 35, 2> LayerLoadCurveMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerLoadCurveMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int64 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(LayerLoadCurveMsg, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.id_)}},
// uint32 layer = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerLoadCurveMsg, _impl_.layer_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.layer_)}},
// string coverType = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.covertype_)}},
}}, {{
65535, 65535
}}, {{
// int64 id = 1;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// uint32 layer = 2;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.layer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// string coverType = 3;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.covertype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\21\0\0\11\0\0\0\0"
"LayerLoadCurveMsg"
"coverType"
}},
};
::uint8_t* LayerLoadCurveMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurveMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int64 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// uint32 layer = 2;
if (this->_internal_layer() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
2, this->_internal_layer(), target);
}
// string coverType = 3;
if (!this->_internal_covertype().empty()) {
const std::string& _s = this->_internal_covertype();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "LayerLoadCurveMsg.coverType");
target = stream->WriteStringMaybeAliased(3, _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:LayerLoadCurveMsg)
return target;
}
::size_t LayerLoadCurveMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurveMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string coverType = 3;
if (!this->_internal_covertype().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_covertype());
}
// int64 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_id());
}
// uint32 layer = 2;
if (this->_internal_layer() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_layer());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerLoadCurveMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerLoadCurveMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerLoadCurveMsg::GetClassData() const { return &_class_data_; }
void LayerLoadCurveMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerLoadCurveMsg*>(&to_msg);
auto& from = static_cast<const LayerLoadCurveMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurveMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_covertype().empty()) {
_this->_internal_set_covertype(from._internal_covertype());
}
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_layer() != 0) {
_this->_internal_set_layer(from._internal_layer());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerLoadCurveMsg::CopyFrom(const LayerLoadCurveMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurveMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerLoadCurveMsg::IsInitialized() const {
return true;
}
void LayerLoadCurveMsg::InternalSwap(LayerLoadCurveMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.covertype_, lhs_arena,
&other->_impl_.covertype_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.layer_)
+ sizeof(LayerLoadCurveMsg::_impl_.layer_)
- PROTOBUF_FIELD_OFFSET(LayerLoadCurveMsg, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata LayerLoadCurveMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[25]);
}
// ===================================================================
class LayerLoadCurvesMsg::_Internal {
public:
};
LayerLoadCurvesMsg::LayerLoadCurvesMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerLoadCurvesMsg)
}
LayerLoadCurvesMsg::LayerLoadCurvesMsg(const LayerLoadCurvesMsg& from) : ::google::protobuf::Message() {
LayerLoadCurvesMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.loadcurves_){from._impl_.loadcurves_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:LayerLoadCurvesMsg)
}
inline void LayerLoadCurvesMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.loadcurves_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerLoadCurvesMsg::~LayerLoadCurvesMsg() {
// @@protoc_insertion_point(destructor:LayerLoadCurvesMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerLoadCurvesMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.loadcurves_.~RepeatedPtrField();
}
void LayerLoadCurvesMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerLoadCurvesMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerLoadCurvesMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_loadcurves()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerLoadCurvesMsg::_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<0, 1, 1, 0, 2> LayerLoadCurvesMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_LayerLoadCurvesMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .LayerLoadCurveMsg loadCurves = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurvesMsg, _impl_.loadcurves_)}},
}}, {{
65535, 65535
}}, {{
// repeated .LayerLoadCurveMsg loadCurves = 1;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurvesMsg, _impl_.loadcurves_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::LayerLoadCurveMsg>()},
}}, {{
}},
};
::uint8_t* LayerLoadCurvesMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurvesMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .LayerLoadCurveMsg loadCurves = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_loadcurves_size()); i < n; i++) {
const auto& repfield = this->_internal_loadcurves().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
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:LayerLoadCurvesMsg)
return target;
}
::size_t LayerLoadCurvesMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurvesMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .LayerLoadCurveMsg loadCurves = 1;
total_size += 1UL * this->_internal_loadcurves_size();
for (const auto& msg : this->_internal_loadcurves()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerLoadCurvesMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerLoadCurvesMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerLoadCurvesMsg::GetClassData() const { return &_class_data_; }
void LayerLoadCurvesMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerLoadCurvesMsg*>(&to_msg);
auto& from = static_cast<const LayerLoadCurvesMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurvesMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_loadcurves()->MergeFrom(from._internal_loadcurves());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerLoadCurvesMsg::CopyFrom(const LayerLoadCurvesMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurvesMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerLoadCurvesMsg::IsInitialized() const {
return true;
}
void LayerLoadCurvesMsg::InternalSwap(LayerLoadCurvesMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.loadcurves_.InternalSwap(&other->_impl_.loadcurves_);
}
::google::protobuf::Metadata LayerLoadCurvesMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[26]);
}
// ===================================================================
class LayerLoadCurveDataMsg::_Internal {
public:
};
LayerLoadCurveDataMsg::LayerLoadCurveDataMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:LayerLoadCurveDataMsg)
}
LayerLoadCurveDataMsg::LayerLoadCurveDataMsg(const LayerLoadCurveDataMsg& from) : ::google::protobuf::Message() {
LayerLoadCurveDataMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.mold_){from._impl_.mold_},
decltype(_impl_.powder_){from._impl_.powder_},
decltype(_impl_.arm_){from._impl_.arm_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:LayerLoadCurveDataMsg)
}
inline void LayerLoadCurveDataMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.mold_){arena},
decltype(_impl_.powder_){arena},
decltype(_impl_.arm_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerLoadCurveDataMsg::~LayerLoadCurveDataMsg() {
// @@protoc_insertion_point(destructor:LayerLoadCurveDataMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerLoadCurveDataMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.mold_.~RepeatedField();
_impl_.powder_.~RepeatedField();
_impl_.arm_.~RepeatedField();
}
void LayerLoadCurveDataMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerLoadCurveDataMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:LayerLoadCurveDataMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_mold()->Clear();
_internal_mutable_powder()->Clear();
_internal_mutable_arm()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerLoadCurveDataMsg::_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, 3, 0, 0, 2> LayerLoadCurveDataMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
3, 24, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967288, // skipmap
offsetof(decltype(_table_), field_entries),
3, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_LayerLoadCurveDataMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// repeated float mold = 1;
{::_pbi::TcParser::FastF32P1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.mold_)}},
// repeated float powder = 2;
{::_pbi::TcParser::FastF32P1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.powder_)}},
// repeated float arm = 3;
{::_pbi::TcParser::FastF32P1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.arm_)}},
}}, {{
65535, 65535
}}, {{
// repeated float mold = 1;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.mold_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
// repeated float powder = 2;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.powder_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
// repeated float arm = 3;
{PROTOBUF_FIELD_OFFSET(LayerLoadCurveDataMsg, _impl_.arm_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
}},
// no aux_entries
{{
}},
};
::uint8_t* LayerLoadCurveDataMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurveDataMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated float mold = 1;
if (this->_internal_mold_size() > 0) {
target = stream->WriteFixedPacked(1, _internal_mold(), target);
}
// repeated float powder = 2;
if (this->_internal_powder_size() > 0) {
target = stream->WriteFixedPacked(2, _internal_powder(), target);
}
// repeated float arm = 3;
if (this->_internal_arm_size() > 0) {
target = stream->WriteFixedPacked(3, _internal_arm(), 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:LayerLoadCurveDataMsg)
return target;
}
::size_t LayerLoadCurveDataMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurveDataMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated float mold = 1;
{
std::size_t data_size = std::size_t{4} *
::_pbi::FromIntSize(this->_internal_mold_size())
;
std::size_t tag_size = data_size == 0
? 0
: 1 + ::_pbi::WireFormatLite::Int32Size(
static_cast<int32_t>(data_size))
;
total_size += tag_size + data_size;
}
// repeated float powder = 2;
{
std::size_t data_size = std::size_t{4} *
::_pbi::FromIntSize(this->_internal_powder_size())
;
std::size_t tag_size = data_size == 0
? 0
: 1 + ::_pbi::WireFormatLite::Int32Size(
static_cast<int32_t>(data_size))
;
total_size += tag_size + data_size;
}
// repeated float arm = 3;
{
std::size_t data_size = std::size_t{4} *
::_pbi::FromIntSize(this->_internal_arm_size())
;
std::size_t tag_size = data_size == 0
? 0
: 1 + ::_pbi::WireFormatLite::Int32Size(
static_cast<int32_t>(data_size))
;
total_size += tag_size + data_size;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerLoadCurveDataMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerLoadCurveDataMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerLoadCurveDataMsg::GetClassData() const { return &_class_data_; }
void LayerLoadCurveDataMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerLoadCurveDataMsg*>(&to_msg);
auto& from = static_cast<const LayerLoadCurveDataMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurveDataMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_mold()->MergeFrom(from._internal_mold());
_this->_internal_mutable_powder()->MergeFrom(from._internal_powder());
_this->_internal_mutable_arm()->MergeFrom(from._internal_arm());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerLoadCurveDataMsg::CopyFrom(const LayerLoadCurveDataMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurveDataMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerLoadCurveDataMsg::IsInitialized() const {
return true;
}
void LayerLoadCurveDataMsg::InternalSwap(LayerLoadCurveDataMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.mold_.InternalSwap(&other->_impl_.mold_);
_impl_.powder_.InternalSwap(&other->_impl_.powder_);
_impl_.arm_.InternalSwap(&other->_impl_.arm_);
}
::google::protobuf::Metadata LayerLoadCurveDataMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[27]);
}
// ===================================================================
class ReqRecordTaskMsg::_Internal {
public:
};
ReqRecordTaskMsg::ReqRecordTaskMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:ReqRecordTaskMsg)
}
ReqRecordTaskMsg::ReqRecordTaskMsg(const ReqRecordTaskMsg& from) : ::google::protobuf::Message() {
ReqRecordTaskMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.taskid_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_taskid().empty()) {
_this->_impl_.taskid_.Set(from._internal_taskid(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:ReqRecordTaskMsg)
}
inline void ReqRecordTaskMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.taskid_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.taskid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.taskid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ReqRecordTaskMsg::~ReqRecordTaskMsg() {
// @@protoc_insertion_point(destructor:ReqRecordTaskMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ReqRecordTaskMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.taskid_.Destroy();
}
void ReqRecordTaskMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ReqRecordTaskMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqRecordTaskMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.taskid_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ReqRecordTaskMsg::_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<0, 1, 0, 31, 2> ReqRecordTaskMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_ReqRecordTaskMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string taskID = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ReqRecordTaskMsg, _impl_.taskid_)}},
}}, {{
65535, 65535
}}, {{
// string taskID = 1;
{PROTOBUF_FIELD_OFFSET(ReqRecordTaskMsg, _impl_.taskid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\20\6\0\0\0\0\0\0"
"ReqRecordTaskMsg"
"taskID"
}},
};
::uint8_t* ReqRecordTaskMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:ReqRecordTaskMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string taskID = 1;
if (!this->_internal_taskid().empty()) {
const std::string& _s = this->_internal_taskid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "ReqRecordTaskMsg.taskID");
target = stream->WriteStringMaybeAliased(1, _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:ReqRecordTaskMsg)
return target;
}
::size_t ReqRecordTaskMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqRecordTaskMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string taskID = 1;
if (!this->_internal_taskid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_taskid());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ReqRecordTaskMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ReqRecordTaskMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ReqRecordTaskMsg::GetClassData() const { return &_class_data_; }
void ReqRecordTaskMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ReqRecordTaskMsg*>(&to_msg);
auto& from = static_cast<const ReqRecordTaskMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:ReqRecordTaskMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_taskid().empty()) {
_this->_internal_set_taskid(from._internal_taskid());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ReqRecordTaskMsg::CopyFrom(const ReqRecordTaskMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ReqRecordTaskMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ReqRecordTaskMsg::IsInitialized() const {
return true;
}
void ReqRecordTaskMsg::InternalSwap(ReqRecordTaskMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.taskid_, lhs_arena,
&other->_impl_.taskid_, rhs_arena);
}
::google::protobuf::Metadata ReqRecordTaskMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[28]);
}
// ===================================================================
class ReqRecordTaskListMsg::_Internal {
public:
};
ReqRecordTaskListMsg::ReqRecordTaskListMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:ReqRecordTaskListMsg)
}
ReqRecordTaskListMsg::ReqRecordTaskListMsg(const ReqRecordTaskListMsg& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:ReqRecordTaskListMsg)
}
inline void ReqRecordTaskListMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.beginsecond_){::int64_t{0}},
decltype(_impl_.endsecond_){::int64_t{0}},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ReqRecordTaskListMsg::~ReqRecordTaskListMsg() {
// @@protoc_insertion_point(destructor:ReqRecordTaskListMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ReqRecordTaskListMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void ReqRecordTaskListMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ReqRecordTaskListMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:ReqRecordTaskListMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.beginsecond_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.endsecond_) -
reinterpret_cast<char*>(&_impl_.beginsecond_)) + sizeof(_impl_.endsecond_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ReqRecordTaskListMsg::_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<1, 2, 0, 0, 2> ReqRecordTaskListMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
2, 8, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967292, // skipmap
offsetof(decltype(_table_), field_entries),
2, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_ReqRecordTaskListMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// int64 endSecond = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ReqRecordTaskListMsg, _impl_.endsecond_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.endsecond_)}},
// int64 beginSecond = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ReqRecordTaskListMsg, _impl_.beginsecond_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.beginsecond_)}},
}}, {{
65535, 65535
}}, {{
// int64 beginSecond = 1;
{PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.beginsecond_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 endSecond = 2;
{PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.endsecond_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ReqRecordTaskListMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:ReqRecordTaskListMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int64 beginSecond = 1;
if (this->_internal_beginsecond() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<1>(
stream, this->_internal_beginsecond(), target);
}
// int64 endSecond = 2;
if (this->_internal_endsecond() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<2>(
stream, this->_internal_endsecond(), 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:ReqRecordTaskListMsg)
return target;
}
::size_t ReqRecordTaskListMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ReqRecordTaskListMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int64 beginSecond = 1;
if (this->_internal_beginsecond() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_beginsecond());
}
// int64 endSecond = 2;
if (this->_internal_endsecond() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_endsecond());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ReqRecordTaskListMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ReqRecordTaskListMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ReqRecordTaskListMsg::GetClassData() const { return &_class_data_; }
void ReqRecordTaskListMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ReqRecordTaskListMsg*>(&to_msg);
auto& from = static_cast<const ReqRecordTaskListMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:ReqRecordTaskListMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_beginsecond() != 0) {
_this->_internal_set_beginsecond(from._internal_beginsecond());
}
if (from._internal_endsecond() != 0) {
_this->_internal_set_endsecond(from._internal_endsecond());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ReqRecordTaskListMsg::CopyFrom(const ReqRecordTaskListMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ReqRecordTaskListMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ReqRecordTaskListMsg::IsInitialized() const {
return true;
}
void ReqRecordTaskListMsg::InternalSwap(ReqRecordTaskListMsg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.endsecond_)
+ sizeof(ReqRecordTaskListMsg::_impl_.endsecond_)
- PROTOBUF_FIELD_OFFSET(ReqRecordTaskListMsg, _impl_.beginsecond_)>(
reinterpret_cast<char*>(&_impl_.beginsecond_),
reinterpret_cast<char*>(&other->_impl_.beginsecond_));
}
::google::protobuf::Metadata ReqRecordTaskListMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[29]);
}
// ===================================================================
class AlarmNotifyMsg::_Internal {
public:
};
AlarmNotifyMsg::AlarmNotifyMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:AlarmNotifyMsg)
}
AlarmNotifyMsg::AlarmNotifyMsg(const AlarmNotifyMsg& from) : ::google::protobuf::Message() {
AlarmNotifyMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.alarmcode_){},
decltype(_impl_.alarmcontent_){},
decltype(_impl_.happentime_){},
decltype(_impl_.layerindex_){},
decltype(_impl_.alarmtype_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobname().empty()) {
_this->_impl_.jobname_.Set(from._internal_jobname(), _this->GetArenaForAllocation());
}
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jobid().empty()) {
_this->_impl_.jobid_.Set(from._internal_jobid(), _this->GetArenaForAllocation());
}
_impl_.alarmcode_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcode_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_alarmcode().empty()) {
_this->_impl_.alarmcode_.Set(from._internal_alarmcode(), _this->GetArenaForAllocation());
}
_impl_.alarmcontent_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcontent_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_alarmcontent().empty()) {
_this->_impl_.alarmcontent_.Set(from._internal_alarmcontent(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.happentime_, &from._impl_.happentime_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.alarmtype_) -
reinterpret_cast<char*>(&_impl_.happentime_)) + sizeof(_impl_.alarmtype_));
// @@protoc_insertion_point(copy_constructor:AlarmNotifyMsg)
}
inline void AlarmNotifyMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.jobname_){},
decltype(_impl_.jobid_){},
decltype(_impl_.alarmcode_){},
decltype(_impl_.alarmcontent_){},
decltype(_impl_.happentime_){::uint64_t{0u}},
decltype(_impl_.layerindex_){0},
decltype(_impl_.alarmtype_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.jobname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jobid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcode_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcode_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcontent_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.alarmcontent_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
AlarmNotifyMsg::~AlarmNotifyMsg() {
// @@protoc_insertion_point(destructor:AlarmNotifyMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void AlarmNotifyMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.jobname_.Destroy();
_impl_.jobid_.Destroy();
_impl_.alarmcode_.Destroy();
_impl_.alarmcontent_.Destroy();
}
void AlarmNotifyMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void AlarmNotifyMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:AlarmNotifyMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.jobname_.ClearToEmpty();
_impl_.jobid_.ClearToEmpty();
_impl_.alarmcode_.ClearToEmpty();
_impl_.alarmcontent_.ClearToEmpty();
::memset(&_impl_.happentime_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.alarmtype_) -
reinterpret_cast<char*>(&_impl_.happentime_)) + sizeof(_impl_.alarmtype_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* AlarmNotifyMsg::_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<3, 7, 0, 56, 2> AlarmNotifyMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
7, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967168, // skipmap
offsetof(decltype(_table_), field_entries),
7, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_AlarmNotifyMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string jobName = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.jobname_)}},
// string jobId = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.jobid_)}},
// uint64 happenTime = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AlarmNotifyMsg, _impl_.happentime_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.happentime_)}},
// int32 layerIndex = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AlarmNotifyMsg, _impl_.layerindex_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.layerindex_)}},
// string alarmCode = 5;
{::_pbi::TcParser::FastUS1,
{42, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmcode_)}},
// int32 alarmType = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(AlarmNotifyMsg, _impl_.alarmtype_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmtype_)}},
// string alarmContent = 7;
{::_pbi::TcParser::FastUS1,
{58, 63, 0, PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmcontent_)}},
}}, {{
65535, 65535
}}, {{
// string jobName = 1;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.jobname_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string jobId = 2;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.jobid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// uint64 happenTime = 3;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.happentime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
// int32 layerIndex = 4;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.layerindex_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// string alarmCode = 5;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmcode_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int32 alarmType = 6;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmtype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// string alarmContent = 7;
{PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmcontent_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\16\7\5\0\0\11\0\14"
"AlarmNotifyMsg"
"jobName"
"jobId"
"alarmCode"
"alarmContent"
}},
};
::uint8_t* AlarmNotifyMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:AlarmNotifyMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string jobName = 1;
if (!this->_internal_jobname().empty()) {
const std::string& _s = this->_internal_jobname();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmNotifyMsg.jobName");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string jobId = 2;
if (!this->_internal_jobid().empty()) {
const std::string& _s = this->_internal_jobid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmNotifyMsg.jobId");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// uint64 happenTime = 3;
if (this->_internal_happentime() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
3, this->_internal_happentime(), target);
}
// int32 layerIndex = 4;
if (this->_internal_layerindex() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<4>(
stream, this->_internal_layerindex(), target);
}
// string alarmCode = 5;
if (!this->_internal_alarmcode().empty()) {
const std::string& _s = this->_internal_alarmcode();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmNotifyMsg.alarmCode");
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// int32 alarmType = 6;
if (this->_internal_alarmtype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<6>(
stream, this->_internal_alarmtype(), target);
}
// string alarmContent = 7;
if (!this->_internal_alarmcontent().empty()) {
const std::string& _s = this->_internal_alarmcontent();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "AlarmNotifyMsg.alarmContent");
target = stream->WriteStringMaybeAliased(7, _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:AlarmNotifyMsg)
return target;
}
::size_t AlarmNotifyMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:AlarmNotifyMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string jobName = 1;
if (!this->_internal_jobname().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobname());
}
// string jobId = 2;
if (!this->_internal_jobid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jobid());
}
// string alarmCode = 5;
if (!this->_internal_alarmcode().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_alarmcode());
}
// string alarmContent = 7;
if (!this->_internal_alarmcontent().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_alarmcontent());
}
// uint64 happenTime = 3;
if (this->_internal_happentime() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
this->_internal_happentime());
}
// int32 layerIndex = 4;
if (this->_internal_layerindex() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_layerindex());
}
// int32 alarmType = 6;
if (this->_internal_alarmtype() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_alarmtype());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData AlarmNotifyMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
AlarmNotifyMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*AlarmNotifyMsg::GetClassData() const { return &_class_data_; }
void AlarmNotifyMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<AlarmNotifyMsg*>(&to_msg);
auto& from = static_cast<const AlarmNotifyMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:AlarmNotifyMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_jobname().empty()) {
_this->_internal_set_jobname(from._internal_jobname());
}
if (!from._internal_jobid().empty()) {
_this->_internal_set_jobid(from._internal_jobid());
}
if (!from._internal_alarmcode().empty()) {
_this->_internal_set_alarmcode(from._internal_alarmcode());
}
if (!from._internal_alarmcontent().empty()) {
_this->_internal_set_alarmcontent(from._internal_alarmcontent());
}
if (from._internal_happentime() != 0) {
_this->_internal_set_happentime(from._internal_happentime());
}
if (from._internal_layerindex() != 0) {
_this->_internal_set_layerindex(from._internal_layerindex());
}
if (from._internal_alarmtype() != 0) {
_this->_internal_set_alarmtype(from._internal_alarmtype());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void AlarmNotifyMsg::CopyFrom(const AlarmNotifyMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:AlarmNotifyMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool AlarmNotifyMsg::IsInitialized() const {
return true;
}
void AlarmNotifyMsg::InternalSwap(AlarmNotifyMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobname_, lhs_arena,
&other->_impl_.jobname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobid_, lhs_arena,
&other->_impl_.jobid_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.alarmcode_, lhs_arena,
&other->_impl_.alarmcode_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.alarmcontent_, lhs_arena,
&other->_impl_.alarmcontent_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.alarmtype_)
+ sizeof(AlarmNotifyMsg::_impl_.alarmtype_)
- PROTOBUF_FIELD_OFFSET(AlarmNotifyMsg, _impl_.happentime_)>(
reinterpret_cast<char*>(&_impl_.happentime_),
reinterpret_cast<char*>(&other->_impl_.happentime_));
}
::google::protobuf::Metadata AlarmNotifyMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[30]);
}
// ===================================================================
class RemoteJobResMsg::_Internal {
public:
};
RemoteJobResMsg::RemoteJobResMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:RemoteJobResMsg)
}
RemoteJobResMsg::RemoteJobResMsg(const RemoteJobResMsg& from) : ::google::protobuf::Message() {
RemoteJobResMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.jsondata_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.jsondata_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jsondata_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_jsondata().empty()) {
_this->_impl_.jsondata_.Set(from._internal_jsondata(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:RemoteJobResMsg)
}
inline void RemoteJobResMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.jsondata_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.jsondata_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.jsondata_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
RemoteJobResMsg::~RemoteJobResMsg() {
// @@protoc_insertion_point(destructor:RemoteJobResMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RemoteJobResMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.jsondata_.Destroy();
}
void RemoteJobResMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RemoteJobResMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:RemoteJobResMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.jsondata_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RemoteJobResMsg::_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<0, 1, 0, 32, 2> RemoteJobResMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_RemoteJobResMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string jsonData = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoteJobResMsg, _impl_.jsondata_)}},
}}, {{
65535, 65535
}}, {{
// string jsonData = 1;
{PROTOBUF_FIELD_OFFSET(RemoteJobResMsg, _impl_.jsondata_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\17\10\0\0\0\0\0\0"
"RemoteJobResMsg"
"jsonData"
}},
};
::uint8_t* RemoteJobResMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:RemoteJobResMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string jsonData = 1;
if (!this->_internal_jsondata().empty()) {
const std::string& _s = this->_internal_jsondata();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "RemoteJobResMsg.jsonData");
target = stream->WriteStringMaybeAliased(1, _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:RemoteJobResMsg)
return target;
}
::size_t RemoteJobResMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:RemoteJobResMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string jsonData = 1;
if (!this->_internal_jsondata().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_jsondata());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RemoteJobResMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RemoteJobResMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*RemoteJobResMsg::GetClassData() const { return &_class_data_; }
void RemoteJobResMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RemoteJobResMsg*>(&to_msg);
auto& from = static_cast<const RemoteJobResMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:RemoteJobResMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_jsondata().empty()) {
_this->_internal_set_jsondata(from._internal_jsondata());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RemoteJobResMsg::CopyFrom(const RemoteJobResMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:RemoteJobResMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RemoteJobResMsg::IsInitialized() const {
return true;
}
void RemoteJobResMsg::InternalSwap(RemoteJobResMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jsondata_, lhs_arena,
&other->_impl_.jsondata_, rhs_arena);
}
::google::protobuf::Metadata RemoteJobResMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[31]);
}
// ===================================================================
class VersionInfoResMsg::_Internal {
public:
};
VersionInfoResMsg::VersionInfoResMsg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:VersionInfoResMsg)
}
VersionInfoResMsg::VersionInfoResMsg(const VersionInfoResMsg& from) : ::google::protobuf::Message() {
VersionInfoResMsg* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.version_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.version_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.version_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_version().empty()) {
_this->_impl_.version_.Set(from._internal_version(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:VersionInfoResMsg)
}
inline void VersionInfoResMsg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.version_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.version_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.version_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
VersionInfoResMsg::~VersionInfoResMsg() {
// @@protoc_insertion_point(destructor:VersionInfoResMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void VersionInfoResMsg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.version_.Destroy();
}
void VersionInfoResMsg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void VersionInfoResMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:VersionInfoResMsg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.version_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* VersionInfoResMsg::_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<0, 1, 0, 33, 2> VersionInfoResMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_VersionInfoResMsg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// string version = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(VersionInfoResMsg, _impl_.version_)}},
}}, {{
65535, 65535
}}, {{
// string version = 1;
{PROTOBUF_FIELD_OFFSET(VersionInfoResMsg, _impl_.version_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\21\7\0\0\0\0\0\0"
"VersionInfoResMsg"
"version"
}},
};
::uint8_t* VersionInfoResMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:VersionInfoResMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string version = 1;
if (!this->_internal_version().empty()) {
const std::string& _s = this->_internal_version();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "VersionInfoResMsg.version");
target = stream->WriteStringMaybeAliased(1, _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:VersionInfoResMsg)
return target;
}
::size_t VersionInfoResMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:VersionInfoResMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string version = 1;
if (!this->_internal_version().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this->_internal_version());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData VersionInfoResMsg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
VersionInfoResMsg::MergeImpl
};
const ::google::protobuf::Message::ClassData*VersionInfoResMsg::GetClassData() const { return &_class_data_; }
void VersionInfoResMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<VersionInfoResMsg*>(&to_msg);
auto& from = static_cast<const VersionInfoResMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:VersionInfoResMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_version().empty()) {
_this->_internal_set_version(from._internal_version());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void VersionInfoResMsg::CopyFrom(const VersionInfoResMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:VersionInfoResMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool VersionInfoResMsg::IsInitialized() const {
return true;
}
void VersionInfoResMsg::InternalSwap(VersionInfoResMsg* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, lhs_arena,
&other->_impl_.version_, rhs_arena);
}
::google::protobuf::Metadata VersionInfoResMsg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once,
file_level_metadata_common_2eproto[32]);
}
// @@protoc_insertion_point(namespace_scope)
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"