// Generated by the protocol buffer compiler. DO NOT EDIT! // source: message.proto #include "message.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include class AGVStatuDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _AGVStatu_default_instance_; class ChangeSpeedCmdDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ChangeSpeedCmd_default_instance_; static void InitDefaultsscc_info_AGVStatu_message_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::_AGVStatu_default_instance_; new (ptr) ::AGVStatu(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::AGVStatu::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AGVStatu_message_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AGVStatu_message_2eproto}, {}}; static void InitDefaultsscc_info_ChangeSpeedCmd_message_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::_ChangeSpeedCmd_default_instance_; new (ptr) ::ChangeSpeedCmd(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::ChangeSpeedCmd::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChangeSpeedCmd_message_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ChangeSpeedCmd_message_2eproto}, {}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_message_2eproto[2]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_message_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_message_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::AGVStatu, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::AGVStatu, x_), PROTOBUF_FIELD_OFFSET(::AGVStatu, y_), PROTOBUF_FIELD_OFFSET(::AGVStatu, theta_), PROTOBUF_FIELD_OFFSET(::AGVStatu, v_), PROTOBUF_FIELD_OFFSET(::AGVStatu, vth_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::ChangeSpeedCmd, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::ChangeSpeedCmd, v_), PROTOBUF_FIELD_OFFSET(::ChangeSpeedCmd, vth_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::AGVStatu)}, { 10, -1, sizeof(::ChangeSpeedCmd)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::_AGVStatu_default_instance_), reinterpret_cast(&::_ChangeSpeedCmd_default_instance_), }; const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\rmessage.proto\"G\n\010AGVStatu\022\t\n\001x\030\001 \001(\002\022\t" "\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003v" "th\030\005 \001(\002\"(\n\016ChangeSpeedCmd\022\t\n\001v\030\001 \001(\002\022\013\n" "\003vth\030\002 \001(\002b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_message_2eproto_deps[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_message_2eproto_sccs[2] = { &scc_info_AGVStatu_message_2eproto.base, &scc_info_ChangeSpeedCmd_message_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_message_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto = { false, false, descriptor_table_protodef_message_2eproto, "message.proto", 138, &descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_sccs, descriptor_table_message_2eproto_deps, 2, 0, schemas, file_default_instances, TableStruct_message_2eproto::offsets, file_level_metadata_message_2eproto, 2, file_level_enum_descriptors_message_2eproto, file_level_service_descriptors_message_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_message_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_message_2eproto)), true); // =================================================================== void AGVStatu::InitAsDefaultInstance() { } class AGVStatu::_Internal { public: }; AGVStatu::AGVStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:AGVStatu) } AGVStatu::AGVStatu(const AGVStatu& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&vth_) - reinterpret_cast(&x_)) + sizeof(vth_)); // @@protoc_insertion_point(copy_constructor:AGVStatu) } void AGVStatu::SharedCtor() { ::memset(&x_, 0, static_cast( reinterpret_cast(&vth_) - reinterpret_cast(&x_)) + sizeof(vth_)); } AGVStatu::~AGVStatu() { // @@protoc_insertion_point(destructor:AGVStatu) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AGVStatu::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void AGVStatu::ArenaDtor(void* object) { AGVStatu* _this = reinterpret_cast< AGVStatu* >(object); (void)_this; } void AGVStatu::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void AGVStatu::SetCachedSize(int size) const { _cached_size_.Set(size); } const AGVStatu& AGVStatu::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AGVStatu_message_2eproto.base); return *internal_default_instance(); } void AGVStatu::Clear() { // @@protoc_insertion_point(message_clear_start:AGVStatu) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&x_, 0, static_cast( reinterpret_cast(&vth_) - reinterpret_cast(&x_)) + sizeof(vth_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AGVStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // float x = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float y = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float theta = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float v = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float vth = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AGVStatu::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:AGVStatu) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // float x = 1; if (!(this->x() <= 0 && this->x() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target); } // float y = 2; if (!(this->y() <= 0 && this->y() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target); } // float theta = 3; if (!(this->theta() <= 0 && this->theta() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_theta(), target); } // float v = 4; if (!(this->v() <= 0 && this->v() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_v(), target); } // float vth = 5; if (!(this->vth() <= 0 && this->vth() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_vth(), 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:AGVStatu) return target; } size_t AGVStatu::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:AGVStatu) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float x = 1; if (!(this->x() <= 0 && this->x() >= 0)) { total_size += 1 + 4; } // float y = 2; if (!(this->y() <= 0 && this->y() >= 0)) { total_size += 1 + 4; } // float theta = 3; if (!(this->theta() <= 0 && this->theta() >= 0)) { total_size += 1 + 4; } // float v = 4; if (!(this->v() <= 0 && this->v() >= 0)) { total_size += 1 + 4; } // float vth = 5; if (!(this->vth() <= 0 && this->vth() >= 0)) { total_size += 1 + 4; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AGVStatu::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:AGVStatu) GOOGLE_DCHECK_NE(&from, this); const AGVStatu* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:AGVStatu) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:AGVStatu) MergeFrom(*source); } } void AGVStatu::MergeFrom(const AGVStatu& from) { // @@protoc_insertion_point(class_specific_merge_from_start:AGVStatu) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!(from.x() <= 0 && from.x() >= 0)) { _internal_set_x(from._internal_x()); } if (!(from.y() <= 0 && from.y() >= 0)) { _internal_set_y(from._internal_y()); } if (!(from.theta() <= 0 && from.theta() >= 0)) { _internal_set_theta(from._internal_theta()); } if (!(from.v() <= 0 && from.v() >= 0)) { _internal_set_v(from._internal_v()); } if (!(from.vth() <= 0 && from.vth() >= 0)) { _internal_set_vth(from._internal_vth()); } } void AGVStatu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:AGVStatu) if (&from == this) return; Clear(); MergeFrom(from); } void AGVStatu::CopyFrom(const AGVStatu& from) { // @@protoc_insertion_point(class_specific_copy_from_start:AGVStatu) if (&from == this) return; Clear(); MergeFrom(from); } bool AGVStatu::IsInitialized() const { return true; } void AGVStatu::InternalSwap(AGVStatu* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AGVStatu, vth_) + sizeof(AGVStatu::vth_) - PROTOBUF_FIELD_OFFSET(AGVStatu, x_)>( reinterpret_cast(&x_), reinterpret_cast(&other->x_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AGVStatu::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void ChangeSpeedCmd::InitAsDefaultInstance() { } class ChangeSpeedCmd::_Internal { public: }; ChangeSpeedCmd::ChangeSpeedCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:ChangeSpeedCmd) } ChangeSpeedCmd::ChangeSpeedCmd(const ChangeSpeedCmd& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&v_, &from.v_, static_cast(reinterpret_cast(&vth_) - reinterpret_cast(&v_)) + sizeof(vth_)); // @@protoc_insertion_point(copy_constructor:ChangeSpeedCmd) } void ChangeSpeedCmd::SharedCtor() { ::memset(&v_, 0, static_cast( reinterpret_cast(&vth_) - reinterpret_cast(&v_)) + sizeof(vth_)); } ChangeSpeedCmd::~ChangeSpeedCmd() { // @@protoc_insertion_point(destructor:ChangeSpeedCmd) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ChangeSpeedCmd::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void ChangeSpeedCmd::ArenaDtor(void* object) { ChangeSpeedCmd* _this = reinterpret_cast< ChangeSpeedCmd* >(object); (void)_this; } void ChangeSpeedCmd::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void ChangeSpeedCmd::SetCachedSize(int size) const { _cached_size_.Set(size); } const ChangeSpeedCmd& ChangeSpeedCmd::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ChangeSpeedCmd_message_2eproto.base); return *internal_default_instance(); } void ChangeSpeedCmd::Clear() { // @@protoc_insertion_point(message_clear_start:ChangeSpeedCmd) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ::memset(&v_, 0, static_cast( reinterpret_cast(&vth_) - reinterpret_cast(&v_)) + sizeof(vth_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ChangeSpeedCmd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // float v = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // float vth = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ChangeSpeedCmd::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:ChangeSpeedCmd) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // float v = 1; if (!(this->v() <= 0 && this->v() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_v(), target); } // float vth = 2; if (!(this->vth() <= 0 && this->vth() >= 0)) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_vth(), 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:ChangeSpeedCmd) return target; } size_t ChangeSpeedCmd::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:ChangeSpeedCmd) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // float v = 1; if (!(this->v() <= 0 && this->v() >= 0)) { total_size += 1 + 4; } // float vth = 2; if (!(this->vth() <= 0 && this->vth() >= 0)) { total_size += 1 + 4; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ChangeSpeedCmd::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:ChangeSpeedCmd) GOOGLE_DCHECK_NE(&from, this); const ChangeSpeedCmd* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:ChangeSpeedCmd) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:ChangeSpeedCmd) MergeFrom(*source); } } void ChangeSpeedCmd::MergeFrom(const ChangeSpeedCmd& from) { // @@protoc_insertion_point(class_specific_merge_from_start:ChangeSpeedCmd) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!(from.v() <= 0 && from.v() >= 0)) { _internal_set_v(from._internal_v()); } if (!(from.vth() <= 0 && from.vth() >= 0)) { _internal_set_vth(from._internal_vth()); } } void ChangeSpeedCmd::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:ChangeSpeedCmd) if (&from == this) return; Clear(); MergeFrom(from); } void ChangeSpeedCmd::CopyFrom(const ChangeSpeedCmd& from) { // @@protoc_insertion_point(class_specific_copy_from_start:ChangeSpeedCmd) if (&from == this) return; Clear(); MergeFrom(from); } bool ChangeSpeedCmd::IsInitialized() const { return true; } void ChangeSpeedCmd::InternalSwap(ChangeSpeedCmd* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ChangeSpeedCmd, vth_) + sizeof(ChangeSpeedCmd::vth_) - PROTOBUF_FIELD_OFFSET(ChangeSpeedCmd, v_)>( reinterpret_cast(&v_), reinterpret_cast(&other->v_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ChangeSpeedCmd::GetMetadata() const { return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::AGVStatu* Arena::CreateMaybeMessage< ::AGVStatu >(Arena* arena) { return Arena::CreateMessageInternal< ::AGVStatu >(arena); } template<> PROTOBUF_NOINLINE ::ChangeSpeedCmd* Arena::CreateMaybeMessage< ::ChangeSpeedCmd >(Arena* arena) { return Arena::CreateMessageInternal< ::ChangeSpeedCmd >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include