2324 lines
84 KiB
C++
2324 lines
84 KiB
C++
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: printers.proto
|
||
|
|
||
|
#include "printers.pb.h"
|
||
|
|
||
|
#include <algorithm>
|
||
|
#include "google/protobuf/io/coded_stream.h"
|
||
|
#include "google/protobuf/extension_set.h"
|
||
|
#include "google/protobuf/wire_format_lite.h"
|
||
|
#include "google/protobuf/descriptor.h"
|
||
|
#include "google/protobuf/generated_message_reflection.h"
|
||
|
#include "google/protobuf/reflection_ops.h"
|
||
|
#include "google/protobuf/wire_format.h"
|
||
|
#include "google/protobuf/generated_message_tctable_impl.h"
|
||
|
// @@protoc_insertion_point(includes)
|
||
|
|
||
|
// Must be included last.
|
||
|
#include "google/protobuf/port_def.inc"
|
||
|
PROTOBUF_PRAGMA_INIT_SEG
|
||
|
namespace _pb = ::google::protobuf;
|
||
|
namespace _pbi = ::google::protobuf::internal;
|
||
|
namespace _fl = ::google::protobuf::internal::field_layout;
|
||
|
namespace PrinterMsg {
|
||
|
template <typename>
|
||
|
PROTOBUF_CONSTEXPR PrinterListMsg::PrinterListMsg(::_pbi::ConstantInitialized)
|
||
|
: _impl_{
|
||
|
/*decltype(_impl_.printers_)*/ {},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
} {}
|
||
|
struct PrinterListMsgDefaultTypeInternal {
|
||
|
PROTOBUF_CONSTEXPR PrinterListMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
||
|
~PrinterListMsgDefaultTypeInternal() {}
|
||
|
union {
|
||
|
PrinterListMsg _instance;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
||
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrinterListMsgDefaultTypeInternal _PrinterListMsg_default_instance_;
|
||
|
template <typename>
|
||
|
PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized)
|
||
|
: _impl_{
|
||
|
/*decltype(_impl_.result_)*/ false,
|
||
|
/*decltype(_impl_.resps_)*/ {},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
} {}
|
||
|
struct ResponseDefaultTypeInternal {
|
||
|
PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
||
|
~ResponseDefaultTypeInternal() {}
|
||
|
union {
|
||
|
Response _instance;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
||
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_;
|
||
|
template <typename>
|
||
|
PROTOBUF_CONSTEXPR Request::Request(::_pbi::ConstantInitialized)
|
||
|
: _impl_{
|
||
|
/*decltype(_impl_.oneof_req_)*/ {},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
} {}
|
||
|
struct RequestDefaultTypeInternal {
|
||
|
PROTOBUF_CONSTEXPR RequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
||
|
~RequestDefaultTypeInternal() {}
|
||
|
union {
|
||
|
Request _instance;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
||
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestDefaultTypeInternal _Request_default_instance_;
|
||
|
template <typename>
|
||
|
PROTOBUF_CONSTEXPR HMessage::HMessage(::_pbi::ConstantInitialized)
|
||
|
: _impl_{
|
||
|
/*decltype(_impl_._has_bits_)*/ {},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_.id_)*/ {
|
||
|
&::_pbi::fixed_address_empty_string,
|
||
|
::_pbi::ConstantInitialized{},
|
||
|
},
|
||
|
/*decltype(_impl_.mcode_)*/ {
|
||
|
&::_pbi::fixed_address_empty_string,
|
||
|
::_pbi::ConstantInitialized{},
|
||
|
},
|
||
|
/*decltype(_impl_.request_)*/ nullptr,
|
||
|
/*decltype(_impl_.response_)*/ nullptr,
|
||
|
/*decltype(_impl_.sendtime_)*/ ::uint64_t{0u},
|
||
|
/*decltype(_impl_.type_)*/ 0,
|
||
|
} {}
|
||
|
struct HMessageDefaultTypeInternal {
|
||
|
PROTOBUF_CONSTEXPR HMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
||
|
~HMessageDefaultTypeInternal() {}
|
||
|
union {
|
||
|
HMessage _instance;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
||
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HMessageDefaultTypeInternal _HMessage_default_instance_;
|
||
|
} // namespace PrinterMsg
|
||
|
static ::_pb::Metadata file_level_metadata_printers_2eproto[4];
|
||
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_printers_2eproto[1];
|
||
|
static constexpr const ::_pb::ServiceDescriptor**
|
||
|
file_level_service_descriptors_printers_2eproto = nullptr;
|
||
|
const ::uint32_t TableStruct_printers_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
|
||
|
protodesc_cold) = {
|
||
|
~0u, // no _has_bits_
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::PrinterListMsg, _internal_metadata_),
|
||
|
~0u, // no _extensions_
|
||
|
~0u, // no _oneof_case_
|
||
|
~0u, // no _weak_field_map_
|
||
|
~0u, // no _inlined_string_donated_
|
||
|
~0u, // no _split_
|
||
|
~0u, // no sizeof(Split)
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::PrinterListMsg, _impl_.printers_),
|
||
|
~0u, // no _has_bits_
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Response, _internal_metadata_),
|
||
|
~0u, // no _extensions_
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Response, _impl_._oneof_case_[0]),
|
||
|
~0u, // no _weak_field_map_
|
||
|
~0u, // no _inlined_string_donated_
|
||
|
~0u, // no _split_
|
||
|
~0u, // no sizeof(Split)
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Response, _impl_.result_),
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Response, _impl_.resps_),
|
||
|
~0u, // no _has_bits_
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Request, _internal_metadata_),
|
||
|
~0u, // no _extensions_
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Request, _impl_._oneof_case_[0]),
|
||
|
~0u, // no _weak_field_map_
|
||
|
~0u, // no _inlined_string_donated_
|
||
|
~0u, // no _split_
|
||
|
~0u, // no sizeof(Split)
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
::_pbi::kInvalidFieldOffsetTag,
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Request, _impl_.oneof_req_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_._has_bits_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _internal_metadata_),
|
||
|
~0u, // no _extensions_
|
||
|
~0u, // no _oneof_case_
|
||
|
~0u, // no _weak_field_map_
|
||
|
~0u, // no _inlined_string_donated_
|
||
|
~0u, // no _split_
|
||
|
~0u, // no sizeof(Split)
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.type_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.id_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.mcode_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.request_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.response_),
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::HMessage, _impl_.sendtime_),
|
||
|
~0u,
|
||
|
~0u,
|
||
|
~0u,
|
||
|
0,
|
||
|
1,
|
||
|
~0u,
|
||
|
};
|
||
|
|
||
|
static const ::_pbi::MigrationSchema
|
||
|
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||
|
{0, -1, -1, sizeof(::PrinterMsg::PrinterListMsg)},
|
||
|
{9, -1, -1, sizeof(::PrinterMsg::Response)},
|
||
|
{31, -1, -1, sizeof(::PrinterMsg::Request)},
|
||
|
{45, 59, -1, sizeof(::PrinterMsg::HMessage)},
|
||
|
};
|
||
|
|
||
|
static const ::_pb::Message* const file_default_instances[] = {
|
||
|
&::PrinterMsg::_PrinterListMsg_default_instance_._instance,
|
||
|
&::PrinterMsg::_Response_default_instance_._instance,
|
||
|
&::PrinterMsg::_Request_default_instance_._instance,
|
||
|
&::PrinterMsg::_HMessage_default_instance_._instance,
|
||
|
};
|
||
|
const char descriptor_table_protodef_printers_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||
|
"\n\016printers.proto\022\nPrinterMsg\032\014common.pro"
|
||
|
"to\"/\n\016PrinterListMsg\022\035\n\010printers\030\001 \003(\0132\013"
|
||
|
".MachineMsg\"\213\004\n\010Response\022\016\n\006result\030\001 \001(\010"
|
||
|
"\022\035\n\010errorMsg\030\002 \001(\0132\t.ErrorMsgH\000\022\035\n\010state"
|
||
|
"Msg\030\003 \001(\0132\t.StateMsgH\000\022\031\n\006jobMsg\030\004 \001(\0132\007"
|
||
|
".JobMsgH\000\0221\n\013printerList\030\005 \001(\0132\032.Printer"
|
||
|
"Msg.PrinterListMsgH\000\022)\n\014layerDataMsg\030\006 \001"
|
||
|
"(\0132\021.LayerDataRespMsgH\000\022#\n\tstateMsgs\030\007 \001"
|
||
|
"(\0132\016.ResponseStateH\000\022$\n\ncameraData\030\010 \001(\013"
|
||
|
"2\016.CameraDataMsgH\000\022)\n\016stateChangeMsg\030\t \001"
|
||
|
"(\0132\017.StateChangeMsgH\000\022)\n\016recordTasksMsg\030"
|
||
|
"\n \001(\0132\017.RecordTasksMsgH\000\0220\n\021recordTaskLi"
|
||
|
"stMsg\030\013 \001(\0132\023.RecordTasksListMsgH\000\022+\n\017re"
|
||
|
"moteJobResMsg\030\014 \001(\0132\020.RemoteJobResMsgH\000\022"
|
||
|
"/\n\021versionInfoResMsg\030\r \001(\0132\022.VersionInfo"
|
||
|
"ResMsgH\000B\007\n\005resps\"\364\001\n\007Request\022!\n\nmachine"
|
||
|
"Msg\030\001 \001(\0132\013.MachineMsgH\000\022(\n\014layerDataMsg"
|
||
|
"\030\002 \001(\0132\020.LayerDataReqMsgH\000\022)\n\016alarmNotif"
|
||
|
"yMsg\030\003 \001(\0132\017.AlarmNotifyMsgH\000\022-\n\020reqReco"
|
||
|
"rdTaskMsg\030\004 \001(\0132\021.ReqRecordTaskMsgH\000\0225\n\024"
|
||
|
"reqRecordTaskListMsg\030\005 \001(\0132\025.ReqRecordTa"
|
||
|
"skListMsgH\000B\013\n\toneof_req\"\244\001\n\010HMessage\022\035\n"
|
||
|
"\004type\030\001 \001(\0162\017.PrinterMsg.MSG\022\n\n\002id\030\002 \001(\t"
|
||
|
"\022\r\n\005mcode\030\003 \001(\t\022$\n\007request\030\004 \001(\0132\023.Print"
|
||
|
"erMsg.Request\022&\n\010response\030\005 \001(\0132\024.Printe"
|
||
|
"rMsg.Response\022\020\n\010sendTime\030\006 \001(\004*\233\005\n\003MSG\022"
|
||
|
"\014\n\010UNDEFINE\020\000\022\022\n\rLOGIN_REQUEST\020\351\007\022\023\n\016LOG"
|
||
|
"IN_RESPONSE\020\352\007\022\022\n\rSTATE_REQUEST\020\321\017\022\023\n\016ST"
|
||
|
"ATE_RESPONSE\020\322\017\022\030\n\023CAMERA_DATA_REQUEST\020\323"
|
||
|
"\017\022\031\n\024CAMERA_DATA_RESPONSE\020\324\017\022\027\n\022LAYER_DA"
|
||
|
"TA_REQUEST\020\325\017\022\030\n\023LAYER_DATA_RESPONSE\020\326\017\022"
|
||
|
"\024\n\017VERSION_REQUEST\020\327\017\022\025\n\020VERSION_RESPONS"
|
||
|
"E\020\330\017\022\034\n\027REMOTE_JOB_LIST_REQUEST\020\331\017\022\035\n\030RE"
|
||
|
"MOTE_JOB_LIST_RESPONSE\020\332\017\022\026\n\021CTRL_SYSTEM"
|
||
|
"_PAUSE\020\271\027\022\025\n\020CRTL_SYSTEM_STOP\020\272\027\022\021\n\014STAT"
|
||
|
"E_CHANGE\020\241\037\022\032\n\025STATE_CHANGE_RESPONSE\020\244\037\022"
|
||
|
"\031\n\024ALARM_NOTIFY_REQUEST\020\242\037\022\032\n\025ALARM_NOTI"
|
||
|
"FY_RESPONSE\020\243\037\022\025\n\020JOB_INFO_REQUEST\020\361.\022\026\n"
|
||
|
"\021JOB_INFO_RESPONSE\020\362.\022\032\n\025PRINTER_LIST_RE"
|
||
|
"SPONSE\020\3316\022\034\n\027LOG_REQUEST_RECORD_TASK\020\304>\022"
|
||
|
"\035\n\030LOG_RESPONSE_RECORD_TASK\020\305>\022!\n\034LOG_RE"
|
||
|
"QUEST_RECORD_TASK_LIST\020\306>\022\"\n\035LOG_RESPONS"
|
||
|
"E_RECORD_TASK_LIST\020\307>b\006proto3"
|
||
|
};
|
||
|
static const ::_pbi::DescriptorTable* const descriptor_table_printers_2eproto_deps[1] =
|
||
|
{
|
||
|
&::descriptor_table_common_2eproto,
|
||
|
};
|
||
|
static ::absl::once_flag descriptor_table_printers_2eproto_once;
|
||
|
const ::_pbi::DescriptorTable descriptor_table_printers_2eproto = {
|
||
|
false,
|
||
|
false,
|
||
|
1709,
|
||
|
descriptor_table_protodef_printers_2eproto,
|
||
|
"printers.proto",
|
||
|
&descriptor_table_printers_2eproto_once,
|
||
|
descriptor_table_printers_2eproto_deps,
|
||
|
1,
|
||
|
4,
|
||
|
schemas,
|
||
|
file_default_instances,
|
||
|
TableStruct_printers_2eproto::offsets,
|
||
|
file_level_metadata_printers_2eproto,
|
||
|
file_level_enum_descriptors_printers_2eproto,
|
||
|
file_level_service_descriptors_printers_2eproto,
|
||
|
};
|
||
|
|
||
|
// This function exists to be marked as weak.
|
||
|
// It can significantly speed up compilation by breaking up LLVM's SCC
|
||
|
// in the .pb.cc translation units. Large translation units see a
|
||
|
// reduction of more than 35% of walltime for optimized builds. Without
|
||
|
// the weak attribute all the messages in the file, including all the
|
||
|
// vtables and everything they use become part of the same SCC through
|
||
|
// a cycle like:
|
||
|
// GetMetadata -> descriptor table -> default instances ->
|
||
|
// vtables -> GetMetadata
|
||
|
// By adding a weak function here we break the connection from the
|
||
|
// individual vtables back into the descriptor table.
|
||
|
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_printers_2eproto_getter() {
|
||
|
return &descriptor_table_printers_2eproto;
|
||
|
}
|
||
|
// Force running AddDescriptors() at dynamic initialization time.
|
||
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
|
||
|
static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_printers_2eproto(&descriptor_table_printers_2eproto);
|
||
|
namespace PrinterMsg {
|
||
|
const ::google::protobuf::EnumDescriptor* MSG_descriptor() {
|
||
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_printers_2eproto);
|
||
|
return file_level_enum_descriptors_printers_2eproto[0];
|
||
|
}
|
||
|
bool MSG_IsValid(int value) {
|
||
|
switch (value) {
|
||
|
case 0:
|
||
|
case 1001:
|
||
|
case 1002:
|
||
|
case 2001:
|
||
|
case 2002:
|
||
|
case 2003:
|
||
|
case 2004:
|
||
|
case 2005:
|
||
|
case 2006:
|
||
|
case 2007:
|
||
|
case 2008:
|
||
|
case 2009:
|
||
|
case 2010:
|
||
|
case 3001:
|
||
|
case 3002:
|
||
|
case 4001:
|
||
|
case 4002:
|
||
|
case 4003:
|
||
|
case 4004:
|
||
|
case 6001:
|
||
|
case 6002:
|
||
|
case 7001:
|
||
|
case 8004:
|
||
|
case 8005:
|
||
|
case 8006:
|
||
|
case 8007:
|
||
|
return true;
|
||
|
default:
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
// ===================================================================
|
||
|
|
||
|
class PrinterListMsg::_Internal {
|
||
|
public:
|
||
|
};
|
||
|
|
||
|
void PrinterListMsg::clear_printers() {
|
||
|
_internal_mutable_printers()->Clear();
|
||
|
}
|
||
|
PrinterListMsg::PrinterListMsg(::google::protobuf::Arena* arena)
|
||
|
: ::google::protobuf::Message(arena) {
|
||
|
SharedCtor(arena);
|
||
|
// @@protoc_insertion_point(arena_constructor:PrinterMsg.PrinterListMsg)
|
||
|
}
|
||
|
PrinterListMsg::PrinterListMsg(const PrinterListMsg& from) : ::google::protobuf::Message() {
|
||
|
PrinterListMsg* const _this = this;
|
||
|
(void)_this;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.printers_){from._impl_.printers_},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
};
|
||
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
||
|
from._internal_metadata_);
|
||
|
|
||
|
// @@protoc_insertion_point(copy_constructor:PrinterMsg.PrinterListMsg)
|
||
|
}
|
||
|
inline void PrinterListMsg::SharedCtor(::_pb::Arena* arena) {
|
||
|
(void)arena;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.printers_){arena},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
};
|
||
|
}
|
||
|
PrinterListMsg::~PrinterListMsg() {
|
||
|
// @@protoc_insertion_point(destructor:PrinterMsg.PrinterListMsg)
|
||
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
||
|
SharedDtor();
|
||
|
}
|
||
|
inline void PrinterListMsg::SharedDtor() {
|
||
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
||
|
_impl_.printers_.~RepeatedPtrField();
|
||
|
}
|
||
|
void PrinterListMsg::SetCachedSize(int size) const {
|
||
|
_impl_._cached_size_.Set(size);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE void PrinterListMsg::Clear() {
|
||
|
// @@protoc_insertion_point(message_clear_start:PrinterMsg.PrinterListMsg)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
_internal_mutable_printers()->Clear();
|
||
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
||
|
}
|
||
|
|
||
|
const char* PrinterListMsg::_InternalParse(
|
||
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
||
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
||
|
return ptr;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
||
|
const ::_pbi::TcParseTable<0, 1, 1, 0, 2> PrinterListMsg::_table_ = {
|
||
|
{
|
||
|
0, // no _has_bits_
|
||
|
0, // no _extensions_
|
||
|
1, 0, // max_field_number, fast_idx_mask
|
||
|
offsetof(decltype(_table_), field_lookup_table),
|
||
|
4294967294, // skipmap
|
||
|
offsetof(decltype(_table_), field_entries),
|
||
|
1, // num_field_entries
|
||
|
1, // num_aux_entries
|
||
|
offsetof(decltype(_table_), aux_entries),
|
||
|
&_PrinterListMsg_default_instance_._instance,
|
||
|
::_pbi::TcParser::GenericFallback, // fallback
|
||
|
}, {{
|
||
|
// repeated .MachineMsg printers = 1;
|
||
|
{::_pbi::TcParser::FastMtR1,
|
||
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(PrinterListMsg, _impl_.printers_)}},
|
||
|
}}, {{
|
||
|
65535, 65535
|
||
|
}}, {{
|
||
|
// repeated .MachineMsg printers = 1;
|
||
|
{PROTOBUF_FIELD_OFFSET(PrinterListMsg, _impl_.printers_), 0, 0,
|
||
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
}}, {{
|
||
|
{::_pbi::TcParser::GetTable<::MachineMsg>()},
|
||
|
}}, {{
|
||
|
}},
|
||
|
};
|
||
|
|
||
|
::uint8_t* PrinterListMsg::_InternalSerialize(
|
||
|
::uint8_t* target,
|
||
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
||
|
// @@protoc_insertion_point(serialize_to_array_start:PrinterMsg.PrinterListMsg)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void)cached_has_bits;
|
||
|
|
||
|
// repeated .MachineMsg printers = 1;
|
||
|
for (unsigned i = 0,
|
||
|
n = static_cast<unsigned>(this->_internal_printers_size()); i < n; i++) {
|
||
|
const auto& repfield = this->_internal_printers().Get(i);
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
|
||
|
}
|
||
|
|
||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||
|
target =
|
||
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||
|
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
|
||
|
}
|
||
|
// @@protoc_insertion_point(serialize_to_array_end:PrinterMsg.PrinterListMsg)
|
||
|
return target;
|
||
|
}
|
||
|
|
||
|
::size_t PrinterListMsg::ByteSizeLong() const {
|
||
|
// @@protoc_insertion_point(message_byte_size_start:PrinterMsg.PrinterListMsg)
|
||
|
::size_t total_size = 0;
|
||
|
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
// repeated .MachineMsg printers = 1;
|
||
|
total_size += 1UL * this->_internal_printers_size();
|
||
|
for (const auto& msg : this->_internal_printers()) {
|
||
|
total_size +=
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(msg);
|
||
|
}
|
||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||
|
}
|
||
|
|
||
|
const ::google::protobuf::Message::ClassData PrinterListMsg::_class_data_ = {
|
||
|
::google::protobuf::Message::CopyWithSourceCheck,
|
||
|
PrinterListMsg::MergeImpl
|
||
|
};
|
||
|
const ::google::protobuf::Message::ClassData*PrinterListMsg::GetClassData() const { return &_class_data_; }
|
||
|
|
||
|
|
||
|
void PrinterListMsg::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
||
|
auto* const _this = static_cast<PrinterListMsg*>(&to_msg);
|
||
|
auto& from = static_cast<const PrinterListMsg&>(from_msg);
|
||
|
// @@protoc_insertion_point(class_specific_merge_from_start:PrinterMsg.PrinterListMsg)
|
||
|
ABSL_DCHECK_NE(&from, _this);
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
_this->_internal_mutable_printers()->MergeFrom(from._internal_printers());
|
||
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
||
|
}
|
||
|
|
||
|
void PrinterListMsg::CopyFrom(const PrinterListMsg& from) {
|
||
|
// @@protoc_insertion_point(class_specific_copy_from_start:PrinterMsg.PrinterListMsg)
|
||
|
if (&from == this) return;
|
||
|
Clear();
|
||
|
MergeFrom(from);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE bool PrinterListMsg::IsInitialized() const {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void PrinterListMsg::InternalSwap(PrinterListMsg* other) {
|
||
|
using std::swap;
|
||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||
|
_impl_.printers_.InternalSwap(&other->_impl_.printers_);
|
||
|
}
|
||
|
|
||
|
::google::protobuf::Metadata PrinterListMsg::GetMetadata() const {
|
||
|
return ::_pbi::AssignDescriptors(
|
||
|
&descriptor_table_printers_2eproto_getter, &descriptor_table_printers_2eproto_once,
|
||
|
file_level_metadata_printers_2eproto[0]);
|
||
|
}
|
||
|
// ===================================================================
|
||
|
|
||
|
class Response::_Internal {
|
||
|
public:
|
||
|
static constexpr ::int32_t kOneofCaseOffset =
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Response, _impl_._oneof_case_);
|
||
|
static const ::ErrorMsg& errormsg(const Response* msg);
|
||
|
static const ::StateMsg& statemsg(const Response* msg);
|
||
|
static const ::JobMsg& jobmsg(const Response* msg);
|
||
|
static const ::PrinterMsg::PrinterListMsg& printerlist(const Response* msg);
|
||
|
static const ::LayerDataRespMsg& layerdatamsg(const Response* msg);
|
||
|
static const ::ResponseState& statemsgs(const Response* msg);
|
||
|
static const ::CameraDataMsg& cameradata(const Response* msg);
|
||
|
static const ::StateChangeMsg& statechangemsg(const Response* msg);
|
||
|
static const ::RecordTasksMsg& recordtasksmsg(const Response* msg);
|
||
|
static const ::RecordTasksListMsg& recordtasklistmsg(const Response* msg);
|
||
|
static const ::RemoteJobResMsg& remotejobresmsg(const Response* msg);
|
||
|
static const ::VersionInfoResMsg& versioninforesmsg(const Response* msg);
|
||
|
};
|
||
|
|
||
|
const ::ErrorMsg& Response::_Internal::errormsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.errormsg_;
|
||
|
}
|
||
|
const ::StateMsg& Response::_Internal::statemsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.statemsg_;
|
||
|
}
|
||
|
const ::JobMsg& Response::_Internal::jobmsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.jobmsg_;
|
||
|
}
|
||
|
const ::PrinterMsg::PrinterListMsg& Response::_Internal::printerlist(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.printerlist_;
|
||
|
}
|
||
|
const ::LayerDataRespMsg& Response::_Internal::layerdatamsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.layerdatamsg_;
|
||
|
}
|
||
|
const ::ResponseState& Response::_Internal::statemsgs(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.statemsgs_;
|
||
|
}
|
||
|
const ::CameraDataMsg& Response::_Internal::cameradata(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.cameradata_;
|
||
|
}
|
||
|
const ::StateChangeMsg& Response::_Internal::statechangemsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.statechangemsg_;
|
||
|
}
|
||
|
const ::RecordTasksMsg& Response::_Internal::recordtasksmsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.recordtasksmsg_;
|
||
|
}
|
||
|
const ::RecordTasksListMsg& Response::_Internal::recordtasklistmsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.recordtasklistmsg_;
|
||
|
}
|
||
|
const ::RemoteJobResMsg& Response::_Internal::remotejobresmsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.remotejobresmsg_;
|
||
|
}
|
||
|
const ::VersionInfoResMsg& Response::_Internal::versioninforesmsg(const Response* msg) {
|
||
|
return *msg->_impl_.resps_.versioninforesmsg_;
|
||
|
}
|
||
|
void Response::set_allocated_errormsg(::ErrorMsg* errormsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (errormsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(errormsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
errormsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, errormsg, submessage_arena);
|
||
|
}
|
||
|
set_has_errormsg();
|
||
|
_impl_.resps_.errormsg_ = errormsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.errorMsg)
|
||
|
}
|
||
|
void Response::clear_errormsg() {
|
||
|
if (resps_case() == kErrorMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.errormsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_statemsg(::StateMsg* statemsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (statemsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(statemsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
statemsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, statemsg, submessage_arena);
|
||
|
}
|
||
|
set_has_statemsg();
|
||
|
_impl_.resps_.statemsg_ = statemsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.stateMsg)
|
||
|
}
|
||
|
void Response::clear_statemsg() {
|
||
|
if (resps_case() == kStateMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statemsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_jobmsg(::JobMsg* jobmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (jobmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(jobmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
jobmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, jobmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_jobmsg();
|
||
|
_impl_.resps_.jobmsg_ = jobmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.jobMsg)
|
||
|
}
|
||
|
void Response::clear_jobmsg() {
|
||
|
if (resps_case() == kJobMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.jobmsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_printerlist(::PrinterMsg::PrinterListMsg* printerlist) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (printerlist) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(printerlist);
|
||
|
if (message_arena != submessage_arena) {
|
||
|
printerlist = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, printerlist, submessage_arena);
|
||
|
}
|
||
|
set_has_printerlist();
|
||
|
_impl_.resps_.printerlist_ = printerlist;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.printerList)
|
||
|
}
|
||
|
void Response::set_allocated_layerdatamsg(::LayerDataRespMsg* layerdatamsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (layerdatamsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(layerdatamsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
layerdatamsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, layerdatamsg, submessage_arena);
|
||
|
}
|
||
|
set_has_layerdatamsg();
|
||
|
_impl_.resps_.layerdatamsg_ = layerdatamsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.layerDataMsg)
|
||
|
}
|
||
|
void Response::clear_layerdatamsg() {
|
||
|
if (resps_case() == kLayerDataMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.layerdatamsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_statemsgs(::ResponseState* statemsgs) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (statemsgs) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(statemsgs));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
statemsgs = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, statemsgs, submessage_arena);
|
||
|
}
|
||
|
set_has_statemsgs();
|
||
|
_impl_.resps_.statemsgs_ = statemsgs;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.stateMsgs)
|
||
|
}
|
||
|
void Response::clear_statemsgs() {
|
||
|
if (resps_case() == kStateMsgs) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statemsgs_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_cameradata(::CameraDataMsg* cameradata) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (cameradata) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(cameradata));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
cameradata = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, cameradata, submessage_arena);
|
||
|
}
|
||
|
set_has_cameradata();
|
||
|
_impl_.resps_.cameradata_ = cameradata;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.cameraData)
|
||
|
}
|
||
|
void Response::clear_cameradata() {
|
||
|
if (resps_case() == kCameraData) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.cameradata_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_statechangemsg(::StateChangeMsg* statechangemsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (statechangemsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(statechangemsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
statechangemsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, statechangemsg, submessage_arena);
|
||
|
}
|
||
|
set_has_statechangemsg();
|
||
|
_impl_.resps_.statechangemsg_ = statechangemsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.stateChangeMsg)
|
||
|
}
|
||
|
void Response::clear_statechangemsg() {
|
||
|
if (resps_case() == kStateChangeMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statechangemsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_recordtasksmsg(::RecordTasksMsg* recordtasksmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (recordtasksmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(recordtasksmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
recordtasksmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, recordtasksmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_recordtasksmsg();
|
||
|
_impl_.resps_.recordtasksmsg_ = recordtasksmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.recordTasksMsg)
|
||
|
}
|
||
|
void Response::clear_recordtasksmsg() {
|
||
|
if (resps_case() == kRecordTasksMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.recordtasksmsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_recordtasklistmsg(::RecordTasksListMsg* recordtasklistmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (recordtasklistmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(recordtasklistmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
recordtasklistmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, recordtasklistmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_recordtasklistmsg();
|
||
|
_impl_.resps_.recordtasklistmsg_ = recordtasklistmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.recordTaskListMsg)
|
||
|
}
|
||
|
void Response::clear_recordtasklistmsg() {
|
||
|
if (resps_case() == kRecordTaskListMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.recordtasklistmsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_remotejobresmsg(::RemoteJobResMsg* remotejobresmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (remotejobresmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(remotejobresmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
remotejobresmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, remotejobresmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_remotejobresmsg();
|
||
|
_impl_.resps_.remotejobresmsg_ = remotejobresmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.remoteJobResMsg)
|
||
|
}
|
||
|
void Response::clear_remotejobresmsg() {
|
||
|
if (resps_case() == kRemoteJobResMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.remotejobresmsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::set_allocated_versioninforesmsg(::VersionInfoResMsg* versioninforesmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_resps();
|
||
|
if (versioninforesmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(versioninforesmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
versioninforesmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, versioninforesmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_versioninforesmsg();
|
||
|
_impl_.resps_.versioninforesmsg_ = versioninforesmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Response.versionInfoResMsg)
|
||
|
}
|
||
|
void Response::clear_versioninforesmsg() {
|
||
|
if (resps_case() == kVersionInfoResMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.versioninforesmsg_;
|
||
|
}
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
}
|
||
|
Response::Response(::google::protobuf::Arena* arena)
|
||
|
: ::google::protobuf::Message(arena) {
|
||
|
SharedCtor(arena);
|
||
|
// @@protoc_insertion_point(arena_constructor:PrinterMsg.Response)
|
||
|
}
|
||
|
Response::Response(const Response& from) : ::google::protobuf::Message() {
|
||
|
Response* const _this = this;
|
||
|
(void)_this;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.result_){},
|
||
|
decltype(_impl_.resps_){},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
};
|
||
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
||
|
from._internal_metadata_);
|
||
|
_this->_impl_.result_ = from._impl_.result_;
|
||
|
clear_has_resps();
|
||
|
switch (from.resps_case()) {
|
||
|
case kErrorMsg: {
|
||
|
_this->_internal_mutable_errormsg()->::ErrorMsg::MergeFrom(
|
||
|
from._internal_errormsg());
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsg: {
|
||
|
_this->_internal_mutable_statemsg()->::StateMsg::MergeFrom(
|
||
|
from._internal_statemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kJobMsg: {
|
||
|
_this->_internal_mutable_jobmsg()->::JobMsg::MergeFrom(
|
||
|
from._internal_jobmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kPrinterList: {
|
||
|
_this->_internal_mutable_printerlist()->::PrinterMsg::PrinterListMsg::MergeFrom(
|
||
|
from._internal_printerlist());
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
_this->_internal_mutable_layerdatamsg()->::LayerDataRespMsg::MergeFrom(
|
||
|
from._internal_layerdatamsg());
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsgs: {
|
||
|
_this->_internal_mutable_statemsgs()->::ResponseState::MergeFrom(
|
||
|
from._internal_statemsgs());
|
||
|
break;
|
||
|
}
|
||
|
case kCameraData: {
|
||
|
_this->_internal_mutable_cameradata()->::CameraDataMsg::MergeFrom(
|
||
|
from._internal_cameradata());
|
||
|
break;
|
||
|
}
|
||
|
case kStateChangeMsg: {
|
||
|
_this->_internal_mutable_statechangemsg()->::StateChangeMsg::MergeFrom(
|
||
|
from._internal_statechangemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTasksMsg: {
|
||
|
_this->_internal_mutable_recordtasksmsg()->::RecordTasksMsg::MergeFrom(
|
||
|
from._internal_recordtasksmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTaskListMsg: {
|
||
|
_this->_internal_mutable_recordtasklistmsg()->::RecordTasksListMsg::MergeFrom(
|
||
|
from._internal_recordtasklistmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRemoteJobResMsg: {
|
||
|
_this->_internal_mutable_remotejobresmsg()->::RemoteJobResMsg::MergeFrom(
|
||
|
from._internal_remotejobresmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kVersionInfoResMsg: {
|
||
|
_this->_internal_mutable_versioninforesmsg()->::VersionInfoResMsg::MergeFrom(
|
||
|
from._internal_versioninforesmsg());
|
||
|
break;
|
||
|
}
|
||
|
case RESPS_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @@protoc_insertion_point(copy_constructor:PrinterMsg.Response)
|
||
|
}
|
||
|
inline void Response::SharedCtor(::_pb::Arena* arena) {
|
||
|
(void)arena;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.result_){false},
|
||
|
decltype(_impl_.resps_){},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
};
|
||
|
clear_has_resps();
|
||
|
}
|
||
|
Response::~Response() {
|
||
|
// @@protoc_insertion_point(destructor:PrinterMsg.Response)
|
||
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
||
|
SharedDtor();
|
||
|
}
|
||
|
inline void Response::SharedDtor() {
|
||
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
||
|
if (has_resps()) {
|
||
|
clear_resps();
|
||
|
}
|
||
|
}
|
||
|
void Response::SetCachedSize(int size) const {
|
||
|
_impl_._cached_size_.Set(size);
|
||
|
}
|
||
|
|
||
|
void Response::clear_resps() {
|
||
|
// @@protoc_insertion_point(one_of_clear_start:PrinterMsg.Response)
|
||
|
switch (resps_case()) {
|
||
|
case kErrorMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.errormsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statemsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kJobMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.jobmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kPrinterList: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.printerlist_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.layerdatamsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsgs: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statemsgs_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kCameraData: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.cameradata_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kStateChangeMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.statechangemsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTasksMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.recordtasksmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTaskListMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.recordtasklistmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kRemoteJobResMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.remotejobresmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kVersionInfoResMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.resps_.versioninforesmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case RESPS_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
_impl_._oneof_case_[0] = RESPS_NOT_SET;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_NOINLINE void Response::Clear() {
|
||
|
// @@protoc_insertion_point(message_clear_start:PrinterMsg.Response)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
_impl_.result_ = false;
|
||
|
clear_resps();
|
||
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
||
|
}
|
||
|
|
||
|
const char* Response::_InternalParse(
|
||
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
||
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
||
|
return ptr;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
||
|
const ::_pbi::TcParseTable<0, 13, 12, 0, 2> Response::_table_ = {
|
||
|
{
|
||
|
0, // no _has_bits_
|
||
|
0, // no _extensions_
|
||
|
13, 0, // max_field_number, fast_idx_mask
|
||
|
offsetof(decltype(_table_), field_lookup_table),
|
||
|
4294959104, // skipmap
|
||
|
offsetof(decltype(_table_), field_entries),
|
||
|
13, // num_field_entries
|
||
|
12, // num_aux_entries
|
||
|
offsetof(decltype(_table_), aux_entries),
|
||
|
&_Response_default_instance_._instance,
|
||
|
::_pbi::TcParser::GenericFallback, // fallback
|
||
|
}, {{
|
||
|
// bool result = 1;
|
||
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Response, _impl_.result_), 63>(),
|
||
|
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.result_)}},
|
||
|
}}, {{
|
||
|
65535, 65535
|
||
|
}}, {{
|
||
|
// bool result = 1;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.result_), 0, 0,
|
||
|
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
|
||
|
// .ErrorMsg errorMsg = 2;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.errormsg_), _Internal::kOneofCaseOffset + 0, 0,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .StateMsg stateMsg = 3;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.statemsg_), _Internal::kOneofCaseOffset + 0, 1,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .JobMsg jobMsg = 4;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.jobmsg_), _Internal::kOneofCaseOffset + 0, 2,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .PrinterMsg.PrinterListMsg printerList = 5;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.printerlist_), _Internal::kOneofCaseOffset + 0, 3,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .LayerDataRespMsg layerDataMsg = 6;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.layerdatamsg_), _Internal::kOneofCaseOffset + 0, 4,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .ResponseState stateMsgs = 7;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.statemsgs_), _Internal::kOneofCaseOffset + 0, 5,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .CameraDataMsg cameraData = 8;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.cameradata_), _Internal::kOneofCaseOffset + 0, 6,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .StateChangeMsg stateChangeMsg = 9;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.statechangemsg_), _Internal::kOneofCaseOffset + 0, 7,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .RecordTasksMsg recordTasksMsg = 10;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.recordtasksmsg_), _Internal::kOneofCaseOffset + 0, 8,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .RecordTasksListMsg recordTaskListMsg = 11;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.recordtasklistmsg_), _Internal::kOneofCaseOffset + 0, 9,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .RemoteJobResMsg remoteJobResMsg = 12;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.remotejobresmsg_), _Internal::kOneofCaseOffset + 0, 10,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .VersionInfoResMsg versionInfoResMsg = 13;
|
||
|
{PROTOBUF_FIELD_OFFSET(Response, _impl_.resps_.versioninforesmsg_), _Internal::kOneofCaseOffset + 0, 11,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
}}, {{
|
||
|
{::_pbi::TcParser::GetTable<::ErrorMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::StateMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::JobMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::PrinterMsg::PrinterListMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::LayerDataRespMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::ResponseState>()},
|
||
|
{::_pbi::TcParser::GetTable<::CameraDataMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::StateChangeMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::RecordTasksMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::RecordTasksListMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::RemoteJobResMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::VersionInfoResMsg>()},
|
||
|
}}, {{
|
||
|
}},
|
||
|
};
|
||
|
|
||
|
::uint8_t* Response::_InternalSerialize(
|
||
|
::uint8_t* target,
|
||
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
||
|
// @@protoc_insertion_point(serialize_to_array_start:PrinterMsg.Response)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void)cached_has_bits;
|
||
|
|
||
|
// bool result = 1;
|
||
|
if (this->_internal_result() != 0) {
|
||
|
target = stream->EnsureSpace(target);
|
||
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(
|
||
|
1, this->_internal_result(), target);
|
||
|
}
|
||
|
|
||
|
switch (resps_case()) {
|
||
|
case kErrorMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(2, _Internal::errormsg(this),
|
||
|
_Internal::errormsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(3, _Internal::statemsg(this),
|
||
|
_Internal::statemsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kJobMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(4, _Internal::jobmsg(this),
|
||
|
_Internal::jobmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kPrinterList: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(5, _Internal::printerlist(this),
|
||
|
_Internal::printerlist(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(6, _Internal::layerdatamsg(this),
|
||
|
_Internal::layerdatamsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsgs: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(7, _Internal::statemsgs(this),
|
||
|
_Internal::statemsgs(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kCameraData: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(8, _Internal::cameradata(this),
|
||
|
_Internal::cameradata(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kStateChangeMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(9, _Internal::statechangemsg(this),
|
||
|
_Internal::statechangemsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTasksMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(10, _Internal::recordtasksmsg(this),
|
||
|
_Internal::recordtasksmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTaskListMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(11, _Internal::recordtasklistmsg(this),
|
||
|
_Internal::recordtasklistmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kRemoteJobResMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(12, _Internal::remotejobresmsg(this),
|
||
|
_Internal::remotejobresmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kVersionInfoResMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(13, _Internal::versioninforesmsg(this),
|
||
|
_Internal::versioninforesmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||
|
target =
|
||
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||
|
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
|
||
|
}
|
||
|
// @@protoc_insertion_point(serialize_to_array_end:PrinterMsg.Response)
|
||
|
return target;
|
||
|
}
|
||
|
|
||
|
::size_t Response::ByteSizeLong() const {
|
||
|
// @@protoc_insertion_point(message_byte_size_start:PrinterMsg.Response)
|
||
|
::size_t total_size = 0;
|
||
|
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
// bool result = 1;
|
||
|
if (this->_internal_result() != 0) {
|
||
|
total_size += 2;
|
||
|
}
|
||
|
|
||
|
switch (resps_case()) {
|
||
|
// .ErrorMsg errorMsg = 2;
|
||
|
case kErrorMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.errormsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .StateMsg stateMsg = 3;
|
||
|
case kStateMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.statemsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .JobMsg jobMsg = 4;
|
||
|
case kJobMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.jobmsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .PrinterMsg.PrinterListMsg printerList = 5;
|
||
|
case kPrinterList: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.printerlist_);
|
||
|
break;
|
||
|
}
|
||
|
// .LayerDataRespMsg layerDataMsg = 6;
|
||
|
case kLayerDataMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.layerdatamsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .ResponseState stateMsgs = 7;
|
||
|
case kStateMsgs: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.statemsgs_);
|
||
|
break;
|
||
|
}
|
||
|
// .CameraDataMsg cameraData = 8;
|
||
|
case kCameraData: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.cameradata_);
|
||
|
break;
|
||
|
}
|
||
|
// .StateChangeMsg stateChangeMsg = 9;
|
||
|
case kStateChangeMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.statechangemsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .RecordTasksMsg recordTasksMsg = 10;
|
||
|
case kRecordTasksMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.recordtasksmsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .RecordTasksListMsg recordTaskListMsg = 11;
|
||
|
case kRecordTaskListMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.recordtasklistmsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .RemoteJobResMsg remoteJobResMsg = 12;
|
||
|
case kRemoteJobResMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.remotejobresmsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .VersionInfoResMsg versionInfoResMsg = 13;
|
||
|
case kVersionInfoResMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.resps_.versioninforesmsg_);
|
||
|
break;
|
||
|
}
|
||
|
case RESPS_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||
|
}
|
||
|
|
||
|
const ::google::protobuf::Message::ClassData Response::_class_data_ = {
|
||
|
::google::protobuf::Message::CopyWithSourceCheck,
|
||
|
Response::MergeImpl
|
||
|
};
|
||
|
const ::google::protobuf::Message::ClassData*Response::GetClassData() const { return &_class_data_; }
|
||
|
|
||
|
|
||
|
void Response::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
||
|
auto* const _this = static_cast<Response*>(&to_msg);
|
||
|
auto& from = static_cast<const Response&>(from_msg);
|
||
|
// @@protoc_insertion_point(class_specific_merge_from_start:PrinterMsg.Response)
|
||
|
ABSL_DCHECK_NE(&from, _this);
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
if (from._internal_result() != 0) {
|
||
|
_this->_internal_set_result(from._internal_result());
|
||
|
}
|
||
|
switch (from.resps_case()) {
|
||
|
case kErrorMsg: {
|
||
|
_this->_internal_mutable_errormsg()->::ErrorMsg::MergeFrom(
|
||
|
from._internal_errormsg());
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsg: {
|
||
|
_this->_internal_mutable_statemsg()->::StateMsg::MergeFrom(
|
||
|
from._internal_statemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kJobMsg: {
|
||
|
_this->_internal_mutable_jobmsg()->::JobMsg::MergeFrom(
|
||
|
from._internal_jobmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kPrinterList: {
|
||
|
_this->_internal_mutable_printerlist()->::PrinterMsg::PrinterListMsg::MergeFrom(
|
||
|
from._internal_printerlist());
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
_this->_internal_mutable_layerdatamsg()->::LayerDataRespMsg::MergeFrom(
|
||
|
from._internal_layerdatamsg());
|
||
|
break;
|
||
|
}
|
||
|
case kStateMsgs: {
|
||
|
_this->_internal_mutable_statemsgs()->::ResponseState::MergeFrom(
|
||
|
from._internal_statemsgs());
|
||
|
break;
|
||
|
}
|
||
|
case kCameraData: {
|
||
|
_this->_internal_mutable_cameradata()->::CameraDataMsg::MergeFrom(
|
||
|
from._internal_cameradata());
|
||
|
break;
|
||
|
}
|
||
|
case kStateChangeMsg: {
|
||
|
_this->_internal_mutable_statechangemsg()->::StateChangeMsg::MergeFrom(
|
||
|
from._internal_statechangemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTasksMsg: {
|
||
|
_this->_internal_mutable_recordtasksmsg()->::RecordTasksMsg::MergeFrom(
|
||
|
from._internal_recordtasksmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRecordTaskListMsg: {
|
||
|
_this->_internal_mutable_recordtasklistmsg()->::RecordTasksListMsg::MergeFrom(
|
||
|
from._internal_recordtasklistmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kRemoteJobResMsg: {
|
||
|
_this->_internal_mutable_remotejobresmsg()->::RemoteJobResMsg::MergeFrom(
|
||
|
from._internal_remotejobresmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kVersionInfoResMsg: {
|
||
|
_this->_internal_mutable_versioninforesmsg()->::VersionInfoResMsg::MergeFrom(
|
||
|
from._internal_versioninforesmsg());
|
||
|
break;
|
||
|
}
|
||
|
case RESPS_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
||
|
}
|
||
|
|
||
|
void Response::CopyFrom(const Response& from) {
|
||
|
// @@protoc_insertion_point(class_specific_copy_from_start:PrinterMsg.Response)
|
||
|
if (&from == this) return;
|
||
|
Clear();
|
||
|
MergeFrom(from);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE bool Response::IsInitialized() const {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void Response::InternalSwap(Response* other) {
|
||
|
using std::swap;
|
||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||
|
swap(_impl_.result_, other->_impl_.result_);
|
||
|
swap(_impl_.resps_, other->_impl_.resps_);
|
||
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
||
|
}
|
||
|
|
||
|
::google::protobuf::Metadata Response::GetMetadata() const {
|
||
|
return ::_pbi::AssignDescriptors(
|
||
|
&descriptor_table_printers_2eproto_getter, &descriptor_table_printers_2eproto_once,
|
||
|
file_level_metadata_printers_2eproto[1]);
|
||
|
}
|
||
|
// ===================================================================
|
||
|
|
||
|
class Request::_Internal {
|
||
|
public:
|
||
|
static constexpr ::int32_t kOneofCaseOffset =
|
||
|
PROTOBUF_FIELD_OFFSET(::PrinterMsg::Request, _impl_._oneof_case_);
|
||
|
static const ::MachineMsg& machinemsg(const Request* msg);
|
||
|
static const ::LayerDataReqMsg& layerdatamsg(const Request* msg);
|
||
|
static const ::AlarmNotifyMsg& alarmnotifymsg(const Request* msg);
|
||
|
static const ::ReqRecordTaskMsg& reqrecordtaskmsg(const Request* msg);
|
||
|
static const ::ReqRecordTaskListMsg& reqrecordtasklistmsg(const Request* msg);
|
||
|
};
|
||
|
|
||
|
const ::MachineMsg& Request::_Internal::machinemsg(const Request* msg) {
|
||
|
return *msg->_impl_.oneof_req_.machinemsg_;
|
||
|
}
|
||
|
const ::LayerDataReqMsg& Request::_Internal::layerdatamsg(const Request* msg) {
|
||
|
return *msg->_impl_.oneof_req_.layerdatamsg_;
|
||
|
}
|
||
|
const ::AlarmNotifyMsg& Request::_Internal::alarmnotifymsg(const Request* msg) {
|
||
|
return *msg->_impl_.oneof_req_.alarmnotifymsg_;
|
||
|
}
|
||
|
const ::ReqRecordTaskMsg& Request::_Internal::reqrecordtaskmsg(const Request* msg) {
|
||
|
return *msg->_impl_.oneof_req_.reqrecordtaskmsg_;
|
||
|
}
|
||
|
const ::ReqRecordTaskListMsg& Request::_Internal::reqrecordtasklistmsg(const Request* msg) {
|
||
|
return *msg->_impl_.oneof_req_.reqrecordtasklistmsg_;
|
||
|
}
|
||
|
void Request::set_allocated_machinemsg(::MachineMsg* machinemsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_oneof_req();
|
||
|
if (machinemsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(machinemsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
machinemsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, machinemsg, submessage_arena);
|
||
|
}
|
||
|
set_has_machinemsg();
|
||
|
_impl_.oneof_req_.machinemsg_ = machinemsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Request.machineMsg)
|
||
|
}
|
||
|
void Request::clear_machinemsg() {
|
||
|
if (oneof_req_case() == kMachineMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.machinemsg_;
|
||
|
}
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
void Request::set_allocated_layerdatamsg(::LayerDataReqMsg* layerdatamsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_oneof_req();
|
||
|
if (layerdatamsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(layerdatamsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
layerdatamsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, layerdatamsg, submessage_arena);
|
||
|
}
|
||
|
set_has_layerdatamsg();
|
||
|
_impl_.oneof_req_.layerdatamsg_ = layerdatamsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Request.layerDataMsg)
|
||
|
}
|
||
|
void Request::clear_layerdatamsg() {
|
||
|
if (oneof_req_case() == kLayerDataMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.layerdatamsg_;
|
||
|
}
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
void Request::set_allocated_alarmnotifymsg(::AlarmNotifyMsg* alarmnotifymsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_oneof_req();
|
||
|
if (alarmnotifymsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(alarmnotifymsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
alarmnotifymsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, alarmnotifymsg, submessage_arena);
|
||
|
}
|
||
|
set_has_alarmnotifymsg();
|
||
|
_impl_.oneof_req_.alarmnotifymsg_ = alarmnotifymsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Request.alarmNotifyMsg)
|
||
|
}
|
||
|
void Request::clear_alarmnotifymsg() {
|
||
|
if (oneof_req_case() == kAlarmNotifyMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.alarmnotifymsg_;
|
||
|
}
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
void Request::set_allocated_reqrecordtaskmsg(::ReqRecordTaskMsg* reqrecordtaskmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_oneof_req();
|
||
|
if (reqrecordtaskmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(reqrecordtaskmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
reqrecordtaskmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, reqrecordtaskmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_reqrecordtaskmsg();
|
||
|
_impl_.oneof_req_.reqrecordtaskmsg_ = reqrecordtaskmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Request.reqRecordTaskMsg)
|
||
|
}
|
||
|
void Request::clear_reqrecordtaskmsg() {
|
||
|
if (oneof_req_case() == kReqRecordTaskMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.reqrecordtaskmsg_;
|
||
|
}
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
void Request::set_allocated_reqrecordtasklistmsg(::ReqRecordTaskListMsg* reqrecordtasklistmsg) {
|
||
|
::google::protobuf::Arena* message_arena = GetArenaForAllocation();
|
||
|
clear_oneof_req();
|
||
|
if (reqrecordtasklistmsg) {
|
||
|
::google::protobuf::Arena* submessage_arena =
|
||
|
::google::protobuf::Arena::InternalGetOwningArena(
|
||
|
reinterpret_cast<::google::protobuf::MessageLite*>(reqrecordtasklistmsg));
|
||
|
if (message_arena != submessage_arena) {
|
||
|
reqrecordtasklistmsg = ::google::protobuf::internal::GetOwnedMessage(
|
||
|
message_arena, reqrecordtasklistmsg, submessage_arena);
|
||
|
}
|
||
|
set_has_reqrecordtasklistmsg();
|
||
|
_impl_.oneof_req_.reqrecordtasklistmsg_ = reqrecordtasklistmsg;
|
||
|
}
|
||
|
// @@protoc_insertion_point(field_set_allocated:PrinterMsg.Request.reqRecordTaskListMsg)
|
||
|
}
|
||
|
void Request::clear_reqrecordtasklistmsg() {
|
||
|
if (oneof_req_case() == kReqRecordTaskListMsg) {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.reqrecordtasklistmsg_;
|
||
|
}
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
Request::Request(::google::protobuf::Arena* arena)
|
||
|
: ::google::protobuf::Message(arena) {
|
||
|
SharedCtor(arena);
|
||
|
// @@protoc_insertion_point(arena_constructor:PrinterMsg.Request)
|
||
|
}
|
||
|
Request::Request(const Request& from) : ::google::protobuf::Message() {
|
||
|
Request* const _this = this;
|
||
|
(void)_this;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.oneof_req_){},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
};
|
||
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
||
|
from._internal_metadata_);
|
||
|
clear_has_oneof_req();
|
||
|
switch (from.oneof_req_case()) {
|
||
|
case kMachineMsg: {
|
||
|
_this->_internal_mutable_machinemsg()->::MachineMsg::MergeFrom(
|
||
|
from._internal_machinemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
_this->_internal_mutable_layerdatamsg()->::LayerDataReqMsg::MergeFrom(
|
||
|
from._internal_layerdatamsg());
|
||
|
break;
|
||
|
}
|
||
|
case kAlarmNotifyMsg: {
|
||
|
_this->_internal_mutable_alarmnotifymsg()->::AlarmNotifyMsg::MergeFrom(
|
||
|
from._internal_alarmnotifymsg());
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskMsg: {
|
||
|
_this->_internal_mutable_reqrecordtaskmsg()->::ReqRecordTaskMsg::MergeFrom(
|
||
|
from._internal_reqrecordtaskmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskListMsg: {
|
||
|
_this->_internal_mutable_reqrecordtasklistmsg()->::ReqRecordTaskListMsg::MergeFrom(
|
||
|
from._internal_reqrecordtasklistmsg());
|
||
|
break;
|
||
|
}
|
||
|
case ONEOF_REQ_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// @@protoc_insertion_point(copy_constructor:PrinterMsg.Request)
|
||
|
}
|
||
|
inline void Request::SharedCtor(::_pb::Arena* arena) {
|
||
|
(void)arena;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_.oneof_req_){},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
/*decltype(_impl_._oneof_case_)*/ {},
|
||
|
};
|
||
|
clear_has_oneof_req();
|
||
|
}
|
||
|
Request::~Request() {
|
||
|
// @@protoc_insertion_point(destructor:PrinterMsg.Request)
|
||
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
||
|
SharedDtor();
|
||
|
}
|
||
|
inline void Request::SharedDtor() {
|
||
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
||
|
if (has_oneof_req()) {
|
||
|
clear_oneof_req();
|
||
|
}
|
||
|
}
|
||
|
void Request::SetCachedSize(int size) const {
|
||
|
_impl_._cached_size_.Set(size);
|
||
|
}
|
||
|
|
||
|
void Request::clear_oneof_req() {
|
||
|
// @@protoc_insertion_point(one_of_clear_start:PrinterMsg.Request)
|
||
|
switch (oneof_req_case()) {
|
||
|
case kMachineMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.machinemsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.layerdatamsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kAlarmNotifyMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.alarmnotifymsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.reqrecordtaskmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskListMsg: {
|
||
|
if (GetArenaForAllocation() == nullptr) {
|
||
|
delete _impl_.oneof_req_.reqrecordtasklistmsg_;
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
case ONEOF_REQ_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
_impl_._oneof_case_[0] = ONEOF_REQ_NOT_SET;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_NOINLINE void Request::Clear() {
|
||
|
// @@protoc_insertion_point(message_clear_start:PrinterMsg.Request)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
clear_oneof_req();
|
||
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
||
|
}
|
||
|
|
||
|
const char* Request::_InternalParse(
|
||
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
||
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
||
|
return ptr;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
||
|
const ::_pbi::TcParseTable<0, 5, 5, 0, 2> Request::_table_ = {
|
||
|
{
|
||
|
0, // no _has_bits_
|
||
|
0, // no _extensions_
|
||
|
5, 0, // max_field_number, fast_idx_mask
|
||
|
offsetof(decltype(_table_), field_lookup_table),
|
||
|
4294967264, // skipmap
|
||
|
offsetof(decltype(_table_), field_entries),
|
||
|
5, // num_field_entries
|
||
|
5, // num_aux_entries
|
||
|
offsetof(decltype(_table_), aux_entries),
|
||
|
&_Request_default_instance_._instance,
|
||
|
::_pbi::TcParser::GenericFallback, // fallback
|
||
|
}, {{
|
||
|
{::_pbi::TcParser::MiniParse, {}},
|
||
|
}}, {{
|
||
|
65535, 65535
|
||
|
}}, {{
|
||
|
// .MachineMsg machineMsg = 1;
|
||
|
{PROTOBUF_FIELD_OFFSET(Request, _impl_.oneof_req_.machinemsg_), _Internal::kOneofCaseOffset + 0, 0,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .LayerDataReqMsg layerDataMsg = 2;
|
||
|
{PROTOBUF_FIELD_OFFSET(Request, _impl_.oneof_req_.layerdatamsg_), _Internal::kOneofCaseOffset + 0, 1,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .AlarmNotifyMsg alarmNotifyMsg = 3;
|
||
|
{PROTOBUF_FIELD_OFFSET(Request, _impl_.oneof_req_.alarmnotifymsg_), _Internal::kOneofCaseOffset + 0, 2,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .ReqRecordTaskMsg reqRecordTaskMsg = 4;
|
||
|
{PROTOBUF_FIELD_OFFSET(Request, _impl_.oneof_req_.reqrecordtaskmsg_), _Internal::kOneofCaseOffset + 0, 3,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .ReqRecordTaskListMsg reqRecordTaskListMsg = 5;
|
||
|
{PROTOBUF_FIELD_OFFSET(Request, _impl_.oneof_req_.reqrecordtasklistmsg_), _Internal::kOneofCaseOffset + 0, 4,
|
||
|
(0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
}}, {{
|
||
|
{::_pbi::TcParser::GetTable<::MachineMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::LayerDataReqMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::AlarmNotifyMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::ReqRecordTaskMsg>()},
|
||
|
{::_pbi::TcParser::GetTable<::ReqRecordTaskListMsg>()},
|
||
|
}}, {{
|
||
|
}},
|
||
|
};
|
||
|
|
||
|
::uint8_t* Request::_InternalSerialize(
|
||
|
::uint8_t* target,
|
||
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
||
|
// @@protoc_insertion_point(serialize_to_array_start:PrinterMsg.Request)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void)cached_has_bits;
|
||
|
|
||
|
switch (oneof_req_case()) {
|
||
|
case kMachineMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(1, _Internal::machinemsg(this),
|
||
|
_Internal::machinemsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(2, _Internal::layerdatamsg(this),
|
||
|
_Internal::layerdatamsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kAlarmNotifyMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(3, _Internal::alarmnotifymsg(this),
|
||
|
_Internal::alarmnotifymsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(4, _Internal::reqrecordtaskmsg(this),
|
||
|
_Internal::reqrecordtaskmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskListMsg: {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(5, _Internal::reqrecordtasklistmsg(this),
|
||
|
_Internal::reqrecordtasklistmsg(this).GetCachedSize(), target, stream);
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||
|
target =
|
||
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||
|
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
|
||
|
}
|
||
|
// @@protoc_insertion_point(serialize_to_array_end:PrinterMsg.Request)
|
||
|
return target;
|
||
|
}
|
||
|
|
||
|
::size_t Request::ByteSizeLong() const {
|
||
|
// @@protoc_insertion_point(message_byte_size_start:PrinterMsg.Request)
|
||
|
::size_t total_size = 0;
|
||
|
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
switch (oneof_req_case()) {
|
||
|
// .MachineMsg machineMsg = 1;
|
||
|
case kMachineMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.oneof_req_.machinemsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .LayerDataReqMsg layerDataMsg = 2;
|
||
|
case kLayerDataMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.oneof_req_.layerdatamsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .AlarmNotifyMsg alarmNotifyMsg = 3;
|
||
|
case kAlarmNotifyMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.oneof_req_.alarmnotifymsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .ReqRecordTaskMsg reqRecordTaskMsg = 4;
|
||
|
case kReqRecordTaskMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.oneof_req_.reqrecordtaskmsg_);
|
||
|
break;
|
||
|
}
|
||
|
// .ReqRecordTaskListMsg reqRecordTaskListMsg = 5;
|
||
|
case kReqRecordTaskListMsg: {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.oneof_req_.reqrecordtasklistmsg_);
|
||
|
break;
|
||
|
}
|
||
|
case ONEOF_REQ_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||
|
}
|
||
|
|
||
|
const ::google::protobuf::Message::ClassData Request::_class_data_ = {
|
||
|
::google::protobuf::Message::CopyWithSourceCheck,
|
||
|
Request::MergeImpl
|
||
|
};
|
||
|
const ::google::protobuf::Message::ClassData*Request::GetClassData() const { return &_class_data_; }
|
||
|
|
||
|
|
||
|
void Request::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
||
|
auto* const _this = static_cast<Request*>(&to_msg);
|
||
|
auto& from = static_cast<const Request&>(from_msg);
|
||
|
// @@protoc_insertion_point(class_specific_merge_from_start:PrinterMsg.Request)
|
||
|
ABSL_DCHECK_NE(&from, _this);
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
switch (from.oneof_req_case()) {
|
||
|
case kMachineMsg: {
|
||
|
_this->_internal_mutable_machinemsg()->::MachineMsg::MergeFrom(
|
||
|
from._internal_machinemsg());
|
||
|
break;
|
||
|
}
|
||
|
case kLayerDataMsg: {
|
||
|
_this->_internal_mutable_layerdatamsg()->::LayerDataReqMsg::MergeFrom(
|
||
|
from._internal_layerdatamsg());
|
||
|
break;
|
||
|
}
|
||
|
case kAlarmNotifyMsg: {
|
||
|
_this->_internal_mutable_alarmnotifymsg()->::AlarmNotifyMsg::MergeFrom(
|
||
|
from._internal_alarmnotifymsg());
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskMsg: {
|
||
|
_this->_internal_mutable_reqrecordtaskmsg()->::ReqRecordTaskMsg::MergeFrom(
|
||
|
from._internal_reqrecordtaskmsg());
|
||
|
break;
|
||
|
}
|
||
|
case kReqRecordTaskListMsg: {
|
||
|
_this->_internal_mutable_reqrecordtasklistmsg()->::ReqRecordTaskListMsg::MergeFrom(
|
||
|
from._internal_reqrecordtasklistmsg());
|
||
|
break;
|
||
|
}
|
||
|
case ONEOF_REQ_NOT_SET: {
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
||
|
}
|
||
|
|
||
|
void Request::CopyFrom(const Request& from) {
|
||
|
// @@protoc_insertion_point(class_specific_copy_from_start:PrinterMsg.Request)
|
||
|
if (&from == this) return;
|
||
|
Clear();
|
||
|
MergeFrom(from);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE bool Request::IsInitialized() const {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void Request::InternalSwap(Request* other) {
|
||
|
using std::swap;
|
||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||
|
swap(_impl_.oneof_req_, other->_impl_.oneof_req_);
|
||
|
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
||
|
}
|
||
|
|
||
|
::google::protobuf::Metadata Request::GetMetadata() const {
|
||
|
return ::_pbi::AssignDescriptors(
|
||
|
&descriptor_table_printers_2eproto_getter, &descriptor_table_printers_2eproto_once,
|
||
|
file_level_metadata_printers_2eproto[2]);
|
||
|
}
|
||
|
// ===================================================================
|
||
|
|
||
|
class HMessage::_Internal {
|
||
|
public:
|
||
|
using HasBits = decltype(std::declval<HMessage>()._impl_._has_bits_);
|
||
|
static constexpr ::int32_t kHasBitsOffset =
|
||
|
8 * PROTOBUF_FIELD_OFFSET(HMessage, _impl_._has_bits_);
|
||
|
static const ::PrinterMsg::Request& request(const HMessage* msg);
|
||
|
static void set_has_request(HasBits* has_bits) {
|
||
|
(*has_bits)[0] |= 1u;
|
||
|
}
|
||
|
static const ::PrinterMsg::Response& response(const HMessage* msg);
|
||
|
static void set_has_response(HasBits* has_bits) {
|
||
|
(*has_bits)[0] |= 2u;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
const ::PrinterMsg::Request& HMessage::_Internal::request(const HMessage* msg) {
|
||
|
return *msg->_impl_.request_;
|
||
|
}
|
||
|
const ::PrinterMsg::Response& HMessage::_Internal::response(const HMessage* msg) {
|
||
|
return *msg->_impl_.response_;
|
||
|
}
|
||
|
HMessage::HMessage(::google::protobuf::Arena* arena)
|
||
|
: ::google::protobuf::Message(arena) {
|
||
|
SharedCtor(arena);
|
||
|
// @@protoc_insertion_point(arena_constructor:PrinterMsg.HMessage)
|
||
|
}
|
||
|
HMessage::HMessage(const HMessage& from) : ::google::protobuf::Message() {
|
||
|
HMessage* const _this = this;
|
||
|
(void)_this;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_._has_bits_){from._impl_._has_bits_},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
decltype(_impl_.id_){},
|
||
|
decltype(_impl_.mcode_){},
|
||
|
decltype(_impl_.request_){nullptr},
|
||
|
decltype(_impl_.response_){nullptr},
|
||
|
decltype(_impl_.sendtime_){},
|
||
|
decltype(_impl_.type_){},
|
||
|
};
|
||
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
|
||
|
from._internal_metadata_);
|
||
|
_impl_.id_.InitDefault();
|
||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
_impl_.id_.Set("", GetArenaForAllocation());
|
||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
if (!from._internal_id().empty()) {
|
||
|
_this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
|
||
|
}
|
||
|
_impl_.mcode_.InitDefault();
|
||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
_impl_.mcode_.Set("", GetArenaForAllocation());
|
||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
if (!from._internal_mcode().empty()) {
|
||
|
_this->_impl_.mcode_.Set(from._internal_mcode(), _this->GetArenaForAllocation());
|
||
|
}
|
||
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
||
|
_this->_impl_.request_ = new ::PrinterMsg::Request(*from._impl_.request_);
|
||
|
}
|
||
|
if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
|
||
|
_this->_impl_.response_ = new ::PrinterMsg::Response(*from._impl_.response_);
|
||
|
}
|
||
|
::memcpy(&_impl_.sendtime_, &from._impl_.sendtime_,
|
||
|
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.type_) -
|
||
|
reinterpret_cast<char*>(&_impl_.sendtime_)) + sizeof(_impl_.type_));
|
||
|
|
||
|
// @@protoc_insertion_point(copy_constructor:PrinterMsg.HMessage)
|
||
|
}
|
||
|
inline void HMessage::SharedCtor(::_pb::Arena* arena) {
|
||
|
(void)arena;
|
||
|
new (&_impl_) Impl_{
|
||
|
decltype(_impl_._has_bits_){},
|
||
|
/*decltype(_impl_._cached_size_)*/ {},
|
||
|
decltype(_impl_.id_){},
|
||
|
decltype(_impl_.mcode_){},
|
||
|
decltype(_impl_.request_){nullptr},
|
||
|
decltype(_impl_.response_){nullptr},
|
||
|
decltype(_impl_.sendtime_){::uint64_t{0u}},
|
||
|
decltype(_impl_.type_){0},
|
||
|
};
|
||
|
_impl_.id_.InitDefault();
|
||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
_impl_.id_.Set("", GetArenaForAllocation());
|
||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
_impl_.mcode_.InitDefault();
|
||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
_impl_.mcode_.Set("", GetArenaForAllocation());
|
||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||
|
}
|
||
|
HMessage::~HMessage() {
|
||
|
// @@protoc_insertion_point(destructor:PrinterMsg.HMessage)
|
||
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
||
|
SharedDtor();
|
||
|
}
|
||
|
inline void HMessage::SharedDtor() {
|
||
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
||
|
_impl_.id_.Destroy();
|
||
|
_impl_.mcode_.Destroy();
|
||
|
if (this != internal_default_instance()) delete _impl_.request_;
|
||
|
if (this != internal_default_instance()) delete _impl_.response_;
|
||
|
}
|
||
|
void HMessage::SetCachedSize(int size) const {
|
||
|
_impl_._cached_size_.Set(size);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE void HMessage::Clear() {
|
||
|
// @@protoc_insertion_point(message_clear_start:PrinterMsg.HMessage)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
_impl_.id_.ClearToEmpty();
|
||
|
_impl_.mcode_.ClearToEmpty();
|
||
|
cached_has_bits = _impl_._has_bits_[0];
|
||
|
if (cached_has_bits & 0x00000003u) {
|
||
|
if (cached_has_bits & 0x00000001u) {
|
||
|
ABSL_DCHECK(_impl_.request_ != nullptr);
|
||
|
_impl_.request_->Clear();
|
||
|
}
|
||
|
if (cached_has_bits & 0x00000002u) {
|
||
|
ABSL_DCHECK(_impl_.response_ != nullptr);
|
||
|
_impl_.response_->Clear();
|
||
|
}
|
||
|
}
|
||
|
::memset(&_impl_.sendtime_, 0, static_cast<::size_t>(
|
||
|
reinterpret_cast<char*>(&_impl_.type_) -
|
||
|
reinterpret_cast<char*>(&_impl_.sendtime_)) + sizeof(_impl_.type_));
|
||
|
_impl_._has_bits_.Clear();
|
||
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
|
||
|
}
|
||
|
|
||
|
const char* HMessage::_InternalParse(
|
||
|
const char* ptr, ::_pbi::ParseContext* ctx) {
|
||
|
ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
|
||
|
return ptr;
|
||
|
}
|
||
|
|
||
|
|
||
|
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
|
||
|
const ::_pbi::TcParseTable<3, 6, 2, 35, 2> HMessage::_table_ = {
|
||
|
{
|
||
|
PROTOBUF_FIELD_OFFSET(HMessage, _impl_._has_bits_),
|
||
|
0, // no _extensions_
|
||
|
6, 56, // max_field_number, fast_idx_mask
|
||
|
offsetof(decltype(_table_), field_lookup_table),
|
||
|
4294967232, // skipmap
|
||
|
offsetof(decltype(_table_), field_entries),
|
||
|
6, // num_field_entries
|
||
|
2, // num_aux_entries
|
||
|
offsetof(decltype(_table_), aux_entries),
|
||
|
&_HMessage_default_instance_._instance,
|
||
|
::_pbi::TcParser::GenericFallback, // fallback
|
||
|
}, {{
|
||
|
{::_pbi::TcParser::MiniParse, {}},
|
||
|
// .PrinterMsg.MSG type = 1;
|
||
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(HMessage, _impl_.type_), 63>(),
|
||
|
{8, 63, 0, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.type_)}},
|
||
|
// string id = 2;
|
||
|
{::_pbi::TcParser::FastUS1,
|
||
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.id_)}},
|
||
|
// string mcode = 3;
|
||
|
{::_pbi::TcParser::FastUS1,
|
||
|
{26, 63, 0, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.mcode_)}},
|
||
|
// .PrinterMsg.Request request = 4;
|
||
|
{::_pbi::TcParser::FastMtS1,
|
||
|
{34, 0, 0, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.request_)}},
|
||
|
// .PrinterMsg.Response response = 5;
|
||
|
{::_pbi::TcParser::FastMtS1,
|
||
|
{42, 1, 1, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.response_)}},
|
||
|
// uint64 sendTime = 6;
|
||
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HMessage, _impl_.sendtime_), 63>(),
|
||
|
{48, 63, 0, PROTOBUF_FIELD_OFFSET(HMessage, _impl_.sendtime_)}},
|
||
|
{::_pbi::TcParser::MiniParse, {}},
|
||
|
}}, {{
|
||
|
65535, 65535
|
||
|
}}, {{
|
||
|
// .PrinterMsg.MSG type = 1;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.type_), -1, 0,
|
||
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
|
||
|
// string id = 2;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.id_), -1, 0,
|
||
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
|
||
|
// string mcode = 3;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.mcode_), -1, 0,
|
||
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
|
||
|
// .PrinterMsg.Request request = 4;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.request_), _Internal::kHasBitsOffset + 0, 0,
|
||
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// .PrinterMsg.Response response = 5;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.response_), _Internal::kHasBitsOffset + 1, 1,
|
||
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
|
||
|
// uint64 sendTime = 6;
|
||
|
{PROTOBUF_FIELD_OFFSET(HMessage, _impl_.sendtime_), -1, 0,
|
||
|
(0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
|
||
|
}}, {{
|
||
|
{::_pbi::TcParser::GetTable<::PrinterMsg::Request>()},
|
||
|
{::_pbi::TcParser::GetTable<::PrinterMsg::Response>()},
|
||
|
}}, {{
|
||
|
"\23\0\2\5\0\0\0\0"
|
||
|
"PrinterMsg.HMessage"
|
||
|
"id"
|
||
|
"mcode"
|
||
|
}},
|
||
|
};
|
||
|
|
||
|
::uint8_t* HMessage::_InternalSerialize(
|
||
|
::uint8_t* target,
|
||
|
::google::protobuf::io::EpsCopyOutputStream* stream) const {
|
||
|
// @@protoc_insertion_point(serialize_to_array_start:PrinterMsg.HMessage)
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void)cached_has_bits;
|
||
|
|
||
|
// .PrinterMsg.MSG type = 1;
|
||
|
if (this->_internal_type() != 0) {
|
||
|
target = stream->EnsureSpace(target);
|
||
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
||
|
1, this->_internal_type(), target);
|
||
|
}
|
||
|
|
||
|
// string id = 2;
|
||
|
if (!this->_internal_id().empty()) {
|
||
|
const std::string& _s = this->_internal_id();
|
||
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "PrinterMsg.HMessage.id");
|
||
|
target = stream->WriteStringMaybeAliased(2, _s, target);
|
||
|
}
|
||
|
|
||
|
// string mcode = 3;
|
||
|
if (!this->_internal_mcode().empty()) {
|
||
|
const std::string& _s = this->_internal_mcode();
|
||
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
||
|
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "PrinterMsg.HMessage.mcode");
|
||
|
target = stream->WriteStringMaybeAliased(3, _s, target);
|
||
|
}
|
||
|
|
||
|
cached_has_bits = _impl_._has_bits_[0];
|
||
|
// .PrinterMsg.Request request = 4;
|
||
|
if (cached_has_bits & 0x00000001u) {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(4, _Internal::request(this),
|
||
|
_Internal::request(this).GetCachedSize(), target, stream);
|
||
|
}
|
||
|
|
||
|
// .PrinterMsg.Response response = 5;
|
||
|
if (cached_has_bits & 0x00000002u) {
|
||
|
target = ::google::protobuf::internal::WireFormatLite::
|
||
|
InternalWriteMessage(5, _Internal::response(this),
|
||
|
_Internal::response(this).GetCachedSize(), target, stream);
|
||
|
}
|
||
|
|
||
|
// uint64 sendTime = 6;
|
||
|
if (this->_internal_sendtime() != 0) {
|
||
|
target = stream->EnsureSpace(target);
|
||
|
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
|
||
|
6, this->_internal_sendtime(), target);
|
||
|
}
|
||
|
|
||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||
|
target =
|
||
|
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||
|
_internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
|
||
|
}
|
||
|
// @@protoc_insertion_point(serialize_to_array_end:PrinterMsg.HMessage)
|
||
|
return target;
|
||
|
}
|
||
|
|
||
|
::size_t HMessage::ByteSizeLong() const {
|
||
|
// @@protoc_insertion_point(message_byte_size_start:PrinterMsg.HMessage)
|
||
|
::size_t total_size = 0;
|
||
|
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
// string id = 2;
|
||
|
if (!this->_internal_id().empty()) {
|
||
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
||
|
this->_internal_id());
|
||
|
}
|
||
|
|
||
|
// string mcode = 3;
|
||
|
if (!this->_internal_mcode().empty()) {
|
||
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
|
||
|
this->_internal_mcode());
|
||
|
}
|
||
|
|
||
|
cached_has_bits = _impl_._has_bits_[0];
|
||
|
if (cached_has_bits & 0x00000003u) {
|
||
|
// .PrinterMsg.Request request = 4;
|
||
|
if (cached_has_bits & 0x00000001u) {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.request_);
|
||
|
}
|
||
|
|
||
|
// .PrinterMsg.Response response = 5;
|
||
|
if (cached_has_bits & 0x00000002u) {
|
||
|
total_size += 1 +
|
||
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
||
|
*_impl_.response_);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
// uint64 sendTime = 6;
|
||
|
if (this->_internal_sendtime() != 0) {
|
||
|
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
|
||
|
this->_internal_sendtime());
|
||
|
}
|
||
|
|
||
|
// .PrinterMsg.MSG type = 1;
|
||
|
if (this->_internal_type() != 0) {
|
||
|
total_size += 1 +
|
||
|
::_pbi::WireFormatLite::EnumSize(this->_internal_type());
|
||
|
}
|
||
|
|
||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||
|
}
|
||
|
|
||
|
const ::google::protobuf::Message::ClassData HMessage::_class_data_ = {
|
||
|
::google::protobuf::Message::CopyWithSourceCheck,
|
||
|
HMessage::MergeImpl
|
||
|
};
|
||
|
const ::google::protobuf::Message::ClassData*HMessage::GetClassData() const { return &_class_data_; }
|
||
|
|
||
|
|
||
|
void HMessage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
|
||
|
auto* const _this = static_cast<HMessage*>(&to_msg);
|
||
|
auto& from = static_cast<const HMessage&>(from_msg);
|
||
|
// @@protoc_insertion_point(class_specific_merge_from_start:PrinterMsg.HMessage)
|
||
|
ABSL_DCHECK_NE(&from, _this);
|
||
|
::uint32_t cached_has_bits = 0;
|
||
|
(void) cached_has_bits;
|
||
|
|
||
|
if (!from._internal_id().empty()) {
|
||
|
_this->_internal_set_id(from._internal_id());
|
||
|
}
|
||
|
if (!from._internal_mcode().empty()) {
|
||
|
_this->_internal_set_mcode(from._internal_mcode());
|
||
|
}
|
||
|
cached_has_bits = from._impl_._has_bits_[0];
|
||
|
if (cached_has_bits & 0x00000003u) {
|
||
|
if (cached_has_bits & 0x00000001u) {
|
||
|
_this->_internal_mutable_request()->::PrinterMsg::Request::MergeFrom(
|
||
|
from._internal_request());
|
||
|
}
|
||
|
if (cached_has_bits & 0x00000002u) {
|
||
|
_this->_internal_mutable_response()->::PrinterMsg::Response::MergeFrom(
|
||
|
from._internal_response());
|
||
|
}
|
||
|
}
|
||
|
if (from._internal_sendtime() != 0) {
|
||
|
_this->_internal_set_sendtime(from._internal_sendtime());
|
||
|
}
|
||
|
if (from._internal_type() != 0) {
|
||
|
_this->_internal_set_type(from._internal_type());
|
||
|
}
|
||
|
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
|
||
|
}
|
||
|
|
||
|
void HMessage::CopyFrom(const HMessage& from) {
|
||
|
// @@protoc_insertion_point(class_specific_copy_from_start:PrinterMsg.HMessage)
|
||
|
if (&from == this) return;
|
||
|
Clear();
|
||
|
MergeFrom(from);
|
||
|
}
|
||
|
|
||
|
PROTOBUF_NOINLINE bool HMessage::IsInitialized() const {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void HMessage::InternalSwap(HMessage* other) {
|
||
|
using std::swap;
|
||
|
auto* lhs_arena = GetArenaForAllocation();
|
||
|
auto* rhs_arena = other->GetArenaForAllocation();
|
||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
||
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
|
||
|
&other->_impl_.id_, rhs_arena);
|
||
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mcode_, lhs_arena,
|
||
|
&other->_impl_.mcode_, rhs_arena);
|
||
|
::google::protobuf::internal::memswap<
|
||
|
PROTOBUF_FIELD_OFFSET(HMessage, _impl_.type_)
|
||
|
+ sizeof(HMessage::_impl_.type_)
|
||
|
- PROTOBUF_FIELD_OFFSET(HMessage, _impl_.request_)>(
|
||
|
reinterpret_cast<char*>(&_impl_.request_),
|
||
|
reinterpret_cast<char*>(&other->_impl_.request_));
|
||
|
}
|
||
|
|
||
|
::google::protobuf::Metadata HMessage::GetMetadata() const {
|
||
|
return ::_pbi::AssignDescriptors(
|
||
|
&descriptor_table_printers_2eproto_getter, &descriptor_table_printers_2eproto_once,
|
||
|
file_level_metadata_printers_2eproto[3]);
|
||
|
}
|
||
|
// @@protoc_insertion_point(namespace_scope)
|
||
|
} // namespace PrinterMsg
|
||
|
namespace google {
|
||
|
namespace protobuf {
|
||
|
} // namespace protobuf
|
||
|
} // namespace google
|
||
|
// @@protoc_insertion_point(global_scope)
|
||
|
#include "google/protobuf/port_undef.inc"
|