// 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(&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() {
  _cached_size_ = 0;
  ::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();
}

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(&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();
}

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, &center_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, &center_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, &center_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, &center_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)
