1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: system/logging/logcat/logcat.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_system_2flogging_2flogcat_2flogcat_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_system_2flogging_2flogcat_2flogcat_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_system_2flogging_2flogcat_2flogcat_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_system_2flogging_2flogcat_2flogcat_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace com {
47 namespace android {
48 namespace logcat {
49 namespace proto {
50 class LogcatEntryProto;
51 struct LogcatEntryProtoDefaultTypeInternal;
52 extern LogcatEntryProtoDefaultTypeInternal _LogcatEntryProto_default_instance_;
53 } // namespace proto
54 } // namespace logcat
55 } // namespace android
56 } // namespace com
57 PROTOBUF_NAMESPACE_OPEN
58 template<> ::com::android::logcat::proto::LogcatEntryProto* Arena::CreateMaybeMessage<::com::android::logcat::proto::LogcatEntryProto>(Arena*);
59 PROTOBUF_NAMESPACE_CLOSE
60 namespace com {
61 namespace android {
62 namespace logcat {
63 namespace proto {
64
65 enum LogcatPriorityProto : int {
66 UNKNOWN = 0,
67 DEFAULT = 1,
68 VERBOSE = 2,
69 DEBUG = 3,
70 INFO = 4,
71 WARN = 5,
72 ERROR = 6,
73 FATAL = 8,
74 SILENT = 9,
75 LogcatPriorityProto_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
76 LogcatPriorityProto_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
77 };
78 bool LogcatPriorityProto_IsValid(int value);
79 constexpr LogcatPriorityProto LogcatPriorityProto_MIN = UNKNOWN;
80 constexpr LogcatPriorityProto LogcatPriorityProto_MAX = SILENT;
81 constexpr int LogcatPriorityProto_ARRAYSIZE = LogcatPriorityProto_MAX + 1;
82
83 const std::string& LogcatPriorityProto_Name(LogcatPriorityProto value);
84 template<typename T>
LogcatPriorityProto_Name(T enum_t_value)85 inline const std::string& LogcatPriorityProto_Name(T enum_t_value) {
86 static_assert(::std::is_same<T, LogcatPriorityProto>::value ||
87 ::std::is_integral<T>::value,
88 "Incorrect type passed to function LogcatPriorityProto_Name.");
89 return LogcatPriorityProto_Name(static_cast<LogcatPriorityProto>(enum_t_value));
90 }
91 bool LogcatPriorityProto_Parse(
92 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogcatPriorityProto* value);
93 // ===================================================================
94
95 class LogcatEntryProto final :
96 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:com.android.logcat.proto.LogcatEntryProto) */ {
97 public:
LogcatEntryProto()98 inline LogcatEntryProto() : LogcatEntryProto(nullptr) {}
99 ~LogcatEntryProto() override;
100 explicit PROTOBUF_CONSTEXPR LogcatEntryProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
101
102 LogcatEntryProto(const LogcatEntryProto& from);
LogcatEntryProto(LogcatEntryProto && from)103 LogcatEntryProto(LogcatEntryProto&& from) noexcept
104 : LogcatEntryProto() {
105 *this = ::std::move(from);
106 }
107
108 inline LogcatEntryProto& operator=(const LogcatEntryProto& from) {
109 if (this == &from) return *this;
110 CopyFrom(from);
111 return *this;
112 }
113 inline LogcatEntryProto& operator=(LogcatEntryProto&& from) noexcept {
114 if (this == &from) return *this;
115 if (GetOwningArena() == from.GetOwningArena()
116 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
117 && GetOwningArena() != nullptr
118 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
119 ) {
120 InternalSwap(&from);
121 } else {
122 CopyFrom(from);
123 }
124 return *this;
125 }
126
default_instance()127 static const LogcatEntryProto& default_instance() {
128 return *internal_default_instance();
129 }
internal_default_instance()130 static inline const LogcatEntryProto* internal_default_instance() {
131 return reinterpret_cast<const LogcatEntryProto*>(
132 &_LogcatEntryProto_default_instance_);
133 }
134 static constexpr int kIndexInFileMessages =
135 0;
136
swap(LogcatEntryProto & a,LogcatEntryProto & b)137 friend void swap(LogcatEntryProto& a, LogcatEntryProto& b) {
138 a.Swap(&b);
139 }
Swap(LogcatEntryProto * other)140 inline void Swap(LogcatEntryProto* other) {
141 if (other == this) return;
142 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() != nullptr &&
144 GetOwningArena() == other->GetOwningArena()) {
145 #else // PROTOBUF_FORCE_COPY_IN_SWAP
146 if (GetOwningArena() == other->GetOwningArena()) {
147 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
148 InternalSwap(other);
149 } else {
150 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
151 }
152 }
153 void UnsafeArenaSwap(LogcatEntryProto* other) {
154 if (other == this) return;
155 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 InternalSwap(other);
157 }
158
159 // implements Message ----------------------------------------------
160
161 LogcatEntryProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
162 return CreateMaybeMessage<LogcatEntryProto>(arena);
163 }
164 LogcatEntryProto* New() const {
165 return New(nullptr);
166 }
167 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
168 void CopyFrom(const LogcatEntryProto& from);
169 void MergeFrom(const LogcatEntryProto& from);
170 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
171 bool IsInitialized() const final;
172
173 size_t ByteSizeLong() const final;
174 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175 ::uint8_t* _InternalSerialize(
176 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
178
179 private:
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
181 void SharedDtor();
182 void SetCachedSize(int size) const;
183 void InternalSwap(LogcatEntryProto* other);
184
185 private:
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "com.android.logcat.proto.LogcatEntryProto";
189 }
190 protected:
191 explicit LogcatEntryProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned = false);
193 public:
194
195 std::string GetTypeName() const final;
196
197 // nested types ----------------------------------------------------
198
199 // accessors -------------------------------------------------------
200
201 enum : int {
202 kTagFieldNumber = 7,
203 kMessageFieldNumber = 8,
204 kProcessNameFieldNumber = 9,
205 kTimeSecFieldNumber = 1,
206 kTimeNsecFieldNumber = 2,
207 kUidFieldNumber = 4,
208 kPidFieldNumber = 5,
209 kTidFieldNumber = 6,
210 kPriorityFieldNumber = 3,
211 };
212 // bytes tag = 7;
213 void clear_tag();
214 const std::string& tag() const;
215 template <typename ArgT0 = const std::string&, typename... ArgT>
216 void set_tag(ArgT0&& arg0, ArgT... args);
217 std::string* mutable_tag();
218 PROTOBUF_NODISCARD std::string* release_tag();
219 void set_allocated_tag(std::string* tag);
220 private:
221 const std::string& _internal_tag() const;
222 inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value);
223 std::string* _internal_mutable_tag();
224 public:
225
226 // bytes message = 8;
227 void clear_message();
228 const std::string& message() const;
229 template <typename ArgT0 = const std::string&, typename... ArgT>
230 void set_message(ArgT0&& arg0, ArgT... args);
231 std::string* mutable_message();
232 PROTOBUF_NODISCARD std::string* release_message();
233 void set_allocated_message(std::string* message);
234 private:
235 const std::string& _internal_message() const;
236 inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value);
237 std::string* _internal_mutable_message();
238 public:
239
240 // optional string process_name = 9;
241 bool has_process_name() const;
242 private:
243 bool _internal_has_process_name() const;
244 public:
245 void clear_process_name();
246 const std::string& process_name() const;
247 template <typename ArgT0 = const std::string&, typename... ArgT>
248 void set_process_name(ArgT0&& arg0, ArgT... args);
249 std::string* mutable_process_name();
250 PROTOBUF_NODISCARD std::string* release_process_name();
251 void set_allocated_process_name(std::string* process_name);
252 private:
253 const std::string& _internal_process_name() const;
254 inline PROTOBUF_ALWAYS_INLINE void _internal_set_process_name(const std::string& value);
255 std::string* _internal_mutable_process_name();
256 public:
257
258 // uint64 time_sec = 1;
259 void clear_time_sec();
260 ::uint64_t time_sec() const;
261 void set_time_sec(::uint64_t value);
262 private:
263 ::uint64_t _internal_time_sec() const;
264 void _internal_set_time_sec(::uint64_t value);
265 public:
266
267 // uint64 time_nsec = 2;
268 void clear_time_nsec();
269 ::uint64_t time_nsec() const;
270 void set_time_nsec(::uint64_t value);
271 private:
272 ::uint64_t _internal_time_nsec() const;
273 void _internal_set_time_nsec(::uint64_t value);
274 public:
275
276 // uint64 uid = 4;
277 void clear_uid();
278 ::uint64_t uid() const;
279 void set_uid(::uint64_t value);
280 private:
281 ::uint64_t _internal_uid() const;
282 void _internal_set_uid(::uint64_t value);
283 public:
284
285 // uint64 pid = 5;
286 void clear_pid();
287 ::uint64_t pid() const;
288 void set_pid(::uint64_t value);
289 private:
290 ::uint64_t _internal_pid() const;
291 void _internal_set_pid(::uint64_t value);
292 public:
293
294 // uint64 tid = 6;
295 void clear_tid();
296 ::uint64_t tid() const;
297 void set_tid(::uint64_t value);
298 private:
299 ::uint64_t _internal_tid() const;
300 void _internal_set_tid(::uint64_t value);
301 public:
302
303 // .com.android.logcat.proto.LogcatPriorityProto priority = 3;
304 void clear_priority();
305 ::com::android::logcat::proto::LogcatPriorityProto priority() const;
306 void set_priority(::com::android::logcat::proto::LogcatPriorityProto value);
307 private:
308 ::com::android::logcat::proto::LogcatPriorityProto _internal_priority() const;
309 void _internal_set_priority(::com::android::logcat::proto::LogcatPriorityProto value);
310 public:
311
312 // @@protoc_insertion_point(class_scope:com.android.logcat.proto.LogcatEntryProto)
313 private:
314 class _Internal;
315
316 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
317 typedef void InternalArenaConstructable_;
318 typedef void DestructorSkippable_;
319 struct Impl_ {
320 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
321 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
322 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_;
323 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
324 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr process_name_;
325 ::uint64_t time_sec_;
326 ::uint64_t time_nsec_;
327 ::uint64_t uid_;
328 ::uint64_t pid_;
329 ::uint64_t tid_;
330 int priority_;
331 };
332 union { Impl_ _impl_; };
333 friend struct ::TableStruct_system_2flogging_2flogcat_2flogcat_2eproto;
334 };
335 // ===================================================================
336
337
338 // ===================================================================
339
340 #ifdef __GNUC__
341 #pragma GCC diagnostic push
342 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343 #endif // __GNUC__
344 // LogcatEntryProto
345
346 // uint64 time_sec = 1;
clear_time_sec()347 inline void LogcatEntryProto::clear_time_sec() {
348 _impl_.time_sec_ = ::uint64_t{0u};
349 }
_internal_time_sec()350 inline ::uint64_t LogcatEntryProto::_internal_time_sec() const {
351 return _impl_.time_sec_;
352 }
time_sec()353 inline ::uint64_t LogcatEntryProto::time_sec() const {
354 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.time_sec)
355 return _internal_time_sec();
356 }
_internal_set_time_sec(::uint64_t value)357 inline void LogcatEntryProto::_internal_set_time_sec(::uint64_t value) {
358
359 _impl_.time_sec_ = value;
360 }
set_time_sec(::uint64_t value)361 inline void LogcatEntryProto::set_time_sec(::uint64_t value) {
362 _internal_set_time_sec(value);
363 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.time_sec)
364 }
365
366 // uint64 time_nsec = 2;
clear_time_nsec()367 inline void LogcatEntryProto::clear_time_nsec() {
368 _impl_.time_nsec_ = ::uint64_t{0u};
369 }
_internal_time_nsec()370 inline ::uint64_t LogcatEntryProto::_internal_time_nsec() const {
371 return _impl_.time_nsec_;
372 }
time_nsec()373 inline ::uint64_t LogcatEntryProto::time_nsec() const {
374 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.time_nsec)
375 return _internal_time_nsec();
376 }
_internal_set_time_nsec(::uint64_t value)377 inline void LogcatEntryProto::_internal_set_time_nsec(::uint64_t value) {
378
379 _impl_.time_nsec_ = value;
380 }
set_time_nsec(::uint64_t value)381 inline void LogcatEntryProto::set_time_nsec(::uint64_t value) {
382 _internal_set_time_nsec(value);
383 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.time_nsec)
384 }
385
386 // .com.android.logcat.proto.LogcatPriorityProto priority = 3;
clear_priority()387 inline void LogcatEntryProto::clear_priority() {
388 _impl_.priority_ = 0;
389 }
_internal_priority()390 inline ::com::android::logcat::proto::LogcatPriorityProto LogcatEntryProto::_internal_priority() const {
391 return static_cast< ::com::android::logcat::proto::LogcatPriorityProto >(_impl_.priority_);
392 }
priority()393 inline ::com::android::logcat::proto::LogcatPriorityProto LogcatEntryProto::priority() const {
394 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.priority)
395 return _internal_priority();
396 }
_internal_set_priority(::com::android::logcat::proto::LogcatPriorityProto value)397 inline void LogcatEntryProto::_internal_set_priority(::com::android::logcat::proto::LogcatPriorityProto value) {
398
399 _impl_.priority_ = value;
400 }
set_priority(::com::android::logcat::proto::LogcatPriorityProto value)401 inline void LogcatEntryProto::set_priority(::com::android::logcat::proto::LogcatPriorityProto value) {
402 _internal_set_priority(value);
403 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.priority)
404 }
405
406 // uint64 uid = 4;
clear_uid()407 inline void LogcatEntryProto::clear_uid() {
408 _impl_.uid_ = ::uint64_t{0u};
409 }
_internal_uid()410 inline ::uint64_t LogcatEntryProto::_internal_uid() const {
411 return _impl_.uid_;
412 }
uid()413 inline ::uint64_t LogcatEntryProto::uid() const {
414 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.uid)
415 return _internal_uid();
416 }
_internal_set_uid(::uint64_t value)417 inline void LogcatEntryProto::_internal_set_uid(::uint64_t value) {
418
419 _impl_.uid_ = value;
420 }
set_uid(::uint64_t value)421 inline void LogcatEntryProto::set_uid(::uint64_t value) {
422 _internal_set_uid(value);
423 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.uid)
424 }
425
426 // uint64 pid = 5;
clear_pid()427 inline void LogcatEntryProto::clear_pid() {
428 _impl_.pid_ = ::uint64_t{0u};
429 }
_internal_pid()430 inline ::uint64_t LogcatEntryProto::_internal_pid() const {
431 return _impl_.pid_;
432 }
pid()433 inline ::uint64_t LogcatEntryProto::pid() const {
434 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.pid)
435 return _internal_pid();
436 }
_internal_set_pid(::uint64_t value)437 inline void LogcatEntryProto::_internal_set_pid(::uint64_t value) {
438
439 _impl_.pid_ = value;
440 }
set_pid(::uint64_t value)441 inline void LogcatEntryProto::set_pid(::uint64_t value) {
442 _internal_set_pid(value);
443 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.pid)
444 }
445
446 // uint64 tid = 6;
clear_tid()447 inline void LogcatEntryProto::clear_tid() {
448 _impl_.tid_ = ::uint64_t{0u};
449 }
_internal_tid()450 inline ::uint64_t LogcatEntryProto::_internal_tid() const {
451 return _impl_.tid_;
452 }
tid()453 inline ::uint64_t LogcatEntryProto::tid() const {
454 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.tid)
455 return _internal_tid();
456 }
_internal_set_tid(::uint64_t value)457 inline void LogcatEntryProto::_internal_set_tid(::uint64_t value) {
458
459 _impl_.tid_ = value;
460 }
set_tid(::uint64_t value)461 inline void LogcatEntryProto::set_tid(::uint64_t value) {
462 _internal_set_tid(value);
463 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.tid)
464 }
465
466 // bytes tag = 7;
clear_tag()467 inline void LogcatEntryProto::clear_tag() {
468 _impl_.tag_.ClearToEmpty();
469 }
tag()470 inline const std::string& LogcatEntryProto::tag() const {
471 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.tag)
472 return _internal_tag();
473 }
474 template <typename ArgT0, typename... ArgT>
475 inline PROTOBUF_ALWAYS_INLINE
set_tag(ArgT0 && arg0,ArgT...args)476 void LogcatEntryProto::set_tag(ArgT0&& arg0, ArgT... args) {
477
478 _impl_.tag_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
479 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.tag)
480 }
mutable_tag()481 inline std::string* LogcatEntryProto::mutable_tag() {
482 std::string* _s = _internal_mutable_tag();
483 // @@protoc_insertion_point(field_mutable:com.android.logcat.proto.LogcatEntryProto.tag)
484 return _s;
485 }
_internal_tag()486 inline const std::string& LogcatEntryProto::_internal_tag() const {
487 return _impl_.tag_.Get();
488 }
_internal_set_tag(const std::string & value)489 inline void LogcatEntryProto::_internal_set_tag(const std::string& value) {
490
491 _impl_.tag_.Set(value, GetArenaForAllocation());
492 }
_internal_mutable_tag()493 inline std::string* LogcatEntryProto::_internal_mutable_tag() {
494
495 return _impl_.tag_.Mutable(GetArenaForAllocation());
496 }
release_tag()497 inline std::string* LogcatEntryProto::release_tag() {
498 // @@protoc_insertion_point(field_release:com.android.logcat.proto.LogcatEntryProto.tag)
499 return _impl_.tag_.Release();
500 }
set_allocated_tag(std::string * tag)501 inline void LogcatEntryProto::set_allocated_tag(std::string* tag) {
502 _impl_.tag_.SetAllocated(tag, GetArenaForAllocation());
503 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
504 if (_impl_.tag_.IsDefault()) {
505 _impl_.tag_.Set("", GetArenaForAllocation());
506 }
507 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
508 // @@protoc_insertion_point(field_set_allocated:com.android.logcat.proto.LogcatEntryProto.tag)
509 }
510
511 // bytes message = 8;
clear_message()512 inline void LogcatEntryProto::clear_message() {
513 _impl_.message_.ClearToEmpty();
514 }
message()515 inline const std::string& LogcatEntryProto::message() const {
516 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.message)
517 return _internal_message();
518 }
519 template <typename ArgT0, typename... ArgT>
520 inline PROTOBUF_ALWAYS_INLINE
set_message(ArgT0 && arg0,ArgT...args)521 void LogcatEntryProto::set_message(ArgT0&& arg0, ArgT... args) {
522
523 _impl_.message_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
524 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.message)
525 }
mutable_message()526 inline std::string* LogcatEntryProto::mutable_message() {
527 std::string* _s = _internal_mutable_message();
528 // @@protoc_insertion_point(field_mutable:com.android.logcat.proto.LogcatEntryProto.message)
529 return _s;
530 }
_internal_message()531 inline const std::string& LogcatEntryProto::_internal_message() const {
532 return _impl_.message_.Get();
533 }
_internal_set_message(const std::string & value)534 inline void LogcatEntryProto::_internal_set_message(const std::string& value) {
535
536 _impl_.message_.Set(value, GetArenaForAllocation());
537 }
_internal_mutable_message()538 inline std::string* LogcatEntryProto::_internal_mutable_message() {
539
540 return _impl_.message_.Mutable(GetArenaForAllocation());
541 }
release_message()542 inline std::string* LogcatEntryProto::release_message() {
543 // @@protoc_insertion_point(field_release:com.android.logcat.proto.LogcatEntryProto.message)
544 return _impl_.message_.Release();
545 }
set_allocated_message(std::string * message)546 inline void LogcatEntryProto::set_allocated_message(std::string* message) {
547 _impl_.message_.SetAllocated(message, GetArenaForAllocation());
548 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
549 if (_impl_.message_.IsDefault()) {
550 _impl_.message_.Set("", GetArenaForAllocation());
551 }
552 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
553 // @@protoc_insertion_point(field_set_allocated:com.android.logcat.proto.LogcatEntryProto.message)
554 }
555
556 // optional string process_name = 9;
_internal_has_process_name()557 inline bool LogcatEntryProto::_internal_has_process_name() const {
558 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
559 return value;
560 }
has_process_name()561 inline bool LogcatEntryProto::has_process_name() const {
562 return _internal_has_process_name();
563 }
clear_process_name()564 inline void LogcatEntryProto::clear_process_name() {
565 _impl_.process_name_.ClearToEmpty();
566 _impl_._has_bits_[0] &= ~0x00000001u;
567 }
process_name()568 inline const std::string& LogcatEntryProto::process_name() const {
569 // @@protoc_insertion_point(field_get:com.android.logcat.proto.LogcatEntryProto.process_name)
570 return _internal_process_name();
571 }
572 template <typename ArgT0, typename... ArgT>
573 inline PROTOBUF_ALWAYS_INLINE
set_process_name(ArgT0 && arg0,ArgT...args)574 void LogcatEntryProto::set_process_name(ArgT0&& arg0, ArgT... args) {
575 _impl_._has_bits_[0] |= 0x00000001u;
576 _impl_.process_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
577 // @@protoc_insertion_point(field_set:com.android.logcat.proto.LogcatEntryProto.process_name)
578 }
mutable_process_name()579 inline std::string* LogcatEntryProto::mutable_process_name() {
580 std::string* _s = _internal_mutable_process_name();
581 // @@protoc_insertion_point(field_mutable:com.android.logcat.proto.LogcatEntryProto.process_name)
582 return _s;
583 }
_internal_process_name()584 inline const std::string& LogcatEntryProto::_internal_process_name() const {
585 return _impl_.process_name_.Get();
586 }
_internal_set_process_name(const std::string & value)587 inline void LogcatEntryProto::_internal_set_process_name(const std::string& value) {
588 _impl_._has_bits_[0] |= 0x00000001u;
589 _impl_.process_name_.Set(value, GetArenaForAllocation());
590 }
_internal_mutable_process_name()591 inline std::string* LogcatEntryProto::_internal_mutable_process_name() {
592 _impl_._has_bits_[0] |= 0x00000001u;
593 return _impl_.process_name_.Mutable(GetArenaForAllocation());
594 }
release_process_name()595 inline std::string* LogcatEntryProto::release_process_name() {
596 // @@protoc_insertion_point(field_release:com.android.logcat.proto.LogcatEntryProto.process_name)
597 if (!_internal_has_process_name()) {
598 return nullptr;
599 }
600 _impl_._has_bits_[0] &= ~0x00000001u;
601 auto* p = _impl_.process_name_.Release();
602 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
603 if (_impl_.process_name_.IsDefault()) {
604 _impl_.process_name_.Set("", GetArenaForAllocation());
605 }
606 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
607 return p;
608 }
set_allocated_process_name(std::string * process_name)609 inline void LogcatEntryProto::set_allocated_process_name(std::string* process_name) {
610 if (process_name != nullptr) {
611 _impl_._has_bits_[0] |= 0x00000001u;
612 } else {
613 _impl_._has_bits_[0] &= ~0x00000001u;
614 }
615 _impl_.process_name_.SetAllocated(process_name, GetArenaForAllocation());
616 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
617 if (_impl_.process_name_.IsDefault()) {
618 _impl_.process_name_.Set("", GetArenaForAllocation());
619 }
620 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
621 // @@protoc_insertion_point(field_set_allocated:com.android.logcat.proto.LogcatEntryProto.process_name)
622 }
623
624 #ifdef __GNUC__
625 #pragma GCC diagnostic pop
626 #endif // __GNUC__
627
628 // @@protoc_insertion_point(namespace_scope)
629
630 } // namespace proto
631 } // namespace logcat
632 } // namespace android
633 } // namespace com
634
635 PROTOBUF_NAMESPACE_OPEN
636
637 template <> struct is_proto_enum< ::com::android::logcat::proto::LogcatPriorityProto> : ::std::true_type {};
638
639 PROTOBUF_NAMESPACE_CLOSE
640
641 // @@protoc_insertion_point(global_scope)
642
643 #include <google/protobuf/port_undef.inc>
644 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_system_2flogging_2flogcat_2flogcat_2eproto
645