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

#ifndef GOOGLE_PROTOBUF_INCLUDED_monitor_5finfo_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_monitor_5finfo_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021010 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_monitor_5finfo_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_monitor_5finfo_2eproto {
  static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_monitor_5finfo_2eproto;
namespace fleet {
class MonitorInfo;
struct MonitorInfoDefaultTypeInternal;
extern MonitorInfoDefaultTypeInternal _MonitorInfo_default_instance_;
}  // namespace fleet
PROTOBUF_NAMESPACE_OPEN
template<> ::fleet::MonitorInfo* Arena::CreateMaybeMessage<::fleet::MonitorInfo>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace fleet {

enum RoadsideStatus : int {
  UNKNOWN_STATUS = 0,
  ONLINE = 1,
  OFFLINE = 2,
  FAULT = 3,
  RoadsideStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  RoadsideStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool RoadsideStatus_IsValid(int value);
constexpr RoadsideStatus RoadsideStatus_MIN = UNKNOWN_STATUS;
constexpr RoadsideStatus RoadsideStatus_MAX = FAULT;
constexpr int RoadsideStatus_ARRAYSIZE = RoadsideStatus_MAX + 1;

const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RoadsideStatus_descriptor();
template<typename T>
inline const std::string& RoadsideStatus_Name(T enum_t_value) {
  static_assert(::std::is_same<T, RoadsideStatus>::value ||
    ::std::is_integral<T>::value,
    "Incorrect type passed to function RoadsideStatus_Name.");
  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
    RoadsideStatus_descriptor(), enum_t_value);
}
inline bool RoadsideStatus_Parse(
    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RoadsideStatus* value) {
  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<RoadsideStatus>(
    RoadsideStatus_descriptor(), name, value);
}
// ===================================================================

class MonitorInfo final :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:fleet.MonitorInfo) */ {
 public:
  inline MonitorInfo() : MonitorInfo(nullptr) {}
  ~MonitorInfo() override;
  explicit PROTOBUF_CONSTEXPR MonitorInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);

  MonitorInfo(const MonitorInfo& from);
  MonitorInfo(MonitorInfo&& from) noexcept
    : MonitorInfo() {
    *this = ::std::move(from);
  }

  inline MonitorInfo& operator=(const MonitorInfo& from) {
    CopyFrom(from);
    return *this;
  }
  inline MonitorInfo& operator=(MonitorInfo&& from) noexcept {
    if (this == &from) return *this;
    if (GetOwningArena() == from.GetOwningArena()
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetOwningArena() != nullptr
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const MonitorInfo& default_instance() {
    return *internal_default_instance();
  }
  static inline const MonitorInfo* internal_default_instance() {
    return reinterpret_cast<const MonitorInfo*>(
               &_MonitorInfo_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(MonitorInfo& a, MonitorInfo& b) {
    a.Swap(&b);
  }
  inline void Swap(MonitorInfo* other) {
    if (other == this) return;
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() != nullptr &&
        GetOwningArena() == other->GetOwningArena()) {
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetOwningArena() == other->GetOwningArena()) {
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(MonitorInfo* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  MonitorInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<MonitorInfo>(arena);
  }
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  void CopyFrom(const MonitorInfo& from);
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  void MergeFrom( const MonitorInfo& from) {
    MonitorInfo::MergeImpl(*this, from);
  }
  private:
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  public:
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  uint8_t* _InternalSerialize(
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }

  private:
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(MonitorInfo* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "fleet.MonitorInfo";
  }
  protected:
  explicit MonitorInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                       bool is_message_owned = false);
  public:

  static const ClassData _class_data_;
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  enum : int {
    kRoadsideIdFieldNumber = 1,
    kLongitudeFieldNumber = 2,
    kLatitudeFieldNumber = 3,
    kTimestampFieldNumber = 4,
    kStatusFieldNumber = 5,
    kBatteryFieldNumber = 6,
  };
  // string roadside_id = 1;
  void clear_roadside_id();
  const std::string& roadside_id() const;
  template <typename ArgT0 = const std::string&, typename... ArgT>
  void set_roadside_id(ArgT0&& arg0, ArgT... args);
  std::string* mutable_roadside_id();
  PROTOBUF_NODISCARD std::string* release_roadside_id();
  void set_allocated_roadside_id(std::string* roadside_id);
  private:
  const std::string& _internal_roadside_id() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_roadside_id(const std::string& value);
  std::string* _internal_mutable_roadside_id();
  public:

  // double longitude = 2;
  void clear_longitude();
  double longitude() const;
  void set_longitude(double value);
  private:
  double _internal_longitude() const;
  void _internal_set_longitude(double value);
  public:

  // double latitude = 3;
  void clear_latitude();
  double latitude() const;
  void set_latitude(double value);
  private:
  double _internal_latitude() const;
  void _internal_set_latitude(double value);
  public:

  // uint64 timestamp = 4;
  void clear_timestamp();
  uint64_t timestamp() const;
  void set_timestamp(uint64_t value);
  private:
  uint64_t _internal_timestamp() const;
  void _internal_set_timestamp(uint64_t value);
  public:

  // .fleet.RoadsideStatus status = 5;
  void clear_status();
  ::fleet::RoadsideStatus status() const;
  void set_status(::fleet::RoadsideStatus value);
  private:
  ::fleet::RoadsideStatus _internal_status() const;
  void _internal_set_status(::fleet::RoadsideStatus value);
  public:

  // float battery = 6;
  void clear_battery();
  float battery() const;
  void set_battery(float value);
  private:
  float _internal_battery() const;
  void _internal_set_battery(float value);
  public:

  // @@protoc_insertion_point(class_scope:fleet.MonitorInfo)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr roadside_id_;
    double longitude_;
    double latitude_;
    uint64_t timestamp_;
    int status_;
    float battery_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_monitor_5finfo_2eproto;
};
// ===================================================================


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

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// MonitorInfo

// string roadside_id = 1;
inline void MonitorInfo::clear_roadside_id() {
  _impl_.roadside_id_.ClearToEmpty();
}
inline const std::string& MonitorInfo::roadside_id() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.roadside_id)
  return _internal_roadside_id();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void MonitorInfo::set_roadside_id(ArgT0&& arg0, ArgT... args) {
 
 _impl_.roadside_id_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.roadside_id)
}
inline std::string* MonitorInfo::mutable_roadside_id() {
  std::string* _s = _internal_mutable_roadside_id();
  // @@protoc_insertion_point(field_mutable:fleet.MonitorInfo.roadside_id)
  return _s;
}
inline const std::string& MonitorInfo::_internal_roadside_id() const {
  return _impl_.roadside_id_.Get();
}
inline void MonitorInfo::_internal_set_roadside_id(const std::string& value) {
  
  _impl_.roadside_id_.Set(value, GetArenaForAllocation());
}
inline std::string* MonitorInfo::_internal_mutable_roadside_id() {
  
  return _impl_.roadside_id_.Mutable(GetArenaForAllocation());
}
inline std::string* MonitorInfo::release_roadside_id() {
  // @@protoc_insertion_point(field_release:fleet.MonitorInfo.roadside_id)
  return _impl_.roadside_id_.Release();
}
inline void MonitorInfo::set_allocated_roadside_id(std::string* roadside_id) {
  if (roadside_id != nullptr) {
    
  } else {
    
  }
  _impl_.roadside_id_.SetAllocated(roadside_id, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (_impl_.roadside_id_.IsDefault()) {
    _impl_.roadside_id_.Set("", GetArenaForAllocation());
  }
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:fleet.MonitorInfo.roadside_id)
}

// double longitude = 2;
inline void MonitorInfo::clear_longitude() {
  _impl_.longitude_ = 0;
}
inline double MonitorInfo::_internal_longitude() const {
  return _impl_.longitude_;
}
inline double MonitorInfo::longitude() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.longitude)
  return _internal_longitude();
}
inline void MonitorInfo::_internal_set_longitude(double value) {
  
  _impl_.longitude_ = value;
}
inline void MonitorInfo::set_longitude(double value) {
  _internal_set_longitude(value);
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.longitude)
}

// double latitude = 3;
inline void MonitorInfo::clear_latitude() {
  _impl_.latitude_ = 0;
}
inline double MonitorInfo::_internal_latitude() const {
  return _impl_.latitude_;
}
inline double MonitorInfo::latitude() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.latitude)
  return _internal_latitude();
}
inline void MonitorInfo::_internal_set_latitude(double value) {
  
  _impl_.latitude_ = value;
}
inline void MonitorInfo::set_latitude(double value) {
  _internal_set_latitude(value);
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.latitude)
}

// uint64 timestamp = 4;
inline void MonitorInfo::clear_timestamp() {
  _impl_.timestamp_ = uint64_t{0u};
}
inline uint64_t MonitorInfo::_internal_timestamp() const {
  return _impl_.timestamp_;
}
inline uint64_t MonitorInfo::timestamp() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.timestamp)
  return _internal_timestamp();
}
inline void MonitorInfo::_internal_set_timestamp(uint64_t value) {
  
  _impl_.timestamp_ = value;
}
inline void MonitorInfo::set_timestamp(uint64_t value) {
  _internal_set_timestamp(value);
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.timestamp)
}

// .fleet.RoadsideStatus status = 5;
inline void MonitorInfo::clear_status() {
  _impl_.status_ = 0;
}
inline ::fleet::RoadsideStatus MonitorInfo::_internal_status() const {
  return static_cast< ::fleet::RoadsideStatus >(_impl_.status_);
}
inline ::fleet::RoadsideStatus MonitorInfo::status() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.status)
  return _internal_status();
}
inline void MonitorInfo::_internal_set_status(::fleet::RoadsideStatus value) {
  
  _impl_.status_ = value;
}
inline void MonitorInfo::set_status(::fleet::RoadsideStatus value) {
  _internal_set_status(value);
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.status)
}

// float battery = 6;
inline void MonitorInfo::clear_battery() {
  _impl_.battery_ = 0;
}
inline float MonitorInfo::_internal_battery() const {
  return _impl_.battery_;
}
inline float MonitorInfo::battery() const {
  // @@protoc_insertion_point(field_get:fleet.MonitorInfo.battery)
  return _internal_battery();
}
inline void MonitorInfo::_internal_set_battery(float value) {
  
  _impl_.battery_ = value;
}
inline void MonitorInfo::set_battery(float value) {
  _internal_set_battery(value);
  // @@protoc_insertion_point(field_set:fleet.MonitorInfo.battery)
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)

}  // namespace fleet

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::fleet::RoadsideStatus> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::fleet::RoadsideStatus>() {
  return ::fleet::RoadsideStatus_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_monitor_5finfo_2eproto
