123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: network.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_network_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_network_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3012000
- #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 3012004 < 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/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_network_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_network_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
- 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_network_2eproto;
- namespace Network_proto {
- class Network_information;
- class Network_informationDefaultTypeInternal;
- extern Network_informationDefaultTypeInternal _Network_information_default_instance_;
- class Network_parameter;
- class Network_parameterDefaultTypeInternal;
- extern Network_parameterDefaultTypeInternal _Network_parameter_default_instance_;
- class Network_parameter_all;
- class Network_parameter_allDefaultTypeInternal;
- extern Network_parameter_allDefaultTypeInternal _Network_parameter_all_default_instance_;
- } // namespace Network_proto
- PROTOBUF_NAMESPACE_OPEN
- template<> ::Network_proto::Network_information* Arena::CreateMaybeMessage<::Network_proto::Network_information>(Arena*);
- template<> ::Network_proto::Network_parameter* Arena::CreateMaybeMessage<::Network_proto::Network_parameter>(Arena*);
- template<> ::Network_proto::Network_parameter_all* Arena::CreateMaybeMessage<::Network_proto::Network_parameter_all>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace Network_proto {
- enum Network_mode : int {
- NETWORK_UNKNOWN = 0,
- TCP_CLIENT = 1,
- TCP_SERVER = 2,
- UDP = 3
- };
- bool Network_mode_IsValid(int value);
- constexpr Network_mode Network_mode_MIN = NETWORK_UNKNOWN;
- constexpr Network_mode Network_mode_MAX = UDP;
- constexpr int Network_mode_ARRAYSIZE = Network_mode_MAX + 1;
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Network_mode_descriptor();
- template<typename T>
- inline const std::string& Network_mode_Name(T enum_t_value) {
- static_assert(::std::is_same<T, Network_mode>::value ||
- ::std::is_integral<T>::value,
- "Incorrect type passed to function Network_mode_Name.");
- return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
- Network_mode_descriptor(), enum_t_value);
- }
- inline bool Network_mode_Parse(
- const std::string& name, Network_mode* value) {
- return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Network_mode>(
- Network_mode_descriptor(), name, value);
- }
- // ===================================================================
- class Network_information PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_information) */ {
- public:
- inline Network_information() : Network_information(nullptr) {};
- virtual ~Network_information();
- Network_information(const Network_information& from);
- Network_information(Network_information&& from) noexcept
- : Network_information() {
- *this = ::std::move(from);
- }
- inline Network_information& operator=(const Network_information& from) {
- CopyFrom(from);
- return *this;
- }
- inline Network_information& operator=(Network_information&& 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 Network_information& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Network_information* internal_default_instance() {
- return reinterpret_cast<const Network_information*>(
- &_Network_information_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Network_information& a, Network_information& b) {
- a.Swap(&b);
- }
- inline void Swap(Network_information* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Network_information* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Network_information* New() const final {
- return CreateMaybeMessage<Network_information>(nullptr);
- }
- Network_information* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Network_information>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Network_information& from);
- void MergeFrom(const Network_information& 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(Network_information* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "Network_proto.Network_information";
- }
- protected:
- explicit Network_information(::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_network_2eproto);
- return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kIpFieldNumber = 3,
- kNetworkModeFieldNumber = 1,
- kSocketIdFieldNumber = 2,
- kPortFieldNumber = 4,
- };
- // optional string ip = 3 [default = ""];
- bool has_ip() const;
- private:
- bool _internal_has_ip() const;
- public:
- void clear_ip();
- const std::string& ip() const;
- void set_ip(const std::string& value);
- void set_ip(std::string&& value);
- 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);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_ip();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_ip(
- std::string* ip);
- private:
- const std::string& _internal_ip() const;
- void _internal_set_ip(const std::string& value);
- std::string* _internal_mutable_ip();
- public:
- // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
- bool has_network_mode() const;
- private:
- bool _internal_has_network_mode() const;
- public:
- void clear_network_mode();
- ::Network_proto::Network_mode network_mode() const;
- void set_network_mode(::Network_proto::Network_mode value);
- private:
- ::Network_proto::Network_mode _internal_network_mode() const;
- void _internal_set_network_mode(::Network_proto::Network_mode value);
- public:
- // optional int32 socket_id = 2 [default = 0];
- bool has_socket_id() const;
- private:
- bool _internal_has_socket_id() const;
- public:
- void clear_socket_id();
- ::PROTOBUF_NAMESPACE_ID::int32 socket_id() const;
- void set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_socket_id() const;
- void _internal_set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // optional int32 port = 4 [default = 0];
- bool has_port() const;
- private:
- bool _internal_has_port() const;
- public:
- void clear_port();
- ::PROTOBUF_NAMESPACE_ID::int32 port() const;
- void set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_port() const;
- void _internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // @@protoc_insertion_point(class_scope:Network_proto.Network_information)
- private:
- class _Internal;
- 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 ip_;
- int network_mode_;
- ::PROTOBUF_NAMESPACE_ID::int32 socket_id_;
- ::PROTOBUF_NAMESPACE_ID::int32 port_;
- friend struct ::TableStruct_network_2eproto;
- };
- // -------------------------------------------------------------------
- class Network_parameter PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter) */ {
- public:
- inline Network_parameter() : Network_parameter(nullptr) {};
- virtual ~Network_parameter();
- Network_parameter(const Network_parameter& from);
- Network_parameter(Network_parameter&& from) noexcept
- : Network_parameter() {
- *this = ::std::move(from);
- }
- inline Network_parameter& operator=(const Network_parameter& from) {
- CopyFrom(from);
- return *this;
- }
- inline Network_parameter& operator=(Network_parameter&& 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 Network_parameter& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Network_parameter* internal_default_instance() {
- return reinterpret_cast<const Network_parameter*>(
- &_Network_parameter_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(Network_parameter& a, Network_parameter& b) {
- a.Swap(&b);
- }
- inline void Swap(Network_parameter* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Network_parameter* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Network_parameter* New() const final {
- return CreateMaybeMessage<Network_parameter>(nullptr);
- }
- Network_parameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Network_parameter>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Network_parameter& from);
- void MergeFrom(const Network_parameter& 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(Network_parameter* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "Network_proto.Network_parameter";
- }
- protected:
- explicit Network_parameter(::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_network_2eproto);
- return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kNetworkInformationVectorFieldNumber = 1,
- };
- // repeated .Network_proto.Network_information network_information_vector = 1;
- int network_information_vector_size() const;
- private:
- int _internal_network_information_vector_size() const;
- public:
- void clear_network_information_vector();
- ::Network_proto::Network_information* mutable_network_information_vector(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >*
- mutable_network_information_vector();
- private:
- const ::Network_proto::Network_information& _internal_network_information_vector(int index) const;
- ::Network_proto::Network_information* _internal_add_network_information_vector();
- public:
- const ::Network_proto::Network_information& network_information_vector(int index) const;
- ::Network_proto::Network_information* add_network_information_vector();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >&
- network_information_vector() const;
- // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information > network_information_vector_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_network_2eproto;
- };
- // -------------------------------------------------------------------
- class Network_parameter_all PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Network_proto.Network_parameter_all) */ {
- public:
- inline Network_parameter_all() : Network_parameter_all(nullptr) {};
- virtual ~Network_parameter_all();
- Network_parameter_all(const Network_parameter_all& from);
- Network_parameter_all(Network_parameter_all&& from) noexcept
- : Network_parameter_all() {
- *this = ::std::move(from);
- }
- inline Network_parameter_all& operator=(const Network_parameter_all& from) {
- CopyFrom(from);
- return *this;
- }
- inline Network_parameter_all& operator=(Network_parameter_all&& 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 Network_parameter_all& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Network_parameter_all* internal_default_instance() {
- return reinterpret_cast<const Network_parameter_all*>(
- &_Network_parameter_all_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(Network_parameter_all& a, Network_parameter_all& b) {
- a.Swap(&b);
- }
- inline void Swap(Network_parameter_all* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Network_parameter_all* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Network_parameter_all* New() const final {
- return CreateMaybeMessage<Network_parameter_all>(nullptr);
- }
- Network_parameter_all* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Network_parameter_all>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Network_parameter_all& from);
- void MergeFrom(const Network_parameter_all& 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(Network_parameter_all* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "Network_proto.Network_parameter_all";
- }
- protected:
- explicit Network_parameter_all(::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_network_2eproto);
- return ::descriptor_table_network_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kNetworkParametersFieldNumber = 1,
- };
- // optional .Network_proto.Network_parameter network_parameters = 1;
- bool has_network_parameters() const;
- private:
- bool _internal_has_network_parameters() const;
- public:
- void clear_network_parameters();
- const ::Network_proto::Network_parameter& network_parameters() const;
- ::Network_proto::Network_parameter* release_network_parameters();
- ::Network_proto::Network_parameter* mutable_network_parameters();
- void set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters);
- private:
- const ::Network_proto::Network_parameter& _internal_network_parameters() const;
- ::Network_proto::Network_parameter* _internal_mutable_network_parameters();
- public:
- void unsafe_arena_set_allocated_network_parameters(
- ::Network_proto::Network_parameter* network_parameters);
- ::Network_proto::Network_parameter* unsafe_arena_release_network_parameters();
- // @@protoc_insertion_point(class_scope:Network_proto.Network_parameter_all)
- private:
- class _Internal;
- 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_;
- ::Network_proto::Network_parameter* network_parameters_;
- friend struct ::TableStruct_network_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Network_information
- // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN];
- inline bool Network_information::_internal_has_network_mode() const {
- bool value = (_has_bits_[0] & 0x00000002u) != 0;
- return value;
- }
- inline bool Network_information::has_network_mode() const {
- return _internal_has_network_mode();
- }
- inline void Network_information::clear_network_mode() {
- network_mode_ = 0;
- _has_bits_[0] &= ~0x00000002u;
- }
- inline ::Network_proto::Network_mode Network_information::_internal_network_mode() const {
- return static_cast< ::Network_proto::Network_mode >(network_mode_);
- }
- inline ::Network_proto::Network_mode Network_information::network_mode() const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_information.network_mode)
- return _internal_network_mode();
- }
- inline void Network_information::_internal_set_network_mode(::Network_proto::Network_mode value) {
- assert(::Network_proto::Network_mode_IsValid(value));
- _has_bits_[0] |= 0x00000002u;
- network_mode_ = value;
- }
- inline void Network_information::set_network_mode(::Network_proto::Network_mode value) {
- _internal_set_network_mode(value);
- // @@protoc_insertion_point(field_set:Network_proto.Network_information.network_mode)
- }
- // optional int32 socket_id = 2 [default = 0];
- inline bool Network_information::_internal_has_socket_id() const {
- bool value = (_has_bits_[0] & 0x00000004u) != 0;
- return value;
- }
- inline bool Network_information::has_socket_id() const {
- return _internal_has_socket_id();
- }
- inline void Network_information::clear_socket_id() {
- socket_id_ = 0;
- _has_bits_[0] &= ~0x00000004u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::_internal_socket_id() const {
- return socket_id_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::socket_id() const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_information.socket_id)
- return _internal_socket_id();
- }
- inline void Network_information::_internal_set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000004u;
- socket_id_ = value;
- }
- inline void Network_information::set_socket_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_socket_id(value);
- // @@protoc_insertion_point(field_set:Network_proto.Network_information.socket_id)
- }
- // optional string ip = 3 [default = ""];
- inline bool Network_information::_internal_has_ip() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- return value;
- }
- inline bool Network_information::has_ip() const {
- return _internal_has_ip();
- }
- inline void Network_information::clear_ip() {
- ip_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const std::string& Network_information::ip() const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_information.ip)
- return _internal_ip();
- }
- inline void Network_information::set_ip(const std::string& value) {
- _internal_set_ip(value);
- // @@protoc_insertion_point(field_set:Network_proto.Network_information.ip)
- }
- inline std::string* Network_information::mutable_ip() {
- // @@protoc_insertion_point(field_mutable:Network_proto.Network_information.ip)
- return _internal_mutable_ip();
- }
- inline const std::string& Network_information::_internal_ip() const {
- return ip_.Get();
- }
- inline void Network_information::_internal_set_ip(const std::string& value) {
- _has_bits_[0] |= 0x00000001u;
- ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
- }
- inline void Network_information::set_ip(std::string&& value) {
- _has_bits_[0] |= 0x00000001u;
- ip_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
- // @@protoc_insertion_point(field_set_rvalue:Network_proto.Network_information.ip)
- }
- inline void Network_information::set_ip(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- _has_bits_[0] |= 0x00000001u;
- ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArena());
- // @@protoc_insertion_point(field_set_char:Network_proto.Network_information.ip)
- }
- inline void Network_information::set_ip(const char* value,
- size_t size) {
- _has_bits_[0] |= 0x00000001u;
- ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArena());
- // @@protoc_insertion_point(field_set_pointer:Network_proto.Network_information.ip)
- }
- inline std::string* Network_information::_internal_mutable_ip() {
- _has_bits_[0] |= 0x00000001u;
- return ip_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline std::string* Network_information::release_ip() {
- // @@protoc_insertion_point(field_release:Network_proto.Network_information.ip)
- if (!_internal_has_ip()) {
- return nullptr;
- }
- _has_bits_[0] &= ~0x00000001u;
- return ip_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
- }
- inline void Network_information::set_allocated_ip(std::string* ip) {
- if (ip != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- ip_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip,
- GetArena());
- // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_information.ip)
- }
- inline std::string* Network_information::unsafe_arena_release_ip() {
- // @@protoc_insertion_point(field_unsafe_arena_release:Network_proto.Network_information.ip)
- GOOGLE_DCHECK(GetArena() != nullptr);
- _has_bits_[0] &= ~0x00000001u;
- return ip_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArena());
- }
- inline void Network_information::unsafe_arena_set_allocated_ip(
- std::string* ip) {
- GOOGLE_DCHECK(GetArena() != nullptr);
- if (ip != nullptr) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- ip_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ip, GetArena());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Network_proto.Network_information.ip)
- }
- // optional int32 port = 4 [default = 0];
- inline bool Network_information::_internal_has_port() const {
- bool value = (_has_bits_[0] & 0x00000008u) != 0;
- return value;
- }
- inline bool Network_information::has_port() const {
- return _internal_has_port();
- }
- inline void Network_information::clear_port() {
- port_ = 0;
- _has_bits_[0] &= ~0x00000008u;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::_internal_port() const {
- return port_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Network_information::port() const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_information.port)
- return _internal_port();
- }
- inline void Network_information::_internal_set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _has_bits_[0] |= 0x00000008u;
- port_ = value;
- }
- inline void Network_information::set_port(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_port(value);
- // @@protoc_insertion_point(field_set:Network_proto.Network_information.port)
- }
- // -------------------------------------------------------------------
- // Network_parameter
- // repeated .Network_proto.Network_information network_information_vector = 1;
- inline int Network_parameter::_internal_network_information_vector_size() const {
- return network_information_vector_.size();
- }
- inline int Network_parameter::network_information_vector_size() const {
- return _internal_network_information_vector_size();
- }
- inline void Network_parameter::clear_network_information_vector() {
- network_information_vector_.Clear();
- }
- inline ::Network_proto::Network_information* Network_parameter::mutable_network_information_vector(int index) {
- // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter.network_information_vector)
- return network_information_vector_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >*
- Network_parameter::mutable_network_information_vector() {
- // @@protoc_insertion_point(field_mutable_list:Network_proto.Network_parameter.network_information_vector)
- return &network_information_vector_;
- }
- inline const ::Network_proto::Network_information& Network_parameter::_internal_network_information_vector(int index) const {
- return network_information_vector_.Get(index);
- }
- inline const ::Network_proto::Network_information& Network_parameter::network_information_vector(int index) const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_parameter.network_information_vector)
- return _internal_network_information_vector(index);
- }
- inline ::Network_proto::Network_information* Network_parameter::_internal_add_network_information_vector() {
- return network_information_vector_.Add();
- }
- inline ::Network_proto::Network_information* Network_parameter::add_network_information_vector() {
- // @@protoc_insertion_point(field_add:Network_proto.Network_parameter.network_information_vector)
- return _internal_add_network_information_vector();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Network_proto::Network_information >&
- Network_parameter::network_information_vector() const {
- // @@protoc_insertion_point(field_list:Network_proto.Network_parameter.network_information_vector)
- return network_information_vector_;
- }
- // -------------------------------------------------------------------
- // Network_parameter_all
- // optional .Network_proto.Network_parameter network_parameters = 1;
- inline bool Network_parameter_all::_internal_has_network_parameters() const {
- bool value = (_has_bits_[0] & 0x00000001u) != 0;
- PROTOBUF_ASSUME(!value || network_parameters_ != nullptr);
- return value;
- }
- inline bool Network_parameter_all::has_network_parameters() const {
- return _internal_has_network_parameters();
- }
- inline void Network_parameter_all::clear_network_parameters() {
- if (network_parameters_ != nullptr) network_parameters_->Clear();
- _has_bits_[0] &= ~0x00000001u;
- }
- inline const ::Network_proto::Network_parameter& Network_parameter_all::_internal_network_parameters() const {
- const ::Network_proto::Network_parameter* p = network_parameters_;
- return p != nullptr ? *p : *reinterpret_cast<const ::Network_proto::Network_parameter*>(
- &::Network_proto::_Network_parameter_default_instance_);
- }
- inline const ::Network_proto::Network_parameter& Network_parameter_all::network_parameters() const {
- // @@protoc_insertion_point(field_get:Network_proto.Network_parameter_all.network_parameters)
- return _internal_network_parameters();
- }
- inline void Network_parameter_all::unsafe_arena_set_allocated_network_parameters(
- ::Network_proto::Network_parameter* network_parameters) {
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(network_parameters_);
- }
- network_parameters_ = network_parameters;
- if (network_parameters) {
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Network_proto.Network_parameter_all.network_parameters)
- }
- inline ::Network_proto::Network_parameter* Network_parameter_all::release_network_parameters() {
- auto temp = unsafe_arena_release_network_parameters();
- if (GetArena() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- return temp;
- }
- inline ::Network_proto::Network_parameter* Network_parameter_all::unsafe_arena_release_network_parameters() {
- // @@protoc_insertion_point(field_release:Network_proto.Network_parameter_all.network_parameters)
- _has_bits_[0] &= ~0x00000001u;
- ::Network_proto::Network_parameter* temp = network_parameters_;
- network_parameters_ = nullptr;
- return temp;
- }
- inline ::Network_proto::Network_parameter* Network_parameter_all::_internal_mutable_network_parameters() {
- _has_bits_[0] |= 0x00000001u;
- if (network_parameters_ == nullptr) {
- auto* p = CreateMaybeMessage<::Network_proto::Network_parameter>(GetArena());
- network_parameters_ = p;
- }
- return network_parameters_;
- }
- inline ::Network_proto::Network_parameter* Network_parameter_all::mutable_network_parameters() {
- // @@protoc_insertion_point(field_mutable:Network_proto.Network_parameter_all.network_parameters)
- return _internal_mutable_network_parameters();
- }
- inline void Network_parameter_all::set_allocated_network_parameters(::Network_proto::Network_parameter* network_parameters) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
- if (message_arena == nullptr) {
- delete network_parameters_;
- }
- if (network_parameters) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(network_parameters);
- if (message_arena != submessage_arena) {
- network_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, network_parameters, submessage_arena);
- }
- _has_bits_[0] |= 0x00000001u;
- } else {
- _has_bits_[0] &= ~0x00000001u;
- }
- network_parameters_ = network_parameters;
- // @@protoc_insertion_point(field_set_allocated:Network_proto.Network_parameter_all.network_parameters)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Network_proto
- PROTOBUF_NAMESPACE_OPEN
- template <> struct is_proto_enum< ::Network_proto::Network_mode> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::Network_proto::Network_mode>() {
- return ::Network_proto::Network_mode_descriptor();
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_network_2eproto
|