123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: message.proto
- #include "message.pb.h"
- #include <algorithm>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- class AGVStatuDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AGVStatu> _instance;
- } _AGVStatu_default_instance_;
- class ChangeSpeedCmdDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ChangeSpeedCmd> _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<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_AGVStatu_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_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<void>(::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<size_t>(reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&x_)) + sizeof(vth_));
- // @@protoc_insertion_point(copy_constructor:AGVStatu)
- }
- void AGVStatu::SharedCtor() {
- ::memset(&x_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&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<size_t>(
- reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&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<float>(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<float>(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<float>(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<float>(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<float>(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<AGVStatu>(
- &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<char*>(&x_),
- reinterpret_cast<char*>(&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<size_t>(reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&v_)) + sizeof(vth_));
- // @@protoc_insertion_point(copy_constructor:ChangeSpeedCmd)
- }
- void ChangeSpeedCmd::SharedCtor() {
- ::memset(&v_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&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<size_t>(
- reinterpret_cast<char*>(&vth_) -
- reinterpret_cast<char*>(&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<float>(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<float>(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<ChangeSpeedCmd>(
- &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<char*>(&v_),
- reinterpret_cast<char*>(&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 <google/protobuf/port_undef.inc>
|