// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: sysset.proto
|
|
#include "sysset.pb.h"
|
|
#include <algorithm>
|
|
#include <google/protobuf/io/coded_stream.h>
|
#include <google/protobuf/extension_set.h>
|
#include <google/protobuf/wire_format_lite.h>
|
#include <google/protobuf/descriptor.h>
|
#include <google/protobuf/generated_message_reflection.h>
|
#include <google/protobuf/reflection_ops.h>
|
#include <google/protobuf/wire_format.h>
|
// @@protoc_insertion_point(includes)
|
#include <google/protobuf/port_def.inc>
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
namespace protomsg {
|
constexpr LocalConfig::LocalConfig(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: server_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, server_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, server_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, alarm_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, web_pic_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, es_pic_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, reserved_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, gate_way_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, net_mask_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, server_type_(0)
|
, alarm_port_(0)
|
, web_pic_port_(0)
|
, es_pic_port_(0)
|
, cut_max_duration_(0)
|
, cut_min_duration_(0)
|
, real_max_(0)
|
, alarm_threshold_type_(0)
|
, alarm_threshold_(0){}
|
struct LocalConfigDefaultTypeInternal {
|
constexpr LocalConfigDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~LocalConfigDefaultTypeInternal() {}
|
union {
|
LocalConfig _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalConfigDefaultTypeInternal _LocalConfig_default_instance_;
|
constexpr PollConfig::PollConfig(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: server_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, poll_period_(0)
|
, delay_(0)
|
, enable_(false)
|
, pollchannelcount_(0){}
|
struct PollConfigDefaultTypeInternal {
|
constexpr PollConfigDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~PollConfigDefaultTypeInternal() {}
|
union {
|
PollConfig _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PollConfigDefaultTypeInternal _PollConfig_default_instance_;
|
constexpr Cluster::Cluster(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: nodes_()
|
, cluster_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, cluster_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, virtual_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
|
struct ClusterDefaultTypeInternal {
|
constexpr ClusterDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~ClusterDefaultTypeInternal() {}
|
union {
|
Cluster _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClusterDefaultTypeInternal _Cluster_default_instance_;
|
constexpr ClusterNode::ClusterNode(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, cluster_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, server_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, server_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, node_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, node_ip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, create_time_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
|
struct ClusterNodeDefaultTypeInternal {
|
constexpr ClusterNodeDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~ClusterNodeDefaultTypeInternal() {}
|
union {
|
ClusterNode _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ClusterNodeDefaultTypeInternal _ClusterNode_default_instance_;
|
constexpr ResourceConfig::ResourceConfig(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: serviceip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, domain_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, iptype_(0)
|
, fileport_(0){}
|
struct ResourceConfigDefaultTypeInternal {
|
constexpr ResourceConfigDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~ResourceConfigDefaultTypeInternal() {}
|
union {
|
ResourceConfig _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ResourceConfigDefaultTypeInternal _ResourceConfig_default_instance_;
|
constexpr Gb28181Config::Gb28181Config(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, serverip_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, serverport_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, publicid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, gbserverport_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, updatetime_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
, isauth_(false){}
|
struct Gb28181ConfigDefaultTypeInternal {
|
constexpr Gb28181ConfigDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~Gb28181ConfigDefaultTypeInternal() {}
|
union {
|
Gb28181Config _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Gb28181ConfigDefaultTypeInternal _Gb28181Config_default_instance_;
|
} // namespace protomsg
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_sysset_2eproto[6];
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_sysset_2eproto = nullptr;
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_sysset_2eproto = nullptr;
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_sysset_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, server_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, server_name_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, server_type_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, server_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, alarm_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, alarm_port_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, web_pic_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, web_pic_port_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, es_pic_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, es_pic_port_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, cut_max_duration_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, cut_min_duration_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, reserved_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, gate_way_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, net_mask_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, real_max_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, alarm_threshold_type_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::LocalConfig, alarm_threshold_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, server_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, poll_period_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, delay_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, enable_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::PollConfig, pollchannelcount_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, cluster_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, cluster_name_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, password_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, virtual_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Cluster, nodes_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, cluster_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, server_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, server_name_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, node_id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, node_ip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ClusterNode, create_time_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::ResourceConfig, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::ResourceConfig, iptype_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ResourceConfig, serviceip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ResourceConfig, domain_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::ResourceConfig, fileport_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, id_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, serverip_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, serverport_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, publicid_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, gbserverport_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, isauth_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, password_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Gb28181Config, updatetime_),
|
};
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
{ 0, -1, sizeof(::protomsg::LocalConfig)},
|
{ 23, -1, sizeof(::protomsg::PollConfig)},
|
{ 33, -1, sizeof(::protomsg::Cluster)},
|
{ 43, -1, sizeof(::protomsg::ClusterNode)},
|
{ 55, -1, sizeof(::protomsg::ResourceConfig)},
|
{ 64, -1, sizeof(::protomsg::Gb28181Config)},
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_LocalConfig_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_PollConfig_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_Cluster_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_ClusterNode_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_ResourceConfig_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_Gb28181Config_default_instance_),
|
};
|
|
const char descriptor_table_protodef_sysset_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
"\n\014sysset.proto\022\010protomsg\"\210\003\n\013LocalConfig"
|
"\022\021\n\tserver_id\030\001 \001(\t\022\023\n\013server_name\030\002 \001(\t"
|
"\022\023\n\013server_type\030\003 \001(\005\022\021\n\tserver_ip\030\004 \001(\t"
|
"\022\020\n\010alarm_ip\030\005 \001(\t\022\022\n\nalarm_port\030\006 \001(\005\022\022"
|
"\n\nweb_pic_ip\030\007 \001(\t\022\024\n\014web_pic_port\030\010 \001(\005"
|
"\022\021\n\tes_pic_ip\030\t \001(\t\022\023\n\013es_pic_port\030\n \001(\005"
|
"\022\030\n\020cut_max_duration\030\013 \001(\005\022\030\n\020cut_min_du"
|
"ration\030\014 \001(\005\022\020\n\010reserved\030\r \001(\t\022\020\n\010gate_w"
|
"ay\030\016 \001(\t\022\020\n\010net_mask\030\017 \001(\t\022\020\n\010real_max\030\020"
|
" \001(\005\022\034\n\024alarm_threshold_type\030\021 \001(\005\022\027\n\017al"
|
"arm_threshold\030\022 \001(\005\"m\n\nPollConfig\022\021\n\tser"
|
"ver_id\030\001 \001(\t\022\023\n\013poll_period\030\002 \001(\005\022\r\n\005del"
|
"ay\030\003 \001(\005\022\016\n\006enable\030\004 \001(\010\022\030\n\020pollChannelC"
|
"ount\030\005 \001(\005\"\177\n\007Cluster\022\022\n\ncluster_id\030\001 \001("
|
"\t\022\024\n\014cluster_name\030\002 \001(\t\022\020\n\010password\030\003 \001("
|
"\t\022\022\n\nvirtual_ip\030\004 \001(\t\022$\n\005nodes\030\005 \003(\0132\025.p"
|
"rotomsg.ClusterNode\"\214\001\n\013ClusterNode\022\n\n\002i"
|
"d\030\001 \001(\t\022\022\n\ncluster_id\030\002 \001(\t\022\021\n\tserver_id"
|
"\030\003 \001(\t\022\023\n\013server_name\030\004 \001(\t\022\017\n\007node_id\030\005"
|
" \001(\t\022\017\n\007node_ip\030\006 \001(\t\022\023\n\013create_time\030\007 \001"
|
"(\t\"U\n\016ResourceConfig\022\016\n\006ipType\030\001 \001(\005\022\021\n\t"
|
"serviceIp\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\020\n\010fileP"
|
"ort\030\004 \001(\005\"\237\001\n\rGb28181Config\022\n\n\002Id\030\001 \001(\t\022"
|
"\020\n\010ServerIp\030\002 \001(\t\022\022\n\nServerPort\030\003 \001(\t\022\020\n"
|
"\010PublicId\030\004 \001(\t\022\024\n\014GbServerPort\030\005 \001(\t\022\016\n"
|
"\006IsAuth\030\006 \001(\010\022\020\n\010Password\030\007 \001(\t\022\022\n\nUpdat"
|
"eTime\030\010 \001(\tb\006proto3"
|
;
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_sysset_2eproto_once;
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_sysset_2eproto = {
|
false, false, 1059, descriptor_table_protodef_sysset_2eproto, "sysset.proto",
|
&descriptor_table_sysset_2eproto_once, nullptr, 0, 6,
|
schemas, file_default_instances, TableStruct_sysset_2eproto::offsets,
|
file_level_metadata_sysset_2eproto, file_level_enum_descriptors_sysset_2eproto, file_level_service_descriptors_sysset_2eproto,
|
};
|
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_sysset_2eproto_getter() {
|
return &descriptor_table_sysset_2eproto;
|
}
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_sysset_2eproto(&descriptor_table_sysset_2eproto);
|
namespace protomsg {
|
|
// ===================================================================
|
|
class LocalConfig::_Internal {
|
public:
|
};
|
|
LocalConfig::LocalConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.LocalConfig)
|
}
|
LocalConfig::LocalConfig(const LocalConfig& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_id().empty()) {
|
server_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_id(),
|
GetArenaForAllocation());
|
}
|
server_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_name().empty()) {
|
server_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_name(),
|
GetArenaForAllocation());
|
}
|
server_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_ip().empty()) {
|
server_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_ip(),
|
GetArenaForAllocation());
|
}
|
alarm_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_alarm_ip().empty()) {
|
alarm_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_alarm_ip(),
|
GetArenaForAllocation());
|
}
|
web_pic_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_web_pic_ip().empty()) {
|
web_pic_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_web_pic_ip(),
|
GetArenaForAllocation());
|
}
|
es_pic_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_es_pic_ip().empty()) {
|
es_pic_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_es_pic_ip(),
|
GetArenaForAllocation());
|
}
|
reserved_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_reserved().empty()) {
|
reserved_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_reserved(),
|
GetArenaForAllocation());
|
}
|
gate_way_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_gate_way().empty()) {
|
gate_way_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_gate_way(),
|
GetArenaForAllocation());
|
}
|
net_mask_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_net_mask().empty()) {
|
net_mask_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_net_mask(),
|
GetArenaForAllocation());
|
}
|
::memcpy(&server_type_, &from.server_type_,
|
static_cast<size_t>(reinterpret_cast<char*>(&alarm_threshold_) -
|
reinterpret_cast<char*>(&server_type_)) + sizeof(alarm_threshold_));
|
// @@protoc_insertion_point(copy_constructor:protomsg.LocalConfig)
|
}
|
|
inline void LocalConfig::SharedCtor() {
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
alarm_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
web_pic_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
es_pic_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
reserved_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
gate_way_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
net_mask_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&server_type_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&alarm_threshold_) -
|
reinterpret_cast<char*>(&server_type_)) + sizeof(alarm_threshold_));
|
}
|
|
LocalConfig::~LocalConfig() {
|
// @@protoc_insertion_point(destructor:protomsg.LocalConfig)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void LocalConfig::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
server_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
alarm_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
web_pic_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
es_pic_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
reserved_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
gate_way_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
net_mask_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void LocalConfig::ArenaDtor(void* object) {
|
LocalConfig* _this = reinterpret_cast< LocalConfig* >(object);
|
(void)_this;
|
}
|
void LocalConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void LocalConfig::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void LocalConfig::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.LocalConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
server_id_.ClearToEmpty();
|
server_name_.ClearToEmpty();
|
server_ip_.ClearToEmpty();
|
alarm_ip_.ClearToEmpty();
|
web_pic_ip_.ClearToEmpty();
|
es_pic_ip_.ClearToEmpty();
|
reserved_.ClearToEmpty();
|
gate_way_.ClearToEmpty();
|
net_mask_.ClearToEmpty();
|
::memset(&server_type_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&alarm_threshold_) -
|
reinterpret_cast<char*>(&server_type_)) + sizeof(alarm_threshold_));
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* LocalConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// string server_id = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_server_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.server_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string server_name = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_server_name();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.server_name"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 server_type = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
server_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string server_ip = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
auto str = _internal_mutable_server_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.server_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string alarm_ip = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
auto str = _internal_mutable_alarm_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.alarm_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 alarm_port = 6;
|
case 6:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
alarm_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string web_pic_ip = 7;
|
case 7:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
auto str = _internal_mutable_web_pic_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.web_pic_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 web_pic_port = 8;
|
case 8:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
|
web_pic_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string es_pic_ip = 9;
|
case 9:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
auto str = _internal_mutable_es_pic_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.es_pic_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 es_pic_port = 10;
|
case 10:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
|
es_pic_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 cut_max_duration = 11;
|
case 11:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
|
cut_max_duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 cut_min_duration = 12;
|
case 12:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
|
cut_min_duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string reserved = 13;
|
case 13:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
|
auto str = _internal_mutable_reserved();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.reserved"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string gate_way = 14;
|
case 14:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
|
auto str = _internal_mutable_gate_way();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.gate_way"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string net_mask = 15;
|
case 15:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
|
auto str = _internal_mutable_net_mask();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.LocalConfig.net_mask"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 real_max = 16;
|
case 16:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
|
real_max_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 alarm_threshold_type = 17;
|
case 17:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
|
alarm_threshold_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 alarm_threshold = 18;
|
case 18:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
|
alarm_threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* LocalConfig::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.LocalConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// string server_id = 1;
|
if (!this->_internal_server_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_id().data(), static_cast<int>(this->_internal_server_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.server_id");
|
target = stream->WriteStringMaybeAliased(
|
1, this->_internal_server_id(), target);
|
}
|
|
// string server_name = 2;
|
if (!this->_internal_server_name().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_name().data(), static_cast<int>(this->_internal_server_name().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.server_name");
|
target = stream->WriteStringMaybeAliased(
|
2, this->_internal_server_name(), target);
|
}
|
|
// int32 server_type = 3;
|
if (this->_internal_server_type() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_server_type(), target);
|
}
|
|
// string server_ip = 4;
|
if (!this->_internal_server_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_ip().data(), static_cast<int>(this->_internal_server_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.server_ip");
|
target = stream->WriteStringMaybeAliased(
|
4, this->_internal_server_ip(), target);
|
}
|
|
// string alarm_ip = 5;
|
if (!this->_internal_alarm_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_alarm_ip().data(), static_cast<int>(this->_internal_alarm_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.alarm_ip");
|
target = stream->WriteStringMaybeAliased(
|
5, this->_internal_alarm_ip(), target);
|
}
|
|
// int32 alarm_port = 6;
|
if (this->_internal_alarm_port() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_alarm_port(), target);
|
}
|
|
// string web_pic_ip = 7;
|
if (!this->_internal_web_pic_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_web_pic_ip().data(), static_cast<int>(this->_internal_web_pic_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.web_pic_ip");
|
target = stream->WriteStringMaybeAliased(
|
7, this->_internal_web_pic_ip(), target);
|
}
|
|
// int32 web_pic_port = 8;
|
if (this->_internal_web_pic_port() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_web_pic_port(), target);
|
}
|
|
// string es_pic_ip = 9;
|
if (!this->_internal_es_pic_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_es_pic_ip().data(), static_cast<int>(this->_internal_es_pic_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.es_pic_ip");
|
target = stream->WriteStringMaybeAliased(
|
9, this->_internal_es_pic_ip(), target);
|
}
|
|
// int32 es_pic_port = 10;
|
if (this->_internal_es_pic_port() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_es_pic_port(), target);
|
}
|
|
// int32 cut_max_duration = 11;
|
if (this->_internal_cut_max_duration() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_cut_max_duration(), target);
|
}
|
|
// int32 cut_min_duration = 12;
|
if (this->_internal_cut_min_duration() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_cut_min_duration(), target);
|
}
|
|
// string reserved = 13;
|
if (!this->_internal_reserved().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_reserved().data(), static_cast<int>(this->_internal_reserved().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.reserved");
|
target = stream->WriteStringMaybeAliased(
|
13, this->_internal_reserved(), target);
|
}
|
|
// string gate_way = 14;
|
if (!this->_internal_gate_way().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_gate_way().data(), static_cast<int>(this->_internal_gate_way().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.gate_way");
|
target = stream->WriteStringMaybeAliased(
|
14, this->_internal_gate_way(), target);
|
}
|
|
// string net_mask = 15;
|
if (!this->_internal_net_mask().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_net_mask().data(), static_cast<int>(this->_internal_net_mask().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.LocalConfig.net_mask");
|
target = stream->WriteStringMaybeAliased(
|
15, this->_internal_net_mask(), target);
|
}
|
|
// int32 real_max = 16;
|
if (this->_internal_real_max() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(16, this->_internal_real_max(), target);
|
}
|
|
// int32 alarm_threshold_type = 17;
|
if (this->_internal_alarm_threshold_type() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_alarm_threshold_type(), target);
|
}
|
|
// int32 alarm_threshold = 18;
|
if (this->_internal_alarm_threshold() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(18, this->_internal_alarm_threshold(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.LocalConfig)
|
return target;
|
}
|
|
size_t LocalConfig::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.LocalConfig)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// string server_id = 1;
|
if (!this->_internal_server_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_id());
|
}
|
|
// string server_name = 2;
|
if (!this->_internal_server_name().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_name());
|
}
|
|
// string server_ip = 4;
|
if (!this->_internal_server_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_ip());
|
}
|
|
// string alarm_ip = 5;
|
if (!this->_internal_alarm_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_alarm_ip());
|
}
|
|
// string web_pic_ip = 7;
|
if (!this->_internal_web_pic_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_web_pic_ip());
|
}
|
|
// string es_pic_ip = 9;
|
if (!this->_internal_es_pic_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_es_pic_ip());
|
}
|
|
// string reserved = 13;
|
if (!this->_internal_reserved().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_reserved());
|
}
|
|
// string gate_way = 14;
|
if (!this->_internal_gate_way().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_gate_way());
|
}
|
|
// string net_mask = 15;
|
if (!this->_internal_net_mask().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_net_mask());
|
}
|
|
// int32 server_type = 3;
|
if (this->_internal_server_type() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_server_type());
|
}
|
|
// int32 alarm_port = 6;
|
if (this->_internal_alarm_port() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_alarm_port());
|
}
|
|
// int32 web_pic_port = 8;
|
if (this->_internal_web_pic_port() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_web_pic_port());
|
}
|
|
// int32 es_pic_port = 10;
|
if (this->_internal_es_pic_port() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_es_pic_port());
|
}
|
|
// int32 cut_max_duration = 11;
|
if (this->_internal_cut_max_duration() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_cut_max_duration());
|
}
|
|
// int32 cut_min_duration = 12;
|
if (this->_internal_cut_min_duration() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_cut_min_duration());
|
}
|
|
// int32 real_max = 16;
|
if (this->_internal_real_max() != 0) {
|
total_size += 2 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_real_max());
|
}
|
|
// int32 alarm_threshold_type = 17;
|
if (this->_internal_alarm_threshold_type() != 0) {
|
total_size += 2 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_alarm_threshold_type());
|
}
|
|
// int32 alarm_threshold = 18;
|
if (this->_internal_alarm_threshold() != 0) {
|
total_size += 2 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_alarm_threshold());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalConfig::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
LocalConfig::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalConfig::GetClassData() const { return &_class_data_; }
|
|
void LocalConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<LocalConfig *>(to)->MergeFrom(
|
static_cast<const LocalConfig &>(from));
|
}
|
|
|
void LocalConfig::MergeFrom(const LocalConfig& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.LocalConfig)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_server_id().empty()) {
|
_internal_set_server_id(from._internal_server_id());
|
}
|
if (!from._internal_server_name().empty()) {
|
_internal_set_server_name(from._internal_server_name());
|
}
|
if (!from._internal_server_ip().empty()) {
|
_internal_set_server_ip(from._internal_server_ip());
|
}
|
if (!from._internal_alarm_ip().empty()) {
|
_internal_set_alarm_ip(from._internal_alarm_ip());
|
}
|
if (!from._internal_web_pic_ip().empty()) {
|
_internal_set_web_pic_ip(from._internal_web_pic_ip());
|
}
|
if (!from._internal_es_pic_ip().empty()) {
|
_internal_set_es_pic_ip(from._internal_es_pic_ip());
|
}
|
if (!from._internal_reserved().empty()) {
|
_internal_set_reserved(from._internal_reserved());
|
}
|
if (!from._internal_gate_way().empty()) {
|
_internal_set_gate_way(from._internal_gate_way());
|
}
|
if (!from._internal_net_mask().empty()) {
|
_internal_set_net_mask(from._internal_net_mask());
|
}
|
if (from._internal_server_type() != 0) {
|
_internal_set_server_type(from._internal_server_type());
|
}
|
if (from._internal_alarm_port() != 0) {
|
_internal_set_alarm_port(from._internal_alarm_port());
|
}
|
if (from._internal_web_pic_port() != 0) {
|
_internal_set_web_pic_port(from._internal_web_pic_port());
|
}
|
if (from._internal_es_pic_port() != 0) {
|
_internal_set_es_pic_port(from._internal_es_pic_port());
|
}
|
if (from._internal_cut_max_duration() != 0) {
|
_internal_set_cut_max_duration(from._internal_cut_max_duration());
|
}
|
if (from._internal_cut_min_duration() != 0) {
|
_internal_set_cut_min_duration(from._internal_cut_min_duration());
|
}
|
if (from._internal_real_max() != 0) {
|
_internal_set_real_max(from._internal_real_max());
|
}
|
if (from._internal_alarm_threshold_type() != 0) {
|
_internal_set_alarm_threshold_type(from._internal_alarm_threshold_type());
|
}
|
if (from._internal_alarm_threshold() != 0) {
|
_internal_set_alarm_threshold(from._internal_alarm_threshold());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void LocalConfig::CopyFrom(const LocalConfig& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.LocalConfig)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool LocalConfig::IsInitialized() const {
|
return true;
|
}
|
|
void LocalConfig::InternalSwap(LocalConfig* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_id_, GetArenaForAllocation(),
|
&other->server_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_name_, GetArenaForAllocation(),
|
&other->server_name_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_ip_, GetArenaForAllocation(),
|
&other->server_ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&alarm_ip_, GetArenaForAllocation(),
|
&other->alarm_ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&web_pic_ip_, GetArenaForAllocation(),
|
&other->web_pic_ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&es_pic_ip_, GetArenaForAllocation(),
|
&other->es_pic_ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&reserved_, GetArenaForAllocation(),
|
&other->reserved_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&gate_way_, GetArenaForAllocation(),
|
&other->gate_way_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&net_mask_, GetArenaForAllocation(),
|
&other->net_mask_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(LocalConfig, alarm_threshold_)
|
+ sizeof(LocalConfig::alarm_threshold_)
|
- PROTOBUF_FIELD_OFFSET(LocalConfig, server_type_)>(
|
reinterpret_cast<char*>(&server_type_),
|
reinterpret_cast<char*>(&other->server_type_));
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata LocalConfig::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[0]);
|
}
|
|
// ===================================================================
|
|
class PollConfig::_Internal {
|
public:
|
};
|
|
PollConfig::PollConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.PollConfig)
|
}
|
PollConfig::PollConfig(const PollConfig& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_id().empty()) {
|
server_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_id(),
|
GetArenaForAllocation());
|
}
|
::memcpy(&poll_period_, &from.poll_period_,
|
static_cast<size_t>(reinterpret_cast<char*>(&pollchannelcount_) -
|
reinterpret_cast<char*>(&poll_period_)) + sizeof(pollchannelcount_));
|
// @@protoc_insertion_point(copy_constructor:protomsg.PollConfig)
|
}
|
|
inline void PollConfig::SharedCtor() {
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&poll_period_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&pollchannelcount_) -
|
reinterpret_cast<char*>(&poll_period_)) + sizeof(pollchannelcount_));
|
}
|
|
PollConfig::~PollConfig() {
|
// @@protoc_insertion_point(destructor:protomsg.PollConfig)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void PollConfig::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
server_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void PollConfig::ArenaDtor(void* object) {
|
PollConfig* _this = reinterpret_cast< PollConfig* >(object);
|
(void)_this;
|
}
|
void PollConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void PollConfig::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void PollConfig::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.PollConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
server_id_.ClearToEmpty();
|
::memset(&poll_period_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&pollchannelcount_) -
|
reinterpret_cast<char*>(&poll_period_)) + sizeof(pollchannelcount_));
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* PollConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// string server_id = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_server_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.PollConfig.server_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 poll_period = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
poll_period_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 delay = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
delay_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bool enable = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 pollChannelCount = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
pollchannelcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* PollConfig::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.PollConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// string server_id = 1;
|
if (!this->_internal_server_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_id().data(), static_cast<int>(this->_internal_server_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.PollConfig.server_id");
|
target = stream->WriteStringMaybeAliased(
|
1, this->_internal_server_id(), target);
|
}
|
|
// int32 poll_period = 2;
|
if (this->_internal_poll_period() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_poll_period(), target);
|
}
|
|
// int32 delay = 3;
|
if (this->_internal_delay() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_delay(), target);
|
}
|
|
// bool enable = 4;
|
if (this->_internal_enable() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_enable(), target);
|
}
|
|
// int32 pollChannelCount = 5;
|
if (this->_internal_pollchannelcount() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_pollchannelcount(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.PollConfig)
|
return target;
|
}
|
|
size_t PollConfig::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.PollConfig)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// string server_id = 1;
|
if (!this->_internal_server_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_id());
|
}
|
|
// int32 poll_period = 2;
|
if (this->_internal_poll_period() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_poll_period());
|
}
|
|
// int32 delay = 3;
|
if (this->_internal_delay() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_delay());
|
}
|
|
// bool enable = 4;
|
if (this->_internal_enable() != 0) {
|
total_size += 1 + 1;
|
}
|
|
// int32 pollChannelCount = 5;
|
if (this->_internal_pollchannelcount() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_pollchannelcount());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PollConfig::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
PollConfig::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PollConfig::GetClassData() const { return &_class_data_; }
|
|
void PollConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<PollConfig *>(to)->MergeFrom(
|
static_cast<const PollConfig &>(from));
|
}
|
|
|
void PollConfig::MergeFrom(const PollConfig& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.PollConfig)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_server_id().empty()) {
|
_internal_set_server_id(from._internal_server_id());
|
}
|
if (from._internal_poll_period() != 0) {
|
_internal_set_poll_period(from._internal_poll_period());
|
}
|
if (from._internal_delay() != 0) {
|
_internal_set_delay(from._internal_delay());
|
}
|
if (from._internal_enable() != 0) {
|
_internal_set_enable(from._internal_enable());
|
}
|
if (from._internal_pollchannelcount() != 0) {
|
_internal_set_pollchannelcount(from._internal_pollchannelcount());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void PollConfig::CopyFrom(const PollConfig& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.PollConfig)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool PollConfig::IsInitialized() const {
|
return true;
|
}
|
|
void PollConfig::InternalSwap(PollConfig* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_id_, GetArenaForAllocation(),
|
&other->server_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(PollConfig, pollchannelcount_)
|
+ sizeof(PollConfig::pollchannelcount_)
|
- PROTOBUF_FIELD_OFFSET(PollConfig, poll_period_)>(
|
reinterpret_cast<char*>(&poll_period_),
|
reinterpret_cast<char*>(&other->poll_period_));
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata PollConfig::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[1]);
|
}
|
|
// ===================================================================
|
|
class Cluster::_Internal {
|
public:
|
};
|
|
Cluster::Cluster(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
|
nodes_(arena) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.Cluster)
|
}
|
Cluster::Cluster(const Cluster& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message(),
|
nodes_(from.nodes_) {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
cluster_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_cluster_id().empty()) {
|
cluster_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cluster_id(),
|
GetArenaForAllocation());
|
}
|
cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_cluster_name().empty()) {
|
cluster_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cluster_name(),
|
GetArenaForAllocation());
|
}
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_password().empty()) {
|
password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
|
GetArenaForAllocation());
|
}
|
virtual_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_virtual_ip().empty()) {
|
virtual_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_virtual_ip(),
|
GetArenaForAllocation());
|
}
|
// @@protoc_insertion_point(copy_constructor:protomsg.Cluster)
|
}
|
|
inline void Cluster::SharedCtor() {
|
cluster_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
cluster_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
virtual_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
Cluster::~Cluster() {
|
// @@protoc_insertion_point(destructor:protomsg.Cluster)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void Cluster::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
cluster_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
cluster_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
virtual_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void Cluster::ArenaDtor(void* object) {
|
Cluster* _this = reinterpret_cast< Cluster* >(object);
|
(void)_this;
|
}
|
void Cluster::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void Cluster::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void Cluster::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.Cluster)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
nodes_.Clear();
|
cluster_id_.ClearToEmpty();
|
cluster_name_.ClearToEmpty();
|
password_.ClearToEmpty();
|
virtual_ip_.ClearToEmpty();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* Cluster::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// string cluster_id = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_cluster_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Cluster.cluster_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string cluster_name = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_cluster_name();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Cluster.cluster_name"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string password = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
auto str = _internal_mutable_password();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Cluster.password"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string virtual_ip = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
auto str = _internal_mutable_virtual_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Cluster.virtual_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// repeated .protomsg.ClusterNode nodes = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
ptr -= 1;
|
do {
|
ptr += 1;
|
ptr = ctx->ParseMessage(_internal_add_nodes(), ptr);
|
CHK_(ptr);
|
if (!ctx->DataAvailable(ptr)) break;
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Cluster::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.Cluster)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// string cluster_id = 1;
|
if (!this->_internal_cluster_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_cluster_id().data(), static_cast<int>(this->_internal_cluster_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Cluster.cluster_id");
|
target = stream->WriteStringMaybeAliased(
|
1, this->_internal_cluster_id(), target);
|
}
|
|
// string cluster_name = 2;
|
if (!this->_internal_cluster_name().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_cluster_name().data(), static_cast<int>(this->_internal_cluster_name().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Cluster.cluster_name");
|
target = stream->WriteStringMaybeAliased(
|
2, this->_internal_cluster_name(), target);
|
}
|
|
// string password = 3;
|
if (!this->_internal_password().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Cluster.password");
|
target = stream->WriteStringMaybeAliased(
|
3, this->_internal_password(), target);
|
}
|
|
// string virtual_ip = 4;
|
if (!this->_internal_virtual_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_virtual_ip().data(), static_cast<int>(this->_internal_virtual_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Cluster.virtual_ip");
|
target = stream->WriteStringMaybeAliased(
|
4, this->_internal_virtual_ip(), target);
|
}
|
|
// repeated .protomsg.ClusterNode nodes = 5;
|
for (unsigned int i = 0,
|
n = static_cast<unsigned int>(this->_internal_nodes_size()); i < n; i++) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
InternalWriteMessage(5, this->_internal_nodes(i), target, stream);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.Cluster)
|
return target;
|
}
|
|
size_t Cluster::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.Cluster)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// repeated .protomsg.ClusterNode nodes = 5;
|
total_size += 1UL * this->_internal_nodes_size();
|
for (const auto& msg : this->nodes_) {
|
total_size +=
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
}
|
|
// string cluster_id = 1;
|
if (!this->_internal_cluster_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_cluster_id());
|
}
|
|
// string cluster_name = 2;
|
if (!this->_internal_cluster_name().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_cluster_name());
|
}
|
|
// string password = 3;
|
if (!this->_internal_password().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_password());
|
}
|
|
// string virtual_ip = 4;
|
if (!this->_internal_virtual_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_virtual_ip());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Cluster::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
Cluster::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Cluster::GetClassData() const { return &_class_data_; }
|
|
void Cluster::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<Cluster *>(to)->MergeFrom(
|
static_cast<const Cluster &>(from));
|
}
|
|
|
void Cluster::MergeFrom(const Cluster& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.Cluster)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
nodes_.MergeFrom(from.nodes_);
|
if (!from._internal_cluster_id().empty()) {
|
_internal_set_cluster_id(from._internal_cluster_id());
|
}
|
if (!from._internal_cluster_name().empty()) {
|
_internal_set_cluster_name(from._internal_cluster_name());
|
}
|
if (!from._internal_password().empty()) {
|
_internal_set_password(from._internal_password());
|
}
|
if (!from._internal_virtual_ip().empty()) {
|
_internal_set_virtual_ip(from._internal_virtual_ip());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void Cluster::CopyFrom(const Cluster& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.Cluster)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool Cluster::IsInitialized() const {
|
return true;
|
}
|
|
void Cluster::InternalSwap(Cluster* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
nodes_.InternalSwap(&other->nodes_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&cluster_id_, GetArenaForAllocation(),
|
&other->cluster_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&cluster_name_, GetArenaForAllocation(),
|
&other->cluster_name_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&password_, GetArenaForAllocation(),
|
&other->password_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&virtual_ip_, GetArenaForAllocation(),
|
&other->virtual_ip_, other->GetArenaForAllocation()
|
);
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Cluster::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[2]);
|
}
|
|
// ===================================================================
|
|
class ClusterNode::_Internal {
|
public:
|
};
|
|
ClusterNode::ClusterNode(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.ClusterNode)
|
}
|
ClusterNode::ClusterNode(const ClusterNode& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_id().empty()) {
|
id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(),
|
GetArenaForAllocation());
|
}
|
cluster_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_cluster_id().empty()) {
|
cluster_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cluster_id(),
|
GetArenaForAllocation());
|
}
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_id().empty()) {
|
server_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_id(),
|
GetArenaForAllocation());
|
}
|
server_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_server_name().empty()) {
|
server_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_server_name(),
|
GetArenaForAllocation());
|
}
|
node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_node_id().empty()) {
|
node_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_id(),
|
GetArenaForAllocation());
|
}
|
node_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_node_ip().empty()) {
|
node_ip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_node_ip(),
|
GetArenaForAllocation());
|
}
|
create_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_create_time().empty()) {
|
create_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_create_time(),
|
GetArenaForAllocation());
|
}
|
// @@protoc_insertion_point(copy_constructor:protomsg.ClusterNode)
|
}
|
|
inline void ClusterNode::SharedCtor() {
|
id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
cluster_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
node_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
create_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
ClusterNode::~ClusterNode() {
|
// @@protoc_insertion_point(destructor:protomsg.ClusterNode)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void ClusterNode::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
cluster_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
server_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
node_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
node_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
create_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void ClusterNode::ArenaDtor(void* object) {
|
ClusterNode* _this = reinterpret_cast< ClusterNode* >(object);
|
(void)_this;
|
}
|
void ClusterNode::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void ClusterNode::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void ClusterNode::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.ClusterNode)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
id_.ClearToEmpty();
|
cluster_id_.ClearToEmpty();
|
server_id_.ClearToEmpty();
|
server_name_.ClearToEmpty();
|
node_id_.ClearToEmpty();
|
node_ip_.ClearToEmpty();
|
create_time_.ClearToEmpty();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* ClusterNode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// string id = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string cluster_id = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_cluster_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.cluster_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string server_id = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
auto str = _internal_mutable_server_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.server_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string server_name = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
auto str = _internal_mutable_server_name();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.server_name"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string node_id = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
auto str = _internal_mutable_node_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.node_id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string node_ip = 6;
|
case 6:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
auto str = _internal_mutable_node_ip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.node_ip"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string create_time = 7;
|
case 7:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
auto str = _internal_mutable_create_time();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ClusterNode.create_time"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ClusterNode::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.ClusterNode)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// string id = 1;
|
if (!this->_internal_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_id().data(), static_cast<int>(this->_internal_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.id");
|
target = stream->WriteStringMaybeAliased(
|
1, this->_internal_id(), target);
|
}
|
|
// string cluster_id = 2;
|
if (!this->_internal_cluster_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_cluster_id().data(), static_cast<int>(this->_internal_cluster_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.cluster_id");
|
target = stream->WriteStringMaybeAliased(
|
2, this->_internal_cluster_id(), target);
|
}
|
|
// string server_id = 3;
|
if (!this->_internal_server_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_id().data(), static_cast<int>(this->_internal_server_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.server_id");
|
target = stream->WriteStringMaybeAliased(
|
3, this->_internal_server_id(), target);
|
}
|
|
// string server_name = 4;
|
if (!this->_internal_server_name().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_server_name().data(), static_cast<int>(this->_internal_server_name().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.server_name");
|
target = stream->WriteStringMaybeAliased(
|
4, this->_internal_server_name(), target);
|
}
|
|
// string node_id = 5;
|
if (!this->_internal_node_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_node_id().data(), static_cast<int>(this->_internal_node_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.node_id");
|
target = stream->WriteStringMaybeAliased(
|
5, this->_internal_node_id(), target);
|
}
|
|
// string node_ip = 6;
|
if (!this->_internal_node_ip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_node_ip().data(), static_cast<int>(this->_internal_node_ip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.node_ip");
|
target = stream->WriteStringMaybeAliased(
|
6, this->_internal_node_ip(), target);
|
}
|
|
// string create_time = 7;
|
if (!this->_internal_create_time().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_create_time().data(), static_cast<int>(this->_internal_create_time().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ClusterNode.create_time");
|
target = stream->WriteStringMaybeAliased(
|
7, this->_internal_create_time(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.ClusterNode)
|
return target;
|
}
|
|
size_t ClusterNode::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.ClusterNode)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// string id = 1;
|
if (!this->_internal_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_id());
|
}
|
|
// string cluster_id = 2;
|
if (!this->_internal_cluster_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_cluster_id());
|
}
|
|
// string server_id = 3;
|
if (!this->_internal_server_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_id());
|
}
|
|
// string server_name = 4;
|
if (!this->_internal_server_name().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_server_name());
|
}
|
|
// string node_id = 5;
|
if (!this->_internal_node_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_node_id());
|
}
|
|
// string node_ip = 6;
|
if (!this->_internal_node_ip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_node_ip());
|
}
|
|
// string create_time = 7;
|
if (!this->_internal_create_time().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_create_time());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClusterNode::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
ClusterNode::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClusterNode::GetClassData() const { return &_class_data_; }
|
|
void ClusterNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<ClusterNode *>(to)->MergeFrom(
|
static_cast<const ClusterNode &>(from));
|
}
|
|
|
void ClusterNode::MergeFrom(const ClusterNode& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.ClusterNode)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_id().empty()) {
|
_internal_set_id(from._internal_id());
|
}
|
if (!from._internal_cluster_id().empty()) {
|
_internal_set_cluster_id(from._internal_cluster_id());
|
}
|
if (!from._internal_server_id().empty()) {
|
_internal_set_server_id(from._internal_server_id());
|
}
|
if (!from._internal_server_name().empty()) {
|
_internal_set_server_name(from._internal_server_name());
|
}
|
if (!from._internal_node_id().empty()) {
|
_internal_set_node_id(from._internal_node_id());
|
}
|
if (!from._internal_node_ip().empty()) {
|
_internal_set_node_ip(from._internal_node_ip());
|
}
|
if (!from._internal_create_time().empty()) {
|
_internal_set_create_time(from._internal_create_time());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void ClusterNode::CopyFrom(const ClusterNode& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.ClusterNode)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool ClusterNode::IsInitialized() const {
|
return true;
|
}
|
|
void ClusterNode::InternalSwap(ClusterNode* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&id_, GetArenaForAllocation(),
|
&other->id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&cluster_id_, GetArenaForAllocation(),
|
&other->cluster_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_id_, GetArenaForAllocation(),
|
&other->server_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&server_name_, GetArenaForAllocation(),
|
&other->server_name_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&node_id_, GetArenaForAllocation(),
|
&other->node_id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&node_ip_, GetArenaForAllocation(),
|
&other->node_ip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&create_time_, GetArenaForAllocation(),
|
&other->create_time_, other->GetArenaForAllocation()
|
);
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClusterNode::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[3]);
|
}
|
|
// ===================================================================
|
|
class ResourceConfig::_Internal {
|
public:
|
};
|
|
ResourceConfig::ResourceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.ResourceConfig)
|
}
|
ResourceConfig::ResourceConfig(const ResourceConfig& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
serviceip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_serviceip().empty()) {
|
serviceip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serviceip(),
|
GetArenaForAllocation());
|
}
|
domain_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_domain().empty()) {
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_domain(),
|
GetArenaForAllocation());
|
}
|
::memcpy(&iptype_, &from.iptype_,
|
static_cast<size_t>(reinterpret_cast<char*>(&fileport_) -
|
reinterpret_cast<char*>(&iptype_)) + sizeof(fileport_));
|
// @@protoc_insertion_point(copy_constructor:protomsg.ResourceConfig)
|
}
|
|
inline void ResourceConfig::SharedCtor() {
|
serviceip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
domain_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&iptype_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&fileport_) -
|
reinterpret_cast<char*>(&iptype_)) + sizeof(fileport_));
|
}
|
|
ResourceConfig::~ResourceConfig() {
|
// @@protoc_insertion_point(destructor:protomsg.ResourceConfig)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void ResourceConfig::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
serviceip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
domain_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void ResourceConfig::ArenaDtor(void* object) {
|
ResourceConfig* _this = reinterpret_cast< ResourceConfig* >(object);
|
(void)_this;
|
}
|
void ResourceConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void ResourceConfig::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void ResourceConfig::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.ResourceConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
serviceip_.ClearToEmpty();
|
domain_.ClearToEmpty();
|
::memset(&iptype_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&fileport_) -
|
reinterpret_cast<char*>(&iptype_)) + sizeof(fileport_));
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* ResourceConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// int32 ipType = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
iptype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string serviceIp = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_serviceip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ResourceConfig.serviceIp"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string domain = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
auto str = _internal_mutable_domain();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.ResourceConfig.domain"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 filePort = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
fileport_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* ResourceConfig::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.ResourceConfig)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// int32 ipType = 1;
|
if (this->_internal_iptype() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_iptype(), target);
|
}
|
|
// string serviceIp = 2;
|
if (!this->_internal_serviceip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_serviceip().data(), static_cast<int>(this->_internal_serviceip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ResourceConfig.serviceIp");
|
target = stream->WriteStringMaybeAliased(
|
2, this->_internal_serviceip(), target);
|
}
|
|
// string domain = 3;
|
if (!this->_internal_domain().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_domain().data(), static_cast<int>(this->_internal_domain().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.ResourceConfig.domain");
|
target = stream->WriteStringMaybeAliased(
|
3, this->_internal_domain(), target);
|
}
|
|
// int32 filePort = 4;
|
if (this->_internal_fileport() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_fileport(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.ResourceConfig)
|
return target;
|
}
|
|
size_t ResourceConfig::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.ResourceConfig)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// string serviceIp = 2;
|
if (!this->_internal_serviceip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_serviceip());
|
}
|
|
// string domain = 3;
|
if (!this->_internal_domain().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_domain());
|
}
|
|
// int32 ipType = 1;
|
if (this->_internal_iptype() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_iptype());
|
}
|
|
// int32 filePort = 4;
|
if (this->_internal_fileport() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_fileport());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceConfig::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
ResourceConfig::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceConfig::GetClassData() const { return &_class_data_; }
|
|
void ResourceConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<ResourceConfig *>(to)->MergeFrom(
|
static_cast<const ResourceConfig &>(from));
|
}
|
|
|
void ResourceConfig::MergeFrom(const ResourceConfig& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.ResourceConfig)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_serviceip().empty()) {
|
_internal_set_serviceip(from._internal_serviceip());
|
}
|
if (!from._internal_domain().empty()) {
|
_internal_set_domain(from._internal_domain());
|
}
|
if (from._internal_iptype() != 0) {
|
_internal_set_iptype(from._internal_iptype());
|
}
|
if (from._internal_fileport() != 0) {
|
_internal_set_fileport(from._internal_fileport());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void ResourceConfig::CopyFrom(const ResourceConfig& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.ResourceConfig)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool ResourceConfig::IsInitialized() const {
|
return true;
|
}
|
|
void ResourceConfig::InternalSwap(ResourceConfig* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&serviceip_, GetArenaForAllocation(),
|
&other->serviceip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&domain_, GetArenaForAllocation(),
|
&other->domain_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(ResourceConfig, fileport_)
|
+ sizeof(ResourceConfig::fileport_)
|
- PROTOBUF_FIELD_OFFSET(ResourceConfig, iptype_)>(
|
reinterpret_cast<char*>(&iptype_),
|
reinterpret_cast<char*>(&other->iptype_));
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ResourceConfig::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[4]);
|
}
|
|
// ===================================================================
|
|
class Gb28181Config::_Internal {
|
public:
|
};
|
|
Gb28181Config::Gb28181Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.Gb28181Config)
|
}
|
Gb28181Config::Gb28181Config(const Gb28181Config& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_id().empty()) {
|
id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(),
|
GetArenaForAllocation());
|
}
|
serverip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_serverip().empty()) {
|
serverip_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serverip(),
|
GetArenaForAllocation());
|
}
|
serverport_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_serverport().empty()) {
|
serverport_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serverport(),
|
GetArenaForAllocation());
|
}
|
publicid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_publicid().empty()) {
|
publicid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_publicid(),
|
GetArenaForAllocation());
|
}
|
gbserverport_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_gbserverport().empty()) {
|
gbserverport_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_gbserverport(),
|
GetArenaForAllocation());
|
}
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_password().empty()) {
|
password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
|
GetArenaForAllocation());
|
}
|
updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
if (!from._internal_updatetime().empty()) {
|
updatetime_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_updatetime(),
|
GetArenaForAllocation());
|
}
|
isauth_ = from.isauth_;
|
// @@protoc_insertion_point(copy_constructor:protomsg.Gb28181Config)
|
}
|
|
inline void Gb28181Config::SharedCtor() {
|
id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
serverip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
serverport_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
publicid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
gbserverport_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
updatetime_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
isauth_ = false;
|
}
|
|
Gb28181Config::~Gb28181Config() {
|
// @@protoc_insertion_point(destructor:protomsg.Gb28181Config)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void Gb28181Config::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
serverip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
serverport_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
publicid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
gbserverport_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
updatetime_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
}
|
|
void Gb28181Config::ArenaDtor(void* object) {
|
Gb28181Config* _this = reinterpret_cast< Gb28181Config* >(object);
|
(void)_this;
|
}
|
void Gb28181Config::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void Gb28181Config::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void Gb28181Config::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.Gb28181Config)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
id_.ClearToEmpty();
|
serverip_.ClearToEmpty();
|
serverport_.ClearToEmpty();
|
publicid_.ClearToEmpty();
|
gbserverport_.ClearToEmpty();
|
password_.ClearToEmpty();
|
updatetime_.ClearToEmpty();
|
isauth_ = false;
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* Gb28181Config::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// string Id = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
auto str = _internal_mutable_id();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.Id"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string ServerIp = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
auto str = _internal_mutable_serverip();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.ServerIp"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string ServerPort = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
auto str = _internal_mutable_serverport();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.ServerPort"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string PublicId = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
auto str = _internal_mutable_publicid();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.PublicId"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string GbServerPort = 5;
|
case 5:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
auto str = _internal_mutable_gbserverport();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.GbServerPort"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// bool IsAuth = 6;
|
case 6:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
isauth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string Password = 7;
|
case 7:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
auto str = _internal_mutable_password();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.Password"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// string UpdateTime = 8;
|
case 8:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
auto str = _internal_mutable_updatetime();
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.Gb28181Config.UpdateTime"));
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Gb28181Config::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.Gb28181Config)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// string Id = 1;
|
if (!this->_internal_id().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_id().data(), static_cast<int>(this->_internal_id().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.Id");
|
target = stream->WriteStringMaybeAliased(
|
1, this->_internal_id(), target);
|
}
|
|
// string ServerIp = 2;
|
if (!this->_internal_serverip().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_serverip().data(), static_cast<int>(this->_internal_serverip().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.ServerIp");
|
target = stream->WriteStringMaybeAliased(
|
2, this->_internal_serverip(), target);
|
}
|
|
// string ServerPort = 3;
|
if (!this->_internal_serverport().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_serverport().data(), static_cast<int>(this->_internal_serverport().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.ServerPort");
|
target = stream->WriteStringMaybeAliased(
|
3, this->_internal_serverport(), target);
|
}
|
|
// string PublicId = 4;
|
if (!this->_internal_publicid().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_publicid().data(), static_cast<int>(this->_internal_publicid().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.PublicId");
|
target = stream->WriteStringMaybeAliased(
|
4, this->_internal_publicid(), target);
|
}
|
|
// string GbServerPort = 5;
|
if (!this->_internal_gbserverport().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_gbserverport().data(), static_cast<int>(this->_internal_gbserverport().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.GbServerPort");
|
target = stream->WriteStringMaybeAliased(
|
5, this->_internal_gbserverport(), target);
|
}
|
|
// bool IsAuth = 6;
|
if (this->_internal_isauth() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_isauth(), target);
|
}
|
|
// string Password = 7;
|
if (!this->_internal_password().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.Password");
|
target = stream->WriteStringMaybeAliased(
|
7, this->_internal_password(), target);
|
}
|
|
// string UpdateTime = 8;
|
if (!this->_internal_updatetime().empty()) {
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
this->_internal_updatetime().data(), static_cast<int>(this->_internal_updatetime().length()),
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
"protomsg.Gb28181Config.UpdateTime");
|
target = stream->WriteStringMaybeAliased(
|
8, this->_internal_updatetime(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.Gb28181Config)
|
return target;
|
}
|
|
size_t Gb28181Config::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.Gb28181Config)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// string Id = 1;
|
if (!this->_internal_id().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_id());
|
}
|
|
// string ServerIp = 2;
|
if (!this->_internal_serverip().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_serverip());
|
}
|
|
// string ServerPort = 3;
|
if (!this->_internal_serverport().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_serverport());
|
}
|
|
// string PublicId = 4;
|
if (!this->_internal_publicid().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_publicid());
|
}
|
|
// string GbServerPort = 5;
|
if (!this->_internal_gbserverport().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_gbserverport());
|
}
|
|
// string Password = 7;
|
if (!this->_internal_password().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_password());
|
}
|
|
// string UpdateTime = 8;
|
if (!this->_internal_updatetime().empty()) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
this->_internal_updatetime());
|
}
|
|
// bool IsAuth = 6;
|
if (this->_internal_isauth() != 0) {
|
total_size += 1 + 1;
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Gb28181Config::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
Gb28181Config::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Gb28181Config::GetClassData() const { return &_class_data_; }
|
|
void Gb28181Config::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<Gb28181Config *>(to)->MergeFrom(
|
static_cast<const Gb28181Config &>(from));
|
}
|
|
|
void Gb28181Config::MergeFrom(const Gb28181Config& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.Gb28181Config)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (!from._internal_id().empty()) {
|
_internal_set_id(from._internal_id());
|
}
|
if (!from._internal_serverip().empty()) {
|
_internal_set_serverip(from._internal_serverip());
|
}
|
if (!from._internal_serverport().empty()) {
|
_internal_set_serverport(from._internal_serverport());
|
}
|
if (!from._internal_publicid().empty()) {
|
_internal_set_publicid(from._internal_publicid());
|
}
|
if (!from._internal_gbserverport().empty()) {
|
_internal_set_gbserverport(from._internal_gbserverport());
|
}
|
if (!from._internal_password().empty()) {
|
_internal_set_password(from._internal_password());
|
}
|
if (!from._internal_updatetime().empty()) {
|
_internal_set_updatetime(from._internal_updatetime());
|
}
|
if (from._internal_isauth() != 0) {
|
_internal_set_isauth(from._internal_isauth());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void Gb28181Config::CopyFrom(const Gb28181Config& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.Gb28181Config)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool Gb28181Config::IsInitialized() const {
|
return true;
|
}
|
|
void Gb28181Config::InternalSwap(Gb28181Config* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&id_, GetArenaForAllocation(),
|
&other->id_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&serverip_, GetArenaForAllocation(),
|
&other->serverip_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&serverport_, GetArenaForAllocation(),
|
&other->serverport_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&publicid_, GetArenaForAllocation(),
|
&other->publicid_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&gbserverport_, GetArenaForAllocation(),
|
&other->gbserverport_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&password_, GetArenaForAllocation(),
|
&other->password_, other->GetArenaForAllocation()
|
);
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
&updatetime_, GetArenaForAllocation(),
|
&other->updatetime_, other->GetArenaForAllocation()
|
);
|
swap(isauth_, other->isauth_);
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Gb28181Config::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_sysset_2eproto_getter, &descriptor_table_sysset_2eproto_once,
|
file_level_metadata_sysset_2eproto[5]);
|
}
|
|
// @@protoc_insertion_point(namespace_scope)
|
} // namespace protomsg
|
PROTOBUF_NAMESPACE_OPEN
|
template<> PROTOBUF_NOINLINE ::protomsg::LocalConfig* Arena::CreateMaybeMessage< ::protomsg::LocalConfig >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::LocalConfig >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::PollConfig* Arena::CreateMaybeMessage< ::protomsg::PollConfig >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::PollConfig >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::Cluster* Arena::CreateMaybeMessage< ::protomsg::Cluster >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::Cluster >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::ClusterNode* Arena::CreateMaybeMessage< ::protomsg::ClusterNode >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::ClusterNode >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::ResourceConfig* Arena::CreateMaybeMessage< ::protomsg::ResourceConfig >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::ResourceConfig >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::Gb28181Config* Arena::CreateMaybeMessage< ::protomsg::Gb28181Config >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::Gb28181Config >(arena);
|
}
|
PROTOBUF_NAMESPACE_CLOSE
|
|
// @@protoc_insertion_point(global_scope)
|
#include <google/protobuf/port_undef.inc>
|