1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: network_id_proto.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_network_5fid_5fproto_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_network_5fid_5fproto_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_network_5fid_5fproto_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_network_5fid_5fproto_2eproto {
42   static const uint32_t offsets[];
43 };
44 namespace net {
45 namespace nqe {
46 namespace internal {
47 class NetworkIDProto;
48 struct NetworkIDProtoDefaultTypeInternal;
49 extern NetworkIDProtoDefaultTypeInternal _NetworkIDProto_default_instance_;
50 }  // namespace internal
51 }  // namespace nqe
52 }  // namespace net
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::net::nqe::internal::NetworkIDProto* Arena::CreateMaybeMessage<::net::nqe::internal::NetworkIDProto>(Arena*);
55 PROTOBUF_NAMESPACE_CLOSE
56 namespace net {
57 namespace nqe {
58 namespace internal {
59 
60 // ===================================================================
61 
62 class NetworkIDProto final :
63     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:net.nqe.internal.NetworkIDProto) */ {
64  public:
NetworkIDProto()65   inline NetworkIDProto() : NetworkIDProto(nullptr) {}
66   ~NetworkIDProto() override;
67   explicit PROTOBUF_CONSTEXPR NetworkIDProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
68 
69   NetworkIDProto(const NetworkIDProto& from);
NetworkIDProto(NetworkIDProto && from)70   NetworkIDProto(NetworkIDProto&& from) noexcept
71     : NetworkIDProto() {
72     *this = ::std::move(from);
73   }
74 
75   inline NetworkIDProto& operator=(const NetworkIDProto& from) {
76     CopyFrom(from);
77     return *this;
78   }
79   inline NetworkIDProto& operator=(NetworkIDProto&& from) noexcept {
80     if (this == &from) return *this;
81     if (GetOwningArena() == from.GetOwningArena()
82   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
83         && GetOwningArena() != nullptr
84   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
85     ) {
86       InternalSwap(&from);
87     } else {
88       CopyFrom(from);
89     }
90     return *this;
91   }
92 
unknown_fields()93   inline const std::string& unknown_fields() const {
94     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
95   }
mutable_unknown_fields()96   inline std::string* mutable_unknown_fields() {
97     return _internal_metadata_.mutable_unknown_fields<std::string>();
98   }
99 
default_instance()100   static const NetworkIDProto& default_instance() {
101     return *internal_default_instance();
102   }
internal_default_instance()103   static inline const NetworkIDProto* internal_default_instance() {
104     return reinterpret_cast<const NetworkIDProto*>(
105                &_NetworkIDProto_default_instance_);
106   }
107   static constexpr int kIndexInFileMessages =
108     0;
109 
swap(NetworkIDProto & a,NetworkIDProto & b)110   friend void swap(NetworkIDProto& a, NetworkIDProto& b) {
111     a.Swap(&b);
112   }
Swap(NetworkIDProto * other)113   PROTOBUF_NOINLINE void Swap(NetworkIDProto* other) {
114     if (other == this) return;
115   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
116     if (GetOwningArena() != nullptr &&
117         GetOwningArena() == other->GetOwningArena()) {
118    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
119     if (GetOwningArena() == other->GetOwningArena()) {
120   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
121       InternalSwap(other);
122     } else {
123       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
124     }
125   }
126   void UnsafeArenaSwap(NetworkIDProto* other) {
127     if (other == this) return;
128     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
129     InternalSwap(other);
130   }
131 
132   // implements Message ----------------------------------------------
133 
134   NetworkIDProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
135     return CreateMaybeMessage<NetworkIDProto>(arena);
136   }
137   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
138   void CopyFrom(const NetworkIDProto& from);
139   void MergeFrom(const NetworkIDProto& from);
140   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
141   bool IsInitialized() const final;
142 
143   size_t ByteSizeLong() const final;
144   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
145   uint8_t* _InternalSerialize(
146       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
147   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
148 
149   private:
150   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
151   void SharedDtor();
152   void SetCachedSize(int size) const;
153   void InternalSwap(NetworkIDProto* other);
154 
155   private:
156   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
157   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
158     return "net.nqe.internal.NetworkIDProto";
159   }
160   protected:
161   explicit NetworkIDProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
162                        bool is_message_owned = false);
163   public:
164 
165   std::string GetTypeName() const final;
166 
167   // nested types ----------------------------------------------------
168 
169   // accessors -------------------------------------------------------
170 
171   enum : int {
172     kIdFieldNumber = 2,
173     kConnectionTypeFieldNumber = 1,
174     kSignalStrengthFieldNumber = 3,
175   };
176   // optional string id = 2;
177   bool has_id() const;
178   private:
179   bool _internal_has_id() const;
180   public:
181   void clear_id();
182   const std::string& id() const;
183   template <typename ArgT0 = const std::string&, typename... ArgT>
184   void set_id(ArgT0&& arg0, ArgT... args);
185   std::string* mutable_id();
186   PROTOBUF_NODISCARD std::string* release_id();
187   void set_allocated_id(std::string* id);
188   private:
189   const std::string& _internal_id() const;
190   inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value);
191   std::string* _internal_mutable_id();
192   public:
193 
194   // optional int32 connection_type = 1;
195   bool has_connection_type() const;
196   private:
197   bool _internal_has_connection_type() const;
198   public:
199   void clear_connection_type();
200   int32_t connection_type() const;
201   void set_connection_type(int32_t value);
202   private:
203   int32_t _internal_connection_type() const;
204   void _internal_set_connection_type(int32_t value);
205   public:
206 
207   // optional int32 signal_strength = 3;
208   bool has_signal_strength() const;
209   private:
210   bool _internal_has_signal_strength() const;
211   public:
212   void clear_signal_strength();
213   int32_t signal_strength() const;
214   void set_signal_strength(int32_t value);
215   private:
216   int32_t _internal_signal_strength() const;
217   void _internal_set_signal_strength(int32_t value);
218   public:
219 
220   // @@protoc_insertion_point(class_scope:net.nqe.internal.NetworkIDProto)
221  private:
222   class _Internal;
223 
224   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
225   typedef void InternalArenaConstructable_;
226   typedef void DestructorSkippable_;
227   struct Impl_ {
228     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
229     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
230     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
231     int32_t connection_type_;
232     int32_t signal_strength_;
233   };
234   union { Impl_ _impl_; };
235   friend struct ::TableStruct_network_5fid_5fproto_2eproto;
236 };
237 // ===================================================================
238 
239 
240 // ===================================================================
241 
242 #ifdef __GNUC__
243   #pragma GCC diagnostic push
244   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
245 #endif  // __GNUC__
246 // NetworkIDProto
247 
248 // optional int32 connection_type = 1;
_internal_has_connection_type()249 inline bool NetworkIDProto::_internal_has_connection_type() const {
250   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
251   return value;
252 }
has_connection_type()253 inline bool NetworkIDProto::has_connection_type() const {
254   return _internal_has_connection_type();
255 }
clear_connection_type()256 inline void NetworkIDProto::clear_connection_type() {
257   _impl_.connection_type_ = 0;
258   _impl_._has_bits_[0] &= ~0x00000002u;
259 }
_internal_connection_type()260 inline int32_t NetworkIDProto::_internal_connection_type() const {
261   return _impl_.connection_type_;
262 }
connection_type()263 inline int32_t NetworkIDProto::connection_type() const {
264   // @@protoc_insertion_point(field_get:net.nqe.internal.NetworkIDProto.connection_type)
265   return _internal_connection_type();
266 }
_internal_set_connection_type(int32_t value)267 inline void NetworkIDProto::_internal_set_connection_type(int32_t value) {
268   _impl_._has_bits_[0] |= 0x00000002u;
269   _impl_.connection_type_ = value;
270 }
set_connection_type(int32_t value)271 inline void NetworkIDProto::set_connection_type(int32_t value) {
272   _internal_set_connection_type(value);
273   // @@protoc_insertion_point(field_set:net.nqe.internal.NetworkIDProto.connection_type)
274 }
275 
276 // optional string id = 2;
_internal_has_id()277 inline bool NetworkIDProto::_internal_has_id() const {
278   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
279   return value;
280 }
has_id()281 inline bool NetworkIDProto::has_id() const {
282   return _internal_has_id();
283 }
clear_id()284 inline void NetworkIDProto::clear_id() {
285   _impl_.id_.ClearToEmpty();
286   _impl_._has_bits_[0] &= ~0x00000001u;
287 }
id()288 inline const std::string& NetworkIDProto::id() const {
289   // @@protoc_insertion_point(field_get:net.nqe.internal.NetworkIDProto.id)
290   return _internal_id();
291 }
292 template <typename ArgT0, typename... ArgT>
293 inline PROTOBUF_ALWAYS_INLINE
set_id(ArgT0 && arg0,ArgT...args)294 void NetworkIDProto::set_id(ArgT0&& arg0, ArgT... args) {
295  _impl_._has_bits_[0] |= 0x00000001u;
296  _impl_.id_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
297   // @@protoc_insertion_point(field_set:net.nqe.internal.NetworkIDProto.id)
298 }
mutable_id()299 inline std::string* NetworkIDProto::mutable_id() {
300   std::string* _s = _internal_mutable_id();
301   // @@protoc_insertion_point(field_mutable:net.nqe.internal.NetworkIDProto.id)
302   return _s;
303 }
_internal_id()304 inline const std::string& NetworkIDProto::_internal_id() const {
305   return _impl_.id_.Get();
306 }
_internal_set_id(const std::string & value)307 inline void NetworkIDProto::_internal_set_id(const std::string& value) {
308   _impl_._has_bits_[0] |= 0x00000001u;
309   _impl_.id_.Set(value, GetArenaForAllocation());
310 }
_internal_mutable_id()311 inline std::string* NetworkIDProto::_internal_mutable_id() {
312   _impl_._has_bits_[0] |= 0x00000001u;
313   return _impl_.id_.Mutable(GetArenaForAllocation());
314 }
release_id()315 inline std::string* NetworkIDProto::release_id() {
316   // @@protoc_insertion_point(field_release:net.nqe.internal.NetworkIDProto.id)
317   if (!_internal_has_id()) {
318     return nullptr;
319   }
320   _impl_._has_bits_[0] &= ~0x00000001u;
321   auto* p = _impl_.id_.Release();
322 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
323   if (_impl_.id_.IsDefault()) {
324     _impl_.id_.Set("", GetArenaForAllocation());
325   }
326 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
327   return p;
328 }
set_allocated_id(std::string * id)329 inline void NetworkIDProto::set_allocated_id(std::string* id) {
330   if (id != nullptr) {
331     _impl_._has_bits_[0] |= 0x00000001u;
332   } else {
333     _impl_._has_bits_[0] &= ~0x00000001u;
334   }
335   _impl_.id_.SetAllocated(id, GetArenaForAllocation());
336 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
337   if (_impl_.id_.IsDefault()) {
338     _impl_.id_.Set("", GetArenaForAllocation());
339   }
340 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
341   // @@protoc_insertion_point(field_set_allocated:net.nqe.internal.NetworkIDProto.id)
342 }
343 
344 // optional int32 signal_strength = 3;
_internal_has_signal_strength()345 inline bool NetworkIDProto::_internal_has_signal_strength() const {
346   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
347   return value;
348 }
has_signal_strength()349 inline bool NetworkIDProto::has_signal_strength() const {
350   return _internal_has_signal_strength();
351 }
clear_signal_strength()352 inline void NetworkIDProto::clear_signal_strength() {
353   _impl_.signal_strength_ = 0;
354   _impl_._has_bits_[0] &= ~0x00000004u;
355 }
_internal_signal_strength()356 inline int32_t NetworkIDProto::_internal_signal_strength() const {
357   return _impl_.signal_strength_;
358 }
signal_strength()359 inline int32_t NetworkIDProto::signal_strength() const {
360   // @@protoc_insertion_point(field_get:net.nqe.internal.NetworkIDProto.signal_strength)
361   return _internal_signal_strength();
362 }
_internal_set_signal_strength(int32_t value)363 inline void NetworkIDProto::_internal_set_signal_strength(int32_t value) {
364   _impl_._has_bits_[0] |= 0x00000004u;
365   _impl_.signal_strength_ = value;
366 }
set_signal_strength(int32_t value)367 inline void NetworkIDProto::set_signal_strength(int32_t value) {
368   _internal_set_signal_strength(value);
369   // @@protoc_insertion_point(field_set:net.nqe.internal.NetworkIDProto.signal_strength)
370 }
371 
372 #ifdef __GNUC__
373   #pragma GCC diagnostic pop
374 #endif  // __GNUC__
375 
376 // @@protoc_insertion_point(namespace_scope)
377 
378 }  // namespace internal
379 }  // namespace nqe
380 }  // namespace net
381 
382 // @@protoc_insertion_point(global_scope)
383 
384 #include <google/protobuf/port_undef.inc>
385 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_network_5fid_5fproto_2eproto
386