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

#ifndef GOOGLE_PROTOBUF_INCLUDED_trafficlight_5fcloud_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_trafficlight_5fcloud_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_trafficlight_5fcloud_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_trafficlight_5fcloud_2eproto {
  static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_trafficlight_5fcloud_2eproto;
namespace cloud {
class IntersectionTrafficMode;
struct IntersectionTrafficModeDefaultTypeInternal;
extern IntersectionTrafficModeDefaultTypeInternal _IntersectionTrafficMode_default_instance_;
}  // namespace cloud
PROTOBUF_NAMESPACE_OPEN
template<> ::cloud::IntersectionTrafficMode* Arena::CreateMaybeMessage<::cloud::IntersectionTrafficMode>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace cloud {

enum IntersectionTrafficMode_TrafficMode : int {
  IntersectionTrafficMode_TrafficMode_UNKNOWN_MODE = 0,
  IntersectionTrafficMode_TrafficMode_MANNED_MODE = 1,
  IntersectionTrafficMode_TrafficMode_DRIVERLESS_MODE = 2,
  IntersectionTrafficMode_TrafficMode_NONE_VEHICLE_MODE = 3,
  IntersectionTrafficMode_TrafficMode_IntersectionTrafficMode_TrafficMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
  IntersectionTrafficMode_TrafficMode_IntersectionTrafficMode_TrafficMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool IntersectionTrafficMode_TrafficMode_IsValid(int value);
constexpr IntersectionTrafficMode_TrafficMode IntersectionTrafficMode_TrafficMode_TrafficMode_MIN = IntersectionTrafficMode_TrafficMode_UNKNOWN_MODE;
constexpr IntersectionTrafficMode_TrafficMode IntersectionTrafficMode_TrafficMode_TrafficMode_MAX = IntersectionTrafficMode_TrafficMode_NONE_VEHICLE_MODE;
constexpr int IntersectionTrafficMode_TrafficMode_TrafficMode_ARRAYSIZE = IntersectionTrafficMode_TrafficMode_TrafficMode_MAX + 1;

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

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

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

  inline IntersectionTrafficMode& operator=(const IntersectionTrafficMode& from) {
    CopyFrom(from);
    return *this;
  }
  inline IntersectionTrafficMode& operator=(IntersectionTrafficMode&& 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 IntersectionTrafficMode& default_instance() {
    return *internal_default_instance();
  }
  static inline const IntersectionTrafficMode* internal_default_instance() {
    return reinterpret_cast<const IntersectionTrafficMode*>(
               &_IntersectionTrafficMode_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(IntersectionTrafficMode& a, IntersectionTrafficMode& b) {
    a.Swap(&b);
  }
  inline void Swap(IntersectionTrafficMode* 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(IntersectionTrafficMode* other) {
    if (other == this) return;
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
    InternalSwap(other);
  }

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

  IntersectionTrafficMode* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
    return CreateMaybeMessage<IntersectionTrafficMode>(arena);
  }
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  void CopyFrom(const IntersectionTrafficMode& from);
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  void MergeFrom( const IntersectionTrafficMode& from) {
    IntersectionTrafficMode::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(IntersectionTrafficMode* other);

  private:
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "cloud.IntersectionTrafficMode";
  }
  protected:
  explicit IntersectionTrafficMode(::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 ----------------------------------------------------

  typedef IntersectionTrafficMode_TrafficMode TrafficMode;
  static constexpr TrafficMode UNKNOWN_MODE =
    IntersectionTrafficMode_TrafficMode_UNKNOWN_MODE;
  static constexpr TrafficMode MANNED_MODE =
    IntersectionTrafficMode_TrafficMode_MANNED_MODE;
  static constexpr TrafficMode DRIVERLESS_MODE =
    IntersectionTrafficMode_TrafficMode_DRIVERLESS_MODE;
  static constexpr TrafficMode NONE_VEHICLE_MODE =
    IntersectionTrafficMode_TrafficMode_NONE_VEHICLE_MODE;
  static inline bool TrafficMode_IsValid(int value) {
    return IntersectionTrafficMode_TrafficMode_IsValid(value);
  }
  static constexpr TrafficMode TrafficMode_MIN =
    IntersectionTrafficMode_TrafficMode_TrafficMode_MIN;
  static constexpr TrafficMode TrafficMode_MAX =
    IntersectionTrafficMode_TrafficMode_TrafficMode_MAX;
  static constexpr int TrafficMode_ARRAYSIZE =
    IntersectionTrafficMode_TrafficMode_TrafficMode_ARRAYSIZE;
  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  TrafficMode_descriptor() {
    return IntersectionTrafficMode_TrafficMode_descriptor();
  }
  template<typename T>
  static inline const std::string& TrafficMode_Name(T enum_t_value) {
    static_assert(::std::is_same<T, TrafficMode>::value ||
      ::std::is_integral<T>::value,
      "Incorrect type passed to function TrafficMode_Name.");
    return IntersectionTrafficMode_TrafficMode_Name(enum_t_value);
  }
  static inline bool TrafficMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
      TrafficMode* value) {
    return IntersectionTrafficMode_TrafficMode_Parse(name, value);
  }

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

  enum : int {
    kUpdateTimeFieldNumber = 2,
    kTrafficModeFieldNumber = 1,
  };
  // uint64 update_time = 2;
  void clear_update_time();
  uint64_t update_time() const;
  void set_update_time(uint64_t value);
  private:
  uint64_t _internal_update_time() const;
  void _internal_set_update_time(uint64_t value);
  public:

  // .cloud.IntersectionTrafficMode.TrafficMode traffic_mode = 1;
  void clear_traffic_mode();
  ::cloud::IntersectionTrafficMode_TrafficMode traffic_mode() const;
  void set_traffic_mode(::cloud::IntersectionTrafficMode_TrafficMode value);
  private:
  ::cloud::IntersectionTrafficMode_TrafficMode _internal_traffic_mode() const;
  void _internal_set_traffic_mode(::cloud::IntersectionTrafficMode_TrafficMode value);
  public:

  // @@protoc_insertion_point(class_scope:cloud.IntersectionTrafficMode)
 private:
  class _Internal;

  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  typedef void InternalArenaConstructable_;
  typedef void DestructorSkippable_;
  struct Impl_ {
    uint64_t update_time_;
    int traffic_mode_;
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_trafficlight_5fcloud_2eproto;
};
// ===================================================================


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

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

// .cloud.IntersectionTrafficMode.TrafficMode traffic_mode = 1;
inline void IntersectionTrafficMode::clear_traffic_mode() {
  _impl_.traffic_mode_ = 0;
}
inline ::cloud::IntersectionTrafficMode_TrafficMode IntersectionTrafficMode::_internal_traffic_mode() const {
  return static_cast< ::cloud::IntersectionTrafficMode_TrafficMode >(_impl_.traffic_mode_);
}
inline ::cloud::IntersectionTrafficMode_TrafficMode IntersectionTrafficMode::traffic_mode() const {
  // @@protoc_insertion_point(field_get:cloud.IntersectionTrafficMode.traffic_mode)
  return _internal_traffic_mode();
}
inline void IntersectionTrafficMode::_internal_set_traffic_mode(::cloud::IntersectionTrafficMode_TrafficMode value) {
  
  _impl_.traffic_mode_ = value;
}
inline void IntersectionTrafficMode::set_traffic_mode(::cloud::IntersectionTrafficMode_TrafficMode value) {
  _internal_set_traffic_mode(value);
  // @@protoc_insertion_point(field_set:cloud.IntersectionTrafficMode.traffic_mode)
}

// uint64 update_time = 2;
inline void IntersectionTrafficMode::clear_update_time() {
  _impl_.update_time_ = uint64_t{0u};
}
inline uint64_t IntersectionTrafficMode::_internal_update_time() const {
  return _impl_.update_time_;
}
inline uint64_t IntersectionTrafficMode::update_time() const {
  // @@protoc_insertion_point(field_get:cloud.IntersectionTrafficMode.update_time)
  return _internal_update_time();
}
inline void IntersectionTrafficMode::_internal_set_update_time(uint64_t value) {
  
  _impl_.update_time_ = value;
}
inline void IntersectionTrafficMode::set_update_time(uint64_t value) {
  _internal_set_update_time(value);
  // @@protoc_insertion_point(field_set:cloud.IntersectionTrafficMode.update_time)
}

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

// @@protoc_insertion_point(namespace_scope)

}  // namespace cloud

PROTOBUF_NAMESPACE_OPEN

template <> struct is_proto_enum< ::cloud::IntersectionTrafficMode_TrafficMode> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::cloud::IntersectionTrafficMode_TrafficMode>() {
  return ::cloud::IntersectionTrafficMode_TrafficMode_descriptor();
}

PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

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