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

#include "rs_info.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>

PROTOBUF_PRAGMA_INIT_SEG

namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;

namespace fleet {
PROTOBUF_CONSTEXPR RoadsideInfo::RoadsideInfo(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.longitude_)*/0
  , /*decltype(_impl_.latitude_)*/0
  , /*decltype(_impl_.altitude_)*/0
  , /*decltype(_impl_.islight_)*/0u
  , /*decltype(_impl_.lightstatus_)*/0
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct RoadsideInfoDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RoadsideInfoDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RoadsideInfoDefaultTypeInternal() {}
  union {
    RoadsideInfo _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoadsideInfoDefaultTypeInternal _RoadsideInfo_default_instance_;
PROTOBUF_CONSTEXPR LightControl::LightControl(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.timestamp_)*/uint64_t{0u}
  , /*decltype(_impl_.lightstatus_)*/0
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct LightControlDefaultTypeInternal {
  PROTOBUF_CONSTEXPR LightControlDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~LightControlDefaultTypeInternal() {}
  union {
    LightControl _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LightControlDefaultTypeInternal _LightControl_default_instance_;
PROTOBUF_CONSTEXPR RoadsideInfoList::RoadsideInfoList(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.roadsidelist_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct RoadsideInfoListDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RoadsideInfoListDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RoadsideInfoListDefaultTypeInternal() {}
  union {
    RoadsideInfoList _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoadsideInfoListDefaultTypeInternal _RoadsideInfoList_default_instance_;
}  // namespace fleet
static ::_pb::Metadata file_level_metadata_rs_5finfo_2eproto[3];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_rs_5finfo_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_rs_5finfo_2eproto = nullptr;

const uint32_t TableStruct_rs_5finfo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.id_),
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.longitude_),
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.latitude_),
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.altitude_),
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.islight_),
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfo, _impl_.lightstatus_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::fleet::LightControl, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::fleet::LightControl, _impl_.id_),
  PROTOBUF_FIELD_OFFSET(::fleet::LightControl, _impl_.lightstatus_),
  PROTOBUF_FIELD_OFFSET(::fleet::LightControl, _impl_.timestamp_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfoList, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::fleet::RoadsideInfoList, _impl_.roadsidelist_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::fleet::RoadsideInfo)},
  { 12, -1, -1, sizeof(::fleet::LightControl)},
  { 21, -1, -1, sizeof(::fleet::RoadsideInfoList)},
};

static const ::_pb::Message* const file_default_instances[] = {
  &::fleet::_RoadsideInfo_default_instance_._instance,
  &::fleet::_LightControl_default_instance_._instance,
  &::fleet::_RoadsideInfoList_default_instance_._instance,
};

const char descriptor_table_protodef_rs_5finfo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\rrs_info.proto\022\005fleet\"\213\001\n\014RoadsideInfo\022"
  "\n\n\002id\030\001 \001(\t\022\021\n\tlongitude\030\002 \001(\001\022\020\n\010latitu"
  "de\030\003 \001(\001\022\020\n\010altitude\030\004 \001(\001\022\017\n\007isLight\030\005 "
  "\001(\r\022\'\n\013lightStatus\030\006 \001(\0162\022.fleet.LightSt"
  "atus\"V\n\014LightControl\022\n\n\002id\030\001 \001(\t\022\'\n\013ligh"
  "tStatus\030\002 \001(\0162\022.fleet.LightStatus\022\021\n\ttim"
  "estamp\030\003 \001(\004\"=\n\020RoadsideInfoList\022)\n\014road"
  "sideList\030\001 \003(\0132\023.fleet.RoadsideInfo*U\n\013L"
  "ightStatus\022\024\n\020UNKNOWN_STATUS_1\020\000\022\017\n\013LIGH"
  "T_GREEN\020\001\022\r\n\tLIGHT_RED\020\002\022\020\n\014LIGHT_YELLOW"
  "\020\003b\006proto3"
  ;
static ::_pbi::once_flag descriptor_table_rs_5finfo_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_rs_5finfo_2eproto = {
    false, false, 410, descriptor_table_protodef_rs_5finfo_2eproto,
    "rs_info.proto",
    &descriptor_table_rs_5finfo_2eproto_once, nullptr, 0, 3,
    schemas, file_default_instances, TableStruct_rs_5finfo_2eproto::offsets,
    file_level_metadata_rs_5finfo_2eproto, file_level_enum_descriptors_rs_5finfo_2eproto,
    file_level_service_descriptors_rs_5finfo_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_rs_5finfo_2eproto_getter() {
  return &descriptor_table_rs_5finfo_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_rs_5finfo_2eproto(&descriptor_table_rs_5finfo_2eproto);
namespace fleet {
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LightStatus_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_rs_5finfo_2eproto);
  return file_level_enum_descriptors_rs_5finfo_2eproto[0];
}
bool LightStatus_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
      return true;
    default:
      return false;
  }
}


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

class RoadsideInfo::_Internal {
 public:
};

RoadsideInfo::RoadsideInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor(arena, is_message_owned);
  // @@protoc_insertion_point(arena_constructor:fleet.RoadsideInfo)
}
RoadsideInfo::RoadsideInfo(const RoadsideInfo& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  RoadsideInfo* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.id_){}
    , decltype(_impl_.longitude_){}
    , decltype(_impl_.latitude_){}
    , decltype(_impl_.altitude_){}
    , decltype(_impl_.islight_){}
    , decltype(_impl_.lightstatus_){}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.id_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), 
      _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.longitude_, &from._impl_.longitude_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.lightstatus_) -
    reinterpret_cast<char*>(&_impl_.longitude_)) + sizeof(_impl_.lightstatus_));
  // @@protoc_insertion_point(copy_constructor:fleet.RoadsideInfo)
}

inline void RoadsideInfo::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_.id_){}
    , decltype(_impl_.longitude_){0}
    , decltype(_impl_.latitude_){0}
    , decltype(_impl_.altitude_){0}
    , decltype(_impl_.islight_){0u}
    , decltype(_impl_.lightstatus_){0}
    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.id_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

RoadsideInfo::~RoadsideInfo() {
  // @@protoc_insertion_point(destructor:fleet.RoadsideInfo)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void RoadsideInfo::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.id_.Destroy();
}

void RoadsideInfo::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void RoadsideInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:fleet.RoadsideInfo)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.id_.ClearToEmpty();
  ::memset(&_impl_.longitude_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&_impl_.lightstatus_) -
      reinterpret_cast<char*>(&_impl_.longitude_)) + sizeof(_impl_.lightstatus_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* RoadsideInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "fleet.RoadsideInfo.id"));
        } else
          goto handle_unusual;
        continue;
      // double longitude = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
          _impl_.longitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // double latitude = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
          _impl_.latitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // double altitude = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
          _impl_.altitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // uint32 isLight = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
          _impl_.islight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .fleet.LightStatus lightStatus = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_lightstatus(static_cast<::fleet::LightStatus>(val));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* RoadsideInfo::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:fleet.RoadsideInfo)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1;
  if (!this->_internal_id().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_id().data(), static_cast<int>(this->_internal_id().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "fleet.RoadsideInfo.id");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_id(), target);
  }

  // double longitude = 2;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_longitude = this->_internal_longitude();
  uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_longitude(), target);
  }

  // double latitude = 3;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_latitude = this->_internal_latitude();
  uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_latitude(), target);
  }

  // double altitude = 4;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_altitude = this->_internal_altitude();
  uint64_t raw_altitude;
  memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude));
  if (raw_altitude != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_altitude(), target);
  }

  // uint32 isLight = 5;
  if (this->_internal_islight() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_islight(), target);
  }

  // .fleet.LightStatus lightStatus = 6;
  if (this->_internal_lightstatus() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
      6, this->_internal_lightstatus(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::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:fleet.RoadsideInfo)
  return target;
}

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

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string id = 1;
  if (!this->_internal_id().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_id());
  }

  // double longitude = 2;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_longitude = this->_internal_longitude();
  uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    total_size += 1 + 8;
  }

  // double latitude = 3;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_latitude = this->_internal_latitude();
  uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    total_size += 1 + 8;
  }

  // double altitude = 4;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_altitude = this->_internal_altitude();
  uint64_t raw_altitude;
  memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude));
  if (raw_altitude != 0) {
    total_size += 1 + 8;
  }

  // uint32 isLight = 5;
  if (this->_internal_islight() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_islight());
  }

  // .fleet.LightStatus lightStatus = 6;
  if (this->_internal_lightstatus() != 0) {
    total_size += 1 +
      ::_pbi::WireFormatLite::EnumSize(this->_internal_lightstatus());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RoadsideInfo::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    RoadsideInfo::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RoadsideInfo::GetClassData() const { return &_class_data_; }


void RoadsideInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<RoadsideInfo*>(&to_msg);
  auto& from = static_cast<const RoadsideInfo&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:fleet.RoadsideInfo)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_longitude = from._internal_longitude();
  uint64_t raw_longitude;
  memcpy(&raw_longitude, &tmp_longitude, sizeof(tmp_longitude));
  if (raw_longitude != 0) {
    _this->_internal_set_longitude(from._internal_longitude());
  }
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_latitude = from._internal_latitude();
  uint64_t raw_latitude;
  memcpy(&raw_latitude, &tmp_latitude, sizeof(tmp_latitude));
  if (raw_latitude != 0) {
    _this->_internal_set_latitude(from._internal_latitude());
  }
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_altitude = from._internal_altitude();
  uint64_t raw_altitude;
  memcpy(&raw_altitude, &tmp_altitude, sizeof(tmp_altitude));
  if (raw_altitude != 0) {
    _this->_internal_set_altitude(from._internal_altitude());
  }
  if (from._internal_islight() != 0) {
    _this->_internal_set_islight(from._internal_islight());
  }
  if (from._internal_lightstatus() != 0) {
    _this->_internal_set_lightstatus(from._internal_lightstatus());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void RoadsideInfo::InternalSwap(RoadsideInfo* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.id_, lhs_arena,
      &other->_impl_.id_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(RoadsideInfo, _impl_.lightstatus_)
      + sizeof(RoadsideInfo::_impl_.lightstatus_)
      - PROTOBUF_FIELD_OFFSET(RoadsideInfo, _impl_.longitude_)>(
          reinterpret_cast<char*>(&_impl_.longitude_),
          reinterpret_cast<char*>(&other->_impl_.longitude_));
}

::PROTOBUF_NAMESPACE_ID::Metadata RoadsideInfo::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_rs_5finfo_2eproto_getter, &descriptor_table_rs_5finfo_2eproto_once,
      file_level_metadata_rs_5finfo_2eproto[0]);
}

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

class LightControl::_Internal {
 public:
};

LightControl::LightControl(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor(arena, is_message_owned);
  // @@protoc_insertion_point(arena_constructor:fleet.LightControl)
}
LightControl::LightControl(const LightControl& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  LightControl* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.id_){}
    , decltype(_impl_.timestamp_){}
    , decltype(_impl_.lightstatus_){}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.id_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), 
      _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.timestamp_, &from._impl_.timestamp_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.lightstatus_) -
    reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.lightstatus_));
  // @@protoc_insertion_point(copy_constructor:fleet.LightControl)
}

inline void LightControl::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_.id_){}
    , decltype(_impl_.timestamp_){uint64_t{0u}}
    , decltype(_impl_.lightstatus_){0}
    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.id_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

LightControl::~LightControl() {
  // @@protoc_insertion_point(destructor:fleet.LightControl)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void LightControl::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.id_.Destroy();
}

void LightControl::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void LightControl::Clear() {
// @@protoc_insertion_point(message_clear_start:fleet.LightControl)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.id_.ClearToEmpty();
  ::memset(&_impl_.timestamp_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&_impl_.lightstatus_) -
      reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.lightstatus_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* LightControl::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "fleet.LightControl.id"));
        } else
          goto handle_unusual;
        continue;
      // .fleet.LightStatus lightStatus = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          _internal_set_lightstatus(static_cast<::fleet::LightStatus>(val));
        } else
          goto handle_unusual;
        continue;
      // uint64 timestamp = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* LightControl::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:fleet.LightControl)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1;
  if (!this->_internal_id().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_id().data(), static_cast<int>(this->_internal_id().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "fleet.LightControl.id");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_id(), target);
  }

  // .fleet.LightStatus lightStatus = 2;
  if (this->_internal_lightstatus() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
      2, this->_internal_lightstatus(), target);
  }

  // uint64 timestamp = 3;
  if (this->_internal_timestamp() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_timestamp(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::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:fleet.LightControl)
  return target;
}

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

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string id = 1;
  if (!this->_internal_id().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_id());
  }

  // uint64 timestamp = 3;
  if (this->_internal_timestamp() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp());
  }

  // .fleet.LightStatus lightStatus = 2;
  if (this->_internal_lightstatus() != 0) {
    total_size += 1 +
      ::_pbi::WireFormatLite::EnumSize(this->_internal_lightstatus());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LightControl::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    LightControl::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LightControl::GetClassData() const { return &_class_data_; }


void LightControl::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<LightControl*>(&to_msg);
  auto& from = static_cast<const LightControl&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:fleet.LightControl)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  if (from._internal_timestamp() != 0) {
    _this->_internal_set_timestamp(from._internal_timestamp());
  }
  if (from._internal_lightstatus() != 0) {
    _this->_internal_set_lightstatus(from._internal_lightstatus());
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void LightControl::InternalSwap(LightControl* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.id_, lhs_arena,
      &other->_impl_.id_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(LightControl, _impl_.lightstatus_)
      + sizeof(LightControl::_impl_.lightstatus_)
      - PROTOBUF_FIELD_OFFSET(LightControl, _impl_.timestamp_)>(
          reinterpret_cast<char*>(&_impl_.timestamp_),
          reinterpret_cast<char*>(&other->_impl_.timestamp_));
}

::PROTOBUF_NAMESPACE_ID::Metadata LightControl::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_rs_5finfo_2eproto_getter, &descriptor_table_rs_5finfo_2eproto_once,
      file_level_metadata_rs_5finfo_2eproto[1]);
}

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

class RoadsideInfoList::_Internal {
 public:
};

RoadsideInfoList::RoadsideInfoList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor(arena, is_message_owned);
  // @@protoc_insertion_point(arena_constructor:fleet.RoadsideInfoList)
}
RoadsideInfoList::RoadsideInfoList(const RoadsideInfoList& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  RoadsideInfoList* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.roadsidelist_){from._impl_.roadsidelist_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:fleet.RoadsideInfoList)
}

inline void RoadsideInfoList::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_.roadsidelist_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

RoadsideInfoList::~RoadsideInfoList() {
  // @@protoc_insertion_point(destructor:fleet.RoadsideInfoList)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void RoadsideInfoList::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.roadsidelist_.~RepeatedPtrField();
}

void RoadsideInfoList::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void RoadsideInfoList::Clear() {
// @@protoc_insertion_point(message_clear_start:fleet.RoadsideInfoList)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.roadsidelist_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* RoadsideInfoList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated .fleet.RoadsideInfo roadsideList = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_roadsidelist(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* RoadsideInfoList::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:fleet.RoadsideInfoList)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .fleet.RoadsideInfo roadsideList = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_roadsidelist_size()); i < n; i++) {
    const auto& repfield = this->_internal_roadsidelist(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::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:fleet.RoadsideInfoList)
  return target;
}

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

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .fleet.RoadsideInfo roadsideList = 1;
  total_size += 1UL * this->_internal_roadsidelist_size();
  for (const auto& msg : this->_impl_.roadsidelist_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RoadsideInfoList::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    RoadsideInfoList::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RoadsideInfoList::GetClassData() const { return &_class_data_; }


void RoadsideInfoList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<RoadsideInfoList*>(&to_msg);
  auto& from = static_cast<const RoadsideInfoList&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:fleet.RoadsideInfoList)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_impl_.roadsidelist_.MergeFrom(from._impl_.roadsidelist_);
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void RoadsideInfoList::InternalSwap(RoadsideInfoList* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _impl_.roadsidelist_.InternalSwap(&other->_impl_.roadsidelist_);
}

::PROTOBUF_NAMESPACE_ID::Metadata RoadsideInfoList::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_rs_5finfo_2eproto_getter, &descriptor_table_rs_5finfo_2eproto_once,
      file_level_metadata_rs_5finfo_2eproto[2]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace fleet
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::fleet::RoadsideInfo*
Arena::CreateMaybeMessage< ::fleet::RoadsideInfo >(Arena* arena) {
  return Arena::CreateMessageInternal< ::fleet::RoadsideInfo >(arena);
}
template<> PROTOBUF_NOINLINE ::fleet::LightControl*
Arena::CreateMaybeMessage< ::fleet::LightControl >(Arena* arena) {
  return Arena::CreateMessageInternal< ::fleet::LightControl >(arena);
}
template<> PROTOBUF_NOINLINE ::fleet::RoadsideInfoList*
Arena::CreateMaybeMessage< ::fleet::RoadsideInfoList >(Arena* arena) {
  return Arena::CreateMessageInternal< ::fleet::RoadsideInfoList >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

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