// 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 #include #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 #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@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( &_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 = 6; bool has_entrance_num() const; void clear_entrance_num(); static const int kEntranceNumFieldNumber = 6; ::google::protobuf::int32 entrance_num() const; void set_entrance_num(::google::protobuf::int32 value); // required int32 export_num = 7; bool has_export_num() const; void clear_export_num(); static const int kExportNumFieldNumber = 7; ::google::protobuf::int32 export_num() const; void set_export_num(::google::protobuf::int32 value); // optional int32 terminor_port = 2 [default = 30000]; bool has_terminor_port() const; void clear_terminor_port(); static const int kTerminorPortFieldNumber = 2; ::google::protobuf::int32 terminor_port() const; void set_terminor_port(::google::protobuf::int32 value); // optional int32 park_space_port = 3 [default = 30001]; bool has_park_space_port() const; void clear_park_space_port(); static const int kParkSpacePortFieldNumber = 3; ::google::protobuf::int32 park_space_port() const; void set_park_space_port(::google::protobuf::int32 value); // optional int32 measurer_port = 4 [default = 30002]; bool has_measurer_port() const; void clear_measurer_port(); static const int kMeasurerPortFieldNumber = 4; ::google::protobuf::int32 measurer_port() const; void set_measurer_port(::google::protobuf::int32 value); // optional int32 dispatcher_port = 5 [default = 30003]; bool has_dispatcher_port() const; void clear_dispatcher_port(); static const int kDispatcherPortFieldNumber = 5; ::google::protobuf::int32 dispatcher_port() const; void set_dispatcher_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_terminor_port(); void clear_has_terminor_port(); void set_has_park_space_port(); void clear_has_park_space_port(); void set_has_measurer_port(); void clear_has_measurer_port(); void set_has_dispatcher_port(); void clear_has_dispatcher_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 terminor_port_; ::google::protobuf::int32 park_space_port_; ::google::protobuf::int32 measurer_port_; ::google::protobuf::int32 dispatcher_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(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 terminor_port = 2 [default = 30000]; inline bool System_setting::has_terminor_port() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void System_setting::set_has_terminor_port() { _has_bits_[0] |= 0x00000008u; } inline void System_setting::clear_has_terminor_port() { _has_bits_[0] &= ~0x00000008u; } inline void System_setting::clear_terminor_port() { terminor_port_ = 30000; clear_has_terminor_port(); } inline ::google::protobuf::int32 System_setting::terminor_port() const { // @@protoc_insertion_point(field_get:setting.System_setting.terminor_port) return terminor_port_; } inline void System_setting::set_terminor_port(::google::protobuf::int32 value) { set_has_terminor_port(); terminor_port_ = value; // @@protoc_insertion_point(field_set:setting.System_setting.terminor_port) } // optional int32 park_space_port = 3 [default = 30001]; inline bool System_setting::has_park_space_port() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void System_setting::set_has_park_space_port() { _has_bits_[0] |= 0x00000010u; } inline void System_setting::clear_has_park_space_port() { _has_bits_[0] &= ~0x00000010u; } inline void System_setting::clear_park_space_port() { park_space_port_ = 30001; clear_has_park_space_port(); } inline ::google::protobuf::int32 System_setting::park_space_port() const { // @@protoc_insertion_point(field_get:setting.System_setting.park_space_port) return park_space_port_; } inline void System_setting::set_park_space_port(::google::protobuf::int32 value) { set_has_park_space_port(); park_space_port_ = value; // @@protoc_insertion_point(field_set:setting.System_setting.park_space_port) } // optional int32 measurer_port = 4 [default = 30002]; inline bool System_setting::has_measurer_port() const { return (_has_bits_[0] & 0x00000020u) != 0; } inline void System_setting::set_has_measurer_port() { _has_bits_[0] |= 0x00000020u; } inline void System_setting::clear_has_measurer_port() { _has_bits_[0] &= ~0x00000020u; } inline void System_setting::clear_measurer_port() { measurer_port_ = 30002; clear_has_measurer_port(); } inline ::google::protobuf::int32 System_setting::measurer_port() const { // @@protoc_insertion_point(field_get:setting.System_setting.measurer_port) return measurer_port_; } inline void System_setting::set_measurer_port(::google::protobuf::int32 value) { set_has_measurer_port(); measurer_port_ = value; // @@protoc_insertion_point(field_set:setting.System_setting.measurer_port) } // optional int32 dispatcher_port = 5 [default = 30003]; inline bool System_setting::has_dispatcher_port() const { return (_has_bits_[0] & 0x00000040u) != 0; } inline void System_setting::set_has_dispatcher_port() { _has_bits_[0] |= 0x00000040u; } inline void System_setting::clear_has_dispatcher_port() { _has_bits_[0] &= ~0x00000040u; } inline void System_setting::clear_dispatcher_port() { dispatcher_port_ = 30003; clear_has_dispatcher_port(); } inline ::google::protobuf::int32 System_setting::dispatcher_port() const { // @@protoc_insertion_point(field_get:setting.System_setting.dispatcher_port) return dispatcher_port_; } inline void System_setting::set_dispatcher_port(::google::protobuf::int32 value) { set_has_dispatcher_port(); dispatcher_port_ = value; // @@protoc_insertion_point(field_set:setting.System_setting.dispatcher_port) } // required int32 entrance_num = 6; 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 = 7; 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