1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: hardware_limit.proto
- #include "hardware_limit.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.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>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_hardware_5flimit_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_hardware_5flimit_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Railing;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_hardware_5flimit_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Theta_range;
- } // namespace protobuf_hardware_5flimit_2eproto
- namespace Hardware_limit {
- class RailingDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Railing>
- _instance;
- } _Railing_default_instance_;
- class Theta_rangeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Theta_range>
- _instance;
- } _Theta_range_default_instance_;
- class Hardware_parameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Hardware_parameter>
- _instance;
- } _Hardware_parameter_default_instance_;
- } // namespace Hardware_limit
- namespace protobuf_hardware_5flimit_2eproto {
- static void InitDefaultsRailing() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::Hardware_limit::_Railing_default_instance_;
- new (ptr) ::Hardware_limit::Railing();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Railing::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Railing =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRailing}, {}};
- static void InitDefaultsTheta_range() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::Hardware_limit::_Theta_range_default_instance_;
- new (ptr) ::Hardware_limit::Theta_range();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Theta_range::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Theta_range =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTheta_range}, {}};
- static void InitDefaultsHardware_parameter() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::Hardware_limit::_Hardware_parameter_default_instance_;
- new (ptr) ::Hardware_limit::Hardware_parameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Hardware_parameter::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_parameter =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_parameter}, {
- &protobuf_hardware_5flimit_2eproto::scc_info_Railing.base,
- &protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_Railing.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Theta_range.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Hardware_parameter.base);
- }
- ::google::protobuf::Metadata file_level_metadata[3];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pa_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pb_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, pc_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Railing, railing_width_),
- 0,
- 1,
- 2,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, min_theta_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Theta_range, max_theta_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, railing_parameter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_min_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_max_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, theta_range_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, height_),
- ~0u,
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- ~0u,
- 6,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 9, sizeof(::Hardware_limit::Railing)},
- { 13, 20, sizeof(::Hardware_limit::Theta_range)},
- { 22, 36, sizeof(::Hardware_limit::Hardware_parameter)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Railing_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Theta_range_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Hardware_limit::_Hardware_parameter_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "hardware_limit.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\024hardware_limit.proto\022\016Hardware_limit\"G"
- "\n\007Railing\022\n\n\002pa\030\001 \002(\002\022\n\n\002pb\030\002 \002(\002\022\n\n\002pc\030"
- "\003 \002(\002\022\030\n\rrailing_width\030\004 \001(\002:\0010\"3\n\013Theta"
- "_range\022\021\n\tmin_theta\030\001 \002(\002\022\021\n\tmax_theta\030\002"
- " \002(\002\"\216\002\n\022Hardware_parameter\0222\n\021railing_p"
- "arameter\030\001 \003(\0132\027.Hardware_limit.Railing\022"
- "\024\n\014center_min_y\030\002 \002(\002\022\024\n\014center_max_y\030\003 "
- "\002(\002\022\024\n\014center_min_x\030\004 \002(\002\022\024\n\014center_max_"
- "x\030\005 \002(\002\022\024\n\014corner_min_y\030\006 \002(\002\022\024\n\014corner_"
- "max_y\030\007 \002(\002\0220\n\013theta_range\030\010 \003(\0132\033.Hardw"
- "are_limit.Theta_range\022\016\n\006height\030\t \002(\002"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 437);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "hardware_limit.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_hardware_5flimit_2eproto
- namespace Hardware_limit {
- // ===================================================================
- void Railing::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Railing::kPaFieldNumber;
- const int Railing::kPbFieldNumber;
- const int Railing::kPcFieldNumber;
- const int Railing::kRailingWidthFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Railing::Railing()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_hardware_5flimit_2eproto::scc_info_Railing.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Hardware_limit.Railing)
- }
- Railing::Railing(const Railing& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&pa_, &from.pa_,
- static_cast<size_t>(reinterpret_cast<char*>(&railing_width_) -
- reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
- // @@protoc_insertion_point(copy_constructor:Hardware_limit.Railing)
- }
- void Railing::SharedCtor() {
- ::memset(&pa_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&railing_width_) -
- reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
- }
- Railing::~Railing() {
- // @@protoc_insertion_point(destructor:Hardware_limit.Railing)
- SharedDtor();
- }
- void Railing::SharedDtor() {
- }
- void Railing::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Railing::descriptor() {
- ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Railing& Railing::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Railing.base);
- return *internal_default_instance();
- }
- void Railing::Clear() {
- // @@protoc_insertion_point(message_clear_start:Hardware_limit.Railing)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- ::memset(&pa_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&railing_width_) -
- reinterpret_cast<char*>(&pa_)) + sizeof(railing_width_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Railing::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Hardware_limit.Railing)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required float pa = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_pa();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &pa_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float pb = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_pb();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &pb_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float pc = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_pc();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &pc_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float railing_width = 4 [default = 0];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_railing_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &railing_width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Hardware_limit.Railing)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Hardware_limit.Railing)
- return false;
- #undef DO_
- }
- void Railing::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Hardware_limit.Railing)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float pa = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->pa(), output);
- }
- // required float pb = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->pb(), output);
- }
- // required float pc = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->pc(), output);
- }
- // optional float railing_width = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->railing_width(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Hardware_limit.Railing)
- }
- ::google::protobuf::uint8* Railing::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Railing)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float pa = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->pa(), target);
- }
- // required float pb = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->pb(), target);
- }
- // required float pc = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->pc(), target);
- }
- // optional float railing_width = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->railing_width(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Railing)
- return target;
- }
- size_t Railing::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Railing)
- size_t total_size = 0;
- if (has_pa()) {
- // required float pa = 1;
- total_size += 1 + 4;
- }
- if (has_pb()) {
- // required float pb = 2;
- total_size += 1 + 4;
- }
- if (has_pc()) {
- // required float pc = 3;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Railing::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Railing)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
- // required float pa = 1;
- total_size += 1 + 4;
- // required float pb = 2;
- total_size += 1 + 4;
- // required float pc = 3;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // optional float railing_width = 4 [default = 0];
- if (has_railing_width()) {
- total_size += 1 + 4;
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Railing::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Railing)
- GOOGLE_DCHECK_NE(&from, this);
- const Railing* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Railing>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Railing)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Railing)
- MergeFrom(*source);
- }
- }
- void Railing::MergeFrom(const Railing& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Railing)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- pa_ = from.pa_;
- }
- if (cached_has_bits & 0x00000002u) {
- pb_ = from.pb_;
- }
- if (cached_has_bits & 0x00000004u) {
- pc_ = from.pc_;
- }
- if (cached_has_bits & 0x00000008u) {
- railing_width_ = from.railing_width_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Railing::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Railing)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Railing::CopyFrom(const Railing& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Railing)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Railing::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
- return true;
- }
- void Railing::Swap(Railing* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Railing::InternalSwap(Railing* other) {
- using std::swap;
- swap(pa_, other->pa_);
- swap(pb_, other->pb_);
- swap(pc_, other->pc_);
- swap(railing_width_, other->railing_width_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Railing::GetMetadata() const {
- protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Theta_range::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Theta_range::kMinThetaFieldNumber;
- const int Theta_range::kMaxThetaFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Theta_range::Theta_range()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Hardware_limit.Theta_range)
- }
- Theta_range::Theta_range(const Theta_range& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&min_theta_, &from.min_theta_,
- static_cast<size_t>(reinterpret_cast<char*>(&max_theta_) -
- reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
- // @@protoc_insertion_point(copy_constructor:Hardware_limit.Theta_range)
- }
- void Theta_range::SharedCtor() {
- ::memset(&min_theta_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&max_theta_) -
- reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
- }
- Theta_range::~Theta_range() {
- // @@protoc_insertion_point(destructor:Hardware_limit.Theta_range)
- SharedDtor();
- }
- void Theta_range::SharedDtor() {
- }
- void Theta_range::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Theta_range::descriptor() {
- ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Theta_range& Theta_range::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Theta_range.base);
- return *internal_default_instance();
- }
- void Theta_range::Clear() {
- // @@protoc_insertion_point(message_clear_start:Hardware_limit.Theta_range)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- ::memset(&min_theta_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&max_theta_) -
- reinterpret_cast<char*>(&min_theta_)) + sizeof(max_theta_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Theta_range::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Hardware_limit.Theta_range)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required float min_theta = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_min_theta();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &min_theta_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float max_theta = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_max_theta();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &max_theta_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Hardware_limit.Theta_range)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Hardware_limit.Theta_range)
- return false;
- #undef DO_
- }
- void Theta_range::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Hardware_limit.Theta_range)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float min_theta = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_theta(), output);
- }
- // required float max_theta = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_theta(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Hardware_limit.Theta_range)
- }
- ::google::protobuf::uint8* Theta_range::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Theta_range)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float min_theta = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_theta(), target);
- }
- // required float max_theta = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_theta(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Theta_range)
- return target;
- }
- size_t Theta_range::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Theta_range)
- size_t total_size = 0;
- if (has_min_theta()) {
- // required float min_theta = 1;
- total_size += 1 + 4;
- }
- if (has_max_theta()) {
- // required float max_theta = 2;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Theta_range::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Theta_range)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
- // required float min_theta = 1;
- total_size += 1 + 4;
- // required float max_theta = 2;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Theta_range::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Theta_range)
- GOOGLE_DCHECK_NE(&from, this);
- const Theta_range* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Theta_range>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Theta_range)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Theta_range)
- MergeFrom(*source);
- }
- }
- void Theta_range::MergeFrom(const Theta_range& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Theta_range)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- min_theta_ = from.min_theta_;
- }
- if (cached_has_bits & 0x00000002u) {
- max_theta_ = from.max_theta_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Theta_range::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Theta_range)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Theta_range::CopyFrom(const Theta_range& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Theta_range)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Theta_range::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
- return true;
- }
- void Theta_range::Swap(Theta_range* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Theta_range::InternalSwap(Theta_range* other) {
- using std::swap;
- swap(min_theta_, other->min_theta_);
- swap(max_theta_, other->max_theta_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Theta_range::GetMetadata() const {
- protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Hardware_parameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Hardware_parameter::kRailingParameterFieldNumber;
- const int Hardware_parameter::kCenterMinYFieldNumber;
- const int Hardware_parameter::kCenterMaxYFieldNumber;
- const int Hardware_parameter::kCenterMinXFieldNumber;
- const int Hardware_parameter::kCenterMaxXFieldNumber;
- const int Hardware_parameter::kCornerMinYFieldNumber;
- const int Hardware_parameter::kCornerMaxYFieldNumber;
- const int Hardware_parameter::kThetaRangeFieldNumber;
- const int Hardware_parameter::kHeightFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Hardware_parameter::Hardware_parameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_hardware_5flimit_2eproto::scc_info_Hardware_parameter.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:Hardware_limit.Hardware_parameter)
- }
- Hardware_parameter::Hardware_parameter(const Hardware_parameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- railing_parameter_(from.railing_parameter_),
- theta_range_(from.theta_range_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(¢er_min_y_, &from.center_min_y_,
- static_cast<size_t>(reinterpret_cast<char*>(&height_) -
- reinterpret_cast<char*>(¢er_min_y_)) + sizeof(height_));
- // @@protoc_insertion_point(copy_constructor:Hardware_limit.Hardware_parameter)
- }
- void Hardware_parameter::SharedCtor() {
- ::memset(¢er_min_y_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&height_) -
- reinterpret_cast<char*>(¢er_min_y_)) + sizeof(height_));
- }
- Hardware_parameter::~Hardware_parameter() {
- // @@protoc_insertion_point(destructor:Hardware_limit.Hardware_parameter)
- SharedDtor();
- }
- void Hardware_parameter::SharedDtor() {
- }
- void Hardware_parameter::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Hardware_parameter::descriptor() {
- ::protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Hardware_parameter& Hardware_parameter::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_hardware_5flimit_2eproto::scc_info_Hardware_parameter.base);
- return *internal_default_instance();
- }
- void Hardware_parameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Hardware_limit.Hardware_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- railing_parameter_.Clear();
- theta_range_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 127u) {
- ::memset(¢er_min_y_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&height_) -
- reinterpret_cast<char*>(¢er_min_y_)) + sizeof(height_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Hardware_parameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Hardware_limit.Hardware_parameter)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .Hardware_limit.Railing railing_parameter = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_railing_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float center_min_y = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_center_min_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, ¢er_min_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float center_max_y = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_center_max_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, ¢er_max_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float center_min_x = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_center_min_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, ¢er_min_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float center_max_x = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_center_max_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, ¢er_max_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float corner_min_y = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_corner_min_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &corner_min_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float corner_max_y = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
- set_has_corner_max_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &corner_max_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .Hardware_limit.Theta_range theta_range = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_theta_range()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float height = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
- set_has_height();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &height_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Hardware_limit.Hardware_parameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Hardware_limit.Hardware_parameter)
- return false;
- #undef DO_
- }
- void Hardware_parameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Hardware_limit.Hardware_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .Hardware_limit.Railing railing_parameter = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->railing_parameter_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->railing_parameter(static_cast<int>(i)),
- output);
- }
- cached_has_bits = _has_bits_[0];
- // required float center_min_y = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->center_min_y(), output);
- }
- // required float center_max_y = 3;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->center_max_y(), output);
- }
- // required float center_min_x = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->center_min_x(), output);
- }
- // required float center_max_x = 5;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->center_max_x(), output);
- }
- // required float corner_min_y = 6;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->corner_min_y(), output);
- }
- // required float corner_max_y = 7;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->corner_max_y(), output);
- }
- // repeated .Hardware_limit.Theta_range theta_range = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->theta_range_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8,
- this->theta_range(static_cast<int>(i)),
- output);
- }
- // required float height = 9;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->height(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Hardware_limit.Hardware_parameter)
- }
- ::google::protobuf::uint8* Hardware_parameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Hardware_parameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .Hardware_limit.Railing railing_parameter = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->railing_parameter_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->railing_parameter(static_cast<int>(i)), deterministic, target);
- }
- cached_has_bits = _has_bits_[0];
- // required float center_min_y = 2;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->center_min_y(), target);
- }
- // required float center_max_y = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->center_max_y(), target);
- }
- // required float center_min_x = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->center_min_x(), target);
- }
- // required float center_max_x = 5;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->center_max_x(), target);
- }
- // required float corner_min_y = 6;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->corner_min_y(), target);
- }
- // required float corner_max_y = 7;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->corner_max_y(), target);
- }
- // repeated .Hardware_limit.Theta_range theta_range = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->theta_range_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->theta_range(static_cast<int>(i)), deterministic, target);
- }
- // required float height = 9;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->height(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Hardware_limit.Hardware_parameter)
- return target;
- }
- size_t Hardware_parameter::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Hardware_limit.Hardware_parameter)
- size_t total_size = 0;
- if (has_center_min_y()) {
- // required float center_min_y = 2;
- total_size += 1 + 4;
- }
- if (has_center_max_y()) {
- // required float center_max_y = 3;
- total_size += 1 + 4;
- }
- if (has_center_min_x()) {
- // required float center_min_x = 4;
- total_size += 1 + 4;
- }
- if (has_center_max_x()) {
- // required float center_max_x = 5;
- total_size += 1 + 4;
- }
- if (has_corner_min_y()) {
- // required float corner_min_y = 6;
- total_size += 1 + 4;
- }
- if (has_corner_max_y()) {
- // required float corner_max_y = 7;
- total_size += 1 + 4;
- }
- if (has_height()) {
- // required float height = 9;
- total_size += 1 + 4;
- }
- return total_size;
- }
- size_t Hardware_parameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Hardware_limit.Hardware_parameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x0000007f) ^ 0x0000007f) == 0) { // All required fields are present.
- // required float center_min_y = 2;
- total_size += 1 + 4;
- // required float center_max_y = 3;
- total_size += 1 + 4;
- // required float center_min_x = 4;
- total_size += 1 + 4;
- // required float center_max_x = 5;
- total_size += 1 + 4;
- // required float corner_min_y = 6;
- total_size += 1 + 4;
- // required float corner_max_y = 7;
- total_size += 1 + 4;
- // required float height = 9;
- total_size += 1 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // repeated .Hardware_limit.Railing railing_parameter = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->railing_parameter_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->railing_parameter(static_cast<int>(i)));
- }
- }
- // repeated .Hardware_limit.Theta_range theta_range = 8;
- {
- unsigned int count = static_cast<unsigned int>(this->theta_range_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->theta_range(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Hardware_parameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Hardware_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- const Hardware_parameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Hardware_parameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Hardware_parameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Hardware_limit.Hardware_parameter)
- MergeFrom(*source);
- }
- }
- void Hardware_parameter::MergeFrom(const Hardware_parameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Hardware_limit.Hardware_parameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- railing_parameter_.MergeFrom(from.railing_parameter_);
- theta_range_.MergeFrom(from.theta_range_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 127u) {
- if (cached_has_bits & 0x00000001u) {
- center_min_y_ = from.center_min_y_;
- }
- if (cached_has_bits & 0x00000002u) {
- center_max_y_ = from.center_max_y_;
- }
- if (cached_has_bits & 0x00000004u) {
- center_min_x_ = from.center_min_x_;
- }
- if (cached_has_bits & 0x00000008u) {
- center_max_x_ = from.center_max_x_;
- }
- if (cached_has_bits & 0x00000010u) {
- corner_min_y_ = from.corner_min_y_;
- }
- if (cached_has_bits & 0x00000020u) {
- corner_max_y_ = from.corner_max_y_;
- }
- if (cached_has_bits & 0x00000040u) {
- height_ = from.height_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Hardware_parameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Hardware_limit.Hardware_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Hardware_parameter::CopyFrom(const Hardware_parameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Hardware_limit.Hardware_parameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Hardware_parameter::IsInitialized() const {
- if ((_has_bits_[0] & 0x0000007f) != 0x0000007f) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->railing_parameter())) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->theta_range())) return false;
- return true;
- }
- void Hardware_parameter::Swap(Hardware_parameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Hardware_parameter::InternalSwap(Hardware_parameter* other) {
- using std::swap;
- CastToBase(&railing_parameter_)->InternalSwap(CastToBase(&other->railing_parameter_));
- CastToBase(&theta_range_)->InternalSwap(CastToBase(&other->theta_range_));
- swap(center_min_y_, other->center_min_y_);
- swap(center_max_y_, other->center_max_y_);
- swap(center_min_x_, other->center_min_x_);
- swap(center_max_x_, other->center_max_x_);
- swap(corner_min_y_, other->corner_min_y_);
- swap(corner_max_y_, other->corner_max_y_);
- swap(height_, other->height_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Hardware_parameter::GetMetadata() const {
- protobuf_hardware_5flimit_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_hardware_5flimit_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Hardware_limit
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Railing* Arena::CreateMaybeMessage< ::Hardware_limit::Railing >(Arena* arena) {
- return Arena::CreateInternal< ::Hardware_limit::Railing >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Theta_range* Arena::CreateMaybeMessage< ::Hardware_limit::Theta_range >(Arena* arena) {
- return Arena::CreateInternal< ::Hardware_limit::Theta_range >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Hardware_limit::Hardware_parameter* Arena::CreateMaybeMessage< ::Hardware_limit::Hardware_parameter >(Arena* arena) {
- return Arena::CreateInternal< ::Hardware_limit::Hardware_parameter >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|