123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479 |
- // 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/stubs/once.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 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 {
- void InitDefaultsRailingImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Hardware_limit::_Railing_default_instance_;
- new (ptr) ::Hardware_limit::Railing();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Railing::InitAsDefaultInstance();
- }
- void InitDefaultsRailing() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRailingImpl);
- }
- void InitDefaultsTheta_rangeImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Hardware_limit::_Theta_range_default_instance_;
- new (ptr) ::Hardware_limit::Theta_range();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Theta_range::InitAsDefaultInstance();
- }
- void InitDefaultsTheta_range() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTheta_rangeImpl);
- }
- void InitDefaultsHardware_parameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_hardware_5flimit_2eproto::InitDefaultsRailing();
- protobuf_hardware_5flimit_2eproto::InitDefaultsTheta_range();
- {
- void* ptr = &::Hardware_limit::_Hardware_parameter_default_instance_;
- new (ptr) ::Hardware_limit::Hardware_parameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Hardware_limit::Hardware_parameter::InitAsDefaultInstance();
- }
- void InitDefaultsHardware_parameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHardware_parameterImpl);
- }
- ::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();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "hardware_limit.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\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_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_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) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsRailing();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Hardware_limit.Railing)
- }
- Railing::Railing(const Railing& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _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() {
- _cached_size_ = 0;
- ::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 {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- 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() {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsRailing();
- return *internal_default_instance();
- }
- Railing* Railing::New(::google::protobuf::Arena* arena) const {
- Railing* n = new Railing;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- 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);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- 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_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::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) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsTheta_range();
- }
- 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_),
- _cached_size_(0) {
- _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() {
- _cached_size_ = 0;
- ::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 {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- 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() {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsTheta_range();
- return *internal_default_instance();
- }
- Theta_range* Theta_range::New(::google::protobuf::Arena* arena) const {
- Theta_range* n = new Theta_range;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- 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);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- 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_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::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) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsHardware_parameter();
- }
- 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_),
- _cached_size_(0),
- 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() {
- _cached_size_ = 0;
- ::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 {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- 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() {
- ::protobuf_hardware_5flimit_2eproto::InitDefaultsHardware_parameter();
- return *internal_default_instance();
- }
- Hardware_parameter* Hardware_parameter::New(::google::protobuf::Arena* arena) const {
- Hardware_parameter* n = new Hardware_parameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- 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);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- 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;
- railing_parameter_.InternalSwap(&other->railing_parameter_);
- theta_range_.InternalSwap(&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_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::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
- // @@protoc_insertion_point(global_scope)
|