JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
udp_driver.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/udp_driver.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fdriver_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fdriver_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/generated_message_reflection.h>
29#include <google/protobuf/message.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/unknown_field_set.h>
33#include "goby/protobuf/option_extensions.pb.h"
34#include "goby/acomms/protobuf/driver_base.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fudp_5fdriver_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fudp_5fdriver_2eproto;
53namespace jaiabot {
54namespace udp {
55namespace protobuf {
56class Config;
57struct ConfigDefaultTypeInternal;
58extern ConfigDefaultTypeInternal _Config_default_instance_;
59class Config_EndPoint;
60struct Config_EndPointDefaultTypeInternal;
61extern Config_EndPointDefaultTypeInternal _Config_EndPoint_default_instance_;
62} // namespace protobuf
63} // namespace udp
64} // namespace jaiabot
65PROTOBUF_NAMESPACE_OPEN
66template<> ::jaiabot::udp::protobuf::Config* Arena::CreateMaybeMessage<::jaiabot::udp::protobuf::Config>(Arena*);
67template<> ::jaiabot::udp::protobuf::Config_EndPoint* Arena::CreateMaybeMessage<::jaiabot::udp::protobuf::Config_EndPoint>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace jaiabot {
70namespace udp {
71namespace protobuf {
72
73// ===================================================================
74
75class Config_EndPoint final :
76 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.udp.protobuf.Config.EndPoint) */ {
77 public:
78 inline Config_EndPoint() : Config_EndPoint(nullptr) {}
79 ~Config_EndPoint() override;
80 explicit PROTOBUF_CONSTEXPR Config_EndPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81
84 : Config_EndPoint() {
85 *this = ::std::move(from);
86 }
87
89 CopyFrom(from);
90 return *this;
91 }
92 inline Config_EndPoint& operator=(Config_EndPoint&& from) noexcept {
93 if (this == &from) return *this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() != nullptr
97 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
98 ) {
99 InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108 }
109 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
111 }
112
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
114 return GetDescriptor();
115 }
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
117 return default_instance().GetMetadata().descriptor;
118 }
119 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
120 return default_instance().GetMetadata().reflection;
121 }
124 }
126 return reinterpret_cast<const Config_EndPoint*>(
128 }
129 static constexpr int kIndexInFileMessages =
130 0;
131
133 a.Swap(&b);
134 }
135 inline void Swap(Config_EndPoint* other) {
136 if (other == this) return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() != nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
140 #else // PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() == other->GetOwningArena()) {
142 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
143 InternalSwap(other);
144 } else {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
146 }
147 }
149 if (other == this) return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 InternalSwap(other);
152 }
153
154 // implements Message ----------------------------------------------
155
156 Config_EndPoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
157 return CreateMaybeMessage<Config_EndPoint>(arena);
158 }
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 void CopyFrom(const Config_EndPoint& from);
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 void MergeFrom( const Config_EndPoint& from) {
163 Config_EndPoint::MergeImpl(*this, from);
164 }
165 private:
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
167 public:
168 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169 bool IsInitialized() const final;
170
171 size_t ByteSizeLong() const final;
172 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
176
177 private:
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
179 void SharedDtor();
180 void SetCachedSize(int size) const final;
181 void InternalSwap(Config_EndPoint* other);
182
183 private:
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "jaiabot.udp.protobuf.Config.EndPoint";
187 }
188 protected:
189 explicit Config_EndPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned = false);
191 public:
192
193 static const ClassData _class_data_;
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
195
196 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
197
198 // nested types ----------------------------------------------------
199
200 // accessors -------------------------------------------------------
201
202 enum : int {
206 };
207 // optional string ip = 2 [default = "127.0.0.1"];
208 bool has_ip() const;
209 private:
210 bool _internal_has_ip() const;
211 public:
212 void clear_ip();
213 const std::string& ip() const;
214 template <typename ArgT0 = const std::string&, typename... ArgT>
215 void set_ip(ArgT0&& arg0, ArgT... args);
216 std::string* mutable_ip();
217 PROTOBUF_NODISCARD std::string* release_ip();
218 void set_allocated_ip(std::string* ip);
219 private:
220 const std::string& _internal_ip() const;
221 inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value);
222 std::string* _internal_mutable_ip();
223 public:
224
225 // optional uint32 modem_id = 1 [default = 0];
226 bool has_modem_id() const;
227 private:
228 bool _internal_has_modem_id() const;
229 public:
230 void clear_modem_id();
231 uint32_t modem_id() const;
232 void set_modem_id(uint32_t value);
233 private:
234 uint32_t _internal_modem_id() const;
235 void _internal_set_modem_id(uint32_t value);
236 public:
237
238 // required uint32 port = 3;
239 bool has_port() const;
240 private:
241 bool _internal_has_port() const;
242 public:
243 void clear_port();
244 uint32_t port() const;
245 void set_port(uint32_t value);
246 private:
247 uint32_t _internal_port() const;
248 void _internal_set_port(uint32_t value);
249 public:
250
251 // @@protoc_insertion_point(class_scope:jaiabot.udp.protobuf.Config.EndPoint)
252 private:
253 class _Internal;
254
255 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
256 typedef void InternalArenaConstructable_;
257 typedef void DestructorSkippable_;
258 struct Impl_ {
259 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
260 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
261 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_ip_;
262 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_;
263 uint32_t modem_id_;
264 uint32_t port_;
265 };
266 union { Impl_ _impl_; };
267 friend struct ::TableStruct_jaiabot_2fmessages_2fudp_5fdriver_2eproto;
268};
269// -------------------------------------------------------------------
270
271class Config final :
272 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.udp.protobuf.Config) */ {
273 public:
274 inline Config() : Config(nullptr) {}
275 ~Config() override;
276 explicit PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
277
278 Config(const Config& from);
279 Config(Config&& from) noexcept
280 : Config() {
281 *this = ::std::move(from);
282 }
283
284 inline Config& operator=(const Config& from) {
285 CopyFrom(from);
286 return *this;
287 }
288 inline Config& operator=(Config&& from) noexcept {
289 if (this == &from) return *this;
290 if (GetOwningArena() == from.GetOwningArena()
291 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
292 && GetOwningArena() != nullptr
293 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
294 ) {
295 InternalSwap(&from);
296 } else {
297 CopyFrom(from);
298 }
299 return *this;
300 }
301
302 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
303 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
304 }
305 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
306 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
307 }
308
309 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
310 return GetDescriptor();
311 }
312 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
313 return default_instance().GetMetadata().descriptor;
314 }
315 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
316 return default_instance().GetMetadata().reflection;
317 }
318 static const Config& default_instance() {
319 return *internal_default_instance();
320 }
321 static inline const Config* internal_default_instance() {
322 return reinterpret_cast<const Config*>(
324 }
325 static constexpr int kIndexInFileMessages =
326 1;
327
328 friend void swap(Config& a, Config& b) {
329 a.Swap(&b);
330 }
331 inline void Swap(Config* other) {
332 if (other == this) return;
333 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
334 if (GetOwningArena() != nullptr &&
335 GetOwningArena() == other->GetOwningArena()) {
336 #else // PROTOBUF_FORCE_COPY_IN_SWAP
337 if (GetOwningArena() == other->GetOwningArena()) {
338 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
339 InternalSwap(other);
340 } else {
341 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
342 }
343 }
344 void UnsafeArenaSwap(Config* other) {
345 if (other == this) return;
346 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
347 InternalSwap(other);
348 }
349
350 // implements Message ----------------------------------------------
351
352 Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
353 return CreateMaybeMessage<Config>(arena);
354 }
355 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
356 void CopyFrom(const Config& from);
357 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
358 void MergeFrom( const Config& from) {
359 Config::MergeImpl(*this, from);
360 }
361 private:
362 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
363 public:
364 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
365 bool IsInitialized() const final;
366
367 size_t ByteSizeLong() const final;
368 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
369 uint8_t* _InternalSerialize(
370 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
371 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
372
373 private:
374 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
375 void SharedDtor();
376 void SetCachedSize(int size) const final;
377 void InternalSwap(Config* other);
378
379 private:
380 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
381 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
382 return "jaiabot.udp.protobuf.Config";
383 }
384 protected:
385 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
386 bool is_message_owned = false);
387 public:
388
389 static const ClassData _class_data_;
390 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
391
392 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
393
394 // nested types ----------------------------------------------------
395
397
398 // accessors -------------------------------------------------------
399
400 enum : int {
401 kRemoteFieldNumber = 2,
402 kAdditionalApplicationAckModemIdFieldNumber = 21,
403 kLocalFieldNumber = 1,
404 kIpv6FieldNumber = 4,
405 kMaxFrameSizeFieldNumber = 3,
406 };
407 // repeated .jaiabot.udp.protobuf.Config.EndPoint remote = 2 [(.goby.field) = {
408 int remote_size() const;
409 private:
410 int _internal_remote_size() const;
411 public:
412 void clear_remote();
413 ::jaiabot::udp::protobuf::Config_EndPoint* mutable_remote(int index);
414 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >*
415 mutable_remote();
416 private:
417 const ::jaiabot::udp::protobuf::Config_EndPoint& _internal_remote(int index) const;
418 ::jaiabot::udp::protobuf::Config_EndPoint* _internal_add_remote();
419 public:
420 const ::jaiabot::udp::protobuf::Config_EndPoint& remote(int index) const;
422 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >&
423 remote() const;
424
425 // repeated uint32 additional_application_ack_modem_id = 21;
426 int additional_application_ack_modem_id_size() const;
427 private:
428 int _internal_additional_application_ack_modem_id_size() const;
429 public:
430 void clear_additional_application_ack_modem_id();
431 private:
432 uint32_t _internal_additional_application_ack_modem_id(int index) const;
433 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
434 _internal_additional_application_ack_modem_id() const;
435 void _internal_add_additional_application_ack_modem_id(uint32_t value);
436 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
437 _internal_mutable_additional_application_ack_modem_id();
438 public:
439 uint32_t additional_application_ack_modem_id(int index) const;
440 void set_additional_application_ack_modem_id(int index, uint32_t value);
441 void add_additional_application_ack_modem_id(uint32_t value);
442 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
443 additional_application_ack_modem_id() const;
444 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
445 mutable_additional_application_ack_modem_id();
446
447 // required .jaiabot.udp.protobuf.Config.EndPoint local = 1 [(.goby.field) = {
448 bool has_local() const;
449 private:
450 bool _internal_has_local() const;
451 public:
452 void clear_local();
453 const ::jaiabot::udp::protobuf::Config_EndPoint& local() const;
454 PROTOBUF_NODISCARD ::jaiabot::udp::protobuf::Config_EndPoint* release_local();
456 void set_allocated_local(::jaiabot::udp::protobuf::Config_EndPoint* local);
457 private:
458 const ::jaiabot::udp::protobuf::Config_EndPoint& _internal_local() const;
459 ::jaiabot::udp::protobuf::Config_EndPoint* _internal_mutable_local();
460 public:
461 void unsafe_arena_set_allocated_local(
463 ::jaiabot::udp::protobuf::Config_EndPoint* unsafe_arena_release_local();
464
465 // optional bool ipv6 = 4 [default = false];
466 bool has_ipv6() const;
467 private:
468 bool _internal_has_ipv6() const;
469 public:
470 void clear_ipv6();
471 bool ipv6() const;
472 void set_ipv6(bool value);
473 private:
474 bool _internal_ipv6() const;
475 void _internal_set_ipv6(bool value);
476 public:
477
478 // optional int32 max_frame_size = 3 [default = 1400];
479 bool has_max_frame_size() const;
480 private:
481 bool _internal_has_max_frame_size() const;
482 public:
483 void clear_max_frame_size();
484 int32_t max_frame_size() const;
485 void set_max_frame_size(int32_t value);
486 private:
487 int32_t _internal_max_frame_size() const;
488 void _internal_set_max_frame_size(int32_t value);
489 public:
490
491 // @@protoc_insertion_point(class_scope:jaiabot.udp.protobuf.Config)
492 private:
493 class _Internal;
494
495 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
496 typedef void InternalArenaConstructable_;
497 typedef void DestructorSkippable_;
498 struct Impl_ {
499 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
500 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
501 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint > remote_;
502 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > additional_application_ack_modem_id_;
504 bool ipv6_;
505 int32_t max_frame_size_;
506 };
507 union { Impl_ _impl_; };
508 friend struct ::TableStruct_jaiabot_2fmessages_2fudp_5fdriver_2eproto;
509};
510// ===================================================================
511
512static const int kConfigFieldNumber = 1501;
513extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
514 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false >
516
517// ===================================================================
518
519#ifdef __GNUC__
520 #pragma GCC diagnostic push
521 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
522#endif // __GNUC__
523// Config_EndPoint
524
525// optional uint32 modem_id = 1 [default = 0];
526inline bool Config_EndPoint::_internal_has_modem_id() const {
527 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
528 return value;
529}
530inline bool Config_EndPoint::has_modem_id() const {
531 return _internal_has_modem_id();
532}
533inline void Config_EndPoint::clear_modem_id() {
534 _impl_.modem_id_ = 0u;
535 _impl_._has_bits_[0] &= ~0x00000002u;
536}
537inline uint32_t Config_EndPoint::_internal_modem_id() const {
538 return _impl_.modem_id_;
539}
540inline uint32_t Config_EndPoint::modem_id() const {
541 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.EndPoint.modem_id)
542 return _internal_modem_id();
543}
544inline void Config_EndPoint::_internal_set_modem_id(uint32_t value) {
545 _impl_._has_bits_[0] |= 0x00000002u;
546 _impl_.modem_id_ = value;
547}
548inline void Config_EndPoint::set_modem_id(uint32_t value) {
549 _internal_set_modem_id(value);
550 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.EndPoint.modem_id)
551}
552
553// optional string ip = 2 [default = "127.0.0.1"];
554inline bool Config_EndPoint::_internal_has_ip() const {
555 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
556 return value;
557}
558inline bool Config_EndPoint::has_ip() const {
559 return _internal_has_ip();
560}
561inline void Config_EndPoint::clear_ip() {
562 _impl_.ip_.ClearToDefault(::jaiabot::udp::protobuf::Config_EndPoint::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation());
563 _impl_._has_bits_[0] &= ~0x00000001u;
564}
565inline const std::string& Config_EndPoint::ip() const {
566 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.EndPoint.ip)
567 if (_impl_.ip_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_ip_.get();
568 return _internal_ip();
569}
570template <typename ArgT0, typename... ArgT>
571inline PROTOBUF_ALWAYS_INLINE
572void Config_EndPoint::set_ip(ArgT0&& arg0, ArgT... args) {
573 _impl_._has_bits_[0] |= 0x00000001u;
574 _impl_.ip_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
575 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.EndPoint.ip)
576}
577inline std::string* Config_EndPoint::mutable_ip() {
578 std::string* _s = _internal_mutable_ip();
579 // @@protoc_insertion_point(field_mutable:jaiabot.udp.protobuf.Config.EndPoint.ip)
580 return _s;
581}
582inline const std::string& Config_EndPoint::_internal_ip() const {
583 return _impl_.ip_.Get();
584}
585inline void Config_EndPoint::_internal_set_ip(const std::string& value) {
586 _impl_._has_bits_[0] |= 0x00000001u;
587 _impl_.ip_.Set(value, GetArenaForAllocation());
588}
589inline std::string* Config_EndPoint::_internal_mutable_ip() {
590 _impl_._has_bits_[0] |= 0x00000001u;
591 return _impl_.ip_.Mutable(::jaiabot::udp::protobuf::Config_EndPoint::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation());
592}
593inline std::string* Config_EndPoint::release_ip() {
594 // @@protoc_insertion_point(field_release:jaiabot.udp.protobuf.Config.EndPoint.ip)
595 if (!_internal_has_ip()) {
596 return nullptr;
597 }
598 _impl_._has_bits_[0] &= ~0x00000001u;
599 auto* p = _impl_.ip_.Release();
600 return p;
601}
602inline void Config_EndPoint::set_allocated_ip(std::string* ip) {
603 if (ip != nullptr) {
604 _impl_._has_bits_[0] |= 0x00000001u;
605 } else {
606 _impl_._has_bits_[0] &= ~0x00000001u;
607 }
608 _impl_.ip_.SetAllocated(ip, GetArenaForAllocation());
609 // @@protoc_insertion_point(field_set_allocated:jaiabot.udp.protobuf.Config.EndPoint.ip)
610}
611
612// required uint32 port = 3;
613inline bool Config_EndPoint::_internal_has_port() const {
614 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
615 return value;
616}
617inline bool Config_EndPoint::has_port() const {
618 return _internal_has_port();
619}
620inline void Config_EndPoint::clear_port() {
621 _impl_.port_ = 0u;
622 _impl_._has_bits_[0] &= ~0x00000004u;
623}
624inline uint32_t Config_EndPoint::_internal_port() const {
625 return _impl_.port_;
626}
627inline uint32_t Config_EndPoint::port() const {
628 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.EndPoint.port)
629 return _internal_port();
630}
631inline void Config_EndPoint::_internal_set_port(uint32_t value) {
632 _impl_._has_bits_[0] |= 0x00000004u;
633 _impl_.port_ = value;
634}
635inline void Config_EndPoint::set_port(uint32_t value) {
636 _internal_set_port(value);
637 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.EndPoint.port)
638}
639
640// -------------------------------------------------------------------
641
642// Config
643
644// required .jaiabot.udp.protobuf.Config.EndPoint local = 1 [(.goby.field) = {
645inline bool Config::_internal_has_local() const {
646 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
647 PROTOBUF_ASSUME(!value || _impl_.local_ != nullptr);
648 return value;
649}
650inline bool Config::has_local() const {
651 return _internal_has_local();
652}
653inline void Config::clear_local() {
654 if (_impl_.local_ != nullptr) _impl_.local_->Clear();
655 _impl_._has_bits_[0] &= ~0x00000001u;
656}
657inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config::_internal_local() const {
658 const ::jaiabot::udp::protobuf::Config_EndPoint* p = _impl_.local_;
659 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::udp::protobuf::Config_EndPoint&>(
661}
662inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config::local() const {
663 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.local)
664 return _internal_local();
665}
666inline void Config::unsafe_arena_set_allocated_local(
668 if (GetArenaForAllocation() == nullptr) {
669 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.local_);
670 }
671 _impl_.local_ = local;
672 if (local) {
673 _impl_._has_bits_[0] |= 0x00000001u;
674 } else {
675 _impl_._has_bits_[0] &= ~0x00000001u;
676 }
677 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.udp.protobuf.Config.local)
678}
679inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::release_local() {
680 _impl_._has_bits_[0] &= ~0x00000001u;
681 ::jaiabot::udp::protobuf::Config_EndPoint* temp = _impl_.local_;
682 _impl_.local_ = nullptr;
683#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
684 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
685 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
686 if (GetArenaForAllocation() == nullptr) { delete old; }
687#else // PROTOBUF_FORCE_COPY_IN_RELEASE
688 if (GetArenaForAllocation() != nullptr) {
689 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
690 }
691#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
692 return temp;
693}
694inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::unsafe_arena_release_local() {
695 // @@protoc_insertion_point(field_release:jaiabot.udp.protobuf.Config.local)
696 _impl_._has_bits_[0] &= ~0x00000001u;
697 ::jaiabot::udp::protobuf::Config_EndPoint* temp = _impl_.local_;
698 _impl_.local_ = nullptr;
699 return temp;
700}
701inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::_internal_mutable_local() {
702 _impl_._has_bits_[0] |= 0x00000001u;
703 if (_impl_.local_ == nullptr) {
704 auto* p = CreateMaybeMessage<::jaiabot::udp::protobuf::Config_EndPoint>(GetArenaForAllocation());
705 _impl_.local_ = p;
706 }
707 return _impl_.local_;
708}
709inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::mutable_local() {
710 ::jaiabot::udp::protobuf::Config_EndPoint* _msg = _internal_mutable_local();
711 // @@protoc_insertion_point(field_mutable:jaiabot.udp.protobuf.Config.local)
712 return _msg;
713}
714inline void Config::set_allocated_local(::jaiabot::udp::protobuf::Config_EndPoint* local) {
715 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
716 if (message_arena == nullptr) {
717 delete _impl_.local_;
718 }
719 if (local) {
720 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
721 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(local);
722 if (message_arena != submessage_arena) {
723 local = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
724 message_arena, local, submessage_arena);
725 }
726 _impl_._has_bits_[0] |= 0x00000001u;
727 } else {
728 _impl_._has_bits_[0] &= ~0x00000001u;
729 }
730 _impl_.local_ = local;
731 // @@protoc_insertion_point(field_set_allocated:jaiabot.udp.protobuf.Config.local)
732}
733
734// repeated .jaiabot.udp.protobuf.Config.EndPoint remote = 2 [(.goby.field) = {
735inline int Config::_internal_remote_size() const {
736 return _impl_.remote_.size();
737}
738inline int Config::remote_size() const {
739 return _internal_remote_size();
740}
741inline void Config::clear_remote() {
742 _impl_.remote_.Clear();
743}
744inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::mutable_remote(int index) {
745 // @@protoc_insertion_point(field_mutable:jaiabot.udp.protobuf.Config.remote)
746 return _impl_.remote_.Mutable(index);
747}
748inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >*
749Config::mutable_remote() {
750 // @@protoc_insertion_point(field_mutable_list:jaiabot.udp.protobuf.Config.remote)
751 return &_impl_.remote_;
752}
753inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config::_internal_remote(int index) const {
754 return _impl_.remote_.Get(index);
755}
756inline const ::jaiabot::udp::protobuf::Config_EndPoint& Config::remote(int index) const {
757 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.remote)
758 return _internal_remote(index);
759}
760inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::_internal_add_remote() {
761 return _impl_.remote_.Add();
762}
763inline ::jaiabot::udp::protobuf::Config_EndPoint* Config::add_remote() {
764 ::jaiabot::udp::protobuf::Config_EndPoint* _add = _internal_add_remote();
765 // @@protoc_insertion_point(field_add:jaiabot.udp.protobuf.Config.remote)
766 return _add;
767}
768inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::udp::protobuf::Config_EndPoint >&
769Config::remote() const {
770 // @@protoc_insertion_point(field_list:jaiabot.udp.protobuf.Config.remote)
771 return _impl_.remote_;
772}
773
774// optional int32 max_frame_size = 3 [default = 1400];
775inline bool Config::_internal_has_max_frame_size() const {
776 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
777 return value;
778}
779inline bool Config::has_max_frame_size() const {
780 return _internal_has_max_frame_size();
781}
782inline void Config::clear_max_frame_size() {
783 _impl_.max_frame_size_ = 1400;
784 _impl_._has_bits_[0] &= ~0x00000004u;
785}
786inline int32_t Config::_internal_max_frame_size() const {
787 return _impl_.max_frame_size_;
788}
789inline int32_t Config::max_frame_size() const {
790 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.max_frame_size)
791 return _internal_max_frame_size();
792}
793inline void Config::_internal_set_max_frame_size(int32_t value) {
794 _impl_._has_bits_[0] |= 0x00000004u;
795 _impl_.max_frame_size_ = value;
796}
797inline void Config::set_max_frame_size(int32_t value) {
798 _internal_set_max_frame_size(value);
799 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.max_frame_size)
800}
801
802// optional bool ipv6 = 4 [default = false];
803inline bool Config::_internal_has_ipv6() const {
804 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
805 return value;
806}
807inline bool Config::has_ipv6() const {
808 return _internal_has_ipv6();
809}
810inline void Config::clear_ipv6() {
811 _impl_.ipv6_ = false;
812 _impl_._has_bits_[0] &= ~0x00000002u;
813}
814inline bool Config::_internal_ipv6() const {
815 return _impl_.ipv6_;
816}
817inline bool Config::ipv6() const {
818 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.ipv6)
819 return _internal_ipv6();
820}
821inline void Config::_internal_set_ipv6(bool value) {
822 _impl_._has_bits_[0] |= 0x00000002u;
823 _impl_.ipv6_ = value;
824}
825inline void Config::set_ipv6(bool value) {
826 _internal_set_ipv6(value);
827 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.ipv6)
828}
829
830// repeated uint32 additional_application_ack_modem_id = 21;
831inline int Config::_internal_additional_application_ack_modem_id_size() const {
832 return _impl_.additional_application_ack_modem_id_.size();
833}
834inline int Config::additional_application_ack_modem_id_size() const {
835 return _internal_additional_application_ack_modem_id_size();
836}
837inline void Config::clear_additional_application_ack_modem_id() {
838 _impl_.additional_application_ack_modem_id_.Clear();
839}
840inline uint32_t Config::_internal_additional_application_ack_modem_id(int index) const {
841 return _impl_.additional_application_ack_modem_id_.Get(index);
842}
843inline uint32_t Config::additional_application_ack_modem_id(int index) const {
844 // @@protoc_insertion_point(field_get:jaiabot.udp.protobuf.Config.additional_application_ack_modem_id)
845 return _internal_additional_application_ack_modem_id(index);
846}
847inline void Config::set_additional_application_ack_modem_id(int index, uint32_t value) {
848 _impl_.additional_application_ack_modem_id_.Set(index, value);
849 // @@protoc_insertion_point(field_set:jaiabot.udp.protobuf.Config.additional_application_ack_modem_id)
850}
851inline void Config::_internal_add_additional_application_ack_modem_id(uint32_t value) {
852 _impl_.additional_application_ack_modem_id_.Add(value);
853}
854inline void Config::add_additional_application_ack_modem_id(uint32_t value) {
855 _internal_add_additional_application_ack_modem_id(value);
856 // @@protoc_insertion_point(field_add:jaiabot.udp.protobuf.Config.additional_application_ack_modem_id)
857}
858inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
859Config::_internal_additional_application_ack_modem_id() const {
860 return _impl_.additional_application_ack_modem_id_;
861}
862inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
863Config::additional_application_ack_modem_id() const {
864 // @@protoc_insertion_point(field_list:jaiabot.udp.protobuf.Config.additional_application_ack_modem_id)
865 return _internal_additional_application_ack_modem_id();
866}
867inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
868Config::_internal_mutable_additional_application_ack_modem_id() {
869 return &_impl_.additional_application_ack_modem_id_;
870}
871inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
872Config::mutable_additional_application_ack_modem_id() {
873 // @@protoc_insertion_point(field_mutable_list:jaiabot.udp.protobuf.Config.additional_application_ack_modem_id)
874 return _internal_mutable_additional_application_ack_modem_id();
875}
876
877#ifdef __GNUC__
878 #pragma GCC diagnostic pop
879#endif // __GNUC__
880// -------------------------------------------------------------------
881
882
883// @@protoc_insertion_point(namespace_scope)
884
885} // namespace protobuf
886} // namespace udp
887} // namespace jaiabot
888
889// @@protoc_insertion_point(global_scope)
890
891#include <google/protobuf/port_undef.inc>
892#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fudp_5fdriver_2eproto
Config_EndPoint(Config_EndPoint &&from) noexcept
void MergeFrom(const Config_EndPoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_NODISCARD std::string * release_ip()
Config_EndPoint & operator=(Config_EndPoint &&from) noexcept
friend void swap(Config_EndPoint &a, Config_EndPoint &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_ip(ArgT0 &&arg0, ArgT... args)
Config_EndPoint(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const Config_EndPoint * internal_default_instance()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const Config_EndPoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_CONSTEXPR Config_EndPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Config_EndPoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void Swap(Config_EndPoint *other)
Config_EndPoint(const Config_EndPoint &from)
Config_EndPoint & operator=(const Config_EndPoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const Config_EndPoint & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(Config_EndPoint *other)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ClassData _class_data_
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Config & operator=(Config &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
friend void swap(Config &a, Config &b)
Config(Config &&from) noexcept
void CopyFrom(const Config &from)
static const Config & default_instance()
void UnsafeArenaSwap(Config *other)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void MergeFrom(const Config &from)
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Config(const Config &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const Config * internal_default_instance()
Config & operator=(const Config &from)
static const int kConfigFieldNumber
ConfigDefaultTypeInternal _Config_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
Config_EndPointDefaultTypeInternal _Config_EndPoint_default_instance_
::jaiabot::udp::protobuf::Config_EndPoint * Arena::CreateMaybeMessage<::jaiabot::udp::protobuf::Config_EndPoint >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fudp_5fdriver_2eproto