// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/metrics_proto/device_state.proto
// Protobuf C++ Version: 7.35.1

#include "third_party/metrics_proto/device_state.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace metrics {
}  // namespace metrics
namespace metrics {
PROTOBUF_CONSTINIT const uint32_t ThermalState_internal_data_[] = {
    327680u, 0u, };
static const char ThermalState_names[] = {
    "THERMAL_STATE_CRITICAL"
    "THERMAL_STATE_FAIR"
    "THERMAL_STATE_NOMINAL"
    "THERMAL_STATE_SERIOUS"
    "THERMAL_STATE_UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry ThermalState_entries[] = {
    {{&ThermalState_names[0], 22}, 4},
    {{&ThermalState_names[22], 18}, 2},
    {{&ThermalState_names[40], 21}, 1},
    {{&ThermalState_names[61], 21}, 3},
    {{&ThermalState_names[82], 21}, 0},
};

static const int ThermalState_entries_by_number[] = {
    4,  // 0 -> THERMAL_STATE_UNKNOWN
    2,  // 1 -> THERMAL_STATE_NOMINAL
    1,  // 2 -> THERMAL_STATE_FAIR
    3,  // 3 -> THERMAL_STATE_SERIOUS
    0,  // 4 -> THERMAL_STATE_CRITICAL
};

bool ThermalState_Parse(::absl::string_view name,
                                  ThermalState* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      ThermalState_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<ThermalState>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    ThermalState_strings[5] = {};

const ::std::string& ThermalState_Name(ThermalState value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      ThermalState_entries, ThermalState_entries_by_number, 5,
      ThermalState_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(ThermalState_entries,
                                  ThermalState_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : ThermalState_strings[idx].get();
}
// @@protoc_insertion_point(namespace_scope)
}  // namespace metrics
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
