1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: protos/perfetto/config/interceptors/console_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace perfetto {
47 namespace protos {
48 class ConsoleConfig;
49 struct ConsoleConfigDefaultTypeInternal;
50 extern ConsoleConfigDefaultTypeInternal _ConsoleConfig_default_instance_;
51 }  // namespace protos
52 }  // namespace perfetto
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::perfetto::protos::ConsoleConfig* Arena::CreateMaybeMessage<::perfetto::protos::ConsoleConfig>(Arena*);
55 PROTOBUF_NAMESPACE_CLOSE
56 namespace perfetto {
57 namespace protos {
58 
59 enum ConsoleConfig_Output : int {
60   ConsoleConfig_Output_OUTPUT_UNSPECIFIED = 0,
61   ConsoleConfig_Output_OUTPUT_STDOUT = 1,
62   ConsoleConfig_Output_OUTPUT_STDERR = 2
63 };
64 bool ConsoleConfig_Output_IsValid(int value);
65 constexpr ConsoleConfig_Output ConsoleConfig_Output_Output_MIN = ConsoleConfig_Output_OUTPUT_UNSPECIFIED;
66 constexpr ConsoleConfig_Output ConsoleConfig_Output_Output_MAX = ConsoleConfig_Output_OUTPUT_STDERR;
67 constexpr int ConsoleConfig_Output_Output_ARRAYSIZE = ConsoleConfig_Output_Output_MAX + 1;
68 
69 const std::string& ConsoleConfig_Output_Name(ConsoleConfig_Output value);
70 template<typename T>
ConsoleConfig_Output_Name(T enum_t_value)71 inline const std::string& ConsoleConfig_Output_Name(T enum_t_value) {
72   static_assert(::std::is_same<T, ConsoleConfig_Output>::value ||
73     ::std::is_integral<T>::value,
74     "Incorrect type passed to function ConsoleConfig_Output_Name.");
75   return ConsoleConfig_Output_Name(static_cast<ConsoleConfig_Output>(enum_t_value));
76 }
77 bool ConsoleConfig_Output_Parse(
78     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConsoleConfig_Output* value);
79 // ===================================================================
80 
81 class ConsoleConfig final :
82     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.ConsoleConfig) */ {
83  public:
ConsoleConfig()84   inline ConsoleConfig() : ConsoleConfig(nullptr) {}
85   ~ConsoleConfig() override;
86   explicit PROTOBUF_CONSTEXPR ConsoleConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
87 
88   ConsoleConfig(const ConsoleConfig& from);
ConsoleConfig(ConsoleConfig && from)89   ConsoleConfig(ConsoleConfig&& from) noexcept
90     : ConsoleConfig() {
91     *this = ::std::move(from);
92   }
93 
94   inline ConsoleConfig& operator=(const ConsoleConfig& from) {
95     if (this == &from) return *this;
96     CopyFrom(from);
97     return *this;
98   }
99   inline ConsoleConfig& operator=(ConsoleConfig&& from) noexcept {
100     if (this == &from) return *this;
101     if (GetOwningArena() == from.GetOwningArena()
102   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103         && GetOwningArena() != nullptr
104   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
105     ) {
106       InternalSwap(&from);
107     } else {
108       CopyFrom(from);
109     }
110     return *this;
111   }
112 
unknown_fields()113   inline const std::string& unknown_fields() const {
114     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
115   }
mutable_unknown_fields()116   inline std::string* mutable_unknown_fields() {
117     return _internal_metadata_.mutable_unknown_fields<std::string>();
118   }
119 
default_instance()120   static const ConsoleConfig& default_instance() {
121     return *internal_default_instance();
122   }
internal_default_instance()123   static inline const ConsoleConfig* internal_default_instance() {
124     return reinterpret_cast<const ConsoleConfig*>(
125                &_ConsoleConfig_default_instance_);
126   }
127   static constexpr int kIndexInFileMessages =
128     0;
129 
swap(ConsoleConfig & a,ConsoleConfig & b)130   friend void swap(ConsoleConfig& a, ConsoleConfig& b) {
131     a.Swap(&b);
132   }
Swap(ConsoleConfig * other)133   inline void Swap(ConsoleConfig* other) {
134     if (other == this) return;
135   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
136     if (GetOwningArena() != nullptr &&
137         GetOwningArena() == other->GetOwningArena()) {
138    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
139     if (GetOwningArena() == other->GetOwningArena()) {
140   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
141       InternalSwap(other);
142     } else {
143       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
144     }
145   }
146   void UnsafeArenaSwap(ConsoleConfig* other) {
147     if (other == this) return;
148     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
149     InternalSwap(other);
150   }
151 
152   // implements Message ----------------------------------------------
153 
154   ConsoleConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
155     return CreateMaybeMessage<ConsoleConfig>(arena);
156   }
157   ConsoleConfig* New() const {
158     return New(nullptr);
159   }
160   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
161   void CopyFrom(const ConsoleConfig& from);
162   void MergeFrom(const ConsoleConfig& from);
163   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164   bool IsInitialized() const final;
165 
166   size_t ByteSizeLong() const final;
167   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
168   ::uint8_t* _InternalSerialize(
169       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
170   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
171 
172   private:
173   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
174   void SharedDtor();
175   void SetCachedSize(int size) const;
176   void InternalSwap(ConsoleConfig* other);
177 
178   private:
179   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181     return "perfetto.protos.ConsoleConfig";
182   }
183   protected:
184   explicit ConsoleConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
185                        bool is_message_owned = false);
186   public:
187 
188   std::string GetTypeName() const final;
189 
190   // nested types ----------------------------------------------------
191 
192   typedef ConsoleConfig_Output Output;
193   static constexpr Output OUTPUT_UNSPECIFIED =
194     ConsoleConfig_Output_OUTPUT_UNSPECIFIED;
195   static constexpr Output OUTPUT_STDOUT =
196     ConsoleConfig_Output_OUTPUT_STDOUT;
197   static constexpr Output OUTPUT_STDERR =
198     ConsoleConfig_Output_OUTPUT_STDERR;
199   static inline bool Output_IsValid(int value) {
200     return ConsoleConfig_Output_IsValid(value);
201   }
202   static constexpr Output Output_MIN =
203     ConsoleConfig_Output_Output_MIN;
204   static constexpr Output Output_MAX =
205     ConsoleConfig_Output_Output_MAX;
206   static constexpr int Output_ARRAYSIZE =
207     ConsoleConfig_Output_Output_ARRAYSIZE;
208   template<typename T>
209   static inline const std::string& Output_Name(T enum_t_value) {
210     static_assert(::std::is_same<T, Output>::value ||
211       ::std::is_integral<T>::value,
212       "Incorrect type passed to function Output_Name.");
213     return ConsoleConfig_Output_Name(enum_t_value);
214   }
215   static inline bool Output_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
216       Output* value) {
217     return ConsoleConfig_Output_Parse(name, value);
218   }
219 
220   // accessors -------------------------------------------------------
221 
222   enum : int {
223     kOutputFieldNumber = 1,
224     kEnableColorsFieldNumber = 2,
225   };
226   // optional .perfetto.protos.ConsoleConfig.Output output = 1;
227   bool has_output() const;
228   private:
229   bool _internal_has_output() const;
230   public:
231   void clear_output();
232   ::perfetto::protos::ConsoleConfig_Output output() const;
233   void set_output(::perfetto::protos::ConsoleConfig_Output value);
234   private:
235   ::perfetto::protos::ConsoleConfig_Output _internal_output() const;
236   void _internal_set_output(::perfetto::protos::ConsoleConfig_Output value);
237   public:
238 
239   // optional bool enable_colors = 2;
240   bool has_enable_colors() const;
241   private:
242   bool _internal_has_enable_colors() const;
243   public:
244   void clear_enable_colors();
245   bool enable_colors() const;
246   void set_enable_colors(bool value);
247   private:
248   bool _internal_enable_colors() const;
249   void _internal_set_enable_colors(bool value);
250   public:
251 
252   // @@protoc_insertion_point(class_scope:perfetto.protos.ConsoleConfig)
253  private:
254   class _Internal;
255 
256   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
257   typedef void InternalArenaConstructable_;
258   typedef void DestructorSkippable_;
259   struct Impl_ {
260     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
261     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
262     int output_;
263     bool enable_colors_;
264   };
265   union { Impl_ _impl_; };
266   friend struct ::TableStruct_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto;
267 };
268 // ===================================================================
269 
270 
271 // ===================================================================
272 
273 #ifdef __GNUC__
274   #pragma GCC diagnostic push
275   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 #endif  // __GNUC__
277 // ConsoleConfig
278 
279 // optional .perfetto.protos.ConsoleConfig.Output output = 1;
_internal_has_output()280 inline bool ConsoleConfig::_internal_has_output() const {
281   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
282   return value;
283 }
has_output()284 inline bool ConsoleConfig::has_output() const {
285   return _internal_has_output();
286 }
clear_output()287 inline void ConsoleConfig::clear_output() {
288   _impl_.output_ = 0;
289   _impl_._has_bits_[0] &= ~0x00000001u;
290 }
_internal_output()291 inline ::perfetto::protos::ConsoleConfig_Output ConsoleConfig::_internal_output() const {
292   return static_cast< ::perfetto::protos::ConsoleConfig_Output >(_impl_.output_);
293 }
output()294 inline ::perfetto::protos::ConsoleConfig_Output ConsoleConfig::output() const {
295   // @@protoc_insertion_point(field_get:perfetto.protos.ConsoleConfig.output)
296   return _internal_output();
297 }
_internal_set_output(::perfetto::protos::ConsoleConfig_Output value)298 inline void ConsoleConfig::_internal_set_output(::perfetto::protos::ConsoleConfig_Output value) {
299   assert(::perfetto::protos::ConsoleConfig_Output_IsValid(value));
300   _impl_._has_bits_[0] |= 0x00000001u;
301   _impl_.output_ = value;
302 }
set_output(::perfetto::protos::ConsoleConfig_Output value)303 inline void ConsoleConfig::set_output(::perfetto::protos::ConsoleConfig_Output value) {
304   _internal_set_output(value);
305   // @@protoc_insertion_point(field_set:perfetto.protos.ConsoleConfig.output)
306 }
307 
308 // optional bool enable_colors = 2;
_internal_has_enable_colors()309 inline bool ConsoleConfig::_internal_has_enable_colors() const {
310   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
311   return value;
312 }
has_enable_colors()313 inline bool ConsoleConfig::has_enable_colors() const {
314   return _internal_has_enable_colors();
315 }
clear_enable_colors()316 inline void ConsoleConfig::clear_enable_colors() {
317   _impl_.enable_colors_ = false;
318   _impl_._has_bits_[0] &= ~0x00000002u;
319 }
_internal_enable_colors()320 inline bool ConsoleConfig::_internal_enable_colors() const {
321   return _impl_.enable_colors_;
322 }
enable_colors()323 inline bool ConsoleConfig::enable_colors() const {
324   // @@protoc_insertion_point(field_get:perfetto.protos.ConsoleConfig.enable_colors)
325   return _internal_enable_colors();
326 }
_internal_set_enable_colors(bool value)327 inline void ConsoleConfig::_internal_set_enable_colors(bool value) {
328   _impl_._has_bits_[0] |= 0x00000002u;
329   _impl_.enable_colors_ = value;
330 }
set_enable_colors(bool value)331 inline void ConsoleConfig::set_enable_colors(bool value) {
332   _internal_set_enable_colors(value);
333   // @@protoc_insertion_point(field_set:perfetto.protos.ConsoleConfig.enable_colors)
334 }
335 
336 #ifdef __GNUC__
337   #pragma GCC diagnostic pop
338 #endif  // __GNUC__
339 
340 // @@protoc_insertion_point(namespace_scope)
341 
342 }  // namespace protos
343 }  // namespace perfetto
344 
345 PROTOBUF_NAMESPACE_OPEN
346 
347 template <> struct is_proto_enum< ::perfetto::protos::ConsoleConfig_Output> : ::std::true_type {};
348 
349 PROTOBUF_NAMESPACE_CLOSE
350 
351 // @@protoc_insertion_point(global_scope)
352 
353 #include <google/protobuf/port_undef.inc>
354 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2finterceptors_2fconsole_5fconfig_2eproto
355