// Generated by the protocol buffer compiler. DO NOT EDIT! // source: remote.proto #include "remote.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace remote { constexpr Offer::Offer( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , index_(0) , peer_(0){} struct OfferDefaultTypeInternal { constexpr OfferDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~OfferDefaultTypeInternal() {} union { Offer _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_; constexpr Answer::Answer( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , index_(0) , peer_(0){} struct AnswerDefaultTypeInternal { constexpr AnswerDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~AnswerDefaultTypeInternal() {} union { Answer _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_; constexpr Candidate::Candidate( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , index_(0) , peer_(0) , sdpmlineindex_(0) , egotype_(0){} struct CandidateDefaultTypeInternal { constexpr CandidateDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~CandidateDefaultTypeInternal() {} union { Candidate _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_; constexpr CSReq::CSReq( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : peer_(0) , index_(0) , egotype_(0){} struct CSReqDefaultTypeInternal { constexpr CSReqDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~CSReqDefaultTypeInternal() {} union { CSReq _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_; constexpr SCReq::SCReq( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : desc_(0) , peer_(0) , egotype_(0){} struct SCReqDefaultTypeInternal { constexpr SCReqDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCReqDefaultTypeInternal() {} union { SCReq _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_; constexpr CSRep::CSRep( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : desc_(0) , peer_(0) , index_(0) , egotype_(0){} struct CSRepDefaultTypeInternal { constexpr CSRepDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~CSRepDefaultTypeInternal() {} union { CSRep _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_; constexpr SCRep::SCRep( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : desc_(0) , index_(0) , egotype_(0) , peer_(0){} struct SCRepDefaultTypeInternal { constexpr SCRepDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCRepDefaultTypeInternal() {} union { SCRep _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_; constexpr CSAdd::CSAdd( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : serial_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , type_(0) , car_(0){} struct CSAddDefaultTypeInternal { constexpr CSAddDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~CSAddDefaultTypeInternal() {} union { CSAdd _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSAddDefaultTypeInternal _CSAdd_default_instance_; constexpr SCAdd::SCAdd( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , ret_(false) , uid_(0) , car_(0){} struct SCAddDefaultTypeInternal { constexpr SCAddDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCAddDefaultTypeInternal() {} union { SCAdd _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddDefaultTypeInternal _SCAdd_default_instance_; constexpr Robot::Robot( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , rid_(0) , type_(0) , state_(0){} struct RobotDefaultTypeInternal { constexpr RobotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~RobotDefaultTypeInternal() {} union { Robot _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_; constexpr SCAddRobot::SCAddRobot( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : robot_(nullptr){} struct SCAddRobotDefaultTypeInternal { constexpr SCAddRobotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCAddRobotDefaultTypeInternal() {} union { SCAddRobot _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_; constexpr SCDelRobot::SCDelRobot( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : peer_(0) , egotype_(0){} struct SCDelRobotDefaultTypeInternal { constexpr SCDelRobotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCDelRobotDefaultTypeInternal() {} union { SCDelRobot _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_; constexpr CSRobot::CSRobot( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} struct CSRobotDefaultTypeInternal { constexpr CSRobotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~CSRobotDefaultTypeInternal() {} union { CSRobot _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_; constexpr SCRobot::SCRobot( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : robot_(){} struct SCRobotDefaultTypeInternal { constexpr SCRobotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SCRobotDefaultTypeInternal() {} union { SCRobot _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_; constexpr Leave::Leave( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : peer_(0) , egotype_(0){} struct LeaveDefaultTypeInternal { constexpr LeaveDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~LeaveDefaultTypeInternal() {} union { Leave _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_; } // namespace remote static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2eproto[15]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_remote_2eproto[2]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_remote_2eproto = nullptr; const uint32_t TableStruct_remote_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::Offer, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::Offer, index_), PROTOBUF_FIELD_OFFSET(::remote::Offer, peer_), PROTOBUF_FIELD_OFFSET(::remote::Offer, type_), PROTOBUF_FIELD_OFFSET(::remote::Offer, sdp_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::Answer, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::Answer, index_), PROTOBUF_FIELD_OFFSET(::remote::Answer, peer_), PROTOBUF_FIELD_OFFSET(::remote::Answer, type_), PROTOBUF_FIELD_OFFSET(::remote::Answer, sdp_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::Candidate, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::Candidate, index_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, peer_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, type_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, candidate_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmlineindex_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmid_), PROTOBUF_FIELD_OFFSET(::remote::Candidate, egotype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::CSReq, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::CSReq, peer_), PROTOBUF_FIELD_OFFSET(::remote::CSReq, index_), PROTOBUF_FIELD_OFFSET(::remote::CSReq, egotype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCReq, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCReq, desc_), PROTOBUF_FIELD_OFFSET(::remote::SCReq, peer_), PROTOBUF_FIELD_OFFSET(::remote::SCReq, egotype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::CSRep, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::CSRep, desc_), PROTOBUF_FIELD_OFFSET(::remote::CSRep, peer_), PROTOBUF_FIELD_OFFSET(::remote::CSRep, index_), PROTOBUF_FIELD_OFFSET(::remote::CSRep, egotype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCRep, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCRep, desc_), PROTOBUF_FIELD_OFFSET(::remote::SCRep, index_), PROTOBUF_FIELD_OFFSET(::remote::SCRep, egotype_), PROTOBUF_FIELD_OFFSET(::remote::SCRep, peer_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::CSAdd, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::CSAdd, serial_), PROTOBUF_FIELD_OFFSET(::remote::CSAdd, type_), PROTOBUF_FIELD_OFFSET(::remote::CSAdd, name_), PROTOBUF_FIELD_OFFSET(::remote::CSAdd, car_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCAdd, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCAdd, ret_), PROTOBUF_FIELD_OFFSET(::remote::SCAdd, uid_), PROTOBUF_FIELD_OFFSET(::remote::SCAdd, name_), PROTOBUF_FIELD_OFFSET(::remote::SCAdd, car_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::Robot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::Robot, rid_), PROTOBUF_FIELD_OFFSET(::remote::Robot, name_), PROTOBUF_FIELD_OFFSET(::remote::Robot, type_), PROTOBUF_FIELD_OFFSET(::remote::Robot, state_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, robot_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, peer_), PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, egotype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::CSRobot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::SCRobot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::SCRobot, robot_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::Leave, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::Leave, peer_), PROTOBUF_FIELD_OFFSET(::remote::Leave, egotype_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::remote::Offer)}, { 10, -1, -1, sizeof(::remote::Answer)}, { 20, -1, -1, sizeof(::remote::Candidate)}, { 33, -1, -1, sizeof(::remote::CSReq)}, { 42, -1, -1, sizeof(::remote::SCReq)}, { 51, -1, -1, sizeof(::remote::CSRep)}, { 61, -1, -1, sizeof(::remote::SCRep)}, { 71, -1, -1, sizeof(::remote::CSAdd)}, { 81, -1, -1, sizeof(::remote::SCAdd)}, { 91, -1, -1, sizeof(::remote::Robot)}, { 101, -1, -1, sizeof(::remote::SCAddRobot)}, { 108, -1, -1, sizeof(::remote::SCDelRobot)}, { 116, -1, -1, sizeof(::remote::CSRobot)}, { 122, -1, -1, sizeof(::remote::SCRobot)}, { 129, -1, -1, sizeof(::remote::Leave)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::remote::_Offer_default_instance_), reinterpret_cast(&::remote::_Answer_default_instance_), reinterpret_cast(&::remote::_Candidate_default_instance_), reinterpret_cast(&::remote::_CSReq_default_instance_), reinterpret_cast(&::remote::_SCReq_default_instance_), reinterpret_cast(&::remote::_CSRep_default_instance_), reinterpret_cast(&::remote::_SCRep_default_instance_), reinterpret_cast(&::remote::_CSAdd_default_instance_), reinterpret_cast(&::remote::_SCAdd_default_instance_), reinterpret_cast(&::remote::_Robot_default_instance_), reinterpret_cast(&::remote::_SCAddRobot_default_instance_), reinterpret_cast(&::remote::_SCDelRobot_default_instance_), reinterpret_cast(&::remote::_CSRobot_default_instance_), reinterpret_cast(&::remote::_SCRobot_default_instance_), reinterpret_cast(&::remote::_Leave_default_instance_), }; const char descriptor_table_protodef_remote_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\014remote.proto\022\006remote\"\?\n\005Offer\022\r\n\005index" "\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sd" "p\030\004 \001(\t\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer" "\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCa" "ndidate\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004" "type\030\003 \001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLin" "eIndex\030\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030" "\007 \001(\005\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022\r\n\005index\030\002 " "\001(\005\022\017\n\007egotype\030\003 \001(\005\"4\n\005SCReq\022\014\n\004desc\030\001 " "\001(\005\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"C\n\005CS" "Rep\022\014\n\004desc\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\r\n\005index" "\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"C\n\005SCRep\022\014\n\004desc" "\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014" "\n\004peer\030\004 \001(\005\"@\n\005CSAdd\022\016\n\006serial\030\001 \001(\t\022\014\n" "\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"<" "\n\005SCAdd\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022\014\n\004nam" "e\030\003 \001(\t\022\013\n\003car\030\004 \001(\005\"\?\n\005Robot\022\013\n\003rid\030\001 \001" "(\005\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022\r\n\005state\030" "\004 \001(\005\"*\n\nSCAddRobot\022\034\n\005robot\030\001 \001(\0132\r.rem" "ote.Robot\"+\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n" "\007egotype\030\002 \001(\005\"\t\n\007CSRobot\"\'\n\007SCRobot\022\034\n\005" "robot\030\001 \003(\0132\r.remote.Robot\"&\n\005Leave\022\014\n\004p" "eer\030\001 \001(\005\022\017\n\007egotype\030\002 \001(\005*\306\001\n\ncs_messag" "e\022\013\n\007cs_none\020\000\022\013\n\006cs_req\020\321\017\022\013\n\006cs_rep\020\322\017" "\022\r\n\010cs_offer\020\324\017\022\016\n\tcs_answer\020\325\017\022\021\n\014cs_ca" "ndidate\020\326\017\022\r\n\010cs_leave\020\327\017\022\021\n\014cs_keepAliv" "e\020\330\017\022\013\n\006cs_add\020\331\017\022\r\n\010cs_robot\020\332\017\022\022\n\rcs_c" "loseVideo\020\333\017\022\r\n\010cs_state\020\336\017*\325\002\n\nsc_messa" "ge\022\013\n\007sc_none\020\000\022\013\n\006sc_req\020\241\037\022\013\n\006sc_rep\020\242" "\037\022\r\n\010sc_offer\020\244\037\022\016\n\tsc_answer\020\245\037\022\021\n\014sc_c" "andidate\020\246\037\022\013\n\006sc_add\020\247\037\022\r\n\010sc_robot\020\250\037\022" "\021\n\014sc_NotifyReq\020\251\037\022\021\n\014sc_NotifyRep\020\252\037\022\024\n" "\017sc_NotifyAnswer\020\253\037\022\023\n\016sc_NotifyOffer\020\254\037" "\022\027\n\022sc_NotifyCandidate\020\255\037\022\023\n\016sc_NotifyLe" "ave\020\256\037\022\021\n\014sc_NotifyAdd\020\260\037\022\021\n\014sc_NotifyDe" "l\020\261\037\022\030\n\023sc_NotifyCloseVideo\020\262\037\022\023\n\016sc_Not" "ifyState\020\271\037b\006proto3" ; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_remote_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_remote_2eproto = { false, false, 1459, descriptor_table_protodef_remote_2eproto, "remote.proto", &descriptor_table_remote_2eproto_once, nullptr, 0, 15, schemas, file_default_instances, TableStruct_remote_2eproto::offsets, file_level_metadata_remote_2eproto, file_level_enum_descriptors_remote_2eproto, file_level_service_descriptors_remote_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_remote_2eproto_getter() { return &descriptor_table_remote_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_remote_2eproto(&descriptor_table_remote_2eproto); namespace remote { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* cs_message_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto); return file_level_enum_descriptors_remote_2eproto[0]; } bool cs_message_IsValid(int value) { switch (value) { case 0: case 2001: case 2002: case 2004: case 2005: case 2006: case 2007: case 2008: case 2009: case 2010: case 2011: case 2014: return true; default: return false; } } const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* sc_message_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto); return file_level_enum_descriptors_remote_2eproto[1]; } bool sc_message_IsValid(int value) { switch (value) { case 0: case 4001: case 4002: case 4004: case 4005: case 4006: case 4007: case 4008: case 4009: case 4010: case 4011: case 4012: case 4013: case 4014: case 4016: case 4017: case 4018: case 4025: return true; default: return false; } } // =================================================================== class Offer::_Internal { public: }; Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.Offer) } Offer::Offer(const Offer& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_type().empty()) { type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(), GetArenaForAllocation()); } sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sdp().empty()) { sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(), GetArenaForAllocation()); } ::memcpy(&index_, &from.index_, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); // @@protoc_insertion_point(copy_constructor:remote.Offer) } inline void Offer::SharedCtor() { type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&index_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); } Offer::~Offer() { // @@protoc_insertion_point(destructor:remote.Offer) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Offer::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Offer::ArenaDtor(void* object) { Offer* _this = reinterpret_cast< Offer* >(object); (void)_this; } void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Offer::SetCachedSize(int size) const { _cached_size_.Set(size); } void Offer::Clear() { // @@protoc_insertion_point(message_clear_start:remote.Offer) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; type_.ClearToEmpty(); sdp_.ClearToEmpty(); ::memset(&index_, 0, static_cast( reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string type = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_type(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.type")); CHK_(ptr); } else goto handle_unusual; continue; // string sdp = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_sdp(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.sdp")); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* Offer::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.Offer) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target); } // int32 peer = 2; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target); } // string type = 3; if (!this->_internal_type().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_type().data(), static_cast(this->_internal_type().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Offer.type"); target = stream->WriteStringMaybeAliased( 3, this->_internal_type(), target); } // string sdp = 4; if (!this->_internal_sdp().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Offer.sdp"); target = stream->WriteStringMaybeAliased( 4, this->_internal_sdp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.Offer) return target; } size_t Offer::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.Offer) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 3; if (!this->_internal_type().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_type()); } // string sdp = 4; if (!this->_internal_sdp().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sdp()); } // int32 index = 1; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 peer = 2; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, Offer::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; } void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void Offer::MergeFrom(const Offer& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.Offer) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { _internal_set_type(from._internal_type()); } if (!from._internal_sdp().empty()) { _internal_set_sdp(from._internal_sdp()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Offer::CopyFrom(const Offer& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.Offer) if (&from == this) return; Clear(); MergeFrom(from); } bool Offer::IsInitialized() const { return true; } void Offer::InternalSwap(Offer* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &type_, lhs_arena, &other->type_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &sdp_, lhs_arena, &other->sdp_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Offer, peer_) + sizeof(Offer::peer_) - PROTOBUF_FIELD_OFFSET(Offer, index_)>( reinterpret_cast(&index_), reinterpret_cast(&other->index_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[0]); } // =================================================================== class Answer::_Internal { public: }; Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.Answer) } Answer::Answer(const Answer& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_type().empty()) { type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(), GetArenaForAllocation()); } sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sdp().empty()) { sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(), GetArenaForAllocation()); } ::memcpy(&index_, &from.index_, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); // @@protoc_insertion_point(copy_constructor:remote.Answer) } inline void Answer::SharedCtor() { type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&index_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); } Answer::~Answer() { // @@protoc_insertion_point(destructor:remote.Answer) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Answer::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Answer::ArenaDtor(void* object) { Answer* _this = reinterpret_cast< Answer* >(object); (void)_this; } void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Answer::SetCachedSize(int size) const { _cached_size_.Set(size); } void Answer::Clear() { // @@protoc_insertion_point(message_clear_start:remote.Answer) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; type_.ClearToEmpty(); sdp_.ClearToEmpty(); ::memset(&index_, 0, static_cast( reinterpret_cast(&peer_) - reinterpret_cast(&index_)) + sizeof(peer_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string type = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_type(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.type")); CHK_(ptr); } else goto handle_unusual; continue; // string sdp = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_sdp(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.sdp")); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* Answer::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.Answer) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target); } // int32 peer = 2; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target); } // string type = 3; if (!this->_internal_type().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_type().data(), static_cast(this->_internal_type().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Answer.type"); target = stream->WriteStringMaybeAliased( 3, this->_internal_type(), target); } // string sdp = 4; if (!this->_internal_sdp().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sdp().data(), static_cast(this->_internal_sdp().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Answer.sdp"); target = stream->WriteStringMaybeAliased( 4, this->_internal_sdp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.Answer) return target; } size_t Answer::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.Answer) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 3; if (!this->_internal_type().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_type()); } // string sdp = 4; if (!this->_internal_sdp().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sdp()); } // int32 index = 1; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 peer = 2; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, Answer::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; } void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void Answer::MergeFrom(const Answer& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.Answer) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { _internal_set_type(from._internal_type()); } if (!from._internal_sdp().empty()) { _internal_set_sdp(from._internal_sdp()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Answer::CopyFrom(const Answer& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.Answer) if (&from == this) return; Clear(); MergeFrom(from); } bool Answer::IsInitialized() const { return true; } void Answer::InternalSwap(Answer* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &type_, lhs_arena, &other->type_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &sdp_, lhs_arena, &other->sdp_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Answer, peer_) + sizeof(Answer::peer_) - PROTOBUF_FIELD_OFFSET(Answer, index_)>( reinterpret_cast(&index_), reinterpret_cast(&other->index_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[1]); } // =================================================================== class Candidate::_Internal { public: }; Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.Candidate) } Candidate::Candidate(const Candidate& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_type().empty()) { type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(), GetArenaForAllocation()); } candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_candidate().empty()) { candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(), GetArenaForAllocation()); } sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_sdpmid().empty()) { sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(), GetArenaForAllocation()); } ::memcpy(&index_, &from.index_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&index_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.Candidate) } inline void Candidate::SharedCtor() { type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&index_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&index_)) + sizeof(egotype_)); } Candidate::~Candidate() { // @@protoc_insertion_point(destructor:remote.Candidate) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Candidate::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Candidate::ArenaDtor(void* object) { Candidate* _this = reinterpret_cast< Candidate* >(object); (void)_this; } void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Candidate::SetCachedSize(int size) const { _cached_size_.Set(size); } void Candidate::Clear() { // @@protoc_insertion_point(message_clear_start:remote.Candidate) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; type_.ClearToEmpty(); candidate_.ClearToEmpty(); sdpmid_.ClearToEmpty(); ::memset(&index_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&index_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 index = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string type = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_type(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.type")); CHK_(ptr); } else goto handle_unusual; continue; // string candidate = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { auto str = _internal_mutable_candidate(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.candidate")); CHK_(ptr); } else goto handle_unusual; continue; // int32 sdpMLineIndex = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string sdpMid = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { auto str = _internal_mutable_sdpmid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.sdpMid")); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* Candidate::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.Candidate) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 index = 1; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target); } // int32 peer = 2; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target); } // string type = 3; if (!this->_internal_type().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_type().data(), static_cast(this->_internal_type().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Candidate.type"); target = stream->WriteStringMaybeAliased( 3, this->_internal_type(), target); } // string candidate = 4; if (!this->_internal_candidate().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_candidate().data(), static_cast(this->_internal_candidate().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Candidate.candidate"); target = stream->WriteStringMaybeAliased( 4, this->_internal_candidate(), target); } // int32 sdpMLineIndex = 5; if (this->_internal_sdpmlineindex() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target); } // string sdpMid = 6; if (!this->_internal_sdpmid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sdpmid().data(), static_cast(this->_internal_sdpmid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Candidate.sdpMid"); target = stream->WriteStringMaybeAliased( 6, this->_internal_sdpmid(), target); } // int32 egotype = 7; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.Candidate) return target; } size_t Candidate::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.Candidate) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string type = 3; if (!this->_internal_type().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_type()); } // string candidate = 4; if (!this->_internal_candidate().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_candidate()); } // string sdpMid = 6; if (!this->_internal_sdpmid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sdpmid()); } // int32 index = 1; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 peer = 2; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 sdpMLineIndex = 5; if (this->_internal_sdpmlineindex() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex()); } // int32 egotype = 7; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, Candidate::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; } void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void Candidate::MergeFrom(const Candidate& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.Candidate) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_type().empty()) { _internal_set_type(from._internal_type()); } if (!from._internal_candidate().empty()) { _internal_set_candidate(from._internal_candidate()); } if (!from._internal_sdpmid().empty()) { _internal_set_sdpmid(from._internal_sdpmid()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_sdpmlineindex() != 0) { _internal_set_sdpmlineindex(from._internal_sdpmlineindex()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Candidate::CopyFrom(const Candidate& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.Candidate) if (&from == this) return; Clear(); MergeFrom(from); } bool Candidate::IsInitialized() const { return true; } void Candidate::InternalSwap(Candidate* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &type_, lhs_arena, &other->type_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &candidate_, lhs_arena, &other->candidate_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &sdpmid_, lhs_arena, &other->sdpmid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Candidate, egotype_) + sizeof(Candidate::egotype_) - PROTOBUF_FIELD_OFFSET(Candidate, index_)>( reinterpret_cast(&index_), reinterpret_cast(&other->index_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[2]); } // =================================================================== class CSReq::_Internal { public: }; CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.CSReq) } CSReq::CSReq(const CSReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&peer_, &from.peer_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.CSReq) } inline void CSReq::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&peer_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); } CSReq::~CSReq() { // @@protoc_insertion_point(destructor:remote.CSReq) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CSReq::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void CSReq::ArenaDtor(void* object) { CSReq* _this = reinterpret_cast< CSReq* >(object); (void)_this; } void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void CSReq::SetCachedSize(int size) const { _cached_size_.Set(size); } void CSReq::Clear() { // @@protoc_insertion_point(message_clear_start:remote.CSReq) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&peer_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 peer = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 index = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* CSReq::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.CSReq) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target); } // int32 index = 2; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.CSReq) return target; } size_t CSReq::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.CSReq) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 index = 2; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, CSReq::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; } void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void CSReq::MergeFrom(const CSReq& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSReq) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CSReq::CopyFrom(const CSReq& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSReq) if (&from == this) return; Clear(); MergeFrom(from); } bool CSReq::IsInitialized() const { return true; } void CSReq::InternalSwap(CSReq* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(CSReq, egotype_) + sizeof(CSReq::egotype_) - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>( reinterpret_cast(&peer_), reinterpret_cast(&other->peer_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[3]); } // =================================================================== class SCReq::_Internal { public: }; SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCReq) } SCReq::SCReq(const SCReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&desc_, &from.desc_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.SCReq) } inline void SCReq::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&desc_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); } SCReq::~SCReq() { // @@protoc_insertion_point(destructor:remote.SCReq) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCReq::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void SCReq::ArenaDtor(void* object) { SCReq* _this = reinterpret_cast< SCReq* >(object); (void)_this; } void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCReq::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCReq::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCReq) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&desc_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 desc = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCReq::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCReq) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target); } // int32 peer = 2; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCReq) return target; } size_t SCReq::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCReq) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc()); } // int32 peer = 2; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCReq::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; } void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCReq::MergeFrom(const SCReq& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCReq) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_desc() != 0) { _internal_set_desc(from._internal_desc()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCReq::CopyFrom(const SCReq& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCReq) if (&from == this) return; Clear(); MergeFrom(from); } bool SCReq::IsInitialized() const { return true; } void SCReq::InternalSwap(SCReq* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SCReq, egotype_) + sizeof(SCReq::egotype_) - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>( reinterpret_cast(&desc_), reinterpret_cast(&other->desc_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[4]); } // =================================================================== class CSRep::_Internal { public: }; CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.CSRep) } CSRep::CSRep(const CSRep& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&desc_, &from.desc_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.CSRep) } inline void CSRep::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&desc_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); } CSRep::~CSRep() { // @@protoc_insertion_point(destructor:remote.CSRep) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CSRep::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void CSRep::ArenaDtor(void* object) { CSRep* _this = reinterpret_cast< CSRep* >(object); (void)_this; } void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void CSRep::SetCachedSize(int size) const { _cached_size_.Set(size); } void CSRep::Clear() { // @@protoc_insertion_point(message_clear_start:remote.CSRep) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&desc_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&desc_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 desc = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 index = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* CSRep::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.CSRep) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target); } // int32 peer = 2; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target); } // int32 index = 3; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target); } // int32 egotype = 4; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.CSRep) return target; } size_t CSRep::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.CSRep) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc()); } // int32 peer = 2; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 index = 3; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 egotype = 4; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, CSRep::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; } void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void CSRep::MergeFrom(const CSRep& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSRep) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_desc() != 0) { _internal_set_desc(from._internal_desc()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CSRep::CopyFrom(const CSRep& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSRep) if (&from == this) return; Clear(); MergeFrom(from); } bool CSRep::IsInitialized() const { return true; } void CSRep::InternalSwap(CSRep* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(CSRep, egotype_) + sizeof(CSRep::egotype_) - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>( reinterpret_cast(&desc_), reinterpret_cast(&other->desc_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[5]); } // =================================================================== class SCRep::_Internal { public: }; SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCRep) } SCRep::SCRep(const SCRep& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&desc_, &from.desc_, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&desc_)) + sizeof(peer_)); // @@protoc_insertion_point(copy_constructor:remote.SCRep) } inline void SCRep::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&desc_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&peer_) - reinterpret_cast(&desc_)) + sizeof(peer_)); } SCRep::~SCRep() { // @@protoc_insertion_point(destructor:remote.SCRep) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCRep::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void SCRep::ArenaDtor(void* object) { SCRep* _this = reinterpret_cast< SCRep* >(object); (void)_this; } void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCRep::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCRep::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCRep) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&desc_, 0, static_cast( reinterpret_cast(&peer_) - reinterpret_cast(&desc_)) + sizeof(peer_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 desc = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 index = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 peer = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCRep::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCRep) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target); } // int32 index = 2; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target); } // int32 peer = 4; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCRep) return target; } size_t SCRep::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCRep) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 desc = 1; if (this->_internal_desc() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc()); } // int32 index = 2; if (this->_internal_index() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index()); } // int32 egotype = 3; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } // int32 peer = 4; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCRep::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; } void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCRep::MergeFrom(const SCRep& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRep) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_desc() != 0) { _internal_set_desc(from._internal_desc()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCRep::CopyFrom(const SCRep& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRep) if (&from == this) return; Clear(); MergeFrom(from); } bool SCRep::IsInitialized() const { return true; } void SCRep::InternalSwap(SCRep* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SCRep, peer_) + sizeof(SCRep::peer_) - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>( reinterpret_cast(&desc_), reinterpret_cast(&other->desc_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[6]); } // =================================================================== class CSAdd::_Internal { public: }; CSAdd::CSAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.CSAdd) } CSAdd::CSAdd(const CSAdd& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_serial().empty()) { serial_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_serial(), GetArenaForAllocation()); } name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArenaForAllocation()); } ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&car_) - reinterpret_cast(&type_)) + sizeof(car_)); // @@protoc_insertion_point(copy_constructor:remote.CSAdd) } inline void CSAdd::SharedCtor() { serial_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING serial_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&type_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&car_) - reinterpret_cast(&type_)) + sizeof(car_)); } CSAdd::~CSAdd() { // @@protoc_insertion_point(destructor:remote.CSAdd) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CSAdd::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); serial_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void CSAdd::ArenaDtor(void* object) { CSAdd* _this = reinterpret_cast< CSAdd* >(object); (void)_this; } void CSAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void CSAdd::SetCachedSize(int size) const { _cached_size_.Set(size); } void CSAdd::Clear() { // @@protoc_insertion_point(message_clear_start:remote.CSAdd) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; serial_.ClearToEmpty(); name_.ClearToEmpty(); ::memset(&type_, 0, static_cast( reinterpret_cast(&car_) - reinterpret_cast(&type_)) + sizeof(car_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CSAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string serial = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_serial(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSAdd.serial")); CHK_(ptr); } else goto handle_unusual; continue; // int32 type = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string name = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSAdd.name")); CHK_(ptr); } else goto handle_unusual; continue; // int32 car = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* CSAdd::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.CSAdd) uint32_t cached_has_bits = 0; (void) cached_has_bits; // string serial = 1; if (!this->_internal_serial().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_serial().data(), static_cast(this->_internal_serial().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.CSAdd.serial"); target = stream->WriteStringMaybeAliased( 1, this->_internal_serial(), target); } // int32 type = 2; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target); } // string name = 3; if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.CSAdd.name"); target = stream->WriteStringMaybeAliased( 3, this->_internal_name(), target); } // int32 car = 4; if (this->_internal_car() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.CSAdd) return target; } size_t CSAdd::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.CSAdd) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string serial = 1; if (!this->_internal_serial().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_serial()); } // string name = 3; if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // int32 type = 2; if (this->_internal_type() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type()); } // int32 car = 4; if (this->_internal_car() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSAdd::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, CSAdd::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSAdd::GetClassData() const { return &_class_data_; } void CSAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void CSAdd::MergeFrom(const CSAdd& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSAdd) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_serial().empty()) { _internal_set_serial(from._internal_serial()); } if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } if (from._internal_type() != 0) { _internal_set_type(from._internal_type()); } if (from._internal_car() != 0) { _internal_set_car(from._internal_car()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CSAdd::CopyFrom(const CSAdd& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSAdd) if (&from == this) return; Clear(); MergeFrom(from); } bool CSAdd::IsInitialized() const { return true; } void CSAdd::InternalSwap(CSAdd* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &serial_, lhs_arena, &other->serial_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &name_, lhs_arena, &other->name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(CSAdd, car_) + sizeof(CSAdd::car_) - PROTOBUF_FIELD_OFFSET(CSAdd, type_)>( reinterpret_cast(&type_), reinterpret_cast(&other->type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CSAdd::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[7]); } // =================================================================== class SCAdd::_Internal { public: }; SCAdd::SCAdd(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCAdd) } SCAdd::SCAdd(const SCAdd& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArenaForAllocation()); } ::memcpy(&ret_, &from.ret_, static_cast(reinterpret_cast(&car_) - reinterpret_cast(&ret_)) + sizeof(car_)); // @@protoc_insertion_point(copy_constructor:remote.SCAdd) } inline void SCAdd::SharedCtor() { name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&ret_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&car_) - reinterpret_cast(&ret_)) + sizeof(car_)); } SCAdd::~SCAdd() { // @@protoc_insertion_point(destructor:remote.SCAdd) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCAdd::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void SCAdd::ArenaDtor(void* object) { SCAdd* _this = reinterpret_cast< SCAdd* >(object); (void)_this; } void SCAdd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCAdd::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCAdd::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCAdd) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); ::memset(&ret_, 0, static_cast( reinterpret_cast(&car_) - reinterpret_cast(&ret_)) + sizeof(car_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCAdd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // bool ret = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 uid = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string name = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SCAdd.name")); CHK_(ptr); } else goto handle_unusual; continue; // int32 car = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { car_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCAdd::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCAdd) uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool ret = 1; if (this->_internal_ret() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target); } // int32 uid = 2; if (this->_internal_uid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target); } // string name = 3; if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.SCAdd.name"); target = stream->WriteStringMaybeAliased( 3, this->_internal_name(), target); } // int32 car = 4; if (this->_internal_car() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_car(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCAdd) return target; } size_t SCAdd::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCAdd) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 3; if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // bool ret = 1; if (this->_internal_ret() != 0) { total_size += 1 + 1; } // int32 uid = 2; if (this->_internal_uid() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid()); } // int32 car = 4; if (this->_internal_car() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_car()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAdd::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCAdd::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAdd::GetClassData() const { return &_class_data_; } void SCAdd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCAdd::MergeFrom(const SCAdd& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCAdd) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } if (from._internal_ret() != 0) { _internal_set_ret(from._internal_ret()); } if (from._internal_uid() != 0) { _internal_set_uid(from._internal_uid()); } if (from._internal_car() != 0) { _internal_set_car(from._internal_car()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCAdd::CopyFrom(const SCAdd& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCAdd) if (&from == this) return; Clear(); MergeFrom(from); } bool SCAdd::IsInitialized() const { return true; } void SCAdd::InternalSwap(SCAdd* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &name_, lhs_arena, &other->name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SCAdd, car_) + sizeof(SCAdd::car_) - PROTOBUF_FIELD_OFFSET(SCAdd, ret_)>( reinterpret_cast(&ret_), reinterpret_cast(&other->ret_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SCAdd::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[8]); } // =================================================================== class Robot::_Internal { public: }; Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.Robot) } Robot::Robot(const Robot& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArenaForAllocation()); } ::memcpy(&rid_, &from.rid_, static_cast(reinterpret_cast(&state_) - reinterpret_cast(&rid_)) + sizeof(state_)); // @@protoc_insertion_point(copy_constructor:remote.Robot) } inline void Robot::SharedCtor() { name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&rid_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&state_) - reinterpret_cast(&rid_)) + sizeof(state_)); } Robot::~Robot() { // @@protoc_insertion_point(destructor:remote.Robot) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Robot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Robot::ArenaDtor(void* object) { Robot* _this = reinterpret_cast< Robot* >(object); (void)_this; } void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Robot::SetCachedSize(int size) const { _cached_size_.Set(size); } void Robot::Clear() { // @@protoc_insertion_point(message_clear_start:remote.Robot) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; name_.ClearToEmpty(); ::memset(&rid_, 0, static_cast( reinterpret_cast(&state_) - reinterpret_cast(&rid_)) + sizeof(state_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 rid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // string name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Robot.name")); CHK_(ptr); } else goto handle_unusual; continue; // int32 type = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 state = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { state_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* Robot::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.Robot) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 rid = 1; if (this->_internal_rid() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target); } // string name = 2; if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "remote.Robot.name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_name(), target); } // int32 type = 3; if (this->_internal_type() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target); } // int32 state = 4; if (this->_internal_state() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_state(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.Robot) return target; } size_t Robot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.Robot) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 2; if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // int32 rid = 1; if (this->_internal_rid() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid()); } // int32 type = 3; if (this->_internal_type() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type()); } // int32 state = 4; if (this->_internal_state() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_state()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, Robot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; } void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void Robot::MergeFrom(const Robot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.Robot) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } if (from._internal_rid() != 0) { _internal_set_rid(from._internal_rid()); } if (from._internal_type() != 0) { _internal_set_type(from._internal_type()); } if (from._internal_state() != 0) { _internal_set_state(from._internal_state()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Robot::CopyFrom(const Robot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.Robot) if (&from == this) return; Clear(); MergeFrom(from); } bool Robot::IsInitialized() const { return true; } void Robot::InternalSwap(Robot* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &name_, lhs_arena, &other->name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Robot, state_) + sizeof(Robot::state_) - PROTOBUF_FIELD_OFFSET(Robot, rid_)>( reinterpret_cast(&rid_), reinterpret_cast(&other->rid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[9]); } // =================================================================== class SCAddRobot::_Internal { public: static const ::remote::Robot& robot(const SCAddRobot* msg); }; const ::remote::Robot& SCAddRobot::_Internal::robot(const SCAddRobot* msg) { return *msg->robot_; } SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCAddRobot) } SCAddRobot::SCAddRobot(const SCAddRobot& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_robot()) { robot_ = new ::remote::Robot(*from.robot_); } else { robot_ = nullptr; } // @@protoc_insertion_point(copy_constructor:remote.SCAddRobot) } inline void SCAddRobot::SharedCtor() { robot_ = nullptr; } SCAddRobot::~SCAddRobot() { // @@protoc_insertion_point(destructor:remote.SCAddRobot) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCAddRobot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete robot_; } void SCAddRobot::ArenaDtor(void* object) { SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object); (void)_this; } void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCAddRobot::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCAddRobot::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCAddRobot) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (GetArenaForAllocation() == nullptr && robot_ != nullptr) { delete robot_; } robot_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // .remote.Robot robot = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCAddRobot::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCAddRobot) uint32_t cached_has_bits = 0; (void) cached_has_bits; // .remote.Robot robot = 1; if (this->_internal_has_robot()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 1, _Internal::robot(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCAddRobot) return target; } size_t SCAddRobot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCAddRobot) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .remote.Robot robot = 1; if (this->_internal_has_robot()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *robot_); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCAddRobot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; } void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCAddRobot::MergeFrom(const SCAddRobot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCAddRobot) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_robot()) { _internal_mutable_robot()->::remote::Robot::MergeFrom(from._internal_robot()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCAddRobot::CopyFrom(const SCAddRobot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCAddRobot) if (&from == this) return; Clear(); MergeFrom(from); } bool SCAddRobot::IsInitialized() const { return true; } void SCAddRobot::InternalSwap(SCAddRobot* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(robot_, other->robot_); } ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[10]); } // =================================================================== class SCDelRobot::_Internal { public: }; SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCDelRobot) } SCDelRobot::SCDelRobot(const SCDelRobot& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&peer_, &from.peer_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.SCDelRobot) } inline void SCDelRobot::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&peer_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); } SCDelRobot::~SCDelRobot() { // @@protoc_insertion_point(destructor:remote.SCDelRobot) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCDelRobot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void SCDelRobot::ArenaDtor(void* object) { SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object); (void)_this; } void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCDelRobot::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCDelRobot::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCDelRobot) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&peer_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 peer = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCDelRobot::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCDelRobot) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target); } // int32 egotype = 2; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCDelRobot) return target; } size_t SCDelRobot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCDelRobot) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 egotype = 2; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCDelRobot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; } void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCDelRobot::MergeFrom(const SCDelRobot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCDelRobot) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCDelRobot::CopyFrom(const SCDelRobot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCDelRobot) if (&from == this) return; Clear(); MergeFrom(from); } bool SCDelRobot::IsInitialized() const { return true; } void SCDelRobot::InternalSwap(SCDelRobot* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_) + sizeof(SCDelRobot::egotype_) - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>( reinterpret_cast(&peer_), reinterpret_cast(&other->peer_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[11]); } // =================================================================== class CSRobot::_Internal { public: }; CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { // @@protoc_insertion_point(arena_constructor:remote.CSRobot) } CSRobot::CSRobot(const CSRobot& from) : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:remote.CSRobot) } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; } ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[12]); } // =================================================================== class SCRobot::_Internal { public: }; SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), robot_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.SCRobot) } SCRobot::SCRobot(const SCRobot& from) : ::PROTOBUF_NAMESPACE_ID::Message(), robot_(from.robot_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:remote.SCRobot) } inline void SCRobot::SharedCtor() { } SCRobot::~SCRobot() { // @@protoc_insertion_point(destructor:remote.SCRobot) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SCRobot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void SCRobot::ArenaDtor(void* object) { SCRobot* _this = reinterpret_cast< SCRobot* >(object); (void)_this; } void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SCRobot::SetCachedSize(int size) const { _cached_size_.Set(size); } void SCRobot::Clear() { // @@protoc_insertion_point(message_clear_start:remote.SCRobot) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; robot_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .remote.Robot robot = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_robot(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* SCRobot::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.SCRobot) uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .remote.Robot robot = 1; for (unsigned int i = 0, n = static_cast(this->_internal_robot_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_robot(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.SCRobot) return target; } size_t SCRobot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.SCRobot) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .remote.Robot robot = 1; total_size += 1UL * this->_internal_robot_size(); for (const auto& msg : this->robot_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SCRobot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; } void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void SCRobot::MergeFrom(const SCRobot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRobot) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; robot_.MergeFrom(from.robot_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SCRobot::CopyFrom(const SCRobot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRobot) if (&from == this) return; Clear(); MergeFrom(from); } bool SCRobot::IsInitialized() const { return true; } void SCRobot::InternalSwap(SCRobot* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); robot_.InternalSwap(&other->robot_); } ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[13]); } // =================================================================== class Leave::_Internal { public: }; Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:remote.Leave) } Leave::Leave(const Leave& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&peer_, &from.peer_, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); // @@protoc_insertion_point(copy_constructor:remote.Leave) } inline void Leave::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&peer_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); } Leave::~Leave() { // @@protoc_insertion_point(destructor:remote.Leave) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Leave::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void Leave::ArenaDtor(void* object) { Leave* _this = reinterpret_cast< Leave* >(object); (void)_this; } void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Leave::SetCachedSize(int size) const { _cached_size_.Set(size); } void Leave::Clear() { // @@protoc_insertion_point(message_clear_start:remote.Leave) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&peer_, 0, static_cast( reinterpret_cast(&egotype_) - reinterpret_cast(&peer_)) + sizeof(egotype_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 peer = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // int32 egotype = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ } uint8_t* Leave::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:remote.Leave) uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target); } // int32 egotype = 2; if (this->_internal_egotype() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:remote.Leave) return target; } size_t Leave::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:remote.Leave) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 peer = 1; if (this->_internal_peer() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer()); } // int32 egotype = 2; if (this->_internal_egotype() != 0) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype()); } return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, Leave::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; } void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from) { static_cast(to)->MergeFrom( static_cast(from)); } void Leave::MergeFrom(const Leave& from) { // @@protoc_insertion_point(class_specific_merge_from_start:remote.Leave) GOOGLE_DCHECK_NE(&from, this); uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_peer() != 0) { _internal_set_peer(from._internal_peer()); } if (from._internal_egotype() != 0) { _internal_set_egotype(from._internal_egotype()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Leave::CopyFrom(const Leave& from) { // @@protoc_insertion_point(class_specific_copy_from_start:remote.Leave) if (&from == this) return; Clear(); MergeFrom(from); } bool Leave::IsInitialized() const { return true; } void Leave::InternalSwap(Leave* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Leave, egotype_) + sizeof(Leave::egotype_) - PROTOBUF_FIELD_OFFSET(Leave, peer_)>( reinterpret_cast(&peer_), reinterpret_cast(&other->peer_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once, file_level_metadata_remote_2eproto[14]); } // @@protoc_insertion_point(namespace_scope) } // namespace remote PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::remote::Offer* Arena::CreateMaybeMessage< ::remote::Offer >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::Offer >(arena); } template<> PROTOBUF_NOINLINE ::remote::Answer* Arena::CreateMaybeMessage< ::remote::Answer >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::Answer >(arena); } template<> PROTOBUF_NOINLINE ::remote::Candidate* Arena::CreateMaybeMessage< ::remote::Candidate >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::Candidate >(arena); } template<> PROTOBUF_NOINLINE ::remote::CSReq* Arena::CreateMaybeMessage< ::remote::CSReq >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::CSReq >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCReq* Arena::CreateMaybeMessage< ::remote::SCReq >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCReq >(arena); } template<> PROTOBUF_NOINLINE ::remote::CSRep* Arena::CreateMaybeMessage< ::remote::CSRep >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::CSRep >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCRep* Arena::CreateMaybeMessage< ::remote::SCRep >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCRep >(arena); } template<> PROTOBUF_NOINLINE ::remote::CSAdd* Arena::CreateMaybeMessage< ::remote::CSAdd >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::CSAdd >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCAdd* Arena::CreateMaybeMessage< ::remote::SCAdd >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCAdd >(arena); } template<> PROTOBUF_NOINLINE ::remote::Robot* Arena::CreateMaybeMessage< ::remote::Robot >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::Robot >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCAddRobot* Arena::CreateMaybeMessage< ::remote::SCAddRobot >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCAddRobot >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCDelRobot* Arena::CreateMaybeMessage< ::remote::SCDelRobot >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCDelRobot >(arena); } template<> PROTOBUF_NOINLINE ::remote::CSRobot* Arena::CreateMaybeMessage< ::remote::CSRobot >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::CSRobot >(arena); } template<> PROTOBUF_NOINLINE ::remote::SCRobot* Arena::CreateMaybeMessage< ::remote::SCRobot >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SCRobot >(arena); } template<> PROTOBUF_NOINLINE ::remote::Leave* Arena::CreateMaybeMessage< ::remote::Leave >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::Leave >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include