|
@@ -0,0 +1,744 @@
|
|
|
|
+// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
+// source: setting.proto
|
|
|
|
+
|
|
|
|
+#include "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 global {
|
|
|
|
+class locate_settingDefaultTypeInternal {
|
|
|
|
+ public:
|
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<locate_setting>
|
|
|
|
+ _instance;
|
|
|
|
+} _locate_setting_default_instance_;
|
|
|
|
+class settingDefaultTypeInternal {
|
|
|
|
+ public:
|
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<setting>
|
|
|
|
+ _instance;
|
|
|
|
+} _setting_default_instance_;
|
|
|
|
+} // namespace global
|
|
|
|
+namespace protobuf_setting_2eproto {
|
|
|
|
+void InitDefaultslocate_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 = &::global::_locate_setting_default_instance_;
|
|
|
|
+ new (ptr) ::global::locate_setting();
|
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
|
+ }
|
|
|
|
+ ::global::locate_setting::InitAsDefaultInstance();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void InitDefaultslocate_setting() {
|
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultslocate_settingImpl);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void InitDefaultssettingImpl() {
|
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
+
|
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
|
+#else
|
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
|
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
|
+ protobuf_setting_2eproto::InitDefaultslocate_setting();
|
|
|
|
+ {
|
|
|
|
+ void* ptr = &::global::_setting_default_instance_;
|
|
|
|
+ new (ptr) ::global::setting();
|
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
|
+ }
|
|
|
|
+ ::global::setting::InitAsDefaultInstance();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void InitDefaultssetting() {
|
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultssettingImpl);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::google::protobuf::Metadata file_level_metadata[2];
|
|
|
|
+
|
|
|
|
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::locate_setting, _has_bits_),
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::locate_setting, _internal_metadata_),
|
|
|
|
+ ~0u, // no _extensions_
|
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::locate_setting, ip_),
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::locate_setting, port_),
|
|
|
|
+ 0,
|
|
|
|
+ 1,
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::setting, _has_bits_),
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::setting, _internal_metadata_),
|
|
|
|
+ ~0u, // no _extensions_
|
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::global::setting, locate_parameter_),
|
|
|
|
+ 0,
|
|
|
|
+};
|
|
|
|
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
|
+ { 0, 7, sizeof(::global::locate_setting)},
|
|
|
|
+ { 9, 15, sizeof(::global::setting)},
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::global::_locate_setting_default_instance_),
|
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::global::_setting_default_instance_),
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+void protobuf_AssignDescriptors() {
|
|
|
|
+ AddDescriptors();
|
|
|
|
+ ::google::protobuf::MessageFactory* factory = NULL;
|
|
|
|
+ AssignDescriptors(
|
|
|
|
+ "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, 2);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void AddDescriptorsImpl() {
|
|
|
|
+ InitDefaults();
|
|
|
|
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
|
+ "\n\rsetting.proto\022\006global\"*\n\016locate_settin"
|
|
|
|
+ "g\022\n\n\002ip\030\001 \002(\t\022\014\n\004port\030\002 \002(\005\";\n\007setting\0220"
|
|
|
|
+ "\n\020locate_parameter\030\001 \002(\0132\026.global.locate"
|
|
|
|
+ "_setting"
|
|
|
|
+ };
|
|
|
|
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
|
+ descriptor, 128);
|
|
|
|
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
|
+ "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_setting_2eproto
|
|
|
|
+namespace global {
|
|
|
|
+
|
|
|
|
+// ===================================================================
|
|
|
|
+
|
|
|
|
+void locate_setting::InitAsDefaultInstance() {
|
|
|
|
+}
|
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
+const int locate_setting::kIpFieldNumber;
|
|
|
|
+const int locate_setting::kPortFieldNumber;
|
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
+
|
|
|
|
+locate_setting::locate_setting()
|
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
|
+ ::protobuf_setting_2eproto::InitDefaultslocate_setting();
|
|
|
|
+ }
|
|
|
|
+ SharedCtor();
|
|
|
|
+ // @@protoc_insertion_point(constructor:global.locate_setting)
|
|
|
|
+}
|
|
|
|
+locate_setting::locate_setting(const locate_setting& from)
|
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
|
+ _internal_metadata_(NULL),
|
|
|
|
+ _has_bits_(from._has_bits_),
|
|
|
|
+ _cached_size_(0) {
|
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
+ ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
+ if (from.has_ip()) {
|
|
|
|
+ ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
|
|
|
|
+ }
|
|
|
|
+ port_ = from.port_;
|
|
|
|
+ // @@protoc_insertion_point(copy_constructor:global.locate_setting)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::SharedCtor() {
|
|
|
|
+ _cached_size_ = 0;
|
|
|
|
+ ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
+ port_ = 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+locate_setting::~locate_setting() {
|
|
|
|
+ // @@protoc_insertion_point(destructor:global.locate_setting)
|
|
|
|
+ SharedDtor();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::SharedDtor() {
|
|
|
|
+ ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::SetCachedSize(int size) const {
|
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
+ _cached_size_ = size;
|
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
+}
|
|
|
|
+const ::google::protobuf::Descriptor* locate_setting::descriptor() {
|
|
|
|
+ ::protobuf_setting_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
+ return ::protobuf_setting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const locate_setting& locate_setting::default_instance() {
|
|
|
|
+ ::protobuf_setting_2eproto::InitDefaultslocate_setting();
|
|
|
|
+ return *internal_default_instance();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+locate_setting* locate_setting::New(::google::protobuf::Arena* arena) const {
|
|
|
|
+ locate_setting* n = new locate_setting;
|
|
|
|
+ if (arena != NULL) {
|
|
|
|
+ arena->Own(n);
|
|
|
|
+ }
|
|
|
|
+ return n;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::Clear() {
|
|
|
|
+// @@protoc_insertion_point(message_clear_start:global.locate_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(!ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
|
+ (*ip_.UnsafeRawStringPointer())->clear();
|
|
|
|
+ }
|
|
|
|
+ port_ = 0;
|
|
|
|
+ _has_bits_.Clear();
|
|
|
|
+ _internal_metadata_.Clear();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+bool locate_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:global.locate_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 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_ip()));
|
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
|
+ this->ip().data(), static_cast<int>(this->ip().length()),
|
|
|
|
+ ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
|
+ "global.locate_setting.ip");
|
|
|
|
+ } else {
|
|
|
|
+ goto handle_unusual;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // required int32 port = 2;
|
|
|
|
+ case 2: {
|
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
|
+ set_has_port();
|
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
|
+ input, &port_)));
|
|
|
|
+ } 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:global.locate_setting)
|
|
|
|
+ return true;
|
|
|
|
+failure:
|
|
|
|
+ // @@protoc_insertion_point(parse_failure:global.locate_setting)
|
|
|
|
+ return false;
|
|
|
|
+#undef DO_
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::SerializeWithCachedSizes(
|
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
|
+ // @@protoc_insertion_point(serialize_start:global.locate_setting)
|
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
+ (void) cached_has_bits;
|
|
|
|
+
|
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
|
+ // required string ip = 1;
|
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
|
+ this->ip().data(), static_cast<int>(this->ip().length()),
|
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
|
+ "global.locate_setting.ip");
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
|
+ 1, this->ip(), output);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // required int32 port = 2;
|
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
+ _internal_metadata_.unknown_fields(), output);
|
|
|
|
+ }
|
|
|
|
+ // @@protoc_insertion_point(serialize_end:global.locate_setting)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::google::protobuf::uint8* locate_setting::InternalSerializeWithCachedSizesToArray(
|
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
|
+ (void)deterministic; // Unused
|
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:global.locate_setting)
|
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
+ (void) cached_has_bits;
|
|
|
|
+
|
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
|
+ // required string ip = 1;
|
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
|
+ this->ip().data(), static_cast<int>(this->ip().length()),
|
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
|
+ "global.locate_setting.ip");
|
|
|
|
+ target =
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
|
+ 1, this->ip(), target);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // required int32 port = 2;
|
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), 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:global.locate_setting)
|
|
|
|
+ return target;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+size_t locate_setting::RequiredFieldsByteSizeFallback() const {
|
|
|
|
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:global.locate_setting)
|
|
|
|
+ size_t total_size = 0;
|
|
|
|
+
|
|
|
|
+ if (has_ip()) {
|
|
|
|
+ // required string ip = 1;
|
|
|
|
+ total_size += 1 +
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
+ this->ip());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (has_port()) {
|
|
|
|
+ // required int32 port = 2;
|
|
|
|
+ total_size += 1 +
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
|
+ this->port());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return total_size;
|
|
|
|
+}
|
|
|
|
+size_t locate_setting::ByteSizeLong() const {
|
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:global.locate_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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
|
|
+ // required string ip = 1;
|
|
|
|
+ total_size += 1 +
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
|
+ this->ip());
|
|
|
|
+
|
|
|
|
+ // required int32 port = 2;
|
|
|
|
+ total_size += 1 +
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
|
+ this->port());
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ total_size += RequiredFieldsByteSizeFallback();
|
|
|
|
+ }
|
|
|
|
+ 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 locate_setting::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:global.locate_setting)
|
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
+ const locate_setting* source =
|
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const locate_setting>(
|
|
|
|
+ &from);
|
|
|
|
+ if (source == NULL) {
|
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:global.locate_setting)
|
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
+ } else {
|
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:global.locate_setting)
|
|
|
|
+ MergeFrom(*source);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::MergeFrom(const locate_setting& from) {
|
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:global.locate_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 & 3u) {
|
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
|
+ set_has_ip();
|
|
|
|
+ ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
|
|
|
|
+ }
|
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
|
+ port_ = from.port_;
|
|
|
|
+ }
|
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:global.locate_setting)
|
|
|
|
+ if (&from == this) return;
|
|
|
|
+ Clear();
|
|
|
|
+ MergeFrom(from);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::CopyFrom(const locate_setting& from) {
|
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:global.locate_setting)
|
|
|
|
+ if (&from == this) return;
|
|
|
|
+ Clear();
|
|
|
|
+ MergeFrom(from);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+bool locate_setting::IsInitialized() const {
|
|
|
|
+ if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
+ return true;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void locate_setting::Swap(locate_setting* other) {
|
|
|
|
+ if (other == this) return;
|
|
|
|
+ InternalSwap(other);
|
|
|
|
+}
|
|
|
|
+void locate_setting::InternalSwap(locate_setting* other) {
|
|
|
|
+ using std::swap;
|
|
|
|
+ ip_.Swap(&other->ip_);
|
|
|
|
+ swap(port_, other->port_);
|
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
|
+ swap(_cached_size_, other->_cached_size_);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::google::protobuf::Metadata locate_setting::GetMetadata() const {
|
|
|
|
+ protobuf_setting_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
+ return ::protobuf_setting_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// ===================================================================
|
|
|
|
+
|
|
|
|
+void setting::InitAsDefaultInstance() {
|
|
|
|
+ ::global::_setting_default_instance_._instance.get_mutable()->locate_parameter_ = const_cast< ::global::locate_setting*>(
|
|
|
|
+ ::global::locate_setting::internal_default_instance());
|
|
|
|
+}
|
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
+const int setting::kLocateParameterFieldNumber;
|
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
+
|
|
|
|
+setting::setting()
|
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
|
+ ::protobuf_setting_2eproto::InitDefaultssetting();
|
|
|
|
+ }
|
|
|
|
+ SharedCtor();
|
|
|
|
+ // @@protoc_insertion_point(constructor:global.setting)
|
|
|
|
+}
|
|
|
|
+setting::setting(const setting& from)
|
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
|
+ _internal_metadata_(NULL),
|
|
|
|
+ _has_bits_(from._has_bits_),
|
|
|
|
+ _cached_size_(0) {
|
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
+ if (from.has_locate_parameter()) {
|
|
|
|
+ locate_parameter_ = new ::global::locate_setting(*from.locate_parameter_);
|
|
|
|
+ } else {
|
|
|
|
+ locate_parameter_ = NULL;
|
|
|
|
+ }
|
|
|
|
+ // @@protoc_insertion_point(copy_constructor:global.setting)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::SharedCtor() {
|
|
|
|
+ _cached_size_ = 0;
|
|
|
|
+ locate_parameter_ = NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+setting::~setting() {
|
|
|
|
+ // @@protoc_insertion_point(destructor:global.setting)
|
|
|
|
+ SharedDtor();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::SharedDtor() {
|
|
|
|
+ if (this != internal_default_instance()) delete locate_parameter_;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::SetCachedSize(int size) const {
|
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
|
+ _cached_size_ = size;
|
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
|
+}
|
|
|
|
+const ::google::protobuf::Descriptor* setting::descriptor() {
|
|
|
|
+ ::protobuf_setting_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
+ return ::protobuf_setting_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const setting& setting::default_instance() {
|
|
|
|
+ ::protobuf_setting_2eproto::InitDefaultssetting();
|
|
|
|
+ return *internal_default_instance();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+setting* setting::New(::google::protobuf::Arena* arena) const {
|
|
|
|
+ setting* n = new setting;
|
|
|
|
+ if (arena != NULL) {
|
|
|
|
+ arena->Own(n);
|
|
|
|
+ }
|
|
|
|
+ return n;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::Clear() {
|
|
|
|
+// @@protoc_insertion_point(message_clear_start:global.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(locate_parameter_ != NULL);
|
|
|
|
+ locate_parameter_->Clear();
|
|
|
|
+ }
|
|
|
|
+ _has_bits_.Clear();
|
|
|
|
+ _internal_metadata_.Clear();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+bool 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:global.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 .global.locate_setting locate_parameter = 1;
|
|
|
|
+ case 1: {
|
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
|
+ input, mutable_locate_parameter()));
|
|
|
|
+ } 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:global.setting)
|
|
|
|
+ return true;
|
|
|
|
+failure:
|
|
|
|
+ // @@protoc_insertion_point(parse_failure:global.setting)
|
|
|
|
+ return false;
|
|
|
|
+#undef DO_
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::SerializeWithCachedSizes(
|
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
|
+ // @@protoc_insertion_point(serialize_start:global.setting)
|
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
+ (void) cached_has_bits;
|
|
|
|
+
|
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
|
+ // required .global.locate_setting locate_parameter = 1;
|
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
|
+ 1, *this->locate_parameter_, output);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
|
+ _internal_metadata_.unknown_fields(), output);
|
|
|
|
+ }
|
|
|
|
+ // @@protoc_insertion_point(serialize_end:global.setting)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::google::protobuf::uint8* setting::InternalSerializeWithCachedSizesToArray(
|
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
|
+ (void)deterministic; // Unused
|
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:global.setting)
|
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
+ (void) cached_has_bits;
|
|
|
|
+
|
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
|
+ // required .global.locate_setting locate_parameter = 1;
|
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
|
+ InternalWriteMessageToArray(
|
|
|
|
+ 1, *this->locate_parameter_, deterministic, target);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
|
+ _internal_metadata_.unknown_fields(), target);
|
|
|
|
+ }
|
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:global.setting)
|
|
|
|
+ return target;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+size_t setting::ByteSizeLong() const {
|
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:global.setting)
|
|
|
|
+ size_t total_size = 0;
|
|
|
|
+
|
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
|
+ total_size +=
|
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
|
+ _internal_metadata_.unknown_fields());
|
|
|
|
+ }
|
|
|
|
+ // required .global.locate_setting locate_parameter = 1;
|
|
|
|
+ if (has_locate_parameter()) {
|
|
|
|
+ total_size += 1 +
|
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
|
+ *this->locate_parameter_);
|
|
|
|
+ }
|
|
|
|
+ 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 setting::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:global.setting)
|
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
+ const setting* source =
|
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const setting>(
|
|
|
|
+ &from);
|
|
|
|
+ if (source == NULL) {
|
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:global.setting)
|
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
|
+ } else {
|
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:global.setting)
|
|
|
|
+ MergeFrom(*source);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::MergeFrom(const setting& from) {
|
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:global.setting)
|
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
|
+ (void) cached_has_bits;
|
|
|
|
+
|
|
|
|
+ if (from.has_locate_parameter()) {
|
|
|
|
+ mutable_locate_parameter()->::global::locate_setting::MergeFrom(from.locate_parameter());
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:global.setting)
|
|
|
|
+ if (&from == this) return;
|
|
|
|
+ Clear();
|
|
|
|
+ MergeFrom(from);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::CopyFrom(const setting& from) {
|
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:global.setting)
|
|
|
|
+ if (&from == this) return;
|
|
|
|
+ Clear();
|
|
|
|
+ MergeFrom(from);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+bool setting::IsInitialized() const {
|
|
|
|
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
+ if (has_locate_parameter()) {
|
|
|
|
+ if (!this->locate_parameter_->IsInitialized()) return false;
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void setting::Swap(setting* other) {
|
|
|
|
+ if (other == this) return;
|
|
|
|
+ InternalSwap(other);
|
|
|
|
+}
|
|
|
|
+void setting::InternalSwap(setting* other) {
|
|
|
|
+ using std::swap;
|
|
|
|
+ swap(locate_parameter_, other->locate_parameter_);
|
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
|
+ swap(_cached_size_, other->_cached_size_);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::google::protobuf::Metadata setting::GetMetadata() const {
|
|
|
|
+ protobuf_setting_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
|
+ return ::protobuf_setting_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// @@protoc_insertion_point(namespace_scope)
|
|
|
|
+} // namespace global
|
|
|
|
+
|
|
|
|
+// @@protoc_insertion_point(global_scope)
|