1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: device_state.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_device_5fstate_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_device_5fstate_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
29 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
30 #include <google/protobuf/generated_enum_util.h>
31 // @@protoc_insertion_point(includes)
32 #include <google/protobuf/port_def.inc>
33 #define PROTOBUF_INTERNAL_EXPORT_device_5fstate_2eproto
34 PROTOBUF_NAMESPACE_OPEN
35 namespace internal {
36 class AnyMetadata;
37 }  // namespace internal
38 PROTOBUF_NAMESPACE_CLOSE
39 
40 // Internal implementation detail -- do not use these members.
41 struct TableStruct_device_5fstate_2eproto {
42   static const uint32_t offsets[];
43 };
44 PROTOBUF_NAMESPACE_OPEN
45 PROTOBUF_NAMESPACE_CLOSE
46 namespace metrics {
47 
48 enum ThermalState : int {
49   THERMAL_STATE_UNKNOWN = 0,
50   THERMAL_STATE_NOMINAL = 1,
51   THERMAL_STATE_FAIR = 2,
52   THERMAL_STATE_SERIOUS = 3,
53   THERMAL_STATE_CRITICAL = 4
54 };
55 bool ThermalState_IsValid(int value);
56 constexpr ThermalState ThermalState_MIN = THERMAL_STATE_UNKNOWN;
57 constexpr ThermalState ThermalState_MAX = THERMAL_STATE_CRITICAL;
58 constexpr int ThermalState_ARRAYSIZE = ThermalState_MAX + 1;
59 
60 const std::string& ThermalState_Name(ThermalState value);
61 template<typename T>
ThermalState_Name(T enum_t_value)62 inline const std::string& ThermalState_Name(T enum_t_value) {
63   static_assert(::std::is_same<T, ThermalState>::value ||
64     ::std::is_integral<T>::value,
65     "Incorrect type passed to function ThermalState_Name.");
66   return ThermalState_Name(static_cast<ThermalState>(enum_t_value));
67 }
68 bool ThermalState_Parse(
69     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ThermalState* value);
70 // ===================================================================
71 
72 
73 // ===================================================================
74 
75 
76 // ===================================================================
77 
78 #ifdef __GNUC__
79   #pragma GCC diagnostic push
80   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
81 #endif  // __GNUC__
82 #ifdef __GNUC__
83   #pragma GCC diagnostic pop
84 #endif  // __GNUC__
85 
86 // @@protoc_insertion_point(namespace_scope)
87 
88 }  // namespace metrics
89 
90 PROTOBUF_NAMESPACE_OPEN
91 
92 template <> struct is_proto_enum< ::metrics::ThermalState> : ::std::true_type {};
93 
94 PROTOBUF_NAMESPACE_CLOSE
95 
96 // @@protoc_insertion_point(global_scope)
97 
98 #include <google/protobuf/port_undef.inc>
99 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_device_5fstate_2eproto
100