1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: user_action_event.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_user_5faction_5fevent_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_user_5faction_5fevent_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_user_5faction_5fevent_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_user_5faction_5fevent_2eproto {
42   static const uint32_t offsets[];
43 };
44 namespace metrics {
45 class UserActionEventProto;
46 struct UserActionEventProtoDefaultTypeInternal;
47 extern UserActionEventProtoDefaultTypeInternal _UserActionEventProto_default_instance_;
48 }  // namespace metrics
49 PROTOBUF_NAMESPACE_OPEN
50 template<> ::metrics::UserActionEventProto* Arena::CreateMaybeMessage<::metrics::UserActionEventProto>(Arena*);
51 PROTOBUF_NAMESPACE_CLOSE
52 namespace metrics {
53 
54 // ===================================================================
55 
56 class UserActionEventProto final :
57     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.UserActionEventProto) */ {
58  public:
UserActionEventProto()59   inline UserActionEventProto() : UserActionEventProto(nullptr) {}
60   ~UserActionEventProto() override;
61   explicit PROTOBUF_CONSTEXPR UserActionEventProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
62 
63   UserActionEventProto(const UserActionEventProto& from);
UserActionEventProto(UserActionEventProto && from)64   UserActionEventProto(UserActionEventProto&& from) noexcept
65     : UserActionEventProto() {
66     *this = ::std::move(from);
67   }
68 
69   inline UserActionEventProto& operator=(const UserActionEventProto& from) {
70     CopyFrom(from);
71     return *this;
72   }
73   inline UserActionEventProto& operator=(UserActionEventProto&& 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 UserActionEventProto& default_instance() {
95     return *internal_default_instance();
96   }
internal_default_instance()97   static inline const UserActionEventProto* internal_default_instance() {
98     return reinterpret_cast<const UserActionEventProto*>(
99                &_UserActionEventProto_default_instance_);
100   }
101   static constexpr int kIndexInFileMessages =
102     0;
103 
swap(UserActionEventProto & a,UserActionEventProto & b)104   friend void swap(UserActionEventProto& a, UserActionEventProto& b) {
105     a.Swap(&b);
106   }
Swap(UserActionEventProto * other)107   PROTOBUF_NOINLINE void Swap(UserActionEventProto* 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(UserActionEventProto* other) {
121     if (other == this) return;
122     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123     InternalSwap(other);
124   }
125 
126   // implements Message ----------------------------------------------
127 
128   UserActionEventProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
129     return CreateMaybeMessage<UserActionEventProto>(arena);
130   }
131   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
132   void CopyFrom(const UserActionEventProto& from);
133   void MergeFrom(const UserActionEventProto& 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(UserActionEventProto* other);
148 
149   private:
150   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
151   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
152     return "metrics.UserActionEventProto";
153   }
154   protected:
155   explicit UserActionEventProto(::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     kNameHashFieldNumber = 1,
167     kTimeSecFieldNumber = 2,
168   };
169   // optional fixed64 name_hash = 1;
170   bool has_name_hash() const;
171   private:
172   bool _internal_has_name_hash() const;
173   public:
174   void clear_name_hash();
175   uint64_t name_hash() const;
176   void set_name_hash(uint64_t value);
177   private:
178   uint64_t _internal_name_hash() const;
179   void _internal_set_name_hash(uint64_t value);
180   public:
181 
182   // optional int64 time_sec = 2;
183   bool has_time_sec() const;
184   private:
185   bool _internal_has_time_sec() const;
186   public:
187   void clear_time_sec();
188   int64_t time_sec() const;
189   void set_time_sec(int64_t value);
190   private:
191   int64_t _internal_time_sec() const;
192   void _internal_set_time_sec(int64_t value);
193   public:
194 
195   // @@protoc_insertion_point(class_scope:metrics.UserActionEventProto)
196  private:
197   class _Internal;
198 
199   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
200   typedef void InternalArenaConstructable_;
201   typedef void DestructorSkippable_;
202   struct Impl_ {
203     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
204     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
205     uint64_t name_hash_;
206     int64_t time_sec_;
207   };
208   union { Impl_ _impl_; };
209   friend struct ::TableStruct_user_5faction_5fevent_2eproto;
210 };
211 // ===================================================================
212 
213 
214 // ===================================================================
215 
216 #ifdef __GNUC__
217   #pragma GCC diagnostic push
218   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
219 #endif  // __GNUC__
220 // UserActionEventProto
221 
222 // optional fixed64 name_hash = 1;
_internal_has_name_hash()223 inline bool UserActionEventProto::_internal_has_name_hash() const {
224   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
225   return value;
226 }
has_name_hash()227 inline bool UserActionEventProto::has_name_hash() const {
228   return _internal_has_name_hash();
229 }
clear_name_hash()230 inline void UserActionEventProto::clear_name_hash() {
231   _impl_.name_hash_ = uint64_t{0u};
232   _impl_._has_bits_[0] &= ~0x00000001u;
233 }
_internal_name_hash()234 inline uint64_t UserActionEventProto::_internal_name_hash() const {
235   return _impl_.name_hash_;
236 }
name_hash()237 inline uint64_t UserActionEventProto::name_hash() const {
238   // @@protoc_insertion_point(field_get:metrics.UserActionEventProto.name_hash)
239   return _internal_name_hash();
240 }
_internal_set_name_hash(uint64_t value)241 inline void UserActionEventProto::_internal_set_name_hash(uint64_t value) {
242   _impl_._has_bits_[0] |= 0x00000001u;
243   _impl_.name_hash_ = value;
244 }
set_name_hash(uint64_t value)245 inline void UserActionEventProto::set_name_hash(uint64_t value) {
246   _internal_set_name_hash(value);
247   // @@protoc_insertion_point(field_set:metrics.UserActionEventProto.name_hash)
248 }
249 
250 // optional int64 time_sec = 2;
_internal_has_time_sec()251 inline bool UserActionEventProto::_internal_has_time_sec() const {
252   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
253   return value;
254 }
has_time_sec()255 inline bool UserActionEventProto::has_time_sec() const {
256   return _internal_has_time_sec();
257 }
clear_time_sec()258 inline void UserActionEventProto::clear_time_sec() {
259   _impl_.time_sec_ = int64_t{0};
260   _impl_._has_bits_[0] &= ~0x00000002u;
261 }
_internal_time_sec()262 inline int64_t UserActionEventProto::_internal_time_sec() const {
263   return _impl_.time_sec_;
264 }
time_sec()265 inline int64_t UserActionEventProto::time_sec() const {
266   // @@protoc_insertion_point(field_get:metrics.UserActionEventProto.time_sec)
267   return _internal_time_sec();
268 }
_internal_set_time_sec(int64_t value)269 inline void UserActionEventProto::_internal_set_time_sec(int64_t value) {
270   _impl_._has_bits_[0] |= 0x00000002u;
271   _impl_.time_sec_ = value;
272 }
set_time_sec(int64_t value)273 inline void UserActionEventProto::set_time_sec(int64_t value) {
274   _internal_set_time_sec(value);
275   // @@protoc_insertion_point(field_set:metrics.UserActionEventProto.time_sec)
276 }
277 
278 #ifdef __GNUC__
279   #pragma GCC diagnostic pop
280 #endif  // __GNUC__
281 
282 // @@protoc_insertion_point(namespace_scope)
283 
284 }  // namespace metrics
285 
286 // @@protoc_insertion_point(global_scope)
287 
288 #include <google/protobuf/port_undef.inc>
289 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_user_5faction_5fevent_2eproto
290