123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: setting.proto
- #ifndef PROTOBUF_setting_2eproto__INCLUDED
- #define PROTOBUF_setting_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- namespace protobuf_setting_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[2];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- void InitDefaultslocate_settingImpl();
- void InitDefaultslocate_setting();
- void InitDefaultsglobal_settingImpl();
- void InitDefaultsglobal_setting();
- inline void InitDefaults() {
- InitDefaultslocate_setting();
- InitDefaultsglobal_setting();
- }
- } // namespace protobuf_setting_2eproto
- namespace setting {
- class global_setting;
- class global_settingDefaultTypeInternal;
- extern global_settingDefaultTypeInternal _global_setting_default_instance_;
- class locate_setting;
- class locate_settingDefaultTypeInternal;
- extern locate_settingDefaultTypeInternal _locate_setting_default_instance_;
- } // namespace setting
- namespace setting {
- // ===================================================================
- class locate_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.locate_setting) */ {
- public:
- locate_setting();
- virtual ~locate_setting();
- locate_setting(const locate_setting& from);
- inline locate_setting& operator=(const locate_setting& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- locate_setting(locate_setting&& from) noexcept
- : locate_setting() {
- *this = ::std::move(from);
- }
- inline locate_setting& operator=(locate_setting&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const locate_setting& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const locate_setting* internal_default_instance() {
- return reinterpret_cast<const locate_setting*>(
- &_locate_setting_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(locate_setting* other);
- friend void swap(locate_setting& a, locate_setting& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline locate_setting* New() const PROTOBUF_FINAL { return New(NULL); }
- locate_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const locate_setting& from);
- void MergeFrom(const locate_setting& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(locate_setting* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required string ip = 1;
- bool has_ip() const;
- void clear_ip();
- static const int kIpFieldNumber = 1;
- const ::std::string& ip() const;
- void set_ip(const ::std::string& value);
- #if LANG_CXX11
- void set_ip(::std::string&& value);
- #endif
- void set_ip(const char* value);
- void set_ip(const char* value, size_t size);
- ::std::string* mutable_ip();
- ::std::string* release_ip();
- void set_allocated_ip(::std::string* ip);
- // required int32 port = 2;
- bool has_port() const;
- void clear_port();
- static const int kPortFieldNumber = 2;
- ::google::protobuf::int32 port() const;
- void set_port(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:setting.locate_setting)
- private:
- void set_has_ip();
- void clear_has_ip();
- void set_has_port();
- void clear_has_port();
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable int _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr ip_;
- ::google::protobuf::int32 port_;
- friend struct ::protobuf_setting_2eproto::TableStruct;
- friend void ::protobuf_setting_2eproto::InitDefaultslocate_settingImpl();
- };
- // -------------------------------------------------------------------
- class global_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.global_setting) */ {
- public:
- global_setting();
- virtual ~global_setting();
- global_setting(const global_setting& from);
- inline global_setting& operator=(const global_setting& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- global_setting(global_setting&& from) noexcept
- : global_setting() {
- *this = ::std::move(from);
- }
- inline global_setting& operator=(global_setting&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const global_setting& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const global_setting* internal_default_instance() {
- return reinterpret_cast<const global_setting*>(
- &_global_setting_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 1;
- void Swap(global_setting* other);
- friend void swap(global_setting& a, global_setting& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline global_setting* New() const PROTOBUF_FINAL { return New(NULL); }
- global_setting* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const global_setting& from);
- void MergeFrom(const global_setting& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(global_setting* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required .setting.locate_setting locate_parameter = 1;
- bool has_locate_parameter() const;
- void clear_locate_parameter();
- static const int kLocateParameterFieldNumber = 1;
- const ::setting::locate_setting& locate_parameter() const;
- ::setting::locate_setting* release_locate_parameter();
- ::setting::locate_setting* mutable_locate_parameter();
- void set_allocated_locate_parameter(::setting::locate_setting* locate_parameter);
- // @@protoc_insertion_point(class_scope:setting.global_setting)
- private:
- void set_has_locate_parameter();
- void clear_has_locate_parameter();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable int _cached_size_;
- ::setting::locate_setting* locate_parameter_;
- friend struct ::protobuf_setting_2eproto::TableStruct;
- friend void ::protobuf_setting_2eproto::InitDefaultsglobal_settingImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // locate_setting
- // required string ip = 1;
- inline bool locate_setting::has_ip() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void locate_setting::set_has_ip() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void locate_setting::clear_has_ip() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void locate_setting::clear_ip() {
- ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_ip();
- }
- inline const ::std::string& locate_setting::ip() const {
- // @@protoc_insertion_point(field_get:setting.locate_setting.ip)
- return ip_.GetNoArena();
- }
- inline void locate_setting::set_ip(const ::std::string& value) {
- set_has_ip();
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:setting.locate_setting.ip)
- }
- #if LANG_CXX11
- inline void locate_setting::set_ip(::std::string&& value) {
- set_has_ip();
- ip_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:setting.locate_setting.ip)
- }
- #endif
- inline void locate_setting::set_ip(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_ip();
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:setting.locate_setting.ip)
- }
- inline void locate_setting::set_ip(const char* value, size_t size) {
- set_has_ip();
- ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:setting.locate_setting.ip)
- }
- inline ::std::string* locate_setting::mutable_ip() {
- set_has_ip();
- // @@protoc_insertion_point(field_mutable:setting.locate_setting.ip)
- return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* locate_setting::release_ip() {
- // @@protoc_insertion_point(field_release:setting.locate_setting.ip)
- clear_has_ip();
- return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void locate_setting::set_allocated_ip(::std::string* ip) {
- if (ip != NULL) {
- set_has_ip();
- } else {
- clear_has_ip();
- }
- ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip);
- // @@protoc_insertion_point(field_set_allocated:setting.locate_setting.ip)
- }
- // required int32 port = 2;
- inline bool locate_setting::has_port() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void locate_setting::set_has_port() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void locate_setting::clear_has_port() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void locate_setting::clear_port() {
- port_ = 0;
- clear_has_port();
- }
- inline ::google::protobuf::int32 locate_setting::port() const {
- // @@protoc_insertion_point(field_get:setting.locate_setting.port)
- return port_;
- }
- inline void locate_setting::set_port(::google::protobuf::int32 value) {
- set_has_port();
- port_ = value;
- // @@protoc_insertion_point(field_set:setting.locate_setting.port)
- }
- // -------------------------------------------------------------------
- // global_setting
- // required .setting.locate_setting locate_parameter = 1;
- inline bool global_setting::has_locate_parameter() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void global_setting::set_has_locate_parameter() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void global_setting::clear_has_locate_parameter() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void global_setting::clear_locate_parameter() {
- if (locate_parameter_ != NULL) locate_parameter_->Clear();
- clear_has_locate_parameter();
- }
- inline const ::setting::locate_setting& global_setting::locate_parameter() const {
- const ::setting::locate_setting* p = locate_parameter_;
- // @@protoc_insertion_point(field_get:setting.global_setting.locate_parameter)
- return p != NULL ? *p : *reinterpret_cast<const ::setting::locate_setting*>(
- &::setting::_locate_setting_default_instance_);
- }
- inline ::setting::locate_setting* global_setting::release_locate_parameter() {
- // @@protoc_insertion_point(field_release:setting.global_setting.locate_parameter)
- clear_has_locate_parameter();
- ::setting::locate_setting* temp = locate_parameter_;
- locate_parameter_ = NULL;
- return temp;
- }
- inline ::setting::locate_setting* global_setting::mutable_locate_parameter() {
- set_has_locate_parameter();
- if (locate_parameter_ == NULL) {
- locate_parameter_ = new ::setting::locate_setting;
- }
- // @@protoc_insertion_point(field_mutable:setting.global_setting.locate_parameter)
- return locate_parameter_;
- }
- inline void global_setting::set_allocated_locate_parameter(::setting::locate_setting* locate_parameter) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete locate_parameter_;
- }
- if (locate_parameter) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- locate_parameter = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, locate_parameter, submessage_arena);
- }
- set_has_locate_parameter();
- } else {
- clear_has_locate_parameter();
- }
- locate_parameter_ = locate_parameter;
- // @@protoc_insertion_point(field_set_allocated:setting.global_setting.locate_parameter)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace setting
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_setting_2eproto__INCLUDED
|