1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: custom_tab_session.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_custom_5ftab_5fsession_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_custom_5ftab_5fsession_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 // @@protoc_insertion_point(includes)
32 #include <google/protobuf/port_def.inc>
33 #define PROTOBUF_INTERNAL_EXPORT_custom_5ftab_5fsession_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_custom_5ftab_5fsession_2eproto {
42 static const uint32_t offsets[];
43 };
44 namespace metrics {
45 class CustomTabSessionProto;
46 struct CustomTabSessionProtoDefaultTypeInternal;
47 extern CustomTabSessionProtoDefaultTypeInternal _CustomTabSessionProto_default_instance_;
48 } // namespace metrics
49 PROTOBUF_NAMESPACE_OPEN
50 template<> ::metrics::CustomTabSessionProto* Arena::CreateMaybeMessage<::metrics::CustomTabSessionProto>(Arena*);
51 PROTOBUF_NAMESPACE_CLOSE
52 namespace metrics {
53
54 // ===================================================================
55
56 class CustomTabSessionProto final :
57 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.CustomTabSessionProto) */ {
58 public:
CustomTabSessionProto()59 inline CustomTabSessionProto() : CustomTabSessionProto(nullptr) {}
60 ~CustomTabSessionProto() override;
61 explicit PROTOBUF_CONSTEXPR CustomTabSessionProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
62
63 CustomTabSessionProto(const CustomTabSessionProto& from);
CustomTabSessionProto(CustomTabSessionProto && from)64 CustomTabSessionProto(CustomTabSessionProto&& from) noexcept
65 : CustomTabSessionProto() {
66 *this = ::std::move(from);
67 }
68
69 inline CustomTabSessionProto& operator=(const CustomTabSessionProto& from) {
70 CopyFrom(from);
71 return *this;
72 }
73 inline CustomTabSessionProto& operator=(CustomTabSessionProto&& from) noexcept {
74 if (this == &from) return *this;
75 if (GetOwningArena() == from.GetOwningArena()
76 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
77 && GetOwningArena() != nullptr
78 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
79 ) {
80 InternalSwap(&from);
81 } else {
82 CopyFrom(from);
83 }
84 return *this;
85 }
86
unknown_fields()87 inline const std::string& unknown_fields() const {
88 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
89 }
mutable_unknown_fields()90 inline std::string* mutable_unknown_fields() {
91 return _internal_metadata_.mutable_unknown_fields<std::string>();
92 }
93
default_instance()94 static const CustomTabSessionProto& default_instance() {
95 return *internal_default_instance();
96 }
internal_default_instance()97 static inline const CustomTabSessionProto* internal_default_instance() {
98 return reinterpret_cast<const CustomTabSessionProto*>(
99 &_CustomTabSessionProto_default_instance_);
100 }
101 static constexpr int kIndexInFileMessages =
102 0;
103
swap(CustomTabSessionProto & a,CustomTabSessionProto & b)104 friend void swap(CustomTabSessionProto& a, CustomTabSessionProto& b) {
105 a.Swap(&b);
106 }
Swap(CustomTabSessionProto * other)107 PROTOBUF_NOINLINE void Swap(CustomTabSessionProto* other) {
108 if (other == this) return;
109 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
110 if (GetOwningArena() != nullptr &&
111 GetOwningArena() == other->GetOwningArena()) {
112 #else // PROTOBUF_FORCE_COPY_IN_SWAP
113 if (GetOwningArena() == other->GetOwningArena()) {
114 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
115 InternalSwap(other);
116 } else {
117 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
118 }
119 }
120 void UnsafeArenaSwap(CustomTabSessionProto* other) {
121 if (other == this) return;
122 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123 InternalSwap(other);
124 }
125
126 // implements Message ----------------------------------------------
127
128 CustomTabSessionProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
129 return CreateMaybeMessage<CustomTabSessionProto>(arena);
130 }
131 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
132 void CopyFrom(const CustomTabSessionProto& from);
133 void MergeFrom(const CustomTabSessionProto& from);
134 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135 bool IsInitialized() const final;
136
137 size_t ByteSizeLong() const final;
138 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
139 uint8_t* _InternalSerialize(
140 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
141 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
142
143 private:
144 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
145 void SharedDtor();
146 void SetCachedSize(int size) const;
147 void InternalSwap(CustomTabSessionProto* other);
148
149 private:
150 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
151 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
152 return "metrics.CustomTabSessionProto";
153 }
154 protected:
155 explicit CustomTabSessionProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
156 bool is_message_owned = false);
157 public:
158
159 std::string GetTypeName() const final;
160
161 // nested types ----------------------------------------------------
162
163 // accessors -------------------------------------------------------
164
165 enum : int {
166 kPackageNameFieldNumber = 2,
167 kTimeSecFieldNumber = 1,
168 kSessionDurationSecFieldNumber = 3,
169 kDidUserInteractFieldNumber = 4,
170 kWasUserClosedFieldNumber = 5,
171 kIsPartialFieldNumber = 6,
172 };
173 // optional string package_name = 2;
174 bool has_package_name() const;
175 private:
176 bool _internal_has_package_name() const;
177 public:
178 void clear_package_name();
179 const std::string& package_name() const;
180 template <typename ArgT0 = const std::string&, typename... ArgT>
181 void set_package_name(ArgT0&& arg0, ArgT... args);
182 std::string* mutable_package_name();
183 PROTOBUF_NODISCARD std::string* release_package_name();
184 void set_allocated_package_name(std::string* package_name);
185 private:
186 const std::string& _internal_package_name() const;
187 inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value);
188 std::string* _internal_mutable_package_name();
189 public:
190
191 // optional int64 time_sec = 1;
192 bool has_time_sec() const;
193 private:
194 bool _internal_has_time_sec() const;
195 public:
196 void clear_time_sec();
197 int64_t time_sec() const;
198 void set_time_sec(int64_t value);
199 private:
200 int64_t _internal_time_sec() const;
201 void _internal_set_time_sec(int64_t value);
202 public:
203
204 // optional int32 session_duration_sec = 3;
205 bool has_session_duration_sec() const;
206 private:
207 bool _internal_has_session_duration_sec() const;
208 public:
209 void clear_session_duration_sec();
210 int32_t session_duration_sec() const;
211 void set_session_duration_sec(int32_t value);
212 private:
213 int32_t _internal_session_duration_sec() const;
214 void _internal_set_session_duration_sec(int32_t value);
215 public:
216
217 // optional bool did_user_interact = 4;
218 bool has_did_user_interact() const;
219 private:
220 bool _internal_has_did_user_interact() const;
221 public:
222 void clear_did_user_interact();
223 bool did_user_interact() const;
224 void set_did_user_interact(bool value);
225 private:
226 bool _internal_did_user_interact() const;
227 void _internal_set_did_user_interact(bool value);
228 public:
229
230 // optional bool was_user_closed = 5;
231 bool has_was_user_closed() const;
232 private:
233 bool _internal_has_was_user_closed() const;
234 public:
235 void clear_was_user_closed();
236 bool was_user_closed() const;
237 void set_was_user_closed(bool value);
238 private:
239 bool _internal_was_user_closed() const;
240 void _internal_set_was_user_closed(bool value);
241 public:
242
243 // optional bool is_partial = 6;
244 bool has_is_partial() const;
245 private:
246 bool _internal_has_is_partial() const;
247 public:
248 void clear_is_partial();
249 bool is_partial() const;
250 void set_is_partial(bool value);
251 private:
252 bool _internal_is_partial() const;
253 void _internal_set_is_partial(bool value);
254 public:
255
256 // @@protoc_insertion_point(class_scope:metrics.CustomTabSessionProto)
257 private:
258 class _Internal;
259
260 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
261 typedef void InternalArenaConstructable_;
262 typedef void DestructorSkippable_;
263 struct Impl_ {
264 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
265 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_;
267 int64_t time_sec_;
268 int32_t session_duration_sec_;
269 bool did_user_interact_;
270 bool was_user_closed_;
271 bool is_partial_;
272 };
273 union { Impl_ _impl_; };
274 friend struct ::TableStruct_custom_5ftab_5fsession_2eproto;
275 };
276 // ===================================================================
277
278
279 // ===================================================================
280
281 #ifdef __GNUC__
282 #pragma GCC diagnostic push
283 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 #endif // __GNUC__
285 // CustomTabSessionProto
286
287 // optional int64 time_sec = 1;
_internal_has_time_sec()288 inline bool CustomTabSessionProto::_internal_has_time_sec() const {
289 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
290 return value;
291 }
has_time_sec()292 inline bool CustomTabSessionProto::has_time_sec() const {
293 return _internal_has_time_sec();
294 }
clear_time_sec()295 inline void CustomTabSessionProto::clear_time_sec() {
296 _impl_.time_sec_ = int64_t{0};
297 _impl_._has_bits_[0] &= ~0x00000002u;
298 }
_internal_time_sec()299 inline int64_t CustomTabSessionProto::_internal_time_sec() const {
300 return _impl_.time_sec_;
301 }
time_sec()302 inline int64_t CustomTabSessionProto::time_sec() const {
303 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.time_sec)
304 return _internal_time_sec();
305 }
_internal_set_time_sec(int64_t value)306 inline void CustomTabSessionProto::_internal_set_time_sec(int64_t value) {
307 _impl_._has_bits_[0] |= 0x00000002u;
308 _impl_.time_sec_ = value;
309 }
set_time_sec(int64_t value)310 inline void CustomTabSessionProto::set_time_sec(int64_t value) {
311 _internal_set_time_sec(value);
312 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.time_sec)
313 }
314
315 // optional string package_name = 2;
_internal_has_package_name()316 inline bool CustomTabSessionProto::_internal_has_package_name() const {
317 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
318 return value;
319 }
has_package_name()320 inline bool CustomTabSessionProto::has_package_name() const {
321 return _internal_has_package_name();
322 }
clear_package_name()323 inline void CustomTabSessionProto::clear_package_name() {
324 _impl_.package_name_.ClearToEmpty();
325 _impl_._has_bits_[0] &= ~0x00000001u;
326 }
package_name()327 inline const std::string& CustomTabSessionProto::package_name() const {
328 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.package_name)
329 return _internal_package_name();
330 }
331 template <typename ArgT0, typename... ArgT>
332 inline PROTOBUF_ALWAYS_INLINE
set_package_name(ArgT0 && arg0,ArgT...args)333 void CustomTabSessionProto::set_package_name(ArgT0&& arg0, ArgT... args) {
334 _impl_._has_bits_[0] |= 0x00000001u;
335 _impl_.package_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
336 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.package_name)
337 }
mutable_package_name()338 inline std::string* CustomTabSessionProto::mutable_package_name() {
339 std::string* _s = _internal_mutable_package_name();
340 // @@protoc_insertion_point(field_mutable:metrics.CustomTabSessionProto.package_name)
341 return _s;
342 }
_internal_package_name()343 inline const std::string& CustomTabSessionProto::_internal_package_name() const {
344 return _impl_.package_name_.Get();
345 }
_internal_set_package_name(const std::string & value)346 inline void CustomTabSessionProto::_internal_set_package_name(const std::string& value) {
347 _impl_._has_bits_[0] |= 0x00000001u;
348 _impl_.package_name_.Set(value, GetArenaForAllocation());
349 }
_internal_mutable_package_name()350 inline std::string* CustomTabSessionProto::_internal_mutable_package_name() {
351 _impl_._has_bits_[0] |= 0x00000001u;
352 return _impl_.package_name_.Mutable(GetArenaForAllocation());
353 }
release_package_name()354 inline std::string* CustomTabSessionProto::release_package_name() {
355 // @@protoc_insertion_point(field_release:metrics.CustomTabSessionProto.package_name)
356 if (!_internal_has_package_name()) {
357 return nullptr;
358 }
359 _impl_._has_bits_[0] &= ~0x00000001u;
360 auto* p = _impl_.package_name_.Release();
361 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
362 if (_impl_.package_name_.IsDefault()) {
363 _impl_.package_name_.Set("", GetArenaForAllocation());
364 }
365 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
366 return p;
367 }
set_allocated_package_name(std::string * package_name)368 inline void CustomTabSessionProto::set_allocated_package_name(std::string* package_name) {
369 if (package_name != nullptr) {
370 _impl_._has_bits_[0] |= 0x00000001u;
371 } else {
372 _impl_._has_bits_[0] &= ~0x00000001u;
373 }
374 _impl_.package_name_.SetAllocated(package_name, GetArenaForAllocation());
375 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
376 if (_impl_.package_name_.IsDefault()) {
377 _impl_.package_name_.Set("", GetArenaForAllocation());
378 }
379 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
380 // @@protoc_insertion_point(field_set_allocated:metrics.CustomTabSessionProto.package_name)
381 }
382
383 // optional int32 session_duration_sec = 3;
_internal_has_session_duration_sec()384 inline bool CustomTabSessionProto::_internal_has_session_duration_sec() const {
385 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
386 return value;
387 }
has_session_duration_sec()388 inline bool CustomTabSessionProto::has_session_duration_sec() const {
389 return _internal_has_session_duration_sec();
390 }
clear_session_duration_sec()391 inline void CustomTabSessionProto::clear_session_duration_sec() {
392 _impl_.session_duration_sec_ = 0;
393 _impl_._has_bits_[0] &= ~0x00000004u;
394 }
_internal_session_duration_sec()395 inline int32_t CustomTabSessionProto::_internal_session_duration_sec() const {
396 return _impl_.session_duration_sec_;
397 }
session_duration_sec()398 inline int32_t CustomTabSessionProto::session_duration_sec() const {
399 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.session_duration_sec)
400 return _internal_session_duration_sec();
401 }
_internal_set_session_duration_sec(int32_t value)402 inline void CustomTabSessionProto::_internal_set_session_duration_sec(int32_t value) {
403 _impl_._has_bits_[0] |= 0x00000004u;
404 _impl_.session_duration_sec_ = value;
405 }
set_session_duration_sec(int32_t value)406 inline void CustomTabSessionProto::set_session_duration_sec(int32_t value) {
407 _internal_set_session_duration_sec(value);
408 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.session_duration_sec)
409 }
410
411 // optional bool did_user_interact = 4;
_internal_has_did_user_interact()412 inline bool CustomTabSessionProto::_internal_has_did_user_interact() const {
413 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
414 return value;
415 }
has_did_user_interact()416 inline bool CustomTabSessionProto::has_did_user_interact() const {
417 return _internal_has_did_user_interact();
418 }
clear_did_user_interact()419 inline void CustomTabSessionProto::clear_did_user_interact() {
420 _impl_.did_user_interact_ = false;
421 _impl_._has_bits_[0] &= ~0x00000008u;
422 }
_internal_did_user_interact()423 inline bool CustomTabSessionProto::_internal_did_user_interact() const {
424 return _impl_.did_user_interact_;
425 }
did_user_interact()426 inline bool CustomTabSessionProto::did_user_interact() const {
427 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.did_user_interact)
428 return _internal_did_user_interact();
429 }
_internal_set_did_user_interact(bool value)430 inline void CustomTabSessionProto::_internal_set_did_user_interact(bool value) {
431 _impl_._has_bits_[0] |= 0x00000008u;
432 _impl_.did_user_interact_ = value;
433 }
set_did_user_interact(bool value)434 inline void CustomTabSessionProto::set_did_user_interact(bool value) {
435 _internal_set_did_user_interact(value);
436 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.did_user_interact)
437 }
438
439 // optional bool was_user_closed = 5;
_internal_has_was_user_closed()440 inline bool CustomTabSessionProto::_internal_has_was_user_closed() const {
441 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
442 return value;
443 }
has_was_user_closed()444 inline bool CustomTabSessionProto::has_was_user_closed() const {
445 return _internal_has_was_user_closed();
446 }
clear_was_user_closed()447 inline void CustomTabSessionProto::clear_was_user_closed() {
448 _impl_.was_user_closed_ = false;
449 _impl_._has_bits_[0] &= ~0x00000010u;
450 }
_internal_was_user_closed()451 inline bool CustomTabSessionProto::_internal_was_user_closed() const {
452 return _impl_.was_user_closed_;
453 }
was_user_closed()454 inline bool CustomTabSessionProto::was_user_closed() const {
455 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.was_user_closed)
456 return _internal_was_user_closed();
457 }
_internal_set_was_user_closed(bool value)458 inline void CustomTabSessionProto::_internal_set_was_user_closed(bool value) {
459 _impl_._has_bits_[0] |= 0x00000010u;
460 _impl_.was_user_closed_ = value;
461 }
set_was_user_closed(bool value)462 inline void CustomTabSessionProto::set_was_user_closed(bool value) {
463 _internal_set_was_user_closed(value);
464 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.was_user_closed)
465 }
466
467 // optional bool is_partial = 6;
_internal_has_is_partial()468 inline bool CustomTabSessionProto::_internal_has_is_partial() const {
469 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
470 return value;
471 }
has_is_partial()472 inline bool CustomTabSessionProto::has_is_partial() const {
473 return _internal_has_is_partial();
474 }
clear_is_partial()475 inline void CustomTabSessionProto::clear_is_partial() {
476 _impl_.is_partial_ = false;
477 _impl_._has_bits_[0] &= ~0x00000020u;
478 }
_internal_is_partial()479 inline bool CustomTabSessionProto::_internal_is_partial() const {
480 return _impl_.is_partial_;
481 }
is_partial()482 inline bool CustomTabSessionProto::is_partial() const {
483 // @@protoc_insertion_point(field_get:metrics.CustomTabSessionProto.is_partial)
484 return _internal_is_partial();
485 }
_internal_set_is_partial(bool value)486 inline void CustomTabSessionProto::_internal_set_is_partial(bool value) {
487 _impl_._has_bits_[0] |= 0x00000020u;
488 _impl_.is_partial_ = value;
489 }
set_is_partial(bool value)490 inline void CustomTabSessionProto::set_is_partial(bool value) {
491 _internal_set_is_partial(value);
492 // @@protoc_insertion_point(field_set:metrics.CustomTabSessionProto.is_partial)
493 }
494
495 #ifdef __GNUC__
496 #pragma GCC diagnostic pop
497 #endif // __GNUC__
498
499 // @@protoc_insertion_point(namespace_scope)
500
501 } // namespace metrics
502
503 // @@protoc_insertion_point(global_scope)
504
505 #include <google/protobuf/port_undef.inc>
506 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_custom_5ftab_5fsession_2eproto
507