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

#include "Terminor_parameter.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 Terminal {
class Area3dDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Area3d>
      _instance;
} _Area3d_default_instance_;
class Laser_parameterDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Laser_parameter>
      _instance;
} _Laser_parameter_default_instance_;
class Terminor_parameterDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Terminor_parameter>
      _instance;
} _Terminor_parameter_default_instance_;
class Terminor_parameter_allDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<Terminor_parameter_all>
      _instance;
} _Terminor_parameter_all_default_instance_;
}  // namespace Terminal
namespace protobuf_Terminor_5fparameter_2eproto {
void InitDefaultsArea3dImpl() {
  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 = &::Terminal::_Area3d_default_instance_;
    new (ptr) ::Terminal::Area3d();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Terminal::Area3d::InitAsDefaultInstance();
}

void InitDefaultsArea3d() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArea3dImpl);
}

void InitDefaultsLaser_parameterImpl() {
  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 = &::Terminal::_Laser_parameter_default_instance_;
    new (ptr) ::Terminal::Laser_parameter();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Terminal::Laser_parameter::InitAsDefaultInstance();
}

void InitDefaultsLaser_parameter() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaser_parameterImpl);
}

void InitDefaultsTerminor_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_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  {
    void* ptr = &::Terminal::_Terminor_parameter_default_instance_;
    new (ptr) ::Terminal::Terminor_parameter();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Terminal::Terminor_parameter::InitAsDefaultInstance();
}

void InitDefaultsTerminor_parameter() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminor_parameterImpl);
}

void InitDefaultsTerminor_parameter_allImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  {
    void* ptr = &::Terminal::_Terminor_parameter_all_default_instance_;
    new (ptr) ::Terminal::Terminor_parameter_all();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::Terminal::Terminor_parameter_all::InitAsDefaultInstance();
}

void InitDefaultsTerminor_parameter_all() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminor_parameter_allImpl);
}

::google::protobuf::Metadata file_level_metadata[4];

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_x_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_x_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_y_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_y_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, min_z_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Area3d, max_z_),
  0,
  1,
  2,
  3,
  4,
  5,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Laser_parameter, frame_count_),
  0,
  1,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, area_3d_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter, laser_parameter_),
  0,
  1,
  ~0u,
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, _has_bits_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, terminor_parameters_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminor_parameter_all, save_root_path_),
  ~0u,
  0,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 11, sizeof(::Terminal::Area3d)},
  { 17, 24, sizeof(::Terminal::Laser_parameter)},
  { 26, 34, sizeof(::Terminal::Terminor_parameter)},
  { 37, 44, sizeof(::Terminal::Terminor_parameter_all)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Area3d_default_instance_),
  reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Laser_parameter_default_instance_),
  reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminor_parameter_default_instance_),
  reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminor_parameter_all_default_instance_),
};

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "Terminor_parameter.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, 4);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n\030Terminor_parameter.proto\022\010Terminal\"b\n\006"
      "Area3d\022\r\n\005min_x\030\001 \002(\002\022\r\n\005max_x\030\002 \002(\002\022\r\n\005"
      "min_y\030\003 \002(\002\022\r\n\005max_y\030\004 \002(\002\022\r\n\005min_z\030\005 \002("
      "\002\022\r\n\005max_z\030\006 \002(\002\"2\n\017Laser_parameter\022\n\n\002i"
      "d\030\001 \002(\003\022\023\n\013frame_count\030\002 \001(\003\"w\n\022Terminor"
      "_parameter\022!\n\007area_3d\030\001 \002(\0132\020.Terminal.A"
      "rea3d\022\n\n\002id\030\002 \002(\003\0222\n\017laser_parameter\030\003 \003"
      "(\0132\031.Terminal.Laser_parameter\"k\n\026Termino"
      "r_parameter_all\0229\n\023terminor_parameters\030\001"
      " \003(\0132\034.Terminal.Terminor_parameter\022\026\n\016sa"
      "ve_root_path\030\002 \002(\t"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 418);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "Terminor_parameter.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_Terminor_5fparameter_2eproto
namespace Terminal {

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

void Area3d::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Area3d::kMinXFieldNumber;
const int Area3d::kMaxXFieldNumber;
const int Area3d::kMinYFieldNumber;
const int Area3d::kMaxYFieldNumber;
const int Area3d::kMinZFieldNumber;
const int Area3d::kMaxZFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Area3d::Area3d()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Terminal.Area3d)
}
Area3d::Area3d(const Area3d& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::memcpy(&min_x_, &from.min_x_,
    static_cast<size_t>(reinterpret_cast<char*>(&max_z_) -
    reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
  // @@protoc_insertion_point(copy_constructor:Terminal.Area3d)
}

void Area3d::SharedCtor() {
  _cached_size_ = 0;
  ::memset(&min_x_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&max_z_) -
      reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
}

Area3d::~Area3d() {
  // @@protoc_insertion_point(destructor:Terminal.Area3d)
  SharedDtor();
}

void Area3d::SharedDtor() {
}

void Area3d::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Area3d::descriptor() {
  ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Area3d& Area3d::default_instance() {
  ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsArea3d();
  return *internal_default_instance();
}

Area3d* Area3d::New(::google::protobuf::Arena* arena) const {
  Area3d* n = new Area3d;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void Area3d::Clear() {
// @@protoc_insertion_point(message_clear_start:Terminal.Area3d)
  ::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 & 63u) {
    ::memset(&min_x_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&max_z_) -
        reinterpret_cast<char*>(&min_x_)) + sizeof(max_z_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Area3d::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:Terminal.Area3d)
  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_x = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
          set_has_min_x();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &min_x_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required float max_x = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
          set_has_max_x();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &max_x_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required float min_y = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
          set_has_min_y();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &min_y_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required float max_y = 4;
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
          set_has_max_y();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &max_y_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required float min_z = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
          set_has_min_z();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &min_z_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required float max_z = 6;
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
          set_has_max_z();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
                 input, &max_z_)));
        } 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:Terminal.Area3d)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Terminal.Area3d)
  return false;
#undef DO_
}

void Area3d::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Terminal.Area3d)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required float min_x = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_x(), output);
  }

  // required float max_x = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_x(), output);
  }

  // required float min_y = 3;
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->min_y(), output);
  }

  // required float max_y = 4;
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->max_y(), output);
  }

  // required float min_z = 5;
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->min_z(), output);
  }

  // required float max_z = 6;
  if (cached_has_bits & 0x00000020u) {
    ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->max_z(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:Terminal.Area3d)
}

::google::protobuf::uint8* Area3d::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Terminal.Area3d)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required float min_x = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_x(), target);
  }

  // required float max_x = 2;
  if (cached_has_bits & 0x00000002u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_x(), target);
  }

  // required float min_y = 3;
  if (cached_has_bits & 0x00000004u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->min_y(), target);
  }

  // required float max_y = 4;
  if (cached_has_bits & 0x00000008u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->max_y(), target);
  }

  // required float min_z = 5;
  if (cached_has_bits & 0x00000010u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->min_z(), target);
  }

  // required float max_z = 6;
  if (cached_has_bits & 0x00000020u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->max_z(), 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:Terminal.Area3d)
  return target;
}

size_t Area3d::RequiredFieldsByteSizeFallback() const {
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.Area3d)
  size_t total_size = 0;

  if (has_min_x()) {
    // required float min_x = 1;
    total_size += 1 + 4;
  }

  if (has_max_x()) {
    // required float max_x = 2;
    total_size += 1 + 4;
  }

  if (has_min_y()) {
    // required float min_y = 3;
    total_size += 1 + 4;
  }

  if (has_max_y()) {
    // required float max_y = 4;
    total_size += 1 + 4;
  }

  if (has_min_z()) {
    // required float min_z = 5;
    total_size += 1 + 4;
  }

  if (has_max_z()) {
    // required float max_z = 6;
    total_size += 1 + 4;
  }

  return total_size;
}
size_t Area3d::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Terminal.Area3d)
  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] & 0x0000003f) ^ 0x0000003f) == 0) {  // All required fields are present.
    // required float min_x = 1;
    total_size += 1 + 4;

    // required float max_x = 2;
    total_size += 1 + 4;

    // required float min_y = 3;
    total_size += 1 + 4;

    // required float max_y = 4;
    total_size += 1 + 4;

    // required float min_z = 5;
    total_size += 1 + 4;

    // required float max_z = 6;
    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 Area3d::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Terminal.Area3d)
  GOOGLE_DCHECK_NE(&from, this);
  const Area3d* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Area3d>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Area3d)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Area3d)
    MergeFrom(*source);
  }
}

void Area3d::MergeFrom(const Area3d& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Area3d)
  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 & 63u) {
    if (cached_has_bits & 0x00000001u) {
      min_x_ = from.min_x_;
    }
    if (cached_has_bits & 0x00000002u) {
      max_x_ = from.max_x_;
    }
    if (cached_has_bits & 0x00000004u) {
      min_y_ = from.min_y_;
    }
    if (cached_has_bits & 0x00000008u) {
      max_y_ = from.max_y_;
    }
    if (cached_has_bits & 0x00000010u) {
      min_z_ = from.min_z_;
    }
    if (cached_has_bits & 0x00000020u) {
      max_z_ = from.max_z_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Area3d::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Terminal.Area3d)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Area3d::CopyFrom(const Area3d& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Area3d)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Area3d::IsInitialized() const {
  if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
  return true;
}

void Area3d::Swap(Area3d* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Area3d::InternalSwap(Area3d* other) {
  using std::swap;
  swap(min_x_, other->min_x_);
  swap(max_x_, other->max_x_);
  swap(min_y_, other->min_y_);
  swap(max_y_, other->max_y_);
  swap(min_z_, other->min_z_);
  swap(max_z_, other->max_z_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata Area3d::GetMetadata() const {
  protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
}


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

void Laser_parameter::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Laser_parameter::kIdFieldNumber;
const int Laser_parameter::kFrameCountFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Laser_parameter::Laser_parameter()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Terminal.Laser_parameter)
}
Laser_parameter::Laser_parameter(const Laser_parameter& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::memcpy(&id_, &from.id_,
    static_cast<size_t>(reinterpret_cast<char*>(&frame_count_) -
    reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
  // @@protoc_insertion_point(copy_constructor:Terminal.Laser_parameter)
}

void Laser_parameter::SharedCtor() {
  _cached_size_ = 0;
  ::memset(&id_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&frame_count_) -
      reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
}

Laser_parameter::~Laser_parameter() {
  // @@protoc_insertion_point(destructor:Terminal.Laser_parameter)
  SharedDtor();
}

void Laser_parameter::SharedDtor() {
}

void Laser_parameter::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Laser_parameter::descriptor() {
  ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Laser_parameter& Laser_parameter::default_instance() {
  ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsLaser_parameter();
  return *internal_default_instance();
}

Laser_parameter* Laser_parameter::New(::google::protobuf::Arena* arena) const {
  Laser_parameter* n = new Laser_parameter;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void Laser_parameter::Clear() {
// @@protoc_insertion_point(message_clear_start:Terminal.Laser_parameter)
  ::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(&id_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&frame_count_) -
        reinterpret_cast<char*>(&id_)) + sizeof(frame_count_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Laser_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:Terminal.Laser_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)) {
      // required int64 id = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
          set_has_id();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &id_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional int64 frame_count = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
          set_has_frame_count();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &frame_count_)));
        } 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:Terminal.Laser_parameter)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Terminal.Laser_parameter)
  return false;
#undef DO_
}

void Laser_parameter::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Terminal.Laser_parameter)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required int64 id = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
  }

  // optional int64 frame_count = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->frame_count(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:Terminal.Laser_parameter)
}

::google::protobuf::uint8* Laser_parameter::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Terminal.Laser_parameter)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required int64 id = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
  }

  // optional int64 frame_count = 2;
  if (cached_has_bits & 0x00000002u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->frame_count(), 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:Terminal.Laser_parameter)
  return target;
}

size_t Laser_parameter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Terminal.Laser_parameter)
  size_t total_size = 0;

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  // required int64 id = 1;
  if (has_id()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->id());
  }
  // optional int64 frame_count = 2;
  if (has_frame_count()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->frame_count());
  }

  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 Laser_parameter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Terminal.Laser_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  const Laser_parameter* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Laser_parameter>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Laser_parameter)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Laser_parameter)
    MergeFrom(*source);
  }
}

void Laser_parameter::MergeFrom(const Laser_parameter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Laser_parameter)
  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) {
      id_ = from.id_;
    }
    if (cached_has_bits & 0x00000002u) {
      frame_count_ = from.frame_count_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Laser_parameter::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Terminal.Laser_parameter)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Laser_parameter::CopyFrom(const Laser_parameter& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Laser_parameter)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Laser_parameter::IsInitialized() const {
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  return true;
}

void Laser_parameter::Swap(Laser_parameter* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Laser_parameter::InternalSwap(Laser_parameter* other) {
  using std::swap;
  swap(id_, other->id_);
  swap(frame_count_, other->frame_count_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata Laser_parameter::GetMetadata() const {
  protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
}


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

void Terminor_parameter::InitAsDefaultInstance() {
  ::Terminal::_Terminor_parameter_default_instance_._instance.get_mutable()->area_3d_ = const_cast< ::Terminal::Area3d*>(
      ::Terminal::Area3d::internal_default_instance());
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Terminor_parameter::kArea3DFieldNumber;
const int Terminor_parameter::kIdFieldNumber;
const int Terminor_parameter::kLaserParameterFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Terminor_parameter::Terminor_parameter()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Terminal.Terminor_parameter)
}
Terminor_parameter::Terminor_parameter(const Terminor_parameter& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0),
      laser_parameter_(from.laser_parameter_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  if (from.has_area_3d()) {
    area_3d_ = new ::Terminal::Area3d(*from.area_3d_);
  } else {
    area_3d_ = NULL;
  }
  id_ = from.id_;
  // @@protoc_insertion_point(copy_constructor:Terminal.Terminor_parameter)
}

void Terminor_parameter::SharedCtor() {
  _cached_size_ = 0;
  ::memset(&area_3d_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&id_) -
      reinterpret_cast<char*>(&area_3d_)) + sizeof(id_));
}

Terminor_parameter::~Terminor_parameter() {
  // @@protoc_insertion_point(destructor:Terminal.Terminor_parameter)
  SharedDtor();
}

void Terminor_parameter::SharedDtor() {
  if (this != internal_default_instance()) delete area_3d_;
}

void Terminor_parameter::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Terminor_parameter::descriptor() {
  ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Terminor_parameter& Terminor_parameter::default_instance() {
  ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter();
  return *internal_default_instance();
}

Terminor_parameter* Terminor_parameter::New(::google::protobuf::Arena* arena) const {
  Terminor_parameter* n = new Terminor_parameter;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void Terminor_parameter::Clear() {
// @@protoc_insertion_point(message_clear_start:Terminal.Terminor_parameter)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  laser_parameter_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(area_3d_ != NULL);
    area_3d_->Clear();
  }
  id_ = GOOGLE_LONGLONG(0);
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Terminor_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:Terminal.Terminor_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)) {
      // required .Terminal.Area3d area_3d = 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, mutable_area_3d()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required int64 id = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
          set_has_id();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &id_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated .Terminal.Laser_parameter laser_parameter = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_laser_parameter()));
        } 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:Terminal.Terminor_parameter)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Terminal.Terminor_parameter)
  return false;
#undef DO_
}

void Terminor_parameter::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Terminal.Terminor_parameter)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required .Terminal.Area3d area_3d = 1;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, *this->area_3d_, output);
  }

  // required int64 id = 2;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->id(), output);
  }

  // repeated .Terminal.Laser_parameter laser_parameter = 3;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->laser_parameter_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      3, this->laser_parameter(static_cast<int>(i)), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:Terminal.Terminor_parameter)
}

::google::protobuf::uint8* Terminor_parameter::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminor_parameter)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required .Terminal.Area3d area_3d = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        1, *this->area_3d_, deterministic, target);
  }

  // required int64 id = 2;
  if (cached_has_bits & 0x00000002u) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->id(), target);
  }

  // repeated .Terminal.Laser_parameter laser_parameter = 3;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->laser_parameter_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        3, this->laser_parameter(static_cast<int>(i)), deterministic, 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:Terminal.Terminor_parameter)
  return target;
}

size_t Terminor_parameter::RequiredFieldsByteSizeFallback() const {
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.Terminor_parameter)
  size_t total_size = 0;

  if (has_area_3d()) {
    // required .Terminal.Area3d area_3d = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSize(
        *this->area_3d_);
  }

  if (has_id()) {
    // required int64 id = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->id());
  }

  return total_size;
}
size_t Terminor_parameter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Terminal.Terminor_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] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
    // required .Terminal.Area3d area_3d = 1;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSize(
        *this->area_3d_);

    // required int64 id = 2;
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->id());

  } else {
    total_size += RequiredFieldsByteSizeFallback();
  }
  // repeated .Terminal.Laser_parameter laser_parameter = 3;
  {
    unsigned int count = static_cast<unsigned int>(this->laser_parameter_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->laser_parameter(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 Terminor_parameter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminor_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  const Terminor_parameter* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Terminor_parameter>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminor_parameter)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminor_parameter)
    MergeFrom(*source);
  }
}

void Terminor_parameter::MergeFrom(const Terminor_parameter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminor_parameter)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  laser_parameter_.MergeFrom(from.laser_parameter_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 3u) {
    if (cached_has_bits & 0x00000001u) {
      mutable_area_3d()->::Terminal::Area3d::MergeFrom(from.area_3d());
    }
    if (cached_has_bits & 0x00000002u) {
      id_ = from.id_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Terminor_parameter::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminor_parameter)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Terminor_parameter::CopyFrom(const Terminor_parameter& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminor_parameter)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Terminor_parameter::IsInitialized() const {
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  if (!::google::protobuf::internal::AllAreInitialized(this->laser_parameter())) return false;
  if (has_area_3d()) {
    if (!this->area_3d_->IsInitialized()) return false;
  }
  return true;
}

void Terminor_parameter::Swap(Terminor_parameter* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Terminor_parameter::InternalSwap(Terminor_parameter* other) {
  using std::swap;
  laser_parameter_.InternalSwap(&other->laser_parameter_);
  swap(area_3d_, other->area_3d_);
  swap(id_, other->id_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata Terminor_parameter::GetMetadata() const {
  protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
}


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

void Terminor_parameter_all::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Terminor_parameter_all::kTerminorParametersFieldNumber;
const int Terminor_parameter_all::kSaveRootPathFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Terminor_parameter_all::Terminor_parameter_all()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter_all();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Terminal.Terminor_parameter_all)
}
Terminor_parameter_all::Terminor_parameter_all(const Terminor_parameter_all& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0),
      terminor_parameters_(from.terminor_parameters_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  save_root_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_save_root_path()) {
    save_root_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.save_root_path_);
  }
  // @@protoc_insertion_point(copy_constructor:Terminal.Terminor_parameter_all)
}

void Terminor_parameter_all::SharedCtor() {
  _cached_size_ = 0;
  save_root_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

Terminor_parameter_all::~Terminor_parameter_all() {
  // @@protoc_insertion_point(destructor:Terminal.Terminor_parameter_all)
  SharedDtor();
}

void Terminor_parameter_all::SharedDtor() {
  save_root_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void Terminor_parameter_all::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Terminor_parameter_all::descriptor() {
  ::protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const Terminor_parameter_all& Terminor_parameter_all::default_instance() {
  ::protobuf_Terminor_5fparameter_2eproto::InitDefaultsTerminor_parameter_all();
  return *internal_default_instance();
}

Terminor_parameter_all* Terminor_parameter_all::New(::google::protobuf::Arena* arena) const {
  Terminor_parameter_all* n = new Terminor_parameter_all;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void Terminor_parameter_all::Clear() {
// @@protoc_insertion_point(message_clear_start:Terminal.Terminor_parameter_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  terminor_parameters_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(!save_root_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
    (*save_root_path_.UnsafeRawStringPointer())->clear();
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Terminor_parameter_all::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:Terminal.Terminor_parameter_all)
  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 .Terminal.Terminor_parameter terminor_parameters = 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_terminor_parameters()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // required string save_root_path = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_save_root_path()));
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
            this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
            ::google::protobuf::internal::WireFormat::PARSE,
            "Terminal.Terminor_parameter_all.save_root_path");
        } 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:Terminal.Terminor_parameter_all)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Terminal.Terminor_parameter_all)
  return false;
#undef DO_
}

void Terminor_parameter_all::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Terminal.Terminor_parameter_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->terminor_parameters_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, this->terminor_parameters(static_cast<int>(i)), output);
  }

  cached_has_bits = _has_bits_[0];
  // required string save_root_path = 2;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "Terminal.Terminor_parameter_all.save_root_path");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->save_root_path(), output);
  }

  if (_internal_metadata_.have_unknown_fields()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        _internal_metadata_.unknown_fields(), output);
  }
  // @@protoc_insertion_point(serialize_end:Terminal.Terminor_parameter_all)
}

::google::protobuf::uint8* Terminor_parameter_all::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminor_parameter_all)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->terminor_parameters_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        1, this->terminor_parameters(static_cast<int>(i)), deterministic, target);
  }

  cached_has_bits = _has_bits_[0];
  // required string save_root_path = 2;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
      this->save_root_path().data(), static_cast<int>(this->save_root_path().length()),
      ::google::protobuf::internal::WireFormat::SERIALIZE,
      "Terminal.Terminor_parameter_all.save_root_path");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->save_root_path(), 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:Terminal.Terminor_parameter_all)
  return target;
}

size_t Terminor_parameter_all::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Terminal.Terminor_parameter_all)
  size_t total_size = 0;

  if (_internal_metadata_.have_unknown_fields()) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        _internal_metadata_.unknown_fields());
  }
  // required string save_root_path = 2;
  if (has_save_root_path()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->save_root_path());
  }
  // repeated .Terminal.Terminor_parameter terminor_parameters = 1;
  {
    unsigned int count = static_cast<unsigned int>(this->terminor_parameters_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->terminor_parameters(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 Terminor_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminor_parameter_all)
  GOOGLE_DCHECK_NE(&from, this);
  const Terminor_parameter_all* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const Terminor_parameter_all>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminor_parameter_all)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminor_parameter_all)
    MergeFrom(*source);
  }
}

void Terminor_parameter_all::MergeFrom(const Terminor_parameter_all& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminor_parameter_all)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  terminor_parameters_.MergeFrom(from.terminor_parameters_);
  if (from.has_save_root_path()) {
    set_has_save_root_path();
    save_root_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.save_root_path_);
  }
}

void Terminor_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminor_parameter_all)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void Terminor_parameter_all::CopyFrom(const Terminor_parameter_all& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminor_parameter_all)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Terminor_parameter_all::IsInitialized() const {
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
  if (!::google::protobuf::internal::AllAreInitialized(this->terminor_parameters())) return false;
  return true;
}

void Terminor_parameter_all::Swap(Terminor_parameter_all* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Terminor_parameter_all::InternalSwap(Terminor_parameter_all* other) {
  using std::swap;
  terminor_parameters_.InternalSwap(&other->terminor_parameters_);
  save_root_path_.Swap(&other->save_root_path_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata Terminor_parameter_all::GetMetadata() const {
  protobuf_Terminor_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_Terminor_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
}


// @@protoc_insertion_point(namespace_scope)
}  // namespace Terminal

// @@protoc_insertion_point(global_scope)
