// Generated by the protocol buffer compiler. DO NOT EDIT! // source: network.proto #include "network.pb.h" #include #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace Network_proto { class Network_informationDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Network_information_default_instance_; class Network_parameterDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Network_parameter_default_instance_; class Network_parameter_allDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Network_parameter_all_default_instance_; } // namespace Network_proto namespace protobuf_network_2eproto { void InitDefaultsNetwork_informationImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::Network_proto::_Network_information_default_instance_; new (ptr) ::Network_proto::Network_information(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Network_proto::Network_information::InitAsDefaultInstance(); } void InitDefaultsNetwork_information() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_informationImpl); } void InitDefaultsNetwork_parameterImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_network_2eproto::InitDefaultsNetwork_information(); { void* ptr = &::Network_proto::_Network_parameter_default_instance_; new (ptr) ::Network_proto::Network_parameter(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Network_proto::Network_parameter::InitAsDefaultInstance(); } void InitDefaultsNetwork_parameter() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_parameterImpl); } void InitDefaultsNetwork_parameter_allImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_network_2eproto::InitDefaultsNetwork_parameter(); { void* ptr = &::Network_proto::_Network_parameter_all_default_instance_; new (ptr) ::Network_proto::Network_parameter_all(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Network_proto::Network_parameter_all::InitAsDefaultInstance(); } void InitDefaultsNetwork_parameter_all() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetwork_parameter_allImpl); } ::google::protobuf::Metadata file_level_metadata[3]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, network_mode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, socket_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, ip_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_information, port_), 1, 2, 0, 3, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter, network_information_vector_), ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Network_proto::Network_parameter_all, network_parameters_), 0, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::Network_proto::Network_information)}, { 13, 19, sizeof(::Network_proto::Network_parameter)}, { 20, 26, sizeof(::Network_proto::Network_parameter_all)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::Network_proto::_Network_information_default_instance_), reinterpret_cast(&::Network_proto::_Network_parameter_default_instance_), reinterpret_cast(&::Network_proto::_Network_parameter_all_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "network.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, file_level_enum_descriptors, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\rnetwork.proto\022\rNetwork_proto\"\216\001\n\023Netwo" "rk_information\022B\n\014network_mode\030\001 \001(\0162\033.N" "etwork_proto.Network_mode:\017NETWORK_UNKNO" "WN\022\024\n\tsocket_id\030\002 \001(\005:\0010\022\014\n\002ip\030\003 \001(\t:\000\022\017" "\n\004port\030\004 \001(\005:\0010\"[\n\021Network_parameter\022F\n\032" "network_information_vector\030\001 \003(\0132\".Netwo" "rk_proto.Network_information\"U\n\025Network_" "parameter_all\022<\n\022network_parameters\030\001 \001(" "\0132 .Network_proto.Network_parameter*L\n\014N" "etwork_mode\022\023\n\017NETWORK_UNKNOWN\020\000\022\016\n\nTCP_" "CLIENT\020\001\022\016\n\nTCP_SERVER\020\002\022\007\n\003UDP\020\003" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 433); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "network.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_network_2eproto namespace Network_proto { const ::google::protobuf::EnumDescriptor* Network_mode_descriptor() { protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_network_2eproto::file_level_enum_descriptors[0]; } bool Network_mode_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } // =================================================================== void Network_information::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Network_information::kNetworkModeFieldNumber; const int Network_information::kSocketIdFieldNumber; const int Network_information::kIpFieldNumber; const int Network_information::kPortFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Network_information::Network_information() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_network_2eproto::InitDefaultsNetwork_information(); } SharedCtor(); // @@protoc_insertion_point(constructor:Network_proto.Network_information) } Network_information::Network_information(const Network_information& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_ip()) { ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } ::memcpy(&network_mode_, &from.network_mode_, static_cast(reinterpret_cast(&port_) - reinterpret_cast(&network_mode_)) + sizeof(port_)); // @@protoc_insertion_point(copy_constructor:Network_proto.Network_information) } void Network_information::SharedCtor() { _cached_size_ = 0; ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&network_mode_, 0, static_cast( reinterpret_cast(&port_) - reinterpret_cast(&network_mode_)) + sizeof(port_)); } Network_information::~Network_information() { // @@protoc_insertion_point(destructor:Network_proto.Network_information) SharedDtor(); } void Network_information::SharedDtor() { ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Network_information::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Network_information::descriptor() { ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Network_information& Network_information::default_instance() { ::protobuf_network_2eproto::InitDefaultsNetwork_information(); return *internal_default_instance(); } Network_information* Network_information::New(::google::protobuf::Arena* arena) const { Network_information* n = new Network_information; if (arena != NULL) { arena->Own(n); } return n; } void Network_information::Clear() { // @@protoc_insertion_point(message_clear_start:Network_proto.Network_information) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*ip_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 14u) { ::memset(&network_mode_, 0, static_cast( reinterpret_cast(&port_) - reinterpret_cast(&network_mode_)) + sizeof(port_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Network_information::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Network_proto.Network_information) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN]; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::Network_proto::Network_mode_IsValid(value)) { set_network_mode(static_cast< ::Network_proto::Network_mode >(value)); } else { mutable_unknown_fields()->AddVarint( 1, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } break; } // optional int32 socket_id = 2 [default = 0]; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_socket_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &socket_id_))); } else { goto handle_unusual; } break; } // optional string ip = 3 [default = ""]; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_ip())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->ip().data(), static_cast(this->ip().length()), ::google::protobuf::internal::WireFormat::PARSE, "Network_proto.Network_information.ip"); } else { goto handle_unusual; } break; } // optional int32 port = 4 [default = 0]; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_port(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &port_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Network_proto.Network_information) return true; failure: // @@protoc_insertion_point(parse_failure:Network_proto.Network_information) return false; #undef DO_ } void Network_information::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Network_proto.Network_information) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN]; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->network_mode(), output); } // optional int32 socket_id = 2 [default = 0]; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->socket_id(), output); } // optional string ip = 3 [default = ""]; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->ip().data(), static_cast(this->ip().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Network_proto.Network_information.ip"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->ip(), output); } // optional int32 port = 4 [default = 0]; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->port(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Network_proto.Network_information) } ::google::protobuf::uint8* Network_information::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_information) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN]; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->network_mode(), target); } // optional int32 socket_id = 2 [default = 0]; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->socket_id(), target); } // optional string ip = 3 [default = ""]; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->ip().data(), static_cast(this->ip().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Network_proto.Network_information.ip"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->ip(), target); } // optional int32 port = 4 [default = 0]; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->port(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_information) return target; } size_t Network_information::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_information) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (_has_bits_[0 / 32] & 15u) { // optional string ip = 3 [default = ""]; if (has_ip()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->ip()); } // optional .Network_proto.Network_mode network_mode = 1 [default = NETWORK_UNKNOWN]; if (has_network_mode()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->network_mode()); } // optional int32 socket_id = 2 [default = 0]; if (has_socket_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->socket_id()); } // optional int32 port = 4 [default = 0]; if (has_port()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->port()); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Network_information::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_information) GOOGLE_DCHECK_NE(&from, this); const Network_information* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_information) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_information) MergeFrom(*source); } } void Network_information::MergeFrom(const Network_information& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_information) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_ip(); ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } if (cached_has_bits & 0x00000002u) { network_mode_ = from.network_mode_; } if (cached_has_bits & 0x00000004u) { socket_id_ = from.socket_id_; } if (cached_has_bits & 0x00000008u) { port_ = from.port_; } _has_bits_[0] |= cached_has_bits; } } void Network_information::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_information) if (&from == this) return; Clear(); MergeFrom(from); } void Network_information::CopyFrom(const Network_information& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_information) if (&from == this) return; Clear(); MergeFrom(from); } bool Network_information::IsInitialized() const { return true; } void Network_information::Swap(Network_information* other) { if (other == this) return; InternalSwap(other); } void Network_information::InternalSwap(Network_information* other) { using std::swap; ip_.Swap(&other->ip_); swap(network_mode_, other->network_mode_); swap(socket_id_, other->socket_id_); swap(port_, other->port_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Network_information::GetMetadata() const { protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Network_parameter::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Network_parameter::kNetworkInformationVectorFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Network_parameter::Network_parameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_network_2eproto::InitDefaultsNetwork_parameter(); } SharedCtor(); // @@protoc_insertion_point(constructor:Network_proto.Network_parameter) } Network_parameter::Network_parameter(const Network_parameter& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), network_information_vector_(from.network_information_vector_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Network_proto.Network_parameter) } void Network_parameter::SharedCtor() { _cached_size_ = 0; } Network_parameter::~Network_parameter() { // @@protoc_insertion_point(destructor:Network_proto.Network_parameter) SharedDtor(); } void Network_parameter::SharedDtor() { } void Network_parameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Network_parameter::descriptor() { ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Network_parameter& Network_parameter::default_instance() { ::protobuf_network_2eproto::InitDefaultsNetwork_parameter(); return *internal_default_instance(); } Network_parameter* Network_parameter::New(::google::protobuf::Arena* arena) const { Network_parameter* n = new Network_parameter; if (arena != NULL) { arena->Own(n); } return n; } void Network_parameter::Clear() { // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; network_information_vector_.Clear(); _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Network_parameter::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Network_proto.Network_parameter) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .Network_proto.Network_information network_information_vector = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_network_information_vector())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Network_proto.Network_parameter) return true; failure: // @@protoc_insertion_point(parse_failure:Network_proto.Network_parameter) return false; #undef DO_ } void Network_parameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Network_proto.Network_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Network_proto.Network_information network_information_vector = 1; for (unsigned int i = 0, n = static_cast(this->network_information_vector_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->network_information_vector(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Network_proto.Network_parameter) } ::google::protobuf::uint8* Network_parameter::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_parameter) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Network_proto.Network_information network_information_vector = 1; for (unsigned int i = 0, n = static_cast(this->network_information_vector_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->network_information_vector(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_parameter) return target; } size_t Network_parameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_parameter) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // repeated .Network_proto.Network_information network_information_vector = 1; { unsigned int count = static_cast(this->network_information_vector_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->network_information_vector(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Network_parameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_parameter) GOOGLE_DCHECK_NE(&from, this); const Network_parameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_parameter) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_parameter) MergeFrom(*source); } } void Network_parameter::MergeFrom(const Network_parameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_parameter) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; network_information_vector_.MergeFrom(from.network_information_vector_); } void Network_parameter::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_parameter) if (&from == this) return; Clear(); MergeFrom(from); } void Network_parameter::CopyFrom(const Network_parameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_parameter) if (&from == this) return; Clear(); MergeFrom(from); } bool Network_parameter::IsInitialized() const { return true; } void Network_parameter::Swap(Network_parameter* other) { if (other == this) return; InternalSwap(other); } void Network_parameter::InternalSwap(Network_parameter* other) { using std::swap; network_information_vector_.InternalSwap(&other->network_information_vector_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Network_parameter::GetMetadata() const { protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Network_parameter_all::InitAsDefaultInstance() { ::Network_proto::_Network_parameter_all_default_instance_._instance.get_mutable()->network_parameters_ = const_cast< ::Network_proto::Network_parameter*>( ::Network_proto::Network_parameter::internal_default_instance()); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Network_parameter_all::kNetworkParametersFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Network_parameter_all::Network_parameter_all() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_all(); } SharedCtor(); // @@protoc_insertion_point(constructor:Network_proto.Network_parameter_all) } Network_parameter_all::Network_parameter_all(const Network_parameter_all& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_network_parameters()) { network_parameters_ = new ::Network_proto::Network_parameter(*from.network_parameters_); } else { network_parameters_ = NULL; } // @@protoc_insertion_point(copy_constructor:Network_proto.Network_parameter_all) } void Network_parameter_all::SharedCtor() { _cached_size_ = 0; network_parameters_ = NULL; } Network_parameter_all::~Network_parameter_all() { // @@protoc_insertion_point(destructor:Network_proto.Network_parameter_all) SharedDtor(); } void Network_parameter_all::SharedDtor() { if (this != internal_default_instance()) delete network_parameters_; } void Network_parameter_all::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Network_parameter_all::descriptor() { ::protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Network_parameter_all& Network_parameter_all::default_instance() { ::protobuf_network_2eproto::InitDefaultsNetwork_parameter_all(); return *internal_default_instance(); } Network_parameter_all* Network_parameter_all::New(::google::protobuf::Arena* arena) const { Network_parameter_all* n = new Network_parameter_all; if (arena != NULL) { arena->Own(n); } return n; } void Network_parameter_all::Clear() { // @@protoc_insertion_point(message_clear_start:Network_proto.Network_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(network_parameters_ != NULL); network_parameters_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Network_parameter_all::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Network_proto.Network_parameter_all) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .Network_proto.Network_parameter network_parameters = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_network_parameters())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Network_proto.Network_parameter_all) return true; failure: // @@protoc_insertion_point(parse_failure:Network_proto.Network_parameter_all) return false; #undef DO_ } void Network_parameter_all::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Network_proto.Network_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .Network_proto.Network_parameter network_parameters = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->network_parameters_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Network_proto.Network_parameter_all) } ::google::protobuf::uint8* Network_parameter_all::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Network_proto.Network_parameter_all) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .Network_proto.Network_parameter network_parameters = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->network_parameters_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:Network_proto.Network_parameter_all) return target; } size_t Network_parameter_all::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Network_proto.Network_parameter_all) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // optional .Network_proto.Network_parameter network_parameters = 1; if (has_network_parameters()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->network_parameters_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Network_parameter_all::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Network_proto.Network_parameter_all) GOOGLE_DCHECK_NE(&from, this); const Network_parameter_all* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Network_proto.Network_parameter_all) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Network_proto.Network_parameter_all) MergeFrom(*source); } } void Network_parameter_all::MergeFrom(const Network_parameter_all& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Network_proto.Network_parameter_all) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_network_parameters()) { mutable_network_parameters()->::Network_proto::Network_parameter::MergeFrom(from.network_parameters()); } } void Network_parameter_all::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Network_proto.Network_parameter_all) if (&from == this) return; Clear(); MergeFrom(from); } void Network_parameter_all::CopyFrom(const Network_parameter_all& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Network_proto.Network_parameter_all) if (&from == this) return; Clear(); MergeFrom(from); } bool Network_parameter_all::IsInitialized() const { return true; } void Network_parameter_all::Swap(Network_parameter_all* other) { if (other == this) return; InternalSwap(other); } void Network_parameter_all::InternalSwap(Network_parameter_all* other) { using std::swap; swap(network_parameters_, other->network_parameters_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Network_parameter_all::GetMetadata() const { protobuf_network_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_network_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace Network_proto // @@protoc_insertion_point(global_scope)