2577 lines
93 KiB
C++
2577 lines
93 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: messageserialize.proto
|
|
|
|
#include "messageserialize.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
#include <google/protobuf/stubs/port.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>
|
|
// This is a temporary google only hack
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
#include "third_party/protobuf/version.h"
|
|
#endif
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace protobuf_messageserialize_2eproto {
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_messageserialize_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FtpUserPwd;
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_messageserialize_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ProtobufFileInfo;
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_messageserialize_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DeviceInfo;
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_messageserialize_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ProtobufFilesInfo;
|
|
} // namespace protobuf_messageserialize_2eproto
|
|
class ProtobufFileInfoDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<ProtobufFileInfo>
|
|
_instance;
|
|
} _ProtobufFileInfo_default_instance_;
|
|
class ProtobufFilesInfoDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<ProtobufFilesInfo>
|
|
_instance;
|
|
} _ProtobufFilesInfo_default_instance_;
|
|
class FtpUserPwdDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<FtpUserPwd>
|
|
_instance;
|
|
} _FtpUserPwd_default_instance_;
|
|
class DeviceInfoDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<DeviceInfo>
|
|
_instance;
|
|
} _DeviceInfo_default_instance_;
|
|
class ReplyMessageDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<ReplyMessage>
|
|
_instance;
|
|
} _ReplyMessage_default_instance_;
|
|
namespace protobuf_messageserialize_2eproto {
|
|
static void InitDefaultsProtobufFileInfo() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ProtobufFileInfo_default_instance_;
|
|
new (ptr) ::ProtobufFileInfo();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ProtobufFileInfo::InitAsDefaultInstance();
|
|
}
|
|
|
|
::google::protobuf::internal::SCCInfo<0> scc_info_ProtobufFileInfo =
|
|
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProtobufFileInfo}, {}};
|
|
|
|
static void InitDefaultsProtobufFilesInfo() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ProtobufFilesInfo_default_instance_;
|
|
new (ptr) ::ProtobufFilesInfo();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ProtobufFilesInfo::InitAsDefaultInstance();
|
|
}
|
|
|
|
::google::protobuf::internal::SCCInfo<1> scc_info_ProtobufFilesInfo =
|
|
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProtobufFilesInfo}, {
|
|
&protobuf_messageserialize_2eproto::scc_info_ProtobufFileInfo.base,}};
|
|
|
|
static void InitDefaultsFtpUserPwd() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_FtpUserPwd_default_instance_;
|
|
new (ptr) ::FtpUserPwd();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::FtpUserPwd::InitAsDefaultInstance();
|
|
}
|
|
|
|
::google::protobuf::internal::SCCInfo<0> scc_info_FtpUserPwd =
|
|
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFtpUserPwd}, {}};
|
|
|
|
static void InitDefaultsDeviceInfo() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_DeviceInfo_default_instance_;
|
|
new (ptr) ::DeviceInfo();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::DeviceInfo::InitAsDefaultInstance();
|
|
}
|
|
|
|
::google::protobuf::internal::SCCInfo<1> scc_info_DeviceInfo =
|
|
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeviceInfo}, {
|
|
&protobuf_messageserialize_2eproto::scc_info_FtpUserPwd.base,}};
|
|
|
|
static void InitDefaultsReplyMessage() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::_ReplyMessage_default_instance_;
|
|
new (ptr) ::ReplyMessage();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::ReplyMessage::InitAsDefaultInstance();
|
|
}
|
|
|
|
::google::protobuf::internal::SCCInfo<2> scc_info_ReplyMessage =
|
|
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsReplyMessage}, {
|
|
&protobuf_messageserialize_2eproto::scc_info_DeviceInfo.base,
|
|
&protobuf_messageserialize_2eproto::scc_info_ProtobufFilesInfo.base,}};
|
|
|
|
void InitDefaults() {
|
|
::google::protobuf::internal::InitSCC(&scc_info_ProtobufFileInfo.base);
|
|
::google::protobuf::internal::InitSCC(&scc_info_ProtobufFilesInfo.base);
|
|
::google::protobuf::internal::InitSCC(&scc_info_FtpUserPwd.base);
|
|
::google::protobuf::internal::InitSCC(&scc_info_DeviceInfo.base);
|
|
::google::protobuf::internal::InitSCC(&scc_info_ReplyMessage.base);
|
|
}
|
|
|
|
::google::protobuf::Metadata file_level_metadata[5];
|
|
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4];
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, size_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, path_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, date_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, duration_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFileInfo, thumb_path_),
|
|
4,
|
|
0,
|
|
5,
|
|
1,
|
|
2,
|
|
6,
|
|
3,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFilesInfo, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFilesInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ProtobufFilesInfo, file_info_),
|
|
~0u,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::FtpUserPwd, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::FtpUserPwd, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::FtpUserPwd, username_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::FtpUserPwd, pwd_),
|
|
0,
|
|
1,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, uuid_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, device_name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, device_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, ftp_userpwd_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::DeviceInfo, device_role_),
|
|
0,
|
|
1,
|
|
3,
|
|
2,
|
|
4,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, status_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, datasize_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, device_info_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, files_info_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, conn_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ReplyMessage, error_string_),
|
|
4,
|
|
3,
|
|
1,
|
|
2,
|
|
5,
|
|
0,
|
|
};
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, 12, sizeof(::ProtobufFileInfo)},
|
|
{ 19, 25, sizeof(::ProtobufFilesInfo)},
|
|
{ 26, 33, sizeof(::FtpUserPwd)},
|
|
{ 35, 45, sizeof(::DeviceInfo)},
|
|
{ 50, 61, sizeof(::ReplyMessage)},
|
|
};
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::_ProtobufFileInfo_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::_ProtobufFilesInfo_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::_FtpUserPwd_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::_DeviceInfo_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::_ReplyMessage_default_instance_),
|
|
};
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
AddDescriptors();
|
|
AssignDescriptors(
|
|
"messageserialize.proto", schemas, file_default_instances, TableStruct::offsets,
|
|
file_level_metadata, file_level_enum_descriptors, NULL);
|
|
}
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
static ::google::protobuf::internal::once_flag once;
|
|
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
}
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
|
|
}
|
|
|
|
void AddDescriptorsImpl() {
|
|
InitDefaults();
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
"\n\026messageserialize.proto\"|\n\020ProtobufFile"
|
|
"Info\022\n\n\002id\030\001 \002(\003\022\014\n\004name\030\002 \002(\t\022\014\n\004size\030\003"
|
|
" \002(\003\022\014\n\004path\030\004 \002(\t\022\014\n\004date\030\005 \002(\t\022\020\n\010dura"
|
|
"tion\030\006 \001(\003\022\022\n\nthumb_path\030\007 \001(\t\"9\n\021Protob"
|
|
"ufFilesInfo\022$\n\tfile_info\030\001 \003(\0132\021.Protobu"
|
|
"fFileInfo\"+\n\nFtpUserPwd\022\020\n\010username\030\001 \002("
|
|
"\t\022\013\n\003pwd\030\002 \002(\t\"\207\002\n\nDeviceInfo\022\014\n\004uuid\030\001 "
|
|
"\002(\t\022\023\n\013device_name\030\002 \002(\t\022+\n\013device_type\030"
|
|
"\003 \002(\0162\026.DeviceInfo.DeviceType\022 \n\013ftp_use"
|
|
"rpwd\030\004 \001(\0132\013.FtpUserPwd\022+\n\013device_role\030\005"
|
|
" \002(\0162\026.DeviceInfo.DeviceRole\".\n\nDeviceTy"
|
|
"pe\022\006\n\002PC\020\000\022\013\n\007ANDROID\020\001\022\013\n\007UNKNOWN\020\002\"*\n\n"
|
|
"DeviceRole\022\r\n\tINITIATOR\020\000\022\r\n\tRECIPIENT\020\001"
|
|
"\"\201\004\n\014ReplyMessage\022(\n\006status\030\001 \002(\0162\030.Repl"
|
|
"yMessage.StatusType\022\020\n\010dataSize\030\002 \001(\003\022 \n"
|
|
"\013device_info\030\003 \001(\0132\013.DeviceInfo\022&\n\nfiles"
|
|
"_info\030\004 \001(\0132\022.ProtobufFilesInfo\022)\n\tconn_"
|
|
"type\030\005 \001(\0162\026.ReplyMessage.ConnType\022\024\n\014er"
|
|
"ror_string\030\006 \001(\t\"\375\001\n\nStatusType\022\t\n\005ERROR"
|
|
"\020\000\022\r\n\tCONNECTED\020\001\022\020\n\014DISCONNECTED\020\002\022\016\n\nD"
|
|
"EVICEINFO\020\003\022\010\n\004DATA\020\004\022\r\n\tDATAREADY\020\005\022\014\n\010"
|
|
"FILEINFO\020\006\022\r\n\tFILEREADY\020\007\022\n\n\006STREAM\020\010\022\017\n"
|
|
"\013STREAMREADY\020\t\022\010\n\004BUSY\020\n\022\024\n\020STARTAUDIOSE"
|
|
"RVER\020\013\022\020\n\014CANCELSCREEN\020\014\022\020\n\014URGENTCLIENT"
|
|
"\020\r\022\020\n\014URGENTSERVER\020\016\022\n\n\006REFUSE\020\017\"*\n\010Conn"
|
|
"Type\022\007\n\003ADB\020\000\022\010\n\004WIFI\020\001\022\013\n\007WIFIADB\020\002"
|
|
};
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
descriptor, 1036);
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
"messageserialize.proto", &protobuf_RegisterTypes);
|
|
}
|
|
|
|
void AddDescriptors() {
|
|
static ::google::protobuf::internal::once_flag once;
|
|
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
}
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
struct StaticDescriptorInitializer {
|
|
StaticDescriptorInitializer() {
|
|
AddDescriptors();
|
|
}
|
|
} static_descriptor_initializer;
|
|
} // namespace protobuf_messageserialize_2eproto
|
|
const ::google::protobuf::EnumDescriptor* DeviceInfo_DeviceType_descriptor() {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return protobuf_messageserialize_2eproto::file_level_enum_descriptors[0];
|
|
}
|
|
bool DeviceInfo_DeviceType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const DeviceInfo_DeviceType DeviceInfo::PC;
|
|
const DeviceInfo_DeviceType DeviceInfo::ANDROID;
|
|
const DeviceInfo_DeviceType DeviceInfo::UNKNOWN;
|
|
const DeviceInfo_DeviceType DeviceInfo::DeviceType_MIN;
|
|
const DeviceInfo_DeviceType DeviceInfo::DeviceType_MAX;
|
|
const int DeviceInfo::DeviceType_ARRAYSIZE;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const ::google::protobuf::EnumDescriptor* DeviceInfo_DeviceRole_descriptor() {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return protobuf_messageserialize_2eproto::file_level_enum_descriptors[1];
|
|
}
|
|
bool DeviceInfo_DeviceRole_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const DeviceInfo_DeviceRole DeviceInfo::INITIATOR;
|
|
const DeviceInfo_DeviceRole DeviceInfo::RECIPIENT;
|
|
const DeviceInfo_DeviceRole DeviceInfo::DeviceRole_MIN;
|
|
const DeviceInfo_DeviceRole DeviceInfo::DeviceRole_MAX;
|
|
const int DeviceInfo::DeviceRole_ARRAYSIZE;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const ::google::protobuf::EnumDescriptor* ReplyMessage_StatusType_descriptor() {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return protobuf_messageserialize_2eproto::file_level_enum_descriptors[2];
|
|
}
|
|
bool ReplyMessage_StatusType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
case 9:
|
|
case 10:
|
|
case 11:
|
|
case 12:
|
|
case 13:
|
|
case 14:
|
|
case 15:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const ReplyMessage_StatusType ReplyMessage::ERROR;
|
|
const ReplyMessage_StatusType ReplyMessage::CONNECTED;
|
|
const ReplyMessage_StatusType ReplyMessage::DISCONNECTED;
|
|
const ReplyMessage_StatusType ReplyMessage::DEVICEINFO;
|
|
const ReplyMessage_StatusType ReplyMessage::DATA;
|
|
const ReplyMessage_StatusType ReplyMessage::DATAREADY;
|
|
const ReplyMessage_StatusType ReplyMessage::FILEINFO;
|
|
const ReplyMessage_StatusType ReplyMessage::FILEREADY;
|
|
const ReplyMessage_StatusType ReplyMessage::STREAM;
|
|
const ReplyMessage_StatusType ReplyMessage::STREAMREADY;
|
|
const ReplyMessage_StatusType ReplyMessage::BUSY;
|
|
const ReplyMessage_StatusType ReplyMessage::STARTAUDIOSERVER;
|
|
const ReplyMessage_StatusType ReplyMessage::CANCELSCREEN;
|
|
const ReplyMessage_StatusType ReplyMessage::URGENTCLIENT;
|
|
const ReplyMessage_StatusType ReplyMessage::URGENTSERVER;
|
|
const ReplyMessage_StatusType ReplyMessage::REFUSE;
|
|
const ReplyMessage_StatusType ReplyMessage::StatusType_MIN;
|
|
const ReplyMessage_StatusType ReplyMessage::StatusType_MAX;
|
|
const int ReplyMessage::StatusType_ARRAYSIZE;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const ::google::protobuf::EnumDescriptor* ReplyMessage_ConnType_descriptor() {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return protobuf_messageserialize_2eproto::file_level_enum_descriptors[3];
|
|
}
|
|
bool ReplyMessage_ConnType_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const ReplyMessage_ConnType ReplyMessage::ADB;
|
|
const ReplyMessage_ConnType ReplyMessage::WIFI;
|
|
const ReplyMessage_ConnType ReplyMessage::WIFIADB;
|
|
const ReplyMessage_ConnType ReplyMessage::ConnType_MIN;
|
|
const ReplyMessage_ConnType ReplyMessage::ConnType_MAX;
|
|
const int ReplyMessage::ConnType_ARRAYSIZE;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
// ===================================================================
|
|
|
|
void ProtobufFileInfo::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int ProtobufFileInfo::kIdFieldNumber;
|
|
const int ProtobufFileInfo::kNameFieldNumber;
|
|
const int ProtobufFileInfo::kSizeFieldNumber;
|
|
const int ProtobufFileInfo::kPathFieldNumber;
|
|
const int ProtobufFileInfo::kDateFieldNumber;
|
|
const int ProtobufFileInfo::kDurationFieldNumber;
|
|
const int ProtobufFileInfo::kThumbPathFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
ProtobufFileInfo::ProtobufFileInfo()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
::google::protobuf::internal::InitSCC(
|
|
&protobuf_messageserialize_2eproto::scc_info_ProtobufFileInfo.base);
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ProtobufFileInfo)
|
|
}
|
|
ProtobufFileInfo::ProtobufFileInfo(const ProtobufFileInfo& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_name()) {
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_path()) {
|
|
path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_);
|
|
}
|
|
date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_date()) {
|
|
date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
|
|
}
|
|
thumb_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_thumb_path()) {
|
|
thumb_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumb_path_);
|
|
}
|
|
::memcpy(&id_, &from.id_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&duration_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(duration_));
|
|
// @@protoc_insertion_point(copy_constructor:ProtobufFileInfo)
|
|
}
|
|
|
|
void ProtobufFileInfo::SharedCtor() {
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
thumb_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&duration_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(duration_));
|
|
}
|
|
|
|
ProtobufFileInfo::~ProtobufFileInfo() {
|
|
// @@protoc_insertion_point(destructor:ProtobufFileInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ProtobufFileInfo::SharedDtor() {
|
|
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
date_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
thumb_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void ProtobufFileInfo::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ::google::protobuf::Descriptor* ProtobufFileInfo::descriptor() {
|
|
::protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const ProtobufFileInfo& ProtobufFileInfo::default_instance() {
|
|
::google::protobuf::internal::InitSCC(&protobuf_messageserialize_2eproto::scc_info_ProtobufFileInfo.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ProtobufFileInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ProtobufFileInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 15u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
name_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
path_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
date_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
thumb_path_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
}
|
|
if (cached_has_bits & 112u) {
|
|
::memset(&id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&duration_) -
|
|
reinterpret_cast<char*>(&id_)) + sizeof(duration_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool ProtobufFileInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ProtobufFileInfo)
|
|
for (;;) {
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int64 id = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
set_has_id();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &id_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string name = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"ProtobufFileInfo.name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required int64 size = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
set_has_size();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &size_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string path = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_path()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->path().data(), static_cast<int>(this->path().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"ProtobufFileInfo.path");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string date = 5;
|
|
case 5: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_date()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->date().data(), static_cast<int>(this->date().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"ProtobufFileInfo.date");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional int64 duration = 6;
|
|
case 6: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
|
|
set_has_duration();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &duration_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional string thumb_path = 7;
|
|
case 7: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_thumb_path()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->thumb_path().data(), static_cast<int>(this->thumb_path().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"ProtobufFileInfo.thumb_path");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ProtobufFileInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ProtobufFileInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ProtobufFileInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ProtobufFileInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int64 id = 1;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
|
|
}
|
|
|
|
// required string name = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->name(), output);
|
|
}
|
|
|
|
// required int64 size = 3;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->size(), output);
|
|
}
|
|
|
|
// required string path = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->path().data(), static_cast<int>(this->path().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.path");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->path(), output);
|
|
}
|
|
|
|
// required string date = 5;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->date().data(), static_cast<int>(this->date().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.date");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
5, this->date(), output);
|
|
}
|
|
|
|
// optional int64 duration = 6;
|
|
if (cached_has_bits & 0x00000040u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->duration(), output);
|
|
}
|
|
|
|
// optional string thumb_path = 7;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->thumb_path().data(), static_cast<int>(this->thumb_path().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.thumb_path");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
7, this->thumb_path(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ProtobufFileInfo)
|
|
}
|
|
|
|
::google::protobuf::uint8* ProtobufFileInfo::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:ProtobufFileInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int64 id = 1;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
|
|
}
|
|
|
|
// required string name = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->name(), target);
|
|
}
|
|
|
|
// required int64 size = 3;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->size(), target);
|
|
}
|
|
|
|
// required string path = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->path().data(), static_cast<int>(this->path().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.path");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->path(), target);
|
|
}
|
|
|
|
// required string date = 5;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->date().data(), static_cast<int>(this->date().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.date");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
5, this->date(), target);
|
|
}
|
|
|
|
// optional int64 duration = 6;
|
|
if (cached_has_bits & 0x00000040u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->duration(), target);
|
|
}
|
|
|
|
// optional string thumb_path = 7;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->thumb_path().data(), static_cast<int>(this->thumb_path().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ProtobufFileInfo.thumb_path");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
7, this->thumb_path(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ProtobufFileInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t ProtobufFileInfo::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ProtobufFileInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (has_name()) {
|
|
// required string name = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
if (has_path()) {
|
|
// required string path = 4;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->path());
|
|
}
|
|
|
|
if (has_date()) {
|
|
// required string date = 5;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->date());
|
|
}
|
|
|
|
if (has_id()) {
|
|
// required int64 id = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->id());
|
|
}
|
|
|
|
if (has_size()) {
|
|
// required int64 size = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->size());
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t ProtobufFileInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ProtobufFileInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
if (((_has_bits_[0] & 0x00000037) ^ 0x00000037) == 0) { // All required fields are present.
|
|
// required string name = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
|
|
// required string path = 4;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->path());
|
|
|
|
// required string date = 5;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->date());
|
|
|
|
// required int64 id = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->id());
|
|
|
|
// required int64 size = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->size());
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
// optional string thumb_path = 7;
|
|
if (has_thumb_path()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->thumb_path());
|
|
}
|
|
|
|
// optional int64 duration = 6;
|
|
if (has_duration()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->duration());
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ProtobufFileInfo::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ProtobufFileInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ProtobufFileInfo* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const ProtobufFileInfo>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ProtobufFileInfo)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ProtobufFileInfo)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ProtobufFileInfo::MergeFrom(const ProtobufFileInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ProtobufFileInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 127u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_name();
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
set_has_path();
|
|
path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_);
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
set_has_date();
|
|
date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
set_has_thumb_path();
|
|
thumb_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.thumb_path_);
|
|
}
|
|
if (cached_has_bits & 0x00000010u) {
|
|
id_ = from.id_;
|
|
}
|
|
if (cached_has_bits & 0x00000020u) {
|
|
size_ = from.size_;
|
|
}
|
|
if (cached_has_bits & 0x00000040u) {
|
|
duration_ = from.duration_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void ProtobufFileInfo::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ProtobufFileInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ProtobufFileInfo::CopyFrom(const ProtobufFileInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ProtobufFileInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ProtobufFileInfo::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false;
|
|
return true;
|
|
}
|
|
|
|
void ProtobufFileInfo::Swap(ProtobufFileInfo* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void ProtobufFileInfo::InternalSwap(ProtobufFileInfo* other) {
|
|
using std::swap;
|
|
name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
path_.Swap(&other->path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
date_.Swap(&other->date_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
thumb_path_.Swap(&other->thumb_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(id_, other->id_);
|
|
swap(size_, other->size_);
|
|
swap(duration_, other->duration_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
}
|
|
|
|
::google::protobuf::Metadata ProtobufFileInfo::GetMetadata() const {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void ProtobufFilesInfo::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int ProtobufFilesInfo::kFileInfoFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
ProtobufFilesInfo::ProtobufFilesInfo()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
::google::protobuf::internal::InitSCC(
|
|
&protobuf_messageserialize_2eproto::scc_info_ProtobufFilesInfo.base);
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ProtobufFilesInfo)
|
|
}
|
|
ProtobufFilesInfo::ProtobufFilesInfo(const ProtobufFilesInfo& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
file_info_(from.file_info_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:ProtobufFilesInfo)
|
|
}
|
|
|
|
void ProtobufFilesInfo::SharedCtor() {
|
|
}
|
|
|
|
ProtobufFilesInfo::~ProtobufFilesInfo() {
|
|
// @@protoc_insertion_point(destructor:ProtobufFilesInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ProtobufFilesInfo::SharedDtor() {
|
|
}
|
|
|
|
void ProtobufFilesInfo::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ::google::protobuf::Descriptor* ProtobufFilesInfo::descriptor() {
|
|
::protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const ProtobufFilesInfo& ProtobufFilesInfo::default_instance() {
|
|
::google::protobuf::internal::InitSCC(&protobuf_messageserialize_2eproto::scc_info_ProtobufFilesInfo.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ProtobufFilesInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ProtobufFilesInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
file_info_.Clear();
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool ProtobufFilesInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ProtobufFilesInfo)
|
|
for (;;) {
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .ProtobufFileInfo file_info = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, add_file_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ProtobufFilesInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ProtobufFilesInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ProtobufFilesInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ProtobufFilesInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .ProtobufFileInfo file_info = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->file_info_size()); i < n; i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1,
|
|
this->file_info(static_cast<int>(i)),
|
|
output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ProtobufFilesInfo)
|
|
}
|
|
|
|
::google::protobuf::uint8* ProtobufFilesInfo::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:ProtobufFilesInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .ProtobufFileInfo file_info = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->file_info_size()); i < n; i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->file_info(static_cast<int>(i)), deterministic, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ProtobufFilesInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t ProtobufFilesInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ProtobufFilesInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// repeated .ProtobufFileInfo file_info = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->file_info_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
this->file_info(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ProtobufFilesInfo::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ProtobufFilesInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ProtobufFilesInfo* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const ProtobufFilesInfo>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ProtobufFilesInfo)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ProtobufFilesInfo)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ProtobufFilesInfo::MergeFrom(const ProtobufFilesInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ProtobufFilesInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
file_info_.MergeFrom(from.file_info_);
|
|
}
|
|
|
|
void ProtobufFilesInfo::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ProtobufFilesInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ProtobufFilesInfo::CopyFrom(const ProtobufFilesInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ProtobufFilesInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ProtobufFilesInfo::IsInitialized() const {
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->file_info())) return false;
|
|
return true;
|
|
}
|
|
|
|
void ProtobufFilesInfo::Swap(ProtobufFilesInfo* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void ProtobufFilesInfo::InternalSwap(ProtobufFilesInfo* other) {
|
|
using std::swap;
|
|
CastToBase(&file_info_)->InternalSwap(CastToBase(&other->file_info_));
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
}
|
|
|
|
::google::protobuf::Metadata ProtobufFilesInfo::GetMetadata() const {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void FtpUserPwd::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int FtpUserPwd::kUsernameFieldNumber;
|
|
const int FtpUserPwd::kPwdFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
FtpUserPwd::FtpUserPwd()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
::google::protobuf::internal::InitSCC(
|
|
&protobuf_messageserialize_2eproto::scc_info_FtpUserPwd.base);
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:FtpUserPwd)
|
|
}
|
|
FtpUserPwd::FtpUserPwd(const FtpUserPwd& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_username()) {
|
|
username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_);
|
|
}
|
|
pwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_pwd()) {
|
|
pwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pwd_);
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:FtpUserPwd)
|
|
}
|
|
|
|
void FtpUserPwd::SharedCtor() {
|
|
username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
pwd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
FtpUserPwd::~FtpUserPwd() {
|
|
// @@protoc_insertion_point(destructor:FtpUserPwd)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FtpUserPwd::SharedDtor() {
|
|
username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
pwd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void FtpUserPwd::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ::google::protobuf::Descriptor* FtpUserPwd::descriptor() {
|
|
::protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const FtpUserPwd& FtpUserPwd::default_instance() {
|
|
::google::protobuf::internal::InitSCC(&protobuf_messageserialize_2eproto::scc_info_FtpUserPwd.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void FtpUserPwd::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:FtpUserPwd)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
username_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
pwd_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool FtpUserPwd::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:FtpUserPwd)
|
|
for (;;) {
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string username = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_username()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->username().data(), static_cast<int>(this->username().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"FtpUserPwd.username");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string pwd = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_pwd()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pwd().data(), static_cast<int>(this->pwd().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"FtpUserPwd.pwd");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:FtpUserPwd)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:FtpUserPwd)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FtpUserPwd::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:FtpUserPwd)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string username = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->username().data(), static_cast<int>(this->username().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"FtpUserPwd.username");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->username(), output);
|
|
}
|
|
|
|
// required string pwd = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pwd().data(), static_cast<int>(this->pwd().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"FtpUserPwd.pwd");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->pwd(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:FtpUserPwd)
|
|
}
|
|
|
|
::google::protobuf::uint8* FtpUserPwd::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:FtpUserPwd)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string username = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->username().data(), static_cast<int>(this->username().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"FtpUserPwd.username");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->username(), target);
|
|
}
|
|
|
|
// required string pwd = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->pwd().data(), static_cast<int>(this->pwd().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"FtpUserPwd.pwd");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->pwd(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:FtpUserPwd)
|
|
return target;
|
|
}
|
|
|
|
size_t FtpUserPwd::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:FtpUserPwd)
|
|
size_t total_size = 0;
|
|
|
|
if (has_username()) {
|
|
// required string username = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->username());
|
|
}
|
|
|
|
if (has_pwd()) {
|
|
// required string pwd = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pwd());
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t FtpUserPwd::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:FtpUserPwd)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
// required string username = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->username());
|
|
|
|
// required string pwd = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->pwd());
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void FtpUserPwd::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:FtpUserPwd)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const FtpUserPwd* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const FtpUserPwd>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:FtpUserPwd)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:FtpUserPwd)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FtpUserPwd::MergeFrom(const FtpUserPwd& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:FtpUserPwd)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_username();
|
|
username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
set_has_pwd();
|
|
pwd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pwd_);
|
|
}
|
|
}
|
|
}
|
|
|
|
void FtpUserPwd::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:FtpUserPwd)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FtpUserPwd::CopyFrom(const FtpUserPwd& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:FtpUserPwd)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FtpUserPwd::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
return true;
|
|
}
|
|
|
|
void FtpUserPwd::Swap(FtpUserPwd* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void FtpUserPwd::InternalSwap(FtpUserPwd* other) {
|
|
using std::swap;
|
|
username_.Swap(&other->username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
pwd_.Swap(&other->pwd_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
}
|
|
|
|
::google::protobuf::Metadata FtpUserPwd::GetMetadata() const {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void DeviceInfo::InitAsDefaultInstance() {
|
|
::_DeviceInfo_default_instance_._instance.get_mutable()->ftp_userpwd_ = const_cast< ::FtpUserPwd*>(
|
|
::FtpUserPwd::internal_default_instance());
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int DeviceInfo::kUuidFieldNumber;
|
|
const int DeviceInfo::kDeviceNameFieldNumber;
|
|
const int DeviceInfo::kDeviceTypeFieldNumber;
|
|
const int DeviceInfo::kFtpUserpwdFieldNumber;
|
|
const int DeviceInfo::kDeviceRoleFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
DeviceInfo::DeviceInfo()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
::google::protobuf::internal::InitSCC(
|
|
&protobuf_messageserialize_2eproto::scc_info_DeviceInfo.base);
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:DeviceInfo)
|
|
}
|
|
DeviceInfo::DeviceInfo(const DeviceInfo& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_uuid()) {
|
|
uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
|
|
}
|
|
device_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_device_name()) {
|
|
device_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_name_);
|
|
}
|
|
if (from.has_ftp_userpwd()) {
|
|
ftp_userpwd_ = new ::FtpUserPwd(*from.ftp_userpwd_);
|
|
} else {
|
|
ftp_userpwd_ = NULL;
|
|
}
|
|
::memcpy(&device_type_, &from.device_type_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&device_role_) -
|
|
reinterpret_cast<char*>(&device_type_)) + sizeof(device_role_));
|
|
// @@protoc_insertion_point(copy_constructor:DeviceInfo)
|
|
}
|
|
|
|
void DeviceInfo::SharedCtor() {
|
|
uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
device_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&ftp_userpwd_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&device_role_) -
|
|
reinterpret_cast<char*>(&ftp_userpwd_)) + sizeof(device_role_));
|
|
}
|
|
|
|
DeviceInfo::~DeviceInfo() {
|
|
// @@protoc_insertion_point(destructor:DeviceInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DeviceInfo::SharedDtor() {
|
|
uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
device_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete ftp_userpwd_;
|
|
}
|
|
|
|
void DeviceInfo::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ::google::protobuf::Descriptor* DeviceInfo::descriptor() {
|
|
::protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const DeviceInfo& DeviceInfo::default_instance() {
|
|
::google::protobuf::internal::InitSCC(&protobuf_messageserialize_2eproto::scc_info_DeviceInfo.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void DeviceInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:DeviceInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 7u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
uuid_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
device_name_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
GOOGLE_DCHECK(ftp_userpwd_ != NULL);
|
|
ftp_userpwd_->Clear();
|
|
}
|
|
}
|
|
if (cached_has_bits & 24u) {
|
|
::memset(&device_type_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&device_role_) -
|
|
reinterpret_cast<char*>(&device_type_)) + sizeof(device_role_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool DeviceInfo::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:DeviceInfo)
|
|
for (;;) {
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string uuid = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_uuid()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid().data(), static_cast<int>(this->uuid().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"DeviceInfo.uuid");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string device_name = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_device_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->device_name().data(), static_cast<int>(this->device_name().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"DeviceInfo.device_name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceType device_type = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::DeviceInfo_DeviceType_IsValid(value)) {
|
|
set_device_type(static_cast< ::DeviceInfo_DeviceType >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(
|
|
3, static_cast< ::google::protobuf::uint64>(value));
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .FtpUserPwd ftp_userpwd = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_ftp_userpwd()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceRole device_role = 5;
|
|
case 5: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::DeviceInfo_DeviceRole_IsValid(value)) {
|
|
set_device_role(static_cast< ::DeviceInfo_DeviceRole >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(
|
|
5, static_cast< ::google::protobuf::uint64>(value));
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:DeviceInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:DeviceInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void DeviceInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:DeviceInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string uuid = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid().data(), static_cast<int>(this->uuid().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"DeviceInfo.uuid");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->uuid(), output);
|
|
}
|
|
|
|
// required string device_name = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->device_name().data(), static_cast<int>(this->device_name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"DeviceInfo.device_name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->device_name(), output);
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceType device_type = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
3, this->device_type(), output);
|
|
}
|
|
|
|
// optional .FtpUserPwd ftp_userpwd = 4;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
4, this->_internal_ftp_userpwd(), output);
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceRole device_role = 5;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
5, this->device_role(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:DeviceInfo)
|
|
}
|
|
|
|
::google::protobuf::uint8* DeviceInfo::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:DeviceInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string uuid = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid().data(), static_cast<int>(this->uuid().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"DeviceInfo.uuid");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->uuid(), target);
|
|
}
|
|
|
|
// required string device_name = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->device_name().data(), static_cast<int>(this->device_name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"DeviceInfo.device_name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->device_name(), target);
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceType device_type = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
3, this->device_type(), target);
|
|
}
|
|
|
|
// optional .FtpUserPwd ftp_userpwd = 4;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
4, this->_internal_ftp_userpwd(), deterministic, target);
|
|
}
|
|
|
|
// required .DeviceInfo.DeviceRole device_role = 5;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
5, this->device_role(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:DeviceInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t DeviceInfo::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DeviceInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (has_uuid()) {
|
|
// required string uuid = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid());
|
|
}
|
|
|
|
if (has_device_name()) {
|
|
// required string device_name = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->device_name());
|
|
}
|
|
|
|
if (has_device_type()) {
|
|
// required .DeviceInfo.DeviceType device_type = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->device_type());
|
|
}
|
|
|
|
if (has_device_role()) {
|
|
// required .DeviceInfo.DeviceRole device_role = 5;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->device_role());
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t DeviceInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:DeviceInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
if (((_has_bits_[0] & 0x0000001b) ^ 0x0000001b) == 0) { // All required fields are present.
|
|
// required string uuid = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid());
|
|
|
|
// required string device_name = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->device_name());
|
|
|
|
// required .DeviceInfo.DeviceType device_type = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->device_type());
|
|
|
|
// required .DeviceInfo.DeviceRole device_role = 5;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->device_role());
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
// optional .FtpUserPwd ftp_userpwd = 4;
|
|
if (has_ftp_userpwd()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*ftp_userpwd_);
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void DeviceInfo::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:DeviceInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const DeviceInfo* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const DeviceInfo>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:DeviceInfo)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:DeviceInfo)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void DeviceInfo::MergeFrom(const DeviceInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:DeviceInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 31u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_uuid();
|
|
uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
set_has_device_name();
|
|
device_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_name_);
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
mutable_ftp_userpwd()->::FtpUserPwd::MergeFrom(from.ftp_userpwd());
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
device_type_ = from.device_type_;
|
|
}
|
|
if (cached_has_bits & 0x00000010u) {
|
|
device_role_ = from.device_role_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void DeviceInfo::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:DeviceInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void DeviceInfo::CopyFrom(const DeviceInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:DeviceInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DeviceInfo::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false;
|
|
if (has_ftp_userpwd()) {
|
|
if (!this->ftp_userpwd_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void DeviceInfo::Swap(DeviceInfo* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void DeviceInfo::InternalSwap(DeviceInfo* other) {
|
|
using std::swap;
|
|
uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
device_name_.Swap(&other->device_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(ftp_userpwd_, other->ftp_userpwd_);
|
|
swap(device_type_, other->device_type_);
|
|
swap(device_role_, other->device_role_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
}
|
|
|
|
::google::protobuf::Metadata DeviceInfo::GetMetadata() const {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void ReplyMessage::InitAsDefaultInstance() {
|
|
::_ReplyMessage_default_instance_._instance.get_mutable()->device_info_ = const_cast< ::DeviceInfo*>(
|
|
::DeviceInfo::internal_default_instance());
|
|
::_ReplyMessage_default_instance_._instance.get_mutable()->files_info_ = const_cast< ::ProtobufFilesInfo*>(
|
|
::ProtobufFilesInfo::internal_default_instance());
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int ReplyMessage::kStatusFieldNumber;
|
|
const int ReplyMessage::kDataSizeFieldNumber;
|
|
const int ReplyMessage::kDeviceInfoFieldNumber;
|
|
const int ReplyMessage::kFilesInfoFieldNumber;
|
|
const int ReplyMessage::kConnTypeFieldNumber;
|
|
const int ReplyMessage::kErrorStringFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
ReplyMessage::ReplyMessage()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
::google::protobuf::internal::InitSCC(
|
|
&protobuf_messageserialize_2eproto::scc_info_ReplyMessage.base);
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:ReplyMessage)
|
|
}
|
|
ReplyMessage::ReplyMessage(const ReplyMessage& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
error_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_error_string()) {
|
|
error_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_string_);
|
|
}
|
|
if (from.has_device_info()) {
|
|
device_info_ = new ::DeviceInfo(*from.device_info_);
|
|
} else {
|
|
device_info_ = NULL;
|
|
}
|
|
if (from.has_files_info()) {
|
|
files_info_ = new ::ProtobufFilesInfo(*from.files_info_);
|
|
} else {
|
|
files_info_ = NULL;
|
|
}
|
|
::memcpy(&datasize_, &from.datasize_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&conn_type_) -
|
|
reinterpret_cast<char*>(&datasize_)) + sizeof(conn_type_));
|
|
// @@protoc_insertion_point(copy_constructor:ReplyMessage)
|
|
}
|
|
|
|
void ReplyMessage::SharedCtor() {
|
|
error_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&device_info_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&conn_type_) -
|
|
reinterpret_cast<char*>(&device_info_)) + sizeof(conn_type_));
|
|
}
|
|
|
|
ReplyMessage::~ReplyMessage() {
|
|
// @@protoc_insertion_point(destructor:ReplyMessage)
|
|
SharedDtor();
|
|
}
|
|
|
|
void ReplyMessage::SharedDtor() {
|
|
error_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete device_info_;
|
|
if (this != internal_default_instance()) delete files_info_;
|
|
}
|
|
|
|
void ReplyMessage::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const ::google::protobuf::Descriptor* ReplyMessage::descriptor() {
|
|
::protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const ReplyMessage& ReplyMessage::default_instance() {
|
|
::google::protobuf::internal::InitSCC(&protobuf_messageserialize_2eproto::scc_info_ReplyMessage.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void ReplyMessage::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:ReplyMessage)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 7u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
error_string_.ClearNonDefaultToEmptyNoArena();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
GOOGLE_DCHECK(device_info_ != NULL);
|
|
device_info_->Clear();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
GOOGLE_DCHECK(files_info_ != NULL);
|
|
files_info_->Clear();
|
|
}
|
|
}
|
|
if (cached_has_bits & 56u) {
|
|
::memset(&datasize_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&conn_type_) -
|
|
reinterpret_cast<char*>(&datasize_)) + sizeof(conn_type_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool ReplyMessage::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:ReplyMessage)
|
|
for (;;) {
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required .ReplyMessage.StatusType status = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::ReplyMessage_StatusType_IsValid(value)) {
|
|
set_status(static_cast< ::ReplyMessage_StatusType >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(
|
|
1, static_cast< ::google::protobuf::uint64>(value));
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional int64 dataSize = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
set_has_datasize();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &datasize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .DeviceInfo device_info = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_device_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .ProtobufFilesInfo files_info = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_files_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .ReplyMessage.ConnType conn_type = 5;
|
|
case 5: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::ReplyMessage_ConnType_IsValid(value)) {
|
|
set_conn_type(static_cast< ::ReplyMessage_ConnType >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(
|
|
5, static_cast< ::google::protobuf::uint64>(value));
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional string error_string = 6;
|
|
case 6: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_error_string()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->error_string().data(), static_cast<int>(this->error_string().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"ReplyMessage.error_string");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:ReplyMessage)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:ReplyMessage)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void ReplyMessage::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:ReplyMessage)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .ReplyMessage.StatusType status = 1;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
1, this->status(), output);
|
|
}
|
|
|
|
// optional int64 dataSize = 2;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->datasize(), output);
|
|
}
|
|
|
|
// optional .DeviceInfo device_info = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
3, this->_internal_device_info(), output);
|
|
}
|
|
|
|
// optional .ProtobufFilesInfo files_info = 4;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
4, this->_internal_files_info(), output);
|
|
}
|
|
|
|
// optional .ReplyMessage.ConnType conn_type = 5;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
5, this->conn_type(), output);
|
|
}
|
|
|
|
// optional string error_string = 6;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->error_string().data(), static_cast<int>(this->error_string().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ReplyMessage.error_string");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
6, this->error_string(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:ReplyMessage)
|
|
}
|
|
|
|
::google::protobuf::uint8* ReplyMessage::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:ReplyMessage)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .ReplyMessage.StatusType status = 1;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
1, this->status(), target);
|
|
}
|
|
|
|
// optional int64 dataSize = 2;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->datasize(), target);
|
|
}
|
|
|
|
// optional .DeviceInfo device_info = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
3, this->_internal_device_info(), deterministic, target);
|
|
}
|
|
|
|
// optional .ProtobufFilesInfo files_info = 4;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
4, this->_internal_files_info(), deterministic, target);
|
|
}
|
|
|
|
// optional .ReplyMessage.ConnType conn_type = 5;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
5, this->conn_type(), target);
|
|
}
|
|
|
|
// optional string error_string = 6;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->error_string().data(), static_cast<int>(this->error_string().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"ReplyMessage.error_string");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
6, this->error_string(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:ReplyMessage)
|
|
return target;
|
|
}
|
|
|
|
size_t ReplyMessage::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:ReplyMessage)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// required .ReplyMessage.StatusType status = 1;
|
|
if (has_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
|
|
}
|
|
if (_has_bits_[0 / 32] & 15u) {
|
|
// optional string error_string = 6;
|
|
if (has_error_string()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->error_string());
|
|
}
|
|
|
|
// optional .DeviceInfo device_info = 3;
|
|
if (has_device_info()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*device_info_);
|
|
}
|
|
|
|
// optional .ProtobufFilesInfo files_info = 4;
|
|
if (has_files_info()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*files_info_);
|
|
}
|
|
|
|
// optional int64 dataSize = 2;
|
|
if (has_datasize()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->datasize());
|
|
}
|
|
|
|
}
|
|
// optional .ReplyMessage.ConnType conn_type = 5;
|
|
if (has_conn_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->conn_type());
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void ReplyMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:ReplyMessage)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const ReplyMessage* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const ReplyMessage>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ReplyMessage)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:ReplyMessage)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void ReplyMessage::MergeFrom(const ReplyMessage& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:ReplyMessage)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 63u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_error_string();
|
|
error_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_string_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
mutable_device_info()->::DeviceInfo::MergeFrom(from.device_info());
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
mutable_files_info()->::ProtobufFilesInfo::MergeFrom(from.files_info());
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
datasize_ = from.datasize_;
|
|
}
|
|
if (cached_has_bits & 0x00000010u) {
|
|
status_ = from.status_;
|
|
}
|
|
if (cached_has_bits & 0x00000020u) {
|
|
conn_type_ = from.conn_type_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void ReplyMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:ReplyMessage)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void ReplyMessage::CopyFrom(const ReplyMessage& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:ReplyMessage)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool ReplyMessage::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000010) != 0x00000010) return false;
|
|
if (has_device_info()) {
|
|
if (!this->device_info_->IsInitialized()) return false;
|
|
}
|
|
if (has_files_info()) {
|
|
if (!this->files_info_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void ReplyMessage::Swap(ReplyMessage* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void ReplyMessage::InternalSwap(ReplyMessage* other) {
|
|
using std::swap;
|
|
error_string_.Swap(&other->error_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
GetArenaNoVirtual());
|
|
swap(device_info_, other->device_info_);
|
|
swap(files_info_, other->files_info_);
|
|
swap(datasize_, other->datasize_);
|
|
swap(status_, other->status_);
|
|
swap(conn_type_, other->conn_type_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
}
|
|
|
|
::google::protobuf::Metadata ReplyMessage::GetMetadata() const {
|
|
protobuf_messageserialize_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_messageserialize_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
namespace google {
|
|
namespace protobuf {
|
|
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::ProtobufFileInfo* Arena::CreateMaybeMessage< ::ProtobufFileInfo >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ProtobufFileInfo >(arena);
|
|
}
|
|
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::ProtobufFilesInfo* Arena::CreateMaybeMessage< ::ProtobufFilesInfo >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ProtobufFilesInfo >(arena);
|
|
}
|
|
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::FtpUserPwd* Arena::CreateMaybeMessage< ::FtpUserPwd >(Arena* arena) {
|
|
return Arena::CreateInternal< ::FtpUserPwd >(arena);
|
|
}
|
|
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::DeviceInfo* Arena::CreateMaybeMessage< ::DeviceInfo >(Arena* arena) {
|
|
return Arena::CreateInternal< ::DeviceInfo >(arena);
|
|
}
|
|
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::ReplyMessage* Arena::CreateMaybeMessage< ::ReplyMessage >(Arena* arena) {
|
|
return Arena::CreateInternal< ::ReplyMessage >(arena);
|
|
}
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
|
|
// @@protoc_insertion_point(global_scope)
|