1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: trace_log.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_trace_5flog_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_trace_5flog_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/message_lite.h>
29 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
30 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
31 #include <google/protobuf/generated_enum_util.h>
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_trace_5flog_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 }  // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40 
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_trace_5flog_2eproto {
43   static const uint32_t offsets[];
44 };
45 namespace metrics {
46 class TraceLog;
47 struct TraceLogDefaultTypeInternal;
48 extern TraceLogDefaultTypeInternal _TraceLog_default_instance_;
49 }  // namespace metrics
50 PROTOBUF_NAMESPACE_OPEN
51 template<> ::metrics::TraceLog* Arena::CreateMaybeMessage<::metrics::TraceLog>(Arena*);
52 PROTOBUF_NAMESPACE_CLOSE
53 namespace metrics {
54 
55 enum TraceLog_CompressionType : int {
56   TraceLog_CompressionType_COMPRESSION_TYPE_NONE = 0,
57   TraceLog_CompressionType_COMPRESSION_TYPE_ZLIB = 1
58 };
59 bool TraceLog_CompressionType_IsValid(int value);
60 constexpr TraceLog_CompressionType TraceLog_CompressionType_CompressionType_MIN = TraceLog_CompressionType_COMPRESSION_TYPE_NONE;
61 constexpr TraceLog_CompressionType TraceLog_CompressionType_CompressionType_MAX = TraceLog_CompressionType_COMPRESSION_TYPE_ZLIB;
62 constexpr int TraceLog_CompressionType_CompressionType_ARRAYSIZE = TraceLog_CompressionType_CompressionType_MAX + 1;
63 
64 const std::string& TraceLog_CompressionType_Name(TraceLog_CompressionType value);
65 template<typename T>
TraceLog_CompressionType_Name(T enum_t_value)66 inline const std::string& TraceLog_CompressionType_Name(T enum_t_value) {
67   static_assert(::std::is_same<T, TraceLog_CompressionType>::value ||
68     ::std::is_integral<T>::value,
69     "Incorrect type passed to function TraceLog_CompressionType_Name.");
70   return TraceLog_CompressionType_Name(static_cast<TraceLog_CompressionType>(enum_t_value));
71 }
72 bool TraceLog_CompressionType_Parse(
73     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TraceLog_CompressionType* value);
74 // ===================================================================
75 
76 class TraceLog final :
77     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.TraceLog) */ {
78  public:
TraceLog()79   inline TraceLog() : TraceLog(nullptr) {}
80   ~TraceLog() override;
81   explicit PROTOBUF_CONSTEXPR TraceLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82 
83   TraceLog(const TraceLog& from);
TraceLog(TraceLog && from)84   TraceLog(TraceLog&& from) noexcept
85     : TraceLog() {
86     *this = ::std::move(from);
87   }
88 
89   inline TraceLog& operator=(const TraceLog& from) {
90     CopyFrom(from);
91     return *this;
92   }
93   inline TraceLog& operator=(TraceLog&& from) noexcept {
94     if (this == &from) return *this;
95     if (GetOwningArena() == from.GetOwningArena()
96   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97         && GetOwningArena() != nullptr
98   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
99     ) {
100       InternalSwap(&from);
101     } else {
102       CopyFrom(from);
103     }
104     return *this;
105   }
106 
unknown_fields()107   inline const std::string& unknown_fields() const {
108     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
109   }
mutable_unknown_fields()110   inline std::string* mutable_unknown_fields() {
111     return _internal_metadata_.mutable_unknown_fields<std::string>();
112   }
113 
default_instance()114   static const TraceLog& default_instance() {
115     return *internal_default_instance();
116   }
internal_default_instance()117   static inline const TraceLog* internal_default_instance() {
118     return reinterpret_cast<const TraceLog*>(
119                &_TraceLog_default_instance_);
120   }
121   static constexpr int kIndexInFileMessages =
122     0;
123 
swap(TraceLog & a,TraceLog & b)124   friend void swap(TraceLog& a, TraceLog& b) {
125     a.Swap(&b);
126   }
Swap(TraceLog * other)127   PROTOBUF_NOINLINE void Swap(TraceLog* other) {
128     if (other == this) return;
129   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
130     if (GetOwningArena() != nullptr &&
131         GetOwningArena() == other->GetOwningArena()) {
132    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
133     if (GetOwningArena() == other->GetOwningArena()) {
134   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
135       InternalSwap(other);
136     } else {
137       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
138     }
139   }
140   void UnsafeArenaSwap(TraceLog* other) {
141     if (other == this) return;
142     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
143     InternalSwap(other);
144   }
145 
146   // implements Message ----------------------------------------------
147 
148   TraceLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
149     return CreateMaybeMessage<TraceLog>(arena);
150   }
151   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
152   void CopyFrom(const TraceLog& from);
153   void MergeFrom(const TraceLog& from);
154   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
155   bool IsInitialized() const final;
156 
157   size_t ByteSizeLong() const final;
158   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
159   uint8_t* _InternalSerialize(
160       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
161   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
162 
163   private:
164   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
165   void SharedDtor();
166   void SetCachedSize(int size) const;
167   void InternalSwap(TraceLog* other);
168 
169   private:
170   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172     return "metrics.TraceLog";
173   }
174   protected:
175   explicit TraceLog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
176                        bool is_message_owned = false);
177   public:
178 
179   std::string GetTypeName() const final;
180 
181   // nested types ----------------------------------------------------
182 
183   typedef TraceLog_CompressionType CompressionType;
184   static constexpr CompressionType COMPRESSION_TYPE_NONE =
185     TraceLog_CompressionType_COMPRESSION_TYPE_NONE;
186   static constexpr CompressionType COMPRESSION_TYPE_ZLIB =
187     TraceLog_CompressionType_COMPRESSION_TYPE_ZLIB;
188   static inline bool CompressionType_IsValid(int value) {
189     return TraceLog_CompressionType_IsValid(value);
190   }
191   static constexpr CompressionType CompressionType_MIN =
192     TraceLog_CompressionType_CompressionType_MIN;
193   static constexpr CompressionType CompressionType_MAX =
194     TraceLog_CompressionType_CompressionType_MAX;
195   static constexpr int CompressionType_ARRAYSIZE =
196     TraceLog_CompressionType_CompressionType_ARRAYSIZE;
197   template<typename T>
198   static inline const std::string& CompressionType_Name(T enum_t_value) {
199     static_assert(::std::is_same<T, CompressionType>::value ||
200       ::std::is_integral<T>::value,
201       "Incorrect type passed to function CompressionType_Name.");
202     return TraceLog_CompressionType_Name(enum_t_value);
203   }
204   static inline bool CompressionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
205       CompressionType* value) {
206     return TraceLog_CompressionType_Parse(name, value);
207   }
208 
209   // accessors -------------------------------------------------------
210 
211   enum : int {
212     kRawDataFieldNumber = 1,
213     kCompressionTypeFieldNumber = 5,
214   };
215   // optional bytes raw_data = 1;
216   bool has_raw_data() const;
217   private:
218   bool _internal_has_raw_data() const;
219   public:
220   void clear_raw_data();
221   const std::string& raw_data() const;
222   template <typename ArgT0 = const std::string&, typename... ArgT>
223   void set_raw_data(ArgT0&& arg0, ArgT... args);
224   std::string* mutable_raw_data();
225   PROTOBUF_NODISCARD std::string* release_raw_data();
226   void set_allocated_raw_data(std::string* raw_data);
227   private:
228   const std::string& _internal_raw_data() const;
229   inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_data(const std::string& value);
230   std::string* _internal_mutable_raw_data();
231   public:
232 
233   // optional .metrics.TraceLog.CompressionType compression_type = 5 [default = COMPRESSION_TYPE_NONE];
234   bool has_compression_type() const;
235   private:
236   bool _internal_has_compression_type() const;
237   public:
238   void clear_compression_type();
239   ::metrics::TraceLog_CompressionType compression_type() const;
240   void set_compression_type(::metrics::TraceLog_CompressionType value);
241   private:
242   ::metrics::TraceLog_CompressionType _internal_compression_type() const;
243   void _internal_set_compression_type(::metrics::TraceLog_CompressionType value);
244   public:
245 
246   // @@protoc_insertion_point(class_scope:metrics.TraceLog)
247  private:
248   class _Internal;
249 
250   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
251   typedef void InternalArenaConstructable_;
252   typedef void DestructorSkippable_;
253   struct Impl_ {
254     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
255     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
256     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_data_;
257     int compression_type_;
258   };
259   union { Impl_ _impl_; };
260   friend struct ::TableStruct_trace_5flog_2eproto;
261 };
262 // ===================================================================
263 
264 
265 // ===================================================================
266 
267 #ifdef __GNUC__
268   #pragma GCC diagnostic push
269   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
270 #endif  // __GNUC__
271 // TraceLog
272 
273 // optional bytes raw_data = 1;
_internal_has_raw_data()274 inline bool TraceLog::_internal_has_raw_data() const {
275   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
276   return value;
277 }
has_raw_data()278 inline bool TraceLog::has_raw_data() const {
279   return _internal_has_raw_data();
280 }
clear_raw_data()281 inline void TraceLog::clear_raw_data() {
282   _impl_.raw_data_.ClearToEmpty();
283   _impl_._has_bits_[0] &= ~0x00000001u;
284 }
raw_data()285 inline const std::string& TraceLog::raw_data() const {
286   // @@protoc_insertion_point(field_get:metrics.TraceLog.raw_data)
287   return _internal_raw_data();
288 }
289 template <typename ArgT0, typename... ArgT>
290 inline PROTOBUF_ALWAYS_INLINE
set_raw_data(ArgT0 && arg0,ArgT...args)291 void TraceLog::set_raw_data(ArgT0&& arg0, ArgT... args) {
292  _impl_._has_bits_[0] |= 0x00000001u;
293  _impl_.raw_data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
294   // @@protoc_insertion_point(field_set:metrics.TraceLog.raw_data)
295 }
mutable_raw_data()296 inline std::string* TraceLog::mutable_raw_data() {
297   std::string* _s = _internal_mutable_raw_data();
298   // @@protoc_insertion_point(field_mutable:metrics.TraceLog.raw_data)
299   return _s;
300 }
_internal_raw_data()301 inline const std::string& TraceLog::_internal_raw_data() const {
302   return _impl_.raw_data_.Get();
303 }
_internal_set_raw_data(const std::string & value)304 inline void TraceLog::_internal_set_raw_data(const std::string& value) {
305   _impl_._has_bits_[0] |= 0x00000001u;
306   _impl_.raw_data_.Set(value, GetArenaForAllocation());
307 }
_internal_mutable_raw_data()308 inline std::string* TraceLog::_internal_mutable_raw_data() {
309   _impl_._has_bits_[0] |= 0x00000001u;
310   return _impl_.raw_data_.Mutable(GetArenaForAllocation());
311 }
release_raw_data()312 inline std::string* TraceLog::release_raw_data() {
313   // @@protoc_insertion_point(field_release:metrics.TraceLog.raw_data)
314   if (!_internal_has_raw_data()) {
315     return nullptr;
316   }
317   _impl_._has_bits_[0] &= ~0x00000001u;
318   auto* p = _impl_.raw_data_.Release();
319 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
320   if (_impl_.raw_data_.IsDefault()) {
321     _impl_.raw_data_.Set("", GetArenaForAllocation());
322   }
323 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
324   return p;
325 }
set_allocated_raw_data(std::string * raw_data)326 inline void TraceLog::set_allocated_raw_data(std::string* raw_data) {
327   if (raw_data != nullptr) {
328     _impl_._has_bits_[0] |= 0x00000001u;
329   } else {
330     _impl_._has_bits_[0] &= ~0x00000001u;
331   }
332   _impl_.raw_data_.SetAllocated(raw_data, GetArenaForAllocation());
333 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
334   if (_impl_.raw_data_.IsDefault()) {
335     _impl_.raw_data_.Set("", GetArenaForAllocation());
336   }
337 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
338   // @@protoc_insertion_point(field_set_allocated:metrics.TraceLog.raw_data)
339 }
340 
341 // optional .metrics.TraceLog.CompressionType compression_type = 5 [default = COMPRESSION_TYPE_NONE];
_internal_has_compression_type()342 inline bool TraceLog::_internal_has_compression_type() const {
343   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
344   return value;
345 }
has_compression_type()346 inline bool TraceLog::has_compression_type() const {
347   return _internal_has_compression_type();
348 }
clear_compression_type()349 inline void TraceLog::clear_compression_type() {
350   _impl_.compression_type_ = 0;
351   _impl_._has_bits_[0] &= ~0x00000002u;
352 }
_internal_compression_type()353 inline ::metrics::TraceLog_CompressionType TraceLog::_internal_compression_type() const {
354   return static_cast< ::metrics::TraceLog_CompressionType >(_impl_.compression_type_);
355 }
compression_type()356 inline ::metrics::TraceLog_CompressionType TraceLog::compression_type() const {
357   // @@protoc_insertion_point(field_get:metrics.TraceLog.compression_type)
358   return _internal_compression_type();
359 }
_internal_set_compression_type(::metrics::TraceLog_CompressionType value)360 inline void TraceLog::_internal_set_compression_type(::metrics::TraceLog_CompressionType value) {
361   assert(::metrics::TraceLog_CompressionType_IsValid(value));
362   _impl_._has_bits_[0] |= 0x00000002u;
363   _impl_.compression_type_ = value;
364 }
set_compression_type(::metrics::TraceLog_CompressionType value)365 inline void TraceLog::set_compression_type(::metrics::TraceLog_CompressionType value) {
366   _internal_set_compression_type(value);
367   // @@protoc_insertion_point(field_set:metrics.TraceLog.compression_type)
368 }
369 
370 #ifdef __GNUC__
371   #pragma GCC diagnostic pop
372 #endif  // __GNUC__
373 
374 // @@protoc_insertion_point(namespace_scope)
375 
376 }  // namespace metrics
377 
378 PROTOBUF_NAMESPACE_OPEN
379 
380 template <> struct is_proto_enum< ::metrics::TraceLog_CompressionType> : ::std::true_type {};
381 
382 PROTOBUF_NAMESPACE_CLOSE
383 
384 // @@protoc_insertion_point(global_scope)
385 
386 #include <google/protobuf/port_undef.inc>
387 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_trace_5flog_2eproto
388