GrpcPrint/PrintS/protobuf/stream.pb.cc
2024-06-27 10:56:50 +08:00

9911 lines
388 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream.proto
#include "stream.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;
namespace stream {
template <typename>
PROTOBUF_CONSTEXPR ParamInfo::ParamInfo(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.namekey_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.strvalue_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.context_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.cardname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.cardip_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.valuetype_)*/ 0,
/*decltype(_impl_.startlayer_)*/ 0,
/*decltype(_impl_.isenable_)*/ false,
/*decltype(_impl_.isalarm_)*/ false,
/*decltype(_impl_.isshow_)*/ false,
/*decltype(_impl_.hadassign_)*/ false,
/*decltype(_impl_.endlayer_)*/ 0,
/*decltype(_impl_.powder_)*/ 0,
/*decltype(_impl_.seqno_)*/ 0,
/*decltype(_impl_.controlno_)*/ 0,
/*decltype(_impl_.serialno_)*/ 0,
/*decltype(_impl_.controltype_)*/ 0,
/*decltype(_impl_.hadmatch_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ParamInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR ParamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ParamInfoDefaultTypeInternal() {}
union {
ParamInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParamInfoDefaultTypeInternal _ParamInfo_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RequestInfo::RequestInfo(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.item_)*/ {},
/*decltype(_impl_.namekey_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.strvalue_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.datatype_)*/ 0u,
/*decltype(_impl_.valuetype_)*/ 0,
/*decltype(_impl_.handletype_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RequestInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR RequestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RequestInfoDefaultTypeInternal() {}
union {
RequestInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestInfoDefaultTypeInternal _RequestInfo_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ResponseInfo::ResponseInfo(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.item_)*/ {},
/*decltype(_impl_.datatype_)*/ 0u,
/*decltype(_impl_.result_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ResponseInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR ResponseInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ResponseInfoDefaultTypeInternal() {}
union {
ResponseInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseInfoDefaultTypeInternal _ResponseInfo_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ResponseAny::ResponseAny(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_._has_bits_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
/*decltype(_impl_.data_)*/ nullptr,
} {}
struct ResponseAnyDefaultTypeInternal {
PROTOBUF_CONSTEXPR ResponseAnyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ResponseAnyDefaultTypeInternal() {}
union {
ResponseAny _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseAnyDefaultTypeInternal _ResponseAny_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerData::LayerData(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.layerdatablock_)*/ {},
/*decltype(_impl_.zcooldinate_)*/ 0,
/*decltype(_impl_.powder_)*/ 0,
/*decltype(_impl_.layerthickness_)*/ 0,
/*decltype(_impl_.result_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerDataDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerDataDefaultTypeInternal() {}
union {
LayerData _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDataDefaultTypeInternal _LayerData_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR LayerDataBlock::LayerDataBlock(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.vecblocks_)*/ {},
/*decltype(_impl_.chainblocks_)*/ {},
/*decltype(_impl_.elementid_)*/ 0,
/*decltype(_impl_.elementparamid_)*/ 0,
/*decltype(_impl_.blocktype_)*/ 0u,
/*decltype(_impl_.order_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct LayerDataBlockDefaultTypeInternal {
PROTOBUF_CONSTEXPR LayerDataBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~LayerDataBlockDefaultTypeInternal() {}
union {
LayerDataBlock _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDataBlockDefaultTypeInternal _LayerDataBlock_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR VectorDataBlock::VectorDataBlock(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.startx_)*/ 0,
/*decltype(_impl_.starty_)*/ 0,
/*decltype(_impl_.endx_)*/ 0,
/*decltype(_impl_.endy_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct VectorDataBlockDefaultTypeInternal {
PROTOBUF_CONSTEXPR VectorDataBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~VectorDataBlockDefaultTypeInternal() {}
union {
VectorDataBlock _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorDataBlockDefaultTypeInternal _VectorDataBlock_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ChainDataBlock::ChainDataBlock(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.pointvec_)*/ {},
/*decltype(_impl_.dotnum_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ChainDataBlockDefaultTypeInternal {
PROTOBUF_CONSTEXPR ChainDataBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ChainDataBlockDefaultTypeInternal() {}
union {
ChainDataBlock _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChainDataBlockDefaultTypeInternal _ChainDataBlock_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR Point::Point(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.xpos_)*/ 0,
/*decltype(_impl_.ypos_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct PointDefaultTypeInternal {
PROTOBUF_CONSTEXPR PointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~PointDefaultTypeInternal() {}
union {
Point _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PointDefaultTypeInternal _Point_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR RegResponce::RegResponce(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.data_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct RegResponceDefaultTypeInternal {
PROTOBUF_CONSTEXPR RegResponceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~RegResponceDefaultTypeInternal() {}
union {
RegResponce _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegResponceDefaultTypeInternal _RegResponce_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ImgInfoResponce::ImgInfoResponce(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.levelimage_)*/ 0u,
/*decltype(_impl_.width_)*/ 0,
/*decltype(_impl_.height_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ImgInfoResponceDefaultTypeInternal {
PROTOBUF_CONSTEXPR ImgInfoResponceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ImgInfoResponceDefaultTypeInternal() {}
union {
ImgInfoResponce _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImgInfoResponceDefaultTypeInternal _ImgInfoResponce_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ComResponce::ComResponce(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.data_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ComResponceDefaultTypeInternal {
PROTOBUF_CONSTEXPR ComResponceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ComResponceDefaultTypeInternal() {}
union {
ComResponce _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComResponceDefaultTypeInternal _ComResponce_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ScannerCrtlCfgResp::ScannerCrtlCfgResp(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.scannercfg_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ScannerCrtlCfgRespDefaultTypeInternal {
PROTOBUF_CONSTEXPR ScannerCrtlCfgRespDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ScannerCrtlCfgRespDefaultTypeInternal() {}
union {
ScannerCrtlCfgResp _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScannerCrtlCfgRespDefaultTypeInternal _ScannerCrtlCfgResp_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ScannerCrtlCfgData::ScannerCrtlCfgData(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_._has_bits_)*/ {},
/*decltype(_impl_._cached_size_)*/ {},
/*decltype(_impl_.fixpointdata_)*/ {},
/*decltype(_impl_.powercompensate_)*/ {},
/*decltype(_impl_.tpowercompensate_)*/ {},
/*decltype(_impl_.cardname_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.cardip_)*/ {
&::_pbi::fixed_address_empty_string,
::_pbi::ConstantInitialized{},
},
/*decltype(_impl_.scanparamcfg_)*/ nullptr,
/*decltype(_impl_.hatchingparams_)*/ nullptr,
/*decltype(_impl_.borderparams_)*/ nullptr,
/*decltype(_impl_.supportparams_)*/ nullptr,
/*decltype(_impl_.correctparamcfg_)*/ nullptr,
/*decltype(_impl_.scantestcfg_)*/ nullptr,
/*decltype(_impl_.skywritingcfg_)*/ nullptr,
/*decltype(_impl_.seqno_)*/ 0,
/*decltype(_impl_.controlno_)*/ 0,
/*decltype(_impl_.serialno_)*/ 0,
/*decltype(_impl_.controltype_)*/ 0,
/*decltype(_impl_.isenable_)*/ false,
/*decltype(_impl_.hadassign_)*/ false,
/*decltype(_impl_.hadmatch_)*/ false,
} {}
struct ScannerCrtlCfgDataDefaultTypeInternal {
PROTOBUF_CONSTEXPR ScannerCrtlCfgDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ScannerCrtlCfgDataDefaultTypeInternal() {}
union {
ScannerCrtlCfgData _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScannerCrtlCfgDataDefaultTypeInternal _ScannerCrtlCfgData_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR FixPointData::FixPointData(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.id_)*/ 0,
/*decltype(_impl_.cno_)*/ 0,
/*decltype(_impl_.pointx_)*/ 0,
/*decltype(_impl_.pointy_)*/ 0,
/*decltype(_impl_.duration_)*/ 0u,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct FixPointDataDefaultTypeInternal {
PROTOBUF_CONSTEXPR FixPointDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~FixPointDataDefaultTypeInternal() {}
union {
FixPointData _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FixPointDataDefaultTypeInternal _FixPointData_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ScanParamCfg::ScanParamCfg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.edgelevel_)*/ 0,
/*decltype(_impl_.edgelevelmin_)*/ 0,
/*decltype(_impl_.edgelevelmax_)*/ 0,
/*decltype(_impl_.jumpdelay_)*/ 0u,
/*decltype(_impl_.jumpdelaymin_)*/ 0u,
/*decltype(_impl_.jumpdelaymax_)*/ 0u,
/*decltype(_impl_.scandelay_)*/ 0u,
/*decltype(_impl_.scandelaymin_)*/ 0u,
/*decltype(_impl_.scandelaymax_)*/ 0u,
/*decltype(_impl_.polygondelay_)*/ 0u,
/*decltype(_impl_.polygondelaymin_)*/ 0u,
/*decltype(_impl_.polygondelaymax_)*/ 0u,
/*decltype(_impl_.laseroffdelay_)*/ ::int64_t{0},
/*decltype(_impl_.laseroffdelaymin_)*/ ::int64_t{0},
/*decltype(_impl_.laseroffdelaymax_)*/ ::int64_t{0},
/*decltype(_impl_.laserondelay_)*/ ::int64_t{0},
/*decltype(_impl_.laserondelaymin_)*/ ::int64_t{0},
/*decltype(_impl_.laserondelaymax_)*/ ::int64_t{0},
/*decltype(_impl_.minjumpdelay_)*/ 0u,
/*decltype(_impl_.minjumpdelaymin_)*/ 0u,
/*decltype(_impl_.minjumpdelaymax_)*/ 0u,
/*decltype(_impl_.jumplengthlimit_)*/ 0u,
/*decltype(_impl_.jumplengthlimitmin_)*/ 0u,
/*decltype(_impl_.jumplengthlimitmax_)*/ 0u,
/*decltype(_impl_.jumpspeed_)*/ 0,
/*decltype(_impl_.jumpspeedmin_)*/ 0,
/*decltype(_impl_.jumpspeedmax_)*/ 0,
/*decltype(_impl_.markspeed_)*/ 0,
/*decltype(_impl_.markspeedmin_)*/ 0,
/*decltype(_impl_.markspeedmax_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ScanParamCfgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ScanParamCfgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ScanParamCfgDefaultTypeInternal() {}
union {
ScanParamCfg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScanParamCfgDefaultTypeInternal _ScanParamCfg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CorrectParamCfg::CorrectParamCfg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.xmeasuremin_)*/ 0,
/*decltype(_impl_.xmeasuremax_)*/ 0,
/*decltype(_impl_.ymeasuremin_)*/ 0,
/*decltype(_impl_.ymeasuremax_)*/ 0,
/*decltype(_impl_.xposfix_)*/ 0,
/*decltype(_impl_.yposfix_)*/ 0,
/*decltype(_impl_.scanangle_)*/ 0,
/*decltype(_impl_.scananglemin_)*/ 0,
/*decltype(_impl_.scananglemax_)*/ 0,
/*decltype(_impl_.fixangle_)*/ 0,
/*decltype(_impl_.fixanglemin_)*/ 0,
/*decltype(_impl_.fixanglemax_)*/ 0,
/*decltype(_impl_.xcorrect_)*/ 0,
/*decltype(_impl_.ycorrect_)*/ 0,
/*decltype(_impl_.xcorrectmin_)*/ 0,
/*decltype(_impl_.xcorrectmax_)*/ 0,
/*decltype(_impl_.ycorrectmin_)*/ 0,
/*decltype(_impl_.ycorrectmax_)*/ 0,
/*decltype(_impl_.realxoffset_)*/ 0,
/*decltype(_impl_.realyoffset_)*/ 0,
/*decltype(_impl_.factork_)*/ 0,
/*decltype(_impl_.defocusratio_)*/ 0,
/*decltype(_impl_.defocusratiomin_)*/ 0,
/*decltype(_impl_.defocusratiomax_)*/ 0,
/*decltype(_impl_.iscorrectfile3d_)*/ false,
/*decltype(_impl_.isdynamicfocus_)*/ false,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct CorrectParamCfgDefaultTypeInternal {
PROTOBUF_CONSTEXPR CorrectParamCfgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CorrectParamCfgDefaultTypeInternal() {}
union {
CorrectParamCfg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CorrectParamCfgDefaultTypeInternal _CorrectParamCfg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ScanTestCfg::ScanTestCfg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.debugshape_)*/ 0,
/*decltype(_impl_.shapesize_)*/ 0,
/*decltype(_impl_.shapesizemin_)*/ 0,
/*decltype(_impl_.shape_size_max_)*/ 0,
/*decltype(_impl_.laser_power_)*/ 0,
/*decltype(_impl_.laser_power_min_)*/ 0,
/*decltype(_impl_.defocus_)*/ 0,
/*decltype(_impl_.defocus_min_)*/ 0,
/*decltype(_impl_.defocus_max_)*/ 0,
/*decltype(_impl_.laser_power_max_)*/ 0,
/*decltype(_impl_.is_cycle_)*/ false,
/*decltype(_impl_.isautoheatingscanner_)*/ false,
/*decltype(_impl_.cross_x_)*/ 0,
/*decltype(_impl_.cross_y_)*/ 0,
/*decltype(_impl_.z_distance_)*/ 0,
/*decltype(_impl_.autoheatingscannerminutes_)*/ 0u,
/*decltype(_impl_.autoheatingscannersize_)*/ 0u,
/*decltype(_impl_.autoheatingscannerspeed_)*/ 0,
/*decltype(_impl_.mark_test_start_x_)*/ 0,
/*decltype(_impl_.mark_test_start_y_)*/ 0,
/*decltype(_impl_.mark_test_end_x_)*/ 0,
/*decltype(_impl_.mark_test_end_y_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct ScanTestCfgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ScanTestCfgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ScanTestCfgDefaultTypeInternal() {}
union {
ScanTestCfg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScanTestCfgDefaultTypeInternal _ScanTestCfg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR SkyWritingCfg::SkyWritingCfg(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.timelag_)*/ 0,
/*decltype(_impl_.timelagmin_)*/ 0,
/*decltype(_impl_.timelagmax_)*/ 0,
/*decltype(_impl_.isenable_)*/ false,
/*decltype(_impl_.nprev_)*/ 0u,
/*decltype(_impl_.laseronshift_)*/ ::int64_t{0},
/*decltype(_impl_.laseronshiftmin_)*/ ::int64_t{0},
/*decltype(_impl_.laseronshiftmax_)*/ ::int64_t{0},
/*decltype(_impl_.nprevmin_)*/ 0u,
/*decltype(_impl_.nprevmax_)*/ 0u,
/*decltype(_impl_.npost_)*/ 0u,
/*decltype(_impl_.npostmin_)*/ 0u,
/*decltype(_impl_.npostmax_)*/ 0u,
/*decltype(_impl_.mode_)*/ 0,
/*decltype(_impl_.limite_)*/ 0,
/*decltype(_impl_.limitemin_)*/ 0,
/*decltype(_impl_.limitemax_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct SkyWritingCfgDefaultTypeInternal {
PROTOBUF_CONSTEXPR SkyWritingCfgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~SkyWritingCfgDefaultTypeInternal() {}
union {
SkyWritingCfg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SkyWritingCfgDefaultTypeInternal _SkyWritingCfg_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PowerCompensate::PowerCompensate(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.cno_)*/ 0,
/*decltype(_impl_.percent_)*/ 0,
/*decltype(_impl_.value_)*/ 0,
/*decltype(_impl_.value_min_)*/ 0,
/*decltype(_impl_.value_max_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct PowerCompensateDefaultTypeInternal {
PROTOBUF_CONSTEXPR PowerCompensateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~PowerCompensateDefaultTypeInternal() {}
union {
PowerCompensate _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PowerCompensateDefaultTypeInternal _PowerCompensate_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR TimePowerCompensate::TimePowerCompensate(::_pbi::ConstantInitialized)
: _impl_{
/*decltype(_impl_.id_)*/ 0,
/*decltype(_impl_.cno_)*/ 0,
/*decltype(_impl_.startminute_)*/ 0u,
/*decltype(_impl_.endminute_)*/ 0u,
/*decltype(_impl_.compensate_)*/ 0,
/*decltype(_impl_._cached_size_)*/ {},
} {}
struct TimePowerCompensateDefaultTypeInternal {
PROTOBUF_CONSTEXPR TimePowerCompensateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~TimePowerCompensateDefaultTypeInternal() {}
union {
TimePowerCompensate _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimePowerCompensateDefaultTypeInternal _TimePowerCompensate_default_instance_;
} // namespace stream
static ::_pb::Metadata file_level_metadata_stream_2eproto[21];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[2];
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_stream_2eproto = nullptr;
const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.namekey_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.strvalue_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.valuetype_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.context_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.isenable_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.isalarm_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.isshow_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.startlayer_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.endlayer_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.powder_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.seqno_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controlno_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.serialno_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.controltype_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardname_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.cardip_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadassign_),
PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.hadmatch_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.datatype_),
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.namekey_),
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.strvalue_),
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.valuetype_),
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.handletype_),
PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.item_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.datatype_),
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.result_),
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.item_),
PROTOBUF_FIELD_OFFSET(::stream::ResponseAny, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::stream::ResponseAny, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ResponseAny, _impl_.data_),
0,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _impl_.zcooldinate_),
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _impl_.powder_),
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _impl_.layerthickness_),
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _impl_.layerdatablock_),
PROTOBUF_FIELD_OFFSET(::stream::LayerData, _impl_.result_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.elementid_),
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.elementparamid_),
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.blocktype_),
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.vecblocks_),
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.chainblocks_),
PROTOBUF_FIELD_OFFSET(::stream::LayerDataBlock, _impl_.order_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::VectorDataBlock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::VectorDataBlock, _impl_.startx_),
PROTOBUF_FIELD_OFFSET(::stream::VectorDataBlock, _impl_.starty_),
PROTOBUF_FIELD_OFFSET(::stream::VectorDataBlock, _impl_.endx_),
PROTOBUF_FIELD_OFFSET(::stream::VectorDataBlock, _impl_.endy_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ChainDataBlock, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ChainDataBlock, _impl_.dotnum_),
PROTOBUF_FIELD_OFFSET(::stream::ChainDataBlock, _impl_.pointvec_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::Point, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::Point, _impl_.xpos_),
PROTOBUF_FIELD_OFFSET(::stream::Point, _impl_.ypos_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::RegResponce, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::RegResponce, _impl_.data_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.levelimage_),
PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.width_),
PROTOBUF_FIELD_OFFSET(::stream::ImgInfoResponce, _impl_.height_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ComResponce, _impl_.data_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgResp, _impl_.scannercfg_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.seqno_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.fixpointdata_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.scanparamcfg_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.hatchingparams_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.borderparams_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.supportparams_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.correctparamcfg_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.scantestcfg_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.skywritingcfg_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.powercompensate_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.tpowercompensate_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.controlno_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.serialno_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.controltype_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.cardname_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.cardip_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.isenable_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.hadassign_),
PROTOBUF_FIELD_OFFSET(::stream::ScannerCrtlCfgData, _impl_.hadmatch_),
~0u,
~0u,
0,
1,
2,
3,
4,
5,
6,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _impl_.cno_),
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _impl_.pointx_),
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _impl_.pointy_),
PROTOBUF_FIELD_OFFSET(::stream::FixPointData, _impl_.duration_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.edgelevel_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.edgelevelmin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.edgelevelmax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpdelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpdelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpdelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.scandelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.scandelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.scandelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.polygondelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.polygondelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.polygondelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laseroffdelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laseroffdelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laseroffdelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laserondelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laserondelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.laserondelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.minjumpdelay_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.minjumpdelaymin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.minjumpdelaymax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumplengthlimit_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumplengthlimitmin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumplengthlimitmax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpspeed_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpspeedmin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.jumpspeedmax_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.markspeed_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.markspeedmin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanParamCfg, _impl_.markspeedmax_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xmeasuremin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xmeasuremax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.ymeasuremin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.ymeasuremax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xposfix_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.yposfix_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.scanangle_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.scananglemin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.scananglemax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.fixangle_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.fixanglemin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.fixanglemax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xcorrect_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.ycorrect_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xcorrectmin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.xcorrectmax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.ycorrectmin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.ycorrectmax_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.realxoffset_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.realyoffset_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.factork_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.iscorrectfile3d_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.isdynamicfocus_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.defocusratio_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.defocusratiomin_),
PROTOBUF_FIELD_OFFSET(::stream::CorrectParamCfg, _impl_.defocusratiomax_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.debugshape_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.shapesize_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.shapesizemin_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.shape_size_max_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.laser_power_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.laser_power_min_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.laser_power_max_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.defocus_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.defocus_min_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.defocus_max_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.is_cycle_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.cross_x_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.cross_y_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.z_distance_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.isautoheatingscanner_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.autoheatingscannerminutes_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.autoheatingscannersize_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.autoheatingscannerspeed_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.mark_test_start_x_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.mark_test_start_y_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.mark_test_end_x_),
PROTOBUF_FIELD_OFFSET(::stream::ScanTestCfg, _impl_.mark_test_end_y_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.isenable_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.timelag_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.timelagmin_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.timelagmax_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.laseronshift_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.laseronshiftmin_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.laseronshiftmax_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.nprev_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.nprevmin_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.nprevmax_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.npost_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.npostmin_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.npostmax_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.mode_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.limite_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.limitemin_),
PROTOBUF_FIELD_OFFSET(::stream::SkyWritingCfg, _impl_.limitemax_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _impl_.cno_),
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _impl_.percent_),
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _impl_.value_),
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _impl_.value_min_),
PROTOBUF_FIELD_OFFSET(::stream::PowerCompensate, _impl_.value_max_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _impl_.cno_),
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _impl_.startminute_),
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _impl_.endminute_),
PROTOBUF_FIELD_OFFSET(::stream::TimePowerCompensate, _impl_.compensate_),
};
static const ::_pbi::MigrationSchema
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::stream::ParamInfo)},
{26, -1, -1, sizeof(::stream::RequestInfo)},
{40, -1, -1, sizeof(::stream::ResponseInfo)},
{51, 60, -1, sizeof(::stream::ResponseAny)},
{61, -1, -1, sizeof(::stream::LayerData)},
{74, -1, -1, sizeof(::stream::LayerDataBlock)},
{88, -1, -1, sizeof(::stream::VectorDataBlock)},
{100, -1, -1, sizeof(::stream::ChainDataBlock)},
{110, -1, -1, sizeof(::stream::Point)},
{120, -1, -1, sizeof(::stream::RegResponce)},
{129, -1, -1, sizeof(::stream::ImgInfoResponce)},
{140, -1, -1, sizeof(::stream::ComResponce)},
{149, -1, -1, sizeof(::stream::ScannerCrtlCfgResp)},
{158, 185, -1, sizeof(::stream::ScannerCrtlCfgData)},
{204, -1, -1, sizeof(::stream::FixPointData)},
{217, -1, -1, sizeof(::stream::ScanParamCfg)},
{255, -1, -1, sizeof(::stream::CorrectParamCfg)},
{289, -1, -1, sizeof(::stream::ScanTestCfg)},
{319, -1, -1, sizeof(::stream::SkyWritingCfg)},
{344, -1, -1, sizeof(::stream::PowerCompensate)},
{357, -1, -1, sizeof(::stream::TimePowerCompensate)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::stream::_ParamInfo_default_instance_._instance,
&::stream::_RequestInfo_default_instance_._instance,
&::stream::_ResponseInfo_default_instance_._instance,
&::stream::_ResponseAny_default_instance_._instance,
&::stream::_LayerData_default_instance_._instance,
&::stream::_LayerDataBlock_default_instance_._instance,
&::stream::_VectorDataBlock_default_instance_._instance,
&::stream::_ChainDataBlock_default_instance_._instance,
&::stream::_Point_default_instance_._instance,
&::stream::_RegResponce_default_instance_._instance,
&::stream::_ImgInfoResponce_default_instance_._instance,
&::stream::_ComResponce_default_instance_._instance,
&::stream::_ScannerCrtlCfgResp_default_instance_._instance,
&::stream::_ScannerCrtlCfgData_default_instance_._instance,
&::stream::_FixPointData_default_instance_._instance,
&::stream::_ScanParamCfg_default_instance_._instance,
&::stream::_CorrectParamCfg_default_instance_._instance,
&::stream::_ScanTestCfg_default_instance_._instance,
&::stream::_SkyWritingCfg_default_instance_._instance,
&::stream::_PowerCompensate_default_instance_._instance,
&::stream::_TimePowerCompensate_default_instance_._instance,
};
const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
"\n\014stream.proto\022\006stream\032\031google/protobuf/"
"any.proto\"\331\002\n\tParamInfo\022\017\n\007nameKey\030\001 \001(\014"
"\022\020\n\010strValue\030\002 \001(\014\022\037\n\tvalueType\030\003 \001(\0162\014."
"stream.TYPE\022\017\n\007context\030\004 \001(\014\022\020\n\010isEnable"
"\030\005 \001(\010\022\017\n\007isAlarm\030\006 \001(\010\022\016\n\006isShow\030\007 \001(\010\022"
"\022\n\nstartLayer\030\010 \001(\005\022\020\n\010endLayer\030\t \001(\005\022\016\n"
"\006powder\030\n \001(\002\022\r\n\005seqNo\030\013 \001(\005\022\021\n\tcontrolN"
"o\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013controlType"
"\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardIP\030\020 \001(\014"
"\022\021\n\thadAssign\030\021 \001(\010\022\020\n\010hadMatch\030\022 \001(\010\"\254\001"
"\n\013RequestInfo\022\020\n\010dataType\030\001 \001(\r\022\017\n\007nameK"
"ey\030\002 \001(\014\022\020\n\010strValue\030\003 \001(\014\022\037\n\tvalueType\030"
"\004 \001(\0162\014.stream.TYPE\022&\n\nhandleType\030\005 \001(\0162"
"\022.stream.DATAHANDLE\022\037\n\004item\030\006 \003(\0132\021.stre"
"am.ParamInfo\"Q\n\014ResponseInfo\022\020\n\010dataType"
"\030\001 \001(\r\022\016\n\006result\030\002 \001(\010\022\037\n\004item\030\003 \003(\0132\021.s"
"tream.ParamInfo\"1\n\013ResponseAny\022\"\n\004data\030\001"
" \001(\0132\024.google.protobuf.Any\"\210\001\n\tLayerData"
"\022\023\n\013zCooldinate\030\001 \001(\002\022\016\n\006powder\030\002 \001(\002\022\026\n"
"\016layerThickness\030\003 \001(\002\022.\n\016layerDataBlock\030"
"\004 \003(\0132\026.stream.LayerDataBlock\022\016\n\006result\030"
"\005 \001(\010\"\266\001\n\016LayerDataBlock\022\021\n\telementId\030\001 "
"\001(\005\022\026\n\016elementParamId\030\002 \001(\005\022\021\n\tblockType"
"\030\003 \001(\r\022*\n\tvecBlocks\030\004 \003(\0132\027.stream.Vecto"
"rDataBlock\022+\n\013chainBlocks\030\005 \003(\0132\026.stream"
".ChainDataBlock\022\r\n\005order\030\006 \001(\r\"M\n\017Vector"
"DataBlock\022\016\n\006startX\030\001 \001(\002\022\016\n\006startY\030\002 \001("
"\002\022\014\n\004endX\030\003 \001(\002\022\014\n\004endY\030\004 \001(\002\"A\n\016ChainDa"
"taBlock\022\016\n\006dotNum\030\001 \001(\r\022\037\n\010pointVec\030\002 \003("
"\0132\r.stream.Point\"#\n\005Point\022\014\n\004xPos\030\001 \001(\002\022"
"\014\n\004yPos\030\002 \001(\002\"\033\n\013RegResponce\022\014\n\004data\030\001 \001"
"(\005\"D\n\017ImgInfoResponce\022\022\n\nlevelImage\030\001 \001("
"\r\022\r\n\005width\030\002 \001(\005\022\016\n\006height\030\003 \001(\005\"\033\n\013ComR"
"esponce\022\014\n\004data\030\001 \001(\014\"D\n\022ScannerCrtlCfgR"
"esp\022.\n\nscannerCfg\030\001 \003(\0132\032.stream.Scanner"
"CrtlCfgData\"\210\005\n\022ScannerCrtlCfgData\022\r\n\005se"
"qNo\030\001 \001(\005\022*\n\014fixPointData\030\002 \003(\0132\024.stream"
".FixPointData\022*\n\014scanParamCfg\030\003 \001(\0132\024.st"
"ream.ScanParamCfg\022,\n\016hatchingParams\030\004 \001("
"\0132\024.stream.ScanParamCfg\022*\n\014borderParams\030"
"\005 \001(\0132\024.stream.ScanParamCfg\022+\n\rsupportPa"
"rams\030\006 \001(\0132\024.stream.ScanParamCfg\0220\n\017corr"
"ectParamCfg\030\007 \001(\0132\027.stream.CorrectParamC"
"fg\022(\n\013scanTestCfg\030\010 \001(\0132\023.stream.ScanTes"
"tCfg\022,\n\rskyWritingCfg\030\t \001(\0132\025.stream.Sky"
"WritingCfg\0220\n\017powerCompensate\030\n \003(\0132\027.st"
"ream.PowerCompensate\0225\n\020tPowerCompensate"
"\030\013 \003(\0132\033.stream.TimePowerCompensate\022\021\n\tc"
"ontrolNo\030\014 \001(\005\022\020\n\010serialNo\030\r \001(\005\022\023\n\013cont"
"rolType\030\016 \001(\005\022\020\n\010cardName\030\017 \001(\014\022\016\n\006cardI"
"P\030\020 \001(\014\022\020\n\010isEnable\030\021 \001(\010\022\021\n\thadAssign\030\022"
" \001(\010\022\020\n\010hadMatch\030\023 \001(\010\"Y\n\014FixPointData\022\n"
"\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005\022\016\n\006pointX\030\003 \001(\002\022"
"\016\n\006pointY\030\004 \001(\002\022\020\n\010duration\030\005 \001(\r\"\275\005\n\014Sc"
"anParamCfg\022\021\n\tedgeLevel\030\001 \001(\005\022\024\n\014edgeLev"
"elMin\030\002 \001(\005\022\024\n\014edgeLevelMax\030\003 \001(\005\022\021\n\tjum"
"pDelay\030\004 \001(\r\022\024\n\014jumpDelayMin\030\005 \001(\r\022\024\n\014ju"
"mpDelayMax\030\006 \001(\r\022\021\n\tscanDelay\030\007 \001(\r\022\024\n\014s"
"canDelayMin\030\010 \001(\r\022\024\n\014scanDelayMax\030\t \001(\r\022"
"\024\n\014polygonDelay\030\n \001(\r\022\027\n\017polygonDelayMin"
"\030\013 \001(\r\022\027\n\017polygonDelayMax\030\014 \001(\r\022\025\n\rlaser"
"offDelay\030\r \001(\003\022\030\n\020laseroffDelayMin\030\016 \001(\003"
"\022\030\n\020laseroffDelayMax\030\017 \001(\003\022\024\n\014laseronDel"
"ay\030\020 \001(\003\022\027\n\017laseronDelayMin\030\021 \001(\003\022\027\n\017las"
"eronDelayMax\030\022 \001(\003\022\024\n\014minJumpDelay\030\023 \001(\r"
"\022\027\n\017minJumpDelayMin\030\024 \001(\r\022\027\n\017minJumpDela"
"yMax\030\025 \001(\r\022\027\n\017jumpLengthLimit\030\026 \001(\r\022\032\n\022j"
"umpLengthLimitMin\030\027 \001(\r\022\032\n\022jumpLengthLim"
"itMax\030\030 \001(\r\022\021\n\tjumpSpeed\030\031 \001(\001\022\024\n\014jumpSp"
"eedMin\030\032 \001(\001\022\024\n\014jumpSpeedMax\030\033 \001(\001\022\021\n\tma"
"rkSpeed\030\034 \001(\001\022\024\n\014markSpeedMin\030\035 \001(\001\022\024\n\014m"
"arkSpeedMax\030\036 \001(\001\"\256\004\n\017CorrectParamCfg\022\023\n"
"\013xmeasureMin\030\001 \001(\001\022\023\n\013xmeasureMax\030\002 \001(\001\022"
"\023\n\013ymeasureMin\030\003 \001(\001\022\023\n\013ymeasureMax\030\004 \001("
"\001\022\017\n\007xposfix\030\005 \001(\001\022\017\n\007yposfix\030\006 \001(\001\022\021\n\ts"
"canAngle\030\007 \001(\001\022\024\n\014scanAngleMin\030\010 \001(\001\022\024\n\014"
"scanAngleMax\030\t \001(\001\022\020\n\010fixAngle\030\n \001(\001\022\023\n\013"
"fixAngleMin\030\013 \001(\001\022\023\n\013fixAngleMax\030\014 \001(\001\022\020"
"\n\010xcorrect\030\r \001(\001\022\020\n\010ycorrect\030\016 \001(\001\022\023\n\013xc"
"orrectMin\030\017 \001(\001\022\023\n\013xcorrectMax\030\020 \001(\001\022\023\n\013"
"ycorrectMin\030\021 \001(\001\022\023\n\013ycorrectMax\030\022 \001(\001\022\023"
"\n\013realXOffset\030\023 \001(\001\022\023\n\013realYOffset\030\024 \001(\001"
"\022\017\n\007factorK\030\025 \001(\001\022\027\n\017isCorrectFile3D\030\026 \001"
"(\010\022\026\n\016isDynamicFocus\030\027 \001(\010\022\024\n\014defocusRat"
"io\030\030 \001(\001\022\027\n\017defocusRatioMin\030\031 \001(\001\022\027\n\017def"
"ocusRatioMax\030\032 \001(\001\"\226\004\n\013ScanTestCfg\022\022\n\nde"
"bugShape\030\001 \001(\005\022\021\n\tshapeSize\030\002 \001(\005\022\024\n\014sha"
"peSizeMin\030\003 \001(\005\022\026\n\016shape_size_max\030\004 \001(\005\022"
"\023\n\013laser_power\030\005 \001(\005\022\027\n\017laser_power_min\030"
"\006 \001(\005\022\027\n\017laser_power_max\030\007 \001(\005\022\017\n\007defocu"
"s\030\010 \001(\001\022\023\n\013defocus_min\030\t \001(\001\022\023\n\013defocus_"
"max\030\n \001(\001\022\020\n\010is_cycle\030\013 \001(\010\022\017\n\007cross_x\030\014"
" \001(\001\022\017\n\007cross_y\030\r \001(\001\022\022\n\nz_distance\030\016 \001("
"\001\022\034\n\024isAutoHeatingScanner\030\017 \001(\010\022!\n\031autoH"
"eatingScannerMinutes\030\020 \001(\r\022\036\n\026autoHeatin"
"gScannerSize\030\021 \001(\r\022\037\n\027autoHeatingScanner"
"Speed\030\022 \001(\001\022\031\n\021mark_test_start_x\030\023 \001(\001\022\031"
"\n\021mark_test_start_y\030\024 \001(\001\022\027\n\017mark_test_e"
"nd_x\030\025 \001(\001\022\027\n\017mark_test_end_y\030\026 \001(\001\"\314\002\n\r"
"SkyWritingCfg\022\020\n\010isEnable\030\001 \001(\010\022\017\n\007timel"
"ag\030\002 \001(\001\022\022\n\ntimelagMin\030\003 \001(\001\022\022\n\ntimelagM"
"ax\030\004 \001(\001\022\024\n\014laserOnShift\030\005 \001(\003\022\027\n\017laserO"
"nShiftMin\030\006 \001(\003\022\027\n\017laserOnShiftMax\030\007 \001(\003"
"\022\r\n\005nprev\030\010 \001(\r\022\020\n\010nprevMin\030\t \001(\r\022\020\n\010npr"
"evMax\030\n \001(\r\022\r\n\005npost\030\013 \001(\r\022\020\n\010npostMin\030\014"
" \001(\r\022\020\n\010npostMax\030\r \001(\r\022\014\n\004mode\030\016 \001(\005\022\016\n\006"
"limite\030\017 \001(\001\022\021\n\tlimiteMin\030\020 \001(\001\022\021\n\tlimit"
"eMax\030\021 \001(\001\"d\n\017PowerCompensate\022\013\n\003cno\030\001 \001"
"(\005\022\017\n\007percent\030\002 \001(\005\022\r\n\005value\030\003 \001(\002\022\021\n\tva"
"lue_min\030\004 \001(\002\022\021\n\tvalue_max\030\005 \001(\002\"j\n\023Time"
"PowerCompensate\022\n\n\002id\030\001 \001(\005\022\013\n\003cno\030\002 \001(\005"
"\022\023\n\013startMinute\030\003 \001(\r\022\021\n\tendMinute\030\004 \001(\r"
"\022\022\n\ncompensate\030\005 \001(\002*\223\001\n\004TYPE\022\t\n\005iBOOL\020\000"
"\022\n\n\006iSHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005i"
"UINT\020\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING\020\006\022\t\n\005iCHAR"
"\020\007\022\n\n\006iUCHAR\020\010\022\t\n\005iWORD\020\t\022\013\n\007iDOUBLE\020\n\022\n"
"\n\006iTIMET\020\013**\n\nDATAHANDLE\022\n\n\006UPDATE\020\000\022\007\n\003"
"ADD\020\001\022\007\n\003DEL\020\0022\372\001\n\006Stream\0224\n\006Simple\022\023.st"
"ream.RequestInfo\032\023.stream.ResponseAny\"\000\022"
"=\n\014ServerStream\022\023.stream.RequestInfo\032\024.s"
"tream.ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023"
".stream.RequestInfo\032\024.stream.ResponseInf"
"o\"\000(\001\022<\n\tAllStream\022\023.stream.RequestInfo\032"
"\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.e"
"xamples.streamB\013StreamProtoP\001\242\002\002STb\006prot"
"o3"
};
static const ::_pbi::DescriptorTable* const descriptor_table_stream_2eproto_deps[1] =
{
&::descriptor_table_google_2fprotobuf_2fany_2eproto,
};
static ::absl::once_flag descriptor_table_stream_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = {
false,
false,
5002,
descriptor_table_protodef_stream_2eproto,
"stream.proto",
&descriptor_table_stream_2eproto_once,
descriptor_table_stream_2eproto_deps,
1,
21,
schemas,
file_default_instances,
TableStruct_stream_2eproto::offsets,
file_level_metadata_stream_2eproto,
file_level_enum_descriptors_stream_2eproto,
file_level_service_descriptors_stream_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_stream_2eproto_getter() {
return &descriptor_table_stream_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stream_2eproto(&descriptor_table_stream_2eproto);
namespace stream {
const ::google::protobuf::EnumDescriptor* TYPE_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
return file_level_enum_descriptors_stream_2eproto[0];
}
bool TYPE_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* DATAHANDLE_descriptor() {
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
return file_level_enum_descriptors_stream_2eproto[1];
}
bool DATAHANDLE_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
// ===================================================================
class ParamInfo::_Internal {
public:
};
ParamInfo::ParamInfo(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ParamInfo)
}
ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() {
ParamInfo* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.namekey_){},
decltype(_impl_.strvalue_){},
decltype(_impl_.context_){},
decltype(_impl_.cardname_){},
decltype(_impl_.cardip_){},
decltype(_impl_.valuetype_){},
decltype(_impl_.startlayer_){},
decltype(_impl_.isenable_){},
decltype(_impl_.isalarm_){},
decltype(_impl_.isshow_){},
decltype(_impl_.hadassign_){},
decltype(_impl_.endlayer_){},
decltype(_impl_.powder_){},
decltype(_impl_.seqno_){},
decltype(_impl_.controlno_){},
decltype(_impl_.serialno_){},
decltype(_impl_.controltype_){},
decltype(_impl_.hadmatch_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.namekey_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.namekey_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_namekey().empty()) {
_this->_impl_.namekey_.Set(from._internal_namekey(), _this->GetArenaForAllocation());
}
_impl_.strvalue_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_strvalue().empty()) {
_this->_impl_.strvalue_.Set(from._internal_strvalue(), _this->GetArenaForAllocation());
}
_impl_.context_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.context_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_context().empty()) {
_this->_impl_.context_.Set(from._internal_context(), _this->GetArenaForAllocation());
}
_impl_.cardname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_cardname().empty()) {
_this->_impl_.cardname_.Set(from._internal_cardname(), _this->GetArenaForAllocation());
}
_impl_.cardip_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_cardip().empty()) {
_this->_impl_.cardip_.Set(from._internal_cardip(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.valuetype_, &from._impl_.valuetype_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.hadmatch_) -
reinterpret_cast<char*>(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_));
// @@protoc_insertion_point(copy_constructor:stream.ParamInfo)
}
inline void ParamInfo::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.namekey_){},
decltype(_impl_.strvalue_){},
decltype(_impl_.context_){},
decltype(_impl_.cardname_){},
decltype(_impl_.cardip_){},
decltype(_impl_.valuetype_){0},
decltype(_impl_.startlayer_){0},
decltype(_impl_.isenable_){false},
decltype(_impl_.isalarm_){false},
decltype(_impl_.isshow_){false},
decltype(_impl_.hadassign_){false},
decltype(_impl_.endlayer_){0},
decltype(_impl_.powder_){0},
decltype(_impl_.seqno_){0},
decltype(_impl_.controlno_){0},
decltype(_impl_.serialno_){0},
decltype(_impl_.controltype_){0},
decltype(_impl_.hadmatch_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.namekey_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.namekey_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.context_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.context_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ParamInfo::~ParamInfo() {
// @@protoc_insertion_point(destructor:stream.ParamInfo)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ParamInfo::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.namekey_.Destroy();
_impl_.strvalue_.Destroy();
_impl_.context_.Destroy();
_impl_.cardname_.Destroy();
_impl_.cardip_.Destroy();
}
void ParamInfo::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ParamInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ParamInfo)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.namekey_.ClearToEmpty();
_impl_.strvalue_.ClearToEmpty();
_impl_.context_.ClearToEmpty();
_impl_.cardname_.ClearToEmpty();
_impl_.cardip_.ClearToEmpty();
::memset(&_impl_.valuetype_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.hadmatch_) -
reinterpret_cast<char*>(&_impl_.valuetype_)) + sizeof(_impl_.hadmatch_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ParamInfo::_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, 18, 0, 0, 2> ParamInfo::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
18, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294705152, // skipmap
offsetof(decltype(_table_), field_entries),
18, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_ParamInfo_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// bytes nameKey = 1;
{::_pbi::TcParser::FastBS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.namekey_)}},
// bytes strValue = 2;
{::_pbi::TcParser::FastBS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.strvalue_)}},
// .stream.TYPE valueType = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.valuetype_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_)}},
// bytes context = 4;
{::_pbi::TcParser::FastBS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.context_)}},
// bool isEnable = 5;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ParamInfo, _impl_.isenable_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isenable_)}},
// bool isAlarm = 6;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ParamInfo, _impl_.isalarm_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isalarm_)}},
// bool isShow = 7;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ParamInfo, _impl_.isshow_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isshow_)}},
// int32 startLayer = 8;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.startlayer_), 63>(),
{64, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.startlayer_)}},
// int32 endLayer = 9;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.endlayer_), 63>(),
{72, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.endlayer_)}},
// float powder = 10;
{::_pbi::TcParser::FastF32S1,
{85, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_)}},
// int32 seqNo = 11;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.seqno_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_)}},
// int32 controlNo = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controlno_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_)}},
// int32 serialNo = 13;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.serialno_), 63>(),
{104, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_)}},
// int32 controlType = 14;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.controltype_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_)}},
// bytes cardName = 15;
{::_pbi::TcParser::FastBS1,
{122, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_)}},
// bytes cardIP = 16;
{::_pbi::TcParser::FastBS2,
{386, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_)}},
// bool hadAssign = 17;
{::_pbi::TcParser::FastV8S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_)}},
// bool hadMatch = 18;
{::_pbi::TcParser::FastV8S2,
{400, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// bytes nameKey = 1;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.namekey_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes strValue = 2;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.strvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// .stream.TYPE valueType = 3;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// bytes context = 4;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.context_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bool isEnable = 5;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isenable_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool isAlarm = 6;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isalarm_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool isShow = 7;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.isshow_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// int32 startLayer = 8;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.startlayer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 endLayer = 9;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.endlayer_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// float powder = 10;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.powder_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// int32 seqNo = 11;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.seqno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 controlNo = 12;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controlno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 serialNo = 13;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.serialno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 controlType = 14;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.controltype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// bytes cardName = 15;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardname_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes cardIP = 16;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.cardip_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bool hadAssign = 17;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadassign_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool hadMatch = 18;
{PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ParamInfo::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ParamInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// bytes nameKey = 1;
if (!this->_internal_namekey().empty()) {
const std::string& _s = this->_internal_namekey();
target = stream->WriteBytesMaybeAliased(1, _s, target);
}
// bytes strValue = 2;
if (!this->_internal_strvalue().empty()) {
const std::string& _s = this->_internal_strvalue();
target = stream->WriteBytesMaybeAliased(2, _s, target);
}
// .stream.TYPE valueType = 3;
if (this->_internal_valuetype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
3, this->_internal_valuetype(), target);
}
// bytes context = 4;
if (!this->_internal_context().empty()) {
const std::string& _s = this->_internal_context();
target = stream->WriteBytesMaybeAliased(4, _s, target);
}
// bool isEnable = 5;
if (this->_internal_isenable() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this->_internal_isenable(), target);
}
// bool isAlarm = 6;
if (this->_internal_isalarm() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
6, this->_internal_isalarm(), target);
}
// bool isShow = 7;
if (this->_internal_isshow() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
7, this->_internal_isshow(), target);
}
// int32 startLayer = 8;
if (this->_internal_startlayer() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<8>(
stream, this->_internal_startlayer(), target);
}
// int32 endLayer = 9;
if (this->_internal_endlayer() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<9>(
stream, this->_internal_endlayer(), target);
}
// float powder = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = this->_internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
10, this->_internal_powder(), target);
}
// int32 seqNo = 11;
if (this->_internal_seqno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<11>(
stream, this->_internal_seqno(), target);
}
// int32 controlNo = 12;
if (this->_internal_controlno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<12>(
stream, this->_internal_controlno(), target);
}
// int32 serialNo = 13;
if (this->_internal_serialno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<13>(
stream, this->_internal_serialno(), target);
}
// int32 controlType = 14;
if (this->_internal_controltype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<14>(
stream, this->_internal_controltype(), target);
}
// bytes cardName = 15;
if (!this->_internal_cardname().empty()) {
const std::string& _s = this->_internal_cardname();
target = stream->WriteBytesMaybeAliased(15, _s, target);
}
// bytes cardIP = 16;
if (!this->_internal_cardip().empty()) {
const std::string& _s = this->_internal_cardip();
target = stream->WriteBytesMaybeAliased(16, _s, target);
}
// bool hadAssign = 17;
if (this->_internal_hadassign() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
17, this->_internal_hadassign(), target);
}
// bool hadMatch = 18;
if (this->_internal_hadmatch() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
18, this->_internal_hadmatch(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ParamInfo)
return target;
}
::size_t ParamInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ParamInfo)
::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 nameKey = 1;
if (!this->_internal_namekey().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_namekey());
}
// bytes strValue = 2;
if (!this->_internal_strvalue().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_strvalue());
}
// bytes context = 4;
if (!this->_internal_context().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_context());
}
// bytes cardName = 15;
if (!this->_internal_cardname().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_cardname());
}
// bytes cardIP = 16;
if (!this->_internal_cardip().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_cardip());
}
// .stream.TYPE valueType = 3;
if (this->_internal_valuetype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype());
}
// int32 startLayer = 8;
if (this->_internal_startlayer() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_startlayer());
}
// bool isEnable = 5;
if (this->_internal_isenable() != 0) {
total_size += 2;
}
// bool isAlarm = 6;
if (this->_internal_isalarm() != 0) {
total_size += 2;
}
// bool isShow = 7;
if (this->_internal_isshow() != 0) {
total_size += 2;
}
// bool hadAssign = 17;
if (this->_internal_hadassign() != 0) {
total_size += 3;
}
// int32 endLayer = 9;
if (this->_internal_endlayer() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_endlayer());
}
// float powder = 10;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = this->_internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
total_size += 5;
}
// int32 seqNo = 11;
if (this->_internal_seqno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_seqno());
}
// int32 controlNo = 12;
if (this->_internal_controlno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_controlno());
}
// int32 serialNo = 13;
if (this->_internal_serialno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_serialno());
}
// int32 controlType = 14;
if (this->_internal_controltype() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_controltype());
}
// bool hadMatch = 18;
if (this->_internal_hadmatch() != 0) {
total_size += 3;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ParamInfo::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ParamInfo::MergeImpl
};
const ::google::protobuf::Message::ClassData*ParamInfo::GetClassData() const { return &_class_data_; }
void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ParamInfo*>(&to_msg);
auto& from = static_cast<const ParamInfo&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ParamInfo)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_namekey().empty()) {
_this->_internal_set_namekey(from._internal_namekey());
}
if (!from._internal_strvalue().empty()) {
_this->_internal_set_strvalue(from._internal_strvalue());
}
if (!from._internal_context().empty()) {
_this->_internal_set_context(from._internal_context());
}
if (!from._internal_cardname().empty()) {
_this->_internal_set_cardname(from._internal_cardname());
}
if (!from._internal_cardip().empty()) {
_this->_internal_set_cardip(from._internal_cardip());
}
if (from._internal_valuetype() != 0) {
_this->_internal_set_valuetype(from._internal_valuetype());
}
if (from._internal_startlayer() != 0) {
_this->_internal_set_startlayer(from._internal_startlayer());
}
if (from._internal_isenable() != 0) {
_this->_internal_set_isenable(from._internal_isenable());
}
if (from._internal_isalarm() != 0) {
_this->_internal_set_isalarm(from._internal_isalarm());
}
if (from._internal_isshow() != 0) {
_this->_internal_set_isshow(from._internal_isshow());
}
if (from._internal_hadassign() != 0) {
_this->_internal_set_hadassign(from._internal_hadassign());
}
if (from._internal_endlayer() != 0) {
_this->_internal_set_endlayer(from._internal_endlayer());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = from._internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
_this->_internal_set_powder(from._internal_powder());
}
if (from._internal_seqno() != 0) {
_this->_internal_set_seqno(from._internal_seqno());
}
if (from._internal_controlno() != 0) {
_this->_internal_set_controlno(from._internal_controlno());
}
if (from._internal_serialno() != 0) {
_this->_internal_set_serialno(from._internal_serialno());
}
if (from._internal_controltype() != 0) {
_this->_internal_set_controltype(from._internal_controltype());
}
if (from._internal_hadmatch() != 0) {
_this->_internal_set_hadmatch(from._internal_hadmatch());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ParamInfo::CopyFrom(const ParamInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ParamInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ParamInfo::IsInitialized() const {
return true;
}
void ParamInfo::InternalSwap(ParamInfo* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namekey_, lhs_arena,
&other->_impl_.namekey_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.strvalue_, lhs_arena,
&other->_impl_.strvalue_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.context_, lhs_arena,
&other->_impl_.context_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardname_, lhs_arena,
&other->_impl_.cardname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardip_, lhs_arena,
&other->_impl_.cardip_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.hadmatch_)
+ sizeof(ParamInfo::_impl_.hadmatch_)
- PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_)>(
reinterpret_cast<char*>(&_impl_.valuetype_),
reinterpret_cast<char*>(&other->_impl_.valuetype_));
}
::google::protobuf::Metadata ParamInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[0]);
}
// ===================================================================
class RequestInfo::_Internal {
public:
};
RequestInfo::RequestInfo(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.RequestInfo)
}
RequestInfo::RequestInfo(const RequestInfo& from) : ::google::protobuf::Message() {
RequestInfo* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.item_){from._impl_.item_},
decltype(_impl_.namekey_){},
decltype(_impl_.strvalue_){},
decltype(_impl_.datatype_){},
decltype(_impl_.valuetype_){},
decltype(_impl_.handletype_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.namekey_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.namekey_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_namekey().empty()) {
_this->_impl_.namekey_.Set(from._internal_namekey(), _this->GetArenaForAllocation());
}
_impl_.strvalue_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_strvalue().empty()) {
_this->_impl_.strvalue_.Set(from._internal_strvalue(), _this->GetArenaForAllocation());
}
::memcpy(&_impl_.datatype_, &from._impl_.datatype_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.handletype_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.handletype_));
// @@protoc_insertion_point(copy_constructor:stream.RequestInfo)
}
inline void RequestInfo::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.item_){arena},
decltype(_impl_.namekey_){},
decltype(_impl_.strvalue_){},
decltype(_impl_.datatype_){0u},
decltype(_impl_.valuetype_){0},
decltype(_impl_.handletype_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.namekey_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.namekey_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.strvalue_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
RequestInfo::~RequestInfo() {
// @@protoc_insertion_point(destructor:stream.RequestInfo)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RequestInfo::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.item_.~RepeatedPtrField();
_impl_.namekey_.Destroy();
_impl_.strvalue_.Destroy();
}
void RequestInfo::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RequestInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.RequestInfo)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_item()->Clear();
_impl_.namekey_.ClearToEmpty();
_impl_.strvalue_.ClearToEmpty();
::memset(&_impl_.datatype_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.handletype_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.handletype_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RequestInfo::_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, 0, 2> RequestInfo::_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),
&_RequestInfo_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// uint32 dataType = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.datatype_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_)}},
// bytes nameKey = 2;
{::_pbi::TcParser::FastBS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.namekey_)}},
// bytes strValue = 3;
{::_pbi::TcParser::FastBS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.strvalue_)}},
// .stream.TYPE valueType = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.valuetype_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_)}},
// .stream.DATAHANDLE handleType = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.handletype_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.handletype_)}},
// repeated .stream.ParamInfo item = 6;
{::_pbi::TcParser::FastMtR1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.item_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// uint32 dataType = 1;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// bytes nameKey = 2;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.namekey_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes strValue = 3;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.strvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// .stream.TYPE valueType = 4;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// .stream.DATAHANDLE handleType = 5;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.handletype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
// repeated .stream.ParamInfo item = 6;
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.item_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::ParamInfo>()},
}}, {{
}},
};
::uint8_t* RequestInfo::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.RequestInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 dataType = 1;
if (this->_internal_datatype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_datatype(), target);
}
// bytes nameKey = 2;
if (!this->_internal_namekey().empty()) {
const std::string& _s = this->_internal_namekey();
target = stream->WriteBytesMaybeAliased(2, _s, target);
}
// bytes strValue = 3;
if (!this->_internal_strvalue().empty()) {
const std::string& _s = this->_internal_strvalue();
target = stream->WriteBytesMaybeAliased(3, _s, target);
}
// .stream.TYPE valueType = 4;
if (this->_internal_valuetype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
4, this->_internal_valuetype(), target);
}
// .stream.DATAHANDLE handleType = 5;
if (this->_internal_handletype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteEnumToArray(
5, this->_internal_handletype(), target);
}
// repeated .stream.ParamInfo item = 6;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_item_size()); i < n; i++) {
const auto& repfield = this->_internal_item().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:stream.RequestInfo)
return target;
}
::size_t RequestInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.RequestInfo)
::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 .stream.ParamInfo item = 6;
total_size += 1UL * this->_internal_item_size();
for (const auto& msg : this->_internal_item()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// bytes nameKey = 2;
if (!this->_internal_namekey().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_namekey());
}
// bytes strValue = 3;
if (!this->_internal_strvalue().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_strvalue());
}
// uint32 dataType = 1;
if (this->_internal_datatype() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_datatype());
}
// .stream.TYPE valueType = 4;
if (this->_internal_valuetype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype());
}
// .stream.DATAHANDLE handleType = 5;
if (this->_internal_handletype() != 0) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_handletype());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RequestInfo::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RequestInfo::MergeImpl
};
const ::google::protobuf::Message::ClassData*RequestInfo::GetClassData() const { return &_class_data_; }
void RequestInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RequestInfo*>(&to_msg);
auto& from = static_cast<const RequestInfo&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.RequestInfo)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_item()->MergeFrom(from._internal_item());
if (!from._internal_namekey().empty()) {
_this->_internal_set_namekey(from._internal_namekey());
}
if (!from._internal_strvalue().empty()) {
_this->_internal_set_strvalue(from._internal_strvalue());
}
if (from._internal_datatype() != 0) {
_this->_internal_set_datatype(from._internal_datatype());
}
if (from._internal_valuetype() != 0) {
_this->_internal_set_valuetype(from._internal_valuetype());
}
if (from._internal_handletype() != 0) {
_this->_internal_set_handletype(from._internal_handletype());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RequestInfo::CopyFrom(const RequestInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.RequestInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RequestInfo::IsInitialized() const {
return true;
}
void RequestInfo::InternalSwap(RequestInfo* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.item_.InternalSwap(&other->_impl_.item_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namekey_, lhs_arena,
&other->_impl_.namekey_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.strvalue_, lhs_arena,
&other->_impl_.strvalue_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.handletype_)
+ sizeof(RequestInfo::_impl_.handletype_)
- PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_)>(
reinterpret_cast<char*>(&_impl_.datatype_),
reinterpret_cast<char*>(&other->_impl_.datatype_));
}
::google::protobuf::Metadata RequestInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[1]);
}
// ===================================================================
class ResponseInfo::_Internal {
public:
};
ResponseInfo::ResponseInfo(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ResponseInfo)
}
ResponseInfo::ResponseInfo(const ResponseInfo& from) : ::google::protobuf::Message() {
ResponseInfo* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.item_){from._impl_.item_},
decltype(_impl_.datatype_){},
decltype(_impl_.result_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
::memcpy(&_impl_.datatype_, &from._impl_.datatype_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.result_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.result_));
// @@protoc_insertion_point(copy_constructor:stream.ResponseInfo)
}
inline void ResponseInfo::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.item_){arena},
decltype(_impl_.datatype_){0u},
decltype(_impl_.result_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ResponseInfo::~ResponseInfo() {
// @@protoc_insertion_point(destructor:stream.ResponseInfo)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ResponseInfo::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.item_.~RepeatedPtrField();
}
void ResponseInfo::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ResponseInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ResponseInfo)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_item()->Clear();
::memset(&_impl_.datatype_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.result_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.result_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ResponseInfo::_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, 1, 0, 2> ResponseInfo::_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
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_ResponseInfo_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// uint32 dataType = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResponseInfo, _impl_.datatype_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_)}},
// bool result = 2;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ResponseInfo, _impl_.result_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_)}},
// repeated .stream.ParamInfo item = 3;
{::_pbi::TcParser::FastMtR1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.item_)}},
}}, {{
65535, 65535
}}, {{
// uint32 dataType = 1;
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// bool result = 2;
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// repeated .stream.ParamInfo item = 3;
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.item_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::ParamInfo>()},
}}, {{
}},
};
::uint8_t* ResponseInfo::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ResponseInfo)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 dataType = 1;
if (this->_internal_datatype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_datatype(), target);
}
// bool result = 2;
if (this->_internal_result() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
2, this->_internal_result(), target);
}
// repeated .stream.ParamInfo item = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_item_size()); i < n; i++) {
const auto& repfield = this->_internal_item().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ResponseInfo)
return target;
}
::size_t ResponseInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ResponseInfo)
::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 .stream.ParamInfo item = 3;
total_size += 1UL * this->_internal_item_size();
for (const auto& msg : this->_internal_item()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// uint32 dataType = 1;
if (this->_internal_datatype() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_datatype());
}
// bool result = 2;
if (this->_internal_result() != 0) {
total_size += 2;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ResponseInfo::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ResponseInfo::MergeImpl
};
const ::google::protobuf::Message::ClassData*ResponseInfo::GetClassData() const { return &_class_data_; }
void ResponseInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ResponseInfo*>(&to_msg);
auto& from = static_cast<const ResponseInfo&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ResponseInfo)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_item()->MergeFrom(from._internal_item());
if (from._internal_datatype() != 0) {
_this->_internal_set_datatype(from._internal_datatype());
}
if (from._internal_result() != 0) {
_this->_internal_set_result(from._internal_result());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ResponseInfo::CopyFrom(const ResponseInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ResponseInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ResponseInfo::IsInitialized() const {
return true;
}
void ResponseInfo::InternalSwap(ResponseInfo* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.item_.InternalSwap(&other->_impl_.item_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_)
+ sizeof(ResponseInfo::_impl_.result_)
- PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_)>(
reinterpret_cast<char*>(&_impl_.datatype_),
reinterpret_cast<char*>(&other->_impl_.datatype_));
}
::google::protobuf::Metadata ResponseInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[2]);
}
// ===================================================================
class ResponseAny::_Internal {
public:
using HasBits = decltype(std::declval<ResponseAny>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(ResponseAny, _impl_._has_bits_);
static const ::google::protobuf::Any& data(const ResponseAny* msg);
static void set_has_data(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
const ::google::protobuf::Any& ResponseAny::_Internal::data(const ResponseAny* msg) {
return *msg->_impl_.data_;
}
void ResponseAny::clear_data() {
if (_impl_.data_ != nullptr) _impl_.data_->Clear();
_impl_._has_bits_[0] &= ~0x00000001u;
}
ResponseAny::ResponseAny(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ResponseAny)
}
ResponseAny::ResponseAny(const ResponseAny& from) : ::google::protobuf::Message() {
ResponseAny* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.data_){nullptr},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_impl_.data_ = new ::google::protobuf::Any(*from._impl_.data_);
}
// @@protoc_insertion_point(copy_constructor:stream.ResponseAny)
}
inline void ResponseAny::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.data_){nullptr},
};
}
ResponseAny::~ResponseAny() {
// @@protoc_insertion_point(destructor:stream.ResponseAny)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ResponseAny::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete _impl_.data_;
}
void ResponseAny::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ResponseAny::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ResponseAny)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(_impl_.data_ != nullptr);
_impl_.data_->Clear();
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ResponseAny::_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> ResponseAny::_table_ = {
{
PROTOBUF_FIELD_OFFSET(ResponseAny, _impl_._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),
&_ResponseAny_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// .google.protobuf.Any data = 1;
{::_pbi::TcParser::FastMtS1,
{10, 0, 0, PROTOBUF_FIELD_OFFSET(ResponseAny, _impl_.data_)}},
}}, {{
65535, 65535
}}, {{
// .google.protobuf.Any data = 1;
{PROTOBUF_FIELD_OFFSET(ResponseAny, _impl_.data_), _Internal::kHasBitsOffset + 0, 0,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::google::protobuf::Any>()},
}}, {{
}},
};
::uint8_t* ResponseAny::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ResponseAny)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
// .google.protobuf.Any data = 1;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::data(this),
_Internal::data(this).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:stream.ResponseAny)
return target;
}
::size_t ResponseAny::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ResponseAny)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .google.protobuf.Any data = 1;
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.data_);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ResponseAny::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ResponseAny::MergeImpl
};
const ::google::protobuf::Message::ClassData*ResponseAny::GetClassData() const { return &_class_data_; }
void ResponseAny::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ResponseAny*>(&to_msg);
auto& from = static_cast<const ResponseAny&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ResponseAny)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_internal_mutable_data()->::google::protobuf::Any::MergeFrom(
from._internal_data());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ResponseAny::CopyFrom(const ResponseAny& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ResponseAny)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ResponseAny::IsInitialized() const {
return true;
}
void ResponseAny::InternalSwap(ResponseAny* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
swap(_impl_.data_, other->_impl_.data_);
}
::google::protobuf::Metadata ResponseAny::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[3]);
}
// ===================================================================
class LayerData::_Internal {
public:
};
LayerData::LayerData(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.LayerData)
}
LayerData::LayerData(const LayerData& from) : ::google::protobuf::Message() {
LayerData* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.layerdatablock_){from._impl_.layerdatablock_},
decltype(_impl_.zcooldinate_){},
decltype(_impl_.powder_){},
decltype(_impl_.layerthickness_){},
decltype(_impl_.result_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
::memcpy(&_impl_.zcooldinate_, &from._impl_.zcooldinate_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.result_) -
reinterpret_cast<char*>(&_impl_.zcooldinate_)) + sizeof(_impl_.result_));
// @@protoc_insertion_point(copy_constructor:stream.LayerData)
}
inline void LayerData::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.layerdatablock_){arena},
decltype(_impl_.zcooldinate_){0},
decltype(_impl_.powder_){0},
decltype(_impl_.layerthickness_){0},
decltype(_impl_.result_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerData::~LayerData() {
// @@protoc_insertion_point(destructor:stream.LayerData)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerData::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.layerdatablock_.~RepeatedPtrField();
}
void LayerData::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerData::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.LayerData)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_layerdatablock()->Clear();
::memset(&_impl_.zcooldinate_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.result_) -
reinterpret_cast<char*>(&_impl_.zcooldinate_)) + sizeof(_impl_.result_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerData::_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, 5, 1, 0, 2> LayerData::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
1, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_LayerData_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// float zCooldinate = 1;
{::_pbi::TcParser::FastF32S1,
{13, 63, 0, PROTOBUF_FIELD_OFFSET(LayerData, _impl_.zcooldinate_)}},
// float powder = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(LayerData, _impl_.powder_)}},
// float layerThickness = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(LayerData, _impl_.layerthickness_)}},
// repeated .stream.LayerDataBlock layerDataBlock = 4;
{::_pbi::TcParser::FastMtR1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(LayerData, _impl_.layerdatablock_)}},
// bool result = 5;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(LayerData, _impl_.result_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(LayerData, _impl_.result_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// float zCooldinate = 1;
{PROTOBUF_FIELD_OFFSET(LayerData, _impl_.zcooldinate_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float powder = 2;
{PROTOBUF_FIELD_OFFSET(LayerData, _impl_.powder_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float layerThickness = 3;
{PROTOBUF_FIELD_OFFSET(LayerData, _impl_.layerthickness_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// repeated .stream.LayerDataBlock layerDataBlock = 4;
{PROTOBUF_FIELD_OFFSET(LayerData, _impl_.layerdatablock_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// bool result = 5;
{PROTOBUF_FIELD_OFFSET(LayerData, _impl_.result_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::LayerDataBlock>()},
}}, {{
}},
};
::uint8_t* LayerData::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.LayerData)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// float zCooldinate = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zcooldinate = this->_internal_zcooldinate();
::uint32_t raw_zcooldinate;
memcpy(&raw_zcooldinate, &tmp_zcooldinate, sizeof(tmp_zcooldinate));
if (raw_zcooldinate != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
1, this->_internal_zcooldinate(), target);
}
// float powder = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = this->_internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_powder(), target);
}
// float layerThickness = 3;
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(
3, this->_internal_layerthickness(), target);
}
// repeated .stream.LayerDataBlock layerDataBlock = 4;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_layerdatablock_size()); i < n; i++) {
const auto& repfield = this->_internal_layerdatablock().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
}
// bool result = 5;
if (this->_internal_result() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
5, this->_internal_result(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.LayerData)
return target;
}
::size_t LayerData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.LayerData)
::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 .stream.LayerDataBlock layerDataBlock = 4;
total_size += 1UL * this->_internal_layerdatablock_size();
for (const auto& msg : this->_internal_layerdatablock()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// float zCooldinate = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zcooldinate = this->_internal_zcooldinate();
::uint32_t raw_zcooldinate;
memcpy(&raw_zcooldinate, &tmp_zcooldinate, sizeof(tmp_zcooldinate));
if (raw_zcooldinate != 0) {
total_size += 5;
}
// float powder = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = this->_internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
total_size += 5;
}
// float layerThickness = 3;
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;
}
// bool result = 5;
if (this->_internal_result() != 0) {
total_size += 2;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerData::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerData::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerData::GetClassData() const { return &_class_data_; }
void LayerData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerData*>(&to_msg);
auto& from = static_cast<const LayerData&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.LayerData)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_layerdatablock()->MergeFrom(from._internal_layerdatablock());
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_zcooldinate = from._internal_zcooldinate();
::uint32_t raw_zcooldinate;
memcpy(&raw_zcooldinate, &tmp_zcooldinate, sizeof(tmp_zcooldinate));
if (raw_zcooldinate != 0) {
_this->_internal_set_zcooldinate(from._internal_zcooldinate());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_powder = from._internal_powder();
::uint32_t raw_powder;
memcpy(&raw_powder, &tmp_powder, sizeof(tmp_powder));
if (raw_powder != 0) {
_this->_internal_set_powder(from._internal_powder());
}
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_result() != 0) {
_this->_internal_set_result(from._internal_result());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerData::CopyFrom(const LayerData& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.LayerData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerData::IsInitialized() const {
return true;
}
void LayerData::InternalSwap(LayerData* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.layerdatablock_.InternalSwap(&other->_impl_.layerdatablock_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerData, _impl_.result_)
+ sizeof(LayerData::_impl_.result_)
- PROTOBUF_FIELD_OFFSET(LayerData, _impl_.zcooldinate_)>(
reinterpret_cast<char*>(&_impl_.zcooldinate_),
reinterpret_cast<char*>(&other->_impl_.zcooldinate_));
}
::google::protobuf::Metadata LayerData::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[4]);
}
// ===================================================================
class LayerDataBlock::_Internal {
public:
};
LayerDataBlock::LayerDataBlock(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.LayerDataBlock)
}
LayerDataBlock::LayerDataBlock(const LayerDataBlock& from) : ::google::protobuf::Message() {
LayerDataBlock* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.vecblocks_){from._impl_.vecblocks_},
decltype(_impl_.chainblocks_){from._impl_.chainblocks_},
decltype(_impl_.elementid_){},
decltype(_impl_.elementparamid_){},
decltype(_impl_.blocktype_){},
decltype(_impl_.order_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
::memcpy(&_impl_.elementid_, &from._impl_.elementid_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.order_) -
reinterpret_cast<char*>(&_impl_.elementid_)) + sizeof(_impl_.order_));
// @@protoc_insertion_point(copy_constructor:stream.LayerDataBlock)
}
inline void LayerDataBlock::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.vecblocks_){arena},
decltype(_impl_.chainblocks_){arena},
decltype(_impl_.elementid_){0},
decltype(_impl_.elementparamid_){0},
decltype(_impl_.blocktype_){0u},
decltype(_impl_.order_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
}
LayerDataBlock::~LayerDataBlock() {
// @@protoc_insertion_point(destructor:stream.LayerDataBlock)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void LayerDataBlock::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.vecblocks_.~RepeatedPtrField();
_impl_.chainblocks_.~RepeatedPtrField();
}
void LayerDataBlock::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void LayerDataBlock::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.LayerDataBlock)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_vecblocks()->Clear();
_internal_mutable_chainblocks()->Clear();
::memset(&_impl_.elementid_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.order_) -
reinterpret_cast<char*>(&_impl_.elementid_)) + sizeof(_impl_.order_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* LayerDataBlock::_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, 2, 0, 2> LayerDataBlock::_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
2, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_LayerDataBlock_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 elementId = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataBlock, _impl_.elementid_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.elementid_)}},
// int32 elementParamId = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataBlock, _impl_.elementparamid_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.elementparamid_)}},
// uint32 blockType = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataBlock, _impl_.blocktype_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.blocktype_)}},
// repeated .stream.VectorDataBlock vecBlocks = 4;
{::_pbi::TcParser::FastMtR1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.vecblocks_)}},
// repeated .stream.ChainDataBlock chainBlocks = 5;
{::_pbi::TcParser::FastMtR1,
{42, 63, 1, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.chainblocks_)}},
// uint32 order = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(LayerDataBlock, _impl_.order_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.order_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 elementId = 1;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.elementid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 elementParamId = 2;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.elementparamid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// uint32 blockType = 3;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.blocktype_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// repeated .stream.VectorDataBlock vecBlocks = 4;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.vecblocks_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .stream.ChainDataBlock chainBlocks = 5;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.chainblocks_), 0, 1,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// uint32 order = 6;
{PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.order_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::VectorDataBlock>()},
{::_pbi::TcParser::GetTable<::stream::ChainDataBlock>()},
}}, {{
}},
};
::uint8_t* LayerDataBlock::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.LayerDataBlock)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 elementId = 1;
if (this->_internal_elementid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_elementid(), target);
}
// int32 elementParamId = 2;
if (this->_internal_elementparamid() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_elementparamid(), target);
}
// uint32 blockType = 3;
if (this->_internal_blocktype() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
3, this->_internal_blocktype(), target);
}
// repeated .stream.VectorDataBlock vecBlocks = 4;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_vecblocks_size()); i < n; i++) {
const auto& repfield = this->_internal_vecblocks().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
}
// repeated .stream.ChainDataBlock chainBlocks = 5;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_chainblocks_size()); i < n; i++) {
const auto& repfield = this->_internal_chainblocks().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
}
// uint32 order = 6;
if (this->_internal_order() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
6, this->_internal_order(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.LayerDataBlock)
return target;
}
::size_t LayerDataBlock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.LayerDataBlock)
::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 .stream.VectorDataBlock vecBlocks = 4;
total_size += 1UL * this->_internal_vecblocks_size();
for (const auto& msg : this->_internal_vecblocks()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// repeated .stream.ChainDataBlock chainBlocks = 5;
total_size += 1UL * this->_internal_chainblocks_size();
for (const auto& msg : this->_internal_chainblocks()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// int32 elementId = 1;
if (this->_internal_elementid() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_elementid());
}
// int32 elementParamId = 2;
if (this->_internal_elementparamid() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_elementparamid());
}
// uint32 blockType = 3;
if (this->_internal_blocktype() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_blocktype());
}
// uint32 order = 6;
if (this->_internal_order() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_order());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData LayerDataBlock::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
LayerDataBlock::MergeImpl
};
const ::google::protobuf::Message::ClassData*LayerDataBlock::GetClassData() const { return &_class_data_; }
void LayerDataBlock::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<LayerDataBlock*>(&to_msg);
auto& from = static_cast<const LayerDataBlock&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.LayerDataBlock)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_vecblocks()->MergeFrom(from._internal_vecblocks());
_this->_internal_mutable_chainblocks()->MergeFrom(from._internal_chainblocks());
if (from._internal_elementid() != 0) {
_this->_internal_set_elementid(from._internal_elementid());
}
if (from._internal_elementparamid() != 0) {
_this->_internal_set_elementparamid(from._internal_elementparamid());
}
if (from._internal_blocktype() != 0) {
_this->_internal_set_blocktype(from._internal_blocktype());
}
if (from._internal_order() != 0) {
_this->_internal_set_order(from._internal_order());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void LayerDataBlock::CopyFrom(const LayerDataBlock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.LayerDataBlock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool LayerDataBlock::IsInitialized() const {
return true;
}
void LayerDataBlock::InternalSwap(LayerDataBlock* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.vecblocks_.InternalSwap(&other->_impl_.vecblocks_);
_impl_.chainblocks_.InternalSwap(&other->_impl_.chainblocks_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.order_)
+ sizeof(LayerDataBlock::_impl_.order_)
- PROTOBUF_FIELD_OFFSET(LayerDataBlock, _impl_.elementid_)>(
reinterpret_cast<char*>(&_impl_.elementid_),
reinterpret_cast<char*>(&other->_impl_.elementid_));
}
::google::protobuf::Metadata LayerDataBlock::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[5]);
}
// ===================================================================
class VectorDataBlock::_Internal {
public:
};
VectorDataBlock::VectorDataBlock(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.VectorDataBlock)
}
VectorDataBlock::VectorDataBlock(const VectorDataBlock& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.VectorDataBlock)
}
inline void VectorDataBlock::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.startx_){0},
decltype(_impl_.starty_){0},
decltype(_impl_.endx_){0},
decltype(_impl_.endy_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
VectorDataBlock::~VectorDataBlock() {
// @@protoc_insertion_point(destructor:stream.VectorDataBlock)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void VectorDataBlock::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void VectorDataBlock::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void VectorDataBlock::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.VectorDataBlock)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.startx_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.endy_) -
reinterpret_cast<char*>(&_impl_.startx_)) + sizeof(_impl_.endy_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* VectorDataBlock::_InternalParse(
const char* ptr, ::_pbi::ParseContext* ctx) {
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
return ptr;
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<2, 4, 0, 0, 2> VectorDataBlock::_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
&_VectorDataBlock_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// float endY = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.endy_)}},
// float startX = 1;
{::_pbi::TcParser::FastF32S1,
{13, 63, 0, PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.startx_)}},
// float startY = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.starty_)}},
// float endX = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.endx_)}},
}}, {{
65535, 65535
}}, {{
// float startX = 1;
{PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.startx_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float startY = 2;
{PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.starty_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float endX = 3;
{PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.endx_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float endY = 4;
{PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.endy_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
}},
};
::uint8_t* VectorDataBlock::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.VectorDataBlock)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// float startX = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_startx = this->_internal_startx();
::uint32_t raw_startx;
memcpy(&raw_startx, &tmp_startx, sizeof(tmp_startx));
if (raw_startx != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
1, this->_internal_startx(), target);
}
// float startY = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_starty = this->_internal_starty();
::uint32_t raw_starty;
memcpy(&raw_starty, &tmp_starty, sizeof(tmp_starty));
if (raw_starty != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_starty(), target);
}
// float endX = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endx = this->_internal_endx();
::uint32_t raw_endx;
memcpy(&raw_endx, &tmp_endx, sizeof(tmp_endx));
if (raw_endx != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_endx(), target);
}
// float endY = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endy = this->_internal_endy();
::uint32_t raw_endy;
memcpy(&raw_endy, &tmp_endy, sizeof(tmp_endy));
if (raw_endy != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_endy(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.VectorDataBlock)
return target;
}
::size_t VectorDataBlock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.VectorDataBlock)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// float startX = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_startx = this->_internal_startx();
::uint32_t raw_startx;
memcpy(&raw_startx, &tmp_startx, sizeof(tmp_startx));
if (raw_startx != 0) {
total_size += 5;
}
// float startY = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_starty = this->_internal_starty();
::uint32_t raw_starty;
memcpy(&raw_starty, &tmp_starty, sizeof(tmp_starty));
if (raw_starty != 0) {
total_size += 5;
}
// float endX = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endx = this->_internal_endx();
::uint32_t raw_endx;
memcpy(&raw_endx, &tmp_endx, sizeof(tmp_endx));
if (raw_endx != 0) {
total_size += 5;
}
// float endY = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endy = this->_internal_endy();
::uint32_t raw_endy;
memcpy(&raw_endy, &tmp_endy, sizeof(tmp_endy));
if (raw_endy != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData VectorDataBlock::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
VectorDataBlock::MergeImpl
};
const ::google::protobuf::Message::ClassData*VectorDataBlock::GetClassData() const { return &_class_data_; }
void VectorDataBlock::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<VectorDataBlock*>(&to_msg);
auto& from = static_cast<const VectorDataBlock&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.VectorDataBlock)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_startx = from._internal_startx();
::uint32_t raw_startx;
memcpy(&raw_startx, &tmp_startx, sizeof(tmp_startx));
if (raw_startx != 0) {
_this->_internal_set_startx(from._internal_startx());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_starty = from._internal_starty();
::uint32_t raw_starty;
memcpy(&raw_starty, &tmp_starty, sizeof(tmp_starty));
if (raw_starty != 0) {
_this->_internal_set_starty(from._internal_starty());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endx = from._internal_endx();
::uint32_t raw_endx;
memcpy(&raw_endx, &tmp_endx, sizeof(tmp_endx));
if (raw_endx != 0) {
_this->_internal_set_endx(from._internal_endx());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_endy = from._internal_endy();
::uint32_t raw_endy;
memcpy(&raw_endy, &tmp_endy, sizeof(tmp_endy));
if (raw_endy != 0) {
_this->_internal_set_endy(from._internal_endy());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void VectorDataBlock::CopyFrom(const VectorDataBlock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.VectorDataBlock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool VectorDataBlock::IsInitialized() const {
return true;
}
void VectorDataBlock::InternalSwap(VectorDataBlock* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.endy_)
+ sizeof(VectorDataBlock::_impl_.endy_)
- PROTOBUF_FIELD_OFFSET(VectorDataBlock, _impl_.startx_)>(
reinterpret_cast<char*>(&_impl_.startx_),
reinterpret_cast<char*>(&other->_impl_.startx_));
}
::google::protobuf::Metadata VectorDataBlock::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[6]);
}
// ===================================================================
class ChainDataBlock::_Internal {
public:
};
ChainDataBlock::ChainDataBlock(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ChainDataBlock)
}
ChainDataBlock::ChainDataBlock(const ChainDataBlock& from) : ::google::protobuf::Message() {
ChainDataBlock* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.pointvec_){from._impl_.pointvec_},
decltype(_impl_.dotnum_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_this->_impl_.dotnum_ = from._impl_.dotnum_;
// @@protoc_insertion_point(copy_constructor:stream.ChainDataBlock)
}
inline void ChainDataBlock::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.pointvec_){arena},
decltype(_impl_.dotnum_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ChainDataBlock::~ChainDataBlock() {
// @@protoc_insertion_point(destructor:stream.ChainDataBlock)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ChainDataBlock::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.pointvec_.~RepeatedPtrField();
}
void ChainDataBlock::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ChainDataBlock::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ChainDataBlock)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_pointvec()->Clear();
_impl_.dotnum_ = 0u;
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ChainDataBlock::_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, 0, 2> ChainDataBlock::_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),
&_ChainDataBlock_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .stream.Point pointVec = 2;
{::_pbi::TcParser::FastMtR1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(ChainDataBlock, _impl_.pointvec_)}},
// uint32 dotNum = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChainDataBlock, _impl_.dotnum_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ChainDataBlock, _impl_.dotnum_)}},
}}, {{
65535, 65535
}}, {{
// uint32 dotNum = 1;
{PROTOBUF_FIELD_OFFSET(ChainDataBlock, _impl_.dotnum_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// repeated .stream.Point pointVec = 2;
{PROTOBUF_FIELD_OFFSET(ChainDataBlock, _impl_.pointvec_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::Point>()},
}}, {{
}},
};
::uint8_t* ChainDataBlock::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ChainDataBlock)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 dotNum = 1;
if (this->_internal_dotnum() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_dotnum(), target);
}
// repeated .stream.Point pointVec = 2;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_pointvec_size()); i < n; i++) {
const auto& repfield = this->_internal_pointvec().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:stream.ChainDataBlock)
return target;
}
::size_t ChainDataBlock::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ChainDataBlock)
::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 .stream.Point pointVec = 2;
total_size += 1UL * this->_internal_pointvec_size();
for (const auto& msg : this->_internal_pointvec()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// uint32 dotNum = 1;
if (this->_internal_dotnum() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_dotnum());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ChainDataBlock::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ChainDataBlock::MergeImpl
};
const ::google::protobuf::Message::ClassData*ChainDataBlock::GetClassData() const { return &_class_data_; }
void ChainDataBlock::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ChainDataBlock*>(&to_msg);
auto& from = static_cast<const ChainDataBlock&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ChainDataBlock)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_pointvec()->MergeFrom(from._internal_pointvec());
if (from._internal_dotnum() != 0) {
_this->_internal_set_dotnum(from._internal_dotnum());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ChainDataBlock::CopyFrom(const ChainDataBlock& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ChainDataBlock)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ChainDataBlock::IsInitialized() const {
return true;
}
void ChainDataBlock::InternalSwap(ChainDataBlock* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.pointvec_.InternalSwap(&other->_impl_.pointvec_);
swap(_impl_.dotnum_, other->_impl_.dotnum_);
}
::google::protobuf::Metadata ChainDataBlock::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[7]);
}
// ===================================================================
class Point::_Internal {
public:
};
Point::Point(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.Point)
}
Point::Point(const Point& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.Point)
}
inline void Point::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.xpos_){0},
decltype(_impl_.ypos_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
Point::~Point() {
// @@protoc_insertion_point(destructor:stream.Point)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void Point::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void Point::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void Point::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.Point)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.xpos_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.ypos_) -
reinterpret_cast<char*>(&_impl_.xpos_)) + sizeof(_impl_.ypos_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* Point::_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> Point::_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
&_Point_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// float yPos = 2;
{::_pbi::TcParser::FastF32S1,
{21, 63, 0, PROTOBUF_FIELD_OFFSET(Point, _impl_.ypos_)}},
// float xPos = 1;
{::_pbi::TcParser::FastF32S1,
{13, 63, 0, PROTOBUF_FIELD_OFFSET(Point, _impl_.xpos_)}},
}}, {{
65535, 65535
}}, {{
// float xPos = 1;
{PROTOBUF_FIELD_OFFSET(Point, _impl_.xpos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float yPos = 2;
{PROTOBUF_FIELD_OFFSET(Point, _impl_.ypos_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
}},
};
::uint8_t* Point::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.Point)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// float xPos = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xpos = this->_internal_xpos();
::uint32_t raw_xpos;
memcpy(&raw_xpos, &tmp_xpos, sizeof(tmp_xpos));
if (raw_xpos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
1, this->_internal_xpos(), target);
}
// float yPos = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ypos = this->_internal_ypos();
::uint32_t raw_ypos;
memcpy(&raw_ypos, &tmp_ypos, sizeof(tmp_ypos));
if (raw_ypos != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
2, this->_internal_ypos(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.Point)
return target;
}
::size_t Point::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.Point)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// float xPos = 1;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xpos = this->_internal_xpos();
::uint32_t raw_xpos;
memcpy(&raw_xpos, &tmp_xpos, sizeof(tmp_xpos));
if (raw_xpos != 0) {
total_size += 5;
}
// float yPos = 2;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ypos = this->_internal_ypos();
::uint32_t raw_ypos;
memcpy(&raw_ypos, &tmp_ypos, sizeof(tmp_ypos));
if (raw_ypos != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData Point::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
Point::MergeImpl
};
const ::google::protobuf::Message::ClassData*Point::GetClassData() const { return &_class_data_; }
void Point::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<Point*>(&to_msg);
auto& from = static_cast<const Point&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.Point)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_xpos = from._internal_xpos();
::uint32_t raw_xpos;
memcpy(&raw_xpos, &tmp_xpos, sizeof(tmp_xpos));
if (raw_xpos != 0) {
_this->_internal_set_xpos(from._internal_xpos());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_ypos = from._internal_ypos();
::uint32_t raw_ypos;
memcpy(&raw_ypos, &tmp_ypos, sizeof(tmp_ypos));
if (raw_ypos != 0) {
_this->_internal_set_ypos(from._internal_ypos());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void Point::CopyFrom(const Point& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.Point)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool Point::IsInitialized() const {
return true;
}
void Point::InternalSwap(Point* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(Point, _impl_.ypos_)
+ sizeof(Point::_impl_.ypos_)
- PROTOBUF_FIELD_OFFSET(Point, _impl_.xpos_)>(
reinterpret_cast<char*>(&_impl_.xpos_),
reinterpret_cast<char*>(&other->_impl_.xpos_));
}
::google::protobuf::Metadata Point::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[8]);
}
// ===================================================================
class RegResponce::_Internal {
public:
};
RegResponce::RegResponce(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.RegResponce)
}
RegResponce::RegResponce(const RegResponce& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.RegResponce)
}
inline void RegResponce::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.data_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
RegResponce::~RegResponce() {
// @@protoc_insertion_point(destructor:stream.RegResponce)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void RegResponce::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void RegResponce::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void RegResponce::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.RegResponce)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.data_ = 0;
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* RegResponce::_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, 0, 2> RegResponce::_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
&_RegResponce_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// int32 data = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RegResponce, _impl_.data_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(RegResponce, _impl_.data_)}},
}}, {{
65535, 65535
}}, {{
// int32 data = 1;
{PROTOBUF_FIELD_OFFSET(RegResponce, _impl_.data_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
}},
// no aux_entries
{{
}},
};
::uint8_t* RegResponce::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.RegResponce)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 data = 1;
if (this->_internal_data() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_data(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.RegResponce)
return target;
}
::size_t RegResponce::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.RegResponce)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 data = 1;
if (this->_internal_data() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_data());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData RegResponce::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
RegResponce::MergeImpl
};
const ::google::protobuf::Message::ClassData*RegResponce::GetClassData() const { return &_class_data_; }
void RegResponce::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<RegResponce*>(&to_msg);
auto& from = static_cast<const RegResponce&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.RegResponce)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_data() != 0) {
_this->_internal_set_data(from._internal_data());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void RegResponce::CopyFrom(const RegResponce& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.RegResponce)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool RegResponce::IsInitialized() const {
return true;
}
void RegResponce::InternalSwap(RegResponce* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.data_, other->_impl_.data_);
}
::google::protobuf::Metadata RegResponce::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[9]);
}
// ===================================================================
class ImgInfoResponce::_Internal {
public:
};
ImgInfoResponce::ImgInfoResponce(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ImgInfoResponce)
}
ImgInfoResponce::ImgInfoResponce(const ImgInfoResponce& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.ImgInfoResponce)
}
inline void ImgInfoResponce::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.levelimage_){0u},
decltype(_impl_.width_){0},
decltype(_impl_.height_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ImgInfoResponce::~ImgInfoResponce() {
// @@protoc_insertion_point(destructor:stream.ImgInfoResponce)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ImgInfoResponce::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void ImgInfoResponce::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ImgInfoResponce::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ImgInfoResponce)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.levelimage_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.height_) -
reinterpret_cast<char*>(&_impl_.levelimage_)) + sizeof(_impl_.height_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ImgInfoResponce::_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> ImgInfoResponce::_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
&_ImgInfoResponce_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// uint32 levelImage = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImgInfoResponce, _impl_.levelimage_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.levelimage_)}},
// int32 width = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImgInfoResponce, _impl_.width_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.width_)}},
// int32 height = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ImgInfoResponce, _impl_.height_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.height_)}},
}}, {{
65535, 65535
}}, {{
// uint32 levelImage = 1;
{PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.levelimage_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// int32 width = 2;
{PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.width_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 height = 3;
{PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.height_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ImgInfoResponce::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ImgInfoResponce)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// uint32 levelImage = 1;
if (this->_internal_levelimage() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
1, this->_internal_levelimage(), target);
}
// int32 width = 2;
if (this->_internal_width() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_width(), target);
}
// int32 height = 3;
if (this->_internal_height() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<3>(
stream, this->_internal_height(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ImgInfoResponce)
return target;
}
::size_t ImgInfoResponce::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ImgInfoResponce)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 levelImage = 1;
if (this->_internal_levelimage() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_levelimage());
}
// int32 width = 2;
if (this->_internal_width() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_width());
}
// int32 height = 3;
if (this->_internal_height() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_height());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ImgInfoResponce::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ImgInfoResponce::MergeImpl
};
const ::google::protobuf::Message::ClassData*ImgInfoResponce::GetClassData() const { return &_class_data_; }
void ImgInfoResponce::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ImgInfoResponce*>(&to_msg);
auto& from = static_cast<const ImgInfoResponce&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ImgInfoResponce)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_levelimage() != 0) {
_this->_internal_set_levelimage(from._internal_levelimage());
}
if (from._internal_width() != 0) {
_this->_internal_set_width(from._internal_width());
}
if (from._internal_height() != 0) {
_this->_internal_set_height(from._internal_height());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ImgInfoResponce::CopyFrom(const ImgInfoResponce& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ImgInfoResponce)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ImgInfoResponce::IsInitialized() const {
return true;
}
void ImgInfoResponce::InternalSwap(ImgInfoResponce* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.height_)
+ sizeof(ImgInfoResponce::_impl_.height_)
- PROTOBUF_FIELD_OFFSET(ImgInfoResponce, _impl_.levelimage_)>(
reinterpret_cast<char*>(&_impl_.levelimage_),
reinterpret_cast<char*>(&other->_impl_.levelimage_));
}
::google::protobuf::Metadata ImgInfoResponce::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[10]);
}
// ===================================================================
class ComResponce::_Internal {
public:
};
ComResponce::ComResponce(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ComResponce)
}
ComResponce::ComResponce(const ComResponce& from) : ::google::protobuf::Message() {
ComResponce* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.data_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.data_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.data_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_data().empty()) {
_this->_impl_.data_.Set(from._internal_data(), _this->GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:stream.ComResponce)
}
inline void ComResponce::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.data_){},
/*decltype(_impl_._cached_size_)*/ {},
};
_impl_.data_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.data_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ComResponce::~ComResponce() {
// @@protoc_insertion_point(destructor:stream.ComResponce)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ComResponce::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.data_.Destroy();
}
void ComResponce::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ComResponce::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ComResponce)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.data_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ComResponce::_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, 0, 2> ComResponce::_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
&_ComResponce_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// bytes data = 1;
{::_pbi::TcParser::FastBS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_)}},
}}, {{
65535, 65535
}}, {{
// bytes data = 1;
{PROTOBUF_FIELD_OFFSET(ComResponce, _impl_.data_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ComResponce::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ComResponce)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// bytes data = 1;
if (!this->_internal_data().empty()) {
const std::string& _s = this->_internal_data();
target = stream->WriteBytesMaybeAliased(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:stream.ComResponce)
return target;
}
::size_t ComResponce::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ComResponce)
::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 data = 1;
if (!this->_internal_data().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_data());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ComResponce::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ComResponce::MergeImpl
};
const ::google::protobuf::Message::ClassData*ComResponce::GetClassData() const { return &_class_data_; }
void ComResponce::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ComResponce*>(&to_msg);
auto& from = static_cast<const ComResponce&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ComResponce)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_data().empty()) {
_this->_internal_set_data(from._internal_data());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ComResponce::CopyFrom(const ComResponce& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ComResponce)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ComResponce::IsInitialized() const {
return true;
}
void ComResponce::InternalSwap(ComResponce* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, lhs_arena,
&other->_impl_.data_, rhs_arena);
}
::google::protobuf::Metadata ComResponce::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[11]);
}
// ===================================================================
class ScannerCrtlCfgResp::_Internal {
public:
};
ScannerCrtlCfgResp::ScannerCrtlCfgResp(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ScannerCrtlCfgResp)
}
ScannerCrtlCfgResp::ScannerCrtlCfgResp(const ScannerCrtlCfgResp& from) : ::google::protobuf::Message() {
ScannerCrtlCfgResp* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_.scannercfg_){from._impl_.scannercfg_},
/*decltype(_impl_._cached_size_)*/ {},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.ScannerCrtlCfgResp)
}
inline void ScannerCrtlCfgResp::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.scannercfg_){arena},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ScannerCrtlCfgResp::~ScannerCrtlCfgResp() {
// @@protoc_insertion_point(destructor:stream.ScannerCrtlCfgResp)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ScannerCrtlCfgResp::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.scannercfg_.~RepeatedPtrField();
}
void ScannerCrtlCfgResp::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ScannerCrtlCfgResp::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ScannerCrtlCfgResp)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_scannercfg()->Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ScannerCrtlCfgResp::_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> ScannerCrtlCfgResp::_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),
&_ScannerCrtlCfgResp_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
// repeated .stream.ScannerCrtlCfgData scannerCfg = 1;
{::_pbi::TcParser::FastMtR1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgResp, _impl_.scannercfg_)}},
}}, {{
65535, 65535
}}, {{
// repeated .stream.ScannerCrtlCfgData scannerCfg = 1;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgResp, _impl_.scannercfg_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::ScannerCrtlCfgData>()},
}}, {{
}},
};
::uint8_t* ScannerCrtlCfgResp::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ScannerCrtlCfgResp)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// repeated .stream.ScannerCrtlCfgData scannerCfg = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_scannercfg_size()); i < n; i++) {
const auto& repfield = this->_internal_scannercfg().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:stream.ScannerCrtlCfgResp)
return target;
}
::size_t ScannerCrtlCfgResp::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ScannerCrtlCfgResp)
::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 .stream.ScannerCrtlCfgData scannerCfg = 1;
total_size += 1UL * this->_internal_scannercfg_size();
for (const auto& msg : this->_internal_scannercfg()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ScannerCrtlCfgResp::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ScannerCrtlCfgResp::MergeImpl
};
const ::google::protobuf::Message::ClassData*ScannerCrtlCfgResp::GetClassData() const { return &_class_data_; }
void ScannerCrtlCfgResp::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ScannerCrtlCfgResp*>(&to_msg);
auto& from = static_cast<const ScannerCrtlCfgResp&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ScannerCrtlCfgResp)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_scannercfg()->MergeFrom(from._internal_scannercfg());
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ScannerCrtlCfgResp::CopyFrom(const ScannerCrtlCfgResp& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ScannerCrtlCfgResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ScannerCrtlCfgResp::IsInitialized() const {
return true;
}
void ScannerCrtlCfgResp::InternalSwap(ScannerCrtlCfgResp* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.scannercfg_.InternalSwap(&other->_impl_.scannercfg_);
}
::google::protobuf::Metadata ScannerCrtlCfgResp::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[12]);
}
// ===================================================================
class ScannerCrtlCfgData::_Internal {
public:
using HasBits = decltype(std::declval<ScannerCrtlCfgData>()._impl_._has_bits_);
static constexpr ::int32_t kHasBitsOffset =
8 * PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_._has_bits_);
static const ::stream::ScanParamCfg& scanparamcfg(const ScannerCrtlCfgData* msg);
static void set_has_scanparamcfg(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static const ::stream::ScanParamCfg& hatchingparams(const ScannerCrtlCfgData* msg);
static void set_has_hatchingparams(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static const ::stream::ScanParamCfg& borderparams(const ScannerCrtlCfgData* msg);
static void set_has_borderparams(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
static const ::stream::ScanParamCfg& supportparams(const ScannerCrtlCfgData* msg);
static void set_has_supportparams(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
static const ::stream::CorrectParamCfg& correctparamcfg(const ScannerCrtlCfgData* msg);
static void set_has_correctparamcfg(HasBits* has_bits) {
(*has_bits)[0] |= 16u;
}
static const ::stream::ScanTestCfg& scantestcfg(const ScannerCrtlCfgData* msg);
static void set_has_scantestcfg(HasBits* has_bits) {
(*has_bits)[0] |= 32u;
}
static const ::stream::SkyWritingCfg& skywritingcfg(const ScannerCrtlCfgData* msg);
static void set_has_skywritingcfg(HasBits* has_bits) {
(*has_bits)[0] |= 64u;
}
};
const ::stream::ScanParamCfg& ScannerCrtlCfgData::_Internal::scanparamcfg(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.scanparamcfg_;
}
const ::stream::ScanParamCfg& ScannerCrtlCfgData::_Internal::hatchingparams(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.hatchingparams_;
}
const ::stream::ScanParamCfg& ScannerCrtlCfgData::_Internal::borderparams(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.borderparams_;
}
const ::stream::ScanParamCfg& ScannerCrtlCfgData::_Internal::supportparams(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.supportparams_;
}
const ::stream::CorrectParamCfg& ScannerCrtlCfgData::_Internal::correctparamcfg(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.correctparamcfg_;
}
const ::stream::ScanTestCfg& ScannerCrtlCfgData::_Internal::scantestcfg(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.scantestcfg_;
}
const ::stream::SkyWritingCfg& ScannerCrtlCfgData::_Internal::skywritingcfg(const ScannerCrtlCfgData* msg) {
return *msg->_impl_.skywritingcfg_;
}
ScannerCrtlCfgData::ScannerCrtlCfgData(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ScannerCrtlCfgData)
}
ScannerCrtlCfgData::ScannerCrtlCfgData(const ScannerCrtlCfgData& from) : ::google::protobuf::Message() {
ScannerCrtlCfgData* const _this = this;
(void)_this;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){from._impl_._has_bits_},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.fixpointdata_){from._impl_.fixpointdata_},
decltype(_impl_.powercompensate_){from._impl_.powercompensate_},
decltype(_impl_.tpowercompensate_){from._impl_.tpowercompensate_},
decltype(_impl_.cardname_){},
decltype(_impl_.cardip_){},
decltype(_impl_.scanparamcfg_){nullptr},
decltype(_impl_.hatchingparams_){nullptr},
decltype(_impl_.borderparams_){nullptr},
decltype(_impl_.supportparams_){nullptr},
decltype(_impl_.correctparamcfg_){nullptr},
decltype(_impl_.scantestcfg_){nullptr},
decltype(_impl_.skywritingcfg_){nullptr},
decltype(_impl_.seqno_){},
decltype(_impl_.controlno_){},
decltype(_impl_.serialno_){},
decltype(_impl_.controltype_){},
decltype(_impl_.isenable_){},
decltype(_impl_.hadassign_){},
decltype(_impl_.hadmatch_){},
};
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
_impl_.cardname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_cardname().empty()) {
_this->_impl_.cardname_.Set(from._internal_cardname(), _this->GetArenaForAllocation());
}
_impl_.cardip_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_cardip().empty()) {
_this->_impl_.cardip_.Set(from._internal_cardip(), _this->GetArenaForAllocation());
}
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
_this->_impl_.scanparamcfg_ = new ::stream::ScanParamCfg(*from._impl_.scanparamcfg_);
}
if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
_this->_impl_.hatchingparams_ = new ::stream::ScanParamCfg(*from._impl_.hatchingparams_);
}
if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
_this->_impl_.borderparams_ = new ::stream::ScanParamCfg(*from._impl_.borderparams_);
}
if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) {
_this->_impl_.supportparams_ = new ::stream::ScanParamCfg(*from._impl_.supportparams_);
}
if ((from._impl_._has_bits_[0] & 0x00000010u) != 0) {
_this->_impl_.correctparamcfg_ = new ::stream::CorrectParamCfg(*from._impl_.correctparamcfg_);
}
if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) {
_this->_impl_.scantestcfg_ = new ::stream::ScanTestCfg(*from._impl_.scantestcfg_);
}
if ((from._impl_._has_bits_[0] & 0x00000040u) != 0) {
_this->_impl_.skywritingcfg_ = new ::stream::SkyWritingCfg(*from._impl_.skywritingcfg_);
}
::memcpy(&_impl_.seqno_, &from._impl_.seqno_,
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.hadmatch_) -
reinterpret_cast<char*>(&_impl_.seqno_)) + sizeof(_impl_.hadmatch_));
// @@protoc_insertion_point(copy_constructor:stream.ScannerCrtlCfgData)
}
inline void ScannerCrtlCfgData::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_._has_bits_){},
/*decltype(_impl_._cached_size_)*/ {},
decltype(_impl_.fixpointdata_){arena},
decltype(_impl_.powercompensate_){arena},
decltype(_impl_.tpowercompensate_){arena},
decltype(_impl_.cardname_){},
decltype(_impl_.cardip_){},
decltype(_impl_.scanparamcfg_){nullptr},
decltype(_impl_.hatchingparams_){nullptr},
decltype(_impl_.borderparams_){nullptr},
decltype(_impl_.supportparams_){nullptr},
decltype(_impl_.correctparamcfg_){nullptr},
decltype(_impl_.scantestcfg_){nullptr},
decltype(_impl_.skywritingcfg_){nullptr},
decltype(_impl_.seqno_){0},
decltype(_impl_.controlno_){0},
decltype(_impl_.serialno_){0},
decltype(_impl_.controltype_){0},
decltype(_impl_.isenable_){false},
decltype(_impl_.hadassign_){false},
decltype(_impl_.hadmatch_){false},
};
_impl_.cardname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.cardip_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ScannerCrtlCfgData::~ScannerCrtlCfgData() {
// @@protoc_insertion_point(destructor:stream.ScannerCrtlCfgData)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ScannerCrtlCfgData::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.fixpointdata_.~RepeatedPtrField();
_impl_.powercompensate_.~RepeatedPtrField();
_impl_.tpowercompensate_.~RepeatedPtrField();
_impl_.cardname_.Destroy();
_impl_.cardip_.Destroy();
if (this != internal_default_instance()) delete _impl_.scanparamcfg_;
if (this != internal_default_instance()) delete _impl_.hatchingparams_;
if (this != internal_default_instance()) delete _impl_.borderparams_;
if (this != internal_default_instance()) delete _impl_.supportparams_;
if (this != internal_default_instance()) delete _impl_.correctparamcfg_;
if (this != internal_default_instance()) delete _impl_.scantestcfg_;
if (this != internal_default_instance()) delete _impl_.skywritingcfg_;
}
void ScannerCrtlCfgData::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ScannerCrtlCfgData::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ScannerCrtlCfgData)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_mutable_fixpointdata()->Clear();
_internal_mutable_powercompensate()->Clear();
_internal_mutable_tpowercompensate()->Clear();
_impl_.cardname_.ClearToEmpty();
_impl_.cardip_.ClearToEmpty();
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x0000007fu) {
if (cached_has_bits & 0x00000001u) {
ABSL_DCHECK(_impl_.scanparamcfg_ != nullptr);
_impl_.scanparamcfg_->Clear();
}
if (cached_has_bits & 0x00000002u) {
ABSL_DCHECK(_impl_.hatchingparams_ != nullptr);
_impl_.hatchingparams_->Clear();
}
if (cached_has_bits & 0x00000004u) {
ABSL_DCHECK(_impl_.borderparams_ != nullptr);
_impl_.borderparams_->Clear();
}
if (cached_has_bits & 0x00000008u) {
ABSL_DCHECK(_impl_.supportparams_ != nullptr);
_impl_.supportparams_->Clear();
}
if (cached_has_bits & 0x00000010u) {
ABSL_DCHECK(_impl_.correctparamcfg_ != nullptr);
_impl_.correctparamcfg_->Clear();
}
if (cached_has_bits & 0x00000020u) {
ABSL_DCHECK(_impl_.scantestcfg_ != nullptr);
_impl_.scantestcfg_->Clear();
}
if (cached_has_bits & 0x00000040u) {
ABSL_DCHECK(_impl_.skywritingcfg_ != nullptr);
_impl_.skywritingcfg_->Clear();
}
}
::memset(&_impl_.seqno_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.hadmatch_) -
reinterpret_cast<char*>(&_impl_.seqno_)) + sizeof(_impl_.hadmatch_));
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ScannerCrtlCfgData::_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, 19, 10, 0, 2> ScannerCrtlCfgData::_table_ = {
{
PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_._has_bits_),
0, // no _extensions_
19, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294443008, // skipmap
offsetof(decltype(_table_), field_entries),
19, // num_field_entries
10, // num_aux_entries
offsetof(decltype(_table_), aux_entries),
&_ScannerCrtlCfgData_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 seqNo = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScannerCrtlCfgData, _impl_.seqno_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.seqno_)}},
// repeated .stream.FixPointData fixPointData = 2;
{::_pbi::TcParser::FastMtR1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.fixpointdata_)}},
// .stream.ScanParamCfg scanParamCfg = 3;
{::_pbi::TcParser::FastMtS1,
{26, 0, 1, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.scanparamcfg_)}},
// .stream.ScanParamCfg hatchingParams = 4;
{::_pbi::TcParser::FastMtS1,
{34, 1, 2, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hatchingparams_)}},
// .stream.ScanParamCfg borderParams = 5;
{::_pbi::TcParser::FastMtS1,
{42, 2, 3, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.borderparams_)}},
// .stream.ScanParamCfg supportParams = 6;
{::_pbi::TcParser::FastMtS1,
{50, 3, 4, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.supportparams_)}},
// .stream.CorrectParamCfg correctParamCfg = 7;
{::_pbi::TcParser::FastMtS1,
{58, 4, 5, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.correctparamcfg_)}},
// .stream.ScanTestCfg scanTestCfg = 8;
{::_pbi::TcParser::FastMtS1,
{66, 5, 6, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.scantestcfg_)}},
// .stream.SkyWritingCfg skyWritingCfg = 9;
{::_pbi::TcParser::FastMtS1,
{74, 6, 7, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.skywritingcfg_)}},
// repeated .stream.PowerCompensate powerCompensate = 10;
{::_pbi::TcParser::FastMtR1,
{82, 63, 8, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.powercompensate_)}},
// repeated .stream.TimePowerCompensate tPowerCompensate = 11;
{::_pbi::TcParser::FastMtR1,
{90, 63, 9, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.tpowercompensate_)}},
// int32 controlNo = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScannerCrtlCfgData, _impl_.controlno_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.controlno_)}},
// int32 serialNo = 13;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScannerCrtlCfgData, _impl_.serialno_), 63>(),
{104, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.serialno_)}},
// int32 controlType = 14;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScannerCrtlCfgData, _impl_.controltype_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.controltype_)}},
// bytes cardName = 15;
{::_pbi::TcParser::FastBS1,
{122, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.cardname_)}},
// bytes cardIP = 16;
{::_pbi::TcParser::FastBS2,
{386, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.cardip_)}},
// bool isEnable = 17;
{::_pbi::TcParser::FastV8S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.isenable_)}},
// bool hadAssign = 18;
{::_pbi::TcParser::FastV8S2,
{400, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hadassign_)}},
// bool hadMatch = 19;
{::_pbi::TcParser::FastV8S2,
{408, 63, 0, PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hadmatch_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 seqNo = 1;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.seqno_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// repeated .stream.FixPointData fixPointData = 2;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.fixpointdata_), -1, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.ScanParamCfg scanParamCfg = 3;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.scanparamcfg_), _Internal::kHasBitsOffset + 0, 1,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.ScanParamCfg hatchingParams = 4;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hatchingparams_), _Internal::kHasBitsOffset + 1, 2,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.ScanParamCfg borderParams = 5;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.borderparams_), _Internal::kHasBitsOffset + 2, 3,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.ScanParamCfg supportParams = 6;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.supportparams_), _Internal::kHasBitsOffset + 3, 4,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.CorrectParamCfg correctParamCfg = 7;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.correctparamcfg_), _Internal::kHasBitsOffset + 4, 5,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.ScanTestCfg scanTestCfg = 8;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.scantestcfg_), _Internal::kHasBitsOffset + 5, 6,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// .stream.SkyWritingCfg skyWritingCfg = 9;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.skywritingcfg_), _Internal::kHasBitsOffset + 6, 7,
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .stream.PowerCompensate powerCompensate = 10;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.powercompensate_), -1, 8,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// repeated .stream.TimePowerCompensate tPowerCompensate = 11;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.tpowercompensate_), -1, 9,
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
// int32 controlNo = 12;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.controlno_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 serialNo = 13;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.serialno_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 controlType = 14;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.controltype_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// bytes cardName = 15;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.cardname_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bytes cardIP = 16;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.cardip_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
// bool isEnable = 17;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.isenable_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool hadAssign = 18;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hadassign_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool hadMatch = 19;
{PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hadmatch_), -1, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
}}, {{
{::_pbi::TcParser::GetTable<::stream::FixPointData>()},
{::_pbi::TcParser::GetTable<::stream::ScanParamCfg>()},
{::_pbi::TcParser::GetTable<::stream::ScanParamCfg>()},
{::_pbi::TcParser::GetTable<::stream::ScanParamCfg>()},
{::_pbi::TcParser::GetTable<::stream::ScanParamCfg>()},
{::_pbi::TcParser::GetTable<::stream::CorrectParamCfg>()},
{::_pbi::TcParser::GetTable<::stream::ScanTestCfg>()},
{::_pbi::TcParser::GetTable<::stream::SkyWritingCfg>()},
{::_pbi::TcParser::GetTable<::stream::PowerCompensate>()},
{::_pbi::TcParser::GetTable<::stream::TimePowerCompensate>()},
}}, {{
}},
};
::uint8_t* ScannerCrtlCfgData::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ScannerCrtlCfgData)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 seqNo = 1;
if (this->_internal_seqno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_seqno(), target);
}
// repeated .stream.FixPointData fixPointData = 2;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_fixpointdata_size()); i < n; i++) {
const auto& repfield = this->_internal_fixpointdata().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
}
cached_has_bits = _impl_._has_bits_[0];
// .stream.ScanParamCfg scanParamCfg = 3;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::scanparamcfg(this),
_Internal::scanparamcfg(this).GetCachedSize(), target, stream);
}
// .stream.ScanParamCfg hatchingParams = 4;
if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::hatchingparams(this),
_Internal::hatchingparams(this).GetCachedSize(), target, stream);
}
// .stream.ScanParamCfg borderParams = 5;
if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(5, _Internal::borderparams(this),
_Internal::borderparams(this).GetCachedSize(), target, stream);
}
// .stream.ScanParamCfg supportParams = 6;
if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(6, _Internal::supportparams(this),
_Internal::supportparams(this).GetCachedSize(), target, stream);
}
// .stream.CorrectParamCfg correctParamCfg = 7;
if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(7, _Internal::correctparamcfg(this),
_Internal::correctparamcfg(this).GetCachedSize(), target, stream);
}
// .stream.ScanTestCfg scanTestCfg = 8;
if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(8, _Internal::scantestcfg(this),
_Internal::scantestcfg(this).GetCachedSize(), target, stream);
}
// .stream.SkyWritingCfg skyWritingCfg = 9;
if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(9, _Internal::skywritingcfg(this),
_Internal::skywritingcfg(this).GetCachedSize(), target, stream);
}
// repeated .stream.PowerCompensate powerCompensate = 10;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_powercompensate_size()); i < n; i++) {
const auto& repfield = this->_internal_powercompensate().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream);
}
// repeated .stream.TimePowerCompensate tPowerCompensate = 11;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_tpowercompensate_size()); i < n; i++) {
const auto& repfield = this->_internal_tpowercompensate().Get(i);
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream);
}
// int32 controlNo = 12;
if (this->_internal_controlno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<12>(
stream, this->_internal_controlno(), target);
}
// int32 serialNo = 13;
if (this->_internal_serialno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<13>(
stream, this->_internal_serialno(), target);
}
// int32 controlType = 14;
if (this->_internal_controltype() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<14>(
stream, this->_internal_controltype(), target);
}
// bytes cardName = 15;
if (!this->_internal_cardname().empty()) {
const std::string& _s = this->_internal_cardname();
target = stream->WriteBytesMaybeAliased(15, _s, target);
}
// bytes cardIP = 16;
if (!this->_internal_cardip().empty()) {
const std::string& _s = this->_internal_cardip();
target = stream->WriteBytesMaybeAliased(16, _s, target);
}
// bool isEnable = 17;
if (this->_internal_isenable() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
17, this->_internal_isenable(), target);
}
// bool hadAssign = 18;
if (this->_internal_hadassign() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
18, this->_internal_hadassign(), target);
}
// bool hadMatch = 19;
if (this->_internal_hadmatch() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
19, this->_internal_hadmatch(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ScannerCrtlCfgData)
return target;
}
::size_t ScannerCrtlCfgData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ScannerCrtlCfgData)
::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 .stream.FixPointData fixPointData = 2;
total_size += 1UL * this->_internal_fixpointdata_size();
for (const auto& msg : this->_internal_fixpointdata()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// repeated .stream.PowerCompensate powerCompensate = 10;
total_size += 1UL * this->_internal_powercompensate_size();
for (const auto& msg : this->_internal_powercompensate()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// repeated .stream.TimePowerCompensate tPowerCompensate = 11;
total_size += 1UL * this->_internal_tpowercompensate_size();
for (const auto& msg : this->_internal_tpowercompensate()) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
}
// bytes cardName = 15;
if (!this->_internal_cardname().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_cardname());
}
// bytes cardIP = 16;
if (!this->_internal_cardip().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
this->_internal_cardip());
}
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x0000007fu) {
// .stream.ScanParamCfg scanParamCfg = 3;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.scanparamcfg_);
}
// .stream.ScanParamCfg hatchingParams = 4;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.hatchingparams_);
}
// .stream.ScanParamCfg borderParams = 5;
if (cached_has_bits & 0x00000004u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.borderparams_);
}
// .stream.ScanParamCfg supportParams = 6;
if (cached_has_bits & 0x00000008u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.supportparams_);
}
// .stream.CorrectParamCfg correctParamCfg = 7;
if (cached_has_bits & 0x00000010u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.correctparamcfg_);
}
// .stream.ScanTestCfg scanTestCfg = 8;
if (cached_has_bits & 0x00000020u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.scantestcfg_);
}
// .stream.SkyWritingCfg skyWritingCfg = 9;
if (cached_has_bits & 0x00000040u) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*_impl_.skywritingcfg_);
}
}
// int32 seqNo = 1;
if (this->_internal_seqno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_seqno());
}
// int32 controlNo = 12;
if (this->_internal_controlno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_controlno());
}
// int32 serialNo = 13;
if (this->_internal_serialno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_serialno());
}
// int32 controlType = 14;
if (this->_internal_controltype() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_controltype());
}
// bool isEnable = 17;
if (this->_internal_isenable() != 0) {
total_size += 3;
}
// bool hadAssign = 18;
if (this->_internal_hadassign() != 0) {
total_size += 3;
}
// bool hadMatch = 19;
if (this->_internal_hadmatch() != 0) {
total_size += 3;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ScannerCrtlCfgData::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ScannerCrtlCfgData::MergeImpl
};
const ::google::protobuf::Message::ClassData*ScannerCrtlCfgData::GetClassData() const { return &_class_data_; }
void ScannerCrtlCfgData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ScannerCrtlCfgData*>(&to_msg);
auto& from = static_cast<const ScannerCrtlCfgData&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ScannerCrtlCfgData)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_fixpointdata()->MergeFrom(from._internal_fixpointdata());
_this->_internal_mutable_powercompensate()->MergeFrom(from._internal_powercompensate());
_this->_internal_mutable_tpowercompensate()->MergeFrom(from._internal_tpowercompensate());
if (!from._internal_cardname().empty()) {
_this->_internal_set_cardname(from._internal_cardname());
}
if (!from._internal_cardip().empty()) {
_this->_internal_set_cardip(from._internal_cardip());
}
cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x0000007fu) {
if (cached_has_bits & 0x00000001u) {
_this->_internal_mutable_scanparamcfg()->::stream::ScanParamCfg::MergeFrom(
from._internal_scanparamcfg());
}
if (cached_has_bits & 0x00000002u) {
_this->_internal_mutable_hatchingparams()->::stream::ScanParamCfg::MergeFrom(
from._internal_hatchingparams());
}
if (cached_has_bits & 0x00000004u) {
_this->_internal_mutable_borderparams()->::stream::ScanParamCfg::MergeFrom(
from._internal_borderparams());
}
if (cached_has_bits & 0x00000008u) {
_this->_internal_mutable_supportparams()->::stream::ScanParamCfg::MergeFrom(
from._internal_supportparams());
}
if (cached_has_bits & 0x00000010u) {
_this->_internal_mutable_correctparamcfg()->::stream::CorrectParamCfg::MergeFrom(
from._internal_correctparamcfg());
}
if (cached_has_bits & 0x00000020u) {
_this->_internal_mutable_scantestcfg()->::stream::ScanTestCfg::MergeFrom(
from._internal_scantestcfg());
}
if (cached_has_bits & 0x00000040u) {
_this->_internal_mutable_skywritingcfg()->::stream::SkyWritingCfg::MergeFrom(
from._internal_skywritingcfg());
}
}
if (from._internal_seqno() != 0) {
_this->_internal_set_seqno(from._internal_seqno());
}
if (from._internal_controlno() != 0) {
_this->_internal_set_controlno(from._internal_controlno());
}
if (from._internal_serialno() != 0) {
_this->_internal_set_serialno(from._internal_serialno());
}
if (from._internal_controltype() != 0) {
_this->_internal_set_controltype(from._internal_controltype());
}
if (from._internal_isenable() != 0) {
_this->_internal_set_isenable(from._internal_isenable());
}
if (from._internal_hadassign() != 0) {
_this->_internal_set_hadassign(from._internal_hadassign());
}
if (from._internal_hadmatch() != 0) {
_this->_internal_set_hadmatch(from._internal_hadmatch());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ScannerCrtlCfgData::CopyFrom(const ScannerCrtlCfgData& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ScannerCrtlCfgData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ScannerCrtlCfgData::IsInitialized() const {
return true;
}
void ScannerCrtlCfgData::InternalSwap(ScannerCrtlCfgData* 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_.fixpointdata_.InternalSwap(&other->_impl_.fixpointdata_);
_impl_.powercompensate_.InternalSwap(&other->_impl_.powercompensate_);
_impl_.tpowercompensate_.InternalSwap(&other->_impl_.tpowercompensate_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardname_, lhs_arena,
&other->_impl_.cardname_, rhs_arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cardip_, lhs_arena,
&other->_impl_.cardip_, rhs_arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.hadmatch_)
+ sizeof(ScannerCrtlCfgData::_impl_.hadmatch_)
- PROTOBUF_FIELD_OFFSET(ScannerCrtlCfgData, _impl_.scanparamcfg_)>(
reinterpret_cast<char*>(&_impl_.scanparamcfg_),
reinterpret_cast<char*>(&other->_impl_.scanparamcfg_));
}
::google::protobuf::Metadata ScannerCrtlCfgData::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[13]);
}
// ===================================================================
class FixPointData::_Internal {
public:
};
FixPointData::FixPointData(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.FixPointData)
}
FixPointData::FixPointData(const FixPointData& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.FixPointData)
}
inline void FixPointData::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.id_){0},
decltype(_impl_.cno_){0},
decltype(_impl_.pointx_){0},
decltype(_impl_.pointy_){0},
decltype(_impl_.duration_){0u},
/*decltype(_impl_._cached_size_)*/ {},
};
}
FixPointData::~FixPointData() {
// @@protoc_insertion_point(destructor:stream.FixPointData)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void FixPointData::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void FixPointData::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void FixPointData::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.FixPointData)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.duration_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.duration_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* FixPointData::_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, 5, 0, 0, 2> FixPointData::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_FixPointData_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FixPointData, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.id_)}},
// int32 cno = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FixPointData, _impl_.cno_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.cno_)}},
// float pointX = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.pointx_)}},
// float pointY = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.pointy_)}},
// uint32 duration = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FixPointData, _impl_.duration_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.duration_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 id = 1;
{PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 cno = 2;
{PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.cno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// float pointX = 3;
{PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.pointx_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float pointY = 4;
{PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.pointy_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// uint32 duration = 5;
{PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.duration_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
}},
// no aux_entries
{{
}},
};
::uint8_t* FixPointData::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.FixPointData)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// int32 cno = 2;
if (this->_internal_cno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_cno(), target);
}
// float pointX = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointx = this->_internal_pointx();
::uint32_t raw_pointx;
memcpy(&raw_pointx, &tmp_pointx, sizeof(tmp_pointx));
if (raw_pointx != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_pointx(), target);
}
// float pointY = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointy = this->_internal_pointy();
::uint32_t raw_pointy;
memcpy(&raw_pointy, &tmp_pointy, sizeof(tmp_pointy));
if (raw_pointy != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_pointy(), target);
}
// uint32 duration = 5;
if (this->_internal_duration() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
5, this->_internal_duration(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.FixPointData)
return target;
}
::size_t FixPointData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.FixPointData)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_id());
}
// int32 cno = 2;
if (this->_internal_cno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_cno());
}
// float pointX = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointx = this->_internal_pointx();
::uint32_t raw_pointx;
memcpy(&raw_pointx, &tmp_pointx, sizeof(tmp_pointx));
if (raw_pointx != 0) {
total_size += 5;
}
// float pointY = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointy = this->_internal_pointy();
::uint32_t raw_pointy;
memcpy(&raw_pointy, &tmp_pointy, sizeof(tmp_pointy));
if (raw_pointy != 0) {
total_size += 5;
}
// uint32 duration = 5;
if (this->_internal_duration() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_duration());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData FixPointData::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
FixPointData::MergeImpl
};
const ::google::protobuf::Message::ClassData*FixPointData::GetClassData() const { return &_class_data_; }
void FixPointData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<FixPointData*>(&to_msg);
auto& from = static_cast<const FixPointData&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.FixPointData)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_cno() != 0) {
_this->_internal_set_cno(from._internal_cno());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointx = from._internal_pointx();
::uint32_t raw_pointx;
memcpy(&raw_pointx, &tmp_pointx, sizeof(tmp_pointx));
if (raw_pointx != 0) {
_this->_internal_set_pointx(from._internal_pointx());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_pointy = from._internal_pointy();
::uint32_t raw_pointy;
memcpy(&raw_pointy, &tmp_pointy, sizeof(tmp_pointy));
if (raw_pointy != 0) {
_this->_internal_set_pointy(from._internal_pointy());
}
if (from._internal_duration() != 0) {
_this->_internal_set_duration(from._internal_duration());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void FixPointData::CopyFrom(const FixPointData& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.FixPointData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool FixPointData::IsInitialized() const {
return true;
}
void FixPointData::InternalSwap(FixPointData* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.duration_)
+ sizeof(FixPointData::_impl_.duration_)
- PROTOBUF_FIELD_OFFSET(FixPointData, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata FixPointData::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[14]);
}
// ===================================================================
class ScanParamCfg::_Internal {
public:
};
ScanParamCfg::ScanParamCfg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ScanParamCfg)
}
ScanParamCfg::ScanParamCfg(const ScanParamCfg& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.ScanParamCfg)
}
inline void ScanParamCfg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.edgelevel_){0},
decltype(_impl_.edgelevelmin_){0},
decltype(_impl_.edgelevelmax_){0},
decltype(_impl_.jumpdelay_){0u},
decltype(_impl_.jumpdelaymin_){0u},
decltype(_impl_.jumpdelaymax_){0u},
decltype(_impl_.scandelay_){0u},
decltype(_impl_.scandelaymin_){0u},
decltype(_impl_.scandelaymax_){0u},
decltype(_impl_.polygondelay_){0u},
decltype(_impl_.polygondelaymin_){0u},
decltype(_impl_.polygondelaymax_){0u},
decltype(_impl_.laseroffdelay_){::int64_t{0}},
decltype(_impl_.laseroffdelaymin_){::int64_t{0}},
decltype(_impl_.laseroffdelaymax_){::int64_t{0}},
decltype(_impl_.laserondelay_){::int64_t{0}},
decltype(_impl_.laserondelaymin_){::int64_t{0}},
decltype(_impl_.laserondelaymax_){::int64_t{0}},
decltype(_impl_.minjumpdelay_){0u},
decltype(_impl_.minjumpdelaymin_){0u},
decltype(_impl_.minjumpdelaymax_){0u},
decltype(_impl_.jumplengthlimit_){0u},
decltype(_impl_.jumplengthlimitmin_){0u},
decltype(_impl_.jumplengthlimitmax_){0u},
decltype(_impl_.jumpspeed_){0},
decltype(_impl_.jumpspeedmin_){0},
decltype(_impl_.jumpspeedmax_){0},
decltype(_impl_.markspeed_){0},
decltype(_impl_.markspeedmin_){0},
decltype(_impl_.markspeedmax_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ScanParamCfg::~ScanParamCfg() {
// @@protoc_insertion_point(destructor:stream.ScanParamCfg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ScanParamCfg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void ScanParamCfg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ScanParamCfg::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ScanParamCfg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.edgelevel_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.markspeedmax_) -
reinterpret_cast<char*>(&_impl_.edgelevel_)) + sizeof(_impl_.markspeedmax_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ScanParamCfg::_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, 30, 0, 0, 2> ScanParamCfg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
30, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
3221225472, // skipmap
offsetof(decltype(_table_), field_entries),
30, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_ScanParamCfg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 edgeLevel = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.edgelevel_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevel_)}},
// int32 edgeLevelMin = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.edgelevelmin_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevelmin_)}},
// int32 edgeLevelMax = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.edgelevelmax_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevelmax_)}},
// uint32 jumpDelay = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.jumpdelay_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelay_)}},
// uint32 jumpDelayMin = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.jumpdelaymin_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelaymin_)}},
// uint32 jumpDelayMax = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.jumpdelaymax_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelaymax_)}},
// uint32 scanDelay = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.scandelay_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelay_)}},
// uint32 scanDelayMin = 8;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.scandelaymin_), 63>(),
{64, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelaymin_)}},
// uint32 scanDelayMax = 9;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.scandelaymax_), 63>(),
{72, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelaymax_)}},
// uint32 polygonDelay = 10;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.polygondelay_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelay_)}},
// uint32 polygonDelayMin = 11;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.polygondelaymin_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelaymin_)}},
// uint32 polygonDelayMax = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanParamCfg, _impl_.polygondelaymax_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelaymax_)}},
// int64 laseroffDelay = 13;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ScanParamCfg, _impl_.laseroffdelay_), 63>(),
{104, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelay_)}},
// int64 laseroffDelayMin = 14;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ScanParamCfg, _impl_.laseroffdelaymin_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelaymin_)}},
// int64 laseroffDelayMax = 15;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ScanParamCfg, _impl_.laseroffdelaymax_), 63>(),
{120, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelaymax_)}},
// int64 laseronDelay = 16;
{::_pbi::TcParser::FastV64S2,
{384, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelay_)}},
// int64 laseronDelayMin = 17;
{::_pbi::TcParser::FastV64S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelaymin_)}},
// int64 laseronDelayMax = 18;
{::_pbi::TcParser::FastV64S2,
{400, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelaymax_)}},
// uint32 minJumpDelay = 19;
{::_pbi::TcParser::FastV32S2,
{408, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelay_)}},
// uint32 minJumpDelayMin = 20;
{::_pbi::TcParser::FastV32S2,
{416, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelaymin_)}},
// uint32 minJumpDelayMax = 21;
{::_pbi::TcParser::FastV32S2,
{424, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelaymax_)}},
// uint32 jumpLengthLimit = 22;
{::_pbi::TcParser::FastV32S2,
{432, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimit_)}},
// uint32 jumpLengthLimitMin = 23;
{::_pbi::TcParser::FastV32S2,
{440, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimitmin_)}},
// uint32 jumpLengthLimitMax = 24;
{::_pbi::TcParser::FastV32S2,
{448, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimitmax_)}},
// double jumpSpeed = 25;
{::_pbi::TcParser::FastF64S2,
{457, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeed_)}},
// double jumpSpeedMin = 26;
{::_pbi::TcParser::FastF64S2,
{465, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeedmin_)}},
// double jumpSpeedMax = 27;
{::_pbi::TcParser::FastF64S2,
{473, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeedmax_)}},
// double markSpeed = 28;
{::_pbi::TcParser::FastF64S2,
{481, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeed_)}},
// double markSpeedMin = 29;
{::_pbi::TcParser::FastF64S2,
{489, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeedmin_)}},
// double markSpeedMax = 30;
{::_pbi::TcParser::FastF64S2,
{497, 63, 0, PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeedmax_)}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 edgeLevel = 1;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevel_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 edgeLevelMin = 2;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevelmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 edgeLevelMax = 3;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevelmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// uint32 jumpDelay = 4;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 jumpDelayMin = 5;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 jumpDelayMax = 6;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpdelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 scanDelay = 7;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 scanDelayMin = 8;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 scanDelayMax = 9;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.scandelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 polygonDelay = 10;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 polygonDelayMin = 11;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 polygonDelayMax = 12;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.polygondelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// int64 laseroffDelay = 13;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laseroffDelayMin = 14;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laseroffDelayMax = 15;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laseroffdelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laseronDelay = 16;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laseronDelayMin = 17;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laseronDelayMax = 18;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.laserondelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// uint32 minJumpDelay = 19;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelay_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 minJumpDelayMin = 20;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelaymin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 minJumpDelayMax = 21;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.minjumpdelaymax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 jumpLengthLimit = 22;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimit_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 jumpLengthLimitMin = 23;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimitmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 jumpLengthLimitMax = 24;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumplengthlimitmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// double jumpSpeed = 25;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeed_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double jumpSpeedMin = 26;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeedmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double jumpSpeedMax = 27;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.jumpspeedmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double markSpeed = 28;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeed_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double markSpeedMin = 29;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeedmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double markSpeedMax = 30;
{PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeedmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ScanParamCfg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ScanParamCfg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 edgeLevel = 1;
if (this->_internal_edgelevel() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_edgelevel(), target);
}
// int32 edgeLevelMin = 2;
if (this->_internal_edgelevelmin() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_edgelevelmin(), target);
}
// int32 edgeLevelMax = 3;
if (this->_internal_edgelevelmax() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<3>(
stream, this->_internal_edgelevelmax(), target);
}
// uint32 jumpDelay = 4;
if (this->_internal_jumpdelay() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
4, this->_internal_jumpdelay(), target);
}
// uint32 jumpDelayMin = 5;
if (this->_internal_jumpdelaymin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
5, this->_internal_jumpdelaymin(), target);
}
// uint32 jumpDelayMax = 6;
if (this->_internal_jumpdelaymax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
6, this->_internal_jumpdelaymax(), target);
}
// uint32 scanDelay = 7;
if (this->_internal_scandelay() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
7, this->_internal_scandelay(), target);
}
// uint32 scanDelayMin = 8;
if (this->_internal_scandelaymin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
8, this->_internal_scandelaymin(), target);
}
// uint32 scanDelayMax = 9;
if (this->_internal_scandelaymax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
9, this->_internal_scandelaymax(), target);
}
// uint32 polygonDelay = 10;
if (this->_internal_polygondelay() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
10, this->_internal_polygondelay(), target);
}
// uint32 polygonDelayMin = 11;
if (this->_internal_polygondelaymin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
11, this->_internal_polygondelaymin(), target);
}
// uint32 polygonDelayMax = 12;
if (this->_internal_polygondelaymax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
12, this->_internal_polygondelaymax(), target);
}
// int64 laseroffDelay = 13;
if (this->_internal_laseroffdelay() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<13>(
stream, this->_internal_laseroffdelay(), target);
}
// int64 laseroffDelayMin = 14;
if (this->_internal_laseroffdelaymin() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<14>(
stream, this->_internal_laseroffdelaymin(), target);
}
// int64 laseroffDelayMax = 15;
if (this->_internal_laseroffdelaymax() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<15>(
stream, this->_internal_laseroffdelaymax(), target);
}
// int64 laseronDelay = 16;
if (this->_internal_laserondelay() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
16, this->_internal_laserondelay(), target);
}
// int64 laseronDelayMin = 17;
if (this->_internal_laserondelaymin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
17, this->_internal_laserondelaymin(), target);
}
// int64 laseronDelayMax = 18;
if (this->_internal_laserondelaymax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(
18, this->_internal_laserondelaymax(), target);
}
// uint32 minJumpDelay = 19;
if (this->_internal_minjumpdelay() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
19, this->_internal_minjumpdelay(), target);
}
// uint32 minJumpDelayMin = 20;
if (this->_internal_minjumpdelaymin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
20, this->_internal_minjumpdelaymin(), target);
}
// uint32 minJumpDelayMax = 21;
if (this->_internal_minjumpdelaymax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
21, this->_internal_minjumpdelaymax(), target);
}
// uint32 jumpLengthLimit = 22;
if (this->_internal_jumplengthlimit() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
22, this->_internal_jumplengthlimit(), target);
}
// uint32 jumpLengthLimitMin = 23;
if (this->_internal_jumplengthlimitmin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
23, this->_internal_jumplengthlimitmin(), target);
}
// uint32 jumpLengthLimitMax = 24;
if (this->_internal_jumplengthlimitmax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
24, this->_internal_jumplengthlimitmax(), target);
}
// double jumpSpeed = 25;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeed = this->_internal_jumpspeed();
::uint64_t raw_jumpspeed;
memcpy(&raw_jumpspeed, &tmp_jumpspeed, sizeof(tmp_jumpspeed));
if (raw_jumpspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
25, this->_internal_jumpspeed(), target);
}
// double jumpSpeedMin = 26;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmin = this->_internal_jumpspeedmin();
::uint64_t raw_jumpspeedmin;
memcpy(&raw_jumpspeedmin, &tmp_jumpspeedmin, sizeof(tmp_jumpspeedmin));
if (raw_jumpspeedmin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
26, this->_internal_jumpspeedmin(), target);
}
// double jumpSpeedMax = 27;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmax = this->_internal_jumpspeedmax();
::uint64_t raw_jumpspeedmax;
memcpy(&raw_jumpspeedmax, &tmp_jumpspeedmax, sizeof(tmp_jumpspeedmax));
if (raw_jumpspeedmax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
27, this->_internal_jumpspeedmax(), target);
}
// double markSpeed = 28;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeed = this->_internal_markspeed();
::uint64_t raw_markspeed;
memcpy(&raw_markspeed, &tmp_markspeed, sizeof(tmp_markspeed));
if (raw_markspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
28, this->_internal_markspeed(), target);
}
// double markSpeedMin = 29;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmin = this->_internal_markspeedmin();
::uint64_t raw_markspeedmin;
memcpy(&raw_markspeedmin, &tmp_markspeedmin, sizeof(tmp_markspeedmin));
if (raw_markspeedmin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
29, this->_internal_markspeedmin(), target);
}
// double markSpeedMax = 30;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmax = this->_internal_markspeedmax();
::uint64_t raw_markspeedmax;
memcpy(&raw_markspeedmax, &tmp_markspeedmax, sizeof(tmp_markspeedmax));
if (raw_markspeedmax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
30, this->_internal_markspeedmax(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ScanParamCfg)
return target;
}
::size_t ScanParamCfg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ScanParamCfg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 edgeLevel = 1;
if (this->_internal_edgelevel() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_edgelevel());
}
// int32 edgeLevelMin = 2;
if (this->_internal_edgelevelmin() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_edgelevelmin());
}
// int32 edgeLevelMax = 3;
if (this->_internal_edgelevelmax() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_edgelevelmax());
}
// uint32 jumpDelay = 4;
if (this->_internal_jumpdelay() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_jumpdelay());
}
// uint32 jumpDelayMin = 5;
if (this->_internal_jumpdelaymin() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_jumpdelaymin());
}
// uint32 jumpDelayMax = 6;
if (this->_internal_jumpdelaymax() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_jumpdelaymax());
}
// uint32 scanDelay = 7;
if (this->_internal_scandelay() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_scandelay());
}
// uint32 scanDelayMin = 8;
if (this->_internal_scandelaymin() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_scandelaymin());
}
// uint32 scanDelayMax = 9;
if (this->_internal_scandelaymax() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_scandelaymax());
}
// uint32 polygonDelay = 10;
if (this->_internal_polygondelay() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_polygondelay());
}
// uint32 polygonDelayMin = 11;
if (this->_internal_polygondelaymin() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_polygondelaymin());
}
// uint32 polygonDelayMax = 12;
if (this->_internal_polygondelaymax() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_polygondelaymax());
}
// int64 laseroffDelay = 13;
if (this->_internal_laseroffdelay() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseroffdelay());
}
// int64 laseroffDelayMin = 14;
if (this->_internal_laseroffdelaymin() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseroffdelaymin());
}
// int64 laseroffDelayMax = 15;
if (this->_internal_laseroffdelaymax() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseroffdelaymax());
}
// int64 laseronDelay = 16;
if (this->_internal_laserondelay() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
this->_internal_laserondelay());
}
// int64 laseronDelayMin = 17;
if (this->_internal_laserondelaymin() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
this->_internal_laserondelaymin());
}
// int64 laseronDelayMax = 18;
if (this->_internal_laserondelaymax() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
this->_internal_laserondelaymax());
}
// uint32 minJumpDelay = 19;
if (this->_internal_minjumpdelay() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_minjumpdelay());
}
// uint32 minJumpDelayMin = 20;
if (this->_internal_minjumpdelaymin() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_minjumpdelaymin());
}
// uint32 minJumpDelayMax = 21;
if (this->_internal_minjumpdelaymax() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_minjumpdelaymax());
}
// uint32 jumpLengthLimit = 22;
if (this->_internal_jumplengthlimit() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_jumplengthlimit());
}
// uint32 jumpLengthLimitMin = 23;
if (this->_internal_jumplengthlimitmin() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_jumplengthlimitmin());
}
// uint32 jumpLengthLimitMax = 24;
if (this->_internal_jumplengthlimitmax() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_jumplengthlimitmax());
}
// double jumpSpeed = 25;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeed = this->_internal_jumpspeed();
::uint64_t raw_jumpspeed;
memcpy(&raw_jumpspeed, &tmp_jumpspeed, sizeof(tmp_jumpspeed));
if (raw_jumpspeed != 0) {
total_size += 10;
}
// double jumpSpeedMin = 26;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmin = this->_internal_jumpspeedmin();
::uint64_t raw_jumpspeedmin;
memcpy(&raw_jumpspeedmin, &tmp_jumpspeedmin, sizeof(tmp_jumpspeedmin));
if (raw_jumpspeedmin != 0) {
total_size += 10;
}
// double jumpSpeedMax = 27;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmax = this->_internal_jumpspeedmax();
::uint64_t raw_jumpspeedmax;
memcpy(&raw_jumpspeedmax, &tmp_jumpspeedmax, sizeof(tmp_jumpspeedmax));
if (raw_jumpspeedmax != 0) {
total_size += 10;
}
// double markSpeed = 28;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeed = this->_internal_markspeed();
::uint64_t raw_markspeed;
memcpy(&raw_markspeed, &tmp_markspeed, sizeof(tmp_markspeed));
if (raw_markspeed != 0) {
total_size += 10;
}
// double markSpeedMin = 29;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmin = this->_internal_markspeedmin();
::uint64_t raw_markspeedmin;
memcpy(&raw_markspeedmin, &tmp_markspeedmin, sizeof(tmp_markspeedmin));
if (raw_markspeedmin != 0) {
total_size += 10;
}
// double markSpeedMax = 30;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmax = this->_internal_markspeedmax();
::uint64_t raw_markspeedmax;
memcpy(&raw_markspeedmax, &tmp_markspeedmax, sizeof(tmp_markspeedmax));
if (raw_markspeedmax != 0) {
total_size += 10;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ScanParamCfg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ScanParamCfg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ScanParamCfg::GetClassData() const { return &_class_data_; }
void ScanParamCfg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ScanParamCfg*>(&to_msg);
auto& from = static_cast<const ScanParamCfg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ScanParamCfg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_edgelevel() != 0) {
_this->_internal_set_edgelevel(from._internal_edgelevel());
}
if (from._internal_edgelevelmin() != 0) {
_this->_internal_set_edgelevelmin(from._internal_edgelevelmin());
}
if (from._internal_edgelevelmax() != 0) {
_this->_internal_set_edgelevelmax(from._internal_edgelevelmax());
}
if (from._internal_jumpdelay() != 0) {
_this->_internal_set_jumpdelay(from._internal_jumpdelay());
}
if (from._internal_jumpdelaymin() != 0) {
_this->_internal_set_jumpdelaymin(from._internal_jumpdelaymin());
}
if (from._internal_jumpdelaymax() != 0) {
_this->_internal_set_jumpdelaymax(from._internal_jumpdelaymax());
}
if (from._internal_scandelay() != 0) {
_this->_internal_set_scandelay(from._internal_scandelay());
}
if (from._internal_scandelaymin() != 0) {
_this->_internal_set_scandelaymin(from._internal_scandelaymin());
}
if (from._internal_scandelaymax() != 0) {
_this->_internal_set_scandelaymax(from._internal_scandelaymax());
}
if (from._internal_polygondelay() != 0) {
_this->_internal_set_polygondelay(from._internal_polygondelay());
}
if (from._internal_polygondelaymin() != 0) {
_this->_internal_set_polygondelaymin(from._internal_polygondelaymin());
}
if (from._internal_polygondelaymax() != 0) {
_this->_internal_set_polygondelaymax(from._internal_polygondelaymax());
}
if (from._internal_laseroffdelay() != 0) {
_this->_internal_set_laseroffdelay(from._internal_laseroffdelay());
}
if (from._internal_laseroffdelaymin() != 0) {
_this->_internal_set_laseroffdelaymin(from._internal_laseroffdelaymin());
}
if (from._internal_laseroffdelaymax() != 0) {
_this->_internal_set_laseroffdelaymax(from._internal_laseroffdelaymax());
}
if (from._internal_laserondelay() != 0) {
_this->_internal_set_laserondelay(from._internal_laserondelay());
}
if (from._internal_laserondelaymin() != 0) {
_this->_internal_set_laserondelaymin(from._internal_laserondelaymin());
}
if (from._internal_laserondelaymax() != 0) {
_this->_internal_set_laserondelaymax(from._internal_laserondelaymax());
}
if (from._internal_minjumpdelay() != 0) {
_this->_internal_set_minjumpdelay(from._internal_minjumpdelay());
}
if (from._internal_minjumpdelaymin() != 0) {
_this->_internal_set_minjumpdelaymin(from._internal_minjumpdelaymin());
}
if (from._internal_minjumpdelaymax() != 0) {
_this->_internal_set_minjumpdelaymax(from._internal_minjumpdelaymax());
}
if (from._internal_jumplengthlimit() != 0) {
_this->_internal_set_jumplengthlimit(from._internal_jumplengthlimit());
}
if (from._internal_jumplengthlimitmin() != 0) {
_this->_internal_set_jumplengthlimitmin(from._internal_jumplengthlimitmin());
}
if (from._internal_jumplengthlimitmax() != 0) {
_this->_internal_set_jumplengthlimitmax(from._internal_jumplengthlimitmax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeed = from._internal_jumpspeed();
::uint64_t raw_jumpspeed;
memcpy(&raw_jumpspeed, &tmp_jumpspeed, sizeof(tmp_jumpspeed));
if (raw_jumpspeed != 0) {
_this->_internal_set_jumpspeed(from._internal_jumpspeed());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmin = from._internal_jumpspeedmin();
::uint64_t raw_jumpspeedmin;
memcpy(&raw_jumpspeedmin, &tmp_jumpspeedmin, sizeof(tmp_jumpspeedmin));
if (raw_jumpspeedmin != 0) {
_this->_internal_set_jumpspeedmin(from._internal_jumpspeedmin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_jumpspeedmax = from._internal_jumpspeedmax();
::uint64_t raw_jumpspeedmax;
memcpy(&raw_jumpspeedmax, &tmp_jumpspeedmax, sizeof(tmp_jumpspeedmax));
if (raw_jumpspeedmax != 0) {
_this->_internal_set_jumpspeedmax(from._internal_jumpspeedmax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeed = from._internal_markspeed();
::uint64_t raw_markspeed;
memcpy(&raw_markspeed, &tmp_markspeed, sizeof(tmp_markspeed));
if (raw_markspeed != 0) {
_this->_internal_set_markspeed(from._internal_markspeed());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmin = from._internal_markspeedmin();
::uint64_t raw_markspeedmin;
memcpy(&raw_markspeedmin, &tmp_markspeedmin, sizeof(tmp_markspeedmin));
if (raw_markspeedmin != 0) {
_this->_internal_set_markspeedmin(from._internal_markspeedmin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_markspeedmax = from._internal_markspeedmax();
::uint64_t raw_markspeedmax;
memcpy(&raw_markspeedmax, &tmp_markspeedmax, sizeof(tmp_markspeedmax));
if (raw_markspeedmax != 0) {
_this->_internal_set_markspeedmax(from._internal_markspeedmax());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ScanParamCfg::CopyFrom(const ScanParamCfg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ScanParamCfg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ScanParamCfg::IsInitialized() const {
return true;
}
void ScanParamCfg::InternalSwap(ScanParamCfg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.markspeedmax_)
+ sizeof(ScanParamCfg::_impl_.markspeedmax_)
- PROTOBUF_FIELD_OFFSET(ScanParamCfg, _impl_.edgelevel_)>(
reinterpret_cast<char*>(&_impl_.edgelevel_),
reinterpret_cast<char*>(&other->_impl_.edgelevel_));
}
::google::protobuf::Metadata ScanParamCfg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[15]);
}
// ===================================================================
class CorrectParamCfg::_Internal {
public:
};
CorrectParamCfg::CorrectParamCfg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.CorrectParamCfg)
}
CorrectParamCfg::CorrectParamCfg(const CorrectParamCfg& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.CorrectParamCfg)
}
inline void CorrectParamCfg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.xmeasuremin_){0},
decltype(_impl_.xmeasuremax_){0},
decltype(_impl_.ymeasuremin_){0},
decltype(_impl_.ymeasuremax_){0},
decltype(_impl_.xposfix_){0},
decltype(_impl_.yposfix_){0},
decltype(_impl_.scanangle_){0},
decltype(_impl_.scananglemin_){0},
decltype(_impl_.scananglemax_){0},
decltype(_impl_.fixangle_){0},
decltype(_impl_.fixanglemin_){0},
decltype(_impl_.fixanglemax_){0},
decltype(_impl_.xcorrect_){0},
decltype(_impl_.ycorrect_){0},
decltype(_impl_.xcorrectmin_){0},
decltype(_impl_.xcorrectmax_){0},
decltype(_impl_.ycorrectmin_){0},
decltype(_impl_.ycorrectmax_){0},
decltype(_impl_.realxoffset_){0},
decltype(_impl_.realyoffset_){0},
decltype(_impl_.factork_){0},
decltype(_impl_.defocusratio_){0},
decltype(_impl_.defocusratiomin_){0},
decltype(_impl_.defocusratiomax_){0},
decltype(_impl_.iscorrectfile3d_){false},
decltype(_impl_.isdynamicfocus_){false},
/*decltype(_impl_._cached_size_)*/ {},
};
}
CorrectParamCfg::~CorrectParamCfg() {
// @@protoc_insertion_point(destructor:stream.CorrectParamCfg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void CorrectParamCfg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void CorrectParamCfg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void CorrectParamCfg::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.CorrectParamCfg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.xmeasuremin_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.isdynamicfocus_) -
reinterpret_cast<char*>(&_impl_.xmeasuremin_)) + sizeof(_impl_.isdynamicfocus_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* CorrectParamCfg::_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, 26, 0, 0, 2> CorrectParamCfg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
26, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4227858432, // skipmap
offsetof(decltype(_table_), field_entries),
26, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_CorrectParamCfg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// double xmeasureMin = 1;
{::_pbi::TcParser::FastF64S1,
{9, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xmeasuremin_)}},
// double xmeasureMax = 2;
{::_pbi::TcParser::FastF64S1,
{17, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xmeasuremax_)}},
// double ymeasureMin = 3;
{::_pbi::TcParser::FastF64S1,
{25, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ymeasuremin_)}},
// double ymeasureMax = 4;
{::_pbi::TcParser::FastF64S1,
{33, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ymeasuremax_)}},
// double xposfix = 5;
{::_pbi::TcParser::FastF64S1,
{41, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xposfix_)}},
// double yposfix = 6;
{::_pbi::TcParser::FastF64S1,
{49, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.yposfix_)}},
// double scanAngle = 7;
{::_pbi::TcParser::FastF64S1,
{57, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scanangle_)}},
// double scanAngleMin = 8;
{::_pbi::TcParser::FastF64S1,
{65, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scananglemin_)}},
// double scanAngleMax = 9;
{::_pbi::TcParser::FastF64S1,
{73, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scananglemax_)}},
// double fixAngle = 10;
{::_pbi::TcParser::FastF64S1,
{81, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixangle_)}},
// double fixAngleMin = 11;
{::_pbi::TcParser::FastF64S1,
{89, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixanglemin_)}},
// double fixAngleMax = 12;
{::_pbi::TcParser::FastF64S1,
{97, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixanglemax_)}},
// double xcorrect = 13;
{::_pbi::TcParser::FastF64S1,
{105, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrect_)}},
// double ycorrect = 14;
{::_pbi::TcParser::FastF64S1,
{113, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrect_)}},
// double xcorrectMin = 15;
{::_pbi::TcParser::FastF64S1,
{121, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrectmin_)}},
// double xcorrectMax = 16;
{::_pbi::TcParser::FastF64S2,
{385, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrectmax_)}},
// double ycorrectMin = 17;
{::_pbi::TcParser::FastF64S2,
{393, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrectmin_)}},
// double ycorrectMax = 18;
{::_pbi::TcParser::FastF64S2,
{401, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrectmax_)}},
// double realXOffset = 19;
{::_pbi::TcParser::FastF64S2,
{409, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.realxoffset_)}},
// double realYOffset = 20;
{::_pbi::TcParser::FastF64S2,
{417, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.realyoffset_)}},
// double factorK = 21;
{::_pbi::TcParser::FastF64S2,
{425, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.factork_)}},
// bool isCorrectFile3D = 22;
{::_pbi::TcParser::FastV8S2,
{432, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.iscorrectfile3d_)}},
// bool isDynamicFocus = 23;
{::_pbi::TcParser::FastV8S2,
{440, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.isdynamicfocus_)}},
// double defocusRatio = 24;
{::_pbi::TcParser::FastF64S2,
{449, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratio_)}},
// double defocusRatioMin = 25;
{::_pbi::TcParser::FastF64S2,
{457, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratiomin_)}},
// double defocusRatioMax = 26;
{::_pbi::TcParser::FastF64S2,
{465, 63, 0, PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratiomax_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// double xmeasureMin = 1;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xmeasuremin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double xmeasureMax = 2;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xmeasuremax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ymeasureMin = 3;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ymeasuremin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ymeasureMax = 4;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ymeasuremax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double xposfix = 5;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xposfix_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double yposfix = 6;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.yposfix_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double scanAngle = 7;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scanangle_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double scanAngleMin = 8;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scananglemin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double scanAngleMax = 9;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.scananglemax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double fixAngle = 10;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixangle_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double fixAngleMin = 11;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixanglemin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double fixAngleMax = 12;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.fixanglemax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double xcorrect = 13;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrect_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ycorrect = 14;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrect_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double xcorrectMin = 15;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrectmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double xcorrectMax = 16;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xcorrectmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ycorrectMin = 17;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrectmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ycorrectMax = 18;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.ycorrectmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double realXOffset = 19;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.realxoffset_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double realYOffset = 20;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.realyoffset_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double factorK = 21;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.factork_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// bool isCorrectFile3D = 22;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.iscorrectfile3d_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// bool isDynamicFocus = 23;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.isdynamicfocus_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// double defocusRatio = 24;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratio_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double defocusRatioMin = 25;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratiomin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double defocusRatioMax = 26;
{PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.defocusratiomax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
}},
// no aux_entries
{{
}},
};
::uint8_t* CorrectParamCfg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.CorrectParamCfg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// double xmeasureMin = 1;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremin = this->_internal_xmeasuremin();
::uint64_t raw_xmeasuremin;
memcpy(&raw_xmeasuremin, &tmp_xmeasuremin, sizeof(tmp_xmeasuremin));
if (raw_xmeasuremin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1, this->_internal_xmeasuremin(), target);
}
// double xmeasureMax = 2;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremax = this->_internal_xmeasuremax();
::uint64_t raw_xmeasuremax;
memcpy(&raw_xmeasuremax, &tmp_xmeasuremax, sizeof(tmp_xmeasuremax));
if (raw_xmeasuremax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2, this->_internal_xmeasuremax(), target);
}
// double ymeasureMin = 3;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremin = this->_internal_ymeasuremin();
::uint64_t raw_ymeasuremin;
memcpy(&raw_ymeasuremin, &tmp_ymeasuremin, sizeof(tmp_ymeasuremin));
if (raw_ymeasuremin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3, this->_internal_ymeasuremin(), target);
}
// double ymeasureMax = 4;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremax = this->_internal_ymeasuremax();
::uint64_t raw_ymeasuremax;
memcpy(&raw_ymeasuremax, &tmp_ymeasuremax, sizeof(tmp_ymeasuremax));
if (raw_ymeasuremax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4, this->_internal_ymeasuremax(), target);
}
// double xposfix = 5;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xposfix = this->_internal_xposfix();
::uint64_t raw_xposfix;
memcpy(&raw_xposfix, &tmp_xposfix, sizeof(tmp_xposfix));
if (raw_xposfix != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
5, this->_internal_xposfix(), target);
}
// double yposfix = 6;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_yposfix = this->_internal_yposfix();
::uint64_t raw_yposfix;
memcpy(&raw_yposfix, &tmp_yposfix, sizeof(tmp_yposfix));
if (raw_yposfix != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6, this->_internal_yposfix(), target);
}
// double scanAngle = 7;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scanangle = this->_internal_scanangle();
::uint64_t raw_scanangle;
memcpy(&raw_scanangle, &tmp_scanangle, sizeof(tmp_scanangle));
if (raw_scanangle != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
7, this->_internal_scanangle(), target);
}
// double scanAngleMin = 8;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemin = this->_internal_scananglemin();
::uint64_t raw_scananglemin;
memcpy(&raw_scananglemin, &tmp_scananglemin, sizeof(tmp_scananglemin));
if (raw_scananglemin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8, this->_internal_scananglemin(), target);
}
// double scanAngleMax = 9;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemax = this->_internal_scananglemax();
::uint64_t raw_scananglemax;
memcpy(&raw_scananglemax, &tmp_scananglemax, sizeof(tmp_scananglemax));
if (raw_scananglemax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
9, this->_internal_scananglemax(), target);
}
// double fixAngle = 10;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixangle = this->_internal_fixangle();
::uint64_t raw_fixangle;
memcpy(&raw_fixangle, &tmp_fixangle, sizeof(tmp_fixangle));
if (raw_fixangle != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
10, this->_internal_fixangle(), target);
}
// double fixAngleMin = 11;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemin = this->_internal_fixanglemin();
::uint64_t raw_fixanglemin;
memcpy(&raw_fixanglemin, &tmp_fixanglemin, sizeof(tmp_fixanglemin));
if (raw_fixanglemin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
11, this->_internal_fixanglemin(), target);
}
// double fixAngleMax = 12;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemax = this->_internal_fixanglemax();
::uint64_t raw_fixanglemax;
memcpy(&raw_fixanglemax, &tmp_fixanglemax, sizeof(tmp_fixanglemax));
if (raw_fixanglemax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
12, this->_internal_fixanglemax(), target);
}
// double xcorrect = 13;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrect = this->_internal_xcorrect();
::uint64_t raw_xcorrect;
memcpy(&raw_xcorrect, &tmp_xcorrect, sizeof(tmp_xcorrect));
if (raw_xcorrect != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
13, this->_internal_xcorrect(), target);
}
// double ycorrect = 14;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrect = this->_internal_ycorrect();
::uint64_t raw_ycorrect;
memcpy(&raw_ycorrect, &tmp_ycorrect, sizeof(tmp_ycorrect));
if (raw_ycorrect != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
14, this->_internal_ycorrect(), target);
}
// double xcorrectMin = 15;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmin = this->_internal_xcorrectmin();
::uint64_t raw_xcorrectmin;
memcpy(&raw_xcorrectmin, &tmp_xcorrectmin, sizeof(tmp_xcorrectmin));
if (raw_xcorrectmin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
15, this->_internal_xcorrectmin(), target);
}
// double xcorrectMax = 16;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmax = this->_internal_xcorrectmax();
::uint64_t raw_xcorrectmax;
memcpy(&raw_xcorrectmax, &tmp_xcorrectmax, sizeof(tmp_xcorrectmax));
if (raw_xcorrectmax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
16, this->_internal_xcorrectmax(), target);
}
// double ycorrectMin = 17;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmin = this->_internal_ycorrectmin();
::uint64_t raw_ycorrectmin;
memcpy(&raw_ycorrectmin, &tmp_ycorrectmin, sizeof(tmp_ycorrectmin));
if (raw_ycorrectmin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
17, this->_internal_ycorrectmin(), target);
}
// double ycorrectMax = 18;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmax = this->_internal_ycorrectmax();
::uint64_t raw_ycorrectmax;
memcpy(&raw_ycorrectmax, &tmp_ycorrectmax, sizeof(tmp_ycorrectmax));
if (raw_ycorrectmax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
18, this->_internal_ycorrectmax(), target);
}
// double realXOffset = 19;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realxoffset = this->_internal_realxoffset();
::uint64_t raw_realxoffset;
memcpy(&raw_realxoffset, &tmp_realxoffset, sizeof(tmp_realxoffset));
if (raw_realxoffset != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
19, this->_internal_realxoffset(), target);
}
// double realYOffset = 20;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realyoffset = this->_internal_realyoffset();
::uint64_t raw_realyoffset;
memcpy(&raw_realyoffset, &tmp_realyoffset, sizeof(tmp_realyoffset));
if (raw_realyoffset != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
20, this->_internal_realyoffset(), target);
}
// double factorK = 21;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_factork = this->_internal_factork();
::uint64_t raw_factork;
memcpy(&raw_factork, &tmp_factork, sizeof(tmp_factork));
if (raw_factork != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
21, this->_internal_factork(), target);
}
// bool isCorrectFile3D = 22;
if (this->_internal_iscorrectfile3d() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
22, this->_internal_iscorrectfile3d(), target);
}
// bool isDynamicFocus = 23;
if (this->_internal_isdynamicfocus() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
23, this->_internal_isdynamicfocus(), target);
}
// double defocusRatio = 24;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratio = this->_internal_defocusratio();
::uint64_t raw_defocusratio;
memcpy(&raw_defocusratio, &tmp_defocusratio, sizeof(tmp_defocusratio));
if (raw_defocusratio != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
24, this->_internal_defocusratio(), target);
}
// double defocusRatioMin = 25;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomin = this->_internal_defocusratiomin();
::uint64_t raw_defocusratiomin;
memcpy(&raw_defocusratiomin, &tmp_defocusratiomin, sizeof(tmp_defocusratiomin));
if (raw_defocusratiomin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
25, this->_internal_defocusratiomin(), target);
}
// double defocusRatioMax = 26;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomax = this->_internal_defocusratiomax();
::uint64_t raw_defocusratiomax;
memcpy(&raw_defocusratiomax, &tmp_defocusratiomax, sizeof(tmp_defocusratiomax));
if (raw_defocusratiomax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
26, this->_internal_defocusratiomax(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.CorrectParamCfg)
return target;
}
::size_t CorrectParamCfg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.CorrectParamCfg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// double xmeasureMin = 1;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremin = this->_internal_xmeasuremin();
::uint64_t raw_xmeasuremin;
memcpy(&raw_xmeasuremin, &tmp_xmeasuremin, sizeof(tmp_xmeasuremin));
if (raw_xmeasuremin != 0) {
total_size += 9;
}
// double xmeasureMax = 2;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremax = this->_internal_xmeasuremax();
::uint64_t raw_xmeasuremax;
memcpy(&raw_xmeasuremax, &tmp_xmeasuremax, sizeof(tmp_xmeasuremax));
if (raw_xmeasuremax != 0) {
total_size += 9;
}
// double ymeasureMin = 3;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremin = this->_internal_ymeasuremin();
::uint64_t raw_ymeasuremin;
memcpy(&raw_ymeasuremin, &tmp_ymeasuremin, sizeof(tmp_ymeasuremin));
if (raw_ymeasuremin != 0) {
total_size += 9;
}
// double ymeasureMax = 4;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremax = this->_internal_ymeasuremax();
::uint64_t raw_ymeasuremax;
memcpy(&raw_ymeasuremax, &tmp_ymeasuremax, sizeof(tmp_ymeasuremax));
if (raw_ymeasuremax != 0) {
total_size += 9;
}
// double xposfix = 5;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xposfix = this->_internal_xposfix();
::uint64_t raw_xposfix;
memcpy(&raw_xposfix, &tmp_xposfix, sizeof(tmp_xposfix));
if (raw_xposfix != 0) {
total_size += 9;
}
// double yposfix = 6;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_yposfix = this->_internal_yposfix();
::uint64_t raw_yposfix;
memcpy(&raw_yposfix, &tmp_yposfix, sizeof(tmp_yposfix));
if (raw_yposfix != 0) {
total_size += 9;
}
// double scanAngle = 7;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scanangle = this->_internal_scanangle();
::uint64_t raw_scanangle;
memcpy(&raw_scanangle, &tmp_scanangle, sizeof(tmp_scanangle));
if (raw_scanangle != 0) {
total_size += 9;
}
// double scanAngleMin = 8;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemin = this->_internal_scananglemin();
::uint64_t raw_scananglemin;
memcpy(&raw_scananglemin, &tmp_scananglemin, sizeof(tmp_scananglemin));
if (raw_scananglemin != 0) {
total_size += 9;
}
// double scanAngleMax = 9;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemax = this->_internal_scananglemax();
::uint64_t raw_scananglemax;
memcpy(&raw_scananglemax, &tmp_scananglemax, sizeof(tmp_scananglemax));
if (raw_scananglemax != 0) {
total_size += 9;
}
// double fixAngle = 10;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixangle = this->_internal_fixangle();
::uint64_t raw_fixangle;
memcpy(&raw_fixangle, &tmp_fixangle, sizeof(tmp_fixangle));
if (raw_fixangle != 0) {
total_size += 9;
}
// double fixAngleMin = 11;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemin = this->_internal_fixanglemin();
::uint64_t raw_fixanglemin;
memcpy(&raw_fixanglemin, &tmp_fixanglemin, sizeof(tmp_fixanglemin));
if (raw_fixanglemin != 0) {
total_size += 9;
}
// double fixAngleMax = 12;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemax = this->_internal_fixanglemax();
::uint64_t raw_fixanglemax;
memcpy(&raw_fixanglemax, &tmp_fixanglemax, sizeof(tmp_fixanglemax));
if (raw_fixanglemax != 0) {
total_size += 9;
}
// double xcorrect = 13;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrect = this->_internal_xcorrect();
::uint64_t raw_xcorrect;
memcpy(&raw_xcorrect, &tmp_xcorrect, sizeof(tmp_xcorrect));
if (raw_xcorrect != 0) {
total_size += 9;
}
// double ycorrect = 14;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrect = this->_internal_ycorrect();
::uint64_t raw_ycorrect;
memcpy(&raw_ycorrect, &tmp_ycorrect, sizeof(tmp_ycorrect));
if (raw_ycorrect != 0) {
total_size += 9;
}
// double xcorrectMin = 15;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmin = this->_internal_xcorrectmin();
::uint64_t raw_xcorrectmin;
memcpy(&raw_xcorrectmin, &tmp_xcorrectmin, sizeof(tmp_xcorrectmin));
if (raw_xcorrectmin != 0) {
total_size += 9;
}
// double xcorrectMax = 16;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmax = this->_internal_xcorrectmax();
::uint64_t raw_xcorrectmax;
memcpy(&raw_xcorrectmax, &tmp_xcorrectmax, sizeof(tmp_xcorrectmax));
if (raw_xcorrectmax != 0) {
total_size += 10;
}
// double ycorrectMin = 17;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmin = this->_internal_ycorrectmin();
::uint64_t raw_ycorrectmin;
memcpy(&raw_ycorrectmin, &tmp_ycorrectmin, sizeof(tmp_ycorrectmin));
if (raw_ycorrectmin != 0) {
total_size += 10;
}
// double ycorrectMax = 18;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmax = this->_internal_ycorrectmax();
::uint64_t raw_ycorrectmax;
memcpy(&raw_ycorrectmax, &tmp_ycorrectmax, sizeof(tmp_ycorrectmax));
if (raw_ycorrectmax != 0) {
total_size += 10;
}
// double realXOffset = 19;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realxoffset = this->_internal_realxoffset();
::uint64_t raw_realxoffset;
memcpy(&raw_realxoffset, &tmp_realxoffset, sizeof(tmp_realxoffset));
if (raw_realxoffset != 0) {
total_size += 10;
}
// double realYOffset = 20;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realyoffset = this->_internal_realyoffset();
::uint64_t raw_realyoffset;
memcpy(&raw_realyoffset, &tmp_realyoffset, sizeof(tmp_realyoffset));
if (raw_realyoffset != 0) {
total_size += 10;
}
// double factorK = 21;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_factork = this->_internal_factork();
::uint64_t raw_factork;
memcpy(&raw_factork, &tmp_factork, sizeof(tmp_factork));
if (raw_factork != 0) {
total_size += 10;
}
// double defocusRatio = 24;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratio = this->_internal_defocusratio();
::uint64_t raw_defocusratio;
memcpy(&raw_defocusratio, &tmp_defocusratio, sizeof(tmp_defocusratio));
if (raw_defocusratio != 0) {
total_size += 10;
}
// double defocusRatioMin = 25;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomin = this->_internal_defocusratiomin();
::uint64_t raw_defocusratiomin;
memcpy(&raw_defocusratiomin, &tmp_defocusratiomin, sizeof(tmp_defocusratiomin));
if (raw_defocusratiomin != 0) {
total_size += 10;
}
// double defocusRatioMax = 26;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomax = this->_internal_defocusratiomax();
::uint64_t raw_defocusratiomax;
memcpy(&raw_defocusratiomax, &tmp_defocusratiomax, sizeof(tmp_defocusratiomax));
if (raw_defocusratiomax != 0) {
total_size += 10;
}
// bool isCorrectFile3D = 22;
if (this->_internal_iscorrectfile3d() != 0) {
total_size += 3;
}
// bool isDynamicFocus = 23;
if (this->_internal_isdynamicfocus() != 0) {
total_size += 3;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData CorrectParamCfg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
CorrectParamCfg::MergeImpl
};
const ::google::protobuf::Message::ClassData*CorrectParamCfg::GetClassData() const { return &_class_data_; }
void CorrectParamCfg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<CorrectParamCfg*>(&to_msg);
auto& from = static_cast<const CorrectParamCfg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.CorrectParamCfg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremin = from._internal_xmeasuremin();
::uint64_t raw_xmeasuremin;
memcpy(&raw_xmeasuremin, &tmp_xmeasuremin, sizeof(tmp_xmeasuremin));
if (raw_xmeasuremin != 0) {
_this->_internal_set_xmeasuremin(from._internal_xmeasuremin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xmeasuremax = from._internal_xmeasuremax();
::uint64_t raw_xmeasuremax;
memcpy(&raw_xmeasuremax, &tmp_xmeasuremax, sizeof(tmp_xmeasuremax));
if (raw_xmeasuremax != 0) {
_this->_internal_set_xmeasuremax(from._internal_xmeasuremax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremin = from._internal_ymeasuremin();
::uint64_t raw_ymeasuremin;
memcpy(&raw_ymeasuremin, &tmp_ymeasuremin, sizeof(tmp_ymeasuremin));
if (raw_ymeasuremin != 0) {
_this->_internal_set_ymeasuremin(from._internal_ymeasuremin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ymeasuremax = from._internal_ymeasuremax();
::uint64_t raw_ymeasuremax;
memcpy(&raw_ymeasuremax, &tmp_ymeasuremax, sizeof(tmp_ymeasuremax));
if (raw_ymeasuremax != 0) {
_this->_internal_set_ymeasuremax(from._internal_ymeasuremax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xposfix = from._internal_xposfix();
::uint64_t raw_xposfix;
memcpy(&raw_xposfix, &tmp_xposfix, sizeof(tmp_xposfix));
if (raw_xposfix != 0) {
_this->_internal_set_xposfix(from._internal_xposfix());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_yposfix = from._internal_yposfix();
::uint64_t raw_yposfix;
memcpy(&raw_yposfix, &tmp_yposfix, sizeof(tmp_yposfix));
if (raw_yposfix != 0) {
_this->_internal_set_yposfix(from._internal_yposfix());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scanangle = from._internal_scanangle();
::uint64_t raw_scanangle;
memcpy(&raw_scanangle, &tmp_scanangle, sizeof(tmp_scanangle));
if (raw_scanangle != 0) {
_this->_internal_set_scanangle(from._internal_scanangle());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemin = from._internal_scananglemin();
::uint64_t raw_scananglemin;
memcpy(&raw_scananglemin, &tmp_scananglemin, sizeof(tmp_scananglemin));
if (raw_scananglemin != 0) {
_this->_internal_set_scananglemin(from._internal_scananglemin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_scananglemax = from._internal_scananglemax();
::uint64_t raw_scananglemax;
memcpy(&raw_scananglemax, &tmp_scananglemax, sizeof(tmp_scananglemax));
if (raw_scananglemax != 0) {
_this->_internal_set_scananglemax(from._internal_scananglemax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixangle = from._internal_fixangle();
::uint64_t raw_fixangle;
memcpy(&raw_fixangle, &tmp_fixangle, sizeof(tmp_fixangle));
if (raw_fixangle != 0) {
_this->_internal_set_fixangle(from._internal_fixangle());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemin = from._internal_fixanglemin();
::uint64_t raw_fixanglemin;
memcpy(&raw_fixanglemin, &tmp_fixanglemin, sizeof(tmp_fixanglemin));
if (raw_fixanglemin != 0) {
_this->_internal_set_fixanglemin(from._internal_fixanglemin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_fixanglemax = from._internal_fixanglemax();
::uint64_t raw_fixanglemax;
memcpy(&raw_fixanglemax, &tmp_fixanglemax, sizeof(tmp_fixanglemax));
if (raw_fixanglemax != 0) {
_this->_internal_set_fixanglemax(from._internal_fixanglemax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrect = from._internal_xcorrect();
::uint64_t raw_xcorrect;
memcpy(&raw_xcorrect, &tmp_xcorrect, sizeof(tmp_xcorrect));
if (raw_xcorrect != 0) {
_this->_internal_set_xcorrect(from._internal_xcorrect());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrect = from._internal_ycorrect();
::uint64_t raw_ycorrect;
memcpy(&raw_ycorrect, &tmp_ycorrect, sizeof(tmp_ycorrect));
if (raw_ycorrect != 0) {
_this->_internal_set_ycorrect(from._internal_ycorrect());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmin = from._internal_xcorrectmin();
::uint64_t raw_xcorrectmin;
memcpy(&raw_xcorrectmin, &tmp_xcorrectmin, sizeof(tmp_xcorrectmin));
if (raw_xcorrectmin != 0) {
_this->_internal_set_xcorrectmin(from._internal_xcorrectmin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_xcorrectmax = from._internal_xcorrectmax();
::uint64_t raw_xcorrectmax;
memcpy(&raw_xcorrectmax, &tmp_xcorrectmax, sizeof(tmp_xcorrectmax));
if (raw_xcorrectmax != 0) {
_this->_internal_set_xcorrectmax(from._internal_xcorrectmax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmin = from._internal_ycorrectmin();
::uint64_t raw_ycorrectmin;
memcpy(&raw_ycorrectmin, &tmp_ycorrectmin, sizeof(tmp_ycorrectmin));
if (raw_ycorrectmin != 0) {
_this->_internal_set_ycorrectmin(from._internal_ycorrectmin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_ycorrectmax = from._internal_ycorrectmax();
::uint64_t raw_ycorrectmax;
memcpy(&raw_ycorrectmax, &tmp_ycorrectmax, sizeof(tmp_ycorrectmax));
if (raw_ycorrectmax != 0) {
_this->_internal_set_ycorrectmax(from._internal_ycorrectmax());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realxoffset = from._internal_realxoffset();
::uint64_t raw_realxoffset;
memcpy(&raw_realxoffset, &tmp_realxoffset, sizeof(tmp_realxoffset));
if (raw_realxoffset != 0) {
_this->_internal_set_realxoffset(from._internal_realxoffset());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_realyoffset = from._internal_realyoffset();
::uint64_t raw_realyoffset;
memcpy(&raw_realyoffset, &tmp_realyoffset, sizeof(tmp_realyoffset));
if (raw_realyoffset != 0) {
_this->_internal_set_realyoffset(from._internal_realyoffset());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_factork = from._internal_factork();
::uint64_t raw_factork;
memcpy(&raw_factork, &tmp_factork, sizeof(tmp_factork));
if (raw_factork != 0) {
_this->_internal_set_factork(from._internal_factork());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratio = from._internal_defocusratio();
::uint64_t raw_defocusratio;
memcpy(&raw_defocusratio, &tmp_defocusratio, sizeof(tmp_defocusratio));
if (raw_defocusratio != 0) {
_this->_internal_set_defocusratio(from._internal_defocusratio());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomin = from._internal_defocusratiomin();
::uint64_t raw_defocusratiomin;
memcpy(&raw_defocusratiomin, &tmp_defocusratiomin, sizeof(tmp_defocusratiomin));
if (raw_defocusratiomin != 0) {
_this->_internal_set_defocusratiomin(from._internal_defocusratiomin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocusratiomax = from._internal_defocusratiomax();
::uint64_t raw_defocusratiomax;
memcpy(&raw_defocusratiomax, &tmp_defocusratiomax, sizeof(tmp_defocusratiomax));
if (raw_defocusratiomax != 0) {
_this->_internal_set_defocusratiomax(from._internal_defocusratiomax());
}
if (from._internal_iscorrectfile3d() != 0) {
_this->_internal_set_iscorrectfile3d(from._internal_iscorrectfile3d());
}
if (from._internal_isdynamicfocus() != 0) {
_this->_internal_set_isdynamicfocus(from._internal_isdynamicfocus());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void CorrectParamCfg::CopyFrom(const CorrectParamCfg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.CorrectParamCfg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool CorrectParamCfg::IsInitialized() const {
return true;
}
void CorrectParamCfg::InternalSwap(CorrectParamCfg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.isdynamicfocus_)
+ sizeof(CorrectParamCfg::_impl_.isdynamicfocus_)
- PROTOBUF_FIELD_OFFSET(CorrectParamCfg, _impl_.xmeasuremin_)>(
reinterpret_cast<char*>(&_impl_.xmeasuremin_),
reinterpret_cast<char*>(&other->_impl_.xmeasuremin_));
}
::google::protobuf::Metadata CorrectParamCfg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[16]);
}
// ===================================================================
class ScanTestCfg::_Internal {
public:
};
ScanTestCfg::ScanTestCfg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.ScanTestCfg)
}
ScanTestCfg::ScanTestCfg(const ScanTestCfg& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.ScanTestCfg)
}
inline void ScanTestCfg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.debugshape_){0},
decltype(_impl_.shapesize_){0},
decltype(_impl_.shapesizemin_){0},
decltype(_impl_.shape_size_max_){0},
decltype(_impl_.laser_power_){0},
decltype(_impl_.laser_power_min_){0},
decltype(_impl_.defocus_){0},
decltype(_impl_.defocus_min_){0},
decltype(_impl_.defocus_max_){0},
decltype(_impl_.laser_power_max_){0},
decltype(_impl_.is_cycle_){false},
decltype(_impl_.isautoheatingscanner_){false},
decltype(_impl_.cross_x_){0},
decltype(_impl_.cross_y_){0},
decltype(_impl_.z_distance_){0},
decltype(_impl_.autoheatingscannerminutes_){0u},
decltype(_impl_.autoheatingscannersize_){0u},
decltype(_impl_.autoheatingscannerspeed_){0},
decltype(_impl_.mark_test_start_x_){0},
decltype(_impl_.mark_test_start_y_){0},
decltype(_impl_.mark_test_end_x_){0},
decltype(_impl_.mark_test_end_y_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
ScanTestCfg::~ScanTestCfg() {
// @@protoc_insertion_point(destructor:stream.ScanTestCfg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ScanTestCfg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void ScanTestCfg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void ScanTestCfg::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.ScanTestCfg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.debugshape_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.mark_test_end_y_) -
reinterpret_cast<char*>(&_impl_.debugshape_)) + sizeof(_impl_.mark_test_end_y_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* ScanTestCfg::_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, 22, 0, 0, 2> ScanTestCfg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
22, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4290772992, // skipmap
offsetof(decltype(_table_), field_entries),
22, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_ScanTestCfg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 debugShape = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.debugshape_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.debugshape_)}},
// int32 shapeSize = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.shapesize_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shapesize_)}},
// int32 shapeSizeMin = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.shapesizemin_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shapesizemin_)}},
// int32 shape_size_max = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.shape_size_max_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shape_size_max_)}},
// int32 laser_power = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.laser_power_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_)}},
// int32 laser_power_min = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.laser_power_min_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_min_)}},
// int32 laser_power_max = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanTestCfg, _impl_.laser_power_max_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_max_)}},
// double defocus = 8;
{::_pbi::TcParser::FastF64S1,
{65, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_)}},
// double defocus_min = 9;
{::_pbi::TcParser::FastF64S1,
{73, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_min_)}},
// double defocus_max = 10;
{::_pbi::TcParser::FastF64S1,
{81, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_max_)}},
// bool is_cycle = 11;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ScanTestCfg, _impl_.is_cycle_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.is_cycle_)}},
// double cross_x = 12;
{::_pbi::TcParser::FastF64S1,
{97, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.cross_x_)}},
// double cross_y = 13;
{::_pbi::TcParser::FastF64S1,
{105, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.cross_y_)}},
// double z_distance = 14;
{::_pbi::TcParser::FastF64S1,
{113, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.z_distance_)}},
// bool isAutoHeatingScanner = 15;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ScanTestCfg, _impl_.isautoheatingscanner_), 63>(),
{120, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.isautoheatingscanner_)}},
// uint32 autoHeatingScannerMinutes = 16;
{::_pbi::TcParser::FastV32S2,
{384, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannerminutes_)}},
// uint32 autoHeatingScannerSize = 17;
{::_pbi::TcParser::FastV32S2,
{392, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannersize_)}},
// double autoHeatingScannerSpeed = 18;
{::_pbi::TcParser::FastF64S2,
{401, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannerspeed_)}},
// double mark_test_start_x = 19;
{::_pbi::TcParser::FastF64S2,
{409, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_start_x_)}},
// double mark_test_start_y = 20;
{::_pbi::TcParser::FastF64S2,
{417, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_start_y_)}},
// double mark_test_end_x = 21;
{::_pbi::TcParser::FastF64S2,
{425, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_end_x_)}},
// double mark_test_end_y = 22;
{::_pbi::TcParser::FastF64S2,
{433, 63, 0, PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_end_y_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 debugShape = 1;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.debugshape_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 shapeSize = 2;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shapesize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 shapeSizeMin = 3;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shapesizemin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 shape_size_max = 4;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.shape_size_max_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 laser_power = 5;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 laser_power_min = 6;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_min_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 laser_power_max = 7;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.laser_power_max_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double defocus = 8;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double defocus_min = 9;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_min_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double defocus_max = 10;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.defocus_max_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// bool is_cycle = 11;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.is_cycle_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// double cross_x = 12;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.cross_x_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double cross_y = 13;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.cross_y_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double z_distance = 14;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.z_distance_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// bool isAutoHeatingScanner = 15;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.isautoheatingscanner_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// uint32 autoHeatingScannerMinutes = 16;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannerminutes_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 autoHeatingScannerSize = 17;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannersize_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// double autoHeatingScannerSpeed = 18;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.autoheatingscannerspeed_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double mark_test_start_x = 19;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_start_x_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double mark_test_start_y = 20;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_start_y_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double mark_test_end_x = 21;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_end_x_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double mark_test_end_y = 22;
{PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_end_y_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
}},
// no aux_entries
{{
}},
};
::uint8_t* ScanTestCfg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.ScanTestCfg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 debugShape = 1;
if (this->_internal_debugshape() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_debugshape(), target);
}
// int32 shapeSize = 2;
if (this->_internal_shapesize() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_shapesize(), target);
}
// int32 shapeSizeMin = 3;
if (this->_internal_shapesizemin() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<3>(
stream, this->_internal_shapesizemin(), target);
}
// int32 shape_size_max = 4;
if (this->_internal_shape_size_max() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<4>(
stream, this->_internal_shape_size_max(), target);
}
// int32 laser_power = 5;
if (this->_internal_laser_power() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<5>(
stream, this->_internal_laser_power(), target);
}
// int32 laser_power_min = 6;
if (this->_internal_laser_power_min() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<6>(
stream, this->_internal_laser_power_min(), target);
}
// int32 laser_power_max = 7;
if (this->_internal_laser_power_max() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<7>(
stream, this->_internal_laser_power_max(), target);
}
// double defocus = 8;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus = this->_internal_defocus();
::uint64_t raw_defocus;
memcpy(&raw_defocus, &tmp_defocus, sizeof(tmp_defocus));
if (raw_defocus != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8, this->_internal_defocus(), target);
}
// double defocus_min = 9;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_min = this->_internal_defocus_min();
::uint64_t raw_defocus_min;
memcpy(&raw_defocus_min, &tmp_defocus_min, sizeof(tmp_defocus_min));
if (raw_defocus_min != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
9, this->_internal_defocus_min(), target);
}
// double defocus_max = 10;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_max = this->_internal_defocus_max();
::uint64_t raw_defocus_max;
memcpy(&raw_defocus_max, &tmp_defocus_max, sizeof(tmp_defocus_max));
if (raw_defocus_max != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
10, this->_internal_defocus_max(), target);
}
// bool is_cycle = 11;
if (this->_internal_is_cycle() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
11, this->_internal_is_cycle(), target);
}
// double cross_x = 12;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_x = this->_internal_cross_x();
::uint64_t raw_cross_x;
memcpy(&raw_cross_x, &tmp_cross_x, sizeof(tmp_cross_x));
if (raw_cross_x != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
12, this->_internal_cross_x(), target);
}
// double cross_y = 13;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_y = this->_internal_cross_y();
::uint64_t raw_cross_y;
memcpy(&raw_cross_y, &tmp_cross_y, sizeof(tmp_cross_y));
if (raw_cross_y != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
13, this->_internal_cross_y(), target);
}
// double z_distance = 14;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_z_distance = this->_internal_z_distance();
::uint64_t raw_z_distance;
memcpy(&raw_z_distance, &tmp_z_distance, sizeof(tmp_z_distance));
if (raw_z_distance != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
14, this->_internal_z_distance(), target);
}
// bool isAutoHeatingScanner = 15;
if (this->_internal_isautoheatingscanner() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
15, this->_internal_isautoheatingscanner(), target);
}
// uint32 autoHeatingScannerMinutes = 16;
if (this->_internal_autoheatingscannerminutes() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
16, this->_internal_autoheatingscannerminutes(), target);
}
// uint32 autoHeatingScannerSize = 17;
if (this->_internal_autoheatingscannersize() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
17, this->_internal_autoheatingscannersize(), target);
}
// double autoHeatingScannerSpeed = 18;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_autoheatingscannerspeed = this->_internal_autoheatingscannerspeed();
::uint64_t raw_autoheatingscannerspeed;
memcpy(&raw_autoheatingscannerspeed, &tmp_autoheatingscannerspeed, sizeof(tmp_autoheatingscannerspeed));
if (raw_autoheatingscannerspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
18, this->_internal_autoheatingscannerspeed(), target);
}
// double mark_test_start_x = 19;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_x = this->_internal_mark_test_start_x();
::uint64_t raw_mark_test_start_x;
memcpy(&raw_mark_test_start_x, &tmp_mark_test_start_x, sizeof(tmp_mark_test_start_x));
if (raw_mark_test_start_x != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
19, this->_internal_mark_test_start_x(), target);
}
// double mark_test_start_y = 20;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_y = this->_internal_mark_test_start_y();
::uint64_t raw_mark_test_start_y;
memcpy(&raw_mark_test_start_y, &tmp_mark_test_start_y, sizeof(tmp_mark_test_start_y));
if (raw_mark_test_start_y != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
20, this->_internal_mark_test_start_y(), target);
}
// double mark_test_end_x = 21;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_x = this->_internal_mark_test_end_x();
::uint64_t raw_mark_test_end_x;
memcpy(&raw_mark_test_end_x, &tmp_mark_test_end_x, sizeof(tmp_mark_test_end_x));
if (raw_mark_test_end_x != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
21, this->_internal_mark_test_end_x(), target);
}
// double mark_test_end_y = 22;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_y = this->_internal_mark_test_end_y();
::uint64_t raw_mark_test_end_y;
memcpy(&raw_mark_test_end_y, &tmp_mark_test_end_y, sizeof(tmp_mark_test_end_y));
if (raw_mark_test_end_y != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
22, this->_internal_mark_test_end_y(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.ScanTestCfg)
return target;
}
::size_t ScanTestCfg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.ScanTestCfg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 debugShape = 1;
if (this->_internal_debugshape() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_debugshape());
}
// int32 shapeSize = 2;
if (this->_internal_shapesize() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_shapesize());
}
// int32 shapeSizeMin = 3;
if (this->_internal_shapesizemin() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_shapesizemin());
}
// int32 shape_size_max = 4;
if (this->_internal_shape_size_max() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_shape_size_max());
}
// int32 laser_power = 5;
if (this->_internal_laser_power() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_laser_power());
}
// int32 laser_power_min = 6;
if (this->_internal_laser_power_min() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_laser_power_min());
}
// double defocus = 8;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus = this->_internal_defocus();
::uint64_t raw_defocus;
memcpy(&raw_defocus, &tmp_defocus, sizeof(tmp_defocus));
if (raw_defocus != 0) {
total_size += 9;
}
// double defocus_min = 9;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_min = this->_internal_defocus_min();
::uint64_t raw_defocus_min;
memcpy(&raw_defocus_min, &tmp_defocus_min, sizeof(tmp_defocus_min));
if (raw_defocus_min != 0) {
total_size += 9;
}
// double defocus_max = 10;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_max = this->_internal_defocus_max();
::uint64_t raw_defocus_max;
memcpy(&raw_defocus_max, &tmp_defocus_max, sizeof(tmp_defocus_max));
if (raw_defocus_max != 0) {
total_size += 9;
}
// int32 laser_power_max = 7;
if (this->_internal_laser_power_max() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_laser_power_max());
}
// bool is_cycle = 11;
if (this->_internal_is_cycle() != 0) {
total_size += 2;
}
// bool isAutoHeatingScanner = 15;
if (this->_internal_isautoheatingscanner() != 0) {
total_size += 2;
}
// double cross_x = 12;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_x = this->_internal_cross_x();
::uint64_t raw_cross_x;
memcpy(&raw_cross_x, &tmp_cross_x, sizeof(tmp_cross_x));
if (raw_cross_x != 0) {
total_size += 9;
}
// double cross_y = 13;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_y = this->_internal_cross_y();
::uint64_t raw_cross_y;
memcpy(&raw_cross_y, &tmp_cross_y, sizeof(tmp_cross_y));
if (raw_cross_y != 0) {
total_size += 9;
}
// double z_distance = 14;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_z_distance = this->_internal_z_distance();
::uint64_t raw_z_distance;
memcpy(&raw_z_distance, &tmp_z_distance, sizeof(tmp_z_distance));
if (raw_z_distance != 0) {
total_size += 9;
}
// uint32 autoHeatingScannerMinutes = 16;
if (this->_internal_autoheatingscannerminutes() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_autoheatingscannerminutes());
}
// uint32 autoHeatingScannerSize = 17;
if (this->_internal_autoheatingscannersize() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::UInt32Size(
this->_internal_autoheatingscannersize());
}
// double autoHeatingScannerSpeed = 18;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_autoheatingscannerspeed = this->_internal_autoheatingscannerspeed();
::uint64_t raw_autoheatingscannerspeed;
memcpy(&raw_autoheatingscannerspeed, &tmp_autoheatingscannerspeed, sizeof(tmp_autoheatingscannerspeed));
if (raw_autoheatingscannerspeed != 0) {
total_size += 10;
}
// double mark_test_start_x = 19;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_x = this->_internal_mark_test_start_x();
::uint64_t raw_mark_test_start_x;
memcpy(&raw_mark_test_start_x, &tmp_mark_test_start_x, sizeof(tmp_mark_test_start_x));
if (raw_mark_test_start_x != 0) {
total_size += 10;
}
// double mark_test_start_y = 20;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_y = this->_internal_mark_test_start_y();
::uint64_t raw_mark_test_start_y;
memcpy(&raw_mark_test_start_y, &tmp_mark_test_start_y, sizeof(tmp_mark_test_start_y));
if (raw_mark_test_start_y != 0) {
total_size += 10;
}
// double mark_test_end_x = 21;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_x = this->_internal_mark_test_end_x();
::uint64_t raw_mark_test_end_x;
memcpy(&raw_mark_test_end_x, &tmp_mark_test_end_x, sizeof(tmp_mark_test_end_x));
if (raw_mark_test_end_x != 0) {
total_size += 10;
}
// double mark_test_end_y = 22;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_y = this->_internal_mark_test_end_y();
::uint64_t raw_mark_test_end_y;
memcpy(&raw_mark_test_end_y, &tmp_mark_test_end_y, sizeof(tmp_mark_test_end_y));
if (raw_mark_test_end_y != 0) {
total_size += 10;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData ScanTestCfg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
ScanTestCfg::MergeImpl
};
const ::google::protobuf::Message::ClassData*ScanTestCfg::GetClassData() const { return &_class_data_; }
void ScanTestCfg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<ScanTestCfg*>(&to_msg);
auto& from = static_cast<const ScanTestCfg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.ScanTestCfg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_debugshape() != 0) {
_this->_internal_set_debugshape(from._internal_debugshape());
}
if (from._internal_shapesize() != 0) {
_this->_internal_set_shapesize(from._internal_shapesize());
}
if (from._internal_shapesizemin() != 0) {
_this->_internal_set_shapesizemin(from._internal_shapesizemin());
}
if (from._internal_shape_size_max() != 0) {
_this->_internal_set_shape_size_max(from._internal_shape_size_max());
}
if (from._internal_laser_power() != 0) {
_this->_internal_set_laser_power(from._internal_laser_power());
}
if (from._internal_laser_power_min() != 0) {
_this->_internal_set_laser_power_min(from._internal_laser_power_min());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus = from._internal_defocus();
::uint64_t raw_defocus;
memcpy(&raw_defocus, &tmp_defocus, sizeof(tmp_defocus));
if (raw_defocus != 0) {
_this->_internal_set_defocus(from._internal_defocus());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_min = from._internal_defocus_min();
::uint64_t raw_defocus_min;
memcpy(&raw_defocus_min, &tmp_defocus_min, sizeof(tmp_defocus_min));
if (raw_defocus_min != 0) {
_this->_internal_set_defocus_min(from._internal_defocus_min());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_defocus_max = from._internal_defocus_max();
::uint64_t raw_defocus_max;
memcpy(&raw_defocus_max, &tmp_defocus_max, sizeof(tmp_defocus_max));
if (raw_defocus_max != 0) {
_this->_internal_set_defocus_max(from._internal_defocus_max());
}
if (from._internal_laser_power_max() != 0) {
_this->_internal_set_laser_power_max(from._internal_laser_power_max());
}
if (from._internal_is_cycle() != 0) {
_this->_internal_set_is_cycle(from._internal_is_cycle());
}
if (from._internal_isautoheatingscanner() != 0) {
_this->_internal_set_isautoheatingscanner(from._internal_isautoheatingscanner());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_x = from._internal_cross_x();
::uint64_t raw_cross_x;
memcpy(&raw_cross_x, &tmp_cross_x, sizeof(tmp_cross_x));
if (raw_cross_x != 0) {
_this->_internal_set_cross_x(from._internal_cross_x());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_cross_y = from._internal_cross_y();
::uint64_t raw_cross_y;
memcpy(&raw_cross_y, &tmp_cross_y, sizeof(tmp_cross_y));
if (raw_cross_y != 0) {
_this->_internal_set_cross_y(from._internal_cross_y());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_z_distance = from._internal_z_distance();
::uint64_t raw_z_distance;
memcpy(&raw_z_distance, &tmp_z_distance, sizeof(tmp_z_distance));
if (raw_z_distance != 0) {
_this->_internal_set_z_distance(from._internal_z_distance());
}
if (from._internal_autoheatingscannerminutes() != 0) {
_this->_internal_set_autoheatingscannerminutes(from._internal_autoheatingscannerminutes());
}
if (from._internal_autoheatingscannersize() != 0) {
_this->_internal_set_autoheatingscannersize(from._internal_autoheatingscannersize());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_autoheatingscannerspeed = from._internal_autoheatingscannerspeed();
::uint64_t raw_autoheatingscannerspeed;
memcpy(&raw_autoheatingscannerspeed, &tmp_autoheatingscannerspeed, sizeof(tmp_autoheatingscannerspeed));
if (raw_autoheatingscannerspeed != 0) {
_this->_internal_set_autoheatingscannerspeed(from._internal_autoheatingscannerspeed());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_x = from._internal_mark_test_start_x();
::uint64_t raw_mark_test_start_x;
memcpy(&raw_mark_test_start_x, &tmp_mark_test_start_x, sizeof(tmp_mark_test_start_x));
if (raw_mark_test_start_x != 0) {
_this->_internal_set_mark_test_start_x(from._internal_mark_test_start_x());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_start_y = from._internal_mark_test_start_y();
::uint64_t raw_mark_test_start_y;
memcpy(&raw_mark_test_start_y, &tmp_mark_test_start_y, sizeof(tmp_mark_test_start_y));
if (raw_mark_test_start_y != 0) {
_this->_internal_set_mark_test_start_y(from._internal_mark_test_start_y());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_x = from._internal_mark_test_end_x();
::uint64_t raw_mark_test_end_x;
memcpy(&raw_mark_test_end_x, &tmp_mark_test_end_x, sizeof(tmp_mark_test_end_x));
if (raw_mark_test_end_x != 0) {
_this->_internal_set_mark_test_end_x(from._internal_mark_test_end_x());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_mark_test_end_y = from._internal_mark_test_end_y();
::uint64_t raw_mark_test_end_y;
memcpy(&raw_mark_test_end_y, &tmp_mark_test_end_y, sizeof(tmp_mark_test_end_y));
if (raw_mark_test_end_y != 0) {
_this->_internal_set_mark_test_end_y(from._internal_mark_test_end_y());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ScanTestCfg::CopyFrom(const ScanTestCfg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.ScanTestCfg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool ScanTestCfg::IsInitialized() const {
return true;
}
void ScanTestCfg::InternalSwap(ScanTestCfg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.mark_test_end_y_)
+ sizeof(ScanTestCfg::_impl_.mark_test_end_y_)
- PROTOBUF_FIELD_OFFSET(ScanTestCfg, _impl_.debugshape_)>(
reinterpret_cast<char*>(&_impl_.debugshape_),
reinterpret_cast<char*>(&other->_impl_.debugshape_));
}
::google::protobuf::Metadata ScanTestCfg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[17]);
}
// ===================================================================
class SkyWritingCfg::_Internal {
public:
};
SkyWritingCfg::SkyWritingCfg(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.SkyWritingCfg)
}
SkyWritingCfg::SkyWritingCfg(const SkyWritingCfg& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.SkyWritingCfg)
}
inline void SkyWritingCfg::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.timelag_){0},
decltype(_impl_.timelagmin_){0},
decltype(_impl_.timelagmax_){0},
decltype(_impl_.isenable_){false},
decltype(_impl_.nprev_){0u},
decltype(_impl_.laseronshift_){::int64_t{0}},
decltype(_impl_.laseronshiftmin_){::int64_t{0}},
decltype(_impl_.laseronshiftmax_){::int64_t{0}},
decltype(_impl_.nprevmin_){0u},
decltype(_impl_.nprevmax_){0u},
decltype(_impl_.npost_){0u},
decltype(_impl_.npostmin_){0u},
decltype(_impl_.npostmax_){0u},
decltype(_impl_.mode_){0},
decltype(_impl_.limite_){0},
decltype(_impl_.limitemin_){0},
decltype(_impl_.limitemax_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
SkyWritingCfg::~SkyWritingCfg() {
// @@protoc_insertion_point(destructor:stream.SkyWritingCfg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void SkyWritingCfg::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void SkyWritingCfg::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void SkyWritingCfg::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.SkyWritingCfg)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.timelag_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.limitemax_) -
reinterpret_cast<char*>(&_impl_.timelag_)) + sizeof(_impl_.limitemax_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* SkyWritingCfg::_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, 17, 0, 0, 2> SkyWritingCfg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
17, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294836224, // skipmap
offsetof(decltype(_table_), field_entries),
17, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_SkyWritingCfg_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// bool isEnable = 1;
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(SkyWritingCfg, _impl_.isenable_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.isenable_)}},
// double timelag = 2;
{::_pbi::TcParser::FastF64S1,
{17, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelag_)}},
// double timelagMin = 3;
{::_pbi::TcParser::FastF64S1,
{25, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelagmin_)}},
// double timelagMax = 4;
{::_pbi::TcParser::FastF64S1,
{33, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelagmax_)}},
// int64 laserOnShift = 5;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SkyWritingCfg, _impl_.laseronshift_), 63>(),
{40, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshift_)}},
// int64 laserOnShiftMin = 6;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SkyWritingCfg, _impl_.laseronshiftmin_), 63>(),
{48, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshiftmin_)}},
// int64 laserOnShiftMax = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SkyWritingCfg, _impl_.laseronshiftmax_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshiftmax_)}},
// uint32 nprev = 8;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.nprev_), 63>(),
{64, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprev_)}},
// uint32 nprevMin = 9;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.nprevmin_), 63>(),
{72, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprevmin_)}},
// uint32 nprevMax = 10;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.nprevmax_), 63>(),
{80, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprevmax_)}},
// uint32 npost = 11;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.npost_), 63>(),
{88, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npost_)}},
// uint32 npostMin = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.npostmin_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npostmin_)}},
// uint32 npostMax = 13;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.npostmax_), 63>(),
{104, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npostmax_)}},
// int32 mode = 14;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SkyWritingCfg, _impl_.mode_), 63>(),
{112, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.mode_)}},
// double limite = 15;
{::_pbi::TcParser::FastF64S1,
{121, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limite_)}},
// double limiteMin = 16;
{::_pbi::TcParser::FastF64S2,
{385, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limitemin_)}},
// double limiteMax = 17;
{::_pbi::TcParser::FastF64S2,
{393, 63, 0, PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limitemax_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// bool isEnable = 1;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.isenable_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
// double timelag = 2;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelag_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double timelagMin = 3;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelagmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double timelagMax = 4;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelagmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int64 laserOnShift = 5;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshift_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laserOnShiftMin = 6;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshiftmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// int64 laserOnShiftMax = 7;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.laseronshiftmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt64)},
// uint32 nprev = 8;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprev_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 nprevMin = 9;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprevmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 nprevMax = 10;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.nprevmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 npost = 11;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npost_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 npostMin = 12;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npostmin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 npostMax = 13;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.npostmax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// int32 mode = 14;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.mode_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double limite = 15;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limite_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double limiteMin = 16;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limitemin_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double limiteMax = 17;
{PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limitemax_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
}},
// no aux_entries
{{
}},
};
::uint8_t* SkyWritingCfg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.SkyWritingCfg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// bool isEnable = 1;
if (this->_internal_isenable() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(
1, this->_internal_isenable(), target);
}
// double timelag = 2;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelag = this->_internal_timelag();
::uint64_t raw_timelag;
memcpy(&raw_timelag, &tmp_timelag, sizeof(tmp_timelag));
if (raw_timelag != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2, this->_internal_timelag(), target);
}
// double timelagMin = 3;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmin = this->_internal_timelagmin();
::uint64_t raw_timelagmin;
memcpy(&raw_timelagmin, &tmp_timelagmin, sizeof(tmp_timelagmin));
if (raw_timelagmin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3, this->_internal_timelagmin(), target);
}
// double timelagMax = 4;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmax = this->_internal_timelagmax();
::uint64_t raw_timelagmax;
memcpy(&raw_timelagmax, &tmp_timelagmax, sizeof(tmp_timelagmax));
if (raw_timelagmax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4, this->_internal_timelagmax(), target);
}
// int64 laserOnShift = 5;
if (this->_internal_laseronshift() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<5>(
stream, this->_internal_laseronshift(), target);
}
// int64 laserOnShiftMin = 6;
if (this->_internal_laseronshiftmin() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<6>(
stream, this->_internal_laseronshiftmin(), target);
}
// int64 laserOnShiftMax = 7;
if (this->_internal_laseronshiftmax() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt64ToArrayWithField<7>(
stream, this->_internal_laseronshiftmax(), target);
}
// uint32 nprev = 8;
if (this->_internal_nprev() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
8, this->_internal_nprev(), target);
}
// uint32 nprevMin = 9;
if (this->_internal_nprevmin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
9, this->_internal_nprevmin(), target);
}
// uint32 nprevMax = 10;
if (this->_internal_nprevmax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
10, this->_internal_nprevmax(), target);
}
// uint32 npost = 11;
if (this->_internal_npost() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
11, this->_internal_npost(), target);
}
// uint32 npostMin = 12;
if (this->_internal_npostmin() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
12, this->_internal_npostmin(), target);
}
// uint32 npostMax = 13;
if (this->_internal_npostmax() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
13, this->_internal_npostmax(), target);
}
// int32 mode = 14;
if (this->_internal_mode() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<14>(
stream, this->_internal_mode(), target);
}
// double limite = 15;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limite = this->_internal_limite();
::uint64_t raw_limite;
memcpy(&raw_limite, &tmp_limite, sizeof(tmp_limite));
if (raw_limite != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
15, this->_internal_limite(), target);
}
// double limiteMin = 16;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemin = this->_internal_limitemin();
::uint64_t raw_limitemin;
memcpy(&raw_limitemin, &tmp_limitemin, sizeof(tmp_limitemin));
if (raw_limitemin != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
16, this->_internal_limitemin(), target);
}
// double limiteMax = 17;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemax = this->_internal_limitemax();
::uint64_t raw_limitemax;
memcpy(&raw_limitemax, &tmp_limitemax, sizeof(tmp_limitemax));
if (raw_limitemax != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
17, this->_internal_limitemax(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.SkyWritingCfg)
return target;
}
::size_t SkyWritingCfg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.SkyWritingCfg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// double timelag = 2;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelag = this->_internal_timelag();
::uint64_t raw_timelag;
memcpy(&raw_timelag, &tmp_timelag, sizeof(tmp_timelag));
if (raw_timelag != 0) {
total_size += 9;
}
// double timelagMin = 3;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmin = this->_internal_timelagmin();
::uint64_t raw_timelagmin;
memcpy(&raw_timelagmin, &tmp_timelagmin, sizeof(tmp_timelagmin));
if (raw_timelagmin != 0) {
total_size += 9;
}
// double timelagMax = 4;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmax = this->_internal_timelagmax();
::uint64_t raw_timelagmax;
memcpy(&raw_timelagmax, &tmp_timelagmax, sizeof(tmp_timelagmax));
if (raw_timelagmax != 0) {
total_size += 9;
}
// bool isEnable = 1;
if (this->_internal_isenable() != 0) {
total_size += 2;
}
// uint32 nprev = 8;
if (this->_internal_nprev() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_nprev());
}
// int64 laserOnShift = 5;
if (this->_internal_laseronshift() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseronshift());
}
// int64 laserOnShiftMin = 6;
if (this->_internal_laseronshiftmin() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseronshiftmin());
}
// int64 laserOnShiftMax = 7;
if (this->_internal_laseronshiftmax() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
this->_internal_laseronshiftmax());
}
// uint32 nprevMin = 9;
if (this->_internal_nprevmin() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_nprevmin());
}
// uint32 nprevMax = 10;
if (this->_internal_nprevmax() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_nprevmax());
}
// uint32 npost = 11;
if (this->_internal_npost() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_npost());
}
// uint32 npostMin = 12;
if (this->_internal_npostmin() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_npostmin());
}
// uint32 npostMax = 13;
if (this->_internal_npostmax() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_npostmax());
}
// int32 mode = 14;
if (this->_internal_mode() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_mode());
}
// double limite = 15;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limite = this->_internal_limite();
::uint64_t raw_limite;
memcpy(&raw_limite, &tmp_limite, sizeof(tmp_limite));
if (raw_limite != 0) {
total_size += 9;
}
// double limiteMin = 16;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemin = this->_internal_limitemin();
::uint64_t raw_limitemin;
memcpy(&raw_limitemin, &tmp_limitemin, sizeof(tmp_limitemin));
if (raw_limitemin != 0) {
total_size += 10;
}
// double limiteMax = 17;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemax = this->_internal_limitemax();
::uint64_t raw_limitemax;
memcpy(&raw_limitemax, &tmp_limitemax, sizeof(tmp_limitemax));
if (raw_limitemax != 0) {
total_size += 10;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData SkyWritingCfg::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
SkyWritingCfg::MergeImpl
};
const ::google::protobuf::Message::ClassData*SkyWritingCfg::GetClassData() const { return &_class_data_; }
void SkyWritingCfg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<SkyWritingCfg*>(&to_msg);
auto& from = static_cast<const SkyWritingCfg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.SkyWritingCfg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelag = from._internal_timelag();
::uint64_t raw_timelag;
memcpy(&raw_timelag, &tmp_timelag, sizeof(tmp_timelag));
if (raw_timelag != 0) {
_this->_internal_set_timelag(from._internal_timelag());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmin = from._internal_timelagmin();
::uint64_t raw_timelagmin;
memcpy(&raw_timelagmin, &tmp_timelagmin, sizeof(tmp_timelagmin));
if (raw_timelagmin != 0) {
_this->_internal_set_timelagmin(from._internal_timelagmin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_timelagmax = from._internal_timelagmax();
::uint64_t raw_timelagmax;
memcpy(&raw_timelagmax, &tmp_timelagmax, sizeof(tmp_timelagmax));
if (raw_timelagmax != 0) {
_this->_internal_set_timelagmax(from._internal_timelagmax());
}
if (from._internal_isenable() != 0) {
_this->_internal_set_isenable(from._internal_isenable());
}
if (from._internal_nprev() != 0) {
_this->_internal_set_nprev(from._internal_nprev());
}
if (from._internal_laseronshift() != 0) {
_this->_internal_set_laseronshift(from._internal_laseronshift());
}
if (from._internal_laseronshiftmin() != 0) {
_this->_internal_set_laseronshiftmin(from._internal_laseronshiftmin());
}
if (from._internal_laseronshiftmax() != 0) {
_this->_internal_set_laseronshiftmax(from._internal_laseronshiftmax());
}
if (from._internal_nprevmin() != 0) {
_this->_internal_set_nprevmin(from._internal_nprevmin());
}
if (from._internal_nprevmax() != 0) {
_this->_internal_set_nprevmax(from._internal_nprevmax());
}
if (from._internal_npost() != 0) {
_this->_internal_set_npost(from._internal_npost());
}
if (from._internal_npostmin() != 0) {
_this->_internal_set_npostmin(from._internal_npostmin());
}
if (from._internal_npostmax() != 0) {
_this->_internal_set_npostmax(from._internal_npostmax());
}
if (from._internal_mode() != 0) {
_this->_internal_set_mode(from._internal_mode());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limite = from._internal_limite();
::uint64_t raw_limite;
memcpy(&raw_limite, &tmp_limite, sizeof(tmp_limite));
if (raw_limite != 0) {
_this->_internal_set_limite(from._internal_limite());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemin = from._internal_limitemin();
::uint64_t raw_limitemin;
memcpy(&raw_limitemin, &tmp_limitemin, sizeof(tmp_limitemin));
if (raw_limitemin != 0) {
_this->_internal_set_limitemin(from._internal_limitemin());
}
static_assert(sizeof(::uint64_t) == sizeof(double),
"Code assumes ::uint64_t and double are the same size.");
double tmp_limitemax = from._internal_limitemax();
::uint64_t raw_limitemax;
memcpy(&raw_limitemax, &tmp_limitemax, sizeof(tmp_limitemax));
if (raw_limitemax != 0) {
_this->_internal_set_limitemax(from._internal_limitemax());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void SkyWritingCfg::CopyFrom(const SkyWritingCfg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.SkyWritingCfg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool SkyWritingCfg::IsInitialized() const {
return true;
}
void SkyWritingCfg::InternalSwap(SkyWritingCfg* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.limitemax_)
+ sizeof(SkyWritingCfg::_impl_.limitemax_)
- PROTOBUF_FIELD_OFFSET(SkyWritingCfg, _impl_.timelag_)>(
reinterpret_cast<char*>(&_impl_.timelag_),
reinterpret_cast<char*>(&other->_impl_.timelag_));
}
::google::protobuf::Metadata SkyWritingCfg::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[18]);
}
// ===================================================================
class PowerCompensate::_Internal {
public:
};
PowerCompensate::PowerCompensate(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.PowerCompensate)
}
PowerCompensate::PowerCompensate(const PowerCompensate& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.PowerCompensate)
}
inline void PowerCompensate::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.cno_){0},
decltype(_impl_.percent_){0},
decltype(_impl_.value_){0},
decltype(_impl_.value_min_){0},
decltype(_impl_.value_max_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
PowerCompensate::~PowerCompensate() {
// @@protoc_insertion_point(destructor:stream.PowerCompensate)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void PowerCompensate::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void PowerCompensate::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void PowerCompensate::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.PowerCompensate)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.cno_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.value_max_) -
reinterpret_cast<char*>(&_impl_.cno_)) + sizeof(_impl_.value_max_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* PowerCompensate::_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, 5, 0, 0, 2> PowerCompensate::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_PowerCompensate_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 cno = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PowerCompensate, _impl_.cno_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.cno_)}},
// int32 percent = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PowerCompensate, _impl_.percent_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.percent_)}},
// float value = 3;
{::_pbi::TcParser::FastF32S1,
{29, 63, 0, PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_)}},
// float value_min = 4;
{::_pbi::TcParser::FastF32S1,
{37, 63, 0, PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_min_)}},
// float value_max = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_max_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 cno = 1;
{PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.cno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 percent = 2;
{PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.percent_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// float value = 3;
{PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float value_min = 4;
{PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_min_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
// float value_max = 5;
{PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_max_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
}},
};
::uint8_t* PowerCompensate::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.PowerCompensate)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 cno = 1;
if (this->_internal_cno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_cno(), target);
}
// int32 percent = 2;
if (this->_internal_percent() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_percent(), target);
}
// float value = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value = this->_internal_value();
::uint32_t raw_value;
memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
if (raw_value != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
3, this->_internal_value(), target);
}
// float value_min = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_min = this->_internal_value_min();
::uint32_t raw_value_min;
memcpy(&raw_value_min, &tmp_value_min, sizeof(tmp_value_min));
if (raw_value_min != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
4, this->_internal_value_min(), target);
}
// float value_max = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_max = this->_internal_value_max();
::uint32_t raw_value_max;
memcpy(&raw_value_max, &tmp_value_max, sizeof(tmp_value_max));
if (raw_value_max != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_value_max(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.PowerCompensate)
return target;
}
::size_t PowerCompensate::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.PowerCompensate)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 cno = 1;
if (this->_internal_cno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_cno());
}
// int32 percent = 2;
if (this->_internal_percent() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_percent());
}
// float value = 3;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value = this->_internal_value();
::uint32_t raw_value;
memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
if (raw_value != 0) {
total_size += 5;
}
// float value_min = 4;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_min = this->_internal_value_min();
::uint32_t raw_value_min;
memcpy(&raw_value_min, &tmp_value_min, sizeof(tmp_value_min));
if (raw_value_min != 0) {
total_size += 5;
}
// float value_max = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_max = this->_internal_value_max();
::uint32_t raw_value_max;
memcpy(&raw_value_max, &tmp_value_max, sizeof(tmp_value_max));
if (raw_value_max != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData PowerCompensate::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
PowerCompensate::MergeImpl
};
const ::google::protobuf::Message::ClassData*PowerCompensate::GetClassData() const { return &_class_data_; }
void PowerCompensate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<PowerCompensate*>(&to_msg);
auto& from = static_cast<const PowerCompensate&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.PowerCompensate)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_cno() != 0) {
_this->_internal_set_cno(from._internal_cno());
}
if (from._internal_percent() != 0) {
_this->_internal_set_percent(from._internal_percent());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value = from._internal_value();
::uint32_t raw_value;
memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
if (raw_value != 0) {
_this->_internal_set_value(from._internal_value());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_min = from._internal_value_min();
::uint32_t raw_value_min;
memcpy(&raw_value_min, &tmp_value_min, sizeof(tmp_value_min));
if (raw_value_min != 0) {
_this->_internal_set_value_min(from._internal_value_min());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_value_max = from._internal_value_max();
::uint32_t raw_value_max;
memcpy(&raw_value_max, &tmp_value_max, sizeof(tmp_value_max));
if (raw_value_max != 0) {
_this->_internal_set_value_max(from._internal_value_max());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void PowerCompensate::CopyFrom(const PowerCompensate& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.PowerCompensate)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool PowerCompensate::IsInitialized() const {
return true;
}
void PowerCompensate::InternalSwap(PowerCompensate* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.value_max_)
+ sizeof(PowerCompensate::_impl_.value_max_)
- PROTOBUF_FIELD_OFFSET(PowerCompensate, _impl_.cno_)>(
reinterpret_cast<char*>(&_impl_.cno_),
reinterpret_cast<char*>(&other->_impl_.cno_));
}
::google::protobuf::Metadata PowerCompensate::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[19]);
}
// ===================================================================
class TimePowerCompensate::_Internal {
public:
};
TimePowerCompensate::TimePowerCompensate(::google::protobuf::Arena* arena)
: ::google::protobuf::Message(arena) {
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:stream.TimePowerCompensate)
}
TimePowerCompensate::TimePowerCompensate(const TimePowerCompensate& from)
: ::google::protobuf::Message(), _impl_(from._impl_) {
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:stream.TimePowerCompensate)
}
inline void TimePowerCompensate::SharedCtor(::_pb::Arena* arena) {
(void)arena;
new (&_impl_) Impl_{
decltype(_impl_.id_){0},
decltype(_impl_.cno_){0},
decltype(_impl_.startminute_){0u},
decltype(_impl_.endminute_){0u},
decltype(_impl_.compensate_){0},
/*decltype(_impl_._cached_size_)*/ {},
};
}
TimePowerCompensate::~TimePowerCompensate() {
// @@protoc_insertion_point(destructor:stream.TimePowerCompensate)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void TimePowerCompensate::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}
void TimePowerCompensate::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
PROTOBUF_NOINLINE void TimePowerCompensate::Clear() {
// @@protoc_insertion_point(message_clear_start:stream.TimePowerCompensate)
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.id_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.compensate_) -
reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.compensate_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
const char* TimePowerCompensate::_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, 5, 0, 0, 2> TimePowerCompensate::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
5, 56, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967264, // skipmap
offsetof(decltype(_table_), field_entries),
5, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
&_TimePowerCompensate_default_instance_._instance,
::_pbi::TcParser::GenericFallback, // fallback
}, {{
{::_pbi::TcParser::MiniParse, {}},
// int32 id = 1;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TimePowerCompensate, _impl_.id_), 63>(),
{8, 63, 0, PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.id_)}},
// int32 cno = 2;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TimePowerCompensate, _impl_.cno_), 63>(),
{16, 63, 0, PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.cno_)}},
// uint32 startMinute = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TimePowerCompensate, _impl_.startminute_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.startminute_)}},
// uint32 endMinute = 4;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TimePowerCompensate, _impl_.endminute_), 63>(),
{32, 63, 0, PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.endminute_)}},
// float compensate = 5;
{::_pbi::TcParser::FastF32S1,
{45, 63, 0, PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.compensate_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// int32 id = 1;
{PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.id_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// int32 cno = 2;
{PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.cno_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// uint32 startMinute = 3;
{PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.startminute_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// uint32 endMinute = 4;
{PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.endminute_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
// float compensate = 5;
{PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.compensate_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kFloat)},
}},
// no aux_entries
{{
}},
};
::uint8_t* TimePowerCompensate::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:stream.TimePowerCompensate)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// int32 id = 1;
if (this->_internal_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<1>(
stream, this->_internal_id(), target);
}
// int32 cno = 2;
if (this->_internal_cno() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<2>(
stream, this->_internal_cno(), target);
}
// uint32 startMinute = 3;
if (this->_internal_startminute() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
3, this->_internal_startminute(), target);
}
// uint32 endMinute = 4;
if (this->_internal_endminute() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
4, this->_internal_endminute(), target);
}
// float compensate = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_compensate = this->_internal_compensate();
::uint32_t raw_compensate;
memcpy(&raw_compensate, &tmp_compensate, sizeof(tmp_compensate));
if (raw_compensate != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteFloatToArray(
5, this->_internal_compensate(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:stream.TimePowerCompensate)
return target;
}
::size_t TimePowerCompensate::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:stream.TimePowerCompensate)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_id());
}
// int32 cno = 2;
if (this->_internal_cno() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this->_internal_cno());
}
// uint32 startMinute = 3;
if (this->_internal_startminute() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_startminute());
}
// uint32 endMinute = 4;
if (this->_internal_endminute() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
this->_internal_endminute());
}
// float compensate = 5;
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_compensate = this->_internal_compensate();
::uint32_t raw_compensate;
memcpy(&raw_compensate, &tmp_compensate, sizeof(tmp_compensate));
if (raw_compensate != 0) {
total_size += 5;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::google::protobuf::Message::ClassData TimePowerCompensate::_class_data_ = {
::google::protobuf::Message::CopyWithSourceCheck,
TimePowerCompensate::MergeImpl
};
const ::google::protobuf::Message::ClassData*TimePowerCompensate::GetClassData() const { return &_class_data_; }
void TimePowerCompensate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
auto* const _this = static_cast<TimePowerCompensate*>(&to_msg);
auto& from = static_cast<const TimePowerCompensate&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:stream.TimePowerCompensate)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
if (from._internal_cno() != 0) {
_this->_internal_set_cno(from._internal_cno());
}
if (from._internal_startminute() != 0) {
_this->_internal_set_startminute(from._internal_startminute());
}
if (from._internal_endminute() != 0) {
_this->_internal_set_endminute(from._internal_endminute());
}
static_assert(sizeof(::uint32_t) == sizeof(float),
"Code assumes ::uint32_t and float are the same size.");
float tmp_compensate = from._internal_compensate();
::uint32_t raw_compensate;
memcpy(&raw_compensate, &tmp_compensate, sizeof(tmp_compensate));
if (raw_compensate != 0) {
_this->_internal_set_compensate(from._internal_compensate());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void TimePowerCompensate::CopyFrom(const TimePowerCompensate& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:stream.TimePowerCompensate)
if (&from == this) return;
Clear();
MergeFrom(from);
}
PROTOBUF_NOINLINE bool TimePowerCompensate::IsInitialized() const {
return true;
}
void TimePowerCompensate::InternalSwap(TimePowerCompensate* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.compensate_)
+ sizeof(TimePowerCompensate::_impl_.compensate_)
- PROTOBUF_FIELD_OFFSET(TimePowerCompensate, _impl_.id_)>(
reinterpret_cast<char*>(&_impl_.id_),
reinterpret_cast<char*>(&other->_impl_.id_));
}
::google::protobuf::Metadata TimePowerCompensate::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once,
file_level_metadata_stream_2eproto[20]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace stream
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"