4677 lines
152 KiB
C++
4677 lines
152 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: FileSynch.proto
|
|
|
|
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
|
#include "FileSynch.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
#include <google/protobuf/stubs/once.h>
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
#include <google/protobuf/descriptor.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/reflection_ops.h>
|
|
#include <google/protobuf/wire_format.h>
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace kbd_idlfile {
|
|
|
|
namespace {
|
|
|
|
const ::google::protobuf::Descriptor* DataBlock_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
DataBlock_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* DataPack_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
DataPack_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* FileNode_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
FileNode_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* FileNodeReqMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
FileNodeReqMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* FileNodeRespMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
FileNodeRespMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* FileChangeReqMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
FileChangeReqMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* FileChangeExeMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
FileChangeExeMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* BroadcastTaskMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
BroadcastTaskMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* ExeBroadcastMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
ExeBroadcastMsg_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* BroadcastResultMsg_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
BroadcastResultMsg_reflection_ = NULL;
|
|
const ::google::protobuf::EnumDescriptor* enTaskType_descriptor_ = NULL;
|
|
const ::google::protobuf::EnumDescriptor* enTaskStatusType_descriptor_ = NULL;
|
|
|
|
} // namespace
|
|
|
|
|
|
void protobuf_AssignDesc_FileSynch_2eproto() {
|
|
protobuf_AddDesc_FileSynch_2eproto();
|
|
const ::google::protobuf::FileDescriptor* file =
|
|
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
|
"FileSynch.proto");
|
|
GOOGLE_CHECK(file != NULL);
|
|
DataBlock_descriptor_ = file->message_type(0);
|
|
static const int DataBlock_offsets_[4] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, index_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, offset_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, len_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, buff_),
|
|
};
|
|
DataBlock_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
DataBlock_descriptor_,
|
|
DataBlock::default_instance_,
|
|
DataBlock_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataBlock, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(DataBlock));
|
|
DataPack_descriptor_ = file->message_type(1);
|
|
static const int DataPack_offsets_[7] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, pathfile_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, blockcount_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, isdir_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, filesize_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, checkcode_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, datablock_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, renamepathfile_),
|
|
};
|
|
DataPack_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
DataPack_descriptor_,
|
|
DataPack::default_instance_,
|
|
DataPack_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataPack, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(DataPack));
|
|
FileNode_descriptor_ = file->message_type(2);
|
|
static const int FileNode_offsets_[6] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, pathfile_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, isdir_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, isconfigpath_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, filesize_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, modifytime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, childnode_),
|
|
};
|
|
FileNode_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
FileNode_descriptor_,
|
|
FileNode::default_instance_,
|
|
FileNode_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNode, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(FileNode));
|
|
FileNodeReqMsg_descriptor_ = file->message_type(3);
|
|
static const int FileNodeReqMsg_offsets_[2] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeReqMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeReqMsg, pathfile_),
|
|
};
|
|
FileNodeReqMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
FileNodeReqMsg_descriptor_,
|
|
FileNodeReqMsg::default_instance_,
|
|
FileNodeReqMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeReqMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeReqMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(FileNodeReqMsg));
|
|
FileNodeRespMsg_descriptor_ = file->message_type(4);
|
|
static const int FileNodeRespMsg_offsets_[3] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeRespMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeRespMsg, isroot_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeRespMsg, node_),
|
|
};
|
|
FileNodeRespMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
FileNodeRespMsg_descriptor_,
|
|
FileNodeRespMsg::default_instance_,
|
|
FileNodeRespMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeRespMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileNodeRespMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(FileNodeRespMsg));
|
|
FileChangeReqMsg_descriptor_ = file->message_type(5);
|
|
static const int FileChangeReqMsg_offsets_[3] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeReqMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeReqMsg, opttype_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeReqMsg, pathfile_),
|
|
};
|
|
FileChangeReqMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
FileChangeReqMsg_descriptor_,
|
|
FileChangeReqMsg::default_instance_,
|
|
FileChangeReqMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeReqMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeReqMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(FileChangeReqMsg));
|
|
FileChangeExeMsg_descriptor_ = file->message_type(6);
|
|
static const int FileChangeExeMsg_offsets_[4] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, opttype_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, pathfile_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, datapack_),
|
|
};
|
|
FileChangeExeMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
FileChangeExeMsg_descriptor_,
|
|
FileChangeExeMsg::default_instance_,
|
|
FileChangeExeMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileChangeExeMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(FileChangeExeMsg));
|
|
BroadcastTaskMsg_descriptor_ = file->message_type(7);
|
|
static const int BroadcastTaskMsg_offsets_[5] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, recvhostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, tasktime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, pathfile_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, operate_),
|
|
};
|
|
BroadcastTaskMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
BroadcastTaskMsg_descriptor_,
|
|
BroadcastTaskMsg::default_instance_,
|
|
BroadcastTaskMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastTaskMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(BroadcastTaskMsg));
|
|
ExeBroadcastMsg_descriptor_ = file->message_type(8);
|
|
static const int ExeBroadcastMsg_offsets_[7] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, task_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, tasktime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, count_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, sendcount_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, node_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, datapack_),
|
|
};
|
|
ExeBroadcastMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
ExeBroadcastMsg_descriptor_,
|
|
ExeBroadcastMsg::default_instance_,
|
|
ExeBroadcastMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExeBroadcastMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(ExeBroadcastMsg));
|
|
BroadcastResultMsg_descriptor_ = file->message_type(9);
|
|
static const int BroadcastResultMsg_offsets_[8] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, hostname_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, task_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, issuccess_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, status_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, resultstr_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, count_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, sendcount_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, pathfile_),
|
|
};
|
|
BroadcastResultMsg_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
BroadcastResultMsg_descriptor_,
|
|
BroadcastResultMsg::default_instance_,
|
|
BroadcastResultMsg_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastResultMsg, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(BroadcastResultMsg));
|
|
enTaskType_descriptor_ = file->enum_type(0);
|
|
enTaskStatusType_descriptor_ = file->enum_type(1);
|
|
}
|
|
|
|
namespace {
|
|
|
|
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
|
inline void protobuf_AssignDescriptorsOnce() {
|
|
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
|
&protobuf_AssignDesc_FileSynch_2eproto);
|
|
}
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
DataBlock_descriptor_, &DataBlock::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
DataPack_descriptor_, &DataPack::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
FileNode_descriptor_, &FileNode::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
FileNodeReqMsg_descriptor_, &FileNodeReqMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
FileNodeRespMsg_descriptor_, &FileNodeRespMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
FileChangeReqMsg_descriptor_, &FileChangeReqMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
FileChangeExeMsg_descriptor_, &FileChangeExeMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
BroadcastTaskMsg_descriptor_, &BroadcastTaskMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
ExeBroadcastMsg_descriptor_, &ExeBroadcastMsg::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
BroadcastResultMsg_descriptor_, &BroadcastResultMsg::default_instance());
|
|
}
|
|
|
|
} // namespace
|
|
|
|
void protobuf_ShutdownFile_FileSynch_2eproto() {
|
|
delete DataBlock::default_instance_;
|
|
delete DataBlock_reflection_;
|
|
delete DataPack::default_instance_;
|
|
delete DataPack_reflection_;
|
|
delete FileNode::default_instance_;
|
|
delete FileNode_reflection_;
|
|
delete FileNodeReqMsg::default_instance_;
|
|
delete FileNodeReqMsg_reflection_;
|
|
delete FileNodeRespMsg::default_instance_;
|
|
delete FileNodeRespMsg_reflection_;
|
|
delete FileChangeReqMsg::default_instance_;
|
|
delete FileChangeReqMsg_reflection_;
|
|
delete FileChangeExeMsg::default_instance_;
|
|
delete FileChangeExeMsg_reflection_;
|
|
delete BroadcastTaskMsg::default_instance_;
|
|
delete BroadcastTaskMsg_reflection_;
|
|
delete ExeBroadcastMsg::default_instance_;
|
|
delete ExeBroadcastMsg_reflection_;
|
|
delete BroadcastResultMsg::default_instance_;
|
|
delete BroadcastResultMsg_reflection_;
|
|
}
|
|
|
|
void protobuf_AddDesc_FileSynch_2eproto() {
|
|
static bool already_here = false;
|
|
if (already_here) return;
|
|
already_here = true;
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
"\n\017FileSynch.proto\022\013kbd_idlfile\"E\n\tDataBl"
|
|
"ock\022\r\n\005index\030\001 \002(\004\022\016\n\006offset\030\002 \002(\004\022\013\n\003le"
|
|
"n\030\003 \002(\004\022\014\n\004buff\030\004 \002(\014\"\247\001\n\010DataPack\022\020\n\010pa"
|
|
"thFile\030\001 \002(\t\022\022\n\nblockCount\030\002 \002(\004\022\r\n\005isDi"
|
|
"r\030\003 \002(\005\022\020\n\010fileSize\030\004 \002(\004\022\021\n\tcheckCode\030\005"
|
|
" \002(\t\022)\n\tdataBlock\030\006 \001(\0132\026.kbd_idlfile.Da"
|
|
"taBlock\022\026\n\016renamePathFile\030\007 \001(\t\"\221\001\n\010File"
|
|
"Node\022\020\n\010pathFile\030\001 \002(\t\022\r\n\005isDir\030\002 \002(\005\022\024\n"
|
|
"\014isConfigPath\030\003 \002(\005\022\020\n\010fileSize\030\004 \001(\004\022\022\n"
|
|
"\nmodifyTime\030\005 \001(\004\022(\n\tchildNode\030\006 \003(\0132\025.k"
|
|
"bd_idlfile.FileNode\"4\n\016FileNodeReqMsg\022\020\n"
|
|
"\010hostName\030\001 \002(\t\022\020\n\010pathFile\030\002 \003(\t\"X\n\017Fil"
|
|
"eNodeRespMsg\022\020\n\010hostName\030\001 \002(\t\022\016\n\006isRoot"
|
|
"\030\002 \002(\005\022#\n\004node\030\003 \003(\0132\025.kbd_idlfile.FileN"
|
|
"ode\"G\n\020FileChangeReqMsg\022\020\n\010hostName\030\001 \002("
|
|
"\t\022\017\n\007optType\030\002 \002(\005\022\020\n\010pathFile\030\003 \002(\t\"p\n\020"
|
|
"FileChangeExeMsg\022\020\n\010hostName\030\001 \002(\t\022\017\n\007op"
|
|
"tType\030\002 \002(\005\022\020\n\010pathFile\030\003 \002(\t\022\'\n\010dataPac"
|
|
"k\030\004 \002(\0132\025.kbd_idlfile.DataPack\"\210\001\n\020Broad"
|
|
"castTaskMsg\022\020\n\010hostName\030\001 \002(\t\022\024\n\014recvHos"
|
|
"tName\030\002 \002(\t\022\020\n\010taskTime\030\003 \002(\004\022\020\n\010pathFil"
|
|
"e\030\004 \003(\t\022(\n\007operate\030\005 \002(\0162\027.kbd_idlfile.e"
|
|
"nTaskType\"\322\001\n\017ExeBroadcastMsg\022\020\n\010hostNam"
|
|
"e\030\001 \002(\t\022+\n\004task\030\002 \002(\0132\035.kbd_idlfile.Broa"
|
|
"dcastTaskMsg\022\020\n\010taskTime\030\003 \002(\004\022\r\n\005count\030"
|
|
"\004 \002(\005\022\021\n\tsendCount\030\005 \002(\005\022#\n\004node\030\006 \001(\0132\025"
|
|
".kbd_idlfile.FileNode\022\'\n\010dataPack\030\007 \001(\0132"
|
|
"\025.kbd_idlfile.DataPack\"\334\001\n\022BroadcastResu"
|
|
"ltMsg\022\020\n\010hostName\030\001 \002(\t\022+\n\004task\030\002 \002(\0132\035."
|
|
"kbd_idlfile.BroadcastTaskMsg\022\021\n\tisSucces"
|
|
"s\030\003 \002(\010\022-\n\006status\030\004 \002(\0162\035.kbd_idlfile.en"
|
|
"TaskStatusType\022\021\n\tresultStr\030\005 \002(\t\022\r\n\005cou"
|
|
"nt\030\006 \002(\005\022\021\n\tsendCount\030\007 \002(\005\022\020\n\010pathFile\030"
|
|
"\010 \002(\t*U\n\nenTaskType\022\023\n\017enTaskType_STOP\020\000"
|
|
"\022\030\n\024enTaskType_ONLY_NODE\020\001\022\030\n\024enTaskType"
|
|
"_DATA_NODE\020\002*G\n\020enTaskStatusType\022\020\n\014enTa"
|
|
"sk_START\020\001\022\016\n\nenTask_END\020\002\022\021\n\renTask_EXE"
|
|
"ING\020\003", 1485);
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
"FileSynch.proto", &protobuf_RegisterTypes);
|
|
DataBlock::default_instance_ = new DataBlock();
|
|
DataPack::default_instance_ = new DataPack();
|
|
FileNode::default_instance_ = new FileNode();
|
|
FileNodeReqMsg::default_instance_ = new FileNodeReqMsg();
|
|
FileNodeRespMsg::default_instance_ = new FileNodeRespMsg();
|
|
FileChangeReqMsg::default_instance_ = new FileChangeReqMsg();
|
|
FileChangeExeMsg::default_instance_ = new FileChangeExeMsg();
|
|
BroadcastTaskMsg::default_instance_ = new BroadcastTaskMsg();
|
|
ExeBroadcastMsg::default_instance_ = new ExeBroadcastMsg();
|
|
BroadcastResultMsg::default_instance_ = new BroadcastResultMsg();
|
|
DataBlock::default_instance_->InitAsDefaultInstance();
|
|
DataPack::default_instance_->InitAsDefaultInstance();
|
|
FileNode::default_instance_->InitAsDefaultInstance();
|
|
FileNodeReqMsg::default_instance_->InitAsDefaultInstance();
|
|
FileNodeRespMsg::default_instance_->InitAsDefaultInstance();
|
|
FileChangeReqMsg::default_instance_->InitAsDefaultInstance();
|
|
FileChangeExeMsg::default_instance_->InitAsDefaultInstance();
|
|
BroadcastTaskMsg::default_instance_->InitAsDefaultInstance();
|
|
ExeBroadcastMsg::default_instance_->InitAsDefaultInstance();
|
|
BroadcastResultMsg::default_instance_->InitAsDefaultInstance();
|
|
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_FileSynch_2eproto);
|
|
}
|
|
|
|
// Force AddDescriptors() to be called at static initialization time.
|
|
struct StaticDescriptorInitializer_FileSynch_2eproto {
|
|
StaticDescriptorInitializer_FileSynch_2eproto() {
|
|
protobuf_AddDesc_FileSynch_2eproto();
|
|
}
|
|
} static_descriptor_initializer_FileSynch_2eproto_;
|
|
const ::google::protobuf::EnumDescriptor* enTaskType_descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return enTaskType_descriptor_;
|
|
}
|
|
bool enTaskType_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::google::protobuf::EnumDescriptor* enTaskStatusType_descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return enTaskStatusType_descriptor_;
|
|
}
|
|
bool enTaskStatusType_IsValid(int value) {
|
|
switch(value) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int DataBlock::kIndexFieldNumber;
|
|
const int DataBlock::kOffsetFieldNumber;
|
|
const int DataBlock::kLenFieldNumber;
|
|
const int DataBlock::kBuffFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
DataBlock::DataBlock()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.DataBlock)
|
|
}
|
|
|
|
void DataBlock::InitAsDefaultInstance() {
|
|
}
|
|
|
|
DataBlock::DataBlock(const DataBlock& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.DataBlock)
|
|
}
|
|
|
|
void DataBlock::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
index_ = GOOGLE_ULONGLONG(0);
|
|
offset_ = GOOGLE_ULONGLONG(0);
|
|
len_ = GOOGLE_ULONGLONG(0);
|
|
buff_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
DataBlock::~DataBlock() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.DataBlock)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DataBlock::SharedDtor() {
|
|
if (buff_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete buff_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void DataBlock::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* DataBlock::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return DataBlock_descriptor_;
|
|
}
|
|
|
|
const DataBlock& DataBlock::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
DataBlock* DataBlock::default_instance_ = NULL;
|
|
|
|
DataBlock* DataBlock::New() const {
|
|
return new DataBlock;
|
|
}
|
|
|
|
void DataBlock::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<DataBlock*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 15) {
|
|
ZR_(index_, len_);
|
|
if (has_buff()) {
|
|
if (buff_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
buff_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool DataBlock::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.DataBlock)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required uint64 index = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &index_)));
|
|
set_has_index();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_offset;
|
|
break;
|
|
}
|
|
|
|
// required uint64 offset = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_offset:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &offset_)));
|
|
set_has_offset();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_len;
|
|
break;
|
|
}
|
|
|
|
// required uint64 len = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_len:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &len_)));
|
|
set_has_len();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_buff;
|
|
break;
|
|
}
|
|
|
|
// required bytes buff = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_buff:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
input, this->mutable_buff()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.DataBlock)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.DataBlock)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void DataBlock::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.DataBlock)
|
|
// required uint64 index = 1;
|
|
if (has_index()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->index(), output);
|
|
}
|
|
|
|
// required uint64 offset = 2;
|
|
if (has_offset()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->offset(), output);
|
|
}
|
|
|
|
// required uint64 len = 3;
|
|
if (has_len()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->len(), output);
|
|
}
|
|
|
|
// required bytes buff = 4;
|
|
if (has_buff()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
4, this->buff(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.DataBlock)
|
|
}
|
|
|
|
::google::protobuf::uint8* DataBlock::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.DataBlock)
|
|
// required uint64 index = 1;
|
|
if (has_index()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->index(), target);
|
|
}
|
|
|
|
// required uint64 offset = 2;
|
|
if (has_offset()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->offset(), target);
|
|
}
|
|
|
|
// required uint64 len = 3;
|
|
if (has_len()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->len(), target);
|
|
}
|
|
|
|
// required bytes buff = 4;
|
|
if (has_buff()) {
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
|
4, this->buff(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.DataBlock)
|
|
return target;
|
|
}
|
|
|
|
int DataBlock::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required uint64 index = 1;
|
|
if (has_index()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->index());
|
|
}
|
|
|
|
// required uint64 offset = 2;
|
|
if (has_offset()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->offset());
|
|
}
|
|
|
|
// required uint64 len = 3;
|
|
if (has_len()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->len());
|
|
}
|
|
|
|
// required bytes buff = 4;
|
|
if (has_buff()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->buff());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void DataBlock::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const DataBlock* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const DataBlock*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void DataBlock::MergeFrom(const DataBlock& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_index()) {
|
|
set_index(from.index());
|
|
}
|
|
if (from.has_offset()) {
|
|
set_offset(from.offset());
|
|
}
|
|
if (from.has_len()) {
|
|
set_len(from.len());
|
|
}
|
|
if (from.has_buff()) {
|
|
set_buff(from.buff());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void DataBlock::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void DataBlock::CopyFrom(const DataBlock& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DataBlock::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void DataBlock::Swap(DataBlock* other) {
|
|
if (other != this) {
|
|
std::swap(index_, other->index_);
|
|
std::swap(offset_, other->offset_);
|
|
std::swap(len_, other->len_);
|
|
std::swap(buff_, other->buff_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata DataBlock::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = DataBlock_descriptor_;
|
|
metadata.reflection = DataBlock_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int DataPack::kPathFileFieldNumber;
|
|
const int DataPack::kBlockCountFieldNumber;
|
|
const int DataPack::kIsDirFieldNumber;
|
|
const int DataPack::kFileSizeFieldNumber;
|
|
const int DataPack::kCheckCodeFieldNumber;
|
|
const int DataPack::kDataBlockFieldNumber;
|
|
const int DataPack::kRenamePathFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
DataPack::DataPack()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.DataPack)
|
|
}
|
|
|
|
void DataPack::InitAsDefaultInstance() {
|
|
datablock_ = const_cast< ::kbd_idlfile::DataBlock*>(&::kbd_idlfile::DataBlock::default_instance());
|
|
}
|
|
|
|
DataPack::DataPack(const DataPack& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.DataPack)
|
|
}
|
|
|
|
void DataPack::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
pathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
blockcount_ = GOOGLE_ULONGLONG(0);
|
|
isdir_ = 0;
|
|
filesize_ = GOOGLE_ULONGLONG(0);
|
|
checkcode_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
datablock_ = NULL;
|
|
renamepathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
DataPack::~DataPack() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.DataPack)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DataPack::SharedDtor() {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete pathfile_;
|
|
}
|
|
if (checkcode_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete checkcode_;
|
|
}
|
|
if (renamepathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete renamepathfile_;
|
|
}
|
|
if (this != default_instance_) {
|
|
delete datablock_;
|
|
}
|
|
}
|
|
|
|
void DataPack::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* DataPack::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return DataPack_descriptor_;
|
|
}
|
|
|
|
const DataPack& DataPack::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
DataPack* DataPack::default_instance_ = NULL;
|
|
|
|
DataPack* DataPack::New() const {
|
|
return new DataPack;
|
|
}
|
|
|
|
void DataPack::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<DataPack*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 127) {
|
|
ZR_(blockcount_, filesize_);
|
|
if (has_pathfile()) {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
pathfile_->clear();
|
|
}
|
|
}
|
|
isdir_ = 0;
|
|
if (has_checkcode()) {
|
|
if (checkcode_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
checkcode_->clear();
|
|
}
|
|
}
|
|
if (has_datablock()) {
|
|
if (datablock_ != NULL) datablock_->::kbd_idlfile::DataBlock::Clear();
|
|
}
|
|
if (has_renamepathfile()) {
|
|
if (renamepathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
renamepathfile_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool DataPack::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.DataPack)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string pathFile = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_blockCount;
|
|
break;
|
|
}
|
|
|
|
// required uint64 blockCount = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_blockCount:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &blockcount_)));
|
|
set_has_blockcount();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_isDir;
|
|
break;
|
|
}
|
|
|
|
// required int32 isDir = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_isDir:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &isdir_)));
|
|
set_has_isdir();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_fileSize;
|
|
break;
|
|
}
|
|
|
|
// required uint64 fileSize = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_fileSize:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &filesize_)));
|
|
set_has_filesize();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_checkCode;
|
|
break;
|
|
}
|
|
|
|
// required string checkCode = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_checkCode:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_checkcode()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->checkcode().data(), this->checkcode().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"checkcode");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_dataBlock;
|
|
break;
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataBlock dataBlock = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_dataBlock:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_datablock()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_renamePathFile;
|
|
break;
|
|
}
|
|
|
|
// optional string renamePathFile = 7;
|
|
case 7: {
|
|
if (tag == 58) {
|
|
parse_renamePathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_renamepathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->renamepathfile().data(), this->renamepathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"renamepathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.DataPack)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.DataPack)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void DataPack::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.DataPack)
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->pathfile(), output);
|
|
}
|
|
|
|
// required uint64 blockCount = 2;
|
|
if (has_blockcount()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->blockcount(), output);
|
|
}
|
|
|
|
// required int32 isDir = 3;
|
|
if (has_isdir()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->isdir(), output);
|
|
}
|
|
|
|
// required uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->filesize(), output);
|
|
}
|
|
|
|
// required string checkCode = 5;
|
|
if (has_checkcode()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->checkcode().data(), this->checkcode().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"checkcode");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
5, this->checkcode(), output);
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataBlock dataBlock = 6;
|
|
if (has_datablock()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6, this->datablock(), output);
|
|
}
|
|
|
|
// optional string renamePathFile = 7;
|
|
if (has_renamepathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->renamepathfile().data(), this->renamepathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"renamepathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
7, this->renamepathfile(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.DataPack)
|
|
}
|
|
|
|
::google::protobuf::uint8* DataPack::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.DataPack)
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->pathfile(), target);
|
|
}
|
|
|
|
// required uint64 blockCount = 2;
|
|
if (has_blockcount()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->blockcount(), target);
|
|
}
|
|
|
|
// required int32 isDir = 3;
|
|
if (has_isdir()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->isdir(), target);
|
|
}
|
|
|
|
// required uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->filesize(), target);
|
|
}
|
|
|
|
// required string checkCode = 5;
|
|
if (has_checkcode()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->checkcode().data(), this->checkcode().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"checkcode");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
5, this->checkcode(), target);
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataBlock dataBlock = 6;
|
|
if (has_datablock()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
6, this->datablock(), target);
|
|
}
|
|
|
|
// optional string renamePathFile = 7;
|
|
if (has_renamepathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->renamepathfile().data(), this->renamepathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"renamepathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
7, this->renamepathfile(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.DataPack)
|
|
return target;
|
|
}
|
|
|
|
int DataPack::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile());
|
|
}
|
|
|
|
// required uint64 blockCount = 2;
|
|
if (has_blockcount()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->blockcount());
|
|
}
|
|
|
|
// required int32 isDir = 3;
|
|
if (has_isdir()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->isdir());
|
|
}
|
|
|
|
// required uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->filesize());
|
|
}
|
|
|
|
// required string checkCode = 5;
|
|
if (has_checkcode()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->checkcode());
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataBlock dataBlock = 6;
|
|
if (has_datablock()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->datablock());
|
|
}
|
|
|
|
// optional string renamePathFile = 7;
|
|
if (has_renamepathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->renamepathfile());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void DataPack::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const DataPack* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const DataPack*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void DataPack::MergeFrom(const DataPack& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_pathfile()) {
|
|
set_pathfile(from.pathfile());
|
|
}
|
|
if (from.has_blockcount()) {
|
|
set_blockcount(from.blockcount());
|
|
}
|
|
if (from.has_isdir()) {
|
|
set_isdir(from.isdir());
|
|
}
|
|
if (from.has_filesize()) {
|
|
set_filesize(from.filesize());
|
|
}
|
|
if (from.has_checkcode()) {
|
|
set_checkcode(from.checkcode());
|
|
}
|
|
if (from.has_datablock()) {
|
|
mutable_datablock()->::kbd_idlfile::DataBlock::MergeFrom(from.datablock());
|
|
}
|
|
if (from.has_renamepathfile()) {
|
|
set_renamepathfile(from.renamepathfile());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void DataPack::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void DataPack::CopyFrom(const DataPack& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DataPack::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
|
|
|
|
if (has_datablock()) {
|
|
if (!this->datablock().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void DataPack::Swap(DataPack* other) {
|
|
if (other != this) {
|
|
std::swap(pathfile_, other->pathfile_);
|
|
std::swap(blockcount_, other->blockcount_);
|
|
std::swap(isdir_, other->isdir_);
|
|
std::swap(filesize_, other->filesize_);
|
|
std::swap(checkcode_, other->checkcode_);
|
|
std::swap(datablock_, other->datablock_);
|
|
std::swap(renamepathfile_, other->renamepathfile_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata DataPack::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = DataPack_descriptor_;
|
|
metadata.reflection = DataPack_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int FileNode::kPathFileFieldNumber;
|
|
const int FileNode::kIsDirFieldNumber;
|
|
const int FileNode::kIsConfigPathFieldNumber;
|
|
const int FileNode::kFileSizeFieldNumber;
|
|
const int FileNode::kModifyTimeFieldNumber;
|
|
const int FileNode::kChildNodeFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
FileNode::FileNode()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.FileNode)
|
|
}
|
|
|
|
void FileNode::InitAsDefaultInstance() {
|
|
}
|
|
|
|
FileNode::FileNode(const FileNode& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.FileNode)
|
|
}
|
|
|
|
void FileNode::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
pathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
isdir_ = 0;
|
|
isconfigpath_ = 0;
|
|
filesize_ = GOOGLE_ULONGLONG(0);
|
|
modifytime_ = GOOGLE_ULONGLONG(0);
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
FileNode::~FileNode() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.FileNode)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FileNode::SharedDtor() {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete pathfile_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void FileNode::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FileNode::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return FileNode_descriptor_;
|
|
}
|
|
|
|
const FileNode& FileNode::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
FileNode* FileNode::default_instance_ = NULL;
|
|
|
|
FileNode* FileNode::New() const {
|
|
return new FileNode;
|
|
}
|
|
|
|
void FileNode::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<FileNode*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 31) {
|
|
ZR_(isdir_, modifytime_);
|
|
if (has_pathfile()) {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
pathfile_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
childnode_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool FileNode::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.FileNode)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string pathFile = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_isDir;
|
|
break;
|
|
}
|
|
|
|
// required int32 isDir = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_isDir:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &isdir_)));
|
|
set_has_isdir();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_isConfigPath;
|
|
break;
|
|
}
|
|
|
|
// required int32 isConfigPath = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_isConfigPath:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &isconfigpath_)));
|
|
set_has_isconfigpath();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_fileSize;
|
|
break;
|
|
}
|
|
|
|
// optional uint64 fileSize = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_fileSize:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &filesize_)));
|
|
set_has_filesize();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_modifyTime;
|
|
break;
|
|
}
|
|
|
|
// optional uint64 modifyTime = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_modifyTime:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &modifytime_)));
|
|
set_has_modifytime();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_childNode;
|
|
break;
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode childNode = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_childNode:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_childnode()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_childNode;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.FileNode)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.FileNode)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FileNode::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.FileNode)
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->pathfile(), output);
|
|
}
|
|
|
|
// required int32 isDir = 2;
|
|
if (has_isdir()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->isdir(), output);
|
|
}
|
|
|
|
// required int32 isConfigPath = 3;
|
|
if (has_isconfigpath()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->isconfigpath(), output);
|
|
}
|
|
|
|
// optional uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->filesize(), output);
|
|
}
|
|
|
|
// optional uint64 modifyTime = 5;
|
|
if (has_modifytime()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->modifytime(), output);
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode childNode = 6;
|
|
for (int i = 0; i < this->childnode_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6, this->childnode(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.FileNode)
|
|
}
|
|
|
|
::google::protobuf::uint8* FileNode::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.FileNode)
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->pathfile(), target);
|
|
}
|
|
|
|
// required int32 isDir = 2;
|
|
if (has_isdir()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->isdir(), target);
|
|
}
|
|
|
|
// required int32 isConfigPath = 3;
|
|
if (has_isconfigpath()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->isconfigpath(), target);
|
|
}
|
|
|
|
// optional uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->filesize(), target);
|
|
}
|
|
|
|
// optional uint64 modifyTime = 5;
|
|
if (has_modifytime()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->modifytime(), target);
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode childNode = 6;
|
|
for (int i = 0; i < this->childnode_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
6, this->childnode(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.FileNode)
|
|
return target;
|
|
}
|
|
|
|
int FileNode::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string pathFile = 1;
|
|
if (has_pathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile());
|
|
}
|
|
|
|
// required int32 isDir = 2;
|
|
if (has_isdir()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->isdir());
|
|
}
|
|
|
|
// required int32 isConfigPath = 3;
|
|
if (has_isconfigpath()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->isconfigpath());
|
|
}
|
|
|
|
// optional uint64 fileSize = 4;
|
|
if (has_filesize()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->filesize());
|
|
}
|
|
|
|
// optional uint64 modifyTime = 5;
|
|
if (has_modifytime()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->modifytime());
|
|
}
|
|
|
|
}
|
|
// repeated .kbd_idlfile.FileNode childNode = 6;
|
|
total_size += 1 * this->childnode_size();
|
|
for (int i = 0; i < this->childnode_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->childnode(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void FileNode::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const FileNode* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const FileNode*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FileNode::MergeFrom(const FileNode& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
childnode_.MergeFrom(from.childnode_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_pathfile()) {
|
|
set_pathfile(from.pathfile());
|
|
}
|
|
if (from.has_isdir()) {
|
|
set_isdir(from.isdir());
|
|
}
|
|
if (from.has_isconfigpath()) {
|
|
set_isconfigpath(from.isconfigpath());
|
|
}
|
|
if (from.has_filesize()) {
|
|
set_filesize(from.filesize());
|
|
}
|
|
if (from.has_modifytime()) {
|
|
set_modifytime(from.modifytime());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void FileNode::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FileNode::CopyFrom(const FileNode& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FileNode::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->childnode())) return false;
|
|
return true;
|
|
}
|
|
|
|
void FileNode::Swap(FileNode* other) {
|
|
if (other != this) {
|
|
std::swap(pathfile_, other->pathfile_);
|
|
std::swap(isdir_, other->isdir_);
|
|
std::swap(isconfigpath_, other->isconfigpath_);
|
|
std::swap(filesize_, other->filesize_);
|
|
std::swap(modifytime_, other->modifytime_);
|
|
childnode_.Swap(&other->childnode_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata FileNode::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = FileNode_descriptor_;
|
|
metadata.reflection = FileNode_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int FileNodeReqMsg::kHostNameFieldNumber;
|
|
const int FileNodeReqMsg::kPathFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
FileNodeReqMsg::FileNodeReqMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.FileNodeReqMsg)
|
|
}
|
|
|
|
void FileNodeReqMsg::InitAsDefaultInstance() {
|
|
}
|
|
|
|
FileNodeReqMsg::FileNodeReqMsg(const FileNodeReqMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.FileNodeReqMsg)
|
|
}
|
|
|
|
void FileNodeReqMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
FileNodeReqMsg::~FileNodeReqMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.FileNodeReqMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FileNodeReqMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void FileNodeReqMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FileNodeReqMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return FileNodeReqMsg_descriptor_;
|
|
}
|
|
|
|
const FileNodeReqMsg& FileNodeReqMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
FileNodeReqMsg* FileNodeReqMsg::default_instance_ = NULL;
|
|
|
|
FileNodeReqMsg* FileNodeReqMsg::New() const {
|
|
return new FileNodeReqMsg;
|
|
}
|
|
|
|
void FileNodeReqMsg::Clear() {
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
pathfile_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool FileNodeReqMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.FileNodeReqMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_pathFile;
|
|
break;
|
|
}
|
|
|
|
// repeated string pathFile = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_pathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(this->pathfile_size() - 1).data(),
|
|
this->pathfile(this->pathfile_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_pathFile;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.FileNodeReqMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.FileNodeReqMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FileNodeReqMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.FileNodeReqMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// repeated string pathFile = 2;
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(i).data(), this->pathfile(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
2, this->pathfile(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.FileNodeReqMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* FileNodeReqMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.FileNodeReqMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// repeated string pathFile = 2;
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(i).data(), this->pathfile(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(2, this->pathfile(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.FileNodeReqMsg)
|
|
return target;
|
|
}
|
|
|
|
int FileNodeReqMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
}
|
|
// repeated string pathFile = 2;
|
|
total_size += 1 * this->pathfile_size();
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void FileNodeReqMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const FileNodeReqMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const FileNodeReqMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FileNodeReqMsg::MergeFrom(const FileNodeReqMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
pathfile_.MergeFrom(from.pathfile_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void FileNodeReqMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FileNodeReqMsg::CopyFrom(const FileNodeReqMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FileNodeReqMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void FileNodeReqMsg::Swap(FileNodeReqMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
pathfile_.Swap(&other->pathfile_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata FileNodeReqMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = FileNodeReqMsg_descriptor_;
|
|
metadata.reflection = FileNodeReqMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int FileNodeRespMsg::kHostNameFieldNumber;
|
|
const int FileNodeRespMsg::kIsRootFieldNumber;
|
|
const int FileNodeRespMsg::kNodeFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
FileNodeRespMsg::FileNodeRespMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.FileNodeRespMsg)
|
|
}
|
|
|
|
void FileNodeRespMsg::InitAsDefaultInstance() {
|
|
}
|
|
|
|
FileNodeRespMsg::FileNodeRespMsg(const FileNodeRespMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.FileNodeRespMsg)
|
|
}
|
|
|
|
void FileNodeRespMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
isroot_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
FileNodeRespMsg::~FileNodeRespMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.FileNodeRespMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FileNodeRespMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void FileNodeRespMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FileNodeRespMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return FileNodeRespMsg_descriptor_;
|
|
}
|
|
|
|
const FileNodeRespMsg& FileNodeRespMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
FileNodeRespMsg* FileNodeRespMsg::default_instance_ = NULL;
|
|
|
|
FileNodeRespMsg* FileNodeRespMsg::New() const {
|
|
return new FileNodeRespMsg;
|
|
}
|
|
|
|
void FileNodeRespMsg::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
isroot_ = 0;
|
|
}
|
|
node_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool FileNodeRespMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.FileNodeRespMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_isRoot;
|
|
break;
|
|
}
|
|
|
|
// required int32 isRoot = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_isRoot:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &isroot_)));
|
|
set_has_isroot();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_node;
|
|
break;
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode node = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_node:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_node()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_node;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.FileNodeRespMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.FileNodeRespMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FileNodeRespMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.FileNodeRespMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required int32 isRoot = 2;
|
|
if (has_isroot()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->isroot(), output);
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode node = 3;
|
|
for (int i = 0; i < this->node_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
3, this->node(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.FileNodeRespMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* FileNodeRespMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.FileNodeRespMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required int32 isRoot = 2;
|
|
if (has_isroot()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->isroot(), target);
|
|
}
|
|
|
|
// repeated .kbd_idlfile.FileNode node = 3;
|
|
for (int i = 0; i < this->node_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
3, this->node(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.FileNodeRespMsg)
|
|
return target;
|
|
}
|
|
|
|
int FileNodeRespMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required int32 isRoot = 2;
|
|
if (has_isroot()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->isroot());
|
|
}
|
|
|
|
}
|
|
// repeated .kbd_idlfile.FileNode node = 3;
|
|
total_size += 1 * this->node_size();
|
|
for (int i = 0; i < this->node_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->node(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void FileNodeRespMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const FileNodeRespMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const FileNodeRespMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FileNodeRespMsg::MergeFrom(const FileNodeRespMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
node_.MergeFrom(from.node_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_isroot()) {
|
|
set_isroot(from.isroot());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void FileNodeRespMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FileNodeRespMsg::CopyFrom(const FileNodeRespMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FileNodeRespMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->node())) return false;
|
|
return true;
|
|
}
|
|
|
|
void FileNodeRespMsg::Swap(FileNodeRespMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(isroot_, other->isroot_);
|
|
node_.Swap(&other->node_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata FileNodeRespMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = FileNodeRespMsg_descriptor_;
|
|
metadata.reflection = FileNodeRespMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int FileChangeReqMsg::kHostNameFieldNumber;
|
|
const int FileChangeReqMsg::kOptTypeFieldNumber;
|
|
const int FileChangeReqMsg::kPathFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
FileChangeReqMsg::FileChangeReqMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.FileChangeReqMsg)
|
|
}
|
|
|
|
void FileChangeReqMsg::InitAsDefaultInstance() {
|
|
}
|
|
|
|
FileChangeReqMsg::FileChangeReqMsg(const FileChangeReqMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.FileChangeReqMsg)
|
|
}
|
|
|
|
void FileChangeReqMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
opttype_ = 0;
|
|
pathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
FileChangeReqMsg::~FileChangeReqMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.FileChangeReqMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FileChangeReqMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete pathfile_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void FileChangeReqMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FileChangeReqMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return FileChangeReqMsg_descriptor_;
|
|
}
|
|
|
|
const FileChangeReqMsg& FileChangeReqMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
FileChangeReqMsg* FileChangeReqMsg::default_instance_ = NULL;
|
|
|
|
FileChangeReqMsg* FileChangeReqMsg::New() const {
|
|
return new FileChangeReqMsg;
|
|
}
|
|
|
|
void FileChangeReqMsg::Clear() {
|
|
if (_has_bits_[0 / 32] & 7) {
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
opttype_ = 0;
|
|
if (has_pathfile()) {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
pathfile_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool FileChangeReqMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.FileChangeReqMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_optType;
|
|
break;
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_optType:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &opttype_)));
|
|
set_has_opttype();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_pathFile;
|
|
break;
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_pathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.FileChangeReqMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.FileChangeReqMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FileChangeReqMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.FileChangeReqMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->opttype(), output);
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->pathfile(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.FileChangeReqMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* FileChangeReqMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.FileChangeReqMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->opttype(), target);
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->pathfile(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.FileChangeReqMsg)
|
|
return target;
|
|
}
|
|
|
|
int FileChangeReqMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->opttype());
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void FileChangeReqMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const FileChangeReqMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const FileChangeReqMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FileChangeReqMsg::MergeFrom(const FileChangeReqMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_opttype()) {
|
|
set_opttype(from.opttype());
|
|
}
|
|
if (from.has_pathfile()) {
|
|
set_pathfile(from.pathfile());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void FileChangeReqMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FileChangeReqMsg::CopyFrom(const FileChangeReqMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FileChangeReqMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void FileChangeReqMsg::Swap(FileChangeReqMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(opttype_, other->opttype_);
|
|
std::swap(pathfile_, other->pathfile_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata FileChangeReqMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = FileChangeReqMsg_descriptor_;
|
|
metadata.reflection = FileChangeReqMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int FileChangeExeMsg::kHostNameFieldNumber;
|
|
const int FileChangeExeMsg::kOptTypeFieldNumber;
|
|
const int FileChangeExeMsg::kPathFileFieldNumber;
|
|
const int FileChangeExeMsg::kDataPackFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
FileChangeExeMsg::FileChangeExeMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.FileChangeExeMsg)
|
|
}
|
|
|
|
void FileChangeExeMsg::InitAsDefaultInstance() {
|
|
datapack_ = const_cast< ::kbd_idlfile::DataPack*>(&::kbd_idlfile::DataPack::default_instance());
|
|
}
|
|
|
|
FileChangeExeMsg::FileChangeExeMsg(const FileChangeExeMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.FileChangeExeMsg)
|
|
}
|
|
|
|
void FileChangeExeMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
opttype_ = 0;
|
|
pathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
datapack_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
FileChangeExeMsg::~FileChangeExeMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.FileChangeExeMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FileChangeExeMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete pathfile_;
|
|
}
|
|
if (this != default_instance_) {
|
|
delete datapack_;
|
|
}
|
|
}
|
|
|
|
void FileChangeExeMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FileChangeExeMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return FileChangeExeMsg_descriptor_;
|
|
}
|
|
|
|
const FileChangeExeMsg& FileChangeExeMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
FileChangeExeMsg* FileChangeExeMsg::default_instance_ = NULL;
|
|
|
|
FileChangeExeMsg* FileChangeExeMsg::New() const {
|
|
return new FileChangeExeMsg;
|
|
}
|
|
|
|
void FileChangeExeMsg::Clear() {
|
|
if (_has_bits_[0 / 32] & 15) {
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
opttype_ = 0;
|
|
if (has_pathfile()) {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
pathfile_->clear();
|
|
}
|
|
}
|
|
if (has_datapack()) {
|
|
if (datapack_ != NULL) datapack_->::kbd_idlfile::DataPack::Clear();
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool FileChangeExeMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.FileChangeExeMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_optType;
|
|
break;
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_optType:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &opttype_)));
|
|
set_has_opttype();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_pathFile;
|
|
break;
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_pathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_dataPack;
|
|
break;
|
|
}
|
|
|
|
// required .kbd_idlfile.DataPack dataPack = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_dataPack:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_datapack()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.FileChangeExeMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.FileChangeExeMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FileChangeExeMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.FileChangeExeMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->opttype(), output);
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->pathfile(), output);
|
|
}
|
|
|
|
// required .kbd_idlfile.DataPack dataPack = 4;
|
|
if (has_datapack()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
4, this->datapack(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.FileChangeExeMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* FileChangeExeMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.FileChangeExeMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->opttype(), target);
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->pathfile(), target);
|
|
}
|
|
|
|
// required .kbd_idlfile.DataPack dataPack = 4;
|
|
if (has_datapack()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
4, this->datapack(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.FileChangeExeMsg)
|
|
return target;
|
|
}
|
|
|
|
int FileChangeExeMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required int32 optType = 2;
|
|
if (has_opttype()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->opttype());
|
|
}
|
|
|
|
// required string pathFile = 3;
|
|
if (has_pathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile());
|
|
}
|
|
|
|
// required .kbd_idlfile.DataPack dataPack = 4;
|
|
if (has_datapack()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->datapack());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void FileChangeExeMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const FileChangeExeMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const FileChangeExeMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FileChangeExeMsg::MergeFrom(const FileChangeExeMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_opttype()) {
|
|
set_opttype(from.opttype());
|
|
}
|
|
if (from.has_pathfile()) {
|
|
set_pathfile(from.pathfile());
|
|
}
|
|
if (from.has_datapack()) {
|
|
mutable_datapack()->::kbd_idlfile::DataPack::MergeFrom(from.datapack());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void FileChangeExeMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FileChangeExeMsg::CopyFrom(const FileChangeExeMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FileChangeExeMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
|
if (has_datapack()) {
|
|
if (!this->datapack().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void FileChangeExeMsg::Swap(FileChangeExeMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(opttype_, other->opttype_);
|
|
std::swap(pathfile_, other->pathfile_);
|
|
std::swap(datapack_, other->datapack_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata FileChangeExeMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = FileChangeExeMsg_descriptor_;
|
|
metadata.reflection = FileChangeExeMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int BroadcastTaskMsg::kHostNameFieldNumber;
|
|
const int BroadcastTaskMsg::kRecvHostNameFieldNumber;
|
|
const int BroadcastTaskMsg::kTaskTimeFieldNumber;
|
|
const int BroadcastTaskMsg::kPathFileFieldNumber;
|
|
const int BroadcastTaskMsg::kOperateFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
BroadcastTaskMsg::BroadcastTaskMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.BroadcastTaskMsg)
|
|
}
|
|
|
|
void BroadcastTaskMsg::InitAsDefaultInstance() {
|
|
}
|
|
|
|
BroadcastTaskMsg::BroadcastTaskMsg(const BroadcastTaskMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.BroadcastTaskMsg)
|
|
}
|
|
|
|
void BroadcastTaskMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
recvhostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
tasktime_ = GOOGLE_ULONGLONG(0);
|
|
operate_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
BroadcastTaskMsg::~BroadcastTaskMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.BroadcastTaskMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void BroadcastTaskMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (recvhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete recvhostname_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void BroadcastTaskMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* BroadcastTaskMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return BroadcastTaskMsg_descriptor_;
|
|
}
|
|
|
|
const BroadcastTaskMsg& BroadcastTaskMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
BroadcastTaskMsg* BroadcastTaskMsg::default_instance_ = NULL;
|
|
|
|
BroadcastTaskMsg* BroadcastTaskMsg::New() const {
|
|
return new BroadcastTaskMsg;
|
|
}
|
|
|
|
void BroadcastTaskMsg::Clear() {
|
|
if (_has_bits_[0 / 32] & 23) {
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
if (has_recvhostname()) {
|
|
if (recvhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
recvhostname_->clear();
|
|
}
|
|
}
|
|
tasktime_ = GOOGLE_ULONGLONG(0);
|
|
operate_ = 0;
|
|
}
|
|
pathfile_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool BroadcastTaskMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.BroadcastTaskMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_recvHostName;
|
|
break;
|
|
}
|
|
|
|
// required string recvHostName = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_recvHostName:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_recvhostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->recvhostname().data(), this->recvhostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"recvhostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_taskTime;
|
|
break;
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_taskTime:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &tasktime_)));
|
|
set_has_tasktime();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_pathFile;
|
|
break;
|
|
}
|
|
|
|
// repeated string pathFile = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_pathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(this->pathfile_size() - 1).data(),
|
|
this->pathfile(this->pathfile_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_pathFile;
|
|
if (input->ExpectTag(40)) goto parse_operate;
|
|
break;
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskType operate = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_operate:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::kbd_idlfile::enTaskType_IsValid(value)) {
|
|
set_operate(static_cast< ::kbd_idlfile::enTaskType >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(5, value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.BroadcastTaskMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.BroadcastTaskMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void BroadcastTaskMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.BroadcastTaskMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required string recvHostName = 2;
|
|
if (has_recvhostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->recvhostname().data(), this->recvhostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"recvhostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->recvhostname(), output);
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->tasktime(), output);
|
|
}
|
|
|
|
// repeated string pathFile = 4;
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(i).data(), this->pathfile(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
4, this->pathfile(i), output);
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskType operate = 5;
|
|
if (has_operate()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
5, this->operate(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.BroadcastTaskMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* BroadcastTaskMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.BroadcastTaskMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required string recvHostName = 2;
|
|
if (has_recvhostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->recvhostname().data(), this->recvhostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"recvhostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->recvhostname(), target);
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->tasktime(), target);
|
|
}
|
|
|
|
// repeated string pathFile = 4;
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile(i).data(), this->pathfile(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(4, this->pathfile(i), target);
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskType operate = 5;
|
|
if (has_operate()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
5, this->operate(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.BroadcastTaskMsg)
|
|
return target;
|
|
}
|
|
|
|
int BroadcastTaskMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required string recvHostName = 2;
|
|
if (has_recvhostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->recvhostname());
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->tasktime());
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskType operate = 5;
|
|
if (has_operate()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->operate());
|
|
}
|
|
|
|
}
|
|
// repeated string pathFile = 4;
|
|
total_size += 1 * this->pathfile_size();
|
|
for (int i = 0; i < this->pathfile_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void BroadcastTaskMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const BroadcastTaskMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const BroadcastTaskMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void BroadcastTaskMsg::MergeFrom(const BroadcastTaskMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
pathfile_.MergeFrom(from.pathfile_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_recvhostname()) {
|
|
set_recvhostname(from.recvhostname());
|
|
}
|
|
if (from.has_tasktime()) {
|
|
set_tasktime(from.tasktime());
|
|
}
|
|
if (from.has_operate()) {
|
|
set_operate(from.operate());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void BroadcastTaskMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void BroadcastTaskMsg::CopyFrom(const BroadcastTaskMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool BroadcastTaskMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000017) != 0x00000017) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void BroadcastTaskMsg::Swap(BroadcastTaskMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(recvhostname_, other->recvhostname_);
|
|
std::swap(tasktime_, other->tasktime_);
|
|
pathfile_.Swap(&other->pathfile_);
|
|
std::swap(operate_, other->operate_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata BroadcastTaskMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = BroadcastTaskMsg_descriptor_;
|
|
metadata.reflection = BroadcastTaskMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int ExeBroadcastMsg::kHostNameFieldNumber;
|
|
const int ExeBroadcastMsg::kTaskFieldNumber;
|
|
const int ExeBroadcastMsg::kTaskTimeFieldNumber;
|
|
const int ExeBroadcastMsg::kCountFieldNumber;
|
|
const int ExeBroadcastMsg::kSendCountFieldNumber;
|
|
const int ExeBroadcastMsg::kNodeFieldNumber;
|
|
const int ExeBroadcastMsg::kDataPackFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
ExeBroadcastMsg::ExeBroadcastMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.ExeBroadcastMsg)
|
|
}
|
|
|
|
void ExeBroadcastMsg::InitAsDefaultInstance() {
|
|
task_ = const_cast< ::kbd_idlfile::BroadcastTaskMsg*>(&::kbd_idlfile::BroadcastTaskMsg::default_instance());
|
|
node_ = const_cast< ::kbd_idlfile::FileNode*>(&::kbd_idlfile::FileNode::default_instance());
|
|
datapack_ = const_cast< ::kbd_idlfile::DataPack*>(&::kbd_idlfile::DataPack::default_instance());
|
|
}
|
|
|
|
ExeBroadcastMsg::ExeBroadcastMsg(const ExeBroadcastMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.ExeBroadcastMsg)
|
|
}
|
|
|
|
void ExeBroadcastMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
task_ = NULL;
|
|
tasktime_ = GOOGLE_ULONGLONG(0);
|
|
count_ = 0;
|
|
sendcount_ = 0;
|
|
node_ = NULL;
|
|
datapack_ = NULL;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
ExeBroadcastMsg::~ExeBroadcastMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.ExeBroadcastMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ExeBroadcastMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (this != default_instance_) {
|
|
delete task_;
|
|
delete node_;
|
|
delete datapack_;
|
|
}
|
|
}
|
|
|
|
void ExeBroadcastMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* ExeBroadcastMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return ExeBroadcastMsg_descriptor_;
|
|
}
|
|
|
|
const ExeBroadcastMsg& ExeBroadcastMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
ExeBroadcastMsg* ExeBroadcastMsg::default_instance_ = NULL;
|
|
|
|
ExeBroadcastMsg* ExeBroadcastMsg::New() const {
|
|
return new ExeBroadcastMsg;
|
|
}
|
|
|
|
void ExeBroadcastMsg::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<ExeBroadcastMsg*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 127) {
|
|
ZR_(tasktime_, sendcount_);
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
if (has_task()) {
|
|
if (task_ != NULL) task_->::kbd_idlfile::BroadcastTaskMsg::Clear();
|
|
}
|
|
if (has_node()) {
|
|
if (node_ != NULL) node_->::kbd_idlfile::FileNode::Clear();
|
|
}
|
|
if (has_datapack()) {
|
|
if (datapack_ != NULL) datapack_->::kbd_idlfile::DataPack::Clear();
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool ExeBroadcastMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.ExeBroadcastMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_task;
|
|
break;
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_task:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_task()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_taskTime;
|
|
break;
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_taskTime:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
input, &tasktime_)));
|
|
set_has_tasktime();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_count;
|
|
break;
|
|
}
|
|
|
|
// required int32 count = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_count:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &count_)));
|
|
set_has_count();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_sendCount;
|
|
break;
|
|
}
|
|
|
|
// required int32 sendCount = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_sendCount:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &sendcount_)));
|
|
set_has_sendcount();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_node;
|
|
break;
|
|
}
|
|
|
|
// optional .kbd_idlfile.FileNode node = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_node:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_node()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(58)) goto parse_dataPack;
|
|
break;
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataPack dataPack = 7;
|
|
case 7: {
|
|
if (tag == 58) {
|
|
parse_dataPack:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_datapack()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.ExeBroadcastMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.ExeBroadcastMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ExeBroadcastMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.ExeBroadcastMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
2, this->task(), output);
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->tasktime(), output);
|
|
}
|
|
|
|
// required int32 count = 4;
|
|
if (has_count()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->count(), output);
|
|
}
|
|
|
|
// required int32 sendCount = 5;
|
|
if (has_sendcount()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->sendcount(), output);
|
|
}
|
|
|
|
// optional .kbd_idlfile.FileNode node = 6;
|
|
if (has_node()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6, this->node(), output);
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataPack dataPack = 7;
|
|
if (has_datapack()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
7, this->datapack(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.ExeBroadcastMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* ExeBroadcastMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.ExeBroadcastMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
2, this->task(), target);
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->tasktime(), target);
|
|
}
|
|
|
|
// required int32 count = 4;
|
|
if (has_count()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->count(), target);
|
|
}
|
|
|
|
// required int32 sendCount = 5;
|
|
if (has_sendcount()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->sendcount(), target);
|
|
}
|
|
|
|
// optional .kbd_idlfile.FileNode node = 6;
|
|
if (has_node()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
6, this->node(), target);
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataPack dataPack = 7;
|
|
if (has_datapack()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
7, this->datapack(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.ExeBroadcastMsg)
|
|
return target;
|
|
}
|
|
|
|
int ExeBroadcastMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->task());
|
|
}
|
|
|
|
// required uint64 taskTime = 3;
|
|
if (has_tasktime()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
this->tasktime());
|
|
}
|
|
|
|
// required int32 count = 4;
|
|
if (has_count()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->count());
|
|
}
|
|
|
|
// required int32 sendCount = 5;
|
|
if (has_sendcount()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->sendcount());
|
|
}
|
|
|
|
// optional .kbd_idlfile.FileNode node = 6;
|
|
if (has_node()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->node());
|
|
}
|
|
|
|
// optional .kbd_idlfile.DataPack dataPack = 7;
|
|
if (has_datapack()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->datapack());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void ExeBroadcastMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const ExeBroadcastMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const ExeBroadcastMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ExeBroadcastMsg::MergeFrom(const ExeBroadcastMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_task()) {
|
|
mutable_task()->::kbd_idlfile::BroadcastTaskMsg::MergeFrom(from.task());
|
|
}
|
|
if (from.has_tasktime()) {
|
|
set_tasktime(from.tasktime());
|
|
}
|
|
if (from.has_count()) {
|
|
set_count(from.count());
|
|
}
|
|
if (from.has_sendcount()) {
|
|
set_sendcount(from.sendcount());
|
|
}
|
|
if (from.has_node()) {
|
|
mutable_node()->::kbd_idlfile::FileNode::MergeFrom(from.node());
|
|
}
|
|
if (from.has_datapack()) {
|
|
mutable_datapack()->::kbd_idlfile::DataPack::MergeFrom(from.datapack());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void ExeBroadcastMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ExeBroadcastMsg::CopyFrom(const ExeBroadcastMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ExeBroadcastMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
|
|
|
|
if (has_task()) {
|
|
if (!this->task().IsInitialized()) return false;
|
|
}
|
|
if (has_node()) {
|
|
if (!this->node().IsInitialized()) return false;
|
|
}
|
|
if (has_datapack()) {
|
|
if (!this->datapack().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ExeBroadcastMsg::Swap(ExeBroadcastMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(task_, other->task_);
|
|
std::swap(tasktime_, other->tasktime_);
|
|
std::swap(count_, other->count_);
|
|
std::swap(sendcount_, other->sendcount_);
|
|
std::swap(node_, other->node_);
|
|
std::swap(datapack_, other->datapack_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata ExeBroadcastMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = ExeBroadcastMsg_descriptor_;
|
|
metadata.reflection = ExeBroadcastMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int BroadcastResultMsg::kHostNameFieldNumber;
|
|
const int BroadcastResultMsg::kTaskFieldNumber;
|
|
const int BroadcastResultMsg::kIsSuccessFieldNumber;
|
|
const int BroadcastResultMsg::kStatusFieldNumber;
|
|
const int BroadcastResultMsg::kResultStrFieldNumber;
|
|
const int BroadcastResultMsg::kCountFieldNumber;
|
|
const int BroadcastResultMsg::kSendCountFieldNumber;
|
|
const int BroadcastResultMsg::kPathFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
BroadcastResultMsg::BroadcastResultMsg()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:kbd_idlfile.BroadcastResultMsg)
|
|
}
|
|
|
|
void BroadcastResultMsg::InitAsDefaultInstance() {
|
|
task_ = const_cast< ::kbd_idlfile::BroadcastTaskMsg*>(&::kbd_idlfile::BroadcastTaskMsg::default_instance());
|
|
}
|
|
|
|
BroadcastResultMsg::BroadcastResultMsg(const BroadcastResultMsg& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:kbd_idlfile.BroadcastResultMsg)
|
|
}
|
|
|
|
void BroadcastResultMsg::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
task_ = NULL;
|
|
issuccess_ = false;
|
|
status_ = 1;
|
|
resultstr_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
count_ = 0;
|
|
sendcount_ = 0;
|
|
pathfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
BroadcastResultMsg::~BroadcastResultMsg() {
|
|
// @@protoc_insertion_point(destructor:kbd_idlfile.BroadcastResultMsg)
|
|
SharedDtor();
|
|
}
|
|
|
|
void BroadcastResultMsg::SharedDtor() {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete hostname_;
|
|
}
|
|
if (resultstr_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete resultstr_;
|
|
}
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete pathfile_;
|
|
}
|
|
if (this != default_instance_) {
|
|
delete task_;
|
|
}
|
|
}
|
|
|
|
void BroadcastResultMsg::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* BroadcastResultMsg::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return BroadcastResultMsg_descriptor_;
|
|
}
|
|
|
|
const BroadcastResultMsg& BroadcastResultMsg::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_FileSynch_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
BroadcastResultMsg* BroadcastResultMsg::default_instance_ = NULL;
|
|
|
|
BroadcastResultMsg* BroadcastResultMsg::New() const {
|
|
return new BroadcastResultMsg;
|
|
}
|
|
|
|
void BroadcastResultMsg::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<BroadcastResultMsg*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 255) {
|
|
ZR_(count_, sendcount_);
|
|
if (has_hostname()) {
|
|
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
hostname_->clear();
|
|
}
|
|
}
|
|
if (has_task()) {
|
|
if (task_ != NULL) task_->::kbd_idlfile::BroadcastTaskMsg::Clear();
|
|
}
|
|
issuccess_ = false;
|
|
status_ = 1;
|
|
if (has_resultstr()) {
|
|
if (resultstr_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
resultstr_->clear();
|
|
}
|
|
}
|
|
if (has_pathfile()) {
|
|
if (pathfile_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
pathfile_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool BroadcastResultMsg::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:kbd_idlfile.BroadcastResultMsg)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string hostName = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_hostname()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"hostname");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_task;
|
|
break;
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_task:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_task()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_isSuccess;
|
|
break;
|
|
}
|
|
|
|
// required bool isSuccess = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_isSuccess:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &issuccess_)));
|
|
set_has_issuccess();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_status;
|
|
break;
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskStatusType status = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_status:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::kbd_idlfile::enTaskStatusType_IsValid(value)) {
|
|
set_status(static_cast< ::kbd_idlfile::enTaskStatusType >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(4, value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(42)) goto parse_resultStr;
|
|
break;
|
|
}
|
|
|
|
// required string resultStr = 5;
|
|
case 5: {
|
|
if (tag == 42) {
|
|
parse_resultStr:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_resultstr()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->resultstr().data(), this->resultstr().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"resultstr");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_count;
|
|
break;
|
|
}
|
|
|
|
// required int32 count = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_count:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &count_)));
|
|
set_has_count();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_sendCount;
|
|
break;
|
|
}
|
|
|
|
// required int32 sendCount = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_sendCount:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &sendcount_)));
|
|
set_has_sendcount();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(66)) goto parse_pathFile;
|
|
break;
|
|
}
|
|
|
|
// required string pathFile = 8;
|
|
case 8: {
|
|
if (tag == 66) {
|
|
parse_pathFile:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pathfile()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"pathfile");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:kbd_idlfile.BroadcastResultMsg)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:kbd_idlfile.BroadcastResultMsg)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void BroadcastResultMsg::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:kbd_idlfile.BroadcastResultMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->hostname(), output);
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
2, this->task(), output);
|
|
}
|
|
|
|
// required bool isSuccess = 3;
|
|
if (has_issuccess()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->issuccess(), output);
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskStatusType status = 4;
|
|
if (has_status()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
4, this->status(), output);
|
|
}
|
|
|
|
// required string resultStr = 5;
|
|
if (has_resultstr()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->resultstr().data(), this->resultstr().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"resultstr");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
5, this->resultstr(), output);
|
|
}
|
|
|
|
// required int32 count = 6;
|
|
if (has_count()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->count(), output);
|
|
}
|
|
|
|
// required int32 sendCount = 7;
|
|
if (has_sendcount()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->sendcount(), output);
|
|
}
|
|
|
|
// required string pathFile = 8;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
8, this->pathfile(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:kbd_idlfile.BroadcastResultMsg)
|
|
}
|
|
|
|
::google::protobuf::uint8* BroadcastResultMsg::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.BroadcastResultMsg)
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->hostname().data(), this->hostname().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"hostname");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->hostname(), target);
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
2, this->task(), target);
|
|
}
|
|
|
|
// required bool isSuccess = 3;
|
|
if (has_issuccess()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->issuccess(), target);
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskStatusType status = 4;
|
|
if (has_status()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
4, this->status(), target);
|
|
}
|
|
|
|
// required string resultStr = 5;
|
|
if (has_resultstr()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->resultstr().data(), this->resultstr().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"resultstr");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
5, this->resultstr(), target);
|
|
}
|
|
|
|
// required int32 count = 6;
|
|
if (has_count()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->count(), target);
|
|
}
|
|
|
|
// required int32 sendCount = 7;
|
|
if (has_sendcount()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->sendcount(), target);
|
|
}
|
|
|
|
// required string pathFile = 8;
|
|
if (has_pathfile()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pathfile().data(), this->pathfile().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"pathfile");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
8, this->pathfile(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.BroadcastResultMsg)
|
|
return target;
|
|
}
|
|
|
|
int BroadcastResultMsg::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string hostName = 1;
|
|
if (has_hostname()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->hostname());
|
|
}
|
|
|
|
// required .kbd_idlfile.BroadcastTaskMsg task = 2;
|
|
if (has_task()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->task());
|
|
}
|
|
|
|
// required bool isSuccess = 3;
|
|
if (has_issuccess()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
// required .kbd_idlfile.enTaskStatusType status = 4;
|
|
if (has_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
|
|
}
|
|
|
|
// required string resultStr = 5;
|
|
if (has_resultstr()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->resultstr());
|
|
}
|
|
|
|
// required int32 count = 6;
|
|
if (has_count()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->count());
|
|
}
|
|
|
|
// required int32 sendCount = 7;
|
|
if (has_sendcount()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->sendcount());
|
|
}
|
|
|
|
// required string pathFile = 8;
|
|
if (has_pathfile()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pathfile());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void BroadcastResultMsg::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const BroadcastResultMsg* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const BroadcastResultMsg*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void BroadcastResultMsg::MergeFrom(const BroadcastResultMsg& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_hostname()) {
|
|
set_hostname(from.hostname());
|
|
}
|
|
if (from.has_task()) {
|
|
mutable_task()->::kbd_idlfile::BroadcastTaskMsg::MergeFrom(from.task());
|
|
}
|
|
if (from.has_issuccess()) {
|
|
set_issuccess(from.issuccess());
|
|
}
|
|
if (from.has_status()) {
|
|
set_status(from.status());
|
|
}
|
|
if (from.has_resultstr()) {
|
|
set_resultstr(from.resultstr());
|
|
}
|
|
if (from.has_count()) {
|
|
set_count(from.count());
|
|
}
|
|
if (from.has_sendcount()) {
|
|
set_sendcount(from.sendcount());
|
|
}
|
|
if (from.has_pathfile()) {
|
|
set_pathfile(from.pathfile());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void BroadcastResultMsg::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void BroadcastResultMsg::CopyFrom(const BroadcastResultMsg& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool BroadcastResultMsg::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x000000ff) != 0x000000ff) return false;
|
|
|
|
if (has_task()) {
|
|
if (!this->task().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void BroadcastResultMsg::Swap(BroadcastResultMsg* other) {
|
|
if (other != this) {
|
|
std::swap(hostname_, other->hostname_);
|
|
std::swap(task_, other->task_);
|
|
std::swap(issuccess_, other->issuccess_);
|
|
std::swap(status_, other->status_);
|
|
std::swap(resultstr_, other->resultstr_);
|
|
std::swap(count_, other->count_);
|
|
std::swap(sendcount_, other->sendcount_);
|
|
std::swap(pathfile_, other->pathfile_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata BroadcastResultMsg::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = BroadcastResultMsg_descriptor_;
|
|
metadata.reflection = BroadcastResultMsg_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace kbd_idlfile
|
|
|
|
// @@protoc_insertion_point(global_scope)
|