123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: system_setting.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3013000
- #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 3013000 < 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/port_undef.inc>
- #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/inlined_string_field.h>
- #include <google/protobuf/metadata_lite.h>
- #include <google/protobuf/generated_message_reflection.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)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_system_5fsetting_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_system_5fsetting_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_system_5fsetting_2eproto;
- namespace setting {
- class System_setting;
- class System_settingDefaultTypeInternal;
- extern System_settingDefaultTypeInternal _System_setting_default_instance_;
- } // namespace setting
- PROTOBUF_NAMESPACE_OPEN
- template<> ::setting::System_setting* Arena::CreateMaybeMessage<::setting::System_setting>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace setting {
- // ===================================================================
- class System_setting PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:setting.System_setting) */ {
- public:
- inline System_setting() : System_setting(nullptr) {}
- virtual ~System_setting();
- System_setting(const System_setting& from);
- System_setting(System_setting&& from) noexcept
- : System_setting() {
- *this = ::std::move(from);
- }
- inline System_setting& operator=(const System_setting& from) {
- CopyFrom(from);
- return *this;
- }
- inline System_setting& operator=(System_setting&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
- }
- inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const System_setting& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const System_setting* internal_default_instance() {
- return reinterpret_cast<const System_setting*>(
- &_System_setting_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(System_setting& a, System_setting& b) {
- a.Swap(&b);
- }
- inline void Swap(System_setting* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(System_setting* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline System_setting* New() const final {
- return CreateMaybeMessage<System_setting>(nullptr);
- }
- System_setting* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<System_setting>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const System_setting& from);
- void MergeFrom(const System_setting& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(System_setting* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "setting.System_setting";
- }
- protected:
- explicit System_setting(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_system_5fsetting_2eproto);
- return ::descriptor_table_system_5fsetting_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kBindIpFieldNumber = 1,
- kEntranceNumFieldNumber = 3,
- kExportNumFieldNumber = 4,
- kBindPortFieldNumber = 2,
- };
- // required string bind_ip = 1;
- bool has_bind_ip() const;
- private:
- bool _internal_has_bind_ip() const;
- public:
- void clear_bind_ip();
- const std::string& bind_ip() const;
- void set_bind_ip(const std::string& value);
- void set_bind_ip(std::string&& value);
- void set_bind_ip(const char* value);
- void set_bind_ip(const char* value, size_t size);
- std::string* mutable_bind_ip();
- std::string* release_bind_ip();
- void set_allocated_bind_ip(std::string* bind_ip);
- private:
- const std::string& _internal_bind_ip() const;
- void _internal_set_bind_ip(const std::string& value);
- std::string* _internal_mutable_bind_ip();
- public:
- // required int32 entrance_num = 3;
- bool has_entrance_num() const;
- private:
- bool _internal_has_entrance_num() const;
- public:
- void clear_entrance_num();
- ::PROTOBUF_NAMESPACE_ID::int32 entrance_num() const;
- void set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_entrance_num() const;
- void _internal_set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // required int32 export_num = 4;
- bool has_export_num() const;
- private:
- bool _internal_has_export_num() const;
- public:
- void clear_export_num();
- ::PROTOBUF_NAMESPACE_ID::int32 export_num() const;
- void set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_export_num() const;
- void _internal_set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // optional int32 bind_port = 2 [default = 30000];
- bool has_bind_port() const;
- private:
- bool _internal_has_bind_port() const;
- public:
- void clear_bind_port();
- ::PROTOBUF_NAMESPACE_ID::int32 bind_port() const;
- void set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_bind_port() const;
- void _internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // @@protoc_insertion_point(class_scope:setting.System_setting)
- private:
- class _Internal;
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bind_ip_;
- ::PROTOBUF_NAMESPACE_ID::int32 entrance_num_;
- ::PROTOBUF_NAMESPACE_ID::int32 export_num_;
- ::PROTOBUF_NAMESPACE_ID::int32 bind_port_;
- friend struct ::TableStruct_system_5fsetting_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // System_setting
- // required string bind_ip = 1;
- inline bool System_setting::_internal_has_bind_ip() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
- }
- inline bool System_setting::has_bind_ip() const {
- return _internal_has_bind_ip();
- }
- inline void System_setting::clear_bind_ip() {
- bind_ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const std::string& System_setting::bind_ip() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.bind_ip)
- return _internal_bind_ip();
- }
- inline void System_setting::set_bind_ip(const std::string& value) {
- _internal_set_bind_ip(value);
- // @@protoc_insertion_point(field_set:setting.System_setting.bind_ip)
- }
- inline std::string* System_setting::mutable_bind_ip() {
- // @@protoc_insertion_point(field_mutable:setting.System_setting.bind_ip)
- return _internal_mutable_bind_ip();
- }
- inline const std::string& System_setting::_internal_bind_ip() const {
- return bind_ip_.Get();
- }
- inline void System_setting::_internal_set_bind_ip(const std::string& value) {
- _has_bits_[0] |= 0x00000001u;
- bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
- }
- inline void System_setting::set_bind_ip(std::string&& value) {
- _has_bits_[0] |= 0x00000001u;
- bind_ip_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:setting.System_setting.bind_ip)
- }
- inline void System_setting::set_bind_ip(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- _has_bits_[0] |= 0x00000001u;
- bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArena());
- // @@protoc_insertion_point(field_set_char:setting.System_setting.bind_ip)
- }
- inline void System_setting::set_bind_ip(const char* value,
- size_t size) {
- _has_bits_[0] |= 0x00000001u;
- bind_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:setting.System_setting.bind_ip)
- }
- inline std::string* System_setting::_internal_mutable_bind_ip() {
- _has_bits_[0] |= 0x00000001u;
- return bind_ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline std::string* System_setting::release_bind_ip() {
- // @@protoc_insertion_point(field_release:setting.System_setting.bind_ip)
- if (!_internal_has_bind_ip()) {
- return nullptr;
- }
- _has_bits_[0] &= ~0x00000001u;
- return bind_ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline void System_setting::set_allocated_bind_ip(std::string* bind_ip) {
- if (bind_ip != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- bind_ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bind_ip,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:setting.System_setting.bind_ip)
- }
- // optional int32 bind_port = 2 [default = 30000];
- inline bool System_setting::_internal_has_bind_port() const {
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- return value;
- }
- inline bool System_setting::has_bind_port() const {
- return _internal_has_bind_port();
- }
- inline void System_setting::clear_bind_port() {
- bind_port_ = 30000;
- _has_bits_[0] &= ~0x00000008u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_bind_port() const {
- return bind_port_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::bind_port() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.bind_port)
- return _internal_bind_port();
- }
- inline void System_setting::_internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000008u;
- bind_port_ = value;
- }
- inline void System_setting::set_bind_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_bind_port(value);
- // @@protoc_insertion_point(field_set:setting.System_setting.bind_port)
- }
- // required int32 entrance_num = 3;
- inline bool System_setting::_internal_has_entrance_num() const {
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- return value;
- }
- inline bool System_setting::has_entrance_num() const {
- return _internal_has_entrance_num();
- }
- inline void System_setting::clear_entrance_num() {
- entrance_num_ = 0;
- _has_bits_[0] &= ~0x00000002u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_entrance_num() const {
- return entrance_num_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::entrance_num() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.entrance_num)
- return _internal_entrance_num();
- }
- inline void System_setting::_internal_set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000002u;
- entrance_num_ = value;
- }
- inline void System_setting::set_entrance_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_entrance_num(value);
- // @@protoc_insertion_point(field_set:setting.System_setting.entrance_num)
- }
- // required int32 export_num = 4;
- inline bool System_setting::_internal_has_export_num() const {
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- return value;
- }
- inline bool System_setting::has_export_num() const {
- return _internal_has_export_num();
- }
- inline void System_setting::clear_export_num() {
- export_num_ = 0;
- _has_bits_[0] &= ~0x00000004u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::_internal_export_num() const {
- return export_num_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 System_setting::export_num() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.export_num)
- return _internal_export_num();
- }
- inline void System_setting::_internal_set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000004u;
- export_num_ = value;
- }
- inline void System_setting::set_export_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_export_num(value);
- // @@protoc_insertion_point(field_set:setting.System_setting.export_num)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // @@protoc_insertion_point(namespace_scope)
- } // namespace setting
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_system_5fsetting_2eproto
|