Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
udp_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/protobuf/udp_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_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>
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>
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>
34#include "dccl/option_extensions.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
40#include <boost/units/systems/si.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto;
55namespace goby {
56namespace middleware {
57namespace protobuf {
58class UDPOneToManyConfig;
59struct UDPOneToManyConfigDefaultTypeInternal;
60extern UDPOneToManyConfigDefaultTypeInternal _UDPOneToManyConfig_default_instance_;
61class UDPPointToPointConfig;
62struct UDPPointToPointConfigDefaultTypeInternal;
63extern UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_;
64} // namespace protobuf
65} // namespace middleware
66} // namespace goby
67PROTOBUF_NAMESPACE_OPEN
68template<> ::goby::middleware::protobuf::UDPOneToManyConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::UDPOneToManyConfig>(Arena*);
69template<> ::goby::middleware::protobuf::UDPPointToPointConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace middleware {
73namespace protobuf {
74
75// ===================================================================
76
77class UDPOneToManyConfig final :
78 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.UDPOneToManyConfig) */ {
79 public:
82 explicit PROTOBUF_CONSTEXPR UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
83
87 *this = ::std::move(from);
88 }
89
91 CopyFrom(from);
92 return *this;
93 }
95 if (this == &from) return *this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() != nullptr
99 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
100 ) {
101 InternalSwap(&from);
102 } else {
103 CopyFrom(from);
104 }
105 return *this;
106 }
107
108 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 }
111 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 }
114
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116 return GetDescriptor();
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119 return default_instance().GetMetadata().descriptor;
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122 return default_instance().GetMetadata().reflection;
123 }
126 }
128 return reinterpret_cast<const UDPOneToManyConfig*>(
130 }
131 static constexpr int kIndexInFileMessages =
132 0;
133
135 a.Swap(&b);
136 }
137 inline void Swap(UDPOneToManyConfig* other) {
138 if (other == this) return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() != nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
142 #else // PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() == other->GetOwningArena()) {
144 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145 InternalSwap(other);
146 } else {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148 }
149 }
151 if (other == this) return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153 InternalSwap(other);
154 }
155
156 // implements Message ----------------------------------------------
157
158 UDPOneToManyConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159 return CreateMaybeMessage<UDPOneToManyConfig>(arena);
160 }
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 void CopyFrom(const UDPOneToManyConfig& from);
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 void MergeFrom( const UDPOneToManyConfig& from) {
165 UDPOneToManyConfig::MergeImpl(*this, from);
166 }
167 private:
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 public:
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;
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 final;
183 void InternalSwap(UDPOneToManyConfig* other);
184
185 private:
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.middleware.protobuf.UDPOneToManyConfig";
189 }
190 protected:
191 explicit UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned = false);
193 public:
194
195 static const ClassData _class_data_;
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197
198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199
200 // nested types ----------------------------------------------------
201
202 // accessors -------------------------------------------------------
203
204 enum : int {
209 };
210 // required uint32 bind_port = 2 [(.goby.field) = {
211 bool has_bind_port() const;
212 private:
213 bool _internal_has_bind_port() const;
214 public:
215 void clear_bind_port();
216 uint32_t bind_port() const;
217 void set_bind_port(uint32_t value);
218 private:
219 uint32_t _internal_bind_port() const;
220 void _internal_set_bind_port(uint32_t value);
221 public:
222
223 // optional bool set_reuseaddr = 10 [default = false];
224 bool has_set_reuseaddr() const;
225 private:
226 bool _internal_has_set_reuseaddr() const;
227 public:
228 void clear_set_reuseaddr();
229 bool set_reuseaddr() const;
230 void set_set_reuseaddr(bool value);
231 private:
232 bool _internal_set_reuseaddr() const;
233 void _internal_set_set_reuseaddr(bool value);
234 public:
235
236 // optional bool set_broadcast = 11 [default = false];
237 bool has_set_broadcast() const;
238 private:
239 bool _internal_has_set_broadcast() const;
240 public:
241 void clear_set_broadcast();
242 bool set_broadcast() const;
243 void set_set_broadcast(bool value);
244 private:
245 bool _internal_set_broadcast() const;
246 void _internal_set_set_broadcast(bool value);
247 public:
248
249 // optional bool ipv6 = 12 [default = false];
250 bool has_ipv6() const;
251 private:
252 bool _internal_has_ipv6() const;
253 public:
254 void clear_ipv6();
255 bool ipv6() const;
256 void set_ipv6(bool value);
257 private:
258 bool _internal_ipv6() const;
259 void _internal_set_ipv6(bool value);
260 public:
261
262 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.UDPOneToManyConfig)
263 private:
264 class _Internal;
265
266 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
267 typedef void InternalArenaConstructable_;
268 typedef void DestructorSkippable_;
269 struct Impl_ {
270 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
271 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
272 uint32_t bind_port_;
273 bool set_reuseaddr_;
274 bool set_broadcast_;
275 bool ipv6_;
276 };
277 union { Impl_ _impl_; };
278 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto;
279};
280// -------------------------------------------------------------------
281
283 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.UDPPointToPointConfig) */ {
284 public:
287 explicit PROTOBUF_CONSTEXPR UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
288
292 *this = ::std::move(from);
293 }
294
296 CopyFrom(from);
297 return *this;
298 }
300 if (this == &from) return *this;
301 if (GetOwningArena() == from.GetOwningArena()
302 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
303 && GetOwningArena() != nullptr
304 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
305 ) {
306 InternalSwap(&from);
307 } else {
308 CopyFrom(from);
309 }
310 return *this;
311 }
312
313 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
314 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
315 }
316 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
317 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
318 }
319
320 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
321 return GetDescriptor();
322 }
323 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
324 return default_instance().GetMetadata().descriptor;
325 }
326 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
327 return default_instance().GetMetadata().reflection;
328 }
330 return *internal_default_instance();
331 }
333 return reinterpret_cast<const UDPPointToPointConfig*>(
335 }
336 static constexpr int kIndexInFileMessages =
337 1;
338
340 a.Swap(&b);
341 }
342 inline void Swap(UDPPointToPointConfig* other) {
343 if (other == this) return;
344 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
345 if (GetOwningArena() != nullptr &&
346 GetOwningArena() == other->GetOwningArena()) {
347 #else // PROTOBUF_FORCE_COPY_IN_SWAP
348 if (GetOwningArena() == other->GetOwningArena()) {
349 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
350 InternalSwap(other);
351 } else {
352 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
353 }
354 }
356 if (other == this) return;
357 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
358 InternalSwap(other);
359 }
360
361 // implements Message ----------------------------------------------
362
363 UDPPointToPointConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
364 return CreateMaybeMessage<UDPPointToPointConfig>(arena);
365 }
366 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
368 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
369 void MergeFrom( const UDPPointToPointConfig& from) {
370 UDPPointToPointConfig::MergeImpl(*this, from);
371 }
372 private:
373 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
374 public:
375 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
376 bool IsInitialized() const final;
377
378 size_t ByteSizeLong() const final;
379 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
380 uint8_t* _InternalSerialize(
381 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
382 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
383
384 private:
385 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
386 void SharedDtor();
387 void SetCachedSize(int size) const final;
388 void InternalSwap(UDPPointToPointConfig* other);
389
390 private:
391 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
392 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
393 return "goby.middleware.protobuf.UDPPointToPointConfig";
394 }
395 protected:
396 explicit UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
397 bool is_message_owned = false);
398 public:
399
400 static const ClassData _class_data_;
401 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
402
403 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
404
405 // nested types ----------------------------------------------------
406
407 // accessors -------------------------------------------------------
408
409 enum : int {
410 kRemoteAddressFieldNumber = 5,
411 kBindPortFieldNumber = 2,
412 kRemotePortFieldNumber = 6,
413 kSetReuseaddrFieldNumber = 10,
414 kSetBroadcastFieldNumber = 11,
415 kIpv6FieldNumber = 12,
416 };
417 // required string remote_address = 5 [(.goby.field) = {
418 bool has_remote_address() const;
419 private:
420 bool _internal_has_remote_address() const;
421 public:
422 void clear_remote_address();
423 const std::string& remote_address() const;
424 template <typename ArgT0 = const std::string&, typename... ArgT>
425 void set_remote_address(ArgT0&& arg0, ArgT... args);
426 std::string* mutable_remote_address();
427 PROTOBUF_NODISCARD std::string* release_remote_address();
428 void set_allocated_remote_address(std::string* remote_address);
429 private:
430 const std::string& _internal_remote_address() const;
431 inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_address(const std::string& value);
432 std::string* _internal_mutable_remote_address();
433 public:
434
435 // optional uint32 bind_port = 2 [default = 0, (.goby.field) = {
436 bool has_bind_port() const;
437 private:
438 bool _internal_has_bind_port() const;
439 public:
440 void clear_bind_port();
441 uint32_t bind_port() const;
442 void set_bind_port(uint32_t value);
443 private:
444 uint32_t _internal_bind_port() const;
445 void _internal_set_bind_port(uint32_t value);
446 public:
447
448 // required uint32 remote_port = 6 [(.goby.field) = {
449 bool has_remote_port() const;
450 private:
451 bool _internal_has_remote_port() const;
452 public:
453 void clear_remote_port();
454 uint32_t remote_port() const;
455 void set_remote_port(uint32_t value);
456 private:
457 uint32_t _internal_remote_port() const;
458 void _internal_set_remote_port(uint32_t value);
459 public:
460
461 // optional bool set_reuseaddr = 10 [default = false];
462 bool has_set_reuseaddr() const;
463 private:
464 bool _internal_has_set_reuseaddr() const;
465 public:
466 void clear_set_reuseaddr();
467 bool set_reuseaddr() const;
468 void set_set_reuseaddr(bool value);
469 private:
470 bool _internal_set_reuseaddr() const;
471 void _internal_set_set_reuseaddr(bool value);
472 public:
473
474 // optional bool set_broadcast = 11 [default = false];
475 bool has_set_broadcast() const;
476 private:
477 bool _internal_has_set_broadcast() const;
478 public:
479 void clear_set_broadcast();
480 bool set_broadcast() const;
481 void set_set_broadcast(bool value);
482 private:
483 bool _internal_set_broadcast() const;
484 void _internal_set_set_broadcast(bool value);
485 public:
486
487 // optional bool ipv6 = 12 [default = false];
488 bool has_ipv6() const;
489 private:
490 bool _internal_has_ipv6() const;
491 public:
492 void clear_ipv6();
493 bool ipv6() const;
494 void set_ipv6(bool value);
495 private:
496 bool _internal_ipv6() const;
497 void _internal_set_ipv6(bool value);
498 public:
499
500 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.UDPPointToPointConfig)
501 private:
502 class _Internal;
503
504 // helper for ByteSizeLong()
505 size_t RequiredFieldsByteSizeFallback() const;
506
507 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
508 typedef void InternalArenaConstructable_;
509 typedef void DestructorSkippable_;
510 struct Impl_ {
511 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
512 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
513 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_address_;
514 uint32_t bind_port_;
515 uint32_t remote_port_;
516 bool set_reuseaddr_;
517 bool set_broadcast_;
518 bool ipv6_;
519 };
520 union { Impl_ _impl_; };
521 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto;
522};
523// ===================================================================
524
525
526// ===================================================================
527
528#ifdef __GNUC__
529 #pragma GCC diagnostic push
530 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
531#endif // __GNUC__
532// UDPOneToManyConfig
533
534// required uint32 bind_port = 2 [(.goby.field) = {
535inline bool UDPOneToManyConfig::_internal_has_bind_port() const {
536 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
537 return value;
538}
539inline bool UDPOneToManyConfig::has_bind_port() const {
540 return _internal_has_bind_port();
541}
542inline void UDPOneToManyConfig::clear_bind_port() {
543 _impl_.bind_port_ = 0u;
544 _impl_._has_bits_[0] &= ~0x00000001u;
545}
546inline uint32_t UDPOneToManyConfig::_internal_bind_port() const {
547 return _impl_.bind_port_;
548}
549inline uint32_t UDPOneToManyConfig::bind_port() const {
550 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.bind_port)
551 return _internal_bind_port();
552}
553inline void UDPOneToManyConfig::_internal_set_bind_port(uint32_t value) {
554 _impl_._has_bits_[0] |= 0x00000001u;
555 _impl_.bind_port_ = value;
556}
557inline void UDPOneToManyConfig::set_bind_port(uint32_t value) {
558 _internal_set_bind_port(value);
559 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.bind_port)
560}
561
562// optional bool set_reuseaddr = 10 [default = false];
563inline bool UDPOneToManyConfig::_internal_has_set_reuseaddr() const {
564 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
565 return value;
566}
567inline bool UDPOneToManyConfig::has_set_reuseaddr() const {
568 return _internal_has_set_reuseaddr();
569}
570inline void UDPOneToManyConfig::clear_set_reuseaddr() {
571 _impl_.set_reuseaddr_ = false;
572 _impl_._has_bits_[0] &= ~0x00000002u;
573}
574inline bool UDPOneToManyConfig::_internal_set_reuseaddr() const {
575 return _impl_.set_reuseaddr_;
576}
577inline bool UDPOneToManyConfig::set_reuseaddr() const {
578 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.set_reuseaddr)
579 return _internal_set_reuseaddr();
580}
581inline void UDPOneToManyConfig::_internal_set_set_reuseaddr(bool value) {
582 _impl_._has_bits_[0] |= 0x00000002u;
583 _impl_.set_reuseaddr_ = value;
584}
585inline void UDPOneToManyConfig::set_set_reuseaddr(bool value) {
586 _internal_set_set_reuseaddr(value);
587 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.set_reuseaddr)
588}
589
590// optional bool set_broadcast = 11 [default = false];
591inline bool UDPOneToManyConfig::_internal_has_set_broadcast() const {
592 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
593 return value;
594}
595inline bool UDPOneToManyConfig::has_set_broadcast() const {
596 return _internal_has_set_broadcast();
597}
598inline void UDPOneToManyConfig::clear_set_broadcast() {
599 _impl_.set_broadcast_ = false;
600 _impl_._has_bits_[0] &= ~0x00000004u;
601}
602inline bool UDPOneToManyConfig::_internal_set_broadcast() const {
603 return _impl_.set_broadcast_;
604}
605inline bool UDPOneToManyConfig::set_broadcast() const {
606 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.set_broadcast)
607 return _internal_set_broadcast();
608}
609inline void UDPOneToManyConfig::_internal_set_set_broadcast(bool value) {
610 _impl_._has_bits_[0] |= 0x00000004u;
611 _impl_.set_broadcast_ = value;
612}
613inline void UDPOneToManyConfig::set_set_broadcast(bool value) {
614 _internal_set_set_broadcast(value);
615 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.set_broadcast)
616}
617
618// optional bool ipv6 = 12 [default = false];
619inline bool UDPOneToManyConfig::_internal_has_ipv6() const {
620 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
621 return value;
622}
623inline bool UDPOneToManyConfig::has_ipv6() const {
624 return _internal_has_ipv6();
625}
626inline void UDPOneToManyConfig::clear_ipv6() {
627 _impl_.ipv6_ = false;
628 _impl_._has_bits_[0] &= ~0x00000008u;
629}
630inline bool UDPOneToManyConfig::_internal_ipv6() const {
631 return _impl_.ipv6_;
632}
633inline bool UDPOneToManyConfig::ipv6() const {
634 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.ipv6)
635 return _internal_ipv6();
636}
637inline void UDPOneToManyConfig::_internal_set_ipv6(bool value) {
638 _impl_._has_bits_[0] |= 0x00000008u;
639 _impl_.ipv6_ = value;
640}
641inline void UDPOneToManyConfig::set_ipv6(bool value) {
642 _internal_set_ipv6(value);
643 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.ipv6)
644}
645
646// -------------------------------------------------------------------
647
648// UDPPointToPointConfig
649
650// optional uint32 bind_port = 2 [default = 0, (.goby.field) = {
651inline bool UDPPointToPointConfig::_internal_has_bind_port() const {
652 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
653 return value;
654}
655inline bool UDPPointToPointConfig::has_bind_port() const {
656 return _internal_has_bind_port();
657}
658inline void UDPPointToPointConfig::clear_bind_port() {
659 _impl_.bind_port_ = 0u;
660 _impl_._has_bits_[0] &= ~0x00000002u;
661}
662inline uint32_t UDPPointToPointConfig::_internal_bind_port() const {
663 return _impl_.bind_port_;
664}
665inline uint32_t UDPPointToPointConfig::bind_port() const {
666 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.bind_port)
667 return _internal_bind_port();
668}
669inline void UDPPointToPointConfig::_internal_set_bind_port(uint32_t value) {
670 _impl_._has_bits_[0] |= 0x00000002u;
671 _impl_.bind_port_ = value;
672}
673inline void UDPPointToPointConfig::set_bind_port(uint32_t value) {
674 _internal_set_bind_port(value);
675 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.bind_port)
676}
677
678// required string remote_address = 5 [(.goby.field) = {
679inline bool UDPPointToPointConfig::_internal_has_remote_address() const {
680 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
681 return value;
682}
683inline bool UDPPointToPointConfig::has_remote_address() const {
684 return _internal_has_remote_address();
685}
686inline void UDPPointToPointConfig::clear_remote_address() {
687 _impl_.remote_address_.ClearToEmpty();
688 _impl_._has_bits_[0] &= ~0x00000001u;
689}
690inline const std::string& UDPPointToPointConfig::remote_address() const {
691 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
692 return _internal_remote_address();
693}
694template <typename ArgT0, typename... ArgT>
695inline PROTOBUF_ALWAYS_INLINE
696void UDPPointToPointConfig::set_remote_address(ArgT0&& arg0, ArgT... args) {
697 _impl_._has_bits_[0] |= 0x00000001u;
698 _impl_.remote_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
699 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
700}
701inline std::string* UDPPointToPointConfig::mutable_remote_address() {
702 std::string* _s = _internal_mutable_remote_address();
703 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
704 return _s;
705}
706inline const std::string& UDPPointToPointConfig::_internal_remote_address() const {
707 return _impl_.remote_address_.Get();
708}
709inline void UDPPointToPointConfig::_internal_set_remote_address(const std::string& value) {
710 _impl_._has_bits_[0] |= 0x00000001u;
711 _impl_.remote_address_.Set(value, GetArenaForAllocation());
712}
713inline std::string* UDPPointToPointConfig::_internal_mutable_remote_address() {
714 _impl_._has_bits_[0] |= 0x00000001u;
715 return _impl_.remote_address_.Mutable(GetArenaForAllocation());
716}
717inline std::string* UDPPointToPointConfig::release_remote_address() {
718 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
719 if (!_internal_has_remote_address()) {
720 return nullptr;
721 }
722 _impl_._has_bits_[0] &= ~0x00000001u;
723 auto* p = _impl_.remote_address_.Release();
724#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
725 if (_impl_.remote_address_.IsDefault()) {
726 _impl_.remote_address_.Set("", GetArenaForAllocation());
727 }
728#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
729 return p;
730}
731inline void UDPPointToPointConfig::set_allocated_remote_address(std::string* remote_address) {
732 if (remote_address != nullptr) {
733 _impl_._has_bits_[0] |= 0x00000001u;
734 } else {
735 _impl_._has_bits_[0] &= ~0x00000001u;
736 }
737 _impl_.remote_address_.SetAllocated(remote_address, GetArenaForAllocation());
738#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
739 if (_impl_.remote_address_.IsDefault()) {
740 _impl_.remote_address_.Set("", GetArenaForAllocation());
741 }
742#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
743 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
744}
745
746// required uint32 remote_port = 6 [(.goby.field) = {
747inline bool UDPPointToPointConfig::_internal_has_remote_port() const {
748 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
749 return value;
750}
751inline bool UDPPointToPointConfig::has_remote_port() const {
752 return _internal_has_remote_port();
753}
754inline void UDPPointToPointConfig::clear_remote_port() {
755 _impl_.remote_port_ = 0u;
756 _impl_._has_bits_[0] &= ~0x00000004u;
757}
758inline uint32_t UDPPointToPointConfig::_internal_remote_port() const {
759 return _impl_.remote_port_;
760}
761inline uint32_t UDPPointToPointConfig::remote_port() const {
762 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.remote_port)
763 return _internal_remote_port();
764}
765inline void UDPPointToPointConfig::_internal_set_remote_port(uint32_t value) {
766 _impl_._has_bits_[0] |= 0x00000004u;
767 _impl_.remote_port_ = value;
768}
769inline void UDPPointToPointConfig::set_remote_port(uint32_t value) {
770 _internal_set_remote_port(value);
771 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.remote_port)
772}
773
774// optional bool set_reuseaddr = 10 [default = false];
775inline bool UDPPointToPointConfig::_internal_has_set_reuseaddr() const {
776 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
777 return value;
778}
779inline bool UDPPointToPointConfig::has_set_reuseaddr() const {
780 return _internal_has_set_reuseaddr();
781}
782inline void UDPPointToPointConfig::clear_set_reuseaddr() {
783 _impl_.set_reuseaddr_ = false;
784 _impl_._has_bits_[0] &= ~0x00000008u;
785}
786inline bool UDPPointToPointConfig::_internal_set_reuseaddr() const {
787 return _impl_.set_reuseaddr_;
788}
789inline bool UDPPointToPointConfig::set_reuseaddr() const {
790 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.set_reuseaddr)
791 return _internal_set_reuseaddr();
792}
793inline void UDPPointToPointConfig::_internal_set_set_reuseaddr(bool value) {
794 _impl_._has_bits_[0] |= 0x00000008u;
795 _impl_.set_reuseaddr_ = value;
796}
797inline void UDPPointToPointConfig::set_set_reuseaddr(bool value) {
798 _internal_set_set_reuseaddr(value);
799 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.set_reuseaddr)
800}
801
802// optional bool set_broadcast = 11 [default = false];
803inline bool UDPPointToPointConfig::_internal_has_set_broadcast() const {
804 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
805 return value;
806}
807inline bool UDPPointToPointConfig::has_set_broadcast() const {
808 return _internal_has_set_broadcast();
809}
810inline void UDPPointToPointConfig::clear_set_broadcast() {
811 _impl_.set_broadcast_ = false;
812 _impl_._has_bits_[0] &= ~0x00000010u;
813}
814inline bool UDPPointToPointConfig::_internal_set_broadcast() const {
815 return _impl_.set_broadcast_;
816}
817inline bool UDPPointToPointConfig::set_broadcast() const {
818 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.set_broadcast)
819 return _internal_set_broadcast();
820}
821inline void UDPPointToPointConfig::_internal_set_set_broadcast(bool value) {
822 _impl_._has_bits_[0] |= 0x00000010u;
823 _impl_.set_broadcast_ = value;
824}
825inline void UDPPointToPointConfig::set_set_broadcast(bool value) {
826 _internal_set_set_broadcast(value);
827 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.set_broadcast)
828}
829
830// optional bool ipv6 = 12 [default = false];
831inline bool UDPPointToPointConfig::_internal_has_ipv6() const {
832 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
833 return value;
834}
835inline bool UDPPointToPointConfig::has_ipv6() const {
836 return _internal_has_ipv6();
837}
838inline void UDPPointToPointConfig::clear_ipv6() {
839 _impl_.ipv6_ = false;
840 _impl_._has_bits_[0] &= ~0x00000020u;
841}
842inline bool UDPPointToPointConfig::_internal_ipv6() const {
843 return _impl_.ipv6_;
844}
845inline bool UDPPointToPointConfig::ipv6() const {
846 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.ipv6)
847 return _internal_ipv6();
848}
849inline void UDPPointToPointConfig::_internal_set_ipv6(bool value) {
850 _impl_._has_bits_[0] |= 0x00000020u;
851 _impl_.ipv6_ = value;
852}
853inline void UDPPointToPointConfig::set_ipv6(bool value) {
854 _internal_set_ipv6(value);
855 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.ipv6)
856}
857
858#ifdef __GNUC__
859 #pragma GCC diagnostic pop
860#endif // __GNUC__
861// -------------------------------------------------------------------
862
863
864// @@protoc_insertion_point(namespace_scope)
865
866} // namespace protobuf
867} // namespace middleware
868} // namespace goby
869
870// @@protoc_insertion_point(global_scope)
871
872#include <google/protobuf/port_undef.inc>
873#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const UDPOneToManyConfig & default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
UDPOneToManyConfig & operator=(UDPOneToManyConfig &&from) noexcept
friend void swap(UDPOneToManyConfig &a, UDPOneToManyConfig &b)
UDPOneToManyConfig & operator=(const UDPOneToManyConfig &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
UDPOneToManyConfig(UDPOneToManyConfig &&from) noexcept
UDPOneToManyConfig(const UDPOneToManyConfig &from)
void CopyFrom(const UDPOneToManyConfig &from)
PROTOBUF_CONSTEXPR UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void MergeFrom(const UDPOneToManyConfig &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
UDPOneToManyConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void UnsafeArenaSwap(UDPOneToManyConfig *other)
static const UDPOneToManyConfig * internal_default_instance()
UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(UDPPointToPointConfig &a, UDPPointToPointConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_remote_address(ArgT0 &&arg0, ArgT... args)
UDPPointToPointConfig & operator=(const UDPPointToPointConfig &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void Swap(UDPPointToPointConfig *other)
static const UDPPointToPointConfig * internal_default_instance()
void MergeFrom(const UDPPointToPointConfig &from)
UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
UDPPointToPointConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
UDPPointToPointConfig(const UDPPointToPointConfig &from)
UDPPointToPointConfig & operator=(UDPPointToPointConfig &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void UnsafeArenaSwap(UDPPointToPointConfig *other)
static const UDPPointToPointConfig & default_instance()
void CopyFrom(const UDPPointToPointConfig &from)
UDPPointToPointConfig(UDPPointToPointConfig &&from) noexcept
PROTOBUF_CONSTEXPR UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_
UDPOneToManyConfigDefaultTypeInternal _UDPOneToManyConfig_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto