15418 lines
548 KiB
C++
15418 lines
548 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: common.proto
|
|
|
|
#include "common.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
#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>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AlarmMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AlarmsMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataBlockMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JobInfoMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerImageDataMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerImageMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerImagesMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerLoadCurveDataMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerLoadCurveMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerLoadCurvesMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerStateMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerStatesMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ParameterMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StateMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskMsg_common_2eproto;
|
|
extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TasksMsg_common_2eproto;
|
|
class StateMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<StateMsg> _instance;
|
|
} _StateMsg_default_instance_;
|
|
class JobInfoMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<JobInfoMsg> _instance;
|
|
} _JobInfoMsg_default_instance_;
|
|
class JobStateMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<JobStateMsg> _instance;
|
|
} _JobStateMsg_default_instance_;
|
|
class MachineMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MachineMsg> _instance;
|
|
} _MachineMsg_default_instance_;
|
|
class ErrorMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ErrorMsg> _instance;
|
|
} _ErrorMsg_default_instance_;
|
|
class ParameterMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ParameterMsg> _instance;
|
|
} _ParameterMsg_default_instance_;
|
|
class PartMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PartMsg> _instance;
|
|
} _PartMsg_default_instance_;
|
|
class JobMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<JobMsg> _instance;
|
|
} _JobMsg_default_instance_;
|
|
class LayerDataRespMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerDataRespMsg> _instance;
|
|
} _LayerDataRespMsg_default_instance_;
|
|
class DataBlockMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DataBlockMsg> _instance;
|
|
} _DataBlockMsg_default_instance_;
|
|
class LayerDataBlockMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerDataBlockMsg> _instance;
|
|
} _LayerDataBlockMsg_default_instance_;
|
|
class JobParamMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<JobParamMsg> _instance;
|
|
} _JobParamMsg_default_instance_;
|
|
class LayerDataReqMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerDataReqMsg> _instance;
|
|
} _LayerDataReqMsg_default_instance_;
|
|
class ResponseStateDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResponseState> _instance;
|
|
} _ResponseState_default_instance_;
|
|
class CameraDataMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CameraDataMsg> _instance;
|
|
} _CameraDataMsg_default_instance_;
|
|
class AlarmMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AlarmMsg> _instance;
|
|
} _AlarmMsg_default_instance_;
|
|
class AlarmsMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AlarmsMsg> _instance;
|
|
} _AlarmsMsg_default_instance_;
|
|
class TaskMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TaskMsg> _instance;
|
|
} _TaskMsg_default_instance_;
|
|
class TasksMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TasksMsg> _instance;
|
|
} _TasksMsg_default_instance_;
|
|
class LayerStateMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerStateMsg> _instance;
|
|
} _LayerStateMsg_default_instance_;
|
|
class LayerStatesMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerStatesMsg> _instance;
|
|
} _LayerStatesMsg_default_instance_;
|
|
class LayerImageMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerImageMsg> _instance;
|
|
} _LayerImageMsg_default_instance_;
|
|
class LayerImagesMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerImagesMsg> _instance;
|
|
} _LayerImagesMsg_default_instance_;
|
|
class LayerImageDataMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerImageDataMsg> _instance;
|
|
} _LayerImageDataMsg_default_instance_;
|
|
class LayerLoadCurveMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerLoadCurveMsg> _instance;
|
|
} _LayerLoadCurveMsg_default_instance_;
|
|
class LayerLoadCurvesMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerLoadCurvesMsg> _instance;
|
|
} _LayerLoadCurvesMsg_default_instance_;
|
|
class LayerLoadCurveDataMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayerLoadCurveDataMsg> _instance;
|
|
} _LayerLoadCurveDataMsg_default_instance_;
|
|
class LogReqMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LogReqMsg> _instance;
|
|
} _LogReqMsg_default_instance_;
|
|
class LogRespMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LogRespMsg> _instance;
|
|
const ::AlarmsMsg* alarms_;
|
|
const ::TasksMsg* tasks_;
|
|
const ::LayerStatesMsg* states_;
|
|
const ::LayerImagesMsg* images_;
|
|
const ::LayerImageDataMsg* imagedata_;
|
|
const ::LayerLoadCurvesMsg* loadcurves_;
|
|
const ::LayerLoadCurveDataMsg* loadcurvedata_;
|
|
} _LogRespMsg_default_instance_;
|
|
class LogFetchReqMsgDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LogFetchReqMsg> _instance;
|
|
} _LogFetchReqMsg_default_instance_;
|
|
static void InitDefaultsscc_info_AlarmMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_AlarmMsg_default_instance_;
|
|
new (ptr) ::AlarmMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::AlarmMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AlarmMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AlarmMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_AlarmsMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_AlarmsMsg_default_instance_;
|
|
new (ptr) ::AlarmsMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::AlarmsMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AlarmsMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AlarmsMsg_common_2eproto}, {
|
|
&scc_info_AlarmMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_CameraDataMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_CameraDataMsg_default_instance_;
|
|
new (ptr) ::CameraDataMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::CameraDataMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CameraDataMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CameraDataMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_DataBlockMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_DataBlockMsg_default_instance_;
|
|
new (ptr) ::DataBlockMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::DataBlockMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DataBlockMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DataBlockMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_ErrorMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ErrorMsg_default_instance_;
|
|
new (ptr) ::ErrorMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ErrorMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ErrorMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ErrorMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_JobInfoMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_JobInfoMsg_default_instance_;
|
|
new (ptr) ::JobInfoMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::JobInfoMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JobInfoMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_JobInfoMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_JobMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_JobMsg_default_instance_;
|
|
new (ptr) ::JobMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::JobMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_JobMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_JobMsg_common_2eproto}, {
|
|
&scc_info_JobInfoMsg_common_2eproto.base,
|
|
&scc_info_PartMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_JobParamMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_JobParamMsg_default_instance_;
|
|
new (ptr) ::JobParamMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::JobParamMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JobParamMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_JobParamMsg_common_2eproto}, {
|
|
&scc_info_PartMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_JobStateMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_JobStateMsg_default_instance_;
|
|
new (ptr) ::JobStateMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::JobStateMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JobStateMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_JobStateMsg_common_2eproto}, {
|
|
&scc_info_JobInfoMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_LayerDataBlockMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerDataBlockMsg_default_instance_;
|
|
new (ptr) ::LayerDataBlockMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerDataBlockMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerDataBlockMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LayerDataBlockMsg_common_2eproto}, {
|
|
&scc_info_DataBlockMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_LayerDataReqMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerDataReqMsg_default_instance_;
|
|
new (ptr) ::LayerDataReqMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerDataReqMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerDataReqMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerDataReqMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerDataRespMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerDataRespMsg_default_instance_;
|
|
new (ptr) ::LayerDataRespMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerDataRespMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerDataRespMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerDataRespMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerImageDataMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerImageDataMsg_default_instance_;
|
|
new (ptr) ::LayerImageDataMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerImageDataMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerImageDataMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerImageDataMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerImageMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerImageMsg_default_instance_;
|
|
new (ptr) ::LayerImageMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerImageMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerImageMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerImageMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerImagesMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerImagesMsg_default_instance_;
|
|
new (ptr) ::LayerImagesMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerImagesMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerImagesMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LayerImagesMsg_common_2eproto}, {
|
|
&scc_info_LayerImageMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_LayerLoadCurveDataMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerLoadCurveDataMsg_default_instance_;
|
|
new (ptr) ::LayerLoadCurveDataMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerLoadCurveDataMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerLoadCurveDataMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerLoadCurveDataMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerLoadCurveMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerLoadCurveMsg_default_instance_;
|
|
new (ptr) ::LayerLoadCurveMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerLoadCurveMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerLoadCurveMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerLoadCurveMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerLoadCurvesMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerLoadCurvesMsg_default_instance_;
|
|
new (ptr) ::LayerLoadCurvesMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerLoadCurvesMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerLoadCurvesMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LayerLoadCurvesMsg_common_2eproto}, {
|
|
&scc_info_LayerLoadCurveMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_LayerStateMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerStateMsg_default_instance_;
|
|
new (ptr) ::LayerStateMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerStateMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayerStateMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LayerStateMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LayerStatesMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LayerStatesMsg_default_instance_;
|
|
new (ptr) ::LayerStatesMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LayerStatesMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayerStatesMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_LayerStatesMsg_common_2eproto}, {
|
|
&scc_info_LayerStateMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_LogFetchReqMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LogFetchReqMsg_default_instance_;
|
|
new (ptr) ::LogFetchReqMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LogFetchReqMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LogFetchReqMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LogFetchReqMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LogReqMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LogReqMsg_default_instance_;
|
|
new (ptr) ::LogReqMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LogReqMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LogReqMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_LogReqMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_LogRespMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_LogRespMsg_default_instance_;
|
|
new (ptr) ::LogRespMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::LogRespMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<7> scc_info_LogRespMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsscc_info_LogRespMsg_common_2eproto}, {
|
|
&scc_info_AlarmsMsg_common_2eproto.base,
|
|
&scc_info_TasksMsg_common_2eproto.base,
|
|
&scc_info_LayerStatesMsg_common_2eproto.base,
|
|
&scc_info_LayerImagesMsg_common_2eproto.base,
|
|
&scc_info_LayerImageDataMsg_common_2eproto.base,
|
|
&scc_info_LayerLoadCurvesMsg_common_2eproto.base,
|
|
&scc_info_LayerLoadCurveDataMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_MachineMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_MachineMsg_default_instance_;
|
|
new (ptr) ::MachineMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::MachineMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MachineMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MachineMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_ParameterMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ParameterMsg_default_instance_;
|
|
new (ptr) ::ParameterMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ParameterMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ParameterMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ParameterMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_PartMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_PartMsg_default_instance_;
|
|
new (ptr) ::PartMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::PartMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PartMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_PartMsg_common_2eproto}, {
|
|
&scc_info_ParameterMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_ResponseState_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ResponseState_default_instance_;
|
|
new (ptr) ::ResponseState();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ResponseState::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ResponseState_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ResponseState_common_2eproto}, {
|
|
&scc_info_StateMsg_common_2eproto.base,}};
|
|
|
|
static void InitDefaultsscc_info_StateMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_StateMsg_default_instance_;
|
|
new (ptr) ::StateMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::StateMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StateMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_StateMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_TaskMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_TaskMsg_default_instance_;
|
|
new (ptr) ::TaskMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::TaskMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TaskMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TaskMsg_common_2eproto}, {}};
|
|
|
|
static void InitDefaultsscc_info_TasksMsg_common_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_TasksMsg_default_instance_;
|
|
new (ptr) ::TasksMsg();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::TasksMsg::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TasksMsg_common_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TasksMsg_common_2eproto}, {
|
|
&scc_info_TaskMsg_common_2eproto.base,}};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_common_2eproto[30];
|
|
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_common_2eproto[7];
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_common_2eproto = nullptr;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_common_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, oxygenvalue_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, ambienttemp_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, innertemp_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, windvalue_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, platformtempvalue_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, platformtempsettingvalue_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, moldpos_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, powderpos_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, armpos_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, printstate_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, layerindex_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, limitflag_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, isdoorclose_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, acctime_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, remaintime_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, totaltime_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, layercount_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, printtime_),
|
|
PROTOBUF_FIELD_OFFSET(::StateMsg, material_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, name_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, xsize_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, ysize_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, zsize_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, material_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, layerthickness_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, layercount_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, componentcount_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, volume_),
|
|
PROTOBUF_FIELD_OFFSET(::JobInfoMsg, supportvolume_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, jobid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, uid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, name_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, starttime_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, stoptime_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, deoxygensecond_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, spendsecond_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, moldpos_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, printlayerindex_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, isfinish_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, iscontinue_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, isinvalid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, jobstate_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobStateMsg, jobinfo_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, machinetype_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, purifiertype_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, laststarttime_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, lastshutdowntime_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, language_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, isonline_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, password_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, name_),
|
|
PROTOBUF_FIELD_OFFSET(::MachineMsg, location_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::ErrorMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::ErrorMsg, errortype_),
|
|
PROTOBUF_FIELD_OFFSET(::ErrorMsg, errormsg_),
|
|
PROTOBUF_FIELD_OFFSET(::ErrorMsg, occurtime_),
|
|
PROTOBUF_FIELD_OFFSET(::ErrorMsg, machineid_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::ParameterMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::ParameterMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::ParameterMsg, laserspeed_),
|
|
PROTOBUF_FIELD_OFFSET(::ParameterMsg, laserpower_),
|
|
PROTOBUF_FIELD_OFFSET(::ParameterMsg, laserdiameter_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::PartMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::PartMsg, name_),
|
|
PROTOBUF_FIELD_OFFSET(::PartMsg, param_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::JobMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::JobMsg, jobinfomsg_),
|
|
PROTOBUF_FIELD_OFFSET(::JobMsg, partmsg_),
|
|
PROTOBUF_FIELD_OFFSET(::JobMsg, machineid_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, partid_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, total_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, index_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, data_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, datas_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataRespMsg, paramtype_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::DataBlockMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::DataBlockMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::DataBlockMsg, data_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, jobname_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, jobuid_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, layercount_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, thickness_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, layerindex_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataBlockMsg, datablocks_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, jobname_),
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, jobuid_),
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, layercount_),
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, thickness_),
|
|
PROTOBUF_FIELD_OFFSET(::JobParamMsg, parts_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataReqMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataReqMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerDataReqMsg, layerindex_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::ResponseState, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::ResponseState, statemsg_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, machineid_),
|
|
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, width_),
|
|
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, height_),
|
|
PROTOBUF_FIELD_OFFSET(::CameraDataMsg, datas_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::AlarmMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::AlarmMsg, time_),
|
|
PROTOBUF_FIELD_OFFSET(::AlarmMsg, task_),
|
|
PROTOBUF_FIELD_OFFSET(::AlarmMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::AlarmMsg, detail_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::AlarmsMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::AlarmsMsg, alarms_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, id_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, name_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, begintime_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, endtime_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, deoxygenminute_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, totalusetime_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, logmoldposition_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, finishlayer_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, isfinish_),
|
|
PROTOBUF_FIELD_OFFSET(::TaskMsg, iscontinueprint_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::TasksMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::TasksMsg, tasks_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, layerdatetime_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, layerindex_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, logmoldposition_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, logoxygen_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, loginnertemp_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, logplatetemp_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, windspeed_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, innerpressure_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, fanfreq_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, humidity_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerStateMsg, watertemp_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerStatesMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerStatesMsg, layerstates_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, id_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, layer_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageMsg, type_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImagesMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImagesMsg, images_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageDataMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageDataMsg, imagesize_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerImageDataMsg, imagedata_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, id_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, layer_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveMsg, covertype_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurvesMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurvesMsg, loadcurves_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, mold_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, powder_),
|
|
PROTOBUF_FIELD_OFFSET(::LayerLoadCurveDataMsg, arm_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LogReqMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LogReqMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::LogReqMsg, index_),
|
|
PROTOBUF_FIELD_OFFSET(::LogReqMsg, pagesize_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, _oneof_case_[0]),
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, index_),
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, pagesize_),
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, total_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, alarms_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, tasks_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, states_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, images_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, imagedata_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, loadcurves_),
|
|
offsetof(::LogRespMsgDefaultTypeInternal, loadcurvedata_),
|
|
PROTOBUF_FIELD_OFFSET(::LogRespMsg, logresp_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::LogFetchReqMsg, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::LogFetchReqMsg, type_),
|
|
PROTOBUF_FIELD_OFFSET(::LogFetchReqMsg, begin_),
|
|
PROTOBUF_FIELD_OFFSET(::LogFetchReqMsg, end_),
|
|
};
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, sizeof(::StateMsg)},
|
|
{ 25, -1, sizeof(::JobInfoMsg)},
|
|
{ 40, -1, sizeof(::JobStateMsg)},
|
|
{ 60, -1, sizeof(::MachineMsg)},
|
|
{ 75, -1, sizeof(::ErrorMsg)},
|
|
{ 84, -1, sizeof(::ParameterMsg)},
|
|
{ 93, -1, sizeof(::PartMsg)},
|
|
{ 100, -1, sizeof(::JobMsg)},
|
|
{ 108, -1, sizeof(::LayerDataRespMsg)},
|
|
{ 121, -1, sizeof(::DataBlockMsg)},
|
|
{ 128, -1, sizeof(::LayerDataBlockMsg)},
|
|
{ 140, -1, sizeof(::JobParamMsg)},
|
|
{ 151, -1, sizeof(::LayerDataReqMsg)},
|
|
{ 158, -1, sizeof(::ResponseState)},
|
|
{ 164, -1, sizeof(::CameraDataMsg)},
|
|
{ 173, -1, sizeof(::AlarmMsg)},
|
|
{ 182, -1, sizeof(::AlarmsMsg)},
|
|
{ 188, -1, sizeof(::TaskMsg)},
|
|
{ 203, -1, sizeof(::TasksMsg)},
|
|
{ 209, -1, sizeof(::LayerStateMsg)},
|
|
{ 225, -1, sizeof(::LayerStatesMsg)},
|
|
{ 231, -1, sizeof(::LayerImageMsg)},
|
|
{ 239, -1, sizeof(::LayerImagesMsg)},
|
|
{ 245, -1, sizeof(::LayerImageDataMsg)},
|
|
{ 252, -1, sizeof(::LayerLoadCurveMsg)},
|
|
{ 260, -1, sizeof(::LayerLoadCurvesMsg)},
|
|
{ 266, -1, sizeof(::LayerLoadCurveDataMsg)},
|
|
{ 274, -1, sizeof(::LogReqMsg)},
|
|
{ 282, -1, sizeof(::LogRespMsg)},
|
|
{ 298, -1, sizeof(::LogFetchReqMsg)},
|
|
};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_StateMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_JobInfoMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_JobStateMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_MachineMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_ErrorMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_ParameterMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_PartMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_JobMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerDataRespMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_DataBlockMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerDataBlockMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_JobParamMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerDataReqMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_ResponseState_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_CameraDataMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_AlarmMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_AlarmsMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_TaskMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_TasksMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerStateMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerStatesMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerImageMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerImagesMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerImageDataMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerLoadCurveMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerLoadCurvesMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LayerLoadCurveDataMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LogReqMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LogRespMsg_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_LogFetchReqMsg_default_instance_),
|
|
};
|
|
|
|
const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\014common.proto\"\262\004\n\010StateMsg\022\023\n\013oxygenVal"
|
|
"ue\030\001 \001(\002\022\023\n\013ambientTemp\030\002 \001(\002\022\021\n\tinnerTe"
|
|
"mp\030\003 \001(\002\022\021\n\twindValue\030\004 \001(\002\022\031\n\021platformT"
|
|
"empValue\030\005 \001(\002\022 \n\030platformTempSettingVal"
|
|
"ue\030\006 \001(\002\022\017\n\007moldPos\030\007 \001(\002\022\021\n\tpowderPos\030\010"
|
|
" \001(\002\022\016\n\006armPos\030\t \001(\002\022(\n\nprintState\030\n \001(\016"
|
|
"2\024.StateMsg.PrintState\022\022\n\nlayerIndex\030\013 \001"
|
|
"(\005\022\021\n\tlimitFlag\030\014 \001(\005\022\021\n\tmachineId\030\r \001(\t"
|
|
"\022\023\n\013isDoorClose\030\016 \001(\010\022\017\n\007accTime\030\017 \001(\r\022\022"
|
|
"\n\nremainTime\030\020 \001(\r\022\021\n\ttotalTime\030\021 \001(\r\022\022\n"
|
|
"\nlayerCount\030\022 \001(\005\022\021\n\tprintTime\030\023 \001(\003\022\020\n\010"
|
|
"material\030\024 \001(\t\"{\n\nPrintState\022\013\n\007STANDBY\020"
|
|
"\000\022\021\n\rSTANDBY_PAUSE\020\001\022\020\n\014STANDBY_STOP\020\002\022\014"
|
|
"\n\010PREPRINT\020\003\022\014\n\010PRINTING\020\004\022\n\n\006FINISH\020\005\022\t"
|
|
"\n\005PAUSE\020\006\022\010\n\004STOP\020\007\"\304\001\n\nJobInfoMsg\022\014\n\004na"
|
|
"me\030\001 \001(\t\022\r\n\005xSize\030\002 \001(\002\022\r\n\005ySize\030\003 \001(\002\022\r"
|
|
"\n\005zSize\030\004 \001(\002\022\020\n\010material\030\005 \001(\t\022\026\n\016layer"
|
|
"Thickness\030\006 \001(\002\022\022\n\nlayerCount\030\007 \001(\r\022\026\n\016c"
|
|
"omponentCount\030\010 \001(\r\022\016\n\006volume\030\t \001(\002\022\025\n\rs"
|
|
"upportVolume\030\n \001(\002\"\347\002\n\013JobStateMsg\022\r\n\005jo"
|
|
"bId\030\001 \001(\004\022\013\n\003uId\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\t"
|
|
"startTime\030\004 \001(\003\022\020\n\010stopTime\030\005 \001(\003\022\026\n\016deo"
|
|
"xygenSecond\030\006 \001(\r\022\023\n\013spendSecond\030\007 \001(\r\022\017"
|
|
"\n\007moldPos\030\010 \001(\002\022\027\n\017printLayerIndex\030\t \001(\r"
|
|
"\022\020\n\010isFinish\030\n \001(\010\022\022\n\nisContinue\030\013 \001(\010\022\021"
|
|
"\n\tisInvalid\030\014 \001(\010\022\'\n\010jobState\030\r \001(\0162\025.Jo"
|
|
"bStateMsg.JobState\022\021\n\tmachineId\030\016 \001(\t\022\034\n"
|
|
"\007jobInfo\030\017 \001(\0132\013.JobInfoMsg\"\037\n\010JobState\022"
|
|
"\t\n\005START\020\000\022\010\n\004STOP\020\001\"\206\003\n\nMachineMsg\022\021\n\tm"
|
|
"achineId\030\001 \001(\t\022,\n\013machineType\030\002 \001(\0162\027.Ma"
|
|
"chineMsg.MachineType\022.\n\014purifierType\030\003 \001"
|
|
"(\0162\030.MachineMsg.PurifierType\022\025\n\rlastStar"
|
|
"tTime\030\004 \001(\003\022\030\n\020lastShutdownTime\030\005 \001(\003\022\020\n"
|
|
"\010language\030\006 \001(\005\022\020\n\010isOnline\030\007 \001(\010\022\020\n\010pas"
|
|
"sword\030\010 \001(\t\022\014\n\004name\030\t \001(\t\022\020\n\010location\030\n "
|
|
"\001(\t\"@\n\013MachineType\022\013\n\007HBD_100\020\000\022\013\n\007HBD_2"
|
|
"80\020\001\022\n\n\006HBD_80\020\002\022\013\n\007HBD_400\020\003\">\n\014Purifie"
|
|
"rType\022\022\n\016HBD_PURIFIER_1\020\000\022\006\n\002XT\020\001\022\022\n\016HBD"
|
|
"_PURIFIER_2\020\002\"\214\001\n\010ErrorMsg\022&\n\terrorType\030"
|
|
"\001 \001(\0162\023.ErrorMsg.ErrorType\022\020\n\010errorMsg\030\002"
|
|
" \001(\t\022\021\n\toccurTime\030\003 \001(\003\022\021\n\tmachineId\030\004 \001"
|
|
"(\t\" \n\tErrorType\022\010\n\004STOP\020\000\022\t\n\005PAUSE\020\001\"[\n\014"
|
|
"ParameterMsg\022\014\n\004type\030\001 \001(\t\022\022\n\nlaserSpeed"
|
|
"\030\002 \001(\002\022\022\n\nlaserPower\030\003 \001(\002\022\025\n\rlaserDiame"
|
|
"ter\030\004 \001(\002\"5\n\007PartMsg\022\014\n\004name\030\001 \001(\t\022\034\n\005pa"
|
|
"ram\030\002 \003(\0132\r.ParameterMsg\"W\n\006JobMsg\022\037\n\njo"
|
|
"bInfoMsg\030\001 \001(\0132\013.JobInfoMsg\022\031\n\007partMsg\030\002"
|
|
" \003(\0132\010.PartMsg\022\021\n\tmachineId\030\003 \001(\t\"\221\001\n\020La"
|
|
"yerDataRespMsg\022\021\n\tmachineId\030\001 \001(\t\022\014\n\004typ"
|
|
"e\030\002 \001(\005\022\016\n\006partId\030\003 \001(\005\022\r\n\005total\030\004 \001(\r\022\r"
|
|
"\n\005index\030\005 \001(\r\022\014\n\004data\030\006 \003(\002\022\r\n\005datas\030\007 \001"
|
|
"(\014\022\021\n\tparamType\030\010 \001(\t\"*\n\014DataBlockMsg\022\014\n"
|
|
"\004type\030\001 \001(\005\022\014\n\004data\030\002 \003(\002\"\245\001\n\021LayerDataB"
|
|
"lockMsg\022\021\n\tmachineId\030\001 \001(\t\022\017\n\007jobName\030\002 "
|
|
"\001(\t\022\016\n\006jobUid\030\003 \001(\t\022\022\n\nlayerCount\030\004 \001(\r\022"
|
|
"\021\n\tthickness\030\005 \001(\002\022\022\n\nlayerIndex\030\006 \001(\r\022!"
|
|
"\n\ndataBlocks\030\007 \003(\0132\r.DataBlockMsg\"\201\001\n\013Jo"
|
|
"bParamMsg\022\021\n\tmachineId\030\001 \001(\t\022\017\n\007jobName\030"
|
|
"\002 \001(\t\022\016\n\006jobUid\030\003 \001(\t\022\022\n\nlayerCount\030\004 \001("
|
|
"\r\022\021\n\tthickness\030\005 \001(\002\022\027\n\005parts\030\006 \003(\0132\010.Pa"
|
|
"rtMsg\"8\n\017LayerDataReqMsg\022\021\n\tmachineId\030\001 "
|
|
"\001(\t\022\022\n\nlayerIndex\030\002 \001(\r\",\n\rResponseState"
|
|
"\022\033\n\010stateMsg\030\001 \003(\0132\t.StateMsg\"P\n\rCameraD"
|
|
"ataMsg\022\021\n\tmachineId\030\001 \001(\t\022\r\n\005width\030\002 \001(\r"
|
|
"\022\016\n\006height\030\003 \001(\r\022\r\n\005datas\030\004 \001(\014\"D\n\010Alarm"
|
|
"Msg\022\014\n\004time\030\001 \001(\t\022\014\n\004task\030\002 \001(\t\022\014\n\004type\030"
|
|
"\003 \001(\t\022\016\n\006detail\030\004 \001(\t\"&\n\tAlarmsMsg\022\031\n\006al"
|
|
"arms\030\001 \003(\0132\t.AlarmMsg\"\316\001\n\007TaskMsg\022\n\n\002id\030"
|
|
"\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\021\n\tbeginTime\030\003 \001(\t\022\017"
|
|
"\n\007endTime\030\004 \001(\t\022\026\n\016deoxygenMinute\030\005 \001(\003\022"
|
|
"\024\n\014totalUseTime\030\006 \001(\003\022\027\n\017logMoldPosition"
|
|
"\030\007 \001(\002\022\023\n\013finishLayer\030\010 \001(\r\022\020\n\010isFinish\030"
|
|
"\t \001(\010\022\027\n\017isContinuePrint\030\n \001(\010\"#\n\010TasksM"
|
|
"sg\022\027\n\005tasks\030\001 \003(\0132\010.TaskMsg\"\362\001\n\rLayerSta"
|
|
"teMsg\022\025\n\rlayerDateTime\030\001 \001(\t\022\022\n\nlayerInd"
|
|
"ex\030\002 \001(\r\022\027\n\017logMoldPosition\030\003 \001(\002\022\021\n\tlog"
|
|
"Oxygen\030\004 \001(\002\022\024\n\014logInnerTemp\030\005 \001(\002\022\024\n\014lo"
|
|
"gPlateTemp\030\006 \001(\002\022\021\n\twindSpeed\030\007 \001(\002\022\025\n\ri"
|
|
"nnerPressure\030\010 \001(\002\022\017\n\007fanFreq\030\t \001(\002\022\020\n\010h"
|
|
"umidity\030\n \001(\002\022\021\n\twaterTemp\030\013 \001(\002\"5\n\016Laye"
|
|
"rStatesMsg\022#\n\013layerStates\030\001 \003(\0132\016.LayerS"
|
|
"tateMsg\"8\n\rLayerImageMsg\022\n\n\002id\030\001 \001(\003\022\r\n\005"
|
|
"layer\030\002 \001(\r\022\014\n\004type\030\003 \001(\t\"0\n\016LayerImages"
|
|
"Msg\022\036\n\006images\030\001 \003(\0132\016.LayerImageMsg\"9\n\021L"
|
|
"ayerImageDataMsg\022\021\n\timageSize\030\001 \001(\004\022\021\n\ti"
|
|
"mageData\030\002 \001(\014\"A\n\021LayerLoadCurveMsg\022\n\n\002i"
|
|
"d\030\001 \001(\003\022\r\n\005layer\030\002 \001(\r\022\021\n\tcoverType\030\003 \001("
|
|
"\t\"<\n\022LayerLoadCurvesMsg\022&\n\nloadCurves\030\001 "
|
|
"\003(\0132\022.LayerLoadCurveMsg\"B\n\025LayerLoadCurv"
|
|
"eDataMsg\022\014\n\004mold\030\001 \003(\002\022\016\n\006powder\030\002 \003(\002\022\013"
|
|
"\n\003arm\030\003 \003(\002\"\274\001\n\tLogReqMsg\022 \n\004type\030\001 \001(\0162"
|
|
"\022.LogReqMsg.LogType\022\r\n\005index\030\002 \001(\r\022\020\n\010pa"
|
|
"geSize\030\003 \001(\r\"l\n\007LogType\022\t\n\005ALARM\020\000\022\010\n\004TA"
|
|
"SK\020\001\022\016\n\nLAYERSTATE\020\002\022\016\n\nLAYERIMAGE\020\003\022\t\n\005"
|
|
"IMAGE\020\004\022\022\n\016LAYERLOADCURVE\020\005\022\r\n\tLOADCURVE"
|
|
"\020\006\"\314\002\n\nLogRespMsg\022\r\n\005index\030\001 \001(\r\022\020\n\010page"
|
|
"Size\030\002 \001(\r\022\r\n\005total\030\003 \001(\r\022\034\n\006alarms\030\004 \001("
|
|
"\0132\n.AlarmsMsgH\000\022\032\n\005tasks\030\005 \001(\0132\t.TasksMs"
|
|
"gH\000\022!\n\006states\030\006 \001(\0132\017.LayerStatesMsgH\000\022!"
|
|
"\n\006images\030\007 \001(\0132\017.LayerImagesMsgH\000\022\'\n\tima"
|
|
"geData\030\010 \001(\0132\022.LayerImageDataMsgH\000\022)\n\nlo"
|
|
"adCurves\030\t \001(\0132\023.LayerLoadCurvesMsgH\000\022/\n"
|
|
"\rloadCurveData\030\n \001(\0132\026.LayerLoadCurveDat"
|
|
"aMsgH\000B\t\n\007logresp\"\201\001\n\016LogFetchReqMsg\022%\n\004"
|
|
"type\030\001 \001(\0162\027.LogFetchReqMsg.LogType\022\r\n\005b"
|
|
"egin\030\002 \001(\003\022\013\n\003end\030\003 \001(\003\",\n\007LogType\022\t\n\005AL"
|
|
"ARM\020\000\022\014\n\010TASKLIST\020\001\022\010\n\004TASK\020\002b\006proto3"
|
|
;
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_common_2eproto_deps[1] = {
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_common_2eproto_sccs[30] = {
|
|
&scc_info_AlarmMsg_common_2eproto.base,
|
|
&scc_info_AlarmsMsg_common_2eproto.base,
|
|
&scc_info_CameraDataMsg_common_2eproto.base,
|
|
&scc_info_DataBlockMsg_common_2eproto.base,
|
|
&scc_info_ErrorMsg_common_2eproto.base,
|
|
&scc_info_JobInfoMsg_common_2eproto.base,
|
|
&scc_info_JobMsg_common_2eproto.base,
|
|
&scc_info_JobParamMsg_common_2eproto.base,
|
|
&scc_info_JobStateMsg_common_2eproto.base,
|
|
&scc_info_LayerDataBlockMsg_common_2eproto.base,
|
|
&scc_info_LayerDataReqMsg_common_2eproto.base,
|
|
&scc_info_LayerDataRespMsg_common_2eproto.base,
|
|
&scc_info_LayerImageDataMsg_common_2eproto.base,
|
|
&scc_info_LayerImageMsg_common_2eproto.base,
|
|
&scc_info_LayerImagesMsg_common_2eproto.base,
|
|
&scc_info_LayerLoadCurveDataMsg_common_2eproto.base,
|
|
&scc_info_LayerLoadCurveMsg_common_2eproto.base,
|
|
&scc_info_LayerLoadCurvesMsg_common_2eproto.base,
|
|
&scc_info_LayerStateMsg_common_2eproto.base,
|
|
&scc_info_LayerStatesMsg_common_2eproto.base,
|
|
&scc_info_LogFetchReqMsg_common_2eproto.base,
|
|
&scc_info_LogReqMsg_common_2eproto.base,
|
|
&scc_info_LogRespMsg_common_2eproto.base,
|
|
&scc_info_MachineMsg_common_2eproto.base,
|
|
&scc_info_ParameterMsg_common_2eproto.base,
|
|
&scc_info_PartMsg_common_2eproto.base,
|
|
&scc_info_ResponseState_common_2eproto.base,
|
|
&scc_info_StateMsg_common_2eproto.base,
|
|
&scc_info_TaskMsg_common_2eproto.base,
|
|
&scc_info_TasksMsg_common_2eproto.base,
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_common_2eproto_once;
|
|
static bool descriptor_table_common_2eproto_initialized = false;
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2eproto = {
|
|
&descriptor_table_common_2eproto_initialized, descriptor_table_protodef_common_2eproto, "common.proto", 4277,
|
|
&descriptor_table_common_2eproto_once, descriptor_table_common_2eproto_sccs, descriptor_table_common_2eproto_deps, 30, 0,
|
|
schemas, file_default_instances, TableStruct_common_2eproto::offsets,
|
|
file_level_metadata_common_2eproto, 30, file_level_enum_descriptors_common_2eproto, file_level_service_descriptors_common_2eproto,
|
|
};
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
static bool dynamic_init_dummy_common_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_common_2eproto), true);
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* StateMsg_PrintState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[0];
|
|
}
|
|
bool StateMsg_PrintState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr StateMsg_PrintState StateMsg::STANDBY;
|
|
constexpr StateMsg_PrintState StateMsg::STANDBY_PAUSE;
|
|
constexpr StateMsg_PrintState StateMsg::STANDBY_STOP;
|
|
constexpr StateMsg_PrintState StateMsg::PREPRINT;
|
|
constexpr StateMsg_PrintState StateMsg::PRINTING;
|
|
constexpr StateMsg_PrintState StateMsg::FINISH;
|
|
constexpr StateMsg_PrintState StateMsg::PAUSE;
|
|
constexpr StateMsg_PrintState StateMsg::STOP;
|
|
constexpr StateMsg_PrintState StateMsg::PrintState_MIN;
|
|
constexpr StateMsg_PrintState StateMsg::PrintState_MAX;
|
|
constexpr int StateMsg::PrintState_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JobStateMsg_JobState_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[1];
|
|
}
|
|
bool JobStateMsg_JobState_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr JobStateMsg_JobState JobStateMsg::START;
|
|
constexpr JobStateMsg_JobState JobStateMsg::STOP;
|
|
constexpr JobStateMsg_JobState JobStateMsg::JobState_MIN;
|
|
constexpr JobStateMsg_JobState JobStateMsg::JobState_MAX;
|
|
constexpr int JobStateMsg::JobState_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MachineMsg_MachineType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[2];
|
|
}
|
|
bool MachineMsg_MachineType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr MachineMsg_MachineType MachineMsg::HBD_100;
|
|
constexpr MachineMsg_MachineType MachineMsg::HBD_280;
|
|
constexpr MachineMsg_MachineType MachineMsg::HBD_80;
|
|
constexpr MachineMsg_MachineType MachineMsg::HBD_400;
|
|
constexpr MachineMsg_MachineType MachineMsg::MachineType_MIN;
|
|
constexpr MachineMsg_MachineType MachineMsg::MachineType_MAX;
|
|
constexpr int MachineMsg::MachineType_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MachineMsg_PurifierType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[3];
|
|
}
|
|
bool MachineMsg_PurifierType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr MachineMsg_PurifierType MachineMsg::HBD_PURIFIER_1;
|
|
constexpr MachineMsg_PurifierType MachineMsg::XT;
|
|
constexpr MachineMsg_PurifierType MachineMsg::HBD_PURIFIER_2;
|
|
constexpr MachineMsg_PurifierType MachineMsg::PurifierType_MIN;
|
|
constexpr MachineMsg_PurifierType MachineMsg::PurifierType_MAX;
|
|
constexpr int MachineMsg::PurifierType_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorMsg_ErrorType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[4];
|
|
}
|
|
bool ErrorMsg_ErrorType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr ErrorMsg_ErrorType ErrorMsg::STOP;
|
|
constexpr ErrorMsg_ErrorType ErrorMsg::PAUSE;
|
|
constexpr ErrorMsg_ErrorType ErrorMsg::ErrorType_MIN;
|
|
constexpr ErrorMsg_ErrorType ErrorMsg::ErrorType_MAX;
|
|
constexpr int ErrorMsg::ErrorType_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LogReqMsg_LogType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[5];
|
|
}
|
|
bool LogReqMsg_LogType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr LogReqMsg_LogType LogReqMsg::ALARM;
|
|
constexpr LogReqMsg_LogType LogReqMsg::TASK;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LAYERSTATE;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LAYERIMAGE;
|
|
constexpr LogReqMsg_LogType LogReqMsg::IMAGE;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LAYERLOADCURVE;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LOADCURVE;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LogType_MIN;
|
|
constexpr LogReqMsg_LogType LogReqMsg::LogType_MAX;
|
|
constexpr int LogReqMsg::LogType_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LogFetchReqMsg_LogType_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto);
|
|
return file_level_enum_descriptors_common_2eproto[6];
|
|
}
|
|
bool LogFetchReqMsg_LogType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
constexpr LogFetchReqMsg_LogType LogFetchReqMsg::ALARM;
|
|
constexpr LogFetchReqMsg_LogType LogFetchReqMsg::TASKLIST;
|
|
constexpr LogFetchReqMsg_LogType LogFetchReqMsg::TASK;
|
|
constexpr LogFetchReqMsg_LogType LogFetchReqMsg::LogType_MIN;
|
|
constexpr LogFetchReqMsg_LogType LogFetchReqMsg::LogType_MAX;
|
|
constexpr int LogFetchReqMsg::LogType_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
|
|
|
|
// ===================================================================
|
|
|
|
void StateMsg::InitAsDefaultInstance() {
|
|
}
|
|
class StateMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
StateMsg::StateMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:StateMsg)
|
|
}
|
|
StateMsg::StateMsg(const StateMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
material_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.material().empty()) {
|
|
material_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.material_);
|
|
}
|
|
::memcpy(&oxygenvalue_, &from.oxygenvalue_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&layercount_) -
|
|
reinterpret_cast<char*>(&oxygenvalue_)) + sizeof(layercount_));
|
|
// @@protoc_insertion_point(copy_constructor:StateMsg)
|
|
}
|
|
|
|
void StateMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StateMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&oxygenvalue_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layercount_) -
|
|
reinterpret_cast<char*>(&oxygenvalue_)) + sizeof(layercount_));
|
|
}
|
|
|
|
StateMsg::~StateMsg() {
|
|
// @@protoc_insertion_point(destructor:StateMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void StateMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void StateMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const StateMsg& StateMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StateMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void StateMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:StateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&oxygenvalue_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layercount_) -
|
|
reinterpret_cast<char*>(&oxygenvalue_)) + sizeof(layercount_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* StateMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// float oxygenValue = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
|
|
oxygenvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float ambientTemp = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
|
|
ambienttemp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float innerTemp = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
innertemp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float windValue = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
windvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float platformTempValue = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
|
|
platformtempvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float platformTempSettingValue = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
|
|
platformtempsettingvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float moldPos = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
|
|
moldpos_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float powderPos = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) {
|
|
powderpos_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float armPos = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
|
|
armpos_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .StateMsg.PrintState printState = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_printstate(static_cast<::StateMsg_PrintState>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 layerIndex = 11;
|
|
case 11:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
|
|
layerindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 limitFlag = 12;
|
|
case 12:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
|
|
limitflag_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string machineId = 13;
|
|
case 13:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "StateMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isDoorClose = 14;
|
|
case 14:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) {
|
|
isdoorclose_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 accTime = 15;
|
|
case 15:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
|
|
acctime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 remainTime = 16;
|
|
case 16:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
|
|
remaintime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 totalTime = 17;
|
|
case 17:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
|
|
totaltime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 layerCount = 18;
|
|
case 18:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
|
|
layercount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 printTime = 19;
|
|
case 19:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) {
|
|
printtime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string material = 20;
|
|
case 20:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_material(), ptr, ctx, "StateMsg.material");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool StateMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:StateMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// float oxygenValue = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &oxygenvalue_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float ambientTemp = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &ambienttemp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float innerTemp = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &innertemp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float windValue = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &windvalue_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float platformTempValue = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &platformtempvalue_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float platformTempSettingValue = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (53 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &platformtempsettingvalue_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float moldPos = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (61 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &moldpos_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float powderPos = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (69 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &powderpos_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float armPos = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (77 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &armpos_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .StateMsg.PrintState printState = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_printstate(static_cast< ::StateMsg_PrintState >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 layerIndex = 11;
|
|
case 11: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &layerindex_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 limitFlag = 12;
|
|
case 12: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (96 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &limitflag_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string machineId = 13;
|
|
case 13: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (106 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"StateMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isDoorClose = 14;
|
|
case 14: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (112 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &isdoorclose_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 accTime = 15;
|
|
case 15: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (120 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &acctime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 remainTime = 16;
|
|
case 16: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (128 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &remaintime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 totalTime = 17;
|
|
case 17: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &totaltime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 layerCount = 18;
|
|
case 18: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &layercount_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 printTime = 19;
|
|
case 19: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (152 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &printtime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string material = 20;
|
|
case 20: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (162 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_material()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"StateMsg.material"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:StateMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:StateMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void StateMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:StateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// float oxygenValue = 1;
|
|
if (!(this->oxygenvalue() <= 0 && this->oxygenvalue() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(1, this->oxygenvalue(), output);
|
|
}
|
|
|
|
// float ambientTemp = 2;
|
|
if (!(this->ambienttemp() <= 0 && this->ambienttemp() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(2, this->ambienttemp(), output);
|
|
}
|
|
|
|
// float innerTemp = 3;
|
|
if (!(this->innertemp() <= 0 && this->innertemp() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->innertemp(), output);
|
|
}
|
|
|
|
// float windValue = 4;
|
|
if (!(this->windvalue() <= 0 && this->windvalue() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(4, this->windvalue(), output);
|
|
}
|
|
|
|
// float platformTempValue = 5;
|
|
if (!(this->platformtempvalue() <= 0 && this->platformtempvalue() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->platformtempvalue(), output);
|
|
}
|
|
|
|
// float platformTempSettingValue = 6;
|
|
if (!(this->platformtempsettingvalue() <= 0 && this->platformtempsettingvalue() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(6, this->platformtempsettingvalue(), output);
|
|
}
|
|
|
|
// float moldPos = 7;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(7, this->moldpos(), output);
|
|
}
|
|
|
|
// float powderPos = 8;
|
|
if (!(this->powderpos() <= 0 && this->powderpos() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(8, this->powderpos(), output);
|
|
}
|
|
|
|
// float armPos = 9;
|
|
if (!(this->armpos() <= 0 && this->armpos() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(9, this->armpos(), output);
|
|
}
|
|
|
|
// .StateMsg.PrintState printState = 10;
|
|
if (this->printstate() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
10, this->printstate(), output);
|
|
}
|
|
|
|
// int32 layerIndex = 11;
|
|
if (this->layerindex() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(11, this->layerindex(), output);
|
|
}
|
|
|
|
// int32 limitFlag = 12;
|
|
if (this->limitflag() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(12, this->limitflag(), output);
|
|
}
|
|
|
|
// string machineId = 13;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"StateMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
13, this->machineid(), output);
|
|
}
|
|
|
|
// bool isDoorClose = 14;
|
|
if (this->isdoorclose() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(14, this->isdoorclose(), output);
|
|
}
|
|
|
|
// uint32 accTime = 15;
|
|
if (this->acctime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(15, this->acctime(), output);
|
|
}
|
|
|
|
// uint32 remainTime = 16;
|
|
if (this->remaintime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(16, this->remaintime(), output);
|
|
}
|
|
|
|
// uint32 totalTime = 17;
|
|
if (this->totaltime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(17, this->totaltime(), output);
|
|
}
|
|
|
|
// int32 layerCount = 18;
|
|
if (this->layercount() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(18, this->layercount(), output);
|
|
}
|
|
|
|
// int64 printTime = 19;
|
|
if (this->printtime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(19, this->printtime(), output);
|
|
}
|
|
|
|
// string material = 20;
|
|
if (this->material().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"StateMsg.material");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
20, this->material(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:StateMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* StateMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:StateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// float oxygenValue = 1;
|
|
if (!(this->oxygenvalue() <= 0 && this->oxygenvalue() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->oxygenvalue(), target);
|
|
}
|
|
|
|
// float ambientTemp = 2;
|
|
if (!(this->ambienttemp() <= 0 && this->ambienttemp() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->ambienttemp(), target);
|
|
}
|
|
|
|
// float innerTemp = 3;
|
|
if (!(this->innertemp() <= 0 && this->innertemp() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->innertemp(), target);
|
|
}
|
|
|
|
// float windValue = 4;
|
|
if (!(this->windvalue() <= 0 && this->windvalue() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->windvalue(), target);
|
|
}
|
|
|
|
// float platformTempValue = 5;
|
|
if (!(this->platformtempvalue() <= 0 && this->platformtempvalue() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->platformtempvalue(), target);
|
|
}
|
|
|
|
// float platformTempSettingValue = 6;
|
|
if (!(this->platformtempsettingvalue() <= 0 && this->platformtempsettingvalue() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->platformtempsettingvalue(), target);
|
|
}
|
|
|
|
// float moldPos = 7;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->moldpos(), target);
|
|
}
|
|
|
|
// float powderPos = 8;
|
|
if (!(this->powderpos() <= 0 && this->powderpos() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(8, this->powderpos(), target);
|
|
}
|
|
|
|
// float armPos = 9;
|
|
if (!(this->armpos() <= 0 && this->armpos() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(9, this->armpos(), target);
|
|
}
|
|
|
|
// .StateMsg.PrintState printState = 10;
|
|
if (this->printstate() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
10, this->printstate(), target);
|
|
}
|
|
|
|
// int32 layerIndex = 11;
|
|
if (this->layerindex() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->layerindex(), target);
|
|
}
|
|
|
|
// int32 limitFlag = 12;
|
|
if (this->limitflag() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->limitflag(), target);
|
|
}
|
|
|
|
// string machineId = 13;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"StateMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
13, this->machineid(), target);
|
|
}
|
|
|
|
// bool isDoorClose = 14;
|
|
if (this->isdoorclose() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(14, this->isdoorclose(), target);
|
|
}
|
|
|
|
// uint32 accTime = 15;
|
|
if (this->acctime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(15, this->acctime(), target);
|
|
}
|
|
|
|
// uint32 remainTime = 16;
|
|
if (this->remaintime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(16, this->remaintime(), target);
|
|
}
|
|
|
|
// uint32 totalTime = 17;
|
|
if (this->totaltime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(17, this->totaltime(), target);
|
|
}
|
|
|
|
// int32 layerCount = 18;
|
|
if (this->layercount() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->layercount(), target);
|
|
}
|
|
|
|
// int64 printTime = 19;
|
|
if (this->printtime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(19, this->printtime(), target);
|
|
}
|
|
|
|
// string material = 20;
|
|
if (this->material().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"StateMsg.material");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
20, this->material(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:StateMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t StateMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:StateMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 13;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// string material = 20;
|
|
if (this->material().size() > 0) {
|
|
total_size += 2 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->material());
|
|
}
|
|
|
|
// float oxygenValue = 1;
|
|
if (!(this->oxygenvalue() <= 0 && this->oxygenvalue() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float ambientTemp = 2;
|
|
if (!(this->ambienttemp() <= 0 && this->ambienttemp() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float innerTemp = 3;
|
|
if (!(this->innertemp() <= 0 && this->innertemp() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float windValue = 4;
|
|
if (!(this->windvalue() <= 0 && this->windvalue() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float platformTempValue = 5;
|
|
if (!(this->platformtempvalue() <= 0 && this->platformtempvalue() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float platformTempSettingValue = 6;
|
|
if (!(this->platformtempsettingvalue() <= 0 && this->platformtempsettingvalue() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float moldPos = 7;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float powderPos = 8;
|
|
if (!(this->powderpos() <= 0 && this->powderpos() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float armPos = 9;
|
|
if (!(this->armpos() <= 0 && this->armpos() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// .StateMsg.PrintState printState = 10;
|
|
if (this->printstate() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->printstate());
|
|
}
|
|
|
|
// int32 layerIndex = 11;
|
|
if (this->layerindex() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->layerindex());
|
|
}
|
|
|
|
// int32 limitFlag = 12;
|
|
if (this->limitflag() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->limitflag());
|
|
}
|
|
|
|
// bool isDoorClose = 14;
|
|
if (this->isdoorclose() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// uint32 accTime = 15;
|
|
if (this->acctime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->acctime());
|
|
}
|
|
|
|
// uint32 remainTime = 16;
|
|
if (this->remaintime() != 0) {
|
|
total_size += 2 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->remaintime());
|
|
}
|
|
|
|
// uint32 totalTime = 17;
|
|
if (this->totaltime() != 0) {
|
|
total_size += 2 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->totaltime());
|
|
}
|
|
|
|
// int64 printTime = 19;
|
|
if (this->printtime() != 0) {
|
|
total_size += 2 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->printtime());
|
|
}
|
|
|
|
// int32 layerCount = 18;
|
|
if (this->layercount() != 0) {
|
|
total_size += 2 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->layercount());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void StateMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:StateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const StateMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StateMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:StateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:StateMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void StateMsg::MergeFrom(const StateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:StateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.material().size() > 0) {
|
|
|
|
material_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.material_);
|
|
}
|
|
if (!(from.oxygenvalue() <= 0 && from.oxygenvalue() >= 0)) {
|
|
set_oxygenvalue(from.oxygenvalue());
|
|
}
|
|
if (!(from.ambienttemp() <= 0 && from.ambienttemp() >= 0)) {
|
|
set_ambienttemp(from.ambienttemp());
|
|
}
|
|
if (!(from.innertemp() <= 0 && from.innertemp() >= 0)) {
|
|
set_innertemp(from.innertemp());
|
|
}
|
|
if (!(from.windvalue() <= 0 && from.windvalue() >= 0)) {
|
|
set_windvalue(from.windvalue());
|
|
}
|
|
if (!(from.platformtempvalue() <= 0 && from.platformtempvalue() >= 0)) {
|
|
set_platformtempvalue(from.platformtempvalue());
|
|
}
|
|
if (!(from.platformtempsettingvalue() <= 0 && from.platformtempsettingvalue() >= 0)) {
|
|
set_platformtempsettingvalue(from.platformtempsettingvalue());
|
|
}
|
|
if (!(from.moldpos() <= 0 && from.moldpos() >= 0)) {
|
|
set_moldpos(from.moldpos());
|
|
}
|
|
if (!(from.powderpos() <= 0 && from.powderpos() >= 0)) {
|
|
set_powderpos(from.powderpos());
|
|
}
|
|
if (!(from.armpos() <= 0 && from.armpos() >= 0)) {
|
|
set_armpos(from.armpos());
|
|
}
|
|
if (from.printstate() != 0) {
|
|
set_printstate(from.printstate());
|
|
}
|
|
if (from.layerindex() != 0) {
|
|
set_layerindex(from.layerindex());
|
|
}
|
|
if (from.limitflag() != 0) {
|
|
set_limitflag(from.limitflag());
|
|
}
|
|
if (from.isdoorclose() != 0) {
|
|
set_isdoorclose(from.isdoorclose());
|
|
}
|
|
if (from.acctime() != 0) {
|
|
set_acctime(from.acctime());
|
|
}
|
|
if (from.remaintime() != 0) {
|
|
set_remaintime(from.remaintime());
|
|
}
|
|
if (from.totaltime() != 0) {
|
|
set_totaltime(from.totaltime());
|
|
}
|
|
if (from.printtime() != 0) {
|
|
set_printtime(from.printtime());
|
|
}
|
|
if (from.layercount() != 0) {
|
|
set_layercount(from.layercount());
|
|
}
|
|
}
|
|
|
|
void StateMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:StateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void StateMsg::CopyFrom(const StateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:StateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool StateMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void StateMsg::InternalSwap(StateMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
material_.Swap(&other->material_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(oxygenvalue_, other->oxygenvalue_);
|
|
swap(ambienttemp_, other->ambienttemp_);
|
|
swap(innertemp_, other->innertemp_);
|
|
swap(windvalue_, other->windvalue_);
|
|
swap(platformtempvalue_, other->platformtempvalue_);
|
|
swap(platformtempsettingvalue_, other->platformtempsettingvalue_);
|
|
swap(moldpos_, other->moldpos_);
|
|
swap(powderpos_, other->powderpos_);
|
|
swap(armpos_, other->armpos_);
|
|
swap(printstate_, other->printstate_);
|
|
swap(layerindex_, other->layerindex_);
|
|
swap(limitflag_, other->limitflag_);
|
|
swap(isdoorclose_, other->isdoorclose_);
|
|
swap(acctime_, other->acctime_);
|
|
swap(remaintime_, other->remaintime_);
|
|
swap(totaltime_, other->totaltime_);
|
|
swap(printtime_, other->printtime_);
|
|
swap(layercount_, other->layercount_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata StateMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void JobInfoMsg::InitAsDefaultInstance() {
|
|
}
|
|
class JobInfoMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
JobInfoMsg::JobInfoMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:JobInfoMsg)
|
|
}
|
|
JobInfoMsg::JobInfoMsg(const JobInfoMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.name().empty()) {
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
material_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.material().empty()) {
|
|
material_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.material_);
|
|
}
|
|
::memcpy(&xsize_, &from.xsize_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&supportvolume_) -
|
|
reinterpret_cast<char*>(&xsize_)) + sizeof(supportvolume_));
|
|
// @@protoc_insertion_point(copy_constructor:JobInfoMsg)
|
|
}
|
|
|
|
void JobInfoMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JobInfoMsg_common_2eproto.base);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&xsize_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&supportvolume_) -
|
|
reinterpret_cast<char*>(&xsize_)) + sizeof(supportvolume_));
|
|
}
|
|
|
|
JobInfoMsg::~JobInfoMsg() {
|
|
// @@protoc_insertion_point(destructor:JobInfoMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void JobInfoMsg::SharedDtor() {
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void JobInfoMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const JobInfoMsg& JobInfoMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JobInfoMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void JobInfoMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:JobInfoMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
material_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&xsize_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&supportvolume_) -
|
|
reinterpret_cast<char*>(&xsize_)) + sizeof(supportvolume_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* JobInfoMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "JobInfoMsg.name");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float xSize = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
|
|
xsize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float ySize = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
ysize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float zSize = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
zsize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string material = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_material(), ptr, ctx, "JobInfoMsg.material");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float layerThickness = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
|
|
layerthickness_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerCount = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
|
|
layercount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 componentCount = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
|
|
componentcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float volume = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
|
|
volume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float supportVolume = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 85)) {
|
|
supportvolume_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool JobInfoMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:JobInfoMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string name = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobInfoMsg.name"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float xSize = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &xsize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float ySize = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &ysize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float zSize = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &zsize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string material = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_material()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobInfoMsg.material"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float layerThickness = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (53 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &layerthickness_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerCount = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layercount_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 componentCount = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &componentcount_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float volume = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (77 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &volume_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float supportVolume = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (85 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &supportvolume_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:JobInfoMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:JobInfoMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void JobInfoMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:JobInfoMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobInfoMsg.name");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->name(), output);
|
|
}
|
|
|
|
// float xSize = 2;
|
|
if (!(this->xsize() <= 0 && this->xsize() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(2, this->xsize(), output);
|
|
}
|
|
|
|
// float ySize = 3;
|
|
if (!(this->ysize() <= 0 && this->ysize() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->ysize(), output);
|
|
}
|
|
|
|
// float zSize = 4;
|
|
if (!(this->zsize() <= 0 && this->zsize() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(4, this->zsize(), output);
|
|
}
|
|
|
|
// string material = 5;
|
|
if (this->material().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobInfoMsg.material");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
5, this->material(), output);
|
|
}
|
|
|
|
// float layerThickness = 6;
|
|
if (!(this->layerthickness() <= 0 && this->layerthickness() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(6, this->layerthickness(), output);
|
|
}
|
|
|
|
// uint32 layerCount = 7;
|
|
if (this->layercount() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(7, this->layercount(), output);
|
|
}
|
|
|
|
// uint32 componentCount = 8;
|
|
if (this->componentcount() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(8, this->componentcount(), output);
|
|
}
|
|
|
|
// float volume = 9;
|
|
if (!(this->volume() <= 0 && this->volume() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(9, this->volume(), output);
|
|
}
|
|
|
|
// float supportVolume = 10;
|
|
if (!(this->supportvolume() <= 0 && this->supportvolume() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(10, this->supportvolume(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:JobInfoMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* JobInfoMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:JobInfoMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobInfoMsg.name");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->name(), target);
|
|
}
|
|
|
|
// float xSize = 2;
|
|
if (!(this->xsize() <= 0 && this->xsize() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->xsize(), target);
|
|
}
|
|
|
|
// float ySize = 3;
|
|
if (!(this->ysize() <= 0 && this->ysize() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->ysize(), target);
|
|
}
|
|
|
|
// float zSize = 4;
|
|
if (!(this->zsize() <= 0 && this->zsize() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->zsize(), target);
|
|
}
|
|
|
|
// string material = 5;
|
|
if (this->material().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->material().data(), static_cast<int>(this->material().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobInfoMsg.material");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
5, this->material(), target);
|
|
}
|
|
|
|
// float layerThickness = 6;
|
|
if (!(this->layerthickness() <= 0 && this->layerthickness() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->layerthickness(), target);
|
|
}
|
|
|
|
// uint32 layerCount = 7;
|
|
if (this->layercount() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->layercount(), target);
|
|
}
|
|
|
|
// uint32 componentCount = 8;
|
|
if (this->componentcount() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->componentcount(), target);
|
|
}
|
|
|
|
// float volume = 9;
|
|
if (!(this->volume() <= 0 && this->volume() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(9, this->volume(), target);
|
|
}
|
|
|
|
// float supportVolume = 10;
|
|
if (!(this->supportvolume() <= 0 && this->supportvolume() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->supportvolume(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:JobInfoMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t JobInfoMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:JobInfoMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// string material = 5;
|
|
if (this->material().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->material());
|
|
}
|
|
|
|
// float xSize = 2;
|
|
if (!(this->xsize() <= 0 && this->xsize() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float ySize = 3;
|
|
if (!(this->ysize() <= 0 && this->ysize() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float zSize = 4;
|
|
if (!(this->zsize() <= 0 && this->zsize() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float layerThickness = 6;
|
|
if (!(this->layerthickness() <= 0 && this->layerthickness() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// uint32 layerCount = 7;
|
|
if (this->layercount() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layercount());
|
|
}
|
|
|
|
// uint32 componentCount = 8;
|
|
if (this->componentcount() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->componentcount());
|
|
}
|
|
|
|
// float volume = 9;
|
|
if (!(this->volume() <= 0 && this->volume() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float supportVolume = 10;
|
|
if (!(this->supportvolume() <= 0 && this->supportvolume() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void JobInfoMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:JobInfoMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const JobInfoMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<JobInfoMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:JobInfoMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:JobInfoMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void JobInfoMsg::MergeFrom(const JobInfoMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:JobInfoMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (from.material().size() > 0) {
|
|
|
|
material_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.material_);
|
|
}
|
|
if (!(from.xsize() <= 0 && from.xsize() >= 0)) {
|
|
set_xsize(from.xsize());
|
|
}
|
|
if (!(from.ysize() <= 0 && from.ysize() >= 0)) {
|
|
set_ysize(from.ysize());
|
|
}
|
|
if (!(from.zsize() <= 0 && from.zsize() >= 0)) {
|
|
set_zsize(from.zsize());
|
|
}
|
|
if (!(from.layerthickness() <= 0 && from.layerthickness() >= 0)) {
|
|
set_layerthickness(from.layerthickness());
|
|
}
|
|
if (from.layercount() != 0) {
|
|
set_layercount(from.layercount());
|
|
}
|
|
if (from.componentcount() != 0) {
|
|
set_componentcount(from.componentcount());
|
|
}
|
|
if (!(from.volume() <= 0 && from.volume() >= 0)) {
|
|
set_volume(from.volume());
|
|
}
|
|
if (!(from.supportvolume() <= 0 && from.supportvolume() >= 0)) {
|
|
set_supportvolume(from.supportvolume());
|
|
}
|
|
}
|
|
|
|
void JobInfoMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:JobInfoMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void JobInfoMsg::CopyFrom(const JobInfoMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:JobInfoMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool JobInfoMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void JobInfoMsg::InternalSwap(JobInfoMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
material_.Swap(&other->material_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(xsize_, other->xsize_);
|
|
swap(ysize_, other->ysize_);
|
|
swap(zsize_, other->zsize_);
|
|
swap(layerthickness_, other->layerthickness_);
|
|
swap(layercount_, other->layercount_);
|
|
swap(componentcount_, other->componentcount_);
|
|
swap(volume_, other->volume_);
|
|
swap(supportvolume_, other->supportvolume_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata JobInfoMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void JobStateMsg::InitAsDefaultInstance() {
|
|
::_JobStateMsg_default_instance_._instance.get_mutable()->jobinfo_ = const_cast< ::JobInfoMsg*>(
|
|
::JobInfoMsg::internal_default_instance());
|
|
}
|
|
class JobStateMsg::_Internal {
|
|
public:
|
|
static const ::JobInfoMsg& jobinfo(const JobStateMsg* msg);
|
|
};
|
|
|
|
const ::JobInfoMsg&
|
|
JobStateMsg::_Internal::jobinfo(const JobStateMsg* msg) {
|
|
return *msg->jobinfo_;
|
|
}
|
|
JobStateMsg::JobStateMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:JobStateMsg)
|
|
}
|
|
JobStateMsg::JobStateMsg(const JobStateMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
uid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.uid().empty()) {
|
|
uid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uid_);
|
|
}
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.name().empty()) {
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.has_jobinfo()) {
|
|
jobinfo_ = new ::JobInfoMsg(*from.jobinfo_);
|
|
} else {
|
|
jobinfo_ = nullptr;
|
|
}
|
|
::memcpy(&jobid_, &from.jobid_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&jobstate_) -
|
|
reinterpret_cast<char*>(&jobid_)) + sizeof(jobstate_));
|
|
// @@protoc_insertion_point(copy_constructor:JobStateMsg)
|
|
}
|
|
|
|
void JobStateMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JobStateMsg_common_2eproto.base);
|
|
uid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&jobinfo_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&jobstate_) -
|
|
reinterpret_cast<char*>(&jobinfo_)) + sizeof(jobstate_));
|
|
}
|
|
|
|
JobStateMsg::~JobStateMsg() {
|
|
// @@protoc_insertion_point(destructor:JobStateMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void JobStateMsg::SharedDtor() {
|
|
uid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete jobinfo_;
|
|
}
|
|
|
|
void JobStateMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const JobStateMsg& JobStateMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JobStateMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void JobStateMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:JobStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
uid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (GetArenaNoVirtual() == nullptr && jobinfo_ != nullptr) {
|
|
delete jobinfo_;
|
|
}
|
|
jobinfo_ = nullptr;
|
|
::memset(&jobid_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&jobstate_) -
|
|
reinterpret_cast<char*>(&jobid_)) + sizeof(jobstate_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* JobStateMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// uint64 jobId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
jobid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string uId = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_uid(), ptr, ctx, "JobStateMsg.uId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string name = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "JobStateMsg.name");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 startTime = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
starttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 stopTime = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
stoptime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 deoxygenSecond = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
deoxygensecond_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 spendSecond = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
|
|
spendsecond_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float moldPos = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) {
|
|
moldpos_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 printLayerIndex = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
|
|
printlayerindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isFinish = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
|
|
isfinish_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isContinue = 11;
|
|
case 11:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
|
|
iscontinue_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isInvalid = 12;
|
|
case 12:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
|
|
isinvalid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .JobStateMsg.JobState jobState = 13;
|
|
case 13:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_jobstate(static_cast<::JobStateMsg_JobState>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string machineId = 14;
|
|
case 14:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "JobStateMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .JobInfoMsg jobInfo = 15;
|
|
case 15:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
|
|
ptr = ctx->ParseMessage(mutable_jobinfo(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool JobStateMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:JobStateMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// uint64 jobId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &jobid_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string uId = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_uid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->uid().data(), static_cast<int>(this->uid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobStateMsg.uId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string name = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobStateMsg.name"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 startTime = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &starttime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 stopTime = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &stoptime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 deoxygenSecond = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &deoxygensecond_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 spendSecond = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &spendsecond_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float moldPos = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (69 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &moldpos_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 printLayerIndex = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &printlayerindex_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isFinish = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &isfinish_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isContinue = 11;
|
|
case 11: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &iscontinue_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isInvalid = 12;
|
|
case 12: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (96 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &isinvalid_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .JobStateMsg.JobState jobState = 13;
|
|
case 13: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (104 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_jobstate(static_cast< ::JobStateMsg_JobState >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string machineId = 14;
|
|
case 14: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (114 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobStateMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .JobInfoMsg jobInfo = 15;
|
|
case 15: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (122 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_jobinfo()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:JobStateMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:JobStateMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void JobStateMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:JobStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint64 jobId = 1;
|
|
if (this->jobid() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(1, this->jobid(), output);
|
|
}
|
|
|
|
// string uId = 2;
|
|
if (this->uid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->uid().data(), static_cast<int>(this->uid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.uId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->uid(), output);
|
|
}
|
|
|
|
// string name = 3;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.name");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->name(), output);
|
|
}
|
|
|
|
// int64 startTime = 4;
|
|
if (this->starttime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->starttime(), output);
|
|
}
|
|
|
|
// int64 stopTime = 5;
|
|
if (this->stoptime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->stoptime(), output);
|
|
}
|
|
|
|
// uint32 deoxygenSecond = 6;
|
|
if (this->deoxygensecond() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(6, this->deoxygensecond(), output);
|
|
}
|
|
|
|
// uint32 spendSecond = 7;
|
|
if (this->spendsecond() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(7, this->spendsecond(), output);
|
|
}
|
|
|
|
// float moldPos = 8;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(8, this->moldpos(), output);
|
|
}
|
|
|
|
// uint32 printLayerIndex = 9;
|
|
if (this->printlayerindex() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(9, this->printlayerindex(), output);
|
|
}
|
|
|
|
// bool isFinish = 10;
|
|
if (this->isfinish() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(10, this->isfinish(), output);
|
|
}
|
|
|
|
// bool isContinue = 11;
|
|
if (this->iscontinue() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(11, this->iscontinue(), output);
|
|
}
|
|
|
|
// bool isInvalid = 12;
|
|
if (this->isinvalid() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(12, this->isinvalid(), output);
|
|
}
|
|
|
|
// .JobStateMsg.JobState jobState = 13;
|
|
if (this->jobstate() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
13, this->jobstate(), output);
|
|
}
|
|
|
|
// string machineId = 14;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
14, this->machineid(), output);
|
|
}
|
|
|
|
// .JobInfoMsg jobInfo = 15;
|
|
if (this->has_jobinfo()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
15, _Internal::jobinfo(this), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:JobStateMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* JobStateMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:JobStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint64 jobId = 1;
|
|
if (this->jobid() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->jobid(), target);
|
|
}
|
|
|
|
// string uId = 2;
|
|
if (this->uid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->uid().data(), static_cast<int>(this->uid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.uId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->uid(), target);
|
|
}
|
|
|
|
// string name = 3;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.name");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->name(), target);
|
|
}
|
|
|
|
// int64 startTime = 4;
|
|
if (this->starttime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->starttime(), target);
|
|
}
|
|
|
|
// int64 stopTime = 5;
|
|
if (this->stoptime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->stoptime(), target);
|
|
}
|
|
|
|
// uint32 deoxygenSecond = 6;
|
|
if (this->deoxygensecond() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->deoxygensecond(), target);
|
|
}
|
|
|
|
// uint32 spendSecond = 7;
|
|
if (this->spendsecond() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->spendsecond(), target);
|
|
}
|
|
|
|
// float moldPos = 8;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(8, this->moldpos(), target);
|
|
}
|
|
|
|
// uint32 printLayerIndex = 9;
|
|
if (this->printlayerindex() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->printlayerindex(), target);
|
|
}
|
|
|
|
// bool isFinish = 10;
|
|
if (this->isfinish() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->isfinish(), target);
|
|
}
|
|
|
|
// bool isContinue = 11;
|
|
if (this->iscontinue() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->iscontinue(), target);
|
|
}
|
|
|
|
// bool isInvalid = 12;
|
|
if (this->isinvalid() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->isinvalid(), target);
|
|
}
|
|
|
|
// .JobStateMsg.JobState jobState = 13;
|
|
if (this->jobstate() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
13, this->jobstate(), target);
|
|
}
|
|
|
|
// string machineId = 14;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobStateMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
14, this->machineid(), target);
|
|
}
|
|
|
|
// .JobInfoMsg jobInfo = 15;
|
|
if (this->has_jobinfo()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
15, _Internal::jobinfo(this), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:JobStateMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t JobStateMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:JobStateMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string uId = 2;
|
|
if (this->uid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->uid());
|
|
}
|
|
|
|
// string name = 3;
|
|
if (this->name().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// string machineId = 14;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// .JobInfoMsg jobInfo = 15;
|
|
if (this->has_jobinfo()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*jobinfo_);
|
|
}
|
|
|
|
// uint64 jobId = 1;
|
|
if (this->jobid() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->jobid());
|
|
}
|
|
|
|
// int64 startTime = 4;
|
|
if (this->starttime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->starttime());
|
|
}
|
|
|
|
// int64 stopTime = 5;
|
|
if (this->stoptime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->stoptime());
|
|
}
|
|
|
|
// uint32 deoxygenSecond = 6;
|
|
if (this->deoxygensecond() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->deoxygensecond());
|
|
}
|
|
|
|
// uint32 spendSecond = 7;
|
|
if (this->spendsecond() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->spendsecond());
|
|
}
|
|
|
|
// float moldPos = 8;
|
|
if (!(this->moldpos() <= 0 && this->moldpos() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// uint32 printLayerIndex = 9;
|
|
if (this->printlayerindex() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->printlayerindex());
|
|
}
|
|
|
|
// bool isFinish = 10;
|
|
if (this->isfinish() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// bool isContinue = 11;
|
|
if (this->iscontinue() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// bool isInvalid = 12;
|
|
if (this->isinvalid() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// .JobStateMsg.JobState jobState = 13;
|
|
if (this->jobstate() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->jobstate());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void JobStateMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:JobStateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const JobStateMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<JobStateMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:JobStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:JobStateMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void JobStateMsg::MergeFrom(const JobStateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:JobStateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.uid().size() > 0) {
|
|
|
|
uid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uid_);
|
|
}
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.has_jobinfo()) {
|
|
mutable_jobinfo()->::JobInfoMsg::MergeFrom(from.jobinfo());
|
|
}
|
|
if (from.jobid() != 0) {
|
|
set_jobid(from.jobid());
|
|
}
|
|
if (from.starttime() != 0) {
|
|
set_starttime(from.starttime());
|
|
}
|
|
if (from.stoptime() != 0) {
|
|
set_stoptime(from.stoptime());
|
|
}
|
|
if (from.deoxygensecond() != 0) {
|
|
set_deoxygensecond(from.deoxygensecond());
|
|
}
|
|
if (from.spendsecond() != 0) {
|
|
set_spendsecond(from.spendsecond());
|
|
}
|
|
if (!(from.moldpos() <= 0 && from.moldpos() >= 0)) {
|
|
set_moldpos(from.moldpos());
|
|
}
|
|
if (from.printlayerindex() != 0) {
|
|
set_printlayerindex(from.printlayerindex());
|
|
}
|
|
if (from.isfinish() != 0) {
|
|
set_isfinish(from.isfinish());
|
|
}
|
|
if (from.iscontinue() != 0) {
|
|
set_iscontinue(from.iscontinue());
|
|
}
|
|
if (from.isinvalid() != 0) {
|
|
set_isinvalid(from.isinvalid());
|
|
}
|
|
if (from.jobstate() != 0) {
|
|
set_jobstate(from.jobstate());
|
|
}
|
|
}
|
|
|
|
void JobStateMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:JobStateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void JobStateMsg::CopyFrom(const JobStateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:JobStateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool JobStateMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void JobStateMsg::InternalSwap(JobStateMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
uid_.Swap(&other->uid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(jobinfo_, other->jobinfo_);
|
|
swap(jobid_, other->jobid_);
|
|
swap(starttime_, other->starttime_);
|
|
swap(stoptime_, other->stoptime_);
|
|
swap(deoxygensecond_, other->deoxygensecond_);
|
|
swap(spendsecond_, other->spendsecond_);
|
|
swap(moldpos_, other->moldpos_);
|
|
swap(printlayerindex_, other->printlayerindex_);
|
|
swap(isfinish_, other->isfinish_);
|
|
swap(iscontinue_, other->iscontinue_);
|
|
swap(isinvalid_, other->isinvalid_);
|
|
swap(jobstate_, other->jobstate_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata JobStateMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void MachineMsg::InitAsDefaultInstance() {
|
|
}
|
|
class MachineMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
MachineMsg::MachineMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:MachineMsg)
|
|
}
|
|
MachineMsg::MachineMsg(const MachineMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.password().empty()) {
|
|
password_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.password_);
|
|
}
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.name().empty()) {
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.location().empty()) {
|
|
location_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.location_);
|
|
}
|
|
::memcpy(&machinetype_, &from.machinetype_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&isonline_) -
|
|
reinterpret_cast<char*>(&machinetype_)) + sizeof(isonline_));
|
|
// @@protoc_insertion_point(copy_constructor:MachineMsg)
|
|
}
|
|
|
|
void MachineMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MachineMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&machinetype_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&isonline_) -
|
|
reinterpret_cast<char*>(&machinetype_)) + sizeof(isonline_));
|
|
}
|
|
|
|
MachineMsg::~MachineMsg() {
|
|
// @@protoc_insertion_point(destructor:MachineMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void MachineMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
location_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void MachineMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const MachineMsg& MachineMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MachineMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void MachineMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:MachineMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
location_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&machinetype_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&isonline_) -
|
|
reinterpret_cast<char*>(&machinetype_)) + sizeof(isonline_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* MachineMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "MachineMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .MachineMsg.MachineType machineType = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_machinetype(static_cast<::MachineMsg_MachineType>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .MachineMsg.PurifierType purifierType = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_purifiertype(static_cast<::MachineMsg_PurifierType>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 lastStartTime = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
laststarttime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 lastShutdownTime = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
lastshutdowntime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 language = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
language_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isOnline = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
|
|
isonline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string password = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_password(), ptr, ctx, "MachineMsg.password");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string name = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "MachineMsg.name");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string location = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_location(), ptr, ctx, "MachineMsg.location");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool MachineMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:MachineMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"MachineMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .MachineMsg.MachineType machineType = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_machinetype(static_cast< ::MachineMsg_MachineType >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .MachineMsg.PurifierType purifierType = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_purifiertype(static_cast< ::MachineMsg_PurifierType >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 lastStartTime = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &laststarttime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 lastShutdownTime = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &lastshutdowntime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 language = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &language_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isOnline = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &isonline_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string password = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_password()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->password().data(), static_cast<int>(this->password().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"MachineMsg.password"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string name = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"MachineMsg.name"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string location = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_location()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->location().data(), static_cast<int>(this->location().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"MachineMsg.location"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:MachineMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:MachineMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void MachineMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:MachineMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// .MachineMsg.MachineType machineType = 2;
|
|
if (this->machinetype() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
2, this->machinetype(), output);
|
|
}
|
|
|
|
// .MachineMsg.PurifierType purifierType = 3;
|
|
if (this->purifiertype() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
3, this->purifiertype(), output);
|
|
}
|
|
|
|
// int64 lastStartTime = 4;
|
|
if (this->laststarttime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->laststarttime(), output);
|
|
}
|
|
|
|
// int64 lastShutdownTime = 5;
|
|
if (this->lastshutdowntime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->lastshutdowntime(), output);
|
|
}
|
|
|
|
// int32 language = 6;
|
|
if (this->language() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(6, this->language(), output);
|
|
}
|
|
|
|
// bool isOnline = 7;
|
|
if (this->isonline() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->isonline(), output);
|
|
}
|
|
|
|
// string password = 8;
|
|
if (this->password().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->password().data(), static_cast<int>(this->password().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.password");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
8, this->password(), output);
|
|
}
|
|
|
|
// string name = 9;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.name");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
9, this->name(), output);
|
|
}
|
|
|
|
// string location = 10;
|
|
if (this->location().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->location().data(), static_cast<int>(this->location().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.location");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
10, this->location(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:MachineMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* MachineMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:MachineMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// .MachineMsg.MachineType machineType = 2;
|
|
if (this->machinetype() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
2, this->machinetype(), target);
|
|
}
|
|
|
|
// .MachineMsg.PurifierType purifierType = 3;
|
|
if (this->purifiertype() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
3, this->purifiertype(), target);
|
|
}
|
|
|
|
// int64 lastStartTime = 4;
|
|
if (this->laststarttime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->laststarttime(), target);
|
|
}
|
|
|
|
// int64 lastShutdownTime = 5;
|
|
if (this->lastshutdowntime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->lastshutdowntime(), target);
|
|
}
|
|
|
|
// int32 language = 6;
|
|
if (this->language() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->language(), target);
|
|
}
|
|
|
|
// bool isOnline = 7;
|
|
if (this->isonline() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->isonline(), target);
|
|
}
|
|
|
|
// string password = 8;
|
|
if (this->password().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->password().data(), static_cast<int>(this->password().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.password");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
8, this->password(), target);
|
|
}
|
|
|
|
// string name = 9;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.name");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
9, this->name(), target);
|
|
}
|
|
|
|
// string location = 10;
|
|
if (this->location().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->location().data(), static_cast<int>(this->location().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"MachineMsg.location");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
10, this->location(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:MachineMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t MachineMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:MachineMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// string password = 8;
|
|
if (this->password().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->password());
|
|
}
|
|
|
|
// string name = 9;
|
|
if (this->name().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// string location = 10;
|
|
if (this->location().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->location());
|
|
}
|
|
|
|
// .MachineMsg.MachineType machineType = 2;
|
|
if (this->machinetype() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->machinetype());
|
|
}
|
|
|
|
// .MachineMsg.PurifierType purifierType = 3;
|
|
if (this->purifiertype() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->purifiertype());
|
|
}
|
|
|
|
// int64 lastStartTime = 4;
|
|
if (this->laststarttime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->laststarttime());
|
|
}
|
|
|
|
// int64 lastShutdownTime = 5;
|
|
if (this->lastshutdowntime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->lastshutdowntime());
|
|
}
|
|
|
|
// int32 language = 6;
|
|
if (this->language() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->language());
|
|
}
|
|
|
|
// bool isOnline = 7;
|
|
if (this->isonline() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void MachineMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:MachineMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const MachineMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MachineMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:MachineMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:MachineMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void MachineMsg::MergeFrom(const MachineMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:MachineMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.password().size() > 0) {
|
|
|
|
password_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.password_);
|
|
}
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (from.location().size() > 0) {
|
|
|
|
location_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.location_);
|
|
}
|
|
if (from.machinetype() != 0) {
|
|
set_machinetype(from.machinetype());
|
|
}
|
|
if (from.purifiertype() != 0) {
|
|
set_purifiertype(from.purifiertype());
|
|
}
|
|
if (from.laststarttime() != 0) {
|
|
set_laststarttime(from.laststarttime());
|
|
}
|
|
if (from.lastshutdowntime() != 0) {
|
|
set_lastshutdowntime(from.lastshutdowntime());
|
|
}
|
|
if (from.language() != 0) {
|
|
set_language(from.language());
|
|
}
|
|
if (from.isonline() != 0) {
|
|
set_isonline(from.isonline());
|
|
}
|
|
}
|
|
|
|
void MachineMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:MachineMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void MachineMsg::CopyFrom(const MachineMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:MachineMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool MachineMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void MachineMsg::InternalSwap(MachineMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
location_.Swap(&other->location_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(machinetype_, other->machinetype_);
|
|
swap(purifiertype_, other->purifiertype_);
|
|
swap(laststarttime_, other->laststarttime_);
|
|
swap(lastshutdowntime_, other->lastshutdowntime_);
|
|
swap(language_, other->language_);
|
|
swap(isonline_, other->isonline_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata MachineMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void ErrorMsg::InitAsDefaultInstance() {
|
|
}
|
|
class ErrorMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
ErrorMsg::ErrorMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ErrorMsg)
|
|
}
|
|
ErrorMsg::ErrorMsg(const ErrorMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
errormsg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.errormsg().empty()) {
|
|
errormsg_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.errormsg_);
|
|
}
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
::memcpy(&occurtime_, &from.occurtime_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&errortype_) -
|
|
reinterpret_cast<char*>(&occurtime_)) + sizeof(errortype_));
|
|
// @@protoc_insertion_point(copy_constructor:ErrorMsg)
|
|
}
|
|
|
|
void ErrorMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ErrorMsg_common_2eproto.base);
|
|
errormsg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&occurtime_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&errortype_) -
|
|
reinterpret_cast<char*>(&occurtime_)) + sizeof(errortype_));
|
|
}
|
|
|
|
ErrorMsg::~ErrorMsg() {
|
|
// @@protoc_insertion_point(destructor:ErrorMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ErrorMsg::SharedDtor() {
|
|
errormsg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void ErrorMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ErrorMsg& ErrorMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ErrorMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ErrorMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ErrorMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
errormsg_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&occurtime_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&errortype_) -
|
|
reinterpret_cast<char*>(&occurtime_)) + sizeof(errortype_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* ErrorMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// .ErrorMsg.ErrorType errorType = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_errortype(static_cast<::ErrorMsg_ErrorType>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string errorMsg = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_errormsg(), ptr, ctx, "ErrorMsg.errorMsg");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 occurTime = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
occurtime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string machineId = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "ErrorMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool ErrorMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ErrorMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// .ErrorMsg.ErrorType errorType = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_errortype(static_cast< ::ErrorMsg_ErrorType >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string errorMsg = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_errormsg()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->errormsg().data(), static_cast<int>(this->errormsg().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"ErrorMsg.errorMsg"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 occurTime = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &occurtime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string machineId = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"ErrorMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ErrorMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ErrorMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void ErrorMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ErrorMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .ErrorMsg.ErrorType errorType = 1;
|
|
if (this->errortype() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
1, this->errortype(), output);
|
|
}
|
|
|
|
// string errorMsg = 2;
|
|
if (this->errormsg().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->errormsg().data(), static_cast<int>(this->errormsg().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ErrorMsg.errorMsg");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->errormsg(), output);
|
|
}
|
|
|
|
// int64 occurTime = 3;
|
|
if (this->occurtime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->occurtime(), output);
|
|
}
|
|
|
|
// string machineId = 4;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ErrorMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->machineid(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ErrorMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ErrorMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:ErrorMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .ErrorMsg.ErrorType errorType = 1;
|
|
if (this->errortype() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
1, this->errortype(), target);
|
|
}
|
|
|
|
// string errorMsg = 2;
|
|
if (this->errormsg().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->errormsg().data(), static_cast<int>(this->errormsg().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ErrorMsg.errorMsg");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->errormsg(), target);
|
|
}
|
|
|
|
// int64 occurTime = 3;
|
|
if (this->occurtime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->occurtime(), target);
|
|
}
|
|
|
|
// string machineId = 4;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ErrorMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->machineid(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ErrorMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t ErrorMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ErrorMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string errorMsg = 2;
|
|
if (this->errormsg().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->errormsg());
|
|
}
|
|
|
|
// string machineId = 4;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// int64 occurTime = 3;
|
|
if (this->occurtime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->occurtime());
|
|
}
|
|
|
|
// .ErrorMsg.ErrorType errorType = 1;
|
|
if (this->errortype() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->errortype());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ErrorMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ErrorMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ErrorMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ErrorMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ErrorMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ErrorMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ErrorMsg::MergeFrom(const ErrorMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ErrorMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.errormsg().size() > 0) {
|
|
|
|
errormsg_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.errormsg_);
|
|
}
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.occurtime() != 0) {
|
|
set_occurtime(from.occurtime());
|
|
}
|
|
if (from.errortype() != 0) {
|
|
set_errortype(from.errortype());
|
|
}
|
|
}
|
|
|
|
void ErrorMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ErrorMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ErrorMsg::CopyFrom(const ErrorMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ErrorMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ErrorMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ErrorMsg::InternalSwap(ErrorMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
errormsg_.Swap(&other->errormsg_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(occurtime_, other->occurtime_);
|
|
swap(errortype_, other->errortype_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ErrorMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void ParameterMsg::InitAsDefaultInstance() {
|
|
}
|
|
class ParameterMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
ParameterMsg::ParameterMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ParameterMsg)
|
|
}
|
|
ParameterMsg::ParameterMsg(const ParameterMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.type().empty()) {
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
::memcpy(&laserspeed_, &from.laserspeed_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&laserdiameter_) -
|
|
reinterpret_cast<char*>(&laserspeed_)) + sizeof(laserdiameter_));
|
|
// @@protoc_insertion_point(copy_constructor:ParameterMsg)
|
|
}
|
|
|
|
void ParameterMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ParameterMsg_common_2eproto.base);
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&laserspeed_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&laserdiameter_) -
|
|
reinterpret_cast<char*>(&laserspeed_)) + sizeof(laserdiameter_));
|
|
}
|
|
|
|
ParameterMsg::~ParameterMsg() {
|
|
// @@protoc_insertion_point(destructor:ParameterMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ParameterMsg::SharedDtor() {
|
|
type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void ParameterMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ParameterMsg& ParameterMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ParameterMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ParameterMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ParameterMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&laserspeed_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&laserdiameter_) -
|
|
reinterpret_cast<char*>(&laserspeed_)) + sizeof(laserdiameter_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* ParameterMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type(), ptr, ctx, "ParameterMsg.type");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float laserSpeed = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
|
|
laserspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float laserPower = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
laserpower_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float laserDiameter = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
laserdiameter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool ParameterMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ParameterMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string type = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_type()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"ParameterMsg.type"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float laserSpeed = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &laserspeed_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float laserPower = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &laserpower_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float laserDiameter = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &laserdiameter_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ParameterMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ParameterMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void ParameterMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ParameterMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string type = 1;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ParameterMsg.type");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->type(), output);
|
|
}
|
|
|
|
// float laserSpeed = 2;
|
|
if (!(this->laserspeed() <= 0 && this->laserspeed() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(2, this->laserspeed(), output);
|
|
}
|
|
|
|
// float laserPower = 3;
|
|
if (!(this->laserpower() <= 0 && this->laserpower() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->laserpower(), output);
|
|
}
|
|
|
|
// float laserDiameter = 4;
|
|
if (!(this->laserdiameter() <= 0 && this->laserdiameter() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(4, this->laserdiameter(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ParameterMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ParameterMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:ParameterMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string type = 1;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"ParameterMsg.type");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->type(), target);
|
|
}
|
|
|
|
// float laserSpeed = 2;
|
|
if (!(this->laserspeed() <= 0 && this->laserspeed() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->laserspeed(), target);
|
|
}
|
|
|
|
// float laserPower = 3;
|
|
if (!(this->laserpower() <= 0 && this->laserpower() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->laserpower(), target);
|
|
}
|
|
|
|
// float laserDiameter = 4;
|
|
if (!(this->laserdiameter() <= 0 && this->laserdiameter() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->laserdiameter(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ParameterMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t ParameterMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ParameterMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string type = 1;
|
|
if (this->type().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->type());
|
|
}
|
|
|
|
// float laserSpeed = 2;
|
|
if (!(this->laserspeed() <= 0 && this->laserspeed() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float laserPower = 3;
|
|
if (!(this->laserpower() <= 0 && this->laserpower() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float laserDiameter = 4;
|
|
if (!(this->laserdiameter() <= 0 && this->laserdiameter() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ParameterMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ParameterMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ParameterMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ParameterMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ParameterMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ParameterMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ParameterMsg::MergeFrom(const ParameterMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ParameterMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.type().size() > 0) {
|
|
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
if (!(from.laserspeed() <= 0 && from.laserspeed() >= 0)) {
|
|
set_laserspeed(from.laserspeed());
|
|
}
|
|
if (!(from.laserpower() <= 0 && from.laserpower() >= 0)) {
|
|
set_laserpower(from.laserpower());
|
|
}
|
|
if (!(from.laserdiameter() <= 0 && from.laserdiameter() >= 0)) {
|
|
set_laserdiameter(from.laserdiameter());
|
|
}
|
|
}
|
|
|
|
void ParameterMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ParameterMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ParameterMsg::CopyFrom(const ParameterMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ParameterMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ParameterMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ParameterMsg::InternalSwap(ParameterMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(laserspeed_, other->laserspeed_);
|
|
swap(laserpower_, other->laserpower_);
|
|
swap(laserdiameter_, other->laserdiameter_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ParameterMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void PartMsg::InitAsDefaultInstance() {
|
|
}
|
|
class PartMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
PartMsg::PartMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:PartMsg)
|
|
}
|
|
PartMsg::PartMsg(const PartMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
param_(from.param_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.name().empty()) {
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:PartMsg)
|
|
}
|
|
|
|
void PartMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PartMsg_common_2eproto.base);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
PartMsg::~PartMsg() {
|
|
// @@protoc_insertion_point(destructor:PartMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void PartMsg::SharedDtor() {
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void PartMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const PartMsg& PartMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PartMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void PartMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:PartMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
param_.Clear();
|
|
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* PartMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "PartMsg.name");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated .ParameterMsg param = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_param(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool PartMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:PartMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string name = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"PartMsg.name"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .ParameterMsg param = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_param()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:PartMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:PartMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void PartMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:PartMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"PartMsg.name");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->name(), output);
|
|
}
|
|
|
|
// repeated .ParameterMsg param = 2;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->param_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
2,
|
|
this->param(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:PartMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* PartMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:PartMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"PartMsg.name");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->name(), target);
|
|
}
|
|
|
|
// repeated .ParameterMsg param = 2;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->param_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
2, this->param(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:PartMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t PartMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:PartMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .ParameterMsg param = 2;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->param_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->param(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
// string name = 1;
|
|
if (this->name().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void PartMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:PartMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const PartMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PartMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PartMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:PartMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void PartMsg::MergeFrom(const PartMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:PartMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
param_.MergeFrom(from.param_);
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
}
|
|
|
|
void PartMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:PartMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void PartMsg::CopyFrom(const PartMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:PartMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool PartMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void PartMsg::InternalSwap(PartMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(¶m_)->InternalSwap(CastToBase(&other->param_));
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata PartMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void JobMsg::InitAsDefaultInstance() {
|
|
::_JobMsg_default_instance_._instance.get_mutable()->jobinfomsg_ = const_cast< ::JobInfoMsg*>(
|
|
::JobInfoMsg::internal_default_instance());
|
|
}
|
|
class JobMsg::_Internal {
|
|
public:
|
|
static const ::JobInfoMsg& jobinfomsg(const JobMsg* msg);
|
|
};
|
|
|
|
const ::JobInfoMsg&
|
|
JobMsg::_Internal::jobinfomsg(const JobMsg* msg) {
|
|
return *msg->jobinfomsg_;
|
|
}
|
|
JobMsg::JobMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:JobMsg)
|
|
}
|
|
JobMsg::JobMsg(const JobMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
partmsg_(from.partmsg_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.has_jobinfomsg()) {
|
|
jobinfomsg_ = new ::JobInfoMsg(*from.jobinfomsg_);
|
|
} else {
|
|
jobinfomsg_ = nullptr;
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:JobMsg)
|
|
}
|
|
|
|
void JobMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JobMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobinfomsg_ = nullptr;
|
|
}
|
|
|
|
JobMsg::~JobMsg() {
|
|
// @@protoc_insertion_point(destructor:JobMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void JobMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete jobinfomsg_;
|
|
}
|
|
|
|
void JobMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const JobMsg& JobMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JobMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void JobMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:JobMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
partmsg_.Clear();
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (GetArenaNoVirtual() == nullptr && jobinfomsg_ != nullptr) {
|
|
delete jobinfomsg_;
|
|
}
|
|
jobinfomsg_ = nullptr;
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* JobMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// .JobInfoMsg jobInfoMsg = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ctx->ParseMessage(mutable_jobinfomsg(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated .PartMsg partMsg = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_partmsg(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string machineId = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "JobMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool JobMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:JobMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// .JobInfoMsg jobInfoMsg = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_jobinfomsg()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .PartMsg partMsg = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_partmsg()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string machineId = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:JobMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:JobMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void JobMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:JobMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .JobInfoMsg jobInfoMsg = 1;
|
|
if (this->has_jobinfomsg()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, _Internal::jobinfomsg(this), output);
|
|
}
|
|
|
|
// repeated .PartMsg partMsg = 2;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->partmsg_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
2,
|
|
this->partmsg(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
// string machineId = 3;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->machineid(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:JobMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* JobMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:JobMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .JobInfoMsg jobInfoMsg = 1;
|
|
if (this->has_jobinfomsg()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, _Internal::jobinfomsg(this), target);
|
|
}
|
|
|
|
// repeated .PartMsg partMsg = 2;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->partmsg_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
2, this->partmsg(static_cast<int>(i)), target);
|
|
}
|
|
|
|
// string machineId = 3;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->machineid(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:JobMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t JobMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:JobMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .PartMsg partMsg = 2;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->partmsg_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->partmsg(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
// string machineId = 3;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// .JobInfoMsg jobInfoMsg = 1;
|
|
if (this->has_jobinfomsg()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*jobinfomsg_);
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void JobMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:JobMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const JobMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<JobMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:JobMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:JobMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void JobMsg::MergeFrom(const JobMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:JobMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
partmsg_.MergeFrom(from.partmsg_);
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.has_jobinfomsg()) {
|
|
mutable_jobinfomsg()->::JobInfoMsg::MergeFrom(from.jobinfomsg());
|
|
}
|
|
}
|
|
|
|
void JobMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:JobMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void JobMsg::CopyFrom(const JobMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:JobMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool JobMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void JobMsg::InternalSwap(JobMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&partmsg_)->InternalSwap(CastToBase(&other->partmsg_));
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(jobinfomsg_, other->jobinfomsg_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata JobMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerDataRespMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerDataRespMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerDataRespMsg::LayerDataRespMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerDataRespMsg)
|
|
}
|
|
LayerDataRespMsg::LayerDataRespMsg(const LayerDataRespMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
data_(from.data_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
datas_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.datas().empty()) {
|
|
datas_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.datas_);
|
|
}
|
|
paramtype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.paramtype().empty()) {
|
|
paramtype_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.paramtype_);
|
|
}
|
|
::memcpy(&type_, &from.type_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&index_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(index_));
|
|
// @@protoc_insertion_point(copy_constructor:LayerDataRespMsg)
|
|
}
|
|
|
|
void LayerDataRespMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerDataRespMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
paramtype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&index_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(index_));
|
|
}
|
|
|
|
LayerDataRespMsg::~LayerDataRespMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerDataRespMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerDataRespMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
paramtype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerDataRespMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerDataRespMsg& LayerDataRespMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerDataRespMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerDataRespMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerDataRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
data_.Clear();
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
paramtype_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&index_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(index_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerDataRespMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "LayerDataRespMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 type = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int32 partId = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
partid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 total = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 index = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated float data = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_data(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53) {
|
|
add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bytes datas = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_datas(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string paramType = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_paramtype(), ptr, ctx, "LayerDataRespMsg.paramType");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerDataRespMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerDataRespMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataRespMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 type = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &type_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int32 partId = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &partid_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 total = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &total_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 index = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &index_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated float data = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, this->mutable_data())));
|
|
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (53 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
1, 50u, input, this->mutable_data())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bytes datas = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_datas()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string paramType = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_paramtype()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->paramtype().data(), static_cast<int>(this->paramtype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataRespMsg.paramType"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerDataRespMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerDataRespMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerDataRespMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerDataRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataRespMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// int32 type = 2;
|
|
if (this->type() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->type(), output);
|
|
}
|
|
|
|
// int32 partId = 3;
|
|
if (this->partid() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->partid(), output);
|
|
}
|
|
|
|
// uint32 total = 4;
|
|
if (this->total() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(4, this->total(), output);
|
|
}
|
|
|
|
// uint32 index = 5;
|
|
if (this->index() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(5, this->index(), output);
|
|
}
|
|
|
|
// repeated float data = 6;
|
|
if (this->data_size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(6, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_data_cached_byte_size_.load(
|
|
std::memory_order_relaxed));
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray(
|
|
this->data().data(), this->data_size(), output);
|
|
}
|
|
|
|
// bytes datas = 7;
|
|
if (this->datas().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
7, this->datas(), output);
|
|
}
|
|
|
|
// string paramType = 8;
|
|
if (this->paramtype().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->paramtype().data(), static_cast<int>(this->paramtype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataRespMsg.paramType");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
8, this->paramtype(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerDataRespMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerDataRespMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerDataRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataRespMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// int32 type = 2;
|
|
if (this->type() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
|
|
}
|
|
|
|
// int32 partId = 3;
|
|
if (this->partid() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->partid(), target);
|
|
}
|
|
|
|
// uint32 total = 4;
|
|
if (this->total() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->total(), target);
|
|
}
|
|
|
|
// uint32 index = 5;
|
|
if (this->index() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->index(), target);
|
|
}
|
|
|
|
// repeated float data = 6;
|
|
if (this->data_size() > 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
|
|
6,
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
|
|
_data_cached_byte_size_.load(std::memory_order_relaxed),
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
WriteFloatNoTagToArray(this->data_, target);
|
|
}
|
|
|
|
// bytes datas = 7;
|
|
if (this->datas().size() > 0) {
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
|
|
7, this->datas(), target);
|
|
}
|
|
|
|
// string paramType = 8;
|
|
if (this->paramtype().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->paramtype().data(), static_cast<int>(this->paramtype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataRespMsg.paramType");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
8, this->paramtype(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerDataRespMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerDataRespMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerDataRespMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated float data = 6;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->data_size());
|
|
size_t data_size = 4UL * count;
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
_data_cached_byte_size_.store(cached_size,
|
|
std::memory_order_relaxed);
|
|
total_size += data_size;
|
|
}
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// bytes datas = 7;
|
|
if (this->datas().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->datas());
|
|
}
|
|
|
|
// string paramType = 8;
|
|
if (this->paramtype().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->paramtype());
|
|
}
|
|
|
|
// int32 type = 2;
|
|
if (this->type() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->type());
|
|
}
|
|
|
|
// int32 partId = 3;
|
|
if (this->partid() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->partid());
|
|
}
|
|
|
|
// uint32 total = 4;
|
|
if (this->total() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->total());
|
|
}
|
|
|
|
// uint32 index = 5;
|
|
if (this->index() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->index());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerDataRespMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerDataRespMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerDataRespMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerDataRespMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerDataRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerDataRespMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerDataRespMsg::MergeFrom(const LayerDataRespMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerDataRespMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
data_.MergeFrom(from.data_);
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.datas().size() > 0) {
|
|
|
|
datas_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.datas_);
|
|
}
|
|
if (from.paramtype().size() > 0) {
|
|
|
|
paramtype_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.paramtype_);
|
|
}
|
|
if (from.type() != 0) {
|
|
set_type(from.type());
|
|
}
|
|
if (from.partid() != 0) {
|
|
set_partid(from.partid());
|
|
}
|
|
if (from.total() != 0) {
|
|
set_total(from.total());
|
|
}
|
|
if (from.index() != 0) {
|
|
set_index(from.index());
|
|
}
|
|
}
|
|
|
|
void LayerDataRespMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerDataRespMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerDataRespMsg::CopyFrom(const LayerDataRespMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerDataRespMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerDataRespMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerDataRespMsg::InternalSwap(LayerDataRespMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
data_.InternalSwap(&other->data_);
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
datas_.Swap(&other->datas_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
paramtype_.Swap(&other->paramtype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(type_, other->type_);
|
|
swap(partid_, other->partid_);
|
|
swap(total_, other->total_);
|
|
swap(index_, other->index_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerDataRespMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void DataBlockMsg::InitAsDefaultInstance() {
|
|
}
|
|
class DataBlockMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
DataBlockMsg::DataBlockMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:DataBlockMsg)
|
|
}
|
|
DataBlockMsg::DataBlockMsg(const DataBlockMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
data_(from.data_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
type_ = from.type_;
|
|
// @@protoc_insertion_point(copy_constructor:DataBlockMsg)
|
|
}
|
|
|
|
void DataBlockMsg::SharedCtor() {
|
|
type_ = 0;
|
|
}
|
|
|
|
DataBlockMsg::~DataBlockMsg() {
|
|
// @@protoc_insertion_point(destructor:DataBlockMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DataBlockMsg::SharedDtor() {
|
|
}
|
|
|
|
void DataBlockMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const DataBlockMsg& DataBlockMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataBlockMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void DataBlockMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:DataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
data_.Clear();
|
|
type_ = 0;
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* DataBlockMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// int32 type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated float data = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_data(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21) {
|
|
add_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool DataBlockMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:DataBlockMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// int32 type = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &type_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated float data = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, this->mutable_data())));
|
|
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
1, 18u, input, this->mutable_data())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:DataBlockMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:DataBlockMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void DataBlockMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:DataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int32 type = 1;
|
|
if (this->type() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->type(), output);
|
|
}
|
|
|
|
// repeated float data = 2;
|
|
if (this->data_size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_data_cached_byte_size_.load(
|
|
std::memory_order_relaxed));
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray(
|
|
this->data().data(), this->data_size(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:DataBlockMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* DataBlockMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:DataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int32 type = 1;
|
|
if (this->type() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
|
|
}
|
|
|
|
// repeated float data = 2;
|
|
if (this->data_size() > 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
|
|
2,
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
|
|
_data_cached_byte_size_.load(std::memory_order_relaxed),
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
WriteFloatNoTagToArray(this->data_, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:DataBlockMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t DataBlockMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:DataBlockMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated float data = 2;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->data_size());
|
|
size_t data_size = 4UL * count;
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
_data_cached_byte_size_.store(cached_size,
|
|
std::memory_order_relaxed);
|
|
total_size += data_size;
|
|
}
|
|
|
|
// int32 type = 1;
|
|
if (this->type() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
this->type());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void DataBlockMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:DataBlockMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const DataBlockMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DataBlockMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:DataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:DataBlockMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void DataBlockMsg::MergeFrom(const DataBlockMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:DataBlockMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
data_.MergeFrom(from.data_);
|
|
if (from.type() != 0) {
|
|
set_type(from.type());
|
|
}
|
|
}
|
|
|
|
void DataBlockMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:DataBlockMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void DataBlockMsg::CopyFrom(const DataBlockMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:DataBlockMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DataBlockMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void DataBlockMsg::InternalSwap(DataBlockMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
data_.InternalSwap(&other->data_);
|
|
swap(type_, other->type_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata DataBlockMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerDataBlockMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerDataBlockMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerDataBlockMsg::LayerDataBlockMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerDataBlockMsg)
|
|
}
|
|
LayerDataBlockMsg::LayerDataBlockMsg(const LayerDataBlockMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
datablocks_(from.datablocks_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
jobname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.jobname().empty()) {
|
|
jobname_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobname_);
|
|
}
|
|
jobuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.jobuid().empty()) {
|
|
jobuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobuid_);
|
|
}
|
|
::memcpy(&layercount_, &from.layercount_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&layerindex_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(layerindex_));
|
|
// @@protoc_insertion_point(copy_constructor:LayerDataBlockMsg)
|
|
}
|
|
|
|
void LayerDataBlockMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerDataBlockMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layercount_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layerindex_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(layerindex_));
|
|
}
|
|
|
|
LayerDataBlockMsg::~LayerDataBlockMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerDataBlockMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerDataBlockMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerDataBlockMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerDataBlockMsg& LayerDataBlockMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerDataBlockMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerDataBlockMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerDataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
datablocks_.Clear();
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layercount_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layerindex_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(layerindex_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerDataBlockMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "LayerDataBlockMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string jobName = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_jobname(), ptr, ctx, "LayerDataBlockMsg.jobName");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string jobUid = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_jobuid(), ptr, ctx, "LayerDataBlockMsg.jobUid");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerCount = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
layercount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float thickness = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
|
|
thickness_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerIndex = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
layerindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated .DataBlockMsg dataBlocks = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_datablocks(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerDataBlockMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerDataBlockMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataBlockMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string jobName = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_jobname()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataBlockMsg.jobName"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_jobuid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataBlockMsg.jobUid"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layercount_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float thickness = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &thickness_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerIndex = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layerindex_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .DataBlockMsg dataBlocks = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_datablocks()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerDataBlockMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerDataBlockMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerDataBlockMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerDataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.jobName");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->jobname(), output);
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.jobUid");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->jobuid(), output);
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(4, this->layercount(), output);
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->thickness(), output);
|
|
}
|
|
|
|
// uint32 layerIndex = 6;
|
|
if (this->layerindex() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(6, this->layerindex(), output);
|
|
}
|
|
|
|
// repeated .DataBlockMsg dataBlocks = 7;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->datablocks_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
7,
|
|
this->datablocks(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerDataBlockMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerDataBlockMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerDataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.jobName");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->jobname(), target);
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataBlockMsg.jobUid");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->jobuid(), target);
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->layercount(), target);
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->thickness(), target);
|
|
}
|
|
|
|
// uint32 layerIndex = 6;
|
|
if (this->layerindex() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->layerindex(), target);
|
|
}
|
|
|
|
// repeated .DataBlockMsg dataBlocks = 7;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->datablocks_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
7, this->datablocks(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerDataBlockMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerDataBlockMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerDataBlockMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .DataBlockMsg dataBlocks = 7;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->datablocks_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->datablocks(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->jobname());
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->jobuid());
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layercount());
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// uint32 layerIndex = 6;
|
|
if (this->layerindex() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layerindex());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerDataBlockMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerDataBlockMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerDataBlockMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerDataBlockMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerDataBlockMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerDataBlockMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerDataBlockMsg::MergeFrom(const LayerDataBlockMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerDataBlockMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
datablocks_.MergeFrom(from.datablocks_);
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.jobname().size() > 0) {
|
|
|
|
jobname_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobname_);
|
|
}
|
|
if (from.jobuid().size() > 0) {
|
|
|
|
jobuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobuid_);
|
|
}
|
|
if (from.layercount() != 0) {
|
|
set_layercount(from.layercount());
|
|
}
|
|
if (!(from.thickness() <= 0 && from.thickness() >= 0)) {
|
|
set_thickness(from.thickness());
|
|
}
|
|
if (from.layerindex() != 0) {
|
|
set_layerindex(from.layerindex());
|
|
}
|
|
}
|
|
|
|
void LayerDataBlockMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerDataBlockMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerDataBlockMsg::CopyFrom(const LayerDataBlockMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerDataBlockMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerDataBlockMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerDataBlockMsg::InternalSwap(LayerDataBlockMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&datablocks_)->InternalSwap(CastToBase(&other->datablocks_));
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
jobname_.Swap(&other->jobname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
jobuid_.Swap(&other->jobuid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(layercount_, other->layercount_);
|
|
swap(thickness_, other->thickness_);
|
|
swap(layerindex_, other->layerindex_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerDataBlockMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void JobParamMsg::InitAsDefaultInstance() {
|
|
}
|
|
class JobParamMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
JobParamMsg::JobParamMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:JobParamMsg)
|
|
}
|
|
JobParamMsg::JobParamMsg(const JobParamMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
parts_(from.parts_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
jobname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.jobname().empty()) {
|
|
jobname_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobname_);
|
|
}
|
|
jobuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.jobuid().empty()) {
|
|
jobuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobuid_);
|
|
}
|
|
::memcpy(&layercount_, &from.layercount_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&thickness_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(thickness_));
|
|
// @@protoc_insertion_point(copy_constructor:JobParamMsg)
|
|
}
|
|
|
|
void JobParamMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JobParamMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layercount_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&thickness_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(thickness_));
|
|
}
|
|
|
|
JobParamMsg::~JobParamMsg() {
|
|
// @@protoc_insertion_point(destructor:JobParamMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void JobParamMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void JobParamMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const JobParamMsg& JobParamMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JobParamMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void JobParamMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:JobParamMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
parts_.Clear();
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobname_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
jobuid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layercount_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&thickness_) -
|
|
reinterpret_cast<char*>(&layercount_)) + sizeof(thickness_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* JobParamMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "JobParamMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string jobName = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_jobname(), ptr, ctx, "JobParamMsg.jobName");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string jobUid = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_jobuid(), ptr, ctx, "JobParamMsg.jobUid");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerCount = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
layercount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float thickness = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
|
|
thickness_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated .PartMsg parts = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_parts(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool JobParamMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:JobParamMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobParamMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string jobName = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_jobname()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobParamMsg.jobName"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_jobuid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"JobParamMsg.jobUid"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layercount_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float thickness = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &thickness_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .PartMsg parts = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_parts()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:JobParamMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:JobParamMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void JobParamMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:JobParamMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.jobName");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->jobname(), output);
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.jobUid");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->jobuid(), output);
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(4, this->layercount(), output);
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->thickness(), output);
|
|
}
|
|
|
|
// repeated .PartMsg parts = 6;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->parts_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6,
|
|
this->parts(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:JobParamMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* JobParamMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:JobParamMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobname().data(), static_cast<int>(this->jobname().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.jobName");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->jobname(), target);
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->jobuid().data(), static_cast<int>(this->jobuid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"JobParamMsg.jobUid");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->jobuid(), target);
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->layercount(), target);
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->thickness(), target);
|
|
}
|
|
|
|
// repeated .PartMsg parts = 6;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->parts_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
6, this->parts(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:JobParamMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t JobParamMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:JobParamMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .PartMsg parts = 6;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->parts_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->parts(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// string jobName = 2;
|
|
if (this->jobname().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->jobname());
|
|
}
|
|
|
|
// string jobUid = 3;
|
|
if (this->jobuid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->jobuid());
|
|
}
|
|
|
|
// uint32 layerCount = 4;
|
|
if (this->layercount() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layercount());
|
|
}
|
|
|
|
// float thickness = 5;
|
|
if (!(this->thickness() <= 0 && this->thickness() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void JobParamMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:JobParamMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const JobParamMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<JobParamMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:JobParamMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:JobParamMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void JobParamMsg::MergeFrom(const JobParamMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:JobParamMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
parts_.MergeFrom(from.parts_);
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.jobname().size() > 0) {
|
|
|
|
jobname_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobname_);
|
|
}
|
|
if (from.jobuid().size() > 0) {
|
|
|
|
jobuid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.jobuid_);
|
|
}
|
|
if (from.layercount() != 0) {
|
|
set_layercount(from.layercount());
|
|
}
|
|
if (!(from.thickness() <= 0 && from.thickness() >= 0)) {
|
|
set_thickness(from.thickness());
|
|
}
|
|
}
|
|
|
|
void JobParamMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:JobParamMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void JobParamMsg::CopyFrom(const JobParamMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:JobParamMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool JobParamMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void JobParamMsg::InternalSwap(JobParamMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&parts_)->InternalSwap(CastToBase(&other->parts_));
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
jobname_.Swap(&other->jobname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
jobuid_.Swap(&other->jobuid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(layercount_, other->layercount_);
|
|
swap(thickness_, other->thickness_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata JobParamMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerDataReqMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerDataReqMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerDataReqMsg::LayerDataReqMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerDataReqMsg)
|
|
}
|
|
LayerDataReqMsg::LayerDataReqMsg(const LayerDataReqMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
layerindex_ = from.layerindex_;
|
|
// @@protoc_insertion_point(copy_constructor:LayerDataReqMsg)
|
|
}
|
|
|
|
void LayerDataReqMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerDataReqMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
layerindex_ = 0u;
|
|
}
|
|
|
|
LayerDataReqMsg::~LayerDataReqMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerDataReqMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerDataReqMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerDataReqMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerDataReqMsg& LayerDataReqMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerDataReqMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerDataReqMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerDataReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
layerindex_ = 0u;
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerDataReqMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "LayerDataReqMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerIndex = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
layerindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerDataReqMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerDataReqMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerDataReqMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layerindex_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerDataReqMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerDataReqMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerDataReqMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerDataReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataReqMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->layerindex(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerDataReqMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerDataReqMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerDataReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerDataReqMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->layerindex(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerDataReqMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerDataReqMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerDataReqMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layerindex());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerDataReqMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerDataReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerDataReqMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerDataReqMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerDataReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerDataReqMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerDataReqMsg::MergeFrom(const LayerDataReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerDataReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.layerindex() != 0) {
|
|
set_layerindex(from.layerindex());
|
|
}
|
|
}
|
|
|
|
void LayerDataReqMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerDataReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerDataReqMsg::CopyFrom(const LayerDataReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerDataReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerDataReqMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerDataReqMsg::InternalSwap(LayerDataReqMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(layerindex_, other->layerindex_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerDataReqMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void ResponseState::InitAsDefaultInstance() {
|
|
}
|
|
class ResponseState::_Internal {
|
|
public:
|
|
};
|
|
|
|
ResponseState::ResponseState()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ResponseState)
|
|
}
|
|
ResponseState::ResponseState(const ResponseState& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
statemsg_(from.statemsg_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:ResponseState)
|
|
}
|
|
|
|
void ResponseState::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResponseState_common_2eproto.base);
|
|
}
|
|
|
|
ResponseState::~ResponseState() {
|
|
// @@protoc_insertion_point(destructor:ResponseState)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ResponseState::SharedDtor() {
|
|
}
|
|
|
|
void ResponseState::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ResponseState& ResponseState::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResponseState_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ResponseState::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ResponseState)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
statemsg_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* ResponseState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .StateMsg stateMsg = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_statemsg(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool ResponseState::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ResponseState)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .StateMsg stateMsg = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_statemsg()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ResponseState)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ResponseState)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void ResponseState::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ResponseState)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .StateMsg stateMsg = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->statemsg_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->statemsg(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ResponseState)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ResponseState::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:ResponseState)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .StateMsg stateMsg = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->statemsg_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->statemsg(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ResponseState)
|
|
return target;
|
|
}
|
|
|
|
size_t ResponseState::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ResponseState)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .StateMsg stateMsg = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->statemsg_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->statemsg(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ResponseState::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ResponseState)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ResponseState* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResponseState>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ResponseState)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ResponseState)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ResponseState::MergeFrom(const ResponseState& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ResponseState)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
statemsg_.MergeFrom(from.statemsg_);
|
|
}
|
|
|
|
void ResponseState::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ResponseState)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ResponseState::CopyFrom(const ResponseState& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ResponseState)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ResponseState::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void ResponseState::InternalSwap(ResponseState* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&statemsg_)->InternalSwap(CastToBase(&other->statemsg_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ResponseState::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void CameraDataMsg::InitAsDefaultInstance() {
|
|
}
|
|
class CameraDataMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
CameraDataMsg::CameraDataMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:CameraDataMsg)
|
|
}
|
|
CameraDataMsg::CameraDataMsg(const CameraDataMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.machineid().empty()) {
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
datas_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.datas().empty()) {
|
|
datas_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.datas_);
|
|
}
|
|
::memcpy(&width_, &from.width_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
// @@protoc_insertion_point(copy_constructor:CameraDataMsg)
|
|
}
|
|
|
|
void CameraDataMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CameraDataMsg_common_2eproto.base);
|
|
machineid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&width_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
}
|
|
|
|
CameraDataMsg::~CameraDataMsg() {
|
|
// @@protoc_insertion_point(destructor:CameraDataMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void CameraDataMsg::SharedDtor() {
|
|
machineid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void CameraDataMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const CameraDataMsg& CameraDataMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CameraDataMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void CameraDataMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:CameraDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
machineid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
datas_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&width_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* CameraDataMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string machineId = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machineid(), ptr, ctx, "CameraDataMsg.machineId");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 width = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 height = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bytes datas = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_datas(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool CameraDataMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:CameraDataMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string machineId = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_machineid()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"CameraDataMsg.machineId"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 width = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &width_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 height = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &height_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bytes datas = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_datas()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:CameraDataMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:CameraDataMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void CameraDataMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:CameraDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"CameraDataMsg.machineId");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->machineid(), output);
|
|
}
|
|
|
|
// uint32 width = 2;
|
|
if (this->width() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->width(), output);
|
|
}
|
|
|
|
// uint32 height = 3;
|
|
if (this->height() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
|
|
}
|
|
|
|
// bytes datas = 4;
|
|
if (this->datas().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
4, this->datas(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:CameraDataMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* CameraDataMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:CameraDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->machineid().data(), static_cast<int>(this->machineid().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"CameraDataMsg.machineId");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->machineid(), target);
|
|
}
|
|
|
|
// uint32 width = 2;
|
|
if (this->width() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->width(), target);
|
|
}
|
|
|
|
// uint32 height = 3;
|
|
if (this->height() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target);
|
|
}
|
|
|
|
// bytes datas = 4;
|
|
if (this->datas().size() > 0) {
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
|
|
4, this->datas(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:CameraDataMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t CameraDataMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:CameraDataMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string machineId = 1;
|
|
if (this->machineid().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->machineid());
|
|
}
|
|
|
|
// bytes datas = 4;
|
|
if (this->datas().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->datas());
|
|
}
|
|
|
|
// uint32 width = 2;
|
|
if (this->width() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->width());
|
|
}
|
|
|
|
// uint32 height = 3;
|
|
if (this->height() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->height());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void CameraDataMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:CameraDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const CameraDataMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CameraDataMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:CameraDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:CameraDataMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void CameraDataMsg::MergeFrom(const CameraDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:CameraDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.machineid().size() > 0) {
|
|
|
|
machineid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machineid_);
|
|
}
|
|
if (from.datas().size() > 0) {
|
|
|
|
datas_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.datas_);
|
|
}
|
|
if (from.width() != 0) {
|
|
set_width(from.width());
|
|
}
|
|
if (from.height() != 0) {
|
|
set_height(from.height());
|
|
}
|
|
}
|
|
|
|
void CameraDataMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:CameraDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void CameraDataMsg::CopyFrom(const CameraDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:CameraDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool CameraDataMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void CameraDataMsg::InternalSwap(CameraDataMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
machineid_.Swap(&other->machineid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
datas_.Swap(&other->datas_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(width_, other->width_);
|
|
swap(height_, other->height_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata CameraDataMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void AlarmMsg::InitAsDefaultInstance() {
|
|
}
|
|
class AlarmMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
AlarmMsg::AlarmMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:AlarmMsg)
|
|
}
|
|
AlarmMsg::AlarmMsg(const AlarmMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.time().empty()) {
|
|
time_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.time_);
|
|
}
|
|
task_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.task().empty()) {
|
|
task_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.task_);
|
|
}
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.type().empty()) {
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
detail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.detail().empty()) {
|
|
detail_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.detail_);
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:AlarmMsg)
|
|
}
|
|
|
|
void AlarmMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AlarmMsg_common_2eproto.base);
|
|
time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
task_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
detail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
AlarmMsg::~AlarmMsg() {
|
|
// @@protoc_insertion_point(destructor:AlarmMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void AlarmMsg::SharedDtor() {
|
|
time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
task_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
detail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void AlarmMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const AlarmMsg& AlarmMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AlarmMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void AlarmMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:AlarmMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
time_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
task_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
detail_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* AlarmMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string time = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_time(), ptr, ctx, "AlarmMsg.time");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string task = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_task(), ptr, ctx, "AlarmMsg.task");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string type = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type(), ptr, ctx, "AlarmMsg.type");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string detail = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_detail(), ptr, ctx, "AlarmMsg.detail");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool AlarmMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:AlarmMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string time = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_time()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->time().data(), static_cast<int>(this->time().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"AlarmMsg.time"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string task = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_task()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->task().data(), static_cast<int>(this->task().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"AlarmMsg.task"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string type = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_type()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"AlarmMsg.type"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string detail = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_detail()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->detail().data(), static_cast<int>(this->detail().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"AlarmMsg.detail"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:AlarmMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:AlarmMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void AlarmMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:AlarmMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string time = 1;
|
|
if (this->time().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->time().data(), static_cast<int>(this->time().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.time");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->time(), output);
|
|
}
|
|
|
|
// string task = 2;
|
|
if (this->task().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->task().data(), static_cast<int>(this->task().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.task");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->task(), output);
|
|
}
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.type");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->type(), output);
|
|
}
|
|
|
|
// string detail = 4;
|
|
if (this->detail().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->detail().data(), static_cast<int>(this->detail().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.detail");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->detail(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:AlarmMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* AlarmMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:AlarmMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string time = 1;
|
|
if (this->time().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->time().data(), static_cast<int>(this->time().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.time");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->time(), target);
|
|
}
|
|
|
|
// string task = 2;
|
|
if (this->task().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->task().data(), static_cast<int>(this->task().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.task");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->task(), target);
|
|
}
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.type");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->type(), target);
|
|
}
|
|
|
|
// string detail = 4;
|
|
if (this->detail().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->detail().data(), static_cast<int>(this->detail().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"AlarmMsg.detail");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->detail(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:AlarmMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t AlarmMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:AlarmMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string time = 1;
|
|
if (this->time().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->time());
|
|
}
|
|
|
|
// string task = 2;
|
|
if (this->task().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->task());
|
|
}
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->type());
|
|
}
|
|
|
|
// string detail = 4;
|
|
if (this->detail().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->detail());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void AlarmMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:AlarmMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const AlarmMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AlarmMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:AlarmMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:AlarmMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void AlarmMsg::MergeFrom(const AlarmMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:AlarmMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.time().size() > 0) {
|
|
|
|
time_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.time_);
|
|
}
|
|
if (from.task().size() > 0) {
|
|
|
|
task_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.task_);
|
|
}
|
|
if (from.type().size() > 0) {
|
|
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
if (from.detail().size() > 0) {
|
|
|
|
detail_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.detail_);
|
|
}
|
|
}
|
|
|
|
void AlarmMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:AlarmMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void AlarmMsg::CopyFrom(const AlarmMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:AlarmMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool AlarmMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void AlarmMsg::InternalSwap(AlarmMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
time_.Swap(&other->time_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
task_.Swap(&other->task_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
detail_.Swap(&other->detail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata AlarmMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void AlarmsMsg::InitAsDefaultInstance() {
|
|
}
|
|
class AlarmsMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
AlarmsMsg::AlarmsMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:AlarmsMsg)
|
|
}
|
|
AlarmsMsg::AlarmsMsg(const AlarmsMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
alarms_(from.alarms_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:AlarmsMsg)
|
|
}
|
|
|
|
void AlarmsMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AlarmsMsg_common_2eproto.base);
|
|
}
|
|
|
|
AlarmsMsg::~AlarmsMsg() {
|
|
// @@protoc_insertion_point(destructor:AlarmsMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void AlarmsMsg::SharedDtor() {
|
|
}
|
|
|
|
void AlarmsMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const AlarmsMsg& AlarmsMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AlarmsMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void AlarmsMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:AlarmsMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
alarms_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* AlarmsMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .AlarmMsg alarms = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_alarms(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool AlarmsMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:AlarmsMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .AlarmMsg alarms = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_alarms()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:AlarmsMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:AlarmsMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void AlarmsMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:AlarmsMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .AlarmMsg alarms = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->alarms_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->alarms(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:AlarmsMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* AlarmsMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:AlarmsMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .AlarmMsg alarms = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->alarms_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->alarms(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:AlarmsMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t AlarmsMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:AlarmsMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .AlarmMsg alarms = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->alarms_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->alarms(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void AlarmsMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:AlarmsMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const AlarmsMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AlarmsMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:AlarmsMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:AlarmsMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void AlarmsMsg::MergeFrom(const AlarmsMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:AlarmsMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
alarms_.MergeFrom(from.alarms_);
|
|
}
|
|
|
|
void AlarmsMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:AlarmsMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void AlarmsMsg::CopyFrom(const AlarmsMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:AlarmsMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool AlarmsMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void AlarmsMsg::InternalSwap(AlarmsMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&alarms_)->InternalSwap(CastToBase(&other->alarms_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata AlarmsMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void TaskMsg::InitAsDefaultInstance() {
|
|
}
|
|
class TaskMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
TaskMsg::TaskMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:TaskMsg)
|
|
}
|
|
TaskMsg::TaskMsg(const TaskMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.name().empty()) {
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
begintime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.begintime().empty()) {
|
|
begintime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.begintime_);
|
|
}
|
|
endtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.endtime().empty()) {
|
|
endtime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.endtime_);
|
|
}
|
|
::memcpy(&id_, &from.id_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&iscontinueprint_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(iscontinueprint_));
|
|
// @@protoc_insertion_point(copy_constructor:TaskMsg)
|
|
}
|
|
|
|
void TaskMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TaskMsg_common_2eproto.base);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
begintime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
endtime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&iscontinueprint_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(iscontinueprint_));
|
|
}
|
|
|
|
TaskMsg::~TaskMsg() {
|
|
// @@protoc_insertion_point(destructor:TaskMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void TaskMsg::SharedDtor() {
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
begintime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
endtime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void TaskMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const TaskMsg& TaskMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TaskMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void TaskMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:TaskMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
begintime_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
endtime_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&iscontinueprint_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(iscontinueprint_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* TaskMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// int64 id = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string name = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "TaskMsg.name");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string beginTime = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_begintime(), ptr, ctx, "TaskMsg.beginTime");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string endTime = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_endtime(), ptr, ctx, "TaskMsg.endTime");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 deoxygenMinute = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
deoxygenminute_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 totalUseTime = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
totalusetime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float logMoldPosition = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
|
|
logmoldposition_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 finishLayer = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
|
|
finishlayer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isFinish = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
|
|
isfinish_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bool isContinuePrint = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
|
|
iscontinueprint_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool TaskMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:TaskMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// int64 id = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &id_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string name = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"TaskMsg.name"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string beginTime = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_begintime()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->begintime().data(), static_cast<int>(this->begintime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"TaskMsg.beginTime"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string endTime = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_endtime()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->endtime().data(), static_cast<int>(this->endtime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"TaskMsg.endTime"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 deoxygenMinute = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &deoxygenminute_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 totalUseTime = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &totalusetime_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float logMoldPosition = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (61 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &logmoldposition_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 finishLayer = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (64 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &finishlayer_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isFinish = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &isfinish_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bool isContinuePrint = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &iscontinueprint_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:TaskMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:TaskMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void TaskMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:TaskMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
|
|
}
|
|
|
|
// string name = 2;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.name");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->name(), output);
|
|
}
|
|
|
|
// string beginTime = 3;
|
|
if (this->begintime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->begintime().data(), static_cast<int>(this->begintime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.beginTime");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->begintime(), output);
|
|
}
|
|
|
|
// string endTime = 4;
|
|
if (this->endtime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->endtime().data(), static_cast<int>(this->endtime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.endTime");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->endtime(), output);
|
|
}
|
|
|
|
// int64 deoxygenMinute = 5;
|
|
if (this->deoxygenminute() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->deoxygenminute(), output);
|
|
}
|
|
|
|
// int64 totalUseTime = 6;
|
|
if (this->totalusetime() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->totalusetime(), output);
|
|
}
|
|
|
|
// float logMoldPosition = 7;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(7, this->logmoldposition(), output);
|
|
}
|
|
|
|
// uint32 finishLayer = 8;
|
|
if (this->finishlayer() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(8, this->finishlayer(), output);
|
|
}
|
|
|
|
// bool isFinish = 9;
|
|
if (this->isfinish() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(9, this->isfinish(), output);
|
|
}
|
|
|
|
// bool isContinuePrint = 10;
|
|
if (this->iscontinueprint() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(10, this->iscontinueprint(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:TaskMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* TaskMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:TaskMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
|
|
}
|
|
|
|
// string name = 2;
|
|
if (this->name().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.name");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->name(), target);
|
|
}
|
|
|
|
// string beginTime = 3;
|
|
if (this->begintime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->begintime().data(), static_cast<int>(this->begintime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.beginTime");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->begintime(), target);
|
|
}
|
|
|
|
// string endTime = 4;
|
|
if (this->endtime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->endtime().data(), static_cast<int>(this->endtime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"TaskMsg.endTime");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->endtime(), target);
|
|
}
|
|
|
|
// int64 deoxygenMinute = 5;
|
|
if (this->deoxygenminute() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->deoxygenminute(), target);
|
|
}
|
|
|
|
// int64 totalUseTime = 6;
|
|
if (this->totalusetime() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->totalusetime(), target);
|
|
}
|
|
|
|
// float logMoldPosition = 7;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->logmoldposition(), target);
|
|
}
|
|
|
|
// uint32 finishLayer = 8;
|
|
if (this->finishlayer() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->finishlayer(), target);
|
|
}
|
|
|
|
// bool isFinish = 9;
|
|
if (this->isfinish() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->isfinish(), target);
|
|
}
|
|
|
|
// bool isContinuePrint = 10;
|
|
if (this->iscontinueprint() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->iscontinueprint(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:TaskMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t TaskMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:TaskMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 2;
|
|
if (this->name().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// string beginTime = 3;
|
|
if (this->begintime().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->begintime());
|
|
}
|
|
|
|
// string endTime = 4;
|
|
if (this->endtime().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->endtime());
|
|
}
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->id());
|
|
}
|
|
|
|
// int64 deoxygenMinute = 5;
|
|
if (this->deoxygenminute() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->deoxygenminute());
|
|
}
|
|
|
|
// int64 totalUseTime = 6;
|
|
if (this->totalusetime() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->totalusetime());
|
|
}
|
|
|
|
// float logMoldPosition = 7;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// uint32 finishLayer = 8;
|
|
if (this->finishlayer() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->finishlayer());
|
|
}
|
|
|
|
// bool isFinish = 9;
|
|
if (this->isfinish() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// bool isContinuePrint = 10;
|
|
if (this->iscontinueprint() != 0) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void TaskMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:TaskMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const TaskMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TaskMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:TaskMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:TaskMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void TaskMsg::MergeFrom(const TaskMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:TaskMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.name().size() > 0) {
|
|
|
|
name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (from.begintime().size() > 0) {
|
|
|
|
begintime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.begintime_);
|
|
}
|
|
if (from.endtime().size() > 0) {
|
|
|
|
endtime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.endtime_);
|
|
}
|
|
if (from.id() != 0) {
|
|
set_id(from.id());
|
|
}
|
|
if (from.deoxygenminute() != 0) {
|
|
set_deoxygenminute(from.deoxygenminute());
|
|
}
|
|
if (from.totalusetime() != 0) {
|
|
set_totalusetime(from.totalusetime());
|
|
}
|
|
if (!(from.logmoldposition() <= 0 && from.logmoldposition() >= 0)) {
|
|
set_logmoldposition(from.logmoldposition());
|
|
}
|
|
if (from.finishlayer() != 0) {
|
|
set_finishlayer(from.finishlayer());
|
|
}
|
|
if (from.isfinish() != 0) {
|
|
set_isfinish(from.isfinish());
|
|
}
|
|
if (from.iscontinueprint() != 0) {
|
|
set_iscontinueprint(from.iscontinueprint());
|
|
}
|
|
}
|
|
|
|
void TaskMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:TaskMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void TaskMsg::CopyFrom(const TaskMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:TaskMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool TaskMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void TaskMsg::InternalSwap(TaskMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
begintime_.Swap(&other->begintime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
endtime_.Swap(&other->endtime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(id_, other->id_);
|
|
swap(deoxygenminute_, other->deoxygenminute_);
|
|
swap(totalusetime_, other->totalusetime_);
|
|
swap(logmoldposition_, other->logmoldposition_);
|
|
swap(finishlayer_, other->finishlayer_);
|
|
swap(isfinish_, other->isfinish_);
|
|
swap(iscontinueprint_, other->iscontinueprint_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata TaskMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void TasksMsg::InitAsDefaultInstance() {
|
|
}
|
|
class TasksMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
TasksMsg::TasksMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:TasksMsg)
|
|
}
|
|
TasksMsg::TasksMsg(const TasksMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
tasks_(from.tasks_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:TasksMsg)
|
|
}
|
|
|
|
void TasksMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TasksMsg_common_2eproto.base);
|
|
}
|
|
|
|
TasksMsg::~TasksMsg() {
|
|
// @@protoc_insertion_point(destructor:TasksMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void TasksMsg::SharedDtor() {
|
|
}
|
|
|
|
void TasksMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const TasksMsg& TasksMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TasksMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void TasksMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:TasksMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
tasks_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* TasksMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .TaskMsg tasks = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_tasks(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool TasksMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:TasksMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .TaskMsg tasks = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_tasks()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:TasksMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:TasksMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void TasksMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:TasksMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .TaskMsg tasks = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->tasks_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->tasks(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:TasksMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* TasksMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:TasksMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .TaskMsg tasks = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->tasks_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->tasks(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:TasksMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t TasksMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:TasksMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .TaskMsg tasks = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->tasks_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->tasks(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void TasksMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:TasksMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const TasksMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TasksMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:TasksMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:TasksMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void TasksMsg::MergeFrom(const TasksMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:TasksMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
tasks_.MergeFrom(from.tasks_);
|
|
}
|
|
|
|
void TasksMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:TasksMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void TasksMsg::CopyFrom(const TasksMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:TasksMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool TasksMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void TasksMsg::InternalSwap(TasksMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata TasksMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerStateMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerStateMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerStateMsg::LayerStateMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerStateMsg)
|
|
}
|
|
LayerStateMsg::LayerStateMsg(const LayerStateMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
layerdatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.layerdatetime().empty()) {
|
|
layerdatetime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.layerdatetime_);
|
|
}
|
|
::memcpy(&layerindex_, &from.layerindex_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&watertemp_) -
|
|
reinterpret_cast<char*>(&layerindex_)) + sizeof(watertemp_));
|
|
// @@protoc_insertion_point(copy_constructor:LayerStateMsg)
|
|
}
|
|
|
|
void LayerStateMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerStateMsg_common_2eproto.base);
|
|
layerdatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layerindex_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&watertemp_) -
|
|
reinterpret_cast<char*>(&layerindex_)) + sizeof(watertemp_));
|
|
}
|
|
|
|
LayerStateMsg::~LayerStateMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerStateMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerStateMsg::SharedDtor() {
|
|
layerdatetime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerStateMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerStateMsg& LayerStateMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerStateMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerStateMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
layerdatetime_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&layerindex_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&watertemp_) -
|
|
reinterpret_cast<char*>(&layerindex_)) + sizeof(watertemp_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerStateMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// string layerDateTime = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_layerdatetime(), ptr, ctx, "LayerStateMsg.layerDateTime");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layerIndex = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
layerindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float logMoldPosition = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
logmoldposition_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float logOxygen = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
logoxygen_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float logInnerTemp = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
|
|
loginnertemp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float logPlateTemp = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
|
|
logplatetemp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float windSpeed = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
|
|
windspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float innerPressure = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) {
|
|
innerpressure_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float fanFreq = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
|
|
fanfreq_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float humidity = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 85)) {
|
|
humidity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// float waterTemp = 11;
|
|
case 11:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 93)) {
|
|
watertemp_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerStateMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerStateMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// string layerDateTime = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_layerdatetime()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->layerdatetime().data(), static_cast<int>(this->layerdatetime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerStateMsg.layerDateTime"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layerindex_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float logMoldPosition = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &logmoldposition_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float logOxygen = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (37 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &logoxygen_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float logInnerTemp = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (45 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &loginnertemp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float logPlateTemp = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (53 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &logplatetemp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float windSpeed = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (61 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &windspeed_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float innerPressure = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (69 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &innerpressure_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float fanFreq = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (77 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &fanfreq_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float humidity = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (85 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &humidity_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// float waterTemp = 11;
|
|
case 11: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (93 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &watertemp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerStateMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerStateMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerStateMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string layerDateTime = 1;
|
|
if (this->layerdatetime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->layerdatetime().data(), static_cast<int>(this->layerdatetime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerStateMsg.layerDateTime");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->layerdatetime(), output);
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->layerindex(), output);
|
|
}
|
|
|
|
// float logMoldPosition = 3;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(3, this->logmoldposition(), output);
|
|
}
|
|
|
|
// float logOxygen = 4;
|
|
if (!(this->logoxygen() <= 0 && this->logoxygen() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(4, this->logoxygen(), output);
|
|
}
|
|
|
|
// float logInnerTemp = 5;
|
|
if (!(this->loginnertemp() <= 0 && this->loginnertemp() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(5, this->loginnertemp(), output);
|
|
}
|
|
|
|
// float logPlateTemp = 6;
|
|
if (!(this->logplatetemp() <= 0 && this->logplatetemp() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(6, this->logplatetemp(), output);
|
|
}
|
|
|
|
// float windSpeed = 7;
|
|
if (!(this->windspeed() <= 0 && this->windspeed() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(7, this->windspeed(), output);
|
|
}
|
|
|
|
// float innerPressure = 8;
|
|
if (!(this->innerpressure() <= 0 && this->innerpressure() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(8, this->innerpressure(), output);
|
|
}
|
|
|
|
// float fanFreq = 9;
|
|
if (!(this->fanfreq() <= 0 && this->fanfreq() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(9, this->fanfreq(), output);
|
|
}
|
|
|
|
// float humidity = 10;
|
|
if (!(this->humidity() <= 0 && this->humidity() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(10, this->humidity(), output);
|
|
}
|
|
|
|
// float waterTemp = 11;
|
|
if (!(this->watertemp() <= 0 && this->watertemp() >= 0)) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloat(11, this->watertemp(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerStateMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerStateMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// string layerDateTime = 1;
|
|
if (this->layerdatetime().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->layerdatetime().data(), static_cast<int>(this->layerdatetime().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerStateMsg.layerDateTime");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->layerdatetime(), target);
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->layerindex(), target);
|
|
}
|
|
|
|
// float logMoldPosition = 3;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->logmoldposition(), target);
|
|
}
|
|
|
|
// float logOxygen = 4;
|
|
if (!(this->logoxygen() <= 0 && this->logoxygen() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->logoxygen(), target);
|
|
}
|
|
|
|
// float logInnerTemp = 5;
|
|
if (!(this->loginnertemp() <= 0 && this->loginnertemp() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->loginnertemp(), target);
|
|
}
|
|
|
|
// float logPlateTemp = 6;
|
|
if (!(this->logplatetemp() <= 0 && this->logplatetemp() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->logplatetemp(), target);
|
|
}
|
|
|
|
// float windSpeed = 7;
|
|
if (!(this->windspeed() <= 0 && this->windspeed() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->windspeed(), target);
|
|
}
|
|
|
|
// float innerPressure = 8;
|
|
if (!(this->innerpressure() <= 0 && this->innerpressure() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(8, this->innerpressure(), target);
|
|
}
|
|
|
|
// float fanFreq = 9;
|
|
if (!(this->fanfreq() <= 0 && this->fanfreq() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(9, this->fanfreq(), target);
|
|
}
|
|
|
|
// float humidity = 10;
|
|
if (!(this->humidity() <= 0 && this->humidity() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->humidity(), target);
|
|
}
|
|
|
|
// float waterTemp = 11;
|
|
if (!(this->watertemp() <= 0 && this->watertemp() >= 0)) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->watertemp(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerStateMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerStateMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerStateMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string layerDateTime = 1;
|
|
if (this->layerdatetime().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->layerdatetime());
|
|
}
|
|
|
|
// uint32 layerIndex = 2;
|
|
if (this->layerindex() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layerindex());
|
|
}
|
|
|
|
// float logMoldPosition = 3;
|
|
if (!(this->logmoldposition() <= 0 && this->logmoldposition() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float logOxygen = 4;
|
|
if (!(this->logoxygen() <= 0 && this->logoxygen() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float logInnerTemp = 5;
|
|
if (!(this->loginnertemp() <= 0 && this->loginnertemp() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float logPlateTemp = 6;
|
|
if (!(this->logplatetemp() <= 0 && this->logplatetemp() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float windSpeed = 7;
|
|
if (!(this->windspeed() <= 0 && this->windspeed() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float innerPressure = 8;
|
|
if (!(this->innerpressure() <= 0 && this->innerpressure() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float fanFreq = 9;
|
|
if (!(this->fanfreq() <= 0 && this->fanfreq() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float humidity = 10;
|
|
if (!(this->humidity() <= 0 && this->humidity() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
// float waterTemp = 11;
|
|
if (!(this->watertemp() <= 0 && this->watertemp() >= 0)) {
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerStateMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerStateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerStateMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerStateMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerStateMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerStateMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerStateMsg::MergeFrom(const LayerStateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerStateMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.layerdatetime().size() > 0) {
|
|
|
|
layerdatetime_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.layerdatetime_);
|
|
}
|
|
if (from.layerindex() != 0) {
|
|
set_layerindex(from.layerindex());
|
|
}
|
|
if (!(from.logmoldposition() <= 0 && from.logmoldposition() >= 0)) {
|
|
set_logmoldposition(from.logmoldposition());
|
|
}
|
|
if (!(from.logoxygen() <= 0 && from.logoxygen() >= 0)) {
|
|
set_logoxygen(from.logoxygen());
|
|
}
|
|
if (!(from.loginnertemp() <= 0 && from.loginnertemp() >= 0)) {
|
|
set_loginnertemp(from.loginnertemp());
|
|
}
|
|
if (!(from.logplatetemp() <= 0 && from.logplatetemp() >= 0)) {
|
|
set_logplatetemp(from.logplatetemp());
|
|
}
|
|
if (!(from.windspeed() <= 0 && from.windspeed() >= 0)) {
|
|
set_windspeed(from.windspeed());
|
|
}
|
|
if (!(from.innerpressure() <= 0 && from.innerpressure() >= 0)) {
|
|
set_innerpressure(from.innerpressure());
|
|
}
|
|
if (!(from.fanfreq() <= 0 && from.fanfreq() >= 0)) {
|
|
set_fanfreq(from.fanfreq());
|
|
}
|
|
if (!(from.humidity() <= 0 && from.humidity() >= 0)) {
|
|
set_humidity(from.humidity());
|
|
}
|
|
if (!(from.watertemp() <= 0 && from.watertemp() >= 0)) {
|
|
set_watertemp(from.watertemp());
|
|
}
|
|
}
|
|
|
|
void LayerStateMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerStateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerStateMsg::CopyFrom(const LayerStateMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerStateMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerStateMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerStateMsg::InternalSwap(LayerStateMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
layerdatetime_.Swap(&other->layerdatetime_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(layerindex_, other->layerindex_);
|
|
swap(logmoldposition_, other->logmoldposition_);
|
|
swap(logoxygen_, other->logoxygen_);
|
|
swap(loginnertemp_, other->loginnertemp_);
|
|
swap(logplatetemp_, other->logplatetemp_);
|
|
swap(windspeed_, other->windspeed_);
|
|
swap(innerpressure_, other->innerpressure_);
|
|
swap(fanfreq_, other->fanfreq_);
|
|
swap(humidity_, other->humidity_);
|
|
swap(watertemp_, other->watertemp_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerStateMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerStatesMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerStatesMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerStatesMsg::LayerStatesMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerStatesMsg)
|
|
}
|
|
LayerStatesMsg::LayerStatesMsg(const LayerStatesMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
layerstates_(from.layerstates_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:LayerStatesMsg)
|
|
}
|
|
|
|
void LayerStatesMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerStatesMsg_common_2eproto.base);
|
|
}
|
|
|
|
LayerStatesMsg::~LayerStatesMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerStatesMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerStatesMsg::SharedDtor() {
|
|
}
|
|
|
|
void LayerStatesMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerStatesMsg& LayerStatesMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerStatesMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerStatesMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerStatesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
layerstates_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerStatesMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .LayerStateMsg layerStates = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_layerstates(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerStatesMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerStatesMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .LayerStateMsg layerStates = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_layerstates()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerStatesMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerStatesMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerStatesMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerStatesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerStateMsg layerStates = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->layerstates_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->layerstates(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerStatesMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerStatesMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerStatesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerStateMsg layerStates = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->layerstates_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->layerstates(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerStatesMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerStatesMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerStatesMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerStateMsg layerStates = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->layerstates_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->layerstates(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerStatesMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerStatesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerStatesMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerStatesMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerStatesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerStatesMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerStatesMsg::MergeFrom(const LayerStatesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerStatesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
layerstates_.MergeFrom(from.layerstates_);
|
|
}
|
|
|
|
void LayerStatesMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerStatesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerStatesMsg::CopyFrom(const LayerStatesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerStatesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerStatesMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerStatesMsg::InternalSwap(LayerStatesMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&layerstates_)->InternalSwap(CastToBase(&other->layerstates_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerStatesMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerImageMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerImageMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerImageMsg::LayerImageMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerImageMsg)
|
|
}
|
|
LayerImageMsg::LayerImageMsg(const LayerImageMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.type().empty()) {
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
::memcpy(&id_, &from.id_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
// @@protoc_insertion_point(copy_constructor:LayerImageMsg)
|
|
}
|
|
|
|
void LayerImageMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerImageMsg_common_2eproto.base);
|
|
type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
}
|
|
|
|
LayerImageMsg::~LayerImageMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerImageMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerImageMsg::SharedDtor() {
|
|
type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerImageMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerImageMsg& LayerImageMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerImageMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerImageMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerImageMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerImageMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// int64 id = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layer = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
layer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string type = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type(), ptr, ctx, "LayerImageMsg.type");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerImageMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerImageMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// int64 id = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &id_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layer_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string type = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_type()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerImageMsg.type"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerImageMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerImageMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerImageMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerImageMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->layer(), output);
|
|
}
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerImageMsg.type");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->type(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerImageMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerImageMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerImageMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->layer(), target);
|
|
}
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->type().data(), static_cast<int>(this->type().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerImageMsg.type");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->type(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerImageMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerImageMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerImageMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string type = 3;
|
|
if (this->type().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->type());
|
|
}
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->id());
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layer());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerImageMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerImageMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerImageMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerImageMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerImageMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerImageMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerImageMsg::MergeFrom(const LayerImageMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImageMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.type().size() > 0) {
|
|
|
|
type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_);
|
|
}
|
|
if (from.id() != 0) {
|
|
set_id(from.id());
|
|
}
|
|
if (from.layer() != 0) {
|
|
set_layer(from.layer());
|
|
}
|
|
}
|
|
|
|
void LayerImageMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerImageMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerImageMsg::CopyFrom(const LayerImageMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImageMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerImageMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerImageMsg::InternalSwap(LayerImageMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(id_, other->id_);
|
|
swap(layer_, other->layer_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerImageMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerImagesMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerImagesMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerImagesMsg::LayerImagesMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerImagesMsg)
|
|
}
|
|
LayerImagesMsg::LayerImagesMsg(const LayerImagesMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
images_(from.images_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:LayerImagesMsg)
|
|
}
|
|
|
|
void LayerImagesMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerImagesMsg_common_2eproto.base);
|
|
}
|
|
|
|
LayerImagesMsg::~LayerImagesMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerImagesMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerImagesMsg::SharedDtor() {
|
|
}
|
|
|
|
void LayerImagesMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerImagesMsg& LayerImagesMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerImagesMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerImagesMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerImagesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
images_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerImagesMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .LayerImageMsg images = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_images(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerImagesMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerImagesMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .LayerImageMsg images = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_images()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerImagesMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerImagesMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerImagesMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerImagesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerImageMsg images = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->images_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->images(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerImagesMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerImagesMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerImagesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerImageMsg images = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->images_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->images(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerImagesMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerImagesMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerImagesMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerImageMsg images = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->images_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->images(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerImagesMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerImagesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerImagesMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerImagesMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerImagesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerImagesMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerImagesMsg::MergeFrom(const LayerImagesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImagesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
images_.MergeFrom(from.images_);
|
|
}
|
|
|
|
void LayerImagesMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerImagesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerImagesMsg::CopyFrom(const LayerImagesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImagesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerImagesMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerImagesMsg::InternalSwap(LayerImagesMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&images_)->InternalSwap(CastToBase(&other->images_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerImagesMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerImageDataMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerImageDataMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerImageDataMsg::LayerImageDataMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerImageDataMsg)
|
|
}
|
|
LayerImageDataMsg::LayerImageDataMsg(const LayerImageDataMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
imagedata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.imagedata().empty()) {
|
|
imagedata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.imagedata_);
|
|
}
|
|
imagesize_ = from.imagesize_;
|
|
// @@protoc_insertion_point(copy_constructor:LayerImageDataMsg)
|
|
}
|
|
|
|
void LayerImageDataMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerImageDataMsg_common_2eproto.base);
|
|
imagedata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
imagesize_ = PROTOBUF_ULONGLONG(0);
|
|
}
|
|
|
|
LayerImageDataMsg::~LayerImageDataMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerImageDataMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerImageDataMsg::SharedDtor() {
|
|
imagedata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerImageDataMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerImageDataMsg& LayerImageDataMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerImageDataMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerImageDataMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerImageDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
imagedata_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
imagesize_ = PROTOBUF_ULONGLONG(0);
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerImageDataMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// uint64 imageSize = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
imagesize_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// bytes imageData = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_imagedata(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerImageDataMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerImageDataMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// uint64 imageSize = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &imagesize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// bytes imageData = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_imagedata()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerImageDataMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerImageDataMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerImageDataMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerImageDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint64 imageSize = 1;
|
|
if (this->imagesize() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(1, this->imagesize(), output);
|
|
}
|
|
|
|
// bytes imageData = 2;
|
|
if (this->imagedata().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
2, this->imagedata(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerImageDataMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerImageDataMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerImageDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint64 imageSize = 1;
|
|
if (this->imagesize() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->imagesize(), target);
|
|
}
|
|
|
|
// bytes imageData = 2;
|
|
if (this->imagedata().size() > 0) {
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
|
|
2, this->imagedata(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerImageDataMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerImageDataMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerImageDataMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// bytes imageData = 2;
|
|
if (this->imagedata().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->imagedata());
|
|
}
|
|
|
|
// uint64 imageSize = 1;
|
|
if (this->imagesize() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->imagesize());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerImageDataMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerImageDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerImageDataMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerImageDataMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerImageDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerImageDataMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerImageDataMsg::MergeFrom(const LayerImageDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerImageDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.imagedata().size() > 0) {
|
|
|
|
imagedata_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.imagedata_);
|
|
}
|
|
if (from.imagesize() != 0) {
|
|
set_imagesize(from.imagesize());
|
|
}
|
|
}
|
|
|
|
void LayerImageDataMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerImageDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerImageDataMsg::CopyFrom(const LayerImageDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerImageDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerImageDataMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerImageDataMsg::InternalSwap(LayerImageDataMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
imagedata_.Swap(&other->imagedata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(imagesize_, other->imagesize_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerImageDataMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerLoadCurveMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerLoadCurveMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerLoadCurveMsg::LayerLoadCurveMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerLoadCurveMsg)
|
|
}
|
|
LayerLoadCurveMsg::LayerLoadCurveMsg(const LayerLoadCurveMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
covertype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from.covertype().empty()) {
|
|
covertype_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.covertype_);
|
|
}
|
|
::memcpy(&id_, &from.id_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
// @@protoc_insertion_point(copy_constructor:LayerLoadCurveMsg)
|
|
}
|
|
|
|
void LayerLoadCurveMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerLoadCurveMsg_common_2eproto.base);
|
|
covertype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
}
|
|
|
|
LayerLoadCurveMsg::~LayerLoadCurveMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerLoadCurveMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerLoadCurveMsg::SharedDtor() {
|
|
covertype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void LayerLoadCurveMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerLoadCurveMsg& LayerLoadCurveMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerLoadCurveMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerLoadCurveMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerLoadCurveMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
covertype_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&layer_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(layer_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerLoadCurveMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// int64 id = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 layer = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
layer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string coverType = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_covertype(), ptr, ctx, "LayerLoadCurveMsg.coverType");
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerLoadCurveMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerLoadCurveMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// int64 id = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &id_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &layer_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// string coverType = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_covertype()));
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->covertype().data(), static_cast<int>(this->covertype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
|
|
"LayerLoadCurveMsg.coverType"));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerLoadCurveMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerLoadCurveMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerLoadCurveMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerLoadCurveMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->layer(), output);
|
|
}
|
|
|
|
// string coverType = 3;
|
|
if (this->covertype().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->covertype().data(), static_cast<int>(this->covertype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerLoadCurveMsg.coverType");
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->covertype(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerLoadCurveMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerLoadCurveMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurveMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->layer(), target);
|
|
}
|
|
|
|
// string coverType = 3;
|
|
if (this->covertype().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->covertype().data(), static_cast<int>(this->covertype().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"LayerLoadCurveMsg.coverType");
|
|
target =
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->covertype(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerLoadCurveMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerLoadCurveMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurveMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string coverType = 3;
|
|
if (this->covertype().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->covertype());
|
|
}
|
|
|
|
// int64 id = 1;
|
|
if (this->id() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->id());
|
|
}
|
|
|
|
// uint32 layer = 2;
|
|
if (this->layer() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->layer());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerLoadCurveMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerLoadCurveMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerLoadCurveMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerLoadCurveMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerLoadCurveMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerLoadCurveMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerLoadCurveMsg::MergeFrom(const LayerLoadCurveMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurveMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.covertype().size() > 0) {
|
|
|
|
covertype_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.covertype_);
|
|
}
|
|
if (from.id() != 0) {
|
|
set_id(from.id());
|
|
}
|
|
if (from.layer() != 0) {
|
|
set_layer(from.layer());
|
|
}
|
|
}
|
|
|
|
void LayerLoadCurveMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerLoadCurveMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerLoadCurveMsg::CopyFrom(const LayerLoadCurveMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurveMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerLoadCurveMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerLoadCurveMsg::InternalSwap(LayerLoadCurveMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
covertype_.Swap(&other->covertype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(id_, other->id_);
|
|
swap(layer_, other->layer_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerLoadCurveMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerLoadCurvesMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerLoadCurvesMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerLoadCurvesMsg::LayerLoadCurvesMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerLoadCurvesMsg)
|
|
}
|
|
LayerLoadCurvesMsg::LayerLoadCurvesMsg(const LayerLoadCurvesMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
loadcurves_(from.loadcurves_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:LayerLoadCurvesMsg)
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayerLoadCurvesMsg_common_2eproto.base);
|
|
}
|
|
|
|
LayerLoadCurvesMsg::~LayerLoadCurvesMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerLoadCurvesMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::SharedDtor() {
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerLoadCurvesMsg& LayerLoadCurvesMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerLoadCurvesMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerLoadCurvesMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerLoadCurvesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
loadcurves_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerLoadCurvesMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated .LayerLoadCurveMsg loadCurves = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr -= 1;
|
|
do {
|
|
ptr += 1;
|
|
ptr = ctx->ParseMessage(add_loadcurves(), ptr);
|
|
CHK_(ptr);
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerLoadCurvesMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerLoadCurvesMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .LayerLoadCurveMsg loadCurves = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, add_loadcurves()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerLoadCurvesMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerLoadCurvesMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerLoadCurvesMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerLoadCurvesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerLoadCurveMsg loadCurves = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->loadcurves_size()); i < n; i++) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->loadcurves(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerLoadCurvesMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerLoadCurvesMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurvesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerLoadCurveMsg loadCurves = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->loadcurves_size()); i < n; i++) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->loadcurves(static_cast<int>(i)), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerLoadCurvesMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerLoadCurvesMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurvesMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .LayerLoadCurveMsg loadCurves = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->loadcurves_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
this->loadcurves(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerLoadCurvesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerLoadCurvesMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerLoadCurvesMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerLoadCurvesMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerLoadCurvesMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::MergeFrom(const LayerLoadCurvesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurvesMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
loadcurves_.MergeFrom(from.loadcurves_);
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerLoadCurvesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::CopyFrom(const LayerLoadCurvesMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurvesMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerLoadCurvesMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerLoadCurvesMsg::InternalSwap(LayerLoadCurvesMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
CastToBase(&loadcurves_)->InternalSwap(CastToBase(&other->loadcurves_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerLoadCurvesMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LayerLoadCurveDataMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LayerLoadCurveDataMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LayerLoadCurveDataMsg::LayerLoadCurveDataMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LayerLoadCurveDataMsg)
|
|
}
|
|
LayerLoadCurveDataMsg::LayerLoadCurveDataMsg(const LayerLoadCurveDataMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr),
|
|
mold_(from.mold_),
|
|
powder_(from.powder_),
|
|
arm_(from.arm_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:LayerLoadCurveDataMsg)
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::SharedCtor() {
|
|
}
|
|
|
|
LayerLoadCurveDataMsg::~LayerLoadCurveDataMsg() {
|
|
// @@protoc_insertion_point(destructor:LayerLoadCurveDataMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::SharedDtor() {
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LayerLoadCurveDataMsg& LayerLoadCurveDataMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayerLoadCurveDataMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LayerLoadCurveDataMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LayerLoadCurveDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
mold_.Clear();
|
|
powder_.Clear();
|
|
arm_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LayerLoadCurveDataMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// repeated float mold = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_mold(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) {
|
|
add_mold(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated float powder = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_powder(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21) {
|
|
add_powder(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// repeated float arm = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_arm(), ptr, ctx);
|
|
CHK_(ptr);
|
|
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29) {
|
|
add_arm(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
|
|
ptr += sizeof(float);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LayerLoadCurveDataMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LayerLoadCurveDataMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated float mold = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, this->mutable_mold())));
|
|
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
1, 10u, input, this->mutable_mold())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated float powder = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, this->mutable_powder())));
|
|
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (21 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
1, 18u, input, this->mutable_powder())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated float arm = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, this->mutable_arm())));
|
|
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (29 & 0xFF)) {
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>(
|
|
1, 26u, input, this->mutable_arm())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LayerLoadCurveDataMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LayerLoadCurveDataMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LayerLoadCurveDataMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LayerLoadCurveDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated float mold = 1;
|
|
if (this->mold_size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_mold_cached_byte_size_.load(
|
|
std::memory_order_relaxed));
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray(
|
|
this->mold().data(), this->mold_size(), output);
|
|
}
|
|
|
|
// repeated float powder = 2;
|
|
if (this->powder_size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_powder_cached_byte_size_.load(
|
|
std::memory_order_relaxed));
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray(
|
|
this->powder().data(), this->powder_size(), output);
|
|
}
|
|
|
|
// repeated float arm = 3;
|
|
if (this->arm_size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
output->WriteVarint32(_arm_cached_byte_size_.load(
|
|
std::memory_order_relaxed));
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray(
|
|
this->arm().data(), this->arm_size(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LayerLoadCurveDataMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LayerLoadCurveDataMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LayerLoadCurveDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated float mold = 1;
|
|
if (this->mold_size() > 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
|
|
1,
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
|
|
_mold_cached_byte_size_.load(std::memory_order_relaxed),
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
WriteFloatNoTagToArray(this->mold_, target);
|
|
}
|
|
|
|
// repeated float powder = 2;
|
|
if (this->powder_size() > 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
|
|
2,
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
|
|
_powder_cached_byte_size_.load(std::memory_order_relaxed),
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
WriteFloatNoTagToArray(this->powder_, target);
|
|
}
|
|
|
|
// repeated float arm = 3;
|
|
if (this->arm_size() > 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
|
|
3,
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
|
|
_arm_cached_byte_size_.load(std::memory_order_relaxed),
|
|
target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
WriteFloatNoTagToArray(this->arm_, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LayerLoadCurveDataMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LayerLoadCurveDataMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LayerLoadCurveDataMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// repeated float mold = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->mold_size());
|
|
size_t data_size = 4UL * count;
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
_mold_cached_byte_size_.store(cached_size,
|
|
std::memory_order_relaxed);
|
|
total_size += data_size;
|
|
}
|
|
|
|
// repeated float powder = 2;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->powder_size());
|
|
size_t data_size = 4UL * count;
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
_powder_cached_byte_size_.store(cached_size,
|
|
std::memory_order_relaxed);
|
|
total_size += data_size;
|
|
}
|
|
|
|
// repeated float arm = 3;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->arm_size());
|
|
size_t data_size = 4UL * count;
|
|
if (data_size > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
|
|
_arm_cached_byte_size_.store(cached_size,
|
|
std::memory_order_relaxed);
|
|
total_size += data_size;
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LayerLoadCurveDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LayerLoadCurveDataMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LayerLoadCurveDataMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LayerLoadCurveDataMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LayerLoadCurveDataMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::MergeFrom(const LayerLoadCurveDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LayerLoadCurveDataMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
mold_.MergeFrom(from.mold_);
|
|
powder_.MergeFrom(from.powder_);
|
|
arm_.MergeFrom(from.arm_);
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LayerLoadCurveDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::CopyFrom(const LayerLoadCurveDataMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LayerLoadCurveDataMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LayerLoadCurveDataMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LayerLoadCurveDataMsg::InternalSwap(LayerLoadCurveDataMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
mold_.InternalSwap(&other->mold_);
|
|
powder_.InternalSwap(&other->powder_);
|
|
arm_.InternalSwap(&other->arm_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LayerLoadCurveDataMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LogReqMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LogReqMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LogReqMsg::LogReqMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LogReqMsg)
|
|
}
|
|
LogReqMsg::LogReqMsg(const LogReqMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&type_, &from.type_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&pagesize_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(pagesize_));
|
|
// @@protoc_insertion_point(copy_constructor:LogReqMsg)
|
|
}
|
|
|
|
void LogReqMsg::SharedCtor() {
|
|
::memset(&type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&pagesize_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(pagesize_));
|
|
}
|
|
|
|
LogReqMsg::~LogReqMsg() {
|
|
// @@protoc_insertion_point(destructor:LogReqMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LogReqMsg::SharedDtor() {
|
|
}
|
|
|
|
void LogReqMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LogReqMsg& LogReqMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LogReqMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LogReqMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LogReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
::memset(&type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&pagesize_) -
|
|
reinterpret_cast<char*>(&type_)) + sizeof(pagesize_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LogReqMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// .LogReqMsg.LogType type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_type(static_cast<::LogReqMsg_LogType>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 index = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 pageSize = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
pagesize_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LogReqMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LogReqMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// .LogReqMsg.LogType type = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_type(static_cast< ::LogReqMsg_LogType >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 index = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &index_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 pageSize = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &pagesize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LogReqMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LogReqMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LogReqMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LogReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .LogReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
1, this->type(), output);
|
|
}
|
|
|
|
// uint32 index = 2;
|
|
if (this->index() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->index(), output);
|
|
}
|
|
|
|
// uint32 pageSize = 3;
|
|
if (this->pagesize() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(3, this->pagesize(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LogReqMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LogReqMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LogReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .LogReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
1, this->type(), target);
|
|
}
|
|
|
|
// uint32 index = 2;
|
|
if (this->index() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->index(), target);
|
|
}
|
|
|
|
// uint32 pageSize = 3;
|
|
if (this->pagesize() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->pagesize(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LogReqMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LogReqMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LogReqMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// .LogReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type());
|
|
}
|
|
|
|
// uint32 index = 2;
|
|
if (this->index() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->index());
|
|
}
|
|
|
|
// uint32 pageSize = 3;
|
|
if (this->pagesize() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->pagesize());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LogReqMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LogReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LogReqMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LogReqMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LogReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LogReqMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LogReqMsg::MergeFrom(const LogReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LogReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.type() != 0) {
|
|
set_type(from.type());
|
|
}
|
|
if (from.index() != 0) {
|
|
set_index(from.index());
|
|
}
|
|
if (from.pagesize() != 0) {
|
|
set_pagesize(from.pagesize());
|
|
}
|
|
}
|
|
|
|
void LogReqMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LogReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LogReqMsg::CopyFrom(const LogReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LogReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LogReqMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LogReqMsg::InternalSwap(LogReqMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(type_, other->type_);
|
|
swap(index_, other->index_);
|
|
swap(pagesize_, other->pagesize_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LogReqMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LogRespMsg::InitAsDefaultInstance() {
|
|
::_LogRespMsg_default_instance_.alarms_ = const_cast< ::AlarmsMsg*>(
|
|
::AlarmsMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.tasks_ = const_cast< ::TasksMsg*>(
|
|
::TasksMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.states_ = const_cast< ::LayerStatesMsg*>(
|
|
::LayerStatesMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.images_ = const_cast< ::LayerImagesMsg*>(
|
|
::LayerImagesMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.imagedata_ = const_cast< ::LayerImageDataMsg*>(
|
|
::LayerImageDataMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.loadcurves_ = const_cast< ::LayerLoadCurvesMsg*>(
|
|
::LayerLoadCurvesMsg::internal_default_instance());
|
|
::_LogRespMsg_default_instance_.loadcurvedata_ = const_cast< ::LayerLoadCurveDataMsg*>(
|
|
::LayerLoadCurveDataMsg::internal_default_instance());
|
|
}
|
|
class LogRespMsg::_Internal {
|
|
public:
|
|
static const ::AlarmsMsg& alarms(const LogRespMsg* msg);
|
|
static const ::TasksMsg& tasks(const LogRespMsg* msg);
|
|
static const ::LayerStatesMsg& states(const LogRespMsg* msg);
|
|
static const ::LayerImagesMsg& images(const LogRespMsg* msg);
|
|
static const ::LayerImageDataMsg& imagedata(const LogRespMsg* msg);
|
|
static const ::LayerLoadCurvesMsg& loadcurves(const LogRespMsg* msg);
|
|
static const ::LayerLoadCurveDataMsg& loadcurvedata(const LogRespMsg* msg);
|
|
};
|
|
|
|
const ::AlarmsMsg&
|
|
LogRespMsg::_Internal::alarms(const LogRespMsg* msg) {
|
|
return *msg->logresp_.alarms_;
|
|
}
|
|
const ::TasksMsg&
|
|
LogRespMsg::_Internal::tasks(const LogRespMsg* msg) {
|
|
return *msg->logresp_.tasks_;
|
|
}
|
|
const ::LayerStatesMsg&
|
|
LogRespMsg::_Internal::states(const LogRespMsg* msg) {
|
|
return *msg->logresp_.states_;
|
|
}
|
|
const ::LayerImagesMsg&
|
|
LogRespMsg::_Internal::images(const LogRespMsg* msg) {
|
|
return *msg->logresp_.images_;
|
|
}
|
|
const ::LayerImageDataMsg&
|
|
LogRespMsg::_Internal::imagedata(const LogRespMsg* msg) {
|
|
return *msg->logresp_.imagedata_;
|
|
}
|
|
const ::LayerLoadCurvesMsg&
|
|
LogRespMsg::_Internal::loadcurves(const LogRespMsg* msg) {
|
|
return *msg->logresp_.loadcurves_;
|
|
}
|
|
const ::LayerLoadCurveDataMsg&
|
|
LogRespMsg::_Internal::loadcurvedata(const LogRespMsg* msg) {
|
|
return *msg->logresp_.loadcurvedata_;
|
|
}
|
|
void LogRespMsg::set_allocated_alarms(::AlarmsMsg* alarms) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (alarms) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
alarms = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, alarms, submessage_arena);
|
|
}
|
|
set_has_alarms();
|
|
logresp_.alarms_ = alarms;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.alarms)
|
|
}
|
|
void LogRespMsg::set_allocated_tasks(::TasksMsg* tasks) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (tasks) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
tasks = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, tasks, submessage_arena);
|
|
}
|
|
set_has_tasks();
|
|
logresp_.tasks_ = tasks;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.tasks)
|
|
}
|
|
void LogRespMsg::set_allocated_states(::LayerStatesMsg* states) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (states) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
states = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, states, submessage_arena);
|
|
}
|
|
set_has_states();
|
|
logresp_.states_ = states;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.states)
|
|
}
|
|
void LogRespMsg::set_allocated_images(::LayerImagesMsg* images) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (images) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
images = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, images, submessage_arena);
|
|
}
|
|
set_has_images();
|
|
logresp_.images_ = images;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.images)
|
|
}
|
|
void LogRespMsg::set_allocated_imagedata(::LayerImageDataMsg* imagedata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (imagedata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
imagedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, imagedata, submessage_arena);
|
|
}
|
|
set_has_imagedata();
|
|
logresp_.imagedata_ = imagedata;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.imageData)
|
|
}
|
|
void LogRespMsg::set_allocated_loadcurves(::LayerLoadCurvesMsg* loadcurves) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (loadcurves) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
loadcurves = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, loadcurves, submessage_arena);
|
|
}
|
|
set_has_loadcurves();
|
|
logresp_.loadcurves_ = loadcurves;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.loadCurves)
|
|
}
|
|
void LogRespMsg::set_allocated_loadcurvedata(::LayerLoadCurveDataMsg* loadcurvedata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
|
|
clear_logresp();
|
|
if (loadcurvedata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
|
|
if (message_arena != submessage_arena) {
|
|
loadcurvedata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, loadcurvedata, submessage_arena);
|
|
}
|
|
set_has_loadcurvedata();
|
|
logresp_.loadcurvedata_ = loadcurvedata;
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:LogRespMsg.loadCurveData)
|
|
}
|
|
LogRespMsg::LogRespMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LogRespMsg)
|
|
}
|
|
LogRespMsg::LogRespMsg(const LogRespMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&index_, &from.index_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&total_) -
|
|
reinterpret_cast<char*>(&index_)) + sizeof(total_));
|
|
clear_has_logresp();
|
|
switch (from.logresp_case()) {
|
|
case kAlarms: {
|
|
mutable_alarms()->::AlarmsMsg::MergeFrom(from.alarms());
|
|
break;
|
|
}
|
|
case kTasks: {
|
|
mutable_tasks()->::TasksMsg::MergeFrom(from.tasks());
|
|
break;
|
|
}
|
|
case kStates: {
|
|
mutable_states()->::LayerStatesMsg::MergeFrom(from.states());
|
|
break;
|
|
}
|
|
case kImages: {
|
|
mutable_images()->::LayerImagesMsg::MergeFrom(from.images());
|
|
break;
|
|
}
|
|
case kImageData: {
|
|
mutable_imagedata()->::LayerImageDataMsg::MergeFrom(from.imagedata());
|
|
break;
|
|
}
|
|
case kLoadCurves: {
|
|
mutable_loadcurves()->::LayerLoadCurvesMsg::MergeFrom(from.loadcurves());
|
|
break;
|
|
}
|
|
case kLoadCurveData: {
|
|
mutable_loadcurvedata()->::LayerLoadCurveDataMsg::MergeFrom(from.loadcurvedata());
|
|
break;
|
|
}
|
|
case LOGRESP_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:LogRespMsg)
|
|
}
|
|
|
|
void LogRespMsg::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LogRespMsg_common_2eproto.base);
|
|
::memset(&index_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&total_) -
|
|
reinterpret_cast<char*>(&index_)) + sizeof(total_));
|
|
clear_has_logresp();
|
|
}
|
|
|
|
LogRespMsg::~LogRespMsg() {
|
|
// @@protoc_insertion_point(destructor:LogRespMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LogRespMsg::SharedDtor() {
|
|
if (has_logresp()) {
|
|
clear_logresp();
|
|
}
|
|
}
|
|
|
|
void LogRespMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LogRespMsg& LogRespMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LogRespMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LogRespMsg::clear_logresp() {
|
|
// @@protoc_insertion_point(one_of_clear_start:LogRespMsg)
|
|
switch (logresp_case()) {
|
|
case kAlarms: {
|
|
delete logresp_.alarms_;
|
|
break;
|
|
}
|
|
case kTasks: {
|
|
delete logresp_.tasks_;
|
|
break;
|
|
}
|
|
case kStates: {
|
|
delete logresp_.states_;
|
|
break;
|
|
}
|
|
case kImages: {
|
|
delete logresp_.images_;
|
|
break;
|
|
}
|
|
case kImageData: {
|
|
delete logresp_.imagedata_;
|
|
break;
|
|
}
|
|
case kLoadCurves: {
|
|
delete logresp_.loadcurves_;
|
|
break;
|
|
}
|
|
case kLoadCurveData: {
|
|
delete logresp_.loadcurvedata_;
|
|
break;
|
|
}
|
|
case LOGRESP_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
_oneof_case_[0] = LOGRESP_NOT_SET;
|
|
}
|
|
|
|
|
|
void LogRespMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LogRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
::memset(&index_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&total_) -
|
|
reinterpret_cast<char*>(&index_)) + sizeof(total_));
|
|
clear_logresp();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LogRespMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// uint32 index = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 pageSize = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
pagesize_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 total = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .AlarmsMsg alarms = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
ptr = ctx->ParseMessage(mutable_alarms(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .TasksMsg tasks = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
ptr = ctx->ParseMessage(mutable_tasks(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .LayerStatesMsg states = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
ptr = ctx->ParseMessage(mutable_states(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .LayerImagesMsg images = 7;
|
|
case 7:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
ptr = ctx->ParseMessage(mutable_images(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .LayerImageDataMsg imageData = 8;
|
|
case 8:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
ptr = ctx->ParseMessage(mutable_imagedata(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .LayerLoadCurvesMsg loadCurves = 9;
|
|
case 9:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
|
ptr = ctx->ParseMessage(mutable_loadcurves(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .LayerLoadCurveDataMsg loadCurveData = 10;
|
|
case 10:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
ptr = ctx->ParseMessage(mutable_loadcurvedata(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LogRespMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LogRespMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// uint32 index = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &index_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 pageSize = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &pagesize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// uint32 total = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32>(
|
|
input, &total_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .AlarmsMsg alarms = 4;
|
|
case 4: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_alarms()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .TasksMsg tasks = 5;
|
|
case 5: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_tasks()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .LayerStatesMsg states = 6;
|
|
case 6: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_states()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .LayerImagesMsg images = 7;
|
|
case 7: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_images()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .LayerImageDataMsg imageData = 8;
|
|
case 8: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_imagedata()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .LayerLoadCurvesMsg loadCurves = 9;
|
|
case 9: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_loadcurves()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// .LayerLoadCurveDataMsg loadCurveData = 10;
|
|
case 10: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_loadcurvedata()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LogRespMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LogRespMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LogRespMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LogRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint32 index = 1;
|
|
if (this->index() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(1, this->index(), output);
|
|
}
|
|
|
|
// uint32 pageSize = 2;
|
|
if (this->pagesize() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(2, this->pagesize(), output);
|
|
}
|
|
|
|
// uint32 total = 3;
|
|
if (this->total() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32(3, this->total(), output);
|
|
}
|
|
|
|
// .AlarmsMsg alarms = 4;
|
|
if (has_alarms()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
4, _Internal::alarms(this), output);
|
|
}
|
|
|
|
// .TasksMsg tasks = 5;
|
|
if (has_tasks()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
5, _Internal::tasks(this), output);
|
|
}
|
|
|
|
// .LayerStatesMsg states = 6;
|
|
if (has_states()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6, _Internal::states(this), output);
|
|
}
|
|
|
|
// .LayerImagesMsg images = 7;
|
|
if (has_images()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
7, _Internal::images(this), output);
|
|
}
|
|
|
|
// .LayerImageDataMsg imageData = 8;
|
|
if (has_imagedata()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
8, _Internal::imagedata(this), output);
|
|
}
|
|
|
|
// .LayerLoadCurvesMsg loadCurves = 9;
|
|
if (has_loadcurves()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
9, _Internal::loadcurves(this), output);
|
|
}
|
|
|
|
// .LayerLoadCurveDataMsg loadCurveData = 10;
|
|
if (has_loadcurvedata()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
10, _Internal::loadcurvedata(this), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LogRespMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LogRespMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LogRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint32 index = 1;
|
|
if (this->index() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target);
|
|
}
|
|
|
|
// uint32 pageSize = 2;
|
|
if (this->pagesize() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->pagesize(), target);
|
|
}
|
|
|
|
// uint32 total = 3;
|
|
if (this->total() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->total(), target);
|
|
}
|
|
|
|
// .AlarmsMsg alarms = 4;
|
|
if (has_alarms()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
4, _Internal::alarms(this), target);
|
|
}
|
|
|
|
// .TasksMsg tasks = 5;
|
|
if (has_tasks()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
5, _Internal::tasks(this), target);
|
|
}
|
|
|
|
// .LayerStatesMsg states = 6;
|
|
if (has_states()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
6, _Internal::states(this), target);
|
|
}
|
|
|
|
// .LayerImagesMsg images = 7;
|
|
if (has_images()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
7, _Internal::images(this), target);
|
|
}
|
|
|
|
// .LayerImageDataMsg imageData = 8;
|
|
if (has_imagedata()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
8, _Internal::imagedata(this), target);
|
|
}
|
|
|
|
// .LayerLoadCurvesMsg loadCurves = 9;
|
|
if (has_loadcurves()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
9, _Internal::loadcurves(this), target);
|
|
}
|
|
|
|
// .LayerLoadCurveDataMsg loadCurveData = 10;
|
|
if (has_loadcurvedata()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
10, _Internal::loadcurvedata(this), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LogRespMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LogRespMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LogRespMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// uint32 index = 1;
|
|
if (this->index() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->index());
|
|
}
|
|
|
|
// uint32 pageSize = 2;
|
|
if (this->pagesize() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->pagesize());
|
|
}
|
|
|
|
// uint32 total = 3;
|
|
if (this->total() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->total());
|
|
}
|
|
|
|
switch (logresp_case()) {
|
|
// .AlarmsMsg alarms = 4;
|
|
case kAlarms: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.alarms_);
|
|
break;
|
|
}
|
|
// .TasksMsg tasks = 5;
|
|
case kTasks: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.tasks_);
|
|
break;
|
|
}
|
|
// .LayerStatesMsg states = 6;
|
|
case kStates: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.states_);
|
|
break;
|
|
}
|
|
// .LayerImagesMsg images = 7;
|
|
case kImages: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.images_);
|
|
break;
|
|
}
|
|
// .LayerImageDataMsg imageData = 8;
|
|
case kImageData: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.imagedata_);
|
|
break;
|
|
}
|
|
// .LayerLoadCurvesMsg loadCurves = 9;
|
|
case kLoadCurves: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.loadcurves_);
|
|
break;
|
|
}
|
|
// .LayerLoadCurveDataMsg loadCurveData = 10;
|
|
case kLoadCurveData: {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*logresp_.loadcurvedata_);
|
|
break;
|
|
}
|
|
case LOGRESP_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LogRespMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LogRespMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LogRespMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LogRespMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LogRespMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LogRespMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LogRespMsg::MergeFrom(const LogRespMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LogRespMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.index() != 0) {
|
|
set_index(from.index());
|
|
}
|
|
if (from.pagesize() != 0) {
|
|
set_pagesize(from.pagesize());
|
|
}
|
|
if (from.total() != 0) {
|
|
set_total(from.total());
|
|
}
|
|
switch (from.logresp_case()) {
|
|
case kAlarms: {
|
|
mutable_alarms()->::AlarmsMsg::MergeFrom(from.alarms());
|
|
break;
|
|
}
|
|
case kTasks: {
|
|
mutable_tasks()->::TasksMsg::MergeFrom(from.tasks());
|
|
break;
|
|
}
|
|
case kStates: {
|
|
mutable_states()->::LayerStatesMsg::MergeFrom(from.states());
|
|
break;
|
|
}
|
|
case kImages: {
|
|
mutable_images()->::LayerImagesMsg::MergeFrom(from.images());
|
|
break;
|
|
}
|
|
case kImageData: {
|
|
mutable_imagedata()->::LayerImageDataMsg::MergeFrom(from.imagedata());
|
|
break;
|
|
}
|
|
case kLoadCurves: {
|
|
mutable_loadcurves()->::LayerLoadCurvesMsg::MergeFrom(from.loadcurves());
|
|
break;
|
|
}
|
|
case kLoadCurveData: {
|
|
mutable_loadcurvedata()->::LayerLoadCurveDataMsg::MergeFrom(from.loadcurvedata());
|
|
break;
|
|
}
|
|
case LOGRESP_NOT_SET: {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
void LogRespMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LogRespMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LogRespMsg::CopyFrom(const LogRespMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LogRespMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LogRespMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LogRespMsg::InternalSwap(LogRespMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(index_, other->index_);
|
|
swap(pagesize_, other->pagesize_);
|
|
swap(total_, other->total_);
|
|
swap(logresp_, other->logresp_);
|
|
swap(_oneof_case_[0], other->_oneof_case_[0]);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LogRespMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void LogFetchReqMsg::InitAsDefaultInstance() {
|
|
}
|
|
class LogFetchReqMsg::_Internal {
|
|
public:
|
|
};
|
|
|
|
LogFetchReqMsg::LogFetchReqMsg()
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:LogFetchReqMsg)
|
|
}
|
|
LogFetchReqMsg::LogFetchReqMsg(const LogFetchReqMsg& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
|
_internal_metadata_(nullptr) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&begin_, &from.begin_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&type_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(type_));
|
|
// @@protoc_insertion_point(copy_constructor:LogFetchReqMsg)
|
|
}
|
|
|
|
void LogFetchReqMsg::SharedCtor() {
|
|
::memset(&begin_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&type_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(type_));
|
|
}
|
|
|
|
LogFetchReqMsg::~LogFetchReqMsg() {
|
|
// @@protoc_insertion_point(destructor:LogFetchReqMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void LogFetchReqMsg::SharedDtor() {
|
|
}
|
|
|
|
void LogFetchReqMsg::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const LogFetchReqMsg& LogFetchReqMsg::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LogFetchReqMsg_common_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void LogFetchReqMsg::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:LogFetchReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
::memset(&begin_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&type_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(type_));
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
const char* LogFetchReqMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// .LogFetchReqMsg.LogType type = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
set_type(static_cast<::LogFetchReqMsg_LogType>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 begin = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
begin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// int64 end = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
bool LogFetchReqMsg::MergePartialFromCodedStream(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:LogFetchReqMsg)
|
|
for (;;) {
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// .LogFetchReqMsg.LogType type = 1;
|
|
case 1: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
|
|
int value = 0;
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
set_type(static_cast< ::LogFetchReqMsg_LogType >(value));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 begin = 2;
|
|
case 2: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &begin_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// int64 end = 3;
|
|
case 3: {
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
|
|
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &end_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:LogFetchReqMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:LogFetchReqMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
void LogFetchReqMsg::SerializeWithCachedSizes(
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:LogFetchReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .LogFetchReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
|
|
1, this->type(), output);
|
|
}
|
|
|
|
// int64 begin = 2;
|
|
if (this->begin() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->begin(), output);
|
|
}
|
|
|
|
// int64 end = 3;
|
|
if (this->end() != 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->end(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:LogFetchReqMsg)
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LogFetchReqMsg::InternalSerializeWithCachedSizesToArray(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:LogFetchReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .LogFetchReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
1, this->type(), target);
|
|
}
|
|
|
|
// int64 begin = 2;
|
|
if (this->begin() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->begin(), target);
|
|
}
|
|
|
|
// int64 end = 3;
|
|
if (this->end() != 0) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->end(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:LogFetchReqMsg)
|
|
return target;
|
|
}
|
|
|
|
size_t LogFetchReqMsg::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:LogFetchReqMsg)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// int64 begin = 2;
|
|
if (this->begin() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->begin());
|
|
}
|
|
|
|
// int64 end = 3;
|
|
if (this->end() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
|
|
this->end());
|
|
}
|
|
|
|
// .LogFetchReqMsg.LogType type = 1;
|
|
if (this->type() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->type());
|
|
}
|
|
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void LogFetchReqMsg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:LogFetchReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const LogFetchReqMsg* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<LogFetchReqMsg>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:LogFetchReqMsg)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:LogFetchReqMsg)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void LogFetchReqMsg::MergeFrom(const LogFetchReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:LogFetchReqMsg)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.begin() != 0) {
|
|
set_begin(from.begin());
|
|
}
|
|
if (from.end() != 0) {
|
|
set_end(from.end());
|
|
}
|
|
if (from.type() != 0) {
|
|
set_type(from.type());
|
|
}
|
|
}
|
|
|
|
void LogFetchReqMsg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:LogFetchReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void LogFetchReqMsg::CopyFrom(const LogFetchReqMsg& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:LogFetchReqMsg)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool LogFetchReqMsg::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void LogFetchReqMsg::InternalSwap(LogFetchReqMsg* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(begin_, other->begin_);
|
|
swap(end_, other->end_);
|
|
swap(type_, other->type_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LogFetchReqMsg::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::StateMsg* Arena::CreateMaybeMessage< ::StateMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::StateMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::JobInfoMsg* Arena::CreateMaybeMessage< ::JobInfoMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::JobInfoMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::JobStateMsg* Arena::CreateMaybeMessage< ::JobStateMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::JobStateMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::MachineMsg* Arena::CreateMaybeMessage< ::MachineMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::MachineMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::ErrorMsg* Arena::CreateMaybeMessage< ::ErrorMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ErrorMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::ParameterMsg* Arena::CreateMaybeMessage< ::ParameterMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ParameterMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::PartMsg* Arena::CreateMaybeMessage< ::PartMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::PartMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::JobMsg* Arena::CreateMaybeMessage< ::JobMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::JobMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerDataRespMsg* Arena::CreateMaybeMessage< ::LayerDataRespMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerDataRespMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::DataBlockMsg* Arena::CreateMaybeMessage< ::DataBlockMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::DataBlockMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerDataBlockMsg* Arena::CreateMaybeMessage< ::LayerDataBlockMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerDataBlockMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::JobParamMsg* Arena::CreateMaybeMessage< ::JobParamMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::JobParamMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerDataReqMsg* Arena::CreateMaybeMessage< ::LayerDataReqMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerDataReqMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::ResponseState* Arena::CreateMaybeMessage< ::ResponseState >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ResponseState >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::CameraDataMsg* Arena::CreateMaybeMessage< ::CameraDataMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::CameraDataMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::AlarmMsg* Arena::CreateMaybeMessage< ::AlarmMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::AlarmMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::AlarmsMsg* Arena::CreateMaybeMessage< ::AlarmsMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::AlarmsMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::TaskMsg* Arena::CreateMaybeMessage< ::TaskMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::TaskMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::TasksMsg* Arena::CreateMaybeMessage< ::TasksMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::TasksMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerStateMsg* Arena::CreateMaybeMessage< ::LayerStateMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerStateMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerStatesMsg* Arena::CreateMaybeMessage< ::LayerStatesMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerStatesMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerImageMsg* Arena::CreateMaybeMessage< ::LayerImageMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerImageMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerImagesMsg* Arena::CreateMaybeMessage< ::LayerImagesMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerImagesMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerImageDataMsg* Arena::CreateMaybeMessage< ::LayerImageDataMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerImageDataMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerLoadCurveMsg* Arena::CreateMaybeMessage< ::LayerLoadCurveMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerLoadCurveMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerLoadCurvesMsg* Arena::CreateMaybeMessage< ::LayerLoadCurvesMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerLoadCurvesMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LayerLoadCurveDataMsg* Arena::CreateMaybeMessage< ::LayerLoadCurveDataMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LayerLoadCurveDataMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LogReqMsg* Arena::CreateMaybeMessage< ::LogReqMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LogReqMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LogRespMsg* Arena::CreateMaybeMessage< ::LogRespMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LogRespMsg >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::LogFetchReqMsg* Arena::CreateMaybeMessage< ::LogFetchReqMsg >(Arena* arena) {
|
|
return Arena::CreateInternal< ::LogFetchReqMsg >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|