// Generated by the protocol buffer compiler. DO NOT EDIT! // source: system_setting.proto #ifndef PROTOBUF_INCLUDED_system_5fsetting_2eproto #define PROTOBUF_INCLUDED_system_5fsetting_2eproto #include #include #if GOOGLE_PROTOBUF_VERSION < 3006001 #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 3006001 < 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 #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) #define PROTOBUF_INTERNAL_EXPORT_protobuf_system_5fsetting_2eproto 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(); } // namespace protobuf_system_5fsetting_2eproto namespace setting { class System_setting; class System_settingDefaultTypeInternal; extern System_settingDefaultTypeInternal _System_setting_default_instance_; } // namespace setting namespace google { namespace protobuf { template<> ::setting::System_setting* Arena::CreateMaybeMessage<::setting::System_setting>(Arena*); } // namespace protobuf } // namespace google 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( &_System_setting_default_instance_); } static constexpr int 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 final { return CreateMaybeMessage(NULL); } System_setting* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const System_setting& from); void MergeFrom(const System_setting& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const 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 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 ::google::protobuf::internal::CachedSize _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; }; // =================================================================== // =================================================================== #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(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) if (!has_bind_ip()) { return NULL; } clear_has_bind_ip(); return bind_ip_.ReleaseNonDefaultNoArena(&::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_INCLUDED_system_5fsetting_2eproto