123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: system_setting.proto
- #ifndef PROTOBUF_system_5fsetting_2eproto__INCLUDED
- #define PROTOBUF_system_5fsetting_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_system_5fsetting_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[1];
- 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 InitDefaultsSystem_settingImpl();
- void InitDefaultsSystem_setting();
- inline void InitDefaults() {
- InitDefaultsSystem_setting();
- }
- } // namespace protobuf_system_5fsetting_2eproto
- namespace setting {
- class System_setting;
- class System_settingDefaultTypeInternal;
- extern System_settingDefaultTypeInternal _System_setting_default_instance_;
- } // namespace setting
- namespace setting {
- // ===================================================================
- class System_setting : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:setting.System_setting) */ {
- public:
- System_setting();
- virtual ~System_setting();
- System_setting(const System_setting& from);
- inline System_setting& operator=(const System_setting& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- System_setting(System_setting&& from) noexcept
- : System_setting() {
- *this = ::std::move(from);
- }
- inline System_setting& operator=(System_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 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(System_setting* other);
- friend void swap(System_setting& a, System_setting& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline System_setting* New() const PROTOBUF_FINAL { return New(NULL); }
- System_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 System_setting& from);
- void MergeFrom(const System_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(System_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 bind_ip = 1;
- bool has_bind_ip() const;
- void clear_bind_ip();
- static const int kBindIpFieldNumber = 1;
- const ::std::string& bind_ip() const;
- void set_bind_ip(const ::std::string& value);
- #if LANG_CXX11
- void set_bind_ip(::std::string&& value);
- #endif
- 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);
- // required int32 entrance_num = 3;
- bool has_entrance_num() const;
- void clear_entrance_num();
- static const int kEntranceNumFieldNumber = 3;
- ::google::protobuf::int32 entrance_num() const;
- void set_entrance_num(::google::protobuf::int32 value);
- // required int32 export_num = 4;
- bool has_export_num() const;
- void clear_export_num();
- static const int kExportNumFieldNumber = 4;
- ::google::protobuf::int32 export_num() const;
- void set_export_num(::google::protobuf::int32 value);
- // optional int32 bind_port = 2 [default = 30000];
- bool has_bind_port() const;
- void clear_bind_port();
- static const int kBindPortFieldNumber = 2;
- ::google::protobuf::int32 bind_port() const;
- void set_bind_port(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:setting.System_setting)
- private:
- void set_has_bind_ip();
- void clear_has_bind_ip();
- void set_has_bind_port();
- void clear_has_bind_port();
- void set_has_entrance_num();
- void clear_has_entrance_num();
- void set_has_export_num();
- void clear_has_export_num();
- // 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 bind_ip_;
- ::google::protobuf::int32 entrance_num_;
- ::google::protobuf::int32 export_num_;
- ::google::protobuf::int32 bind_port_;
- friend struct ::protobuf_system_5fsetting_2eproto::TableStruct;
- friend void ::protobuf_system_5fsetting_2eproto::InitDefaultsSystem_settingImpl();
- };
- // ===================================================================
- // ===================================================================
- #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::has_bind_ip() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void System_setting::set_has_bind_ip() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void System_setting::clear_has_bind_ip() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void System_setting::clear_bind_ip() {
- bind_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_bind_ip();
- }
- inline const ::std::string& System_setting::bind_ip() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.bind_ip)
- return bind_ip_.GetNoArena();
- }
- inline void System_setting::set_bind_ip(const ::std::string& value) {
- set_has_bind_ip();
- bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:setting.System_setting.bind_ip)
- }
- #if LANG_CXX11
- inline void System_setting::set_bind_ip(::std::string&& value) {
- set_has_bind_ip();
- bind_ip_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:setting.System_setting.bind_ip)
- }
- #endif
- inline void System_setting::set_bind_ip(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_bind_ip();
- bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:setting.System_setting.bind_ip)
- }
- inline void System_setting::set_bind_ip(const char* value, size_t size) {
- set_has_bind_ip();
- bind_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:setting.System_setting.bind_ip)
- }
- inline ::std::string* System_setting::mutable_bind_ip() {
- set_has_bind_ip();
- // @@protoc_insertion_point(field_mutable:setting.System_setting.bind_ip)
- return bind_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* System_setting::release_bind_ip() {
- // @@protoc_insertion_point(field_release:setting.System_setting.bind_ip)
- clear_has_bind_ip();
- return bind_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void System_setting::set_allocated_bind_ip(::std::string* bind_ip) {
- if (bind_ip != NULL) {
- set_has_bind_ip();
- } else {
- clear_has_bind_ip();
- }
- bind_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bind_ip);
- // @@protoc_insertion_point(field_set_allocated:setting.System_setting.bind_ip)
- }
- // optional int32 bind_port = 2 [default = 30000];
- inline bool System_setting::has_bind_port() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void System_setting::set_has_bind_port() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void System_setting::clear_has_bind_port() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void System_setting::clear_bind_port() {
- bind_port_ = 30000;
- clear_has_bind_port();
- }
- inline ::google::protobuf::int32 System_setting::bind_port() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.bind_port)
- return bind_port_;
- }
- inline void System_setting::set_bind_port(::google::protobuf::int32 value) {
- set_has_bind_port();
- bind_port_ = value;
- // @@protoc_insertion_point(field_set:setting.System_setting.bind_port)
- }
- // required int32 entrance_num = 3;
- inline bool System_setting::has_entrance_num() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void System_setting::set_has_entrance_num() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void System_setting::clear_has_entrance_num() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void System_setting::clear_entrance_num() {
- entrance_num_ = 0;
- clear_has_entrance_num();
- }
- inline ::google::protobuf::int32 System_setting::entrance_num() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.entrance_num)
- return entrance_num_;
- }
- inline void System_setting::set_entrance_num(::google::protobuf::int32 value) {
- set_has_entrance_num();
- entrance_num_ = value;
- // @@protoc_insertion_point(field_set:setting.System_setting.entrance_num)
- }
- // required int32 export_num = 4;
- inline bool System_setting::has_export_num() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void System_setting::set_has_export_num() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void System_setting::clear_has_export_num() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void System_setting::clear_export_num() {
- export_num_ = 0;
- clear_has_export_num();
- }
- inline ::google::protobuf::int32 System_setting::export_num() const {
- // @@protoc_insertion_point(field_get:setting.System_setting.export_num)
- return export_num_;
- }
- inline void System_setting::set_export_num(::google::protobuf::int32 value) {
- set_has_export_num();
- 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)
- #endif // PROTOBUF_system_5fsetting_2eproto__INCLUDED
|