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

#include "velodyne_config.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_velodyne_5fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CalibParameter_velodyne_5fconfig_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_velodyne_5fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Region_velodyne_5fconfig_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_velodyne_5fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_lidarExtrinsic_velodyne_5fconfig_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_velodyne_5fconfig_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_velodyneLidarParams_velodyne_5fconfig_2eproto;
namespace velodyne {
class velodyneManagerParamsDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<velodyneManagerParams> _instance;
} _velodyneManagerParams_default_instance_;
class velodyneLidarParamsDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<velodyneLidarParams> _instance;
} _velodyneLidarParams_default_instance_;
class CalibParameterDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CalibParameter> _instance;
} _CalibParameter_default_instance_;
class lidarExtrinsicDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<lidarExtrinsic> _instance;
} _lidarExtrinsic_default_instance_;
class RegionDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Region> _instance;
} _Region_default_instance_;
}  // namespace velodyne
static void InitDefaultsscc_info_CalibParameter_velodyne_5fconfig_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::velodyne::_CalibParameter_default_instance_;
    new (ptr) ::velodyne::CalibParameter();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::velodyne::CalibParameter::InitAsDefaultInstance();
}

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

static void InitDefaultsscc_info_Region_velodyne_5fconfig_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::velodyne::_Region_default_instance_;
    new (ptr) ::velodyne::Region();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::velodyne::Region::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Region_velodyne_5fconfig_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Region_velodyne_5fconfig_2eproto}, {
      &scc_info_lidarExtrinsic_velodyne_5fconfig_2eproto.base,}};

static void InitDefaultsscc_info_lidarExtrinsic_velodyne_5fconfig_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::velodyne::_lidarExtrinsic_default_instance_;
    new (ptr) ::velodyne::lidarExtrinsic();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::velodyne::lidarExtrinsic::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_lidarExtrinsic_velodyne_5fconfig_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_lidarExtrinsic_velodyne_5fconfig_2eproto}, {
      &scc_info_CalibParameter_velodyne_5fconfig_2eproto.base,}};

static void InitDefaultsscc_info_velodyneLidarParams_velodyne_5fconfig_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.DefaultConstruct();
  *::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable() = std::string("VLP16", 5);
  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyString(
      ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable());
  {
    void* ptr = &::velodyne::_velodyneLidarParams_default_instance_;
    new (ptr) ::velodyne::velodyneLidarParams();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::velodyne::velodyneLidarParams::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_velodyneLidarParams_velodyne_5fconfig_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_velodyneLidarParams_velodyne_5fconfig_2eproto}, {
      &scc_info_CalibParameter_velodyne_5fconfig_2eproto.base,}};

static void InitDefaultsscc_info_velodyneManagerParams_velodyne_5fconfig_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::velodyne::_velodyneManagerParams_default_instance_;
    new (ptr) ::velodyne::velodyneManagerParams();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::velodyne::velodyneManagerParams::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_velodyneManagerParams_velodyne_5fconfig_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_velodyneManagerParams_velodyne_5fconfig_2eproto}, {
      &scc_info_velodyneLidarParams_velodyne_5fconfig_2eproto.base,
      &scc_info_Region_velodyne_5fconfig_2eproto.base,}};

static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_velodyne_5fconfig_2eproto[5];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_velodyne_5fconfig_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_velodyne_5fconfig_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_velodyne_5fconfig_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, velodyne_lidars_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, region_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_data_path_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_log_path_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, left_model_path_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, right_model_path_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneManagerParams, distribution_mode_),
  ~0u,
  ~0u,
  0,
  1,
  2,
  3,
  4,
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, ip_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, port_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, model_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, calibrationfile_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, lidar_id_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_range_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_range_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_angle_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_angle_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, rpm_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, calib_),
  PROTOBUF_FIELD_OFFSET(::velodyne::velodyneLidarParams, difop_),
  0,
  6,
  1,
  2,
  4,
  7,
  8,
  5,
  9,
  10,
  3,
  11,
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, r_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, p_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, y_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, cx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, cy_),
  PROTOBUF_FIELD_OFFSET(::velodyne::CalibParameter, cz_),
  0,
  1,
  2,
  3,
  4,
  5,
  PROTOBUF_FIELD_OFFSET(::velodyne::lidarExtrinsic, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::velodyne::lidarExtrinsic, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::velodyne::lidarExtrinsic, lidar_id_),
  PROTOBUF_FIELD_OFFSET(::velodyne::lidarExtrinsic, calib_),
  1,
  0,
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, minx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, maxx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, miny_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, maxy_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, minz_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, maxz_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, region_id_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, lidar_exts_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, turnplate_cx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, turnplate_cy_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, border_minx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, border_maxx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, plc_offsetx_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, plc_offsety_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, plc_offset_degree_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, plc_border_miny_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, plc_border_maxy_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, car_min_width_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, car_max_width_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, car_min_wheelbase_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, car_max_wheelbase_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, turnplate_angle_limit_anti_clockwise_),
  PROTOBUF_FIELD_OFFSET(::velodyne::Region, turnplate_angle_limit_clockwise_),
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  ~0u,
  7,
  8,
  9,
  10,
  11,
  12,
  13,
  14,
  15,
  16,
  17,
  18,
  19,
  20,
  21,
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 12, sizeof(::velodyne::velodyneManagerParams)},
  { 19, 36, sizeof(::velodyne::velodyneLidarParams)},
  { 48, 59, sizeof(::velodyne::CalibParameter)},
  { 65, 72, sizeof(::velodyne::lidarExtrinsic)},
  { 74, 102, sizeof(::velodyne::Region)},
};

static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::velodyne::_velodyneManagerParams_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::velodyne::_velodyneLidarParams_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::velodyne::_CalibParameter_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::velodyne::_lidarExtrinsic_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::velodyne::_Region_default_instance_),
};

const char descriptor_table_protodef_velodyne_5fconfig_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\025velodyne_config.proto\022\010velodyne\"\377\001\n\025ve"
  "lodyneManagerParams\0226\n\017velodyne_lidars\030\001"
  " \003(\0132\035.velodyne.velodyneLidarParams\022 \n\006r"
  "egion\030\002 \003(\0132\020.velodyne.Region\022\031\n\017fence_d"
  "ata_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001(\t"
  ":\000\022\031\n\017left_model_path\030\005 \001(\t:\000\022\032\n\020right_m"
  "odel_path\030\006 \001(\t:\000\022 \n\021distribution_mode\030\007"
  " \002(\010:\005false\"\253\002\n\023velodyneLidarParams\022\014\n\002i"
  "p\030\001 \002(\t:\000\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003"
  " \002(\t:\005VLP16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\023"
  "\n\010lidar_id\030\005 \002(\005:\0010\022\025\n\tmax_range\030\006 \001(\002:\002"
  "10\022\027\n\tmin_range\030\007 \001(\002:\0040.15\022\024\n\tmin_angle"
  "\030\010 \001(\005:\0010\022\026\n\tmax_angle\030\t \001(\005:\003360\022\020\n\003rpm"
  "\030\n \001(\005:\003600\022\'\n\005calib\030\013 \001(\0132\030.velodyne.Ca"
  "libParameter\022\023\n\005difop\030\014 \001(\005:\0047788\"g\n\016Cal"
  "ibParameter\022\014\n\001r\030\001 \001(\002:\0010\022\014\n\001p\030\002 \001(\002:\0010\022"
  "\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx\030\004 \001(\002:\0010\022\r\n\002cy\030\005 \001(\002"
  ":\0010\022\r\n\002cz\030\006 \001(\002:\0010\"K\n\016lidarExtrinsic\022\020\n\010"
  "lidar_id\030\001 \002(\005\022\'\n\005calib\030\002 \001(\0132\030.velodyne"
  ".CalibParameter\"\245\004\n\006Region\022\014\n\004minx\030\001 \002(\002"
  "\022\014\n\004maxx\030\002 \002(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002"
  "(\002\022\014\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion"
  "_id\030\007 \002(\005\022,\n\nlidar_exts\030\010 \003(\0132\030.velodyne"
  ".lidarExtrinsic\022\024\n\014turnplate_cx\030\t \002(\002\022\024\n"
  "\014turnplate_cy\030\n \002(\002\022\023\n\013border_minx\030\013 \002(\002"
  "\022\023\n\013border_maxx\030\014 \002(\002\022\023\n\013plc_offsetx\030\r \002"
  "(\002\022\023\n\013plc_offsety\030\016 \002(\002\022\031\n\021plc_offset_de"
  "gree\030\017 \002(\002\022\027\n\017plc_border_miny\030\020 \002(\002\022\027\n\017p"
  "lc_border_maxy\030\021 \002(\002\022\025\n\rcar_min_width\030\022 "
  "\002(\002\022\025\n\rcar_max_width\030\023 \002(\002\022\031\n\021car_min_wh"
  "eelbase\030\024 \002(\002\022\031\n\021car_max_wheelbase\030\025 \002(\002"
  "\022,\n$turnplate_angle_limit_anti_clockwise"
  "\030\026 \002(\002\022\'\n\037turnplate_angle_limit_clockwis"
  "e\030\027 \002(\002"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_velodyne_5fconfig_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_velodyne_5fconfig_2eproto_sccs[5] = {
  &scc_info_CalibParameter_velodyne_5fconfig_2eproto.base,
  &scc_info_Region_velodyne_5fconfig_2eproto.base,
  &scc_info_lidarExtrinsic_velodyne_5fconfig_2eproto.base,
  &scc_info_velodyneLidarParams_velodyne_5fconfig_2eproto.base,
  &scc_info_velodyneManagerParams_velodyne_5fconfig_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_velodyne_5fconfig_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_velodyne_5fconfig_2eproto = {
  false, false, descriptor_table_protodef_velodyne_5fconfig_2eproto, "velodyne_config.proto", 1327,
  &descriptor_table_velodyne_5fconfig_2eproto_once, descriptor_table_velodyne_5fconfig_2eproto_sccs, descriptor_table_velodyne_5fconfig_2eproto_deps, 5, 0,
  schemas, file_default_instances, TableStruct_velodyne_5fconfig_2eproto::offsets,
  file_level_metadata_velodyne_5fconfig_2eproto, 5, file_level_enum_descriptors_velodyne_5fconfig_2eproto, file_level_service_descriptors_velodyne_5fconfig_2eproto,
};

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

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

void velodyneManagerParams::InitAsDefaultInstance() {
}
class velodyneManagerParams::_Internal {
 public:
  using HasBits = decltype(std::declval<velodyneManagerParams>()._has_bits_);
  static void set_has_fence_data_path(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_fence_log_path(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_left_model_path(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_right_model_path(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_distribution_mode(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000010) ^ 0x00000010) != 0;
  }
};

velodyneManagerParams::velodyneManagerParams(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  velodyne_lidars_(arena),
  region_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:velodyne.velodyneManagerParams)
}
velodyneManagerParams::velodyneManagerParams(const velodyneManagerParams& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_),
      velodyne_lidars_(from.velodyne_lidars_),
      region_(from.region_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_fence_data_path()) {
    fence_data_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_data_path(),
      GetArena());
  }
  fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_fence_log_path()) {
    fence_log_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_fence_log_path(),
      GetArena());
  }
  left_model_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_left_model_path()) {
    left_model_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_left_model_path(),
      GetArena());
  }
  right_model_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_right_model_path()) {
    right_model_path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_right_model_path(),
      GetArena());
  }
  distribution_mode_ = from.distribution_mode_;
  // @@protoc_insertion_point(copy_constructor:velodyne.velodyneManagerParams)
}

void velodyneManagerParams::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_velodyneManagerParams_velodyne_5fconfig_2eproto.base);
  fence_data_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  fence_log_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  left_model_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  right_model_path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  distribution_mode_ = false;
}

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

void velodyneManagerParams::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  fence_data_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  fence_log_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  left_model_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  right_model_path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}

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


void velodyneManagerParams::Clear() {
// @@protoc_insertion_point(message_clear_start:velodyne.velodyneManagerParams)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  velodyne_lidars_.Clear();
  region_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    if (cached_has_bits & 0x00000001u) {
      fence_data_path_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000002u) {
      fence_log_path_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000004u) {
      left_model_path_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000008u) {
      right_model_path_.ClearNonDefaultToEmpty();
    }
  }
  distribution_mode_ = false;
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* velodyneManagerParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_velodyne_lidars(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else goto handle_unusual;
        continue;
      // repeated .velodyne.Region region = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_region(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
        } else goto handle_unusual;
        continue;
      // optional string fence_data_path = 3 [default = ""];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
          auto str = _internal_mutable_fence_data_path();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneManagerParams.fence_data_path");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional string fence_log_path = 4 [default = ""];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
          auto str = _internal_mutable_fence_log_path();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneManagerParams.fence_log_path");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional string left_model_path = 5 [default = ""];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
          auto str = _internal_mutable_left_model_path();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneManagerParams.left_model_path");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional string right_model_path = 6 [default = ""];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
          auto str = _internal_mutable_right_model_path();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneManagerParams.right_model_path");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // required bool distribution_mode = 7 [default = false];
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_distribution_mode(&has_bits);
          distribution_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* velodyneManagerParams::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneManagerParams)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_velodyne_lidars_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_velodyne_lidars(i), target, stream);
  }

  // repeated .velodyne.Region region = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_region_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, this->_internal_region(i), target, stream);
  }

  cached_has_bits = _has_bits_[0];
  // optional string fence_data_path = 3 [default = ""];
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_fence_data_path().data(), static_cast<int>(this->_internal_fence_data_path().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneManagerParams.fence_data_path");
    target = stream->WriteStringMaybeAliased(
        3, this->_internal_fence_data_path(), target);
  }

  // optional string fence_log_path = 4 [default = ""];
  if (cached_has_bits & 0x00000002u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_fence_log_path().data(), static_cast<int>(this->_internal_fence_log_path().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneManagerParams.fence_log_path");
    target = stream->WriteStringMaybeAliased(
        4, this->_internal_fence_log_path(), target);
  }

  // optional string left_model_path = 5 [default = ""];
  if (cached_has_bits & 0x00000004u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_left_model_path().data(), static_cast<int>(this->_internal_left_model_path().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneManagerParams.left_model_path");
    target = stream->WriteStringMaybeAliased(
        5, this->_internal_left_model_path(), target);
  }

  // optional string right_model_path = 6 [default = ""];
  if (cached_has_bits & 0x00000008u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_right_model_path().data(), static_cast<int>(this->_internal_right_model_path().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneManagerParams.right_model_path");
    target = stream->WriteStringMaybeAliased(
        6, this->_internal_right_model_path(), target);
  }

  // required bool distribution_mode = 7 [default = false];
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_distribution_mode(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneManagerParams)
  return target;
}

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

  // required bool distribution_mode = 7 [default = false];
  if (_internal_has_distribution_mode()) {
    total_size += 1 + 1;
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  total_size += 1UL * this->_internal_velodyne_lidars_size();
  for (const auto& msg : this->velodyne_lidars_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .velodyne.Region region = 2;
  total_size += 1UL * this->_internal_region_size();
  for (const auto& msg : this->region_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    // optional string fence_data_path = 3 [default = ""];
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_fence_data_path());
    }

    // optional string fence_log_path = 4 [default = ""];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_fence_log_path());
    }

    // optional string left_model_path = 5 [default = ""];
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_left_model_path());
    }

    // optional string right_model_path = 6 [default = ""];
    if (cached_has_bits & 0x00000008u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_right_model_path());
    }

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

void velodyneManagerParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneManagerParams)
  GOOGLE_DCHECK_NE(&from, this);
  const velodyneManagerParams* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<velodyneManagerParams>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneManagerParams)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneManagerParams)
    MergeFrom(*source);
  }
}

void velodyneManagerParams::MergeFrom(const velodyneManagerParams& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneManagerParams)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  velodyne_lidars_.MergeFrom(from.velodyne_lidars_);
  region_.MergeFrom(from.region_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x0000001fu) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_fence_data_path(from._internal_fence_data_path());
    }
    if (cached_has_bits & 0x00000002u) {
      _internal_set_fence_log_path(from._internal_fence_log_path());
    }
    if (cached_has_bits & 0x00000004u) {
      _internal_set_left_model_path(from._internal_left_model_path());
    }
    if (cached_has_bits & 0x00000008u) {
      _internal_set_right_model_path(from._internal_right_model_path());
    }
    if (cached_has_bits & 0x00000010u) {
      distribution_mode_ = from.distribution_mode_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void velodyneManagerParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneManagerParams)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool velodyneManagerParams::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(velodyne_lidars_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(region_)) return false;
  return true;
}

void velodyneManagerParams::InternalSwap(velodyneManagerParams* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  velodyne_lidars_.InternalSwap(&other->velodyne_lidars_);
  region_.InternalSwap(&other->region_);
  fence_data_path_.Swap(&other->fence_data_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  fence_log_path_.Swap(&other->fence_log_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  left_model_path_.Swap(&other->left_model_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  right_model_path_.Swap(&other->right_model_path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  swap(distribution_mode_, other->distribution_mode_);
}

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


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

void velodyneLidarParams::InitAsDefaultInstance() {
  ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
      ::velodyne::CalibParameter::internal_default_instance());
}
class velodyneLidarParams::_Internal {
 public:
  using HasBits = decltype(std::declval<velodyneLidarParams>()._has_bits_);
  static void set_has_ip(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_port(HasBits* has_bits) {
    (*has_bits)[0] |= 64u;
  }
  static void set_has_model(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_calibrationfile(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_lidar_id(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_max_range(HasBits* has_bits) {
    (*has_bits)[0] |= 128u;
  }
  static void set_has_min_range(HasBits* has_bits) {
    (*has_bits)[0] |= 256u;
  }
  static void set_has_min_angle(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
  static void set_has_max_angle(HasBits* has_bits) {
    (*has_bits)[0] |= 512u;
  }
  static void set_has_rpm(HasBits* has_bits) {
    (*has_bits)[0] |= 1024u;
  }
  static const ::velodyne::CalibParameter& calib(const velodyneLidarParams* msg);
  static void set_has_calib(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_difop(HasBits* has_bits) {
    (*has_bits)[0] |= 2048u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000057) ^ 0x00000057) != 0;
  }
};

const ::velodyne::CalibParameter&
velodyneLidarParams::_Internal::calib(const velodyneLidarParams* msg) {
  return *msg->calib_;
}
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_;
velodyneLidarParams::velodyneLidarParams(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:velodyne.velodyneLidarParams)
}
velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_ip()) {
    ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_ip(),
      GetArena());
  }
  model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  if (from._internal_has_model()) {
    model_.Set(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), from._internal_model(),
      GetArena());
  }
  calibrationfile_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_calibrationfile()) {
    calibrationfile_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_calibrationfile(),
      GetArena());
  }
  if (from._internal_has_calib()) {
    calib_ = new ::velodyne::CalibParameter(*from.calib_);
  } else {
    calib_ = nullptr;
  }
  ::memcpy(&lidar_id_, &from.lidar_id_,
    static_cast<size_t>(reinterpret_cast<char*>(&difop_) -
    reinterpret_cast<char*>(&lidar_id_)) + sizeof(difop_));
  // @@protoc_insertion_point(copy_constructor:velodyne.velodyneLidarParams)
}

void velodyneLidarParams::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_velodyneLidarParams_velodyne_5fconfig_2eproto.base);
  ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  calibrationfile_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  ::memset(&calib_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&min_angle_) -
      reinterpret_cast<char*>(&calib_)) + sizeof(min_angle_));
  port_ = 2368;
  max_range_ = 10;
  min_range_ = 0.15f;
  max_angle_ = 360;
  rpm_ = 600;
  difop_ = 7788;
}

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

void velodyneLidarParams::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  model_.DestroyNoArena(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  calibrationfile_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete calib_;
}

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


void velodyneLidarParams::Clear() {
// @@protoc_insertion_point(message_clear_start:velodyne.velodyneLidarParams)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    if (cached_has_bits & 0x00000001u) {
      ip_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000002u) {
      model_.ClearToDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), GetArena());
    }
    if (cached_has_bits & 0x00000004u) {
      calibrationfile_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000008u) {
      GOOGLE_DCHECK(calib_ != nullptr);
      calib_->Clear();
    }
  }
  if (cached_has_bits & 0x000000f0u) {
    ::memset(&lidar_id_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&min_angle_) -
        reinterpret_cast<char*>(&lidar_id_)) + sizeof(min_angle_));
    port_ = 2368;
    max_range_ = 10;
  }
  if (cached_has_bits & 0x00000f00u) {
    min_range_ = 0.15f;
    max_angle_ = 360;
    rpm_ = 600;
    difop_ = 7788;
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* velodyneLidarParams::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required string ip = 1 [default = ""];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_ip();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneLidarParams.ip");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // required int32 port = 2 [default = 2368];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_port(&has_bits);
          port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // required string model = 3 [default = "VLP16"];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
          auto str = _internal_mutable_model();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneLidarParams.model");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // required string calibrationFile = 4 [default = ""];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
          auto str = _internal_mutable_calibrationfile();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "velodyne.velodyneLidarParams.calibrationFile");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // required int32 lidar_id = 5 [default = 0];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_lidar_id(&has_bits);
          lidar_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional float max_range = 6 [default = 10];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
          _Internal::set_has_max_range(&has_bits);
          max_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float min_range = 7 [default = 0.15];
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) {
          _Internal::set_has_min_range(&has_bits);
          min_range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional int32 min_angle = 8 [default = 0];
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
          _Internal::set_has_min_angle(&has_bits);
          min_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 max_angle = 9 [default = 360];
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
          _Internal::set_has_max_angle(&has_bits);
          max_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 rpm = 10 [default = 600];
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
          _Internal::set_has_rpm(&has_bits);
          rpm_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .velodyne.CalibParameter calib = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
          ptr = ctx->ParseMessage(_internal_mutable_calib(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 difop = 12 [default = 7788];
      case 12:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
          _Internal::set_has_difop(&has_bits);
          difop_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* velodyneLidarParams::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneLidarParams)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string ip = 1 [default = ""];
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_ip().data(), static_cast<int>(this->_internal_ip().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneLidarParams.ip");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_ip(), target);
  }

  // required int32 port = 2 [default = 2368];
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_port(), target);
  }

  // required string model = 3 [default = "VLP16"];
  if (cached_has_bits & 0x00000002u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_model().data(), static_cast<int>(this->_internal_model().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneLidarParams.model");
    target = stream->WriteStringMaybeAliased(
        3, this->_internal_model(), target);
  }

  // required string calibrationFile = 4 [default = ""];
  if (cached_has_bits & 0x00000004u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_calibrationfile().data(), static_cast<int>(this->_internal_calibrationfile().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "velodyne.velodyneLidarParams.calibrationFile");
    target = stream->WriteStringMaybeAliased(
        4, this->_internal_calibrationfile(), target);
  }

  // required int32 lidar_id = 5 [default = 0];
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_lidar_id(), target);
  }

  // optional float max_range = 6 [default = 10];
  if (cached_has_bits & 0x00000080u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_max_range(), target);
  }

  // optional float min_range = 7 [default = 0.15];
  if (cached_has_bits & 0x00000100u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_min_range(), target);
  }

  // optional int32 min_angle = 8 [default = 0];
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_min_angle(), target);
  }

  // optional int32 max_angle = 9 [default = 360];
  if (cached_has_bits & 0x00000200u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_max_angle(), target);
  }

  // optional int32 rpm = 10 [default = 600];
  if (cached_has_bits & 0x00000400u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_rpm(), target);
  }

  // optional .velodyne.CalibParameter calib = 11;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        11, _Internal::calib(this), target, stream);
  }

  // optional int32 difop = 12 [default = 7788];
  if (cached_has_bits & 0x00000800u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_difop(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneLidarParams)
  return target;
}

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

  if (_internal_has_ip()) {
    // required string ip = 1 [default = ""];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_ip());
  }

  if (_internal_has_model()) {
    // required string model = 3 [default = "VLP16"];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_model());
  }

  if (_internal_has_calibrationfile()) {
    // required string calibrationFile = 4 [default = ""];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_calibrationfile());
  }

  if (_internal_has_lidar_id()) {
    // required int32 lidar_id = 5 [default = 0];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_lidar_id());
  }

  if (_internal_has_port()) {
    // required int32 port = 2 [default = 2368];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_port());
  }

  return total_size;
}
size_t velodyneLidarParams::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneLidarParams)
  size_t total_size = 0;

  if (((_has_bits_[0] & 0x00000057) ^ 0x00000057) == 0) {  // All required fields are present.
    // required string ip = 1 [default = ""];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_ip());

    // required string model = 3 [default = "VLP16"];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_model());

    // required string calibrationFile = 4 [default = ""];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_calibrationfile());

    // required int32 lidar_id = 5 [default = 0];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_lidar_id());

    // required int32 port = 2 [default = 2368];
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_port());

  } else {
    total_size += RequiredFieldsByteSizeFallback();
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // optional .velodyne.CalibParameter calib = 11;
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000008u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *calib_);
  }

  // optional int32 min_angle = 8 [default = 0];
  if (cached_has_bits & 0x00000020u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_min_angle());
  }

  // optional float max_range = 6 [default = 10];
  if (cached_has_bits & 0x00000080u) {
    total_size += 1 + 4;
  }

  if (cached_has_bits & 0x00000f00u) {
    // optional float min_range = 7 [default = 0.15];
    if (cached_has_bits & 0x00000100u) {
      total_size += 1 + 4;
    }

    // optional int32 max_angle = 9 [default = 360];
    if (cached_has_bits & 0x00000200u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_max_angle());
    }

    // optional int32 rpm = 10 [default = 600];
    if (cached_has_bits & 0x00000400u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_rpm());
    }

    // optional int32 difop = 12 [default = 7788];
    if (cached_has_bits & 0x00000800u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_difop());
    }

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

void velodyneLidarParams::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneLidarParams)
  GOOGLE_DCHECK_NE(&from, this);
  const velodyneLidarParams* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<velodyneLidarParams>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneLidarParams)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneLidarParams)
    MergeFrom(*source);
  }
}

void velodyneLidarParams::MergeFrom(const velodyneLidarParams& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneLidarParams)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_ip(from._internal_ip());
    }
    if (cached_has_bits & 0x00000002u) {
      _internal_set_model(from._internal_model());
    }
    if (cached_has_bits & 0x00000004u) {
      _internal_set_calibrationfile(from._internal_calibrationfile());
    }
    if (cached_has_bits & 0x00000008u) {
      _internal_mutable_calib()->::velodyne::CalibParameter::MergeFrom(from._internal_calib());
    }
    if (cached_has_bits & 0x00000010u) {
      lidar_id_ = from.lidar_id_;
    }
    if (cached_has_bits & 0x00000020u) {
      min_angle_ = from.min_angle_;
    }
    if (cached_has_bits & 0x00000040u) {
      port_ = from.port_;
    }
    if (cached_has_bits & 0x00000080u) {
      max_range_ = from.max_range_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x00000f00u) {
    if (cached_has_bits & 0x00000100u) {
      min_range_ = from.min_range_;
    }
    if (cached_has_bits & 0x00000200u) {
      max_angle_ = from.max_angle_;
    }
    if (cached_has_bits & 0x00000400u) {
      rpm_ = from.rpm_;
    }
    if (cached_has_bits & 0x00000800u) {
      difop_ = from.difop_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void velodyneLidarParams::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneLidarParams)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool velodyneLidarParams::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

void velodyneLidarParams::InternalSwap(velodyneLidarParams* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  model_.Swap(&other->model_, &::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), GetArena());
  calibrationfile_.Swap(&other->calibrationfile_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(velodyneLidarParams, min_angle_)
      + sizeof(velodyneLidarParams::min_angle_)
      - PROTOBUF_FIELD_OFFSET(velodyneLidarParams, calib_)>(
          reinterpret_cast<char*>(&calib_),
          reinterpret_cast<char*>(&other->calib_));
  swap(port_, other->port_);
  swap(max_range_, other->max_range_);
  swap(min_range_, other->min_range_);
  swap(max_angle_, other->max_angle_);
  swap(rpm_, other->rpm_);
  swap(difop_, other->difop_);
}

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


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

void CalibParameter::InitAsDefaultInstance() {
}
class CalibParameter::_Internal {
 public:
  using HasBits = decltype(std::declval<CalibParameter>()._has_bits_);
  static void set_has_r(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_p(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_y(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_cx(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_cy(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_cz(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
};

CalibParameter::CalibParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:velodyne.CalibParameter)
}
CalibParameter::CalibParameter(const CalibParameter& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&r_, &from.r_,
    static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
    reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  // @@protoc_insertion_point(copy_constructor:velodyne.CalibParameter)
}

void CalibParameter::SharedCtor() {
  ::memset(&r_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&cz_) -
      reinterpret_cast<char*>(&r_)) + sizeof(cz_));
}

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

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

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


void CalibParameter::Clear() {
// @@protoc_insertion_point(message_clear_start:velodyne.CalibParameter)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    ::memset(&r_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&cz_) -
        reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* CalibParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // optional float r = 1 [default = 0];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
          _Internal::set_has_r(&has_bits);
          r_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float p = 2 [default = 0];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
          _Internal::set_has_p(&has_bits);
          p_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float y = 3 [default = 0];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
          _Internal::set_has_y(&has_bits);
          y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float cx = 4 [default = 0];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
          _Internal::set_has_cx(&has_bits);
          cx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float cy = 5 [default = 0];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
          _Internal::set_has_cy(&has_bits);
          cy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float cz = 6 [default = 0];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
          _Internal::set_has_cz(&has_bits);
          cz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* CalibParameter::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:velodyne.CalibParameter)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional float r = 1 [default = 0];
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_r(), target);
  }

  // optional float p = 2 [default = 0];
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_p(), target);
  }

  // optional float y = 3 [default = 0];
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_y(), target);
  }

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

  // optional float cy = 5 [default = 0];
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_cy(), target);
  }

  // optional float cz = 6 [default = 0];
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_cz(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:velodyne.CalibParameter)
  return target;
}

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

  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

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

    // optional float p = 2 [default = 0];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 + 4;
    }

    // optional float y = 3 [default = 0];
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 + 4;
    }

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

    // optional float cy = 5 [default = 0];
    if (cached_has_bits & 0x00000010u) {
      total_size += 1 + 4;
    }

    // optional float cz = 6 [default = 0];
    if (cached_has_bits & 0x00000020u) {
      total_size += 1 + 4;
    }

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

void CalibParameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:velodyne.CalibParameter)
  GOOGLE_DCHECK_NE(&from, this);
  const CalibParameter* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CalibParameter>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.CalibParameter)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.CalibParameter)
    MergeFrom(*source);
  }
}

void CalibParameter::MergeFrom(const CalibParameter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.CalibParameter)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    if (cached_has_bits & 0x00000001u) {
      r_ = from.r_;
    }
    if (cached_has_bits & 0x00000002u) {
      p_ = from.p_;
    }
    if (cached_has_bits & 0x00000004u) {
      y_ = from.y_;
    }
    if (cached_has_bits & 0x00000008u) {
      cx_ = from.cx_;
    }
    if (cached_has_bits & 0x00000010u) {
      cy_ = from.cy_;
    }
    if (cached_has_bits & 0x00000020u) {
      cz_ = from.cz_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void CalibParameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:velodyne.CalibParameter)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool CalibParameter::IsInitialized() const {
  return true;
}

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

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


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

void lidarExtrinsic::InitAsDefaultInstance() {
  ::velodyne::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
      ::velodyne::CalibParameter::internal_default_instance());
}
class lidarExtrinsic::_Internal {
 public:
  using HasBits = decltype(std::declval<lidarExtrinsic>()._has_bits_);
  static void set_has_lidar_id(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static const ::velodyne::CalibParameter& calib(const lidarExtrinsic* msg);
  static void set_has_calib(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0;
  }
};

const ::velodyne::CalibParameter&
lidarExtrinsic::_Internal::calib(const lidarExtrinsic* msg) {
  return *msg->calib_;
}
lidarExtrinsic::lidarExtrinsic(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:velodyne.lidarExtrinsic)
}
lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_calib()) {
    calib_ = new ::velodyne::CalibParameter(*from.calib_);
  } else {
    calib_ = nullptr;
  }
  lidar_id_ = from.lidar_id_;
  // @@protoc_insertion_point(copy_constructor:velodyne.lidarExtrinsic)
}

void lidarExtrinsic::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_lidarExtrinsic_velodyne_5fconfig_2eproto.base);
  ::memset(&calib_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&lidar_id_) -
      reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
}

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

void lidarExtrinsic::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  if (this != internal_default_instance()) delete calib_;
}

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


void lidarExtrinsic::Clear() {
// @@protoc_insertion_point(message_clear_start:velodyne.lidarExtrinsic)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    GOOGLE_DCHECK(calib_ != nullptr);
    calib_->Clear();
  }
  lidar_id_ = 0;
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* lidarExtrinsic::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required int32 lidar_id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          _Internal::set_has_lidar_id(&has_bits);
          lidar_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .velodyne.CalibParameter calib = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_calib(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* lidarExtrinsic::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:velodyne.lidarExtrinsic)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required int32 lidar_id = 1;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_lidar_id(), target);
  }

  // optional .velodyne.CalibParameter calib = 2;
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::calib(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:velodyne.lidarExtrinsic)
  return target;
}

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

  // required int32 lidar_id = 1;
  if (_internal_has_lidar_id()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_lidar_id());
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // optional .velodyne.CalibParameter calib = 2;
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *calib_);
  }

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

void lidarExtrinsic::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:velodyne.lidarExtrinsic)
  GOOGLE_DCHECK_NE(&from, this);
  const lidarExtrinsic* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<lidarExtrinsic>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.lidarExtrinsic)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.lidarExtrinsic)
    MergeFrom(*source);
  }
}

void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.lidarExtrinsic)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _internal_mutable_calib()->::velodyne::CalibParameter::MergeFrom(from._internal_calib());
    }
    if (cached_has_bits & 0x00000002u) {
      lidar_id_ = from.lidar_id_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void lidarExtrinsic::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:velodyne.lidarExtrinsic)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool lidarExtrinsic::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

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

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


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

void Region::InitAsDefaultInstance() {
}
class Region::_Internal {
 public:
  using HasBits = decltype(std::declval<Region>()._has_bits_);
  static void set_has_minx(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_maxx(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_miny(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_maxy(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_minz(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_maxz(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
  static void set_has_region_id(HasBits* has_bits) {
    (*has_bits)[0] |= 64u;
  }
  static void set_has_turnplate_cx(HasBits* has_bits) {
    (*has_bits)[0] |= 128u;
  }
  static void set_has_turnplate_cy(HasBits* has_bits) {
    (*has_bits)[0] |= 256u;
  }
  static void set_has_border_minx(HasBits* has_bits) {
    (*has_bits)[0] |= 512u;
  }
  static void set_has_border_maxx(HasBits* has_bits) {
    (*has_bits)[0] |= 1024u;
  }
  static void set_has_plc_offsetx(HasBits* has_bits) {
    (*has_bits)[0] |= 2048u;
  }
  static void set_has_plc_offsety(HasBits* has_bits) {
    (*has_bits)[0] |= 4096u;
  }
  static void set_has_plc_offset_degree(HasBits* has_bits) {
    (*has_bits)[0] |= 8192u;
  }
  static void set_has_plc_border_miny(HasBits* has_bits) {
    (*has_bits)[0] |= 16384u;
  }
  static void set_has_plc_border_maxy(HasBits* has_bits) {
    (*has_bits)[0] |= 32768u;
  }
  static void set_has_car_min_width(HasBits* has_bits) {
    (*has_bits)[0] |= 65536u;
  }
  static void set_has_car_max_width(HasBits* has_bits) {
    (*has_bits)[0] |= 131072u;
  }
  static void set_has_car_min_wheelbase(HasBits* has_bits) {
    (*has_bits)[0] |= 262144u;
  }
  static void set_has_car_max_wheelbase(HasBits* has_bits) {
    (*has_bits)[0] |= 524288u;
  }
  static void set_has_turnplate_angle_limit_anti_clockwise(HasBits* has_bits) {
    (*has_bits)[0] |= 1048576u;
  }
  static void set_has_turnplate_angle_limit_clockwise(HasBits* has_bits) {
    (*has_bits)[0] |= 2097152u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x003fffff) ^ 0x003fffff) != 0;
  }
};

Region::Region(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  lidar_exts_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:velodyne.Region)
}
Region::Region(const Region& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_),
      lidar_exts_(from.lidar_exts_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&minx_, &from.minx_,
    static_cast<size_t>(reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
    reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
  // @@protoc_insertion_point(copy_constructor:velodyne.Region)
}

void Region::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Region_velodyne_5fconfig_2eproto.base);
  ::memset(&minx_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
      reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
}

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

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

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


void Region::Clear() {
// @@protoc_insertion_point(message_clear_start:velodyne.Region)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  lidar_exts_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    ::memset(&minx_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&turnplate_cx_) -
        reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
  }
  if (cached_has_bits & 0x0000ff00u) {
    ::memset(&turnplate_cy_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&plc_border_maxy_) -
        reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(plc_border_maxy_));
  }
  if (cached_has_bits & 0x003f0000u) {
    ::memset(&car_min_width_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
        reinterpret_cast<char*>(&car_min_width_)) + sizeof(turnplate_angle_limit_clockwise_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Region::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required float minx = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
          _Internal::set_has_minx(&has_bits);
          minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float maxx = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
          _Internal::set_has_maxx(&has_bits);
          maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float miny = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
          _Internal::set_has_miny(&has_bits);
          miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float maxy = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
          _Internal::set_has_maxy(&has_bits);
          maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float minz = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
          _Internal::set_has_minz(&has_bits);
          minz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float maxz = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) {
          _Internal::set_has_maxz(&has_bits);
          maxz_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required int32 region_id = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_region_id(&has_bits);
          region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_lidar_exts(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
        } else goto handle_unusual;
        continue;
      // required float turnplate_cx = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
          _Internal::set_has_turnplate_cx(&has_bits);
          turnplate_cx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float turnplate_cy = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 85)) {
          _Internal::set_has_turnplate_cy(&has_bits);
          turnplate_cy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float border_minx = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 93)) {
          _Internal::set_has_border_minx(&has_bits);
          border_minx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float border_maxx = 12;
      case 12:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 101)) {
          _Internal::set_has_border_maxx(&has_bits);
          border_maxx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float plc_offsetx = 13;
      case 13:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 109)) {
          _Internal::set_has_plc_offsetx(&has_bits);
          plc_offsetx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float plc_offsety = 14;
      case 14:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 117)) {
          _Internal::set_has_plc_offsety(&has_bits);
          plc_offsety_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float plc_offset_degree = 15;
      case 15:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 125)) {
          _Internal::set_has_plc_offset_degree(&has_bits);
          plc_offset_degree_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float plc_border_miny = 16;
      case 16:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 133)) {
          _Internal::set_has_plc_border_miny(&has_bits);
          plc_border_miny_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float plc_border_maxy = 17;
      case 17:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 141)) {
          _Internal::set_has_plc_border_maxy(&has_bits);
          plc_border_maxy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float car_min_width = 18;
      case 18:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 149)) {
          _Internal::set_has_car_min_width(&has_bits);
          car_min_width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float car_max_width = 19;
      case 19:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 157)) {
          _Internal::set_has_car_max_width(&has_bits);
          car_max_width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float car_min_wheelbase = 20;
      case 20:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 165)) {
          _Internal::set_has_car_min_wheelbase(&has_bits);
          car_min_wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float car_max_wheelbase = 21;
      case 21:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 173)) {
          _Internal::set_has_car_max_wheelbase(&has_bits);
          car_max_wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float turnplate_angle_limit_anti_clockwise = 22;
      case 22:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 181)) {
          _Internal::set_has_turnplate_angle_limit_anti_clockwise(&has_bits);
          turnplate_angle_limit_anti_clockwise_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // required float turnplate_angle_limit_clockwise = 23;
      case 23:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 189)) {
          _Internal::set_has_turnplate_angle_limit_clockwise(&has_bits);
          turnplate_angle_limit_clockwise_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* Region::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:velodyne.Region)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

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

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

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

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

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

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

  // required int32 region_id = 7;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_region_id(), target);
  }

  // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_lidar_exts_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(8, this->_internal_lidar_exts(i), target, stream);
  }

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

  // required float turnplate_cy = 10;
  if (cached_has_bits & 0x00000100u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(10, this->_internal_turnplate_cy(), target);
  }

  // required float border_minx = 11;
  if (cached_has_bits & 0x00000200u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(11, this->_internal_border_minx(), target);
  }

  // required float border_maxx = 12;
  if (cached_has_bits & 0x00000400u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(12, this->_internal_border_maxx(), target);
  }

  // required float plc_offsetx = 13;
  if (cached_has_bits & 0x00000800u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(13, this->_internal_plc_offsetx(), target);
  }

  // required float plc_offsety = 14;
  if (cached_has_bits & 0x00001000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(14, this->_internal_plc_offsety(), target);
  }

  // required float plc_offset_degree = 15;
  if (cached_has_bits & 0x00002000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(15, this->_internal_plc_offset_degree(), target);
  }

  // required float plc_border_miny = 16;
  if (cached_has_bits & 0x00004000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(16, this->_internal_plc_border_miny(), target);
  }

  // required float plc_border_maxy = 17;
  if (cached_has_bits & 0x00008000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(17, this->_internal_plc_border_maxy(), target);
  }

  // required float car_min_width = 18;
  if (cached_has_bits & 0x00010000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(18, this->_internal_car_min_width(), target);
  }

  // required float car_max_width = 19;
  if (cached_has_bits & 0x00020000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(19, this->_internal_car_max_width(), target);
  }

  // required float car_min_wheelbase = 20;
  if (cached_has_bits & 0x00040000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(20, this->_internal_car_min_wheelbase(), target);
  }

  // required float car_max_wheelbase = 21;
  if (cached_has_bits & 0x00080000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(21, this->_internal_car_max_wheelbase(), target);
  }

  // required float turnplate_angle_limit_anti_clockwise = 22;
  if (cached_has_bits & 0x00100000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(22, this->_internal_turnplate_angle_limit_anti_clockwise(), target);
  }

  // required float turnplate_angle_limit_clockwise = 23;
  if (cached_has_bits & 0x00200000u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(23, this->_internal_turnplate_angle_limit_clockwise(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:velodyne.Region)
  return target;
}

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

  if (_internal_has_minx()) {
    // required float minx = 1;
    total_size += 1 + 4;
  }

  if (_internal_has_maxx()) {
    // required float maxx = 2;
    total_size += 1 + 4;
  }

  if (_internal_has_miny()) {
    // required float miny = 3;
    total_size += 1 + 4;
  }

  if (_internal_has_maxy()) {
    // required float maxy = 4;
    total_size += 1 + 4;
  }

  if (_internal_has_minz()) {
    // required float minz = 5;
    total_size += 1 + 4;
  }

  if (_internal_has_maxz()) {
    // required float maxz = 6;
    total_size += 1 + 4;
  }

  if (_internal_has_region_id()) {
    // required int32 region_id = 7;
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_region_id());
  }

  if (_internal_has_turnplate_cx()) {
    // required float turnplate_cx = 9;
    total_size += 1 + 4;
  }

  if (_internal_has_turnplate_cy()) {
    // required float turnplate_cy = 10;
    total_size += 1 + 4;
  }

  if (_internal_has_border_minx()) {
    // required float border_minx = 11;
    total_size += 1 + 4;
  }

  if (_internal_has_border_maxx()) {
    // required float border_maxx = 12;
    total_size += 1 + 4;
  }

  if (_internal_has_plc_offsetx()) {
    // required float plc_offsetx = 13;
    total_size += 1 + 4;
  }

  if (_internal_has_plc_offsety()) {
    // required float plc_offsety = 14;
    total_size += 1 + 4;
  }

  if (_internal_has_plc_offset_degree()) {
    // required float plc_offset_degree = 15;
    total_size += 1 + 4;
  }

  if (_internal_has_plc_border_miny()) {
    // required float plc_border_miny = 16;
    total_size += 2 + 4;
  }

  if (_internal_has_plc_border_maxy()) {
    // required float plc_border_maxy = 17;
    total_size += 2 + 4;
  }

  if (_internal_has_car_min_width()) {
    // required float car_min_width = 18;
    total_size += 2 + 4;
  }

  if (_internal_has_car_max_width()) {
    // required float car_max_width = 19;
    total_size += 2 + 4;
  }

  if (_internal_has_car_min_wheelbase()) {
    // required float car_min_wheelbase = 20;
    total_size += 2 + 4;
  }

  if (_internal_has_car_max_wheelbase()) {
    // required float car_max_wheelbase = 21;
    total_size += 2 + 4;
  }

  if (_internal_has_turnplate_angle_limit_anti_clockwise()) {
    // required float turnplate_angle_limit_anti_clockwise = 22;
    total_size += 2 + 4;
  }

  if (_internal_has_turnplate_angle_limit_clockwise()) {
    // required float turnplate_angle_limit_clockwise = 23;
    total_size += 2 + 4;
  }

  return total_size;
}
size_t Region::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:velodyne.Region)
  size_t total_size = 0;

  if (((_has_bits_[0] & 0x003fffff) ^ 0x003fffff) == 0) {  // All required fields are present.
    // required float minx = 1;
    total_size += 1 + 4;

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

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

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

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

    // required float maxz = 6;
    total_size += 1 + 4;

    // required int32 region_id = 7;
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_region_id());

    // required float turnplate_cx = 9;
    total_size += 1 + 4;

    // required float turnplate_cy = 10;
    total_size += 1 + 4;

    // required float border_minx = 11;
    total_size += 1 + 4;

    // required float border_maxx = 12;
    total_size += 1 + 4;

    // required float plc_offsetx = 13;
    total_size += 1 + 4;

    // required float plc_offsety = 14;
    total_size += 1 + 4;

    // required float plc_offset_degree = 15;
    total_size += 1 + 4;

    // required float plc_border_miny = 16;
    total_size += 2 + 4;

    // required float plc_border_maxy = 17;
    total_size += 2 + 4;

    // required float car_min_width = 18;
    total_size += 2 + 4;

    // required float car_max_width = 19;
    total_size += 2 + 4;

    // required float car_min_wheelbase = 20;
    total_size += 2 + 4;

    // required float car_max_wheelbase = 21;
    total_size += 2 + 4;

    // required float turnplate_angle_limit_anti_clockwise = 22;
    total_size += 2 + 4;

    // required float turnplate_angle_limit_clockwise = 23;
    total_size += 2 + 4;

  } else {
    total_size += RequiredFieldsByteSizeFallback();
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  total_size += 1UL * this->_internal_lidar_exts_size();
  for (const auto& msg : this->lidar_exts_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

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

void Region::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:velodyne.Region)
  GOOGLE_DCHECK_NE(&from, this);
  const Region* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Region>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Region)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Region)
    MergeFrom(*source);
  }
}

void Region::MergeFrom(const Region& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Region)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  lidar_exts_.MergeFrom(from.lidar_exts_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      minx_ = from.minx_;
    }
    if (cached_has_bits & 0x00000002u) {
      maxx_ = from.maxx_;
    }
    if (cached_has_bits & 0x00000004u) {
      miny_ = from.miny_;
    }
    if (cached_has_bits & 0x00000008u) {
      maxy_ = from.maxy_;
    }
    if (cached_has_bits & 0x00000010u) {
      minz_ = from.minz_;
    }
    if (cached_has_bits & 0x00000020u) {
      maxz_ = from.maxz_;
    }
    if (cached_has_bits & 0x00000040u) {
      region_id_ = from.region_id_;
    }
    if (cached_has_bits & 0x00000080u) {
      turnplate_cx_ = from.turnplate_cx_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x0000ff00u) {
    if (cached_has_bits & 0x00000100u) {
      turnplate_cy_ = from.turnplate_cy_;
    }
    if (cached_has_bits & 0x00000200u) {
      border_minx_ = from.border_minx_;
    }
    if (cached_has_bits & 0x00000400u) {
      border_maxx_ = from.border_maxx_;
    }
    if (cached_has_bits & 0x00000800u) {
      plc_offsetx_ = from.plc_offsetx_;
    }
    if (cached_has_bits & 0x00001000u) {
      plc_offsety_ = from.plc_offsety_;
    }
    if (cached_has_bits & 0x00002000u) {
      plc_offset_degree_ = from.plc_offset_degree_;
    }
    if (cached_has_bits & 0x00004000u) {
      plc_border_miny_ = from.plc_border_miny_;
    }
    if (cached_has_bits & 0x00008000u) {
      plc_border_maxy_ = from.plc_border_maxy_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x003f0000u) {
    if (cached_has_bits & 0x00010000u) {
      car_min_width_ = from.car_min_width_;
    }
    if (cached_has_bits & 0x00020000u) {
      car_max_width_ = from.car_max_width_;
    }
    if (cached_has_bits & 0x00040000u) {
      car_min_wheelbase_ = from.car_min_wheelbase_;
    }
    if (cached_has_bits & 0x00080000u) {
      car_max_wheelbase_ = from.car_max_wheelbase_;
    }
    if (cached_has_bits & 0x00100000u) {
      turnplate_angle_limit_anti_clockwise_ = from.turnplate_angle_limit_anti_clockwise_;
    }
    if (cached_has_bits & 0x00200000u) {
      turnplate_angle_limit_clockwise_ = from.turnplate_angle_limit_clockwise_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Region::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:velodyne.Region)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool Region::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(lidar_exts_)) return false;
  return true;
}

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

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


// @@protoc_insertion_point(namespace_scope)
}  // namespace velodyne
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::velodyne::velodyneManagerParams* Arena::CreateMaybeMessage< ::velodyne::velodyneManagerParams >(Arena* arena) {
  return Arena::CreateMessageInternal< ::velodyne::velodyneManagerParams >(arena);
}
template<> PROTOBUF_NOINLINE ::velodyne::velodyneLidarParams* Arena::CreateMaybeMessage< ::velodyne::velodyneLidarParams >(Arena* arena) {
  return Arena::CreateMessageInternal< ::velodyne::velodyneLidarParams >(arena);
}
template<> PROTOBUF_NOINLINE ::velodyne::CalibParameter* Arena::CreateMaybeMessage< ::velodyne::CalibParameter >(Arena* arena) {
  return Arena::CreateMessageInternal< ::velodyne::CalibParameter >(arena);
}
template<> PROTOBUF_NOINLINE ::velodyne::lidarExtrinsic* Arena::CreateMaybeMessage< ::velodyne::lidarExtrinsic >(Arena* arena) {
  return Arena::CreateMessageInternal< ::velodyne::lidarExtrinsic >(arena);
}
template<> PROTOBUF_NOINLINE ::velodyne::Region* Arena::CreateMaybeMessage< ::velodyne::Region >(Arena* arena) {
  return Arena::CreateMessageInternal< ::velodyne::Region >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

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