// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hardware_limit.proto

#include "hardware_limit.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_hardware_5flimit_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Railing_hardware_5flimit_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_hardware_5flimit_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Theta_range_hardware_5flimit_2eproto;
namespace Hardware_limit {
class RailingDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Railing> _instance;
} _Railing_default_instance_;
class Theta_rangeDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Theta_range> _instance;
} _Theta_range_default_instance_;
class Hardware_parameterDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Hardware_parameter> _instance;
} _Hardware_parameter_default_instance_;
}  // namespace Hardware_limit
static void InitDefaultsscc_info_Hardware_parameter_hardware_5flimit_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::Hardware_limit::_Hardware_parameter_default_instance_;
    new (ptr) ::Hardware_limit::Hardware_parameter();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Hardware_limit::Hardware_parameter::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Hardware_parameter_hardware_5flimit_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Hardware_parameter_hardware_5flimit_2eproto}, {
      &scc_info_Railing_hardware_5flimit_2eproto.base,
      &scc_info_Theta_range_hardware_5flimit_2eproto.base,}};

static void InitDefaultsscc_info_Railing_hardware_5flimit_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::Hardware_limit::_Railing_default_instance_;
    new (ptr) ::Hardware_limit::Railing();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Hardware_limit::Railing::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Railing_hardware_5flimit_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Railing_hardware_5flimit_2eproto}, {}};

static void InitDefaultsscc_info_Theta_range_hardware_5flimit_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::Hardware_limit::_Theta_range_default_instance_;
    new (ptr) ::Hardware_limit::Theta_range();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Hardware_limit::Theta_range::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Theta_range_hardware_5flimit_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Theta_range_hardware_5flimit_2eproto}, {}};

static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_hardware_5flimit_2eproto[3];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_hardware_5flimit_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_hardware_5flimit_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_hardware_5flimit_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, pa_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, pb_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, pc_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Railing, railing_width_),
  0,
  1,
  2,
  3,
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Theta_range, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Theta_range, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Theta_range, min_theta_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Theta_range, max_theta_),
  0,
  1,
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, railing_parameter_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_y_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_y_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_min_x_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, center_max_x_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_min_y_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, corner_max_y_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, theta_range_),
  PROTOBUF_FIELD_OFFSET(::Hardware_limit::Hardware_parameter, height_),
  ~0u,
  0,
  1,
  2,
  3,
  4,
  5,
  ~0u,
  6,
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_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 ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Hardware_limit::_Railing_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Hardware_limit::_Theta_range_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Hardware_limit::_Hardware_parameter_default_instance_),
};

const char descriptor_table_protodef_hardware_5flimit_2eproto[] PROTOBUF_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"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_hardware_5flimit_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_hardware_5flimit_2eproto_sccs[3] = {
  &scc_info_Hardware_parameter_hardware_5flimit_2eproto.base,
  &scc_info_Railing_hardware_5flimit_2eproto.base,
  &scc_info_Theta_range_hardware_5flimit_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_hardware_5flimit_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_hardware_5flimit_2eproto = {
  false, false, descriptor_table_protodef_hardware_5flimit_2eproto, "hardware_limit.proto", 437,
  &descriptor_table_hardware_5flimit_2eproto_once, descriptor_table_hardware_5flimit_2eproto_sccs, descriptor_table_hardware_5flimit_2eproto_deps, 3, 0,
  schemas, file_default_instances, TableStruct_hardware_5flimit_2eproto::offsets,
  file_level_metadata_hardware_5flimit_2eproto, 3, file_level_enum_descriptors_hardware_5flimit_2eproto, file_level_service_descriptors_hardware_5flimit_2eproto,
};

// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_hardware_5flimit_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_hardware_5flimit_2eproto)), true);
namespace Hardware_limit {

// ===================================================================

void Railing::InitAsDefaultInstance() {
}
class Railing::_Internal {
 public:
  using HasBits = decltype(std::declval<Railing>()._has_bits_);
  static void set_has_pa(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_pb(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_pc(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_railing_width(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
  }
};

Railing::Railing(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:Hardware_limit.Railing)
}
Railing::Railing(const Railing& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(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();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void Railing::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

void Railing::ArenaDtor(void* object) {
  Railing* _this = reinterpret_cast< Railing* >(object);
  (void)_this;
}
void Railing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void Railing::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const Railing& Railing::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Railing_hardware_5flimit_2eproto.base);
  return *internal_default_instance();
}


void Railing::Clear() {
// @@protoc_insertion_point(message_clear_start:Hardware_limit.Railing)
  ::PROTOBUF_NAMESPACE_ID::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 & 0x0000000fu) {
    ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Railing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required float pa = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
          _Internal::set_has_pa(&has_bits);
          pa_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float pb = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
          _Internal::set_has_pb(&has_bits);
          pb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float pc = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
          _Internal::set_has_pc(&has_bits);
          pc_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float railing_width = 4 [default = 0];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
          _Internal::set_has_railing_width(&has_bits);
          railing_width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* Railing::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Railing)
  ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_pa(), target);
  }

  // required float pb = 2;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_pb(), target);
  }

  // required float pc = 3;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_pc(), target);
  }

  // optional float railing_width = 4 [default = 0];
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_railing_width(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end: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 (_internal_has_pa()) {
    // required float pa = 1;
    total_size += 1 + 4;
  }

  if (_internal_has_pb()) {
    // required float pb = 2;
    total_size += 1 + 4;
  }

  if (_internal_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 (((_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();
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // optional float railing_width = 4 [default = 0];
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000008u) {
    total_size += 1 + 4;
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Railing::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Railing)
  GOOGLE_DCHECK_NE(&from, this);
  const Railing* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Railing>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Railing)
    ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    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 ::PROTOBUF_NAMESPACE_ID::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 (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

void Railing::InternalSwap(Railing* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Railing, railing_width_)
      + sizeof(Railing::railing_width_)
      - PROTOBUF_FIELD_OFFSET(Railing, pa_)>(
          reinterpret_cast<char*>(&pa_),
          reinterpret_cast<char*>(&other->pa_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Railing::GetMetadata() const {
  return GetMetadataStatic();
}


// ===================================================================

void Theta_range::InitAsDefaultInstance() {
}
class Theta_range::_Internal {
 public:
  using HasBits = decltype(std::declval<Theta_range>()._has_bits_);
  static void set_has_min_theta(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_max_theta(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
  }
};

Theta_range::Theta_range(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:Hardware_limit.Theta_range)
}
Theta_range::Theta_range(const Theta_range& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(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();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void Theta_range::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

void Theta_range::ArenaDtor(void* object) {
  Theta_range* _this = reinterpret_cast< Theta_range* >(object);
  (void)_this;
}
void Theta_range::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void Theta_range::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const Theta_range& Theta_range::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Theta_range_hardware_5flimit_2eproto.base);
  return *internal_default_instance();
}


void Theta_range::Clear() {
// @@protoc_insertion_point(message_clear_start:Hardware_limit.Theta_range)
  ::PROTOBUF_NAMESPACE_ID::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 & 0x00000003u) {
    ::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Theta_range::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required float min_theta = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
          _Internal::set_has_min_theta(&has_bits);
          min_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float max_theta = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
          _Internal::set_has_max_theta(&has_bits);
          max_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* Theta_range::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Theta_range)
  ::PROTOBUF_NAMESPACE_ID::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 = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_min_theta(), target);
  }

  // required float max_theta = 2;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_max_theta(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end: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 (_internal_has_min_theta()) {
    // required float min_theta = 1;
    total_size += 1 + 4;
  }

  if (_internal_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 (((_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();
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Theta_range::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Theta_range)
  GOOGLE_DCHECK_NE(&from, this);
  const Theta_range* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Theta_range>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Theta_range)
    ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    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 ::PROTOBUF_NAMESPACE_ID::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 (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

void Theta_range::InternalSwap(Theta_range* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Theta_range, max_theta_)
      + sizeof(Theta_range::max_theta_)
      - PROTOBUF_FIELD_OFFSET(Theta_range, min_theta_)>(
          reinterpret_cast<char*>(&min_theta_),
          reinterpret_cast<char*>(&other->min_theta_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Theta_range::GetMetadata() const {
  return GetMetadataStatic();
}


// ===================================================================

void Hardware_parameter::InitAsDefaultInstance() {
}
class Hardware_parameter::_Internal {
 public:
  using HasBits = decltype(std::declval<Hardware_parameter>()._has_bits_);
  static void set_has_center_min_y(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_center_max_y(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_center_min_x(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_center_max_x(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_corner_min_y(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_corner_max_y(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
  static void set_has_height(HasBits* has_bits) {
    (*has_bits)[0] |= 64u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x0000007f) ^ 0x0000007f) != 0;
  }
};

Hardware_parameter::Hardware_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  railing_parameter_(arena),
  theta_range_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:Hardware_limit.Hardware_parameter)
}
Hardware_parameter::Hardware_parameter(const Hardware_parameter& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_),
      railing_parameter_(from.railing_parameter_),
      theta_range_(from.theta_range_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&center_min_y_, &from.center_min_y_,
    static_cast<size_t>(reinterpret_cast<char*>(&height_) -
    reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
  // @@protoc_insertion_point(copy_constructor:Hardware_limit.Hardware_parameter)
}

void Hardware_parameter::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Hardware_parameter_hardware_5flimit_2eproto.base);
  ::memset(&center_min_y_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&height_) -
      reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
}

Hardware_parameter::~Hardware_parameter() {
  // @@protoc_insertion_point(destructor:Hardware_limit.Hardware_parameter)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void Hardware_parameter::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

void Hardware_parameter::ArenaDtor(void* object) {
  Hardware_parameter* _this = reinterpret_cast< Hardware_parameter* >(object);
  (void)_this;
}
void Hardware_parameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void Hardware_parameter::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const Hardware_parameter& Hardware_parameter::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Hardware_parameter_hardware_5flimit_2eproto.base);
  return *internal_default_instance();
}


void Hardware_parameter::Clear() {
// @@protoc_insertion_point(message_clear_start:Hardware_limit.Hardware_parameter)
  ::PROTOBUF_NAMESPACE_ID::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 & 0x0000007fu) {
    ::memset(&center_min_y_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&height_) -
        reinterpret_cast<char*>(&center_min_y_)) + sizeof(height_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Hardware_parameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // repeated .Hardware_limit.Railing railing_parameter = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_railing_parameter(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else goto handle_unusual;
        continue;
      // required float center_min_y = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
          _Internal::set_has_center_min_y(&has_bits);
          center_min_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float center_max_y = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
          _Internal::set_has_center_max_y(&has_bits);
          center_max_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float center_min_x = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
          _Internal::set_has_center_min_x(&has_bits);
          center_min_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float center_max_x = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
          _Internal::set_has_center_max_x(&has_bits);
          center_max_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float corner_min_y = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
          _Internal::set_has_corner_min_y(&has_bits);
          corner_min_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float corner_max_y = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
          _Internal::set_has_corner_max_y(&has_bits);
          corner_max_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // repeated .Hardware_limit.Theta_range theta_range = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_theta_range(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
        } else goto handle_unusual;
        continue;
      // required float height = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
          _Internal::set_has_height(&has_bits);
          height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* Hardware_parameter::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Hardware_limit.Hardware_parameter)
  ::PROTOBUF_NAMESPACE_ID::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->_internal_railing_parameter_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_railing_parameter(i), target, stream);
  }

  cached_has_bits = _has_bits_[0];
  // required float center_min_y = 2;
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_center_min_y(), target);
  }

  // required float center_max_y = 3;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_center_max_y(), target);
  }

  // required float center_min_x = 4;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_center_min_x(), target);
  }

  // required float center_max_x = 5;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_center_max_x(), target);
  }

  // required float corner_min_y = 6;
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_corner_min_y(), target);
  }

  // required float corner_max_y = 7;
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_corner_max_y(), target);
  }

  // repeated .Hardware_limit.Theta_range theta_range = 8;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_theta_range_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(8, this->_internal_theta_range(i), target, stream);
  }

  // required float height = 9;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(9, this->_internal_height(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end: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 (_internal_has_center_min_y()) {
    // required float center_min_y = 2;
    total_size += 1 + 4;
  }

  if (_internal_has_center_max_y()) {
    // required float center_max_y = 3;
    total_size += 1 + 4;
  }

  if (_internal_has_center_min_x()) {
    // required float center_min_x = 4;
    total_size += 1 + 4;
  }

  if (_internal_has_center_max_x()) {
    // required float center_max_x = 5;
    total_size += 1 + 4;
  }

  if (_internal_has_corner_min_y()) {
    // required float corner_min_y = 6;
    total_size += 1 + 4;
  }

  if (_internal_has_corner_max_y()) {
    // required float corner_max_y = 7;
    total_size += 1 + 4;
  }

  if (_internal_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 (((_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();
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .Hardware_limit.Railing railing_parameter = 1;
  total_size += 1UL * this->_internal_railing_parameter_size();
  for (const auto& msg : this->railing_parameter_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .Hardware_limit.Theta_range theta_range = 8;
  total_size += 1UL * this->_internal_theta_range_size();
  for (const auto& msg : this->theta_range_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Hardware_parameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Hardware_limit.Hardware_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  const Hardware_parameter* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Hardware_parameter>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Hardware_limit.Hardware_parameter)
    ::PROTOBUF_NAMESPACE_ID::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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::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 & 0x0000007fu) {
    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 ::PROTOBUF_NAMESPACE_ID::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 (_Internal::MissingRequiredFields(_has_bits_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(railing_parameter_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(theta_range_)) return false;
  return true;
}

void Hardware_parameter::InternalSwap(Hardware_parameter* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  railing_parameter_.InternalSwap(&other->railing_parameter_);
  theta_range_.InternalSwap(&other->theta_range_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Hardware_parameter, height_)
      + sizeof(Hardware_parameter::height_)
      - PROTOBUF_FIELD_OFFSET(Hardware_parameter, center_min_y_)>(
          reinterpret_cast<char*>(&center_min_y_),
          reinterpret_cast<char*>(&other->center_min_y_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Hardware_parameter::GetMetadata() const {
  return GetMetadataStatic();
}


// @@protoc_insertion_point(namespace_scope)
}  // namespace Hardware_limit
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::Hardware_limit::Railing* Arena::CreateMaybeMessage< ::Hardware_limit::Railing >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Hardware_limit::Railing >(arena);
}
template<> PROTOBUF_NOINLINE ::Hardware_limit::Theta_range* Arena::CreateMaybeMessage< ::Hardware_limit::Theta_range >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Hardware_limit::Theta_range >(arena);
}
template<> PROTOBUF_NOINLINE ::Hardware_limit::Hardware_parameter* Arena::CreateMaybeMessage< ::Hardware_limit::Hardware_parameter >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Hardware_limit::Hardware_parameter >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
