123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: system_setting.proto
- #include "system_setting.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace setting {
- class System_settingDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<System_setting>
- _instance;
- } _System_setting_default_instance_;
- } // namespace setting
- namespace protobuf_system_5fsetting_2eproto {
- void InitDefaultsSystem_settingImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::setting::_System_setting_default_instance_;
- new (ptr) ::setting::System_setting();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::setting::System_setting::InitAsDefaultInstance();
- }
- void InitDefaultsSystem_setting() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSystem_settingImpl);
- }
- ::google::protobuf::Metadata file_level_metadata[1];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, bind_ip_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, bind_port_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, entrance_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::setting::System_setting, export_num_),
- 0,
- 3,
- 1,
- 2,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 9, sizeof(::setting::System_setting)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::setting::_System_setting_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "system_setting.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\024system_setting.proto\022\007setting\"e\n\016Syste"
- "m_setting\022\017\n\007bind_ip\030\001 \002(\t\022\030\n\tbind_port\030"
- "\002 \001(\005:\00530000\022\024\n\014entrance_num\030\003 \002(\005\022\022\n\nex"
- "port_num\030\004 \002(\005"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 134);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "system_setting.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_system_5fsetting_2eproto
- namespace setting {
- // ===================================================================
- void System_setting::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int System_setting::kBindIpFieldNumber;
- const int System_setting::kBindPortFieldNumber;
- const int System_setting::kEntranceNumFieldNumber;
- const int System_setting::kExportNumFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- System_setting::System_setting()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:setting.System_setting)
- }
- System_setting::System_setting(const System_setting& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_bind_ip()) {
- bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
- }
- ::memcpy(&entrance_num_, &from.entrance_num_,
- static_cast<size_t>(reinterpret_cast<char*>(&bind_port_) -
- reinterpret_cast<char*>(&entrance_num_)) + sizeof(bind_port_));
- // @@protoc_insertion_point(copy_constructor:setting.System_setting)
- }
- void System_setting::SharedCtor() {
- _cached_size_ = 0;
- bind_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&entrance_num_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&export_num_) -
- reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
- bind_port_ = 30000;
- }
- System_setting::~System_setting() {
- // @@protoc_insertion_point(destructor:setting.System_setting)
- SharedDtor();
- }
- void System_setting::SharedDtor() {
- bind_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void System_setting::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* System_setting::descriptor() {
- ::protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const System_setting& System_setting::default_instance() {
- ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_setting();
- return *internal_default_instance();
- }
- System_setting* System_setting::New(::google::protobuf::Arena* arena) const {
- System_setting* n = new System_setting;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void System_setting::Clear() {
- // @@protoc_insertion_point(message_clear_start:setting.System_setting)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!bind_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*bind_ip_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 14u) {
- ::memset(&entrance_num_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&export_num_) -
- reinterpret_cast<char*>(&entrance_num_)) + sizeof(export_num_));
- bind_port_ = 30000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool System_setting::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:setting.System_setting)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required string bind_ip = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_bind_ip()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "setting.System_setting.bind_ip");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 bind_port = 2 [default = 30000];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_bind_port();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &bind_port_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required int32 entrance_num = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_entrance_num();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &entrance_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required int32 export_num = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_export_num();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &export_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:setting.System_setting)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:setting.System_setting)
- return false;
- #undef DO_
- }
- void System_setting::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:setting.System_setting)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string bind_ip = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "setting.System_setting.bind_ip");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->bind_ip(), output);
- }
- // optional int32 bind_port = 2 [default = 30000];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->bind_port(), output);
- }
- // required int32 entrance_num = 3;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->entrance_num(), output);
- }
- // required int32 export_num = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->export_num(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:setting.System_setting)
- }
- ::google::protobuf::uint8* System_setting::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:setting.System_setting)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string bind_ip = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->bind_ip().data(), static_cast<int>(this->bind_ip().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "setting.System_setting.bind_ip");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->bind_ip(), target);
- }
- // optional int32 bind_port = 2 [default = 30000];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->bind_port(), target);
- }
- // required int32 entrance_num = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->entrance_num(), target);
- }
- // required int32 export_num = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->export_num(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:setting.System_setting)
- return target;
- }
- size_t System_setting::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:setting.System_setting)
- size_t total_size = 0;
- if (has_bind_ip()) {
- // required string bind_ip = 1;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->bind_ip());
- }
- if (has_entrance_num()) {
- // required int32 entrance_num = 3;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->entrance_num());
- }
- if (has_export_num()) {
- // required int32 export_num = 4;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->export_num());
- }
- return total_size;
- }
- size_t System_setting::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:setting.System_setting)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
- // required string bind_ip = 1;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->bind_ip());
- // required int32 entrance_num = 3;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->entrance_num());
- // required int32 export_num = 4;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->export_num());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // optional int32 bind_port = 2 [default = 30000];
- if (has_bind_port()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->bind_port());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void System_setting::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:setting.System_setting)
- GOOGLE_DCHECK_NE(&from, this);
- const System_setting* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const System_setting>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:setting.System_setting)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:setting.System_setting)
- MergeFrom(*source);
- }
- }
- void System_setting::MergeFrom(const System_setting& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:setting.System_setting)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_bind_ip();
- bind_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bind_ip_);
- }
- if (cached_has_bits & 0x00000002u) {
- entrance_num_ = from.entrance_num_;
- }
- if (cached_has_bits & 0x00000004u) {
- export_num_ = from.export_num_;
- }
- if (cached_has_bits & 0x00000008u) {
- bind_port_ = from.bind_port_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void System_setting::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:setting.System_setting)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void System_setting::CopyFrom(const System_setting& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:setting.System_setting)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool System_setting::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
- return true;
- }
- void System_setting::Swap(System_setting* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void System_setting::InternalSwap(System_setting* other) {
- using std::swap;
- bind_ip_.Swap(&other->bind_ip_);
- swap(entrance_num_, other->entrance_num_);
- swap(export_num_, other->export_num_);
- swap(bind_port_, other->bind_port_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata System_setting::GetMetadata() const {
- protobuf_system_5fsetting_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_system_5fsetting_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace setting
- // @@protoc_insertion_point(global_scope)
|